hash-threshold 8

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-555
SELECT DISTINCT 86 + MAX( col0 ) DIV - + 83 FROM tab2 AS cor0
----
86

skipif mysql # not compatible
query I rowsort label-555
SELECT DISTINCT 86 + MAX ( col0 ) / - + 83 FROM tab2 AS cor0
----
86

query I rowsort
SELECT 58 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-557
SELECT ALL - + ( + 93 ) * - COUNT( * ) + - SUM( - col2 ) + 30 AS col1 FROM tab1 AS cor0
----
532

skipif mysql # not compatible
query I rowsort label-557
SELECT ALL - + ( + 93 ) * - COUNT ( * ) + - SUM ( - col2 ) + 30 AS col1 FROM tab1 AS cor0
----
532

query I rowsort
SELECT ALL - 13 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-559
SELECT * FROM tab0 WHERE - CAST( 7 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-559
SELECT * FROM tab0 WHERE - CAST ( 7 AS INTEGER ) IS NULL
----

query I rowsort
SELECT DISTINCT - ( - col2 ) + - - 43 + - col2 AS col2 FROM tab2 WHERE ( NULL ) IS NULL
----
43

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * - col2 col2 FROM tab1
----
-3481
-4624
-9216

query I rowsort
SELECT 2 + - col0 * - + 99 FROM tab2
----
4556
6338
7427

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-563
SELECT - col0 FROM tab0 WHERE + CAST( col2 AS SIGNED ) NOT IN ( - col1 * col1 + - col2 * col1 )
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-563
SELECT - col0 FROM tab0 WHERE + CAST ( col2 AS INTEGER ) NOT IN ( - col1 * col1 + - col2 * col1 )
----
-15
-87
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-564
SELECT DISTINCT - 42 + + col2 + + col2 - + CAST( NULL AS SIGNED ) + + 42 * col2 + - col1 col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-564
SELECT DISTINCT - 42 + + col2 + + col2 - + CAST ( NULL AS INTEGER ) + + 42 * col2 + - col1 col1 FROM tab0 AS cor0
----
NULL

query II rowsort
SELECT ALL + col1 * - col1 AS col1, - col2 * + ( col2 ) FROM tab0 AS cor0 WHERE NOT NULL IN ( col0 )
----

query IIIIII rowsort
SELECT * FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 ) WHERE NOT ( + 84 ) IS NOT NULL
----

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-568
SELECT col1 + 93 AS col2 FROM tab2 WHERE - + CAST( NULL AS SIGNED ) + - - 12 > - 15 - + ( - 11 )
----

skipif mysql # not compatible
query I rowsort label-568
SELECT col1 + 93 AS col2 FROM tab2 WHERE - + CAST ( NULL AS INTEGER ) + - - 12 > - 15 - + ( - 11 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 73 + - col2 + - col1 + + + 62 - col2 * + col2 + + col2 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL <> ( + - col1 ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-571
SELECT ALL + - CAST( - + 29 AS SIGNED ) FROM tab1 cor0
----
29
29
29

skipif mysql # not compatible
query I rowsort label-571
SELECT ALL + - CAST ( - + 29 AS INTEGER ) FROM tab1 cor0
----
29
29
29

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT ( NOT - 66 NOT BETWEEN + col1 - + 5 * - col0 * col0 AND NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col2 IN ( + ( - - 31 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + + col2 * - col0 * - ( col2 ) - col2 FROM tab1 cor0
----
295826
420716
469920

query III rowsort
SELECT * FROM tab0 WHERE NOT ( + + col0 ) > + 21
----
15
81
47

query III rowsort
SELECT ALL * FROM tab2 WHERE ( + col1 * + - col1 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-577
SELECT DISTINCT 69 AS col2, + ( + COUNT( * ) ) col1 FROM tab1
----
69
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-577
SELECT DISTINCT 69 AS col2, + ( + COUNT ( * ) ) col1 FROM tab1
----
69
3

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - - 76 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-579
SELECT MIN( DISTINCT - 12 ) col0 FROM tab2
----
-12

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-579
SELECT MIN ( DISTINCT - 12 ) col0 FROM tab2
----
-12

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col2 col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-10
-47
-99

query I rowsort
SELECT ALL 49 * + col1 * - + col1 AS col1 FROM tab2
----
-127449
-219961
-290521

onlyif mysql # aggregate syntax: 
query I rowsort label-582
SELECT DISTINCT + 23 + COUNT( * ) AS col2 FROM tab2 AS cor0
----
26

skipif mysql # not compatible
query I rowsort label-582
SELECT DISTINCT + 23 + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
26

query I rowsort
SELECT ALL 22 * - 90 * - 9 FROM tab2
----
17820
17820
17820

query II rowsort
SELECT ALL 88 * - 63 AS col0, - col2 FROM tab2
----
-5544
-23
-5544
-40
-5544
-58

query III rowsort
SELECT * FROM tab0 WHERE ( NULL > NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-586
SELECT 76 + ( + - CAST( NULL AS SIGNED ) ) - + 91 AS col1 FROM tab2, tab0 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-586
SELECT 76 + ( + - CAST ( NULL AS INTEGER ) ) - + 91 AS col1 FROM tab2, tab0 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + col2 * - + col0 * 35 IS NOT NULL
----

query I rowsort
SELECT - - col0 + 13 + + col2 AS col1 FROM tab1 WHERE NULL IN ( + + 4 * - col2, + col2 * - col2 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col0 + - col1 IS NULL
----

query I rowsort
SELECT + 66 * - + col0 FROM tab2 AS cor0
----
-3036
-4224
-4950

query I rowsort
SELECT - col2 * - - col1 * + col2 * col2 FROM tab2 AS cor0 WHERE col1 / - + col1 * + col1 IS NOT NULL
----
-13072504
-4928000
-620517

query I rowsort
SELECT ALL + col2 + - - 76 FROM tab0 AS cor0
----
123
175
86

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col2 BETWEEN - col1 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-594
SELECT DISTINCT + - 12 + + + MAX( DISTINCT + 71 ) FROM tab1 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-594
SELECT DISTINCT + - 12 + + + MAX ( DISTINCT + 71 ) FROM tab1 AS cor0
----
59

query I rowsort
SELECT DISTINCT col1 + - 30 FROM tab2 AS cor0 WHERE col0 * - col2 IS NULL
----

query I rowsort
SELECT ALL - - col0 + + 82 AS col0 FROM tab0 AS cor0
----
169
179
97

onlyif mysql # aggregate syntax: 
query I rowsort label-597
SELECT ALL COUNT( * ) FROM tab0 AS cor0 WHERE NULL > - 96
----
0

skipif mysql # not compatible
query I rowsort label-597
SELECT ALL COUNT ( * ) FROM tab0 AS cor0 WHERE NULL > - 96
----
0

query I rowsort
SELECT - 25 + + col2 AS col2 FROM tab2 AS cor0
----
-2
15
33

onlyif mysql # aggregate syntax: 
query II rowsort label-599
SELECT DISTINCT - MIN( ALL - - ( col1 ) ) AS col1, 8 FROM tab2 AS cor0 WHERE - col0 BETWEEN ( + col0 ) AND col1
----
NULL
8

skipif mysql # not compatible
query II rowsort label-599
SELECT DISTINCT - MIN ( ALL - - ( col1 ) ) AS col1, 8 FROM tab2 AS cor0 WHERE - col0 BETWEEN ( + col0 ) AND col1
----
NULL
8

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 54 / - 18 >= + - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT DISTINCT + col1 + - ( + 92 ), - col1 AS col1 FROM tab1
----
-45
-47
-78
-14
-87
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-602
SELECT DISTINCT 20 * CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-602
SELECT DISTINCT 20 * CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-603
SELECT ALL + COUNT( * ) + - + COUNT( * ) - - + 76 col0 FROM tab1
----
76

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-603
SELECT ALL + COUNT ( * ) + - + COUNT ( * ) - - + 76 col0 FROM tab1
----
76

onlyif mysql # aggregate syntax: 
query II rowsort label-604
SELECT - COUNT( * ) + + 80 + - 31 AS col2, - ( + 13 ) FROM tab0
----
46
-13

skipif mysql # not compatible
query II rowsort label-604
SELECT - COUNT ( * ) + + 80 + - 31 AS col2, - ( + 13 ) FROM tab0
----
46
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-605
SELECT - COUNT( * ) * + ( + - COUNT( * ) ) + 61 FROM tab0
----
70

skipif mysql # not compatible
query I rowsort label-605
SELECT - COUNT ( * ) * + ( + - COUNT ( * ) ) + 61 FROM tab0
----
70

query I rowsort
SELECT DISTINCT - col1 * + - col2 * col1 AS col2 FROM tab2
----
237160
260362
59823

query I rowsort
SELECT DISTINCT - col1 + - 32 AS col2 FROM tab0
----
-113
-33
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-608
SELECT COUNT( + 66 ) col2 FROM tab1
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-608
SELECT COUNT ( + 66 ) col2 FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-609
SELECT ALL - COUNT( * ) - 36 + + - 51 AS col1 FROM tab2
----
-90

skipif mysql # not compatible
query I rowsort label-609
SELECT ALL - COUNT ( * ) - 36 + + - 51 AS col1 FROM tab2
----
-90

query I rowsort
SELECT - col2 FROM tab2 WHERE - - col0 * + col0 < + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-611
SELECT DISTINCT + - CAST( col0 AS SIGNED ) + 11 AS col0, - col1 AS col1 FROM tab2 AS cor0
----
-35
-51
-53
-77
-64
-67

skipif mysql # not compatible
query II rowsort label-611
SELECT DISTINCT + - CAST ( col0 AS INTEGER ) + 11 AS col0, - col1 AS col1 FROM tab2 AS cor0
----
-35
-51
-53
-77
-64
-67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-612
SELECT - + 40 * - + COUNT( * ) - + + CAST( NULL AS SIGNED ) - + COUNT( * ) / + MIN( DISTINCT 9 ) AS col2 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-612
SELECT - + 40 * - + COUNT ( * ) - + + CAST ( NULL AS INTEGER ) - + COUNT ( * ) / + MIN ( DISTINCT 9 ) AS col2 FROM tab1 cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-613
SELECT ALL col1 + - col1 FROM tab1 cor0 WHERE NOT CAST( - col2 AS SIGNED ) + + 12 + + + col2 * + col1 * col2 <= ( + + 33 * - + col2 + - col0 )
----
0
0
0

skipif mysql # not compatible
query I rowsort label-613
SELECT ALL col1 + - col1 FROM tab1 cor0 WHERE NOT CAST ( - col2 AS INTEGER ) + + 12 + + + col2 * + col1 * col2 <= ( + + 33 * - + col2 + - col0 )
----
0
0
0

query I rowsort
SELECT - col1 FROM tab0 AS cor0 WHERE ( 2 / + col2 IS NOT NULL )
----
-1
-21
-81

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL >= 18 * 9
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( + 90 + + col0 + + - col2 + - col1 < - + col0 * - col2 * + 44 + - col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-617
SELECT DISTINCT - ( - + COUNT( * ) ) + 8 * ( + - MIN( DISTINCT col0 ) ) + + 16 AS col2 FROM tab0 AS cor0
----
-101

skipif mysql # not compatible
query I rowsort label-617
SELECT DISTINCT - ( - + COUNT ( * ) ) + 8 * ( + - MIN ( DISTINCT col0 ) ) + + 16 AS col2 FROM tab0 AS cor0
----
-101

onlyif mysql # aggregate syntax: 
query I rowsort label-618
SELECT DISTINCT COUNT( ALL - col2 ) AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-618
SELECT DISTINCT COUNT ( ALL - col2 ) AS col0 FROM tab2
----
3

query III rowsort
SELECT * FROM tab0 WHERE NOT + 94 * + 42 BETWEEN NULL AND - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL IN ( + 22 - - - 76, col1 )
----

query I rowsort
SELECT DISTINCT + ( col1 ) AS col0 FROM tab0 AS cor0 WHERE NOT ( + col1 ) <> NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + + col2 AS col2, col0 col0 FROM tab0 AS cor0
----
10
87
47
15
99
97

query II rowsort
SELECT - ( - col2 ) AS col0, col1 FROM tab1 AS cor0
----
59
5
68
47
96
14

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( - 67 ) col2 FROM tab1 AS cor0
----
-67
-67
-67

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL <= + 10
----

onlyif mysql # aggregate syntax: 
query I rowsort label-626
SELECT DISTINCT - SUM( ALL + + 91 ) AS col0 FROM tab1 cor0
----
-273

skipif mysql # not compatible
query I rowsort label-626
SELECT DISTINCT - SUM ( ALL + + 91 ) AS col0 FROM tab1 cor0
----
-273

query II rowsort
SELECT + col2 * + - col2 AS col2, col0 * - col1 FROM tab1
----
-3481
-425
-4624
-4277
-9216
-714

onlyif mysql # aggregate syntax: 
query I rowsort label-628
SELECT ALL + MIN( DISTINCT col2 ) AS col0 FROM tab0
----
10

skipif mysql # not compatible
query I rowsort label-628
SELECT ALL + MIN ( DISTINCT col2 ) AS col0 FROM tab0
----
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-629
SELECT + ( - CAST( col0 AS SIGNED ) ) FROM tab2 WHERE NOT NULL <> + - col2
----

skipif mysql # not compatible
query I rowsort label-629
SELECT + ( - CAST ( col0 AS INTEGER ) ) FROM tab2 WHERE NOT NULL <> + - col2
----

query II rowsort
SELECT + col1 * col1, col1 AS col1 FROM tab1
----
196
14
2209
47
25
5

query II rowsort
SELECT - ( + col2 ) AS col0, - ( - + 20 ) FROM tab2 AS cor0
----
-23
20
-40
20
-58
20

query I rowsort
SELECT ALL + 82 + - col0 AS col2 FROM tab0 cor0
----
-15
-5
67

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 91 <> - 60
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - col1 >= + col1 - + + col0
----
91
47
68

query I rowsort
SELECT DISTINCT - col0 * 56 AS col1 FROM tab1
----
-2856
-4760
-5096

onlyif mysql # aggregate syntax: 
query I rowsort label-636
SELECT - 32 * COUNT( * ) AS col2 FROM tab2 cor0
----
-96

skipif mysql # not compatible
query I rowsort label-636
SELECT - 32 * COUNT ( * ) AS col2 FROM tab2 cor0
----
-96

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-637
SELECT + 65 col0, + CAST( - - col2 AS SIGNED ) FROM tab0 AS cor0
----
65
10
65
47
65
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-637
SELECT + 65 col0, + CAST ( - - col2 AS INTEGER ) FROM tab0 AS cor0
----
65
10
65
47
65
99

query I rowsort
SELECT + + col0 * - 23 FROM tab2 AS cor0
----
-1058
-1472
-1725

onlyif mysql # aggregate syntax: 
query I rowsort label-639
SELECT DISTINCT - + COUNT( * ) + COUNT( * ) + MAX( 97 ) AS col2 FROM tab2 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-639
SELECT DISTINCT - + COUNT ( * ) + COUNT ( * ) + MAX ( 97 ) AS col2 FROM tab2 AS cor0
----
97

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT NULL <= + 41
----

onlyif mysql # DIV for integer division: 
query I rowsort label-641
SELECT ALL + col2 + + + col1 DIV + 61 FROM tab1 cor0
----
59
68
96

skipif mysql # not compatible
query I rowsort label-641
SELECT ALL + col2 + + + col1 / + 61 FROM tab1 cor0
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-642
SELECT DISTINCT 28 + - + ( + 32 ) + + COUNT( * ) * - + SUM( DISTINCT + col0 ) AS col2 FROM tab0 AS cor0
----
-601

skipif mysql # not compatible
query I rowsort label-642
SELECT DISTINCT 28 + - + ( + 32 ) + + COUNT ( * ) * - + SUM ( DISTINCT + col0 ) AS col2 FROM tab0 AS cor0
----
-601

query I rowsort
SELECT + 38 - - ( col0 ) AS col2 FROM tab0
----
125
135
53

onlyif mysql # aggregate syntax: 
query I rowsort label-644
SELECT + 56 - 67 * COUNT( + 93 ) AS col0 FROM tab0
----
-145

skipif mysql # not compatible
query I rowsort label-644
SELECT + 56 - 67 * COUNT ( + 93 ) AS col0 FROM tab0
----
-145

onlyif mysql # aggregate syntax: 
query I rowsort label-645
SELECT ALL COUNT( * ) - COUNT( ALL 76 ) AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-645
SELECT ALL COUNT ( * ) - COUNT ( ALL 76 ) AS col2 FROM tab1
----
0

query I rowsort
SELECT - col0 - + + ( - - col0 ) FROM tab1
----
-102
-170
-182

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-647
SELECT col0 + CAST( + - col1 AS SIGNED ) + 81 FROM tab0
----
147
15
177

skipif mysql # not compatible
query I rowsort label-647
SELECT col0 + CAST ( + - col1 AS INTEGER ) + 81 FROM tab0
----
147
15
177

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL NOT BETWEEN + col0 AND + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-649
SELECT DISTINCT ( - - 95 ) * 54 + + CAST( + - 89 AS SIGNED ) + 51 AS col1, CAST( NULL AS SIGNED ) FROM tab0
----
5092
NULL

skipif mysql # not compatible
query II rowsort label-649
SELECT DISTINCT ( - - 95 ) * 54 + + CAST ( + - 89 AS INTEGER ) + 51 AS col1, CAST ( NULL AS INTEGER ) FROM tab0
----
5092
NULL

query I rowsort
SELECT col2 * - 37 AS col0 FROM tab1
----
-2183
-2516
-3552

query I rowsort
SELECT - 45 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 71160abf09589695379a70558726f0ba

onlyif mysql # aggregate syntax: 
query II rowsort label-652
SELECT DISTINCT + COUNT( * ) col0, 40 FROM tab0 cor0
----
3
40

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-652
SELECT DISTINCT + COUNT ( * ) col0, 40 FROM tab0 cor0
----
3
40

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN - 16 AND ( NULL )
----

query I rowsort
SELECT DISTINCT col0 * col1 FROM tab0 AS cor0 WHERE NOT + col2 / + + col0 * - - 99 IS NULL
----
1215
1827
97

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT ( NULL ) = + col2 * + col0
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 43 * + + col0 NOT BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-657
SELECT ALL + - 57 * - col2 + 54 + - CAST( NULL AS SIGNED ) * - 36 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-657
SELECT ALL + - 57 * - col2 + 54 + - CAST ( NULL AS INTEGER ) * - 36 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col0 * + 86 AS col1 FROM tab2
----
3956
5504
6450

query III rowsort
SELECT * FROM tab2 WHERE NOT + col1 * + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-660
SELECT - MIN( DISTINCT col0 ) col0 FROM tab0
----
-15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-660
SELECT - MIN ( DISTINCT col0 ) col0 FROM tab0
----
-15

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL > 2
----

query I rowsort
SELECT ALL ( + + col2 ) AS col1 FROM tab2
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-663
SELECT 16 + + MIN( 57 ) FROM tab0
----
73

skipif mysql # not compatible
query I rowsort label-663
SELECT 16 + + MIN ( 57 ) FROM tab0
----
73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-664
SELECT DISTINCT + COUNT( ALL + - CAST( - 29 AS SIGNED ) ) AS col0 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-664
SELECT DISTINCT + COUNT ( ALL + - CAST ( - 29 AS INTEGER ) ) AS col0 FROM tab0
----
3

query II rowsort
SELECT ALL + col0, - col2 - - ( col1 ) + col2 * + col1 AS col2 FROM tab2
----
46
1201
64
3117
75
3895

query I rowsort
SELECT ALL - col0 * + col0 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT - ( - + col1 ) + + + col0 + + col0 * - 60 + + + col2 + 23 FROM tab1 AS cor0
----
-2876
-4928
-5231

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL BETWEEN NULL AND - 8 * + - 49
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE 18 >= NULL
----

query I rowsort
SELECT + 36 FROM tab2 WHERE ( - + col1 ) IS NOT NULL
----
36
36
36

onlyif mysql # DIV for integer division: 
query II rowsort label-671
SELECT + 48 DIV col1 + - col0, col1 + + col1 AS col0 FROM tab2 AS cor0
----
-46
102
-64
154
-75
134

skipif mysql # not compatible
query II rowsort label-671
SELECT + 48 / col1 + - col0, col1 + + col1 AS col0 FROM tab2 AS cor0
----
-46
102
-64
154
-75
134

query I rowsort
SELECT - col2 + col2 + - col2 FROM tab0 AS cor0
----
-10
-47
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-673
SELECT + CAST( NULL AS SIGNED ) + + 31 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-673
SELECT + CAST ( NULL AS INTEGER ) + + 31 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-674
SELECT MAX( DISTINCT + + col0 ) + COUNT( * ) AS col1 FROM tab2 AS cor0
----
78

skipif mysql # not compatible
query I rowsort label-674
SELECT MAX ( DISTINCT + + col0 ) + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 4 * + - col1 + + + 32 - 20 col2 FROM tab1 AS cor0
----
-176
-44
-8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 col2 FROM tab1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL + col1 + + col1 - + 10 * + 46 AS col0 FROM tab0 WHERE ( NULL BETWEEN 29 AND col2 )
----

query I rowsort
SELECT ALL - col1 + + + 11 FROM tab0
----
-10
-70
10

query I rowsort
SELECT DISTINCT 1 - - + 55 FROM tab1
----
56

query II rowsort
SELECT - col2 AS col1, 54 FROM tab0
----
-10
54
-47
54
-99
54

query I rowsort
SELECT - ( + col0 ) * - 16 AS col0 FROM tab0 AS cor0
----
1392
1552
240

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 * - + 99 * + + ( col2 ) col1, col0 FROM tab2 AS cor0
----
-158400
64
-333036
75
-52371
46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-683
SELECT DISTINCT + + 14 * + AVG ( + ( + CAST( NULL AS SIGNED ) ) ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-683
SELECT DISTINCT + + 14 * + AVG ( + ( + CAST ( NULL AS INTEGER ) ) ) AS col2 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-684
SELECT + MIN( 17 ) AS col1 FROM tab1 AS cor0
----
17

skipif mysql # not compatible
query I rowsort label-684
SELECT + MIN ( 17 ) AS col1 FROM tab1 AS cor0
----
17

query II rowsort
SELECT - 48, + col0 + col2 AS col2 FROM tab1 AS cor0
----
-48
144
-48
147
-48
159

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col2 * + 60 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + col2 * 52 + - 55 AS col1 FROM tab1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL 64 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 60ab040e931c5c85db7ba19364eacc8e

query I rowsort
SELECT DISTINCT ( + + 11 ) * + col1 * ( - col1 ) * + + 51 FROM tab1
----
-109956
-1239249
-14025

query I rowsort
SELECT ALL + 49 * 29 FROM tab0
----
1421
1421
1421

onlyif mysql # aggregate syntax: 
query I rowsort label-691
SELECT ( - ( MAX( + + 30 ) ) ) * + - COUNT( * ) AS col2 FROM tab1
----
90

skipif mysql # not compatible
query I rowsort label-691
SELECT ( - ( MAX ( + + 30 ) ) ) * + - COUNT ( * ) AS col2 FROM tab1
----
90

query I rowsort
SELECT + - 8 AS col2 FROM tab1 cor0
----
-8
-8
-8

query I rowsort
SELECT - + 42 AS col2 FROM tab1 AS cor0
----
-42
-42
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-694
SELECT SUM( ALL 69 ) AS col1 FROM tab1 AS cor0
----
207

skipif mysql # not compatible
query I rowsort label-694
SELECT SUM ( ALL 69 ) AS col1 FROM tab1 AS cor0
----
207

query I rowsort
SELECT DISTINCT + 96 * + 23 * 97 FROM tab2 AS cor0
----
214176

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-696
SELECT DISTINCT SUM( ALL + - 20 ) * - ( 85 ) AS col0, - 29 DIV 4 AS col0 FROM tab2 AS cor0
----
5100
-7

skipif mysql # not compatible
query II rowsort label-696
SELECT DISTINCT SUM ( ALL + - 20 ) * - ( 85 ) AS col0, - 29 / 4 AS col0 FROM tab2 AS cor0
----
5100
-7

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT - col1 * - col1 NOT BETWEEN + col2 AND + ( + - 56 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-698
SELECT DISTINCT col0 DIV - - 99 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-698
SELECT DISTINCT col0 / - - 99 FROM tab0
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-699
SELECT DISTINCT col2, - col2 DIV + 80 FROM tab2
----
23
0
40
0
58
0

skipif mysql # not compatible
query II rowsort label-699
SELECT DISTINCT col2, - col2 / + 80 FROM tab2
----
23
0
40
0
58
0

onlyif mysql # aggregate syntax: 
query I rowsort label-700
SELECT - MAX( ALL col2 ) AS col2 FROM tab1
----
-96

skipif mysql # not compatible
query I rowsort label-700
SELECT - MAX ( ALL col2 ) AS col2 FROM tab1
----
-96

query I rowsort
SELECT ALL + col1 * - 50 AS col1 FROM tab2
----
-2550
-3350
-3850

query I rowsort
SELECT DISTINCT - col1 + + 25 AS col2 FROM tab0 AS cor0
----
-56
24
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 36 + + + col2 * - + col1 col2 FROM tab2 AS cor0
----
-1137
-3044
-3850

onlyif mysql # DIV for integer division: 
query I rowsort label-704
SELECT + 78 DIV + col0 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
0
0
5

skipif mysql # not compatible
query I rowsort label-704
SELECT + 78 / + col0 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
0
0
5

query I rowsort
SELECT + col0 + + - col1 FROM tab1 AS cor0
----
37
44
80

query I rowsort
SELECT - col0 AS col0 FROM tab1 AS cor0 WHERE ( col0 + + 66 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-707
SELECT + MIN( - 74 ) AS col0 FROM tab1
----
-74

skipif mysql # not compatible
query I rowsort label-707
SELECT + MIN ( - 74 ) AS col0 FROM tab1
----
-74

query IIIIII rowsort
SELECT ALL * FROM tab1 cor0 CROSS JOIN tab2 AS cor1 WHERE ( NULL ) IS NULL
----
54 values hashing to c419dc2a653bccd84f7a2da103315187

onlyif mysql # DIV for integer division: 
query II rowsort label-709
SELECT col2 AS col2, col0 * - col2 DIV col2 + 15 + + 12 * - col2 + + - col0 AS col0 FROM tab2
----
23
-353
40
-593
58
-831

skipif mysql # not compatible
query II rowsort label-709
SELECT col2 AS col2, col0 * - col2 / col2 + 15 + + 12 * - col2 + + - col0 AS col0 FROM tab2
----
23
-353
40
-593
58
-831

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 0 > + 80
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col2 * + 63 AS col1 FROM tab2 AS cor0
----
-1449
-2520
-3654

onlyif mysql # aggregate syntax: 
query I rowsort label-712
SELECT ALL - + 45 - - ( - - COUNT( * ) ) FROM tab2 AS cor0
----
-42

skipif mysql # not compatible
query I rowsort label-712
SELECT ALL - + 45 - - ( - - COUNT ( * ) ) FROM tab2 AS cor0
----
-42

query I rowsort
SELECT - - 49 FROM tab1 AS cor0 WHERE col1 IS NOT NULL
----
49
49
49

query I rowsort
SELECT ALL - 27 + + - col2 AS col2 FROM tab1
----
-123
-86
-95

query II rowsort
SELECT - col0 * + col0 + + col2, col0 FROM tab2
----
-2093
46
-4056
64
-5567
75

query I rowsort
SELECT - col2 * - + 36 FROM tab0
----
1692
3564
360

onlyif mysql # aggregate syntax: 
query I rowsort label-717
SELECT DISTINCT ( + COUNT( + + 38 ) ) AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-717
SELECT DISTINCT ( + COUNT ( + + 38 ) ) AS col1 FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-718
SELECT + + 58 * + + ( COUNT( * ) ) AS col2 FROM tab0 WHERE NOT + + col0 + - + col0 >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-718
SELECT + + 58 * + + ( COUNT ( * ) ) AS col2 FROM tab0 WHERE NOT + + col0 + - + col0 >= NULL
----
0

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT NULL >= + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-720
SELECT DISTINCT - COUNT( * ) FROM tab0 AS cor0 WHERE NOT - 55 <> - 99
----
0

skipif mysql # not compatible
query I rowsort label-720
SELECT DISTINCT - COUNT ( * ) FROM tab0 AS cor0 WHERE NOT - 55 <> - 99
----
0

query I rowsort
SELECT DISTINCT - AVG ( ALL 41 ) + 4 AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col2 * + 51 BETWEEN col2 / - - 97 + + 85 * col2 + - + col1 + - + col2 AND NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + col2 * - 57 AS col0 FROM tab1 AS cor0
----
-3363
-3876
-5472

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL > - 55 * - col2 + - 76
----

query I rowsort
SELECT DISTINCT + - 89 * + 83 FROM tab1 AS cor0
----
-7387

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col1 BETWEEN NULL AND col2
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN + col2 AND + + 37
----

query II rowsort
SELECT - col1 AS col1, + col2 + + col0 AS col0 FROM tab1 AS cor0
----
-14
147
-47
159
-5
144

query II rowsort
SELECT col1 * + + ( + + col2 ) AS col0, ( + - col0 ) + col0 AS col1 FROM tab0 cor0
----
210
0
3807
0
99
0

onlyif mysql # aggregate syntax: 
query I rowsort label-730
SELECT ALL SUM( DISTINCT + + col0 ) AS col2 FROM tab2
----
185

skipif mysql # not compatible
query I rowsort label-730
SELECT ALL SUM ( DISTINCT + + col0 ) AS col2 FROM tab2
----
185

query II rowsort
SELECT ALL - 43 * + col2 AS col2, 6 - + col1 + 94 AS col1 FROM tab0
----
-2021
19
-4257
99
-430
79

query I rowsort
SELECT DISTINCT 3 * + col1 FROM tab1
----
141
15
42

query I rowsort
SELECT DISTINCT + 31 AS col1 FROM tab1 WHERE NOT ( NULL ) IS NOT NULL
----
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-734
SELECT DISTINCT - CAST( NULL AS SIGNED ) + + - 73 + + COUNT( * ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-734
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + + - 73 + + COUNT ( * ) AS col2 FROM tab0
----
NULL

query I rowsort
SELECT col2 + - - col1 + + col1 * - + 71 * - ( col0 ) AS col0 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-736
SELECT COUNT( + 93 ), COUNT( * ) AS col2 FROM tab0 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-736
SELECT COUNT ( + 93 ), COUNT ( * ) AS col2 FROM tab0 AS cor0
----
3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-737
SELECT - SUM( - col1 ) AS col0 FROM tab1 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-737
SELECT - SUM ( - col1 ) AS col0 FROM tab1 AS cor0
----
66

onlyif mysql # aggregate syntax: 
query II rowsort label-738
SELECT - + COUNT( DISTINCT col1 ) col1, 73 FROM tab1 AS cor0
----
-3
73

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-738
SELECT - + COUNT ( DISTINCT col1 ) col1, 73 FROM tab1 AS cor0
----
-3
73

query I rowsort
SELECT ALL + 16 + 63 * - - col1 AS col0 FROM tab0 cor0
----
1339
5119
79

onlyif mysql # DIV for integer division: 
query II rowsort label-740
SELECT ALL + 21 + + + col0 + + col1 DIV - - col1 + 48, col0 AS col2 FROM tab2
----
116
46
134
64
145
75

skipif mysql # not compatible
query II rowsort label-740
SELECT ALL + 21 + + + col0 + + col1 / - - col1 + 48, col0 AS col2 FROM tab2
----
116
46
134
64
145
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-741
SELECT DISTINCT + CAST( + ( + - COUNT( * ) ) AS SIGNED ) + MAX( DISTINCT + col2 ) AS col1 FROM tab1
----
93

skipif mysql # not compatible
query I rowsort label-741
SELECT DISTINCT + CAST ( + ( + - COUNT ( * ) ) AS INTEGER ) + MAX ( DISTINCT + col2 ) AS col1 FROM tab1
----
93

query I rowsort
SELECT ALL + 94 + + 4 AS col0 FROM tab0
----
98
98
98

query I rowsort
SELECT + col0 + 74 AS col2 FROM tab1 cor0
----
125
159
165

query I rowsort
SELECT + + col1 + - ( col0 ) - + 70 FROM tab1 AS cor0
----
-107
-114
-150

query II rowsort
SELECT - col1, col2 - + col0 AS col2 FROM tab1 AS cor0
----
-14
45
-47
-23
-5
-26

query I rowsort
SELECT - col1 * + - col1 FROM tab0 cor0
----
1
441
6561

query III rowsort
SELECT * FROM tab1 WHERE NOT - 26 IS NOT NULL
----

query II rowsort
SELECT DISTINCT + 12 AS col2, ( + col2 ) AS col2 FROM tab2
----
12
23
12
40
12
58

query III rowsort
SELECT * FROM tab0 WHERE NOT - 55 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL 39 * + 32 FROM tab2
----
1248
1248
1248

query I rowsort
SELECT ( - col0 ) * 78 AS col1 FROM tab2 AS cor0
----
-3588
-4992
-5850

query II rowsort
SELECT ALL + + 21, + col1 FROM tab0 AS cor0
----
21
1
21
21
21
81

query I rowsort
SELECT ALL - 52 FROM tab1 cor0 WHERE + col0 IS NULL
----

query I rowsort
SELECT + + 53 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to fede6033dee346dbd272085c05724fda

query I rowsort
SELECT - col1 + + - 35 FROM tab1 AS cor0
----
-40
-49
-82

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col2 = col0
----

query I rowsort
SELECT ALL 38 * - 54 AS col0 FROM tab2 AS cor0
----
-2052
-2052
-2052

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 col2 FROM tab2 AS cor0 WHERE - col0 IS NOT NULL
----
23
40
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-759
SELECT DISTINCT + - col0 * - + 47 + CAST( NULL AS SIGNED ) + col0 * - 13 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-759
SELECT DISTINCT + - col0 * - + 47 + CAST ( NULL AS INTEGER ) + col0 * - 13 FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-760
SELECT DISTINCT - + ( + + col0 ) + - CAST( NULL AS SIGNED ) * + col2 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-760
SELECT DISTINCT - + ( + + col0 ) + - CAST ( NULL AS INTEGER ) * + col2 FROM tab1 cor0
----
NULL

query I rowsort
SELECT DISTINCT - 29 AS col1 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN col0 AND + + col1
----

query I rowsort
SELECT ALL + 65 + col0 AS col2 FROM tab2
----
111
129
140

query I rowsort
SELECT DISTINCT - 82 * + col1 AS col0 FROM tab0
----
-1722
-6642
-82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 46 * - 20 col1 FROM tab1
----
-920
-920
-920

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-765
SELECT ALL + CAST( NULL AS SIGNED ) * col2 col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-765
SELECT ALL + CAST ( NULL AS INTEGER ) * col2 col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT 85 + 40 FROM tab2
----
125
125
125

query I rowsort
SELECT col1 + + + col0 FROM tab2
----
141
142
97

onlyif mysql # DIV for integer division: 
query I rowsort label-768
SELECT DISTINCT + 56 DIV + 21 FROM tab1
----
2

skipif mysql # not compatible
query I rowsort label-768
SELECT DISTINCT + 56 / + 21 FROM tab1
----
2

query II rowsort
SELECT ALL - col1, + col2 AS col1 FROM tab0 AS cor0
----
-1
99
-21
10
-81
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-770
SELECT ALL - - ( + col2 ) * - col0 AS col1 FROM tab2 AS cor0 WHERE ( + CAST( NULL AS SIGNED ) + - col0 ) > ( NULL )
----

skipif mysql # not compatible
query I rowsort label-770
SELECT ALL - - ( + col2 ) * - col0 AS col1 FROM tab2 AS cor0 WHERE ( + CAST ( NULL AS INTEGER ) + - col0 ) > ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-771
SELECT DISTINCT + + MIN( DISTINCT - 48 ) AS col1 FROM tab2 AS cor0
----
-48

skipif mysql # not compatible
query I rowsort label-771
SELECT DISTINCT + + MIN ( DISTINCT - 48 ) AS col1 FROM tab2 AS cor0
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-772
SELECT DISTINCT + COUNT( * ) FROM tab1 AS cor0 WHERE ( NULL ) <> - col0
----
0

skipif mysql # not compatible
query I rowsort label-772
SELECT DISTINCT + COUNT ( * ) FROM tab1 AS cor0 WHERE ( NULL ) <> - col0
----
0

query I rowsort
SELECT DISTINCT + ( - col1 ) + col2 FROM tab0 AS cor0
----
-11
-34
98

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-774
SELECT DISTINCT 85 - - 36 + + ( - - MAX( ALL + 73 ) ) DIV 5 FROM tab2
----
135

skipif mysql # not compatible
query I rowsort label-774
SELECT DISTINCT 85 - - 36 + + ( - - MAX ( ALL + 73 ) ) / 5 FROM tab2
----
135

query I rowsort
SELECT DISTINCT 31 - - + col1 * - 33 AS col1 FROM tab1
----
-134
-1520
-431

query I rowsort
SELECT ALL 72 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 906b63c9adb7d9ac7355cab71a25fc49

query II rowsort
SELECT col0 - + 51, col2 * - + 53 AS col0 FROM tab2
----
-5
-1219
13
-2120
24
-3074

onlyif mysql # aggregate syntax: 
query I rowsort label-778
SELECT + 38 * - COUNT( * ) AS col1 FROM tab1 AS cor0
----
-114

skipif mysql # not compatible
query I rowsort label-778
SELECT + 38 * - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-114

onlyif mysql # aggregate syntax: 
query I rowsort label-779
SELECT DISTINCT - ( - + MAX( DISTINCT - 59 ) ) AS col2 FROM tab0 AS cor0 WHERE NOT + 21 / - - col0 = ( + col0 )
----
-59

skipif mysql # not compatible
query I rowsort label-779
SELECT DISTINCT - ( - + MAX ( DISTINCT - 59 ) ) AS col2 FROM tab0 AS cor0 WHERE NOT + 21 / - - col0 = ( + col0 )
----
-59

query I rowsort
SELECT ALL + 84 * + 51 FROM tab2 AS cor0
----
4284
4284
4284

query I rowsort
SELECT ALL 5 * - col0 AS col0 FROM tab1 AS cor0
----
-255
-425
-455

onlyif mysql # aggregate syntax: 
query I rowsort label-782
SELECT ALL - SUM( + + col1 ) + - - 29 FROM tab0 WHERE col1 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-782
SELECT ALL - SUM ( + + col1 ) + - - 29 FROM tab0 WHERE col1 IS NULL
----
NULL

query I rowsort
SELECT + col0 * - + col1 FROM tab2 WHERE NOT ( + + col0 ) <> ( col1 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-784
SELECT * FROM tab0 WHERE NOT NULL IN ( CAST( NULL AS DECIMAL ), col0 )
----

skipif mysql # not compatible
query III rowsort label-784
SELECT * FROM tab0 WHERE NOT NULL IN ( CAST ( NULL AS REAL ), col0 )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NULL NOT BETWEEN col2 AND NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-786
SELECT 63, ( 33 ) + - + CAST( - col2 AS SIGNED ) AS col2 FROM tab0
----
63
132
63
43
63
80

skipif mysql # not compatible
query II rowsort label-786
SELECT 63, ( 33 ) + - + CAST ( - col2 AS INTEGER ) AS col2 FROM tab0
----
63
132
63
43
63
80

query I rowsort
SELECT ALL ( + - col2 ) AS col2 FROM tab2
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-788
SELECT - COUNT( 70 ) AS col2 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-788
SELECT - COUNT ( 70 ) AS col2 FROM tab2
----
-3

query I rowsort
SELECT ALL + 23 * + - 48 AS col1 FROM tab0
----
-1104
-1104
-1104

query I rowsort
SELECT ALL ( - - 95 ) AS col2 FROM tab0
----
95
95
95

onlyif mysql # aggregate syntax: 
query I rowsort label-791
SELECT 68 * + MIN( + + col0 ) + + + COUNT( * ) AS col2 FROM tab0 AS cor0
----
1023

skipif mysql # not compatible
query I rowsort label-791
SELECT 68 * + MIN ( + + col0 ) + + + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
1023

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 40 = + + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-793
SELECT ALL MIN( - col2 ) AS col0 FROM tab0 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-793
SELECT ALL MIN ( - col2 ) AS col0 FROM tab0 AS cor0
----
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-794
SELECT + col0 * + col2 * - - CAST( col0 AS SIGNED ) FROM tab1 AS cor0
----
249696
426275
563108

skipif mysql # not compatible
query I rowsort label-794
SELECT + col0 * + col2 * - - CAST ( col0 AS INTEGER ) FROM tab1 AS cor0
----
249696
426275
563108

onlyif mysql # aggregate syntax: 
query I rowsort label-795
SELECT - MAX( ALL + - col2 ) AS col1 FROM tab0
----
10

skipif mysql # not compatible
query I rowsort label-795
SELECT - MAX ( ALL + - col2 ) AS col1 FROM tab0
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-796
SELECT MIN( - 13 ) * - + 37 AS col2 FROM tab1
----
481

skipif mysql # not compatible
query I rowsort label-796
SELECT MIN ( - 13 ) * - + 37 AS col2 FROM tab1
----
481

query I rowsort
SELECT ALL + ( + 0 ) FROM tab1
----
0
0
0

query II rowsort
SELECT DISTINCT - + col0, col1 FROM tab1 WHERE NOT - col2 IS NULL
----
-51
14
-85
5
-91
47

onlyif mysql # aggregate syntax: 
query I rowsort label-799
SELECT DISTINCT + + COUNT( * ) * + COUNT( * ) * COUNT( 47 ) AS col1 FROM tab1 AS cor0
----
27

skipif mysql # not compatible
query I rowsort label-799
SELECT DISTINCT + + COUNT ( * ) * + COUNT ( * ) * COUNT ( 47 ) AS col1 FROM tab1 AS cor0
----
27

query I rowsort
SELECT DISTINCT 77 * - col0 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 60 + 21 IS NULL
----

query II rowsort
SELECT - + 55, - ( + + col2 ) * + col1 - - col2 AS col2 FROM tab1 AS cor0
----
-55
-1248
-55
-236
-55
-3128

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + + + col1 col1 FROM tab0 cor0
----
-66
-96
66

query I rowsort
SELECT - col2 AS col2 FROM tab2 AS cor0 WHERE NULL <= 47
----

onlyif mysql # DIV for integer division: 
query I rowsort label-805
SELECT + - col0 + 42 DIV col2 AS col0 FROM tab2 cor0
----
-45
-63
-75

skipif mysql # not compatible
query I rowsort label-805
SELECT + - col0 + 42 / col2 AS col0 FROM tab2 cor0
----
-45
-63
-75

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col1 >= + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL BETWEEN col1 AND - - 54 + + 44
----

query II rowsort
SELECT + 11 * + ( 60 ) + col1 * - col1, ( - col2 ) AS col1 FROM tab0
----
-5901
-47
219
-10
659
-99

query I rowsort
SELECT col0 + + + 87 * - 3 AS col2 FROM tab2
----
-186
-197
-215

onlyif mysql # aggregate syntax: 
query I rowsort label-810
SELECT + 55 + - COUNT( * ) * - - 71 AS col0 FROM tab2
----
-158

skipif mysql # not compatible
query I rowsort label-810
SELECT + 55 + - COUNT ( * ) * - - 71 AS col0 FROM tab2
----
-158

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 73 / + ( col1 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 cor0 WHERE col2 >= col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + - ( + + 2 ) + 38 AS col1 FROM tab0 AS cor0
----
36
36
36

query I rowsort
SELECT col2 FROM tab1 AS cor0 WHERE col1 <= + + col0
----
59
68
96

onlyif mysql # DIV for integer division: 
query I rowsort label-815
SELECT DISTINCT + col0 DIV + col0 + - - 79 FROM tab0 AS cor0
----
80

skipif mysql # not compatible
query I rowsort label-815
SELECT DISTINCT + col0 / + col0 + - - 79 FROM tab0 AS cor0
----
80

query II rowsort
SELECT col2 * + - col1 AS col0, 36 FROM tab2 AS cor0
----
-1173
36
-3080
36
-3886
36

onlyif mysql # aggregate syntax: 
query I rowsort label-817
SELECT ALL - - COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE - + 67 < NULL AND - col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-817
SELECT ALL - - COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE - + 67 < NULL AND - col1 IS NULL
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-818
SELECT ( + COUNT( * ) ), - 48 AS col1 FROM tab2, tab2 AS cor0
----
9
-48

skipif mysql # not compatible
query II rowsort label-818
SELECT ( + COUNT ( * ) ), - 48 AS col1 FROM tab2, tab2 AS cor0
----
9
-48

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 col2, - 99 AS col0 FROM tab0 AS cor0
----
1
-99
21
-99
81
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-820
SELECT + col1 * + CAST( - - col0 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
2346
4928
5025

skipif mysql # not compatible
query I rowsort label-820
SELECT + col1 * + CAST ( - - col0 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
2346
4928
5025

query II rowsort
SELECT ALL - + 17 AS col2, 33 - - - 87 FROM tab2 AS cor0
----
-17
-54
-17
-54
-17
-54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-822
SELECT ALL - CAST( NULL AS SIGNED ) * + COUNT( ALL + - col2 ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-822
SELECT ALL - CAST ( NULL AS INTEGER ) * + COUNT ( ALL + - col2 ) AS col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + col1 * - + col0 AS col0 FROM tab1 AS cor0
----
-425
-4277
-714

onlyif mysql # aggregate syntax: 
query II rowsort label-824
SELECT + 69, + MAX( ALL - ( - 7 ) ) + + 44 AS col2 FROM tab2 AS cor0
----
69
51

skipif mysql # not compatible
query II rowsort label-824
SELECT + 69, + MAX ( ALL - ( - 7 ) ) + + 44 AS col2 FROM tab2 AS cor0
----
69
51

onlyif mysql # aggregate syntax: 
query I rowsort label-825
SELECT ALL + SUM( ALL - - col0 ) * - 70 FROM tab0 AS cor0
----
-13930

skipif mysql # not compatible
query I rowsort label-825
SELECT ALL + SUM ( ALL - - col0 ) * - 70 FROM tab0 AS cor0
----
-13930

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-826
SELECT DISTINCT COUNT( * ) DIV + 80 col0 FROM tab2
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-826
SELECT DISTINCT COUNT ( * ) / + 80 col0 FROM tab2
----
0

query I rowsort
SELECT DISTINCT - ( ( col1 ) ) AS col2 FROM tab1
----
-14
-47
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-828
SELECT + 95 * ( - CAST( NULL AS SIGNED ) ) + + + 90 * COUNT( * ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-828
SELECT + 95 * ( - CAST ( NULL AS INTEGER ) ) + + + 90 * COUNT ( * ) FROM tab0
----
NULL

query I rowsort
SELECT + col1 + 27 AS col2 FROM tab2
----
104
78
94

query I rowsort
SELECT DISTINCT + ( - + 51 ) AS col1 FROM tab2 AS cor0
----
-51

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-831
SELECT DISTINCT 21 * + ( - col1 ) + + + 99 * - 35 + + col1, CAST( NULL AS DECIMAL ) / - + 4 * - - 52 AS col0 FROM tab0 AS cor0
----
-3485
NULL
-3885
NULL
-5085
NULL

skipif mysql # not compatible
query II rowsort label-831
SELECT DISTINCT 21 * + ( - col1 ) + + + 99 * - 35 + + col1, CAST ( NULL AS REAL ) / - + 4 * - - 52 AS col0 FROM tab0 AS cor0
----
-3485
NULL
-3885
NULL
-5085
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-832
SELECT DISTINCT + col2 FROM tab0 AS cor0 WHERE - 91 - - - col1 + CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-832
SELECT DISTINCT + col2 FROM tab0 AS cor0 WHERE - 91 - - - col1 + CAST ( NULL AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT + 24 + + + 28 AS col1 FROM tab2 AS cor0
----
52

query I rowsort
SELECT ALL - col2 - + + 1 FROM tab2
----
-24
-41
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-835
SELECT ALL + MAX( DISTINCT + 17 ) FROM tab1
----
17

skipif mysql # not compatible
query I rowsort label-835
SELECT ALL + MAX ( DISTINCT + 17 ) FROM tab1
----
17

query III rowsort
SELECT * FROM tab2 WHERE + + col0 + - 41 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + 82 AS col1 FROM tab2 WHERE NULL <> - + col1
----

query I rowsort
SELECT 60 + - + col1 * - + col1 + + - col1 FROM tab1
----
2222
242
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-839
SELECT DISTINCT + col0 AS col2 FROM tab0 AS cor0 WHERE col1 * + CAST( NULL AS SIGNED ) IS NULL
----
15
87
97

skipif mysql # not compatible
query I rowsort label-839
SELECT DISTINCT + col0 AS col2 FROM tab0 AS cor0 WHERE col1 * + CAST ( NULL AS INTEGER ) IS NULL
----
15
87
97

query I rowsort
SELECT DISTINCT 50 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
50

query I rowsort
SELECT - 53 FROM tab2 WHERE NOT + + 10 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-842
SELECT COUNT( * ) AS col2 FROM tab1 cor0 WHERE NOT col2 > ( + + col2 * CAST( - col1 AS DECIMAL ) )
----
0

skipif mysql # not compatible
query I rowsort label-842
SELECT COUNT ( * ) AS col2 FROM tab1 cor0 WHERE NOT col2 > ( + + col2 * CAST ( - col1 AS REAL ) )
----
0

query I rowsort
SELECT col2 FROM tab0 AS cor0 WHERE NOT NULL < ( NULL )
----

query I rowsort
SELECT - col0 * + col0 * col0 AS col0 FROM tab0 AS cor0
----
-3375
-658503
-912673

onlyif mysql # aggregate syntax: 
query I rowsort label-845
SELECT ALL 93 * + 43 + MAX( DISTINCT + + 74 ) AS col2 FROM tab2 cor0
----
4073

skipif mysql # not compatible
query I rowsort label-845
SELECT ALL 93 * + 43 + MAX ( DISTINCT + + 74 ) AS col2 FROM tab2 cor0
----
4073

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-846
SELECT ALL - col1 / - 54 * - CAST( NULL AS SIGNED ) + - col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-846
SELECT ALL - col1 / - 54 * - CAST ( NULL AS INTEGER ) + - col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-847
SELECT col0 DIV + col0 col1 FROM tab0
----
1
1
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-847
SELECT col0 / + col0 col1 FROM tab0
----
1
1
1

query II rowsort
SELECT - col0 * - + ( 28 ) AS col1, col0 + col1 + + + 12 FROM tab1
----
1428
77
2380
102
2548
150

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 19 col2, 59 * + + 39 * col2 AS col2 FROM tab1
----
-19
135759
-19
156468
-19
220896

query III rowsort
SELECT * FROM tab1 WHERE NOT - ( - - 79 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT + 43 + + 61 * - 36, + col2 AS col0 FROM tab0
----
-2153
10
-2153
47
-2153
99

query I rowsort
SELECT DISTINCT + 27 * - + 23 AS col1 FROM tab0
----
-621

onlyif mysql # aggregate syntax: 
query I rowsort label-853
SELECT DISTINCT - - ( - ( + COUNT( * ) ) ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-853
SELECT DISTINCT - - ( - ( + COUNT ( * ) ) ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

query I rowsort
SELECT + 78 AS col1 FROM tab2 WHERE NULL IS NULL
----
78
78
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 86 col1 FROM tab1
----
-86
-86
-86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-856
SELECT ALL + CAST( + + ( - col0 ) AS SIGNED ) * col1 AS col2 FROM tab0 cor0
----
-1215
-1827
-97

skipif mysql # not compatible
query I rowsort label-856
SELECT ALL + CAST ( + + ( - col0 ) AS INTEGER ) * col1 AS col2 FROM tab0 cor0
----
-1215
-1827
-97

query I rowsort
SELECT DISTINCT col0 + + - 38 AS col0 FROM tab2 AS cor0
----
26
37
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + col1 * col1 col2 FROM tab0 AS cor0
----
100
451
6608

query I rowsort
SELECT ALL - col1 + 32 FROM tab2 AS cor0
----
-19
-35
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-860
SELECT - + MIN( ALL - col0 ) + + COUNT( * ) FROM tab0 AS cor0
----
100

skipif mysql # not compatible
query I rowsort label-860
SELECT - + MIN ( ALL - col0 ) + + COUNT ( * ) FROM tab0 AS cor0
----
100

query I rowsort
SELECT + col2 + - 68 AS col2 FROM tab0 cor0
----
-21
-58
31

query I rowsort
SELECT DISTINCT + + 29 * 81 + + + col1 FROM tab1 AS cor0
----
2354
2363
2396

query I rowsort
SELECT - col1 * + - col0 + + col1 AS col0 FROM tab2 AS cor0
----
2397
5005
5092

onlyif mysql # DIV for integer division: 
query I rowsort label-864
SELECT ALL + 21 DIV + - 81 + + 82 FROM tab0 AS cor0
----
82
82
82

skipif mysql # not compatible
query I rowsort label-864
SELECT ALL + 21 / + - 81 + + 82 FROM tab0 AS cor0
----
82
82
82

onlyif mysql # aggregate syntax: 
query I rowsort label-865
SELECT DISTINCT - MIN( + 72 ) + - - COUNT( * ) FROM tab0 AS cor0
----
-69

skipif mysql # not compatible
query I rowsort label-865
SELECT DISTINCT - MIN ( + 72 ) + - - COUNT ( * ) FROM tab0 AS cor0
----
-69

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 58 IS NULL
----

query II rowsort
SELECT DISTINCT col2 - + - col0 AS col1, - col2 * - 57 + - ( + col2 ) FROM tab2 AS cor0
----
104
2240
133
3248
69
1288

query I rowsort
SELECT col2 + - 42 AS col1 FROM tab0 AS cor0
----
-32
5
57

onlyif mysql # aggregate syntax: 
query I rowsort label-869
SELECT DISTINCT - COUNT( col0 ) - + 97 AS col2 FROM tab1
----
-100

skipif mysql # not compatible
query I rowsort label-869
SELECT DISTINCT - COUNT ( col0 ) - + 97 AS col2 FROM tab1
----
-100

onlyif mysql # aggregate syntax: 
query I rowsort label-870
SELECT COUNT( * ) * + - 44 AS col2 FROM tab0
----
-132

skipif mysql # not compatible
query I rowsort label-870
SELECT COUNT ( * ) * + - 44 AS col2 FROM tab0
----
-132

query I rowsort
SELECT ALL + 54 - + 84 AS col1 FROM tab1
----
-30
-30
-30

query I rowsort
SELECT DISTINCT - 21 - - + 30 FROM tab0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-873
SELECT ALL - COUNT( * ) - + + 70 AS col1 FROM tab2
----
-73

skipif mysql # not compatible
query I rowsort label-873
SELECT ALL - COUNT ( * ) - + + 70 AS col1 FROM tab2
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-874
SELECT DISTINCT COUNT( * ) * 51 AS col2 FROM tab2 WHERE NOT + ( + col2 ) * - 81 IS NULL
----
153

skipif mysql # not compatible
query I rowsort label-874
SELECT DISTINCT COUNT ( * ) * 51 AS col2 FROM tab2 WHERE NOT + ( + col2 ) * - 81 IS NULL
----
153

query I rowsort
SELECT col1 - + col2 * - - ( + col2 ) FROM tab2 cor0
----
-1523
-3297
-478

query I rowsort
SELECT 50 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL - col2 FROM tab0 AS cor0 WHERE NOT - col1 IS NULL
----
-10
-47
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-878
SELECT ALL COUNT( + 58 ) col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-878
SELECT ALL COUNT ( + 58 ) col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9

query I rowsort
SELECT DISTINCT + 21 * - col0 * col0 AS col2 FROM tab1 AS cor0
----
-151725
-173901
-54621

onlyif mysql # aggregate syntax: 
query I rowsort label-880
SELECT ALL - - ( COUNT( - col2 ) ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-880
SELECT ALL - - ( COUNT ( - col2 ) ) FROM tab2 AS cor0
----
3

query I rowsort
SELECT DISTINCT - col1 * 56 AS col0 FROM tab1 AS cor0
----
-2632
-280
-784

query I rowsort
SELECT ALL - - col0 * - - 5 FROM tab0 AS cor0
----
435
485
75

onlyif mysql # aggregate syntax: 
query I rowsort label-883
SELECT SUM( DISTINCT + - 90 ) FROM tab0 AS cor0
----
-90

skipif mysql # not compatible
query I rowsort label-883
SELECT SUM ( DISTINCT + - 90 ) FROM tab0 AS cor0
----
-90

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 95 / - 85 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-885
SELECT + + ( COUNT( * ) ) * - - 73 FROM tab2 AS cor0
----
219

skipif mysql # not compatible
query I rowsort label-885
SELECT + + ( COUNT ( * ) ) * - - 73 FROM tab2 AS cor0
----
219

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-886
SELECT DISTINCT - COUNT( * ) DIV COUNT( DISTINCT col0 ) * 79 FROM tab0 AS cor0
----
-79

skipif mysql # not compatible
query I rowsort label-886
SELECT DISTINCT - COUNT ( * ) / COUNT ( DISTINCT col0 ) * 79 FROM tab0 AS cor0
----
-79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-887
SELECT ALL - - CAST( COUNT( * ) AS SIGNED ) AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-887
SELECT ALL - - CAST ( COUNT ( * ) AS INTEGER ) AS col2 FROM tab2 AS cor0
----
3

query II rowsort
SELECT ALL + 27 AS col2, ( - 93 ) AS col1 FROM tab2, tab2 AS cor0
----
18 values hashing to d39c1d978f44a3491f621d39fb61bb80

onlyif mysql # aggregate syntax: 
query I rowsort label-889
SELECT DISTINCT 35 * - + COUNT( * ) AS col2 FROM tab1
----
-105

skipif mysql # not compatible
query I rowsort label-889
SELECT DISTINCT 35 * - + COUNT ( * ) AS col2 FROM tab1
----
-105

onlyif mysql # aggregate syntax: 
query I rowsort label-890
SELECT - + MIN( + 94 ) * + 52 FROM tab1 AS cor0
----
-4888

skipif mysql # not compatible
query I rowsort label-890
SELECT - + MIN ( + 94 ) * + 52 FROM tab1 AS cor0
----
-4888

onlyif mysql # aggregate syntax: 
query I rowsort label-891
SELECT - MIN( ALL col1 ) FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-891
SELECT - MIN ( ALL col1 ) FROM tab0 AS cor0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-892
SELECT 75 + col2 + - + col0 + - - CAST( NULL AS SIGNED ) - 26 AS col0 FROM tab2 AS cor0 WHERE + col2 + 52 IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-892
SELECT 75 + col2 + - + col0 + - - CAST ( NULL AS INTEGER ) - 26 AS col0 FROM tab2 AS cor0 WHERE + col2 + 52 IS NOT NULL
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-893
SELECT + 96 + + MAX( ALL + 11 ) AS col1 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
107

skipif mysql # not compatible
query I rowsort label-893
SELECT + 96 + + MAX ( ALL + 11 ) AS col1 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
107

query I rowsort
SELECT - 12 * + col1 * - col1 FROM tab2
----
31212
53868
71148

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + col0, + col0 col1 FROM tab2 AS cor0
----
46
46
64
64
75
75

onlyif mysql # DIV for integer division: 
query I rowsort label-896
SELECT - 43 DIV + col1 AS col1 FROM tab0 AS cor0
----
-2
-43
0

skipif mysql # not compatible
query I rowsort label-896
SELECT - 43 / + col1 AS col1 FROM tab0 AS cor0
----
-2
-43
0

query I rowsort
SELECT DISTINCT - 78 + + - 38 FROM tab2 AS cor0
----
-116

query I rowsort
SELECT - + 59 FROM tab2 AS cor0 WHERE 79 IS NULL
----

query I rowsort
SELECT DISTINCT - col1 AS col1 FROM tab1 AS cor0 WHERE ( - 15 ) IS NOT NULL
----
-14
-47
-5

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-900
SELECT ALL CAST( NULL AS DECIMAL ) + - col2, CAST( NULL AS SIGNED ) + + col1 FROM tab1 AS cor0 WHERE NULL <= ( + col2 )
----

skipif mysql # not compatible
query II rowsort label-900
SELECT ALL CAST ( NULL AS REAL ) + - col2, CAST ( NULL AS INTEGER ) + + col1 FROM tab1 AS cor0 WHERE NULL <= ( + col2 )
----

query I rowsort
SELECT - 82 FROM tab1 AS cor0 WHERE col0 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-902
SELECT - 5 - - col2 DIV + col1 FROM tab1 AS cor0
----
-4
1
6

skipif mysql # not compatible
query I rowsort label-902
SELECT - 5 - - col2 / + col1 FROM tab1 AS cor0
----
-4
1
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-903
SELECT - CAST( col1 AS SIGNED ) - - + col0 AS col0 FROM tab2
----
-13
-5
8

skipif mysql # not compatible
query I rowsort label-903
SELECT - CAST ( col1 AS INTEGER ) - - + col0 AS col0 FROM tab2
----
-13
-5
8

onlyif mysql # aggregate syntax: 
query I rowsort label-904
SELECT 11 + COUNT( + col2 ) FROM tab1
----
14

skipif mysql # not compatible
query I rowsort label-904
SELECT 11 + COUNT ( + col2 ) FROM tab1
----
14

query I rowsort
SELECT ALL ( - col2 ) - col0 AS col0 FROM tab1
----
-144
-147
-159

query I rowsort
SELECT 90 + + - col0 * - - 48 FROM tab1
----
-2358
-3990
-4278

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-907
SELECT ALL + 30 * col1 * CAST( 44 AS SIGNED ) * - 46 - 9 FROM tab1
----
-2853849
-303609
-850089

skipif mysql # not compatible
query I rowsort label-907
SELECT ALL + 30 * col1 * CAST ( 44 AS INTEGER ) * - 46 - 9 FROM tab1
----
-2853849
-303609
-850089

query I rowsort
SELECT + - 56 AS col2 FROM tab1 AS cor0
----
-56
-56
-56

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + 64 = - + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-910
SELECT ALL 90 DIV - col1 AS col0 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-910
SELECT ALL 90 / - col1 AS col0 FROM tab2 AS cor0
----
-1
-1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-911
SELECT DISTINCT - SUM( ALL - col1 ) col2 FROM tab1 AS cor0
----
66

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-911
SELECT DISTINCT - SUM ( ALL - col1 ) col2 FROM tab1 AS cor0
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-912
SELECT DISTINCT - + COUNT( * ) col1 FROM tab1 cor0 WHERE NOT col2 - 23 >= col1
----
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-912
SELECT DISTINCT - + COUNT ( * ) col1 FROM tab1 cor0 WHERE NOT col2 - 23 >= col1
----
-1

query I rowsort
SELECT col1 * - col1 * + + col2 AS col2 FROM tab2
----
-237160
-260362
-59823

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 83 col0 FROM tab2 WHERE - - col2 <> NULL
----

query I rowsort
SELECT DISTINCT - - col1 FROM tab1 WHERE + col0 > + - col0 * + col1 + - 17
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-916
SELECT - - 68 + - 1 + - COUNT( * ) col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-916
SELECT - - 68 + - 1 + - COUNT ( * ) col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 99 col0, - 35 AS col0 FROM tab0
----
99
-35
99
-35
99
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-918
SELECT ALL - - MIN( DISTINCT + col2 ) FROM tab0 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-918
SELECT ALL - - MIN ( DISTINCT + col2 ) FROM tab0 AS cor0
----
10

onlyif mysql # DIV for integer division: 
query I rowsort label-919
SELECT ALL col1 + + col1 - + col0 DIV - + col1 AS col1 FROM tab0 AS cor0
----
162
46
99

skipif mysql # not compatible
query I rowsort label-919
SELECT ALL col1 + + col1 - + col0 / - + col1 AS col1 FROM tab0 AS cor0
----
162
46
99

onlyif mysql # aggregate syntax: 
query I rowsort label-920
SELECT MAX( col1 ) col0 FROM tab1 AS cor0
----
47

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-920
SELECT MAX ( col1 ) col0 FROM tab1 AS cor0
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-921
SELECT ALL COUNT( * ) - + 76 FROM tab0 WHERE NOT - + col2 IS NULL
----
-73

skipif mysql # not compatible
query I rowsort label-921
SELECT ALL COUNT ( * ) - + 76 FROM tab0 WHERE NOT - + col2 IS NULL
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-922
SELECT ALL + - COUNT( * ) FROM tab0 WHERE NOT NULL > - col0
----
0

skipif mysql # not compatible
query I rowsort label-922
SELECT ALL + - COUNT ( * ) FROM tab0 WHERE NOT NULL > - col0
----
0

query I rowsort
SELECT 52 AS col1 FROM tab1 WHERE col2 IS NULL
----

query I rowsort
SELECT DISTINCT 48 / - col1 * + col2 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col1 = + + 18
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-926
SELECT - + CAST( col0 AS SIGNED ) col0 FROM tab2 cor0
----
-46
-64
-75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-926
SELECT - + CAST ( col0 AS INTEGER ) col0 FROM tab2 cor0
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-927
SELECT DISTINCT MAX( ALL + + col1 ) AS col1 FROM tab2
----
77

skipif mysql # not compatible
query I rowsort label-927
SELECT DISTINCT MAX ( ALL + + col1 ) AS col1 FROM tab2
----
77

query II rowsort
SELECT col2 - + col2 AS col2, - 91 + col0 FROM tab0
----
0
-4
0
-76
0
6

query I rowsort
SELECT - col2 + + - 92 FROM tab0 cor0
----
-102
-139
-191

onlyif mysql # aggregate syntax: 
query I rowsort label-930
SELECT DISTINCT + COUNT( ALL - col2 ) AS col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-930
SELECT DISTINCT + COUNT ( ALL - col2 ) AS col0 FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-931
SELECT + 22 + - ( + COUNT( * ) ) AS col2 FROM tab0 cor0
----
19

skipif mysql # not compatible
query I rowsort label-931
SELECT + 22 + - ( + COUNT ( * ) ) AS col2 FROM tab0 cor0
----
19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-932
SELECT ALL + COUNT( * ) + - - COUNT( * ) + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-932
SELECT ALL + COUNT ( * ) + - - COUNT ( * ) + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT + col1 * + + col0 + + 29 FROM tab2 AS cor0
----
2375
4957
5054

query I rowsort
SELECT - col0 * - col1 FROM tab1 AS cor0 WHERE ( NULL ) = - - col1
----

query II rowsort
SELECT ALL - + 63 * 21 * + + ( - + 27 ) / - col2 * + col0, col1 AS col1 FROM tab2 AS cor0 WHERE NULL = - col1
----

query II rowsort
SELECT 88, + col1 * - col1 * - col2 * + ( ( + col1 ) ) AS col2 FROM tab1
----
88
263424
88
7059964
88
7375

query I rowsort
SELECT - + AVG ( + col0 ) AS col2 FROM tab1 WHERE NOT + col2 - - col1 IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-938
SELECT DISTINCT MIN( ALL + - 73 ) FROM tab1
----
-73

skipif mysql # not compatible
query I rowsort label-938
SELECT DISTINCT MIN ( ALL + - 73 ) FROM tab1
----
-73

query II rowsort
SELECT DISTINCT 5, + ( + + 0 ) AS col0 FROM tab0 AS cor0
----
5
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-940
SELECT - - CAST( NULL AS SIGNED ) AS col0, col2 AS col2 FROM tab2 AS cor0
----
NULL
23
NULL
40
NULL
58

skipif mysql # not compatible
query II rowsort label-940
SELECT - - CAST ( NULL AS INTEGER ) AS col0, col2 AS col2 FROM tab2 AS cor0
----
NULL
23
NULL
40
NULL
58

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-941
SELECT - CAST( NULL AS SIGNED ) AS col1, 23 AS col2 FROM tab0 AS cor0
----
NULL
23
NULL
23
NULL
23

skipif mysql # not compatible
query II rowsort label-941
SELECT - CAST ( NULL AS INTEGER ) AS col1, 23 AS col2 FROM tab0 AS cor0
----
NULL
23
NULL
23
NULL
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-942
SELECT ALL - CAST( 34 AS SIGNED ) FROM tab0
----
-34
-34
-34

skipif mysql # not compatible
query I rowsort label-942
SELECT ALL - CAST ( 34 AS INTEGER ) FROM tab0
----
-34
-34
-34

onlyif mysql # DIV for integer division: 
query I rowsort label-943
SELECT DISTINCT col1 DIV col0 + - col2 FROM tab2 WHERE NOT ( col2 * ( ( 29 ) ) ) IN ( col0 )
----
-22
-39
-58

skipif mysql # not compatible
query I rowsort label-943
SELECT DISTINCT col1 / col0 + - col2 FROM tab2 WHERE NOT ( col2 * ( ( 29 ) ) ) IN ( col0 )
----
-22
-39
-58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-944
SELECT DISTINCT CAST( - COUNT( * ) AS SIGNED ) AS col2 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-944
SELECT DISTINCT CAST ( - COUNT ( * ) AS INTEGER ) AS col2 FROM tab1
----
-3

query I rowsort
SELECT 99 AS col1 FROM tab0 WHERE ( NULL ) < NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 col2 FROM tab0 WHERE NOT col2 BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-947
SELECT - CAST( NULL AS SIGNED ) FROM tab2 WHERE NOT NULL > col0
----

skipif mysql # not compatible
query I rowsort label-947
SELECT - CAST ( NULL AS INTEGER ) FROM tab2 WHERE NOT NULL > col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-948
SELECT - col2 * + 71 AS col1 FROM tab0 WHERE NOT ( CAST( NULL AS SIGNED ) ) NOT IN ( col0 )
----

skipif mysql # not compatible
query I rowsort label-948
SELECT - col2 * + 71 AS col1 FROM tab0 WHERE NOT ( CAST ( NULL AS INTEGER ) ) NOT IN ( col0 )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT ( 52 - col0 ) BETWEEN col1 AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - col0 FROM tab0 WHERE 89 + col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-951
SELECT 6 + - COUNT( DISTINCT col1 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-951
SELECT 6 + - COUNT ( DISTINCT col1 ) FROM tab1
----
3

query I rowsort
SELECT - ( 50 ) + col0 FROM tab2 WHERE ( NULL ) NOT BETWEEN + col1 AND ( + col0 + 24 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-953
SELECT CAST( + MAX( ALL 0 ) AS SIGNED ) * - COUNT( * ) + - COUNT( ALL 45 ) AS col1 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-953
SELECT CAST ( + MAX ( ALL 0 ) AS INTEGER ) * - COUNT ( * ) + - COUNT ( ALL 45 ) AS col1 FROM tab1
----
-3

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + ( col0 ) IS NULL
----

query I rowsort
SELECT ALL + col2 * - 79 + - col2 * col0 FROM tab1
----
-11560
-12480
-9676

query I rowsort
SELECT col0 FROM tab2 WHERE NOT - col1 IS NULL
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-957
SELECT ALL MAX( ALL - 9 ) AS col1 FROM tab2
----
-9

skipif mysql # not compatible
query I rowsort label-957
SELECT ALL MAX ( ALL - 9 ) AS col1 FROM tab2
----
-9

query I rowsort
SELECT 19 * + col1 FROM tab1 WHERE NOT + 26 + 92 IS NULL
----
266
893
95

query I rowsort
SELECT ALL 75 FROM tab1 WHERE NOT NULL IS NOT NULL
----
75
75
75

query I rowsort
SELECT ALL - col2 + + col0 AS col2 FROM tab2 WHERE NOT ( col1 ) > - col1 * + 58
----

query I rowsort
SELECT - col0 FROM tab0 WHERE col2 * + 30 <> NULL
----

query I rowsort
SELECT - col1 * + 75 AS col0 FROM tab2
----
-3825
-5025
-5775

query I rowsort
SELECT - 30 * - col1 + 61 FROM tab2 AS cor0
----
1591
2071
2371

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( col2 + - 92 * 74 ) NOT BETWEEN NULL AND + col0 - col0
----

query I rowsort
SELECT ALL 0 + - ( 65 ) AS col0 FROM tab1 AS cor0
----
-65
-65
-65

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 86 * ( col1 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-967
SELECT 0 DIV - col1 + col1 AS col2 FROM tab1 AS cor0
----
14
47
5

skipif mysql # not compatible
query I rowsort label-967
SELECT 0 / - col1 + col1 AS col2 FROM tab1 AS cor0
----
14
47
5

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) >= 86
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-969
SELECT ALL + col0 + col1 AS col1 FROM tab2 AS cor0 WHERE + 42 NOT IN ( CAST( NULL AS DECIMAL ) )
----

skipif mysql # not compatible
query I rowsort label-969
SELECT ALL + col0 + col1 AS col1 FROM tab2 AS cor0 WHERE + 42 NOT IN ( CAST ( NULL AS REAL ) )
----

query I rowsort
SELECT DISTINCT - col1 - + 16 FROM tab1 AS cor0
----
-21
-30
-63

query I rowsort
SELECT DISTINCT - ( - col1 ) * + 72 FROM tab0 AS cor0
----
1512
5832
72

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col0 + ( - col1 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-973
SELECT + COUNT( * ) * SUM( col2 ) - - COUNT( * ) * COUNT( * ) AS col1 FROM tab2 AS cor0
----
372

skipif mysql # not compatible
query I rowsort label-973
SELECT + COUNT ( * ) * SUM ( col2 ) - - COUNT ( * ) * COUNT ( * ) AS col1 FROM tab2 AS cor0
----
372

query I rowsort
SELECT col0 - + 76 AS col0 FROM tab0 AS cor0 WHERE + col2 - + 29 < + col0
----
11
21

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( 15 ) = - col1
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( ( col0 ) + - col0 ) < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-977
SELECT - - COUNT( * ) - COUNT( * ) col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-977
SELECT - - COUNT ( * ) - COUNT ( * ) col1 FROM tab0 AS cor0
----
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 67 <= ( - 52 )
----

query I rowsort
SELECT ALL + col2 AS col2 FROM tab0 AS cor0 WHERE NULL NOT IN ( + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-980
SELECT ALL ( - 34 ) * - COUNT( * ) FROM tab0 AS cor0
----
102

skipif mysql # not compatible
query I rowsort label-980
SELECT ALL ( - 34 ) * - COUNT ( * ) FROM tab0 AS cor0
----
102

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( + col1 + + 0 ) NOT BETWEEN ( - 47 ) AND ( + col0 + + col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL 24 * col2 - col0 FROM tab2 AS cor0 WHERE NULL IN ( col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-983
SELECT + COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE NOT - 74 IN ( col2 )
----
3

skipif mysql # not compatible
query I rowsort label-983
SELECT + COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE NOT - 74 IN ( col2 )
----
3

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-984
SELECT + COUNT( * ) * + CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-984
SELECT + COUNT ( * ) * + CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-985
SELECT DISTINCT COUNT( ALL - 31 ) DIV - 37 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-985
SELECT DISTINCT COUNT ( ALL - 31 ) / - 37 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-986
SELECT - SUM( - - ( 62 ) ) FROM tab0
----
-186

skipif mysql # not compatible
query I rowsort label-986
SELECT - SUM ( - - ( 62 ) ) FROM tab0
----
-186

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL < 79 - col0 / - col1 OR NOT - col2 NOT IN ( col2 )
----

query I rowsort
SELECT ALL + col2 FROM tab0 WHERE + col0 / - 44 IS NOT NULL
----
10
47
99

query I rowsort
SELECT ALL - 15 * col2 AS col0 FROM tab1
----
-1020
-1440
-885

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-990
SELECT ALL + col1 AS col2 FROM tab0 WHERE NULL >= CAST( NULL AS SIGNED ) * - 36
----

skipif mysql # not compatible
query I rowsort label-990
SELECT ALL + col1 AS col2 FROM tab0 WHERE NULL >= CAST ( NULL AS INTEGER ) * - 36
----

query I rowsort
SELECT DISTINCT col1 FROM tab0 AS cor0 WHERE NOT - col0 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-992
SELECT 38 * col1 + - col1 AS col0 FROM tab0 AS cor0 WHERE NOT - CAST( NULL AS SIGNED ) + - col0 <> NULL
----

skipif mysql # not compatible
query I rowsort label-992
SELECT 38 * col1 + - col1 AS col0 FROM tab0 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) + - col0 <> NULL
----

query I rowsort
SELECT ALL + + ( col0 ) * 3 AS col0 FROM tab0 cor0
----
261
291
45

query I rowsort
SELECT DISTINCT + col2 * + ( + 27 ) - 14 FROM tab1 AS cor0
----
1579
1822
2578

onlyif mysql # aggregate syntax: 
query I rowsort label-995
SELECT DISTINCT + COUNT( * ) FROM tab2 AS cor0 WHERE NOT 7 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-995
SELECT DISTINCT + COUNT ( * ) FROM tab2 AS cor0 WHERE NOT 7 IS NULL
----
3

query I rowsort
SELECT DISTINCT + 43 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
43

query I rowsort
SELECT ALL + 56 * - 58 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 4d357e1f9d42e6990d2d2f992fbb4624

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-998
SELECT ALL + 93 - CAST( - col0 AS SIGNED ) AS col2 FROM tab0 WHERE NOT ( NULL ) IN ( - col0 )
----

skipif mysql # not compatible
query I rowsort label-998
SELECT ALL + 93 - CAST ( - col0 AS INTEGER ) AS col2 FROM tab0 WHERE NOT ( NULL ) IN ( - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-999
SELECT ALL - + ( MAX( col0 ) ) AS col0 FROM tab1 AS cor0 WHERE - col2 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-999
SELECT ALL - + ( MAX ( col0 ) ) AS col0 FROM tab1 AS cor0 WHERE - col2 IS NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1000
SELECT * FROM tab2 AS cor0 WHERE + CAST( col0 AS SIGNED ) * 79 >= NULL
----

skipif mysql # not compatible
query III rowsort label-1000
SELECT * FROM tab2 AS cor0 WHERE + CAST ( col0 AS INTEGER ) * 79 >= NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-1001
SELECT ALL + 56 AS col2, COUNT( * ) * 19 FROM tab0 AS cor0
----
56
57

skipif mysql # not compatible
query II rowsort label-1001
SELECT ALL + 56 AS col2, COUNT ( * ) * 19 FROM tab0 AS cor0
----
56
57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1002
SELECT col0 * - ( - 89 ) FROM tab0 AS cor0 WHERE 36 BETWEEN ( + CAST( NULL AS SIGNED ) ) AND NULL
----

skipif mysql # not compatible
query I rowsort label-1002
SELECT col0 * - ( - 89 ) FROM tab0 AS cor0 WHERE 36 BETWEEN ( + CAST ( NULL AS INTEGER ) ) AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( ( + 90 ) * + col0 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL col1 * + 92 + - 41 AS col0 FROM tab0 AS cor0
----
1891
51
7411

onlyif mysql # aggregate syntax: 
query I rowsort label-1005
SELECT - + 67 + + COUNT( * ) AS col1 FROM tab2 AS cor0
----
-64

skipif mysql # not compatible
query I rowsort label-1005
SELECT - + 67 + + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-64

query I rowsort
SELECT - 65 + + - col1 * - col1 FROM tab2 AS cor0
----
2536
4424
5864

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1007
SELECT DISTINCT + col2 * col1 + ( + CAST( col0 AS DECIMAL ) - + col0 ) FROM tab2 AS cor0 WHERE NOT col1 + - col2 * 34 NOT BETWEEN + CAST( NULL AS SIGNED ) AND col1
----

skipif mysql # not compatible
query I rowsort label-1007
SELECT DISTINCT + col2 * col1 + ( + CAST ( col0 AS REAL ) - + col0 ) FROM tab2 AS cor0 WHERE NOT col1 + - col2 * 34 NOT BETWEEN + CAST ( NULL AS INTEGER ) AND col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 6, + 22 + - - col0 col1 FROM tab1 AS cor0
----
6
107
6
113
6
73

onlyif mysql # DIV for integer division: 
query I rowsort label-1009
SELECT ALL + col2 + + 64 DIV + col2 FROM tab1
----
60
68
96

skipif mysql # not compatible
query I rowsort label-1009
SELECT ALL + col2 + + 64 / + col2 FROM tab1
----
60
68
96

query I rowsort
SELECT col0 + - 89 FROM tab0
----
-2
-74
8

query I rowsort
SELECT - 91 + - 88 AS col2 FROM tab1
----
-179
-179
-179

query I rowsort
SELECT ALL - 10 * - col2 FROM tab0 WHERE NOT 3 - - 60 < 33
----
100
470
990

query I rowsort
SELECT - col1 + - col1 + - col1 * - 23 FROM tab2
----
1071
1407
1617

query I rowsort
SELECT + col0 * + + ( + + 56 ) + - + col2 FROM tab2
----
2553
3544
4142

onlyif mysql # aggregate syntax: 
query II rowsort label-1015
SELECT ALL + COUNT( + col0 ) AS col2, - 85 * + COUNT( DISTINCT col0 ) FROM tab2
----
3
-255

skipif mysql # not compatible
query II rowsort label-1015
SELECT ALL + COUNT ( + col0 ) AS col2, - 85 * + COUNT ( DISTINCT col0 ) FROM tab2
----
3
-255

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col2 * + 78 NOT BETWEEN NULL AND ( - col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - - col1 * - + col2 - col0 * + - col0 + col1 AS col0 FROM tab0 AS cor0
----
-3501
7380
9311

query I rowsort
SELECT ALL + + ( - 41 ) + col0 FROM tab1 cor0
----
10
44
50

query I rowsort
SELECT ALL 1 FROM tab1 AS cor0 WHERE NULL BETWEEN - col0 AND NULL
----

query I rowsort
SELECT DISTINCT - col0 + 8 AS col0 FROM tab1 AS cor0
----
-43
-77
-83

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col2 + + + col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-1022
SELECT ALL + - 2 - - MAX( ALL col0 ) AS col2 FROM tab2 AS cor0
----
73

skipif mysql # not compatible
query I rowsort label-1022
SELECT ALL + - 2 - - MAX ( ALL col0 ) AS col2 FROM tab2 AS cor0
----
73

query I rowsort
SELECT col0 - - 18 - + 42 AS col0 FROM tab2 AS cor0
----
22
40
51

query I rowsort
SELECT ALL col1 + 51 FROM tab0 cor0
----
132
52
72

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 57 - - col1 - col2 col2 FROM tab1
----
-25
3
36

query I rowsort
SELECT DISTINCT - col2 + - + col1 + - + col0 AS col0 FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1027
SELECT - 23 - 77 * - COUNT( * ) AS col0 FROM tab2
----
208

skipif mysql # not compatible
query I rowsort label-1027
SELECT - 23 - 77 * - COUNT ( * ) AS col0 FROM tab2
----
208

query I rowsort
SELECT DISTINCT - - 76 AS col2 FROM tab1 AS cor0
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-1029
SELECT COUNT( * ) * - COUNT( * ) * - 99 FROM tab2 cor0
----
891

skipif mysql # not compatible
query I rowsort label-1029
SELECT COUNT ( * ) * - COUNT ( * ) * - 99 FROM tab2 cor0
----
891

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1030
SELECT + 56 * - CAST( - 64 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
3584
3584
3584

skipif mysql # not compatible
query I rowsort label-1030
SELECT + 56 * - CAST ( - 64 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
3584
3584
3584

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1031
SELECT + + CAST( - - col2 AS SIGNED ) FROM tab1 AS cor0
----
59
68
96

skipif mysql # not compatible
query I rowsort label-1031
SELECT + + CAST ( - - col2 AS INTEGER ) FROM tab1 AS cor0
----
59
68
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1032
SELECT ALL - COUNT( + col2 ) * + CAST( NULL AS SIGNED ) * - 24 * + 54 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1032
SELECT ALL - COUNT ( + col2 ) * + CAST ( NULL AS INTEGER ) * - 24 * + 54 FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col1 * + col0 NOT BETWEEN + col2 AND + ( + col1 ) + + 13
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1034
SELECT DISTINCT + 43 * COUNT( * ) AS col1 FROM tab2 AS cor0
----
129

skipif mysql # not compatible
query I rowsort label-1034
SELECT DISTINCT + 43 * COUNT ( * ) AS col1 FROM tab2 AS cor0
----
129

query II rowsort
SELECT ALL + col0 * + col2 * - 82, + col1 FROM tab2 AS cor0
----
-209920
77
-356700
67
-86756
51

query I rowsort
SELECT DISTINCT col1 * + 52 AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT - 68 * + 8 * - 25 FROM tab2, tab0 cor0
----
13600

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1038
SELECT ALL * FROM tab2 WHERE NULL NOT BETWEEN CAST( NULL AS SIGNED ) * - - col0 + + 20 AND NULL
----

skipif mysql # not compatible
query III rowsort label-1038
SELECT ALL * FROM tab2 WHERE NULL NOT BETWEEN CAST ( NULL AS INTEGER ) * - - col0 + + 20 AND NULL
----

query II rowsort
SELECT DISTINCT + col2, - 51 FROM tab1
----
59
-51
68
-51
96
-51

query I rowsort
SELECT col0 FROM tab1 WHERE NOT - - col0 = ( + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1041
SELECT DISTINCT MIN( ALL + - col0 ) AS col1 FROM tab1
----
-91

skipif mysql # not compatible
query I rowsort label-1041
SELECT DISTINCT MIN ( ALL + - col0 ) AS col1 FROM tab1
----
-91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col2, col0 + + + col0 * col2 col2 FROM tab0 WHERE NULL <= ( - col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1043
SELECT col2 * CAST( + + col0 AS SIGNED ) AS col0 FROM tab1
----
4896
5015
6188

skipif mysql # not compatible
query I rowsort label-1043
SELECT col2 * CAST ( + + col0 AS INTEGER ) AS col0 FROM tab1
----
4896
5015
6188

onlyif mysql # aggregate syntax: 
query I rowsort label-1044
SELECT ALL + - 91 * COUNT( * ) FROM tab0 AS cor0
----
-273

skipif mysql # not compatible
query I rowsort label-1044
SELECT ALL + - 91 * COUNT ( * ) FROM tab0 AS cor0
----
-273

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1045
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT CAST( + col1 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-1045
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT CAST ( + col1 AS INTEGER ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1046
SELECT + COUNT( 11 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-1046
SELECT + COUNT ( 11 ) FROM tab0 AS cor0
----
3

query I rowsort
SELECT + - 39 AS col0 FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to 504d14939d58aeb4a14f31c80de5b53e

query I rowsort
SELECT DISTINCT + col1 * + + 67 / + - col0 AS col2 FROM tab1 cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL + col1 + + + 22 FROM tab2 AS cor0
----
73
89
99

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 14 IS NULL
----

query I rowsort
SELECT ( - - 41 ) FROM tab2 AS cor0
----
41
41
41

query I rowsort
SELECT - 82 * - 24 + - col0 FROM tab1 AS cor0
----
1877
1883
1917

query I rowsort
SELECT DISTINCT 49 + - - col0 * 53 FROM tab2 AS cor0
----
2487
3441
4024

onlyif mysql # aggregate syntax: 
query I rowsort label-1054
SELECT ALL - + 59 + + COUNT( * ) + ( - + COUNT( ALL - - 49 ) ) FROM tab2 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-1054
SELECT ALL - + 59 + + COUNT ( * ) + ( - + COUNT ( ALL - - 49 ) ) FROM tab2 AS cor0
----
-59

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( - col0 ) NOT IN ( + 27 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT 86 + col2 AS col0 FROM tab2
----
109
126
144

onlyif mysql # aggregate syntax: 
query I rowsort label-1057
SELECT ALL - COUNT( * ) * + - 72 FROM tab1
----
216

skipif mysql # not compatible
query I rowsort label-1057
SELECT ALL - COUNT ( * ) * + - 72 FROM tab1
----
216

onlyif mysql # aggregate syntax: 
query I rowsort label-1058
SELECT DISTINCT COUNT( * ) - + ( - COUNT( * ) ) AS col2 FROM tab2
----
6

skipif mysql # not compatible
query I rowsort label-1058
SELECT DISTINCT COUNT ( * ) - + ( - COUNT ( * ) ) AS col2 FROM tab2
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1059
SELECT ALL - col1 * - CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1059
SELECT ALL - col1 * - CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT ( + 17 ) AS col2 FROM tab0
----
17

query II rowsort
SELECT ALL 93 / - - col1 AS col0, - col0 AS col1 FROM tab0 WHERE NOT NULL NOT IN ( - 50 / col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1062
SELECT ALL + CAST( + + col2 AS SIGNED ) FROM tab2
----
23
40
58

skipif mysql # not compatible
query I rowsort label-1062
SELECT ALL + CAST ( + + col2 AS INTEGER ) FROM tab2
----
23
40
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1063
SELECT + col1 + + + ( - CAST( NULL AS SIGNED ) ) + + CAST( 49 AS SIGNED ) / 1 * col2 + + col1 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1063
SELECT + col1 + + + ( - CAST ( NULL AS INTEGER ) ) + + CAST ( 49 AS INTEGER ) / 1 * col2 + + col1 AS col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col2 FROM tab2 WHERE NOT ( NULL ) <= + 11
----

query I rowsort
SELECT DISTINCT + 44 + col2 AS col1 FROM tab0 AS cor0
----
143
54
91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1066
SELECT ALL + 4 DIV COUNT( * ) AS col0 FROM tab0 cor0
----
1

skipif mysql # not compatible
query I rowsort label-1066
SELECT ALL + 4 / COUNT ( * ) AS col0 FROM tab0 cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1067
SELECT ALL + COUNT( * ) + + - COUNT( * ) AS col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1067
SELECT ALL + COUNT ( * ) + + - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
0

query I rowsort
SELECT ALL + ( - col1 ) + - col2 + - col1 FROM tab1
----
-124
-162
-69

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1069
SELECT DISTINCT * FROM tab2 WHERE + 27 * + col0 * col2 / + 55 NOT BETWEEN - + col0 + - col0 + + - col2 - CAST( col2 + col2 * + 87 AS SIGNED ) * col0 AND + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-1069
SELECT DISTINCT * FROM tab2 WHERE + 27 * + col0 * col2 / + 55 NOT BETWEEN - + col0 + - col0 + + - col2 - CAST ( col2 + col2 * + 87 AS INTEGER ) * col0 AND + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-1070
SELECT ALL COUNT( ALL - + col2 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-1070
SELECT ALL COUNT ( ALL - + col2 ) FROM tab1
----
3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 30 + + 8 * 80 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col2 / col2 * - ( 51 ) * 78 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col1 + col1 < NULL
----

query II rowsort
SELECT col1 * + 5, + col1 FROM tab0 AS cor0
----
105
21
405
81
5
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( col1 ) col0 FROM tab1 WHERE NOT - col0 IS NULL
----
-14
-47
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-1076
SELECT + col1 DIV 58 * + col1 FROM tab0
----
0
0
81

skipif mysql # not compatible
query I rowsort label-1076
SELECT + col1 / 58 * + col1 FROM tab0
----
0
0
81

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1077
SELECT - 79 DIV - CAST( + CAST( - + 76 AS SIGNED ) AS SIGNED ) FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-1077
SELECT - 79 / - CAST ( + CAST ( - + 76 AS INTEGER ) AS INTEGER ) FROM tab2
----
-1
-1
-1

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1078
SELECT DISTINCT * FROM tab2 WHERE + CAST( NULL AS SIGNED ) * 21 - + col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-1078
SELECT DISTINCT * FROM tab2 WHERE + CAST ( NULL AS INTEGER ) * 21 - + col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT col0 * + + col2 * - col2 FROM tab1
----
-295885
-420784
-470016

onlyif mysql # aggregate syntax: 
query I rowsort label-1080
SELECT ALL ( - + COUNT( * ) ) * + 25 AS col2 FROM tab0 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-1080
SELECT ALL ( - + COUNT ( * ) ) * + 25 AS col2 FROM tab0 AS cor0
----
-75

query II rowsort
SELECT DISTINCT - col1 + + col0 * - 81, - col1 AS col0 FROM tab2 AS cor0
----
-3777
-51
-5261
-77
-6142
-67

query I rowsort
SELECT ALL 69 FROM tab2 WHERE NOT NULL > NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - ( - col2 ) < + - 19 AND NOT ( NOT ( ( ( ( NULL ) IS NOT NULL ) ) ) )
----

query I rowsort
SELECT col2 + - + col2 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT ( + 41 ) + + col0 FROM tab0 AS cor0
----
128
138
56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1086
SELECT DISTINCT - COUNT( * ) / + CAST( NULL AS SIGNED ) * 91 + ( - COUNT( * ) ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1086
SELECT DISTINCT - COUNT ( * ) / + CAST ( NULL AS INTEGER ) * 91 + ( - COUNT ( * ) ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL + col0 + 37 FROM tab2 AS cor0
----
101
112
83

query I rowsort
SELECT + col1 * + 55 + + 31 FROM tab0 AS cor0
----
1186
4486
86

onlyif mysql # DIV for integer division: 
query I rowsort label-1089
SELECT - + 66 * - ( col1 ) - 88 DIV - col2 AS col2 FROM tab1 AS cor0
----
3103
331
924

skipif mysql # not compatible
query I rowsort label-1089
SELECT - + 66 * - ( col1 ) - 88 / - col2 AS col2 FROM tab1 AS cor0
----
3103
331
924

query I rowsort
SELECT + 85 * col0 - - - col2 FROM tab1 cor0
----
4239
7166
7667

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1091
SELECT CAST( NULL AS SIGNED ) AS col1 FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-1091
SELECT CAST ( NULL AS INTEGER ) AS col1 FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT 86 IS NULL
----
54 values hashing to 38882227cfc7c3bf621ed1f30345739c

query I rowsort
SELECT ALL + col1 + - - col2 - + 6 AS col2 FROM tab0 WHERE NOT - col2 < NULL
----

query I rowsort
SELECT + ( - 7 ) AS col1 FROM tab1 AS cor0
----
-7
-7
-7

query I rowsort
SELECT ALL - ( - + col2 ) AS col1 FROM tab2 AS cor0
----
23
40
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1096
SELECT + CAST( + MAX( DISTINCT col1 ) AS SIGNED ) * - 37 AS col1, 82 FROM tab1 AS cor0
----
-1739
82

skipif mysql # not compatible
query II rowsort label-1096
SELECT + CAST ( + MAX ( DISTINCT col1 ) AS INTEGER ) * - 37 AS col1, 82 FROM tab1 AS cor0
----
-1739
82

onlyif mysql # DIV for integer division: 
query II rowsort label-1097
SELECT + col1, - 12 DIV col2 FROM tab0 AS cor0
----
1
0
21
-1
81
0

skipif mysql # not compatible
query II rowsort label-1097
SELECT + col1, - 12 / col2 FROM tab0 AS cor0
----
1
0
21
-1
81
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1098
SELECT ALL + MAX( + + 98 ) AS col1 FROM tab2 AS cor0
----
98

skipif mysql # not compatible
query I rowsort label-1098
SELECT ALL + MAX ( + + 98 ) AS col1 FROM tab2 AS cor0
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-1099
SELECT - COUNT( * ) + - 74 AS col0 FROM tab2 AS cor0 WHERE NOT ( + col1 / col0 + col1 ) IS NOT NULL
----
-74

skipif mysql # not compatible
query I rowsort label-1099
SELECT - COUNT ( * ) + - 74 AS col0 FROM tab2 AS cor0 WHERE NOT ( + col1 / col0 + col1 ) IS NOT NULL
----
-74

query I rowsort
SELECT ALL - col1 - - 68 AS col2 FROM tab0 cor0 WHERE NOT col2 IS NULL
----
-13
47
67

query I rowsort
SELECT col1 AS col2 FROM tab2 AS cor0 WHERE NOT 95 IS NULL
----
51
67
77

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT col2 / - col0 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col2 + 5 - - col1 + + col0 * - col2 AS col0 FROM tab2 cor0
----
-2438
-4220
-979

query I rowsort
SELECT + col2 + - 71 AS col1 FROM tab0 AS cor0
----
-24
-61
28

query I rowsort
SELECT ALL 54 + 17 AS col1 FROM tab2 cor0
----
71
71
71

query I rowsort
SELECT 79 * + + 94 AS col0 FROM tab2
----
7426
7426
7426

query I rowsort
SELECT DISTINCT - - 94 + - col1 AS col1 FROM tab0 AS cor0
----
13
73
93

query III rowsort
SELECT * FROM tab0 cor0 WHERE + col1 + + 49 + - 36 IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1109
SELECT ALL + COUNT( * ) DIV + + COUNT( * ) AS col1 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-1109
SELECT ALL + COUNT ( * ) / + + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
1

query I rowsort
SELECT ALL - 54 + + + col2 FROM tab2 AS cor0
----
-14
-31
4

onlyif mysql # aggregate syntax: 
query I rowsort label-1111
SELECT DISTINCT ( - 53 ) + - + COUNT( * ) FROM tab1 AS cor0
----
-56

skipif mysql # not compatible
query I rowsort label-1111
SELECT DISTINCT ( - 53 ) + - + COUNT ( * ) FROM tab1 AS cor0
----
-56

query I rowsort
SELECT 34 * + col2 FROM tab1 AS cor0
----
2006
2312
3264

query I rowsort
SELECT ALL + col0 + col2 * + 94 FROM tab0 AS cor0
----
1027
4433
9403

query III rowsort
SELECT * FROM tab2 WHERE + 81 NOT IN ( - col0, - 36, + + col1, + col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col0 - - + col2 AS col0 FROM tab2
----
104
133
69

query I rowsort
SELECT DISTINCT - 36 * + col2 * - - col2 * + - 19 - - col1 AS col0 FROM tab1
----
2381009
3162863
6303758

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1117
SELECT col2 - col0 - + + CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1117
SELECT col2 - col0 - + + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 91 AS col2 FROM tab1 WHERE - col2 * col0 IS NULL AND ( NOT NULL IN ( - col1, col2, + 73 / - + col0 + - + col2 ) )
----

query I rowsort
SELECT DISTINCT col1 * 99 - - - 43 AS col2 FROM tab0
----
2036
56
7976

query I rowsort
SELECT - col2 FROM tab0 WHERE col1 IS NOT NULL
----
-10
-47
-99

query I rowsort
SELECT ALL col0 * - - 55 - - 54 FROM tab2
----
2584
3574
4179

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1122
SELECT ( - CAST( NULL AS DECIMAL ) ) + 2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1122
SELECT ( - CAST ( NULL AS REAL ) ) + 2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1123
SELECT + MIN( CAST( NULL AS SIGNED ) ) * + 84 + - + 18 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-1123
SELECT + MIN ( CAST ( NULL AS INTEGER ) ) * + 84 + - + 18 FROM tab1
----
NULL

query I rowsort
SELECT + + col1 * col0 * - + 80 AS col0 FROM tab0 WHERE + - col1 + + ( + col2 ) IS NULL
----

query I rowsort
SELECT - col2 + 75 AS col1 FROM tab1 AS cor0
----
-21
16
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1126
SELECT DISTINCT + MAX( ALL + - col2 ) * SUM( CAST( col1 AS SIGNED ) ) AS col1 FROM tab0 AS cor0
----
-1030

skipif mysql # not compatible
query I rowsort label-1126
SELECT DISTINCT + MAX ( ALL + - col2 ) * SUM ( CAST ( col1 AS INTEGER ) ) AS col1 FROM tab0 AS cor0
----
-1030

onlyif mysql # aggregate syntax: 
query I rowsort label-1127
SELECT + - COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE NOT - ( + col2 ) * col1 * - + 94 <= col1 * ( - ( 77 ) ) * col1
----
-3

skipif mysql # not compatible
query I rowsort label-1127
SELECT + - COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE NOT - ( + col2 ) * col1 * - + 94 <= col1 * ( - ( 77 ) ) * col1
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1128
SELECT DISTINCT - + col0 * - col2 - + - 21 AS col2, col2 * - - CAST( NULL AS SIGNED ) AS col0 FROM tab0 cor0
----
726
NULL
891
NULL
9624
NULL

skipif mysql # not compatible
query II rowsort label-1128
SELECT DISTINCT - + col0 * - col2 - + - 21 AS col2, col2 * - - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 cor0
----
726
NULL
891
NULL
9624
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1129
SELECT ALL + ( - - COUNT( * ) ) FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-1129
SELECT ALL + ( - - COUNT ( * ) ) FROM tab2 cor0
----
3

query I rowsort
SELECT + - 98 AS col0 FROM tab2 AS cor0
----
-98
-98
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-1131
SELECT + COUNT( * ) * + - 7 col0 FROM tab2 AS cor0
----
-21

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1131
SELECT + COUNT ( * ) * + - 7 col0 FROM tab2 AS cor0
----
-21

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( + col0 * col0 + + ( col1 ) ) <= NULL
----

query II rowsort
SELECT ALL 52 AS col2, + col1 FROM tab0
----
52
1
52
21
52
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1134
SELECT - col0 + + CAST( - 35 AS SIGNED ) * - col1 AS col0 FROM tab1
----
1554
439
90

skipif mysql # not compatible
query I rowsort label-1134
SELECT - col0 + + CAST ( - 35 AS INTEGER ) * - col1 AS col0 FROM tab1
----
1554
439
90

query III rowsort
SELECT * FROM tab1 WHERE NOT + col0 * + 23 / + 98 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + + col0 col1 FROM tab2
----
104
133
69

onlyif mysql # aggregate syntax: 
query I rowsort label-1137
SELECT DISTINCT + ( - MIN( DISTINCT + col2 ) ) AS col1 FROM tab2
----
-23

skipif mysql # not compatible
query I rowsort label-1137
SELECT DISTINCT + ( - MIN ( DISTINCT + col2 ) ) AS col1 FROM tab2
----
-23

query I rowsort
SELECT - col0 FROM tab1 AS cor0 WHERE - ( col2 ) * - - col1 = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1139
SELECT ALL + + CAST( + - col1 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-1139
SELECT ALL + + CAST ( + - col1 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-51
-67
-77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1140
SELECT + CAST( + COUNT( * ) AS SIGNED ) AS col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-1140
SELECT + CAST ( + COUNT ( * ) AS INTEGER ) AS col0 FROM tab0 AS cor0
----
3

query I rowsort
SELECT ALL + - col2 + - - col1 - - 10 AS col1 FROM tab0 AS cor0
----
-88
21
44

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 68 + col2 <= - + col0 + - 75
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1143
SELECT + ( - + 18 ) + - CAST( 68 AS SIGNED ) AS col2 FROM tab1 cor0
----
-86
-86
-86

skipif mysql # not compatible
query I rowsort label-1143
SELECT + ( - + 18 ) + - CAST ( 68 AS INTEGER ) AS col2 FROM tab1 cor0
----
-86
-86
-86

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 46 col2 FROM tab0 AS cor0 WHERE NOT col2 IS NULL
----
-46
-46
-46

query I rowsort
SELECT DISTINCT + 12 + + - 88 FROM tab2 AS cor0
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-1146
SELECT ALL - COUNT( DISTINCT - col0 ) + ( + COUNT( * ) ) AS col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1146
SELECT ALL - COUNT ( DISTINCT - col0 ) + ( + COUNT ( * ) ) AS col2 FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1147
SELECT - 95 + - + MAX( - + 66 ) * + ( + 0 ) FROM tab1 cor0
----
-95

skipif mysql # not compatible
query I rowsort label-1147
SELECT - 95 + - + MAX ( - + 66 ) * + ( + 0 ) FROM tab1 cor0
----
-95

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT - 79 IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1149
SELECT ALL * FROM tab1 cor0 WHERE NOT NULL BETWEEN CAST( NULL AS DECIMAL ) AND - col0 + + 54
----

skipif mysql # not compatible
query III rowsort label-1149
SELECT ALL * FROM tab1 cor0 WHERE NOT NULL BETWEEN CAST ( NULL AS REAL ) AND - col0 + + 54
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1150
SELECT SUM( DISTINCT + + col2 ) AS col2 FROM tab1
----
223

skipif mysql # not compatible
query I rowsort label-1150
SELECT SUM ( DISTINCT + + col2 ) AS col2 FROM tab1
----
223

query I rowsort
SELECT ALL + 18 + - 15 FROM tab0
----
3
3
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1152
SELECT - col0 FROM tab2 WHERE NULL BETWEEN - col1 - col0 * 92 * - CAST( NULL AS SIGNED ) * + - CAST( + - ( + 45 ) AS SIGNED ) * col2 * + col0 AND NULL
----

skipif mysql # not compatible
query I rowsort label-1152
SELECT - col0 FROM tab2 WHERE NULL BETWEEN - col1 - col0 * 92 * - CAST ( NULL AS INTEGER ) * + - CAST ( + - ( + 45 ) AS INTEGER ) * col2 * + col0 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * + - col1 - - ( - - col2 ) col1 FROM tab2
----
-2323
-4888
-4967

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 87 col2 FROM tab1 WHERE ( - col1 + + 26 + 7 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-1155
SELECT SUM( ALL - col0 ) + + ( + COUNT( * ) ), 31 AS col2 FROM tab0 WHERE NOT NULL <> - - 97 * + - col1
----
NULL
31

skipif mysql # not compatible
query II rowsort label-1155
SELECT SUM ( ALL - col0 ) + + ( + COUNT ( * ) ), 31 AS col2 FROM tab0 WHERE NOT NULL <> - - 97 * + - col1
----
NULL
31

onlyif mysql # DIV for integer division: 
query I rowsort label-1156
SELECT - + ( 35 ) DIV + - col2 AS col0 FROM tab2 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-1156
SELECT - + ( 35 ) / + - col2 AS col0 FROM tab2 AS cor0
----
0
0
1

query I rowsort
SELECT - col0 * - - col2 AS col2 FROM tab2 AS cor0
----
-1058
-2560
-4350

query II rowsort
SELECT + col0 AS col0, + 92 AS col0 FROM tab0 AS cor0
----
15
92
87
92
97
92

onlyif mysql # aggregate syntax: 
query I rowsort label-1159
SELECT ALL - COUNT( 91 ) col2 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1159
SELECT ALL - COUNT ( 91 ) col2 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-1160
SELECT DISTINCT ( col0 ) DIV + + col0 AS col2 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-1160
SELECT DISTINCT ( col0 ) / + + col0 AS col2 FROM tab0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1161
SELECT ALL + MIN( - - col1 ) AS col0 FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-1161
SELECT ALL + MIN ( - - col1 ) AS col0 FROM tab2
----
51

query I rowsort
SELECT - 4 FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to 5784540a5af6ca2be84399d314acd2fd

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 col0 FROM tab2 WHERE NOT + - col1 + + col2 * 52 * - col1 * 29 IS NOT NULL
----

query II rowsort
SELECT 52 AS col2, + 81 AS col1 FROM tab0 AS cor0
----
52
81
52
81
52
81

onlyif mysql # aggregate syntax: 
query I rowsort label-1165
SELECT DISTINCT ( + 14 ) + ( - SUM( DISTINCT + + 88 ) ) AS col1 FROM tab1 AS cor0
----
-74

skipif mysql # not compatible
query I rowsort label-1165
SELECT DISTINCT ( + 14 ) + ( - SUM ( DISTINCT + + 88 ) ) AS col1 FROM tab1 AS cor0
----
-74

onlyif mysql # DIV for integer division: 
query I rowsort label-1166
SELECT ALL - col1 DIV col0 AS col1 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1166
SELECT ALL - col1 / col0 AS col1 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1167
SELECT - COUNT( DISTINCT - + 23 ) FROM tab1 cor0
----
-1

skipif mysql # not compatible
query I rowsort label-1167
SELECT - COUNT ( DISTINCT - + 23 ) FROM tab1 cor0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1168
SELECT ALL - MAX( col0 ) col0 FROM tab2 AS cor0
----
-75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1168
SELECT ALL - MAX ( col0 ) col0 FROM tab2 AS cor0
----
-75

query I rowsort
SELECT DISTINCT + + 96 FROM tab2 AS cor0 WHERE NOT ( + col2 * - col2 ) BETWEEN + 25 AND 33
----
96

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1170
SELECT - CAST( NULL AS SIGNED ) AS col1, + 35 + - col1 FROM tab1 AS cor0
----
NULL
-12
NULL
21
NULL
30

skipif mysql # not compatible
query II rowsort label-1170
SELECT - CAST ( NULL AS INTEGER ) AS col1, + 35 + - col1 FROM tab1 AS cor0
----
NULL
-12
NULL
21
NULL
30

query I rowsort
SELECT - col1 + - 70 * + col1 FROM tab0 WHERE NOT - col1 IS NULL
----
-1491
-5751
-71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1172
SELECT DISTINCT col1 * CAST( NULL AS SIGNED ) + + 36 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-1172
SELECT DISTINCT col1 * CAST ( NULL AS INTEGER ) + + 36 FROM tab2
----
NULL

query I rowsort
SELECT + col1 * - 21 AS col1 FROM tab1
----
-105
-294
-987

query I rowsort
SELECT ALL + col0 AS col2 FROM tab1 WHERE NOT + col1 <> ( col1 )
----
51
85
91

query III rowsort
SELECT * FROM tab2 WHERE NOT + 20 * + col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT 16 * col0 * + + 94 FROM tab0
----
130848
145888
22560

query I rowsort
SELECT - ( + 22 ) * col1 AS col2 FROM tab1
----
-1034
-110
-308

query I rowsort
SELECT + col1 * - - 32 AS col0 FROM tab2
----
1632
2144
2464

query I rowsort
SELECT ALL - col1 AS col2 FROM tab0 WHERE NOT - + col0 <= - col2 * 32 * - col1
----

query I rowsort
SELECT ALL col0 + + ( - col2 ) + 96 + - col1 FROM tab1
----
117
37
72

query I rowsort
SELECT + 28 + - col2 AS col0 FROM tab1 AS cor0
----
-31
-40
-68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 3 + + col0 col1 FROM tab2 AS cor0
----
49
67
78

query II rowsort
SELECT ALL col1 + col1 AS col2, col2 + + - 11 FROM tab2 cor0
----
102
12
134
47
154
29

query I rowsort
SELECT DISTINCT - 36 + - 0 + + - col2 AS col0 FROM tab1 AS cor0
----
-104
-132
-95

query I rowsort
SELECT 38 * + + 54 FROM tab1
----
2052
2052
2052

query I rowsort
SELECT DISTINCT col1 FROM tab2 cor0 WHERE NOT NULL <= ( col0 - col2 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-1187
SELECT - COUNT( * ) AS col2, + 58 AS col0 FROM tab0 AS cor0
----
-3
58

skipif mysql # not compatible
query II rowsort label-1187
SELECT - COUNT ( * ) AS col2, + 58 AS col0 FROM tab0 AS cor0
----
-3
58

query I rowsort
SELECT + + 45 - + 46 AS col0 FROM tab1 AS cor0
----
-1
-1
-1

query I rowsort
SELECT ALL - + col2 AS col0 FROM tab0 WHERE 49 = + + 86
----

query I rowsort
SELECT ALL 1 + - ( - + 58 ) AS col1 FROM tab1
----
59
59
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL ( + col2 ) col0, + col2 * - col0 + + col1 * + - 47 AS col1 FROM tab0
----
10
-1857
47
-4512
99
-9650

query III rowsort
SELECT * FROM tab2 WHERE NOT + 77 = + col1
----
46
51
23
75
67
58

onlyif mysql # aggregate syntax: 
query I rowsort label-1193
SELECT DISTINCT + - COUNT( DISTINCT - col1 ) AS col2 FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-1193
SELECT DISTINCT + - COUNT ( DISTINCT - col1 ) AS col2 FROM tab0 cor0
----
-3

query I rowsort
SELECT ALL + col0 * + 51 FROM tab1 AS cor0
----
2601
4335
4641

query I rowsort
SELECT ALL 87 FROM tab0 AS cor0 WHERE NOT col2 + + - col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1196
SELECT MAX( DISTINCT 65 ) * + SUM( + ( - col2 ) ) AS col2 FROM tab2
----
-7865

skipif mysql # not compatible
query I rowsort label-1196
SELECT MAX ( DISTINCT 65 ) * + SUM ( + ( - col2 ) ) AS col2 FROM tab2
----
-7865

query I rowsort
SELECT ALL + - 65 * + + 72 + 23 * 71 FROM tab2 AS cor0
----
-3047
-3047
-3047

query I rowsort
SELECT + - col2 FROM tab1 AS cor0 WHERE NOT - col1 IS NULL
----
-59
-68
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1199
SELECT - - col1 * - - CAST( NULL AS SIGNED ) + - col1 * col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1199
SELECT - - col1 * - - CAST ( NULL AS INTEGER ) + - col1 * col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1200
SELECT DISTINCT COUNT( + + col2 ) AS col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-1200
SELECT DISTINCT COUNT ( + + col2 ) AS col1 FROM tab0 AS cor0
----
3

query II rowsort
SELECT + col0 + + col0 + col0 * col0 AS col1, - col2 FROM tab1
----
2703
-96
7395
-59
8463
-68

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1202
SELECT ALL * FROM tab2 WHERE NOT + 14 / 22 / - + ( - + CAST( - col0 AS SIGNED ) ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-1202
SELECT ALL * FROM tab2 WHERE NOT + 14 / 22 / - + ( - + CAST ( - col0 AS INTEGER ) ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1203
SELECT + 58 + + COUNT( * ) AS col1 FROM tab2
----
61

skipif mysql # not compatible
query I rowsort label-1203
SELECT + 58 + + COUNT ( * ) AS col1 FROM tab2
----
61

query I rowsort
SELECT - col0 * + ( - col1 ) + - col0 AS col0 FROM tab0
----
0
1200
1740

onlyif mysql # aggregate syntax: 
query II rowsort label-1205
SELECT DISTINCT + SUM( col1 ), + ( + COUNT( * ) ) col2 FROM tab2
----
195
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1205
SELECT DISTINCT + SUM ( col1 ), + ( + COUNT ( * ) ) col2 FROM tab2
----
195
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1206
SELECT ALL - COUNT( * ) * + + 68 FROM tab1
----
-204

skipif mysql # not compatible
query I rowsort label-1206
SELECT ALL - COUNT ( * ) * + + 68 FROM tab1
----
-204

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + col1 * - ( + + 82 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col1 + + ( + - col0 ) FROM tab1
----
-37
-44
-80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1209
SELECT DISTINCT + col2 FROM tab1 WHERE NOT + - CAST( NULL AS SIGNED ) IN ( col1 )
----

skipif mysql # not compatible
query I rowsort label-1209
SELECT DISTINCT + col2 FROM tab1 WHERE NOT + - CAST ( NULL AS INTEGER ) IN ( col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - 48 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL NOT IN ( - - col0, 86 * 13, col2 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 NOT BETWEEN ( col1 + - - col1 * - col0 * 76 ) AND NULL
----

query II rowsort
SELECT + 11 AS col1, col2 / - - 10 * + - col2 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1214
SELECT - - CAST( 64 AS SIGNED ) FROM tab2 AS cor0
----
64
64
64

skipif mysql # not compatible
query I rowsort label-1214
SELECT - - CAST ( 64 AS INTEGER ) FROM tab2 AS cor0
----
64
64
64

query II rowsort
SELECT + - col1, + col2 AS col2 FROM tab1 AS cor0
----
-14
96
-47
68
-5
59

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col1 NOT IN ( - 60 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT ( 20 ) + + - 45 FROM tab1
----
-25

query I rowsort
SELECT ALL + 47 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 4fe192f296791e1e40ea00a68aa8dab7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 91 col2 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 5748627ef5fd86a21cd559fd278d7277

query III rowsort
SELECT * FROM tab0 WHERE + col1 BETWEEN col1 AND ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1221
SELECT + + col0 * + col2 DIV - col2 + - - col0 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1221
SELECT + + col0 * + col2 / - col2 + - - col0 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1222
SELECT ALL - MIN( CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1222
SELECT ALL - MIN ( CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT + - 69 * col1 AS col1 FROM tab1 AS cor0
----
-3243
-345
-966

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT + col2 + + col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query II rowsort label-1225
SELECT + 27 DIV + - col0, col2 FROM tab0 AS cor0
----
-1
47
0
10
0
99

skipif mysql # not compatible
query II rowsort label-1225
SELECT + 27 / + - col0, col2 FROM tab0 AS cor0
----
-1
47
0
10
0
99

onlyif mysql # aggregate syntax: 
query I rowsort label-1226
SELECT - + MIN( ALL - 13 ) * - + 10 AS col1 FROM tab2 AS cor0
----
-130

skipif mysql # not compatible
query I rowsort label-1226
SELECT - + MIN ( ALL - 13 ) * - + 10 AS col1 FROM tab2 AS cor0
----
-130

query II rowsort
SELECT + ( col2 ), col0 + + + col0 FROM tab2 AS cor0
----
23
92
40
128
58
150

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1228
SELECT + CAST( NULL AS SIGNED ) AS col2, COUNT( * ) FROM tab0
----
NULL
3

skipif mysql # not compatible
query II rowsort label-1228
SELECT + CAST ( NULL AS INTEGER ) AS col2, COUNT ( * ) FROM tab0
----
NULL
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0, - 23 col2 FROM tab1
----
51
-23
85
-23
91
-23

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL BETWEEN - 6 * + col1 + - col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1231
SELECT ALL MAX( ALL 48 ) FROM tab0
----
48

skipif mysql # not compatible
query I rowsort label-1231
SELECT ALL MAX ( ALL 48 ) FROM tab0
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-1232
SELECT DISTINCT + COUNT( * ) * + - COUNT( * ) AS col1 FROM tab1
----
-9

skipif mysql # not compatible
query I rowsort label-1232
SELECT DISTINCT + COUNT ( * ) * + - COUNT ( * ) AS col1 FROM tab1
----
-9

query II rowsort
SELECT 44 AS col1, 45 AS col1 FROM tab2 cor0
----
44
45
44
45
44
45

query I rowsort
SELECT 38 * 24 * + col2 FROM tab0 AS cor0
----
42864
90288
9120

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1235
SELECT ALL MAX( DISTINCT + CAST( - col2 AS SIGNED ) ), ( - 78 ) AS col1 FROM tab1 AS cor0
----
-59
-78

skipif mysql # not compatible
query II rowsort label-1235
SELECT ALL MAX ( DISTINCT + CAST ( - col2 AS INTEGER ) ), ( - 78 ) AS col1 FROM tab1 AS cor0
----
-59
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-1236
SELECT DISTINCT COUNT( * ) FROM tab0 AS cor0 WHERE NOT - col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-1236
SELECT DISTINCT COUNT ( * ) FROM tab0 AS cor0 WHERE NOT - col0 IS NOT NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1237
SELECT DISTINCT CAST( NULL AS SIGNED ) * - + col2 AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-1237
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - + col2 AS col0 FROM tab2
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT + col0 NOT BETWEEN + col1 AND + col0 * - 82
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1239
SELECT - 85 + col1 DIV - - 15 AS col2 FROM tab0
----
-80
-84
-85

skipif mysql # not compatible
query I rowsort label-1239
SELECT - 85 + col1 / - - 15 AS col2 FROM tab0
----
-80
-84
-85

query I rowsort
SELECT DISTINCT ( - - col0 ) * + col1 * col2 + + - 5 + col0 * + col0 + col0 * - col2 FROM tab0
----
24964
56620
9404

query I rowsort
SELECT DISTINCT + col1 + - + 61 AS col1 FROM tab1 AS cor0
----
-14
-47
-56

query I rowsort
SELECT ALL col1 * col1 - col1 FROM tab1 AS cor0 WHERE - col1 / + 85 IS NULL
----

query II rowsort
SELECT ALL col1 + - col2 AS col1, - col2 * col2 AS col2 FROM tab0 AS cor0
----
-98
-9801
11
-100
34
-2209

onlyif mysql # aggregate syntax: 
query I rowsort label-1244
SELECT ALL - ( - - 81 ) + - - COUNT( * ) FROM tab2 AS cor0 WHERE NULL < 23
----
-81

skipif mysql # not compatible
query I rowsort label-1244
SELECT ALL - ( - - 81 ) + - - COUNT ( * ) FROM tab2 AS cor0 WHERE NULL < 23
----
-81

query II rowsort
SELECT DISTINCT - col2 + + col1 AS col0, col1 FROM tab0 AS cor0
----
-98
1
11
21
34
81

query I rowsort
SELECT ALL - col1 + - col0 * + 82 AS col0 FROM tab2 cor0
----
-3823
-5325
-6217

query I rowsort
SELECT col2 * + + ( col0 ) * + col0 FROM tab1
----
249696
426275
563108

query III rowsort
SELECT * FROM tab2 WHERE + col0 + - + col2 <> + col2 * + col1 * 84 + + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col0 + + col1 + - - col1 * + - col0 + + col1 * + + 26 AS col0 FROM tab1
----
-3099
-375
-387

onlyif mysql # aggregate syntax: 
query I rowsort label-1250
SELECT + COUNT( * ) FROM tab2 WHERE col1 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-1250
SELECT + COUNT ( * ) FROM tab2 WHERE col1 IS NOT NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1251
SELECT ALL COUNT( * ) * - 61 FROM tab1
----
-183

skipif mysql # not compatible
query I rowsort label-1251
SELECT ALL COUNT ( * ) * - 61 FROM tab1
----
-183

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL NOT IN ( - col0 - - col0 )
----

query I rowsort
SELECT ALL + 50 + 56 - + + col0 FROM tab2 AS cor0
----
31
42
60

query I rowsort
SELECT 70 * + col1 + 84 AS col2 FROM tab0 AS cor0
----
154
1554
5754

query I rowsort
SELECT DISTINCT - col0 + + + col2 - + col0 / ( + - 45 ) + 71 AS col0 FROM tab0 cor0 WHERE NOT ( NULL ) <> NULL
----

query I rowsort
SELECT + - col2 * - col0 + 62 AS col2 FROM tab0 AS cor0 WHERE NOT + col1 IS NULL
----
767
932
9665

query II rowsort
SELECT ALL col0 AS col0, + 96 + col0 + - - col1 AS col2 FROM tab0 AS cor0
----
15
192
87
204
97
194

query II rowsort
SELECT ALL + col1 AS col1, + col1 - + + col0 AS col1 FROM tab2 AS cor0
----
51
5
67
-8
77
13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1259
SELECT - MAX( - CAST( NULL AS SIGNED ) ) AS col1 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1259
SELECT - MAX ( - CAST ( NULL AS INTEGER ) ) AS col1 FROM tab0 cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1260
SELECT DISTINCT + - COUNT( col1 ) col2 FROM tab1 cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1260
SELECT DISTINCT + - COUNT ( col1 ) col2 FROM tab1 cor0
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-1261
SELECT MAX( ALL + col2 ) AS col0, + 48 AS col2 FROM tab0 AS cor0
----
99
48

skipif mysql # not compatible
query II rowsort label-1261
SELECT MAX ( ALL + col2 ) AS col0, + 48 AS col2 FROM tab0 AS cor0
----
99
48

onlyif mysql # aggregate syntax: 
query I rowsort label-1262
SELECT MAX( DISTINCT 12 ) FROM tab2
----
12

skipif mysql # not compatible
query I rowsort label-1262
SELECT MAX ( DISTINCT 12 ) FROM tab2
----
12

query III rowsort
SELECT DISTINCT - ( + col0 ), 58 + - col1 + + + col1 AS col0, 57 AS col0 FROM tab2
----
9 values hashing to cabcceb7ba1f8ba7ee1638233735ec87

onlyif mysql # aggregate syntax: 
query I rowsort label-1264
SELECT SUM( DISTINCT 38 ) FROM tab0
----
38

skipif mysql # not compatible
query I rowsort label-1264
SELECT SUM ( DISTINCT 38 ) FROM tab0
----
38

onlyif mysql # DIV for integer division: 
query I rowsort label-1265
SELECT ALL - 39 DIV + col2 * - col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1265
SELECT ALL - 39 / + col2 * - col1 FROM tab1
----
0
0
0

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL IN ( 40 )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT - col1 - - 73 IS NOT NULL
----

query I rowsort
SELECT + + ( + 20 ) * + col1 AS col1 FROM tab2 AS cor0
----
1020
1340
1540

query III rowsort
SELECT * FROM tab2 WHERE NOT + + 23 * - 64 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-1270
SELECT ALL + COUNT( + 10 ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-1270
SELECT ALL + COUNT ( + 10 ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9

query IIIIII rowsort
SELECT ALL * FROM tab2 cor0 CROSS JOIN tab1 AS cor1 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT col0 + + + 61 AS col0 FROM tab1 AS cor0
----
112
146
152

onlyif mysql # DIV for integer division: 
query I rowsort label-1273
SELECT + - ( col2 ) DIV col0 - - col1 * + - col1 * col1 + + 41 * + + col0 FROM tab0 AS cor0
----
-530829
-5694
3975

skipif mysql # not compatible
query I rowsort label-1273
SELECT + - ( col2 ) / col0 - - col1 * + - col1 * col1 + + 41 * + + col0 FROM tab0 AS cor0
----
-530829
-5694
3975

query I rowsort
SELECT ALL + 80 + + col2 - - col0 FROM tab0
----
142
177
276

query I rowsort
SELECT - col0 + col2 * col0 FROM tab0
----
690
783
9506

onlyif mysql # aggregate syntax: 
query I rowsort label-1276
SELECT MIN( + 94 ) FROM tab1
----
94

skipif mysql # not compatible
query I rowsort label-1276
SELECT MIN ( + 94 ) FROM tab1
----
94

query I rowsort
SELECT - 17 AS col1 FROM tab0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT 14 * 13 FROM tab0
----
182

query I rowsort
SELECT + col0 * + - 77 AS col0 FROM tab0
----
-1155
-6699
-7469

query I rowsort
SELECT col1 FROM tab1 AS cor0 WHERE ( - col0 ) IS NOT NULL
----
14
47
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1281
SELECT + + MAX( ALL - + CAST( - + 42 AS SIGNED ) ) FROM tab2 AS cor0
----
42

skipif mysql # not compatible
query I rowsort label-1281
SELECT + + MAX ( ALL - + CAST ( - + 42 AS INTEGER ) ) FROM tab2 AS cor0
----
42

query I rowsort
SELECT + col2 - + 30 AS col2 FROM tab2 AS cor0
----
-7
10
28

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col1 < + 89
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 17 + + col0 col2 FROM tab0
----
-2
70
80

query III rowsort
SELECT * FROM tab2 WHERE NULL > + col0 * + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1286
SELECT ALL - - MIN( ALL 93 ) AS col0 FROM tab2 WHERE - col1 IS NOT NULL
----
93

skipif mysql # not compatible
query I rowsort label-1286
SELECT ALL - - MIN ( ALL 93 ) AS col0 FROM tab2 WHERE - col1 IS NOT NULL
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-1287
SELECT ALL COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE NOT ( + col0 ) IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-1287
SELECT ALL COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE NOT ( + col0 ) IS NULL
----
3

query II rowsort
SELECT DISTINCT + col0 AS col0, + col0 AS col1 FROM tab1 AS cor0
----
51
51
85
85
91
91

onlyif mysql # DIV for integer division: 
query I rowsort label-1289
SELECT - + 29 DIV col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1289
SELECT - + 29 / col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL col0 * - 85 FROM tab0 AS cor0
----
-1275
-7395
-8245

query I rowsort
SELECT + col0 * + + ( - col0 ) AS col2 FROM tab2 AS cor0
----
-2116
-4096
-5625

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 col2, 26 FROM tab0
----
10
26
47
26
99
26

query II rowsort
SELECT ALL col2 AS col0, 36 * + 70 FROM tab0
----
10
2520
47
2520
99
2520

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1294
SELECT ALL + CAST( NULL AS SIGNED ) / 77 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1294
SELECT ALL + CAST ( NULL AS INTEGER ) / 77 AS col0 FROM tab0
----
NULL
NULL
NULL

query II rowsort
SELECT ALL + col2 AS col0, + col0 + - 7 FROM tab1
----
59
78
68
84
96
44

query II rowsort
SELECT + 82 AS col2, ( col0 ) FROM tab0 AS cor0
----
82
15
82
87
82
97

query II rowsort
SELECT ALL - + col1 AS col2, col0 - - + col0 FROM tab0 AS cor0
----
-1
194
-21
174
-81
30

onlyif mysql # aggregate syntax: 
query I rowsort label-1298
SELECT + MAX( ALL + 94 ) * - 88 FROM tab1 AS cor0
----
-8272

skipif mysql # not compatible
query I rowsort label-1298
SELECT + MAX ( ALL + 94 ) * - 88 FROM tab1 AS cor0
----
-8272

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1299
SELECT - CAST( NULL AS SIGNED ) AS col0, - col2 * + - 39 FROM tab0 AS cor0
----
NULL
1833
NULL
3861
NULL
390

skipif mysql # not compatible
query II rowsort label-1299
SELECT - CAST ( NULL AS INTEGER ) AS col0, - col2 * + - 39 FROM tab0 AS cor0
----
NULL
1833
NULL
3861
NULL
390

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1300
SELECT * FROM tab0 cor0 WHERE NOT NULL <= CAST( NULL AS SIGNED ) + col0
----

skipif mysql # not compatible
query III rowsort label-1300
SELECT * FROM tab0 cor0 WHERE NOT NULL <= CAST ( NULL AS INTEGER ) + col0
----

query I rowsort
SELECT DISTINCT - col2 AS col0 FROM tab0 WHERE NOT - 76 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1302
SELECT DISTINCT MIN( + - 79 ) AS col0 FROM tab1 AS cor0
----
-79

skipif mysql # not compatible
query I rowsort label-1302
SELECT DISTINCT MIN ( + - 79 ) AS col0 FROM tab1 AS cor0
----
-79

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NULL ) BETWEEN col1 + col2 AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE - 51 * 31 IS NULL
----

query I rowsort
SELECT + 79 FROM tab2 AS cor0 WHERE NULL > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1306
SELECT + MIN( - 35 ) AS col1 FROM tab0 AS cor0
----
-35

skipif mysql # not compatible
query I rowsort label-1306
SELECT + MIN ( - 35 ) AS col1 FROM tab0 AS cor0
----
-35

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + + 0 + col0 col1, col0 FROM tab2 AS cor0
----
46
46
64
64
75
75

query I rowsort
SELECT ALL ( - 27 ) * + 76 - - - col1 AS col2 FROM tab0
----
-2053
-2073
-2133

query I rowsort
SELECT + col1 - + 24 FROM tab0
----
-23
-3
57

query III rowsort
SELECT * FROM tab1 WHERE - col2 * - + col1 - - 12 IN ( + + col1 + + col0 / - col0 * col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1311
SELECT COUNT( * ) + + SUM( DISTINCT + col1 ) AS col2 FROM tab0
----
106

skipif mysql # not compatible
query I rowsort label-1311
SELECT COUNT ( * ) + + SUM ( DISTINCT + col1 ) AS col2 FROM tab0
----
106

onlyif mysql # aggregate syntax: 
query I rowsort label-1312
SELECT DISTINCT + SUM( + col1 ) - + + COUNT( * ) AS col1 FROM tab2
----
192

skipif mysql # not compatible
query I rowsort label-1312
SELECT DISTINCT + SUM ( + col1 ) - + + COUNT ( * ) AS col1 FROM tab2
----
192

query I rowsort
SELECT col0 * - col2 + - - col1 + 1 AS col2 FROM tab0
----
-623
-848
-9601

query I rowsort
SELECT DISTINCT + col2 * + col0 AS col0 FROM tab1 WHERE NULL <= - - 20 * col1
----

query I rowsort
SELECT - 49 + - + 35 AS col0 FROM tab2 AS cor0
----
-84
-84
-84

query II rowsort
SELECT ALL + col1, - col2 + col1 AS col2 FROM tab0 AS cor0
----
1
-98
21
11
81
34

onlyif mysql # aggregate syntax: 
query I rowsort label-1317
SELECT ALL + - 44 + + 61 + - 94 + + 81 * COUNT( * ) AS col1 FROM tab1 AS cor0
----
166

skipif mysql # not compatible
query I rowsort label-1317
SELECT ALL + - 44 + + 61 + - 94 + + 81 * COUNT ( * ) AS col1 FROM tab1 AS cor0
----
166

onlyif mysql # aggregate syntax: 
query I rowsort label-1318
SELECT DISTINCT - 71 + + COUNT( - - 56 ) * + 85 FROM tab0 cor0
----
184

skipif mysql # not compatible
query I rowsort label-1318
SELECT DISTINCT - 71 + + COUNT ( - - 56 ) * + 85 FROM tab0 cor0
----
184

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1319
SELECT DISTINCT - - COUNT( * ) DIV + - COUNT( * ) + - 58 AS col2 FROM tab0 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-1319
SELECT DISTINCT - - COUNT ( * ) / + - COUNT ( * ) + - 58 AS col2 FROM tab0 AS cor0
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-1320
SELECT ALL + COUNT( DISTINCT + - 85 ) FROM tab1 cor0
----
1

skipif mysql # not compatible
query I rowsort label-1320
SELECT ALL + COUNT ( DISTINCT + - 85 ) FROM tab1 cor0
----
1

query II rowsort
SELECT col1 * col0, - col1 AS col1 FROM tab0
----
1215
-81
1827
-21
97
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1322
SELECT CAST( - 88 AS SIGNED ) - - - COUNT( * ) FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
-97

skipif mysql # not compatible
query I rowsort label-1322
SELECT CAST ( - 88 AS INTEGER ) - - - COUNT ( * ) FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
-97

query I rowsort
SELECT - col1 * - - col2 * 69 AS col1 FROM tab2 AS cor0
----
-212520
-268134
-80937

query I rowsort
SELECT DISTINCT + + col1 * - col1 * - - col1 AS col1 FROM tab2 AS cor0
----
-132651
-300763
-456533

onlyif mysql # aggregate syntax: 
query I rowsort label-1325
SELECT DISTINCT 56 * + COUNT( * ) AS col1 FROM tab1 cor0
----
168

skipif mysql # not compatible
query I rowsort label-1325
SELECT DISTINCT 56 * + COUNT ( * ) AS col1 FROM tab1 cor0
----
168

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1326
SELECT * FROM tab0 AS cor0 WHERE NOT NULL <> + CAST( - - col1 AS SIGNED ) * - - col0 * - 91
----

skipif mysql # not compatible
query III rowsort label-1326
SELECT * FROM tab0 AS cor0 WHERE NOT NULL <> + CAST ( - - col1 AS INTEGER ) * - - col0 * - 91
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1327
SELECT ALL 15 * - MIN( ALL col2 ) FROM tab0
----
-150

skipif mysql # not compatible
query I rowsort label-1327
SELECT ALL 15 * - MIN ( ALL col2 ) FROM tab0
----
-150

onlyif mysql # DIV for integer division: 
query I rowsort label-1328
SELECT 6 + + - col0 + + ( + col2 ) + + + col1 DIV 97 + + - col1 * + col2 AS col1 FROM tab0
----
-281
-3769
-91

skipif mysql # not compatible
query I rowsort label-1328
SELECT 6 + + - col0 + + ( + col2 ) + + + col1 / 97 + + - col1 * + col2 AS col1 FROM tab0
----
-281
-3769
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-1329
SELECT ALL 15 * - COUNT( * ) FROM tab2
----
-45

skipif mysql # not compatible
query I rowsort label-1329
SELECT ALL 15 * - COUNT ( * ) FROM tab2
----
-45

query II rowsort
SELECT ALL col1 AS col0, - 52 AS col2 FROM tab0
----
1
-52
21
-52
81
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-1331
SELECT - SUM( ALL + + col0 ) FROM tab0
----
-199

skipif mysql # not compatible
query I rowsort label-1331
SELECT - SUM ( ALL + + col0 ) FROM tab0
----
-199

onlyif mysql # aggregate syntax: 
query I rowsort label-1332
SELECT ALL + COUNT( 79 ) col2 FROM tab2
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1332
SELECT ALL + COUNT ( 79 ) col2 FROM tab2
----
3

query I rowsort
SELECT 46 AS col1 FROM tab0 AS cor0 WHERE NOT NULL < NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 66 / + - col0 * - 82 IS NULL
----

query II rowsort
SELECT DISTINCT col1 AS col1, + col1 AS col1 FROM tab2
----
51
51
67
67
77
77

query I rowsort
SELECT DISTINCT col0 * - - 97 FROM tab1
----
4947
8245
8827

query I rowsort
SELECT DISTINCT 66 AS col1 FROM tab1 WHERE NOT col1 + - 68 / - - col1 - - - col2 * - col2 * + 6 + col1 IS NULL
----
66

onlyif mysql # DIV for integer division: 
query I rowsort label-1338
SELECT + + col1 DIV - col0 + col2 DIV + col2 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-1338
SELECT + + col1 / - col0 + col2 / + col2 FROM tab1 AS cor0
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col2 col1 FROM tab0 AS cor0 WHERE col1 IS NOT NULL
----
-10
-47
-99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + + 59 * + 54 col0 FROM tab0 cor0
----
3087
3139
3176

query I rowsort
SELECT + col2 + - + col0 + - + col1 FROM tab1 cor0
----
-31
-70
31

onlyif mysql # aggregate syntax: 
query I rowsort label-1342
SELECT DISTINCT + 19 + + COUNT( ALL - col2 ) FROM tab2 AS cor0
----
22

skipif mysql # not compatible
query I rowsort label-1342
SELECT DISTINCT + 19 + + COUNT ( ALL - col2 ) FROM tab2 AS cor0
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-1343
SELECT DISTINCT - - MAX( - + col0 ) - + 80 + + COUNT( * ) FROM tab2 AS cor0
----
-123

skipif mysql # not compatible
query I rowsort label-1343
SELECT DISTINCT - - MAX ( - + col0 ) - + 80 + + COUNT ( * ) FROM tab2 AS cor0
----
-123

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 11 / + - 17 * + - col0 * + + 79 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT - 44 AS col2, - col1 FROM tab2 AS cor0
----
-44
-51
-44
-67
-44
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1346
SELECT ALL ( - col2 ) + + CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1346
SELECT ALL ( - col2 ) + + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1347
SELECT + COUNT( - 65 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-1347
SELECT + COUNT ( - 65 ) FROM tab0
----
3

query I rowsort
SELECT - 53 * - col2 FROM tab0
----
2491
5247
530

query I rowsort
SELECT ALL col1 - - col0 * - col0 FROM tab2
----
-2065
-4019
-5558

query IIIIII rowsort
SELECT DISTINCT * FROM tab2, tab2 cor0 WHERE NULL IS NULL
----
54 values hashing to ee5129bae5293935ae558ebe95290e29

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT - col2 * + + col0 >= col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + - ( + + 29 ) FROM tab2 AS cor0
----
-29
-29
-29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1353
SELECT DISTINCT CAST( + ( + - COUNT( * ) ) AS SIGNED ) AS col0 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-1353
SELECT DISTINCT CAST ( + ( + - COUNT ( * ) ) AS INTEGER ) AS col0 FROM tab0
----
-3

query I rowsort
SELECT ALL col0 FROM tab1 AS cor0 WHERE ( + 42 ) < NULL
----

query I rowsort
SELECT ( + col0 ) + 22 AS col0 FROM tab0 cor0 WHERE NOT NULL NOT IN ( col2, col0 )
----

query I rowsort
SELECT - - col0 * - 61 + - col2 - - ( 87 ) * - - ( + col0 ) FROM tab0 cor0
----
2252
2423
343

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT 74 NOT BETWEEN - - col1 AND - + col0 + col2 * 53 * - - ( - col2 ) + + col2 * - - col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + - col2 col2, 10 FROM tab2 AS cor0
----
-23
10
-40
10
-58
10

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col2 * 60 col0 FROM tab0 AS cor0
----
-2820
-5940
-600

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1360
SELECT + col0, CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
46
NULL
64
NULL
75
NULL

skipif mysql # not compatible
query II rowsort label-1360
SELECT + col0, CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
46
NULL
64
NULL
75
NULL

query I rowsort
SELECT - col2 * - + col1 AS col1 FROM tab1 cor0
----
1344
295
3196

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 col1 FROM tab1 AS cor0 WHERE NOT ( col2 + + 82 * - + col1 IS NULL )
----
59
68
96

query I rowsort
SELECT ALL - 51 + + 65 AS col2 FROM tab2 AS cor0
----
14
14
14

query I rowsort
SELECT ALL + + 39 AS col0 FROM tab0 cor0
----
39
39
39

onlyif mysql # aggregate syntax: 
query I rowsort label-1365
SELECT DISTINCT - SUM( - col0 ) * - 86 + - MIN( ALL - 31 ) + - COUNT( * ) * + COUNT( * ) AS col1 FROM tab1
----
-19500

skipif mysql # not compatible
query I rowsort label-1365
SELECT DISTINCT - SUM ( - col0 ) * - 86 + - MIN ( ALL - 31 ) + - COUNT ( * ) * + COUNT ( * ) AS col1 FROM tab1
----
-19500

query I rowsort
SELECT ALL + 51 * col0 FROM tab0
----
4437
4947
765

query I rowsort
SELECT ALL + 20 + 3 AS col2 FROM tab2 AS cor0
----
23
23
23

query II rowsort
SELECT + col1 AS col0, - col2 FROM tab2 AS cor0 WHERE NULL IS NULL
----
51
-23
67
-58
77
-40

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + col1 ) + col0 col2 FROM tab0
----
108
96
98

onlyif mysql # aggregate syntax: 
query I rowsort label-1370
SELECT COUNT( ( + - 91 ) ) * - ( - 94 ) AS col0 FROM tab1
----
282

skipif mysql # not compatible
query I rowsort label-1370
SELECT COUNT ( ( + - 91 ) ) * - ( - 94 ) AS col0 FROM tab1
----
282

query I rowsort
SELECT - - 52 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 7f4ae30893ab330784829711032ae599

onlyif mysql # aggregate syntax: 
query I rowsort label-1372
SELECT DISTINCT + 38 * - COUNT( ALL col2 ) AS col2 FROM tab2 WHERE NOT + 17 <> + col0
----
0

skipif mysql # not compatible
query I rowsort label-1372
SELECT DISTINCT + 38 * - COUNT ( ALL col2 ) AS col2 FROM tab2 WHERE NOT + 17 <> + col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1373
SELECT DISTINCT COUNT( * ) AS col2 FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9

skipif mysql # not compatible
query I rowsort label-1373
SELECT DISTINCT COUNT ( * ) AS col2 FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1374
SELECT + COUNT( * ) DIV + 45 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-1374
SELECT + COUNT ( * ) / + 45 FROM tab0
----
0

query I rowsort
SELECT - 91 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 745d1c3a09d935465cad552325c5c945

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 10 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - - col2 * col2 + 37 FROM tab2 AS cor0
----
1637
3401
566

query I rowsort
SELECT 80 AS col1 FROM tab2 AS cor0 WHERE col1 IS NULL
----

query II rowsort
SELECT - 3 + - ( + + ( col0 ) ) AS col2, - col1 FROM tab0
----
-100
-1
-18
-81
-90
-21

query I rowsort
SELECT - + 3 AS col1 FROM tab1 WHERE + 96 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1381
SELECT + COUNT( * ) + + + 31 AS col2 FROM tab2
----
34

skipif mysql # not compatible
query I rowsort label-1381
SELECT + COUNT ( * ) + + + 31 AS col2 FROM tab2
----
34

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1382
SELECT + 15 / - + CAST( NULL AS DECIMAL ) + 7 / - col1 * col1 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1382
SELECT + 15 / - + CAST ( NULL AS REAL ) + 7 / - col1 * col1 AS col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 48 + - col0 + + col1 FROM tab2
----
40
53
61

query I rowsort
SELECT DISTINCT col0 - + 7 FROM tab1
----
44
78
84

query I rowsort
SELECT - ( col0 ) + 90 * - 48 * - col0 FROM tab2
----
198674
276416
323925

query I rowsort
SELECT DISTINCT + 3 + - col2 FROM tab1 WHERE + + col1 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT 66 * + 71 * + - 8 + + col1 IS NOT NULL
----

query II rowsort
SELECT DISTINCT - 48 AS col1, 33 * ( + + 23 ) AS col2 FROM tab0
----
-48
759

onlyif mysql # aggregate syntax: 
query II rowsort label-1389
SELECT + COUNT( * ) AS col2, - COUNT( * ) AS col1 FROM tab0
----
3
-3

skipif mysql # not compatible
query II rowsort label-1389
SELECT + COUNT ( * ) AS col2, - COUNT ( * ) AS col1 FROM tab0
----
3
-3

query III rowsort
SELECT col0 AS col0, + col2 AS col1, + col0 + - + 28 * - col1 * - - 81 FROM tab0
----
9 values hashing to 6c85eb59af71933d2deec829b11395cb

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1391
SELECT ALL 16 DIV SUM( col1 ) AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-1391
SELECT ALL 16 / SUM ( col1 ) AS col2 FROM tab2
----
0

query I rowsort
SELECT + col2 * col1 * - 63 FROM tab1
----
-18585
-201348
-84672

onlyif mysql # DIV for integer division: 
query II rowsort label-1393
SELECT DISTINCT 36, col2 * + col2 + + col1 DIV + 17 AS col0 FROM tab2
----
36
1604
36
3367
36
532

skipif mysql # not compatible
query II rowsort label-1393
SELECT DISTINCT 36, col2 * + col2 + + col1 / + 17 AS col0 FROM tab2
----
36
1604
36
3367
36
532

query II rowsort
SELECT DISTINCT - col2 AS col2, col2 FROM tab1 AS cor0
----
-59
59
-68
68
-96
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1395
SELECT - COUNT( * ) col2 FROM tab1 AS cor0 WHERE NOT ( ( - CAST( - col0 AS SIGNED ) * 21 + + col0 * - ( - CAST( NULL AS SIGNED ) ) - col1 IS NOT NULL ) )
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1395
SELECT - COUNT ( * ) col2 FROM tab1 AS cor0 WHERE NOT ( ( - CAST ( - col0 AS INTEGER ) * 21 + + col0 * - ( - CAST ( NULL AS INTEGER ) ) - col1 IS NOT NULL ) )
----
-3

query II rowsort
SELECT 67, - 19 AS col2 FROM tab2 cor0
----
67
-19
67
-19
67
-19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1397
SELECT + 79 * + - 53 + + col1 AS col0 FROM tab2 AS cor0 WHERE NOT + CAST( - + 54 AS SIGNED ) IS NULL
----
-4110
-4120
-4136

skipif mysql # not compatible
query I rowsort label-1397
SELECT + 79 * + - 53 + + col1 AS col0 FROM tab2 AS cor0 WHERE NOT + CAST ( - + 54 AS INTEGER ) IS NULL
----
-4110
-4120
-4136

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1398
SELECT - + CAST( + CAST( NULL AS SIGNED ) AS DECIMAL ) + - 95 FROM tab1 AS cor0 WHERE NOT 54 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-1398
SELECT - + CAST ( + CAST ( NULL AS INTEGER ) AS REAL ) + - 95 FROM tab1 AS cor0 WHERE NOT 54 IS NOT NULL
----

query I rowsort
SELECT - 42 FROM tab0 AS cor0 WHERE NOT + col1 IS NULL
----
-42
-42
-42

onlyif mysql # DIV for integer division: 
query I rowsort label-1400
SELECT - col1 + - + 66 * - - 64 - col2 + col1 DIV + ( 73 ) col2 FROM tab1 AS cor0
----
-4288
-4334
-4339

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1400
SELECT - col1 + - + 66 * - - 64 - col2 + col1 / + ( 73 ) col2 FROM tab1 AS cor0
----
-4288
-4334
-4339

query I rowsort
SELECT 50 + - - 1 - - ( + 83 ) AS col0 FROM tab1
----
134
134
134

onlyif mysql # aggregate syntax: 
query I rowsort label-1402
SELECT ALL - COUNT( * ) * + 3 col1 FROM tab0
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1402
SELECT ALL - COUNT ( * ) * + 3 col1 FROM tab0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-1403
SELECT - ( - COUNT( * ) ) + + ( - COUNT( * ) ) AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-1403
SELECT - ( - COUNT ( * ) ) + + ( - COUNT ( * ) ) AS col2 FROM tab1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1404
SELECT ALL CAST( - + COUNT( * ) AS SIGNED ) col0 FROM tab1 WHERE + col0 IS NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1404
SELECT ALL CAST ( - + COUNT ( * ) AS INTEGER ) col0 FROM tab1 WHERE + col0 IS NULL
----
0

query I rowsort
SELECT DISTINCT - col1 + + + 65 AS col2 FROM tab0 cor0
----
-16
44
64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1406
SELECT DISTINCT - CAST( 50 AS SIGNED ) FROM tab2 AS cor0
----
-50

skipif mysql # not compatible
query I rowsort label-1406
SELECT DISTINCT - CAST ( 50 AS INTEGER ) FROM tab2 AS cor0
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-1407
SELECT ALL - COUNT( * ) + COUNT( * ) col1 FROM tab0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1407
SELECT ALL - COUNT ( * ) + COUNT ( * ) col1 FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1408
SELECT DISTINCT SUM( DISTINCT + 60 ) FROM tab2
----
60

skipif mysql # not compatible
query I rowsort label-1408
SELECT DISTINCT SUM ( DISTINCT + 60 ) FROM tab2
----
60

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1409
SELECT 21 DIV COUNT( * ) AS col1 FROM tab2
----
7

skipif mysql # not compatible
query I rowsort label-1409
SELECT 21 / COUNT ( * ) AS col1 FROM tab2
----
7

query I rowsort
SELECT DISTINCT 47 * col1 AS col1 FROM tab2
----
2397
3149
3619

query I rowsort
SELECT ALL - 5 AS col0 FROM tab1 WHERE + col2 * + 85 + col0 <= ( col2 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1412
SELECT COUNT( * ) DIV - 70 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-1412
SELECT COUNT ( * ) / - 70 FROM tab1
----
0

query I rowsort
SELECT DISTINCT col2 AS col0 FROM tab2 WHERE ( - col0 ) IS NULL
----

query I rowsort
SELECT col0 * + 4 AS col0 FROM tab1
----
204
340
364

query I rowsort
SELECT ALL - col1 + 44 AS col1 FROM tab1
----
-3
30
39

query I rowsort
SELECT DISTINCT - ( - 97 ) * + col1 - + col0 AS col1 FROM tab1
----
1307
400
4468

query I rowsort
SELECT - col0 FROM tab0 WHERE - col0 IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT col1 + + col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-1419
SELECT ALL MAX( 2 ) * - COUNT( * ) FROM tab2
----
-6

skipif mysql # not compatible
query I rowsort label-1419
SELECT ALL MAX ( 2 ) * - COUNT ( * ) FROM tab2
----
-6

onlyif mysql # DIV for integer division: 
query I rowsort label-1420
SELECT col2 DIV + 2 + col2 FROM tab0
----
148
15
70

skipif mysql # not compatible
query I rowsort label-1420
SELECT col2 / + 2 + col2 FROM tab0
----
148
15
70

onlyif mysql # aggregate syntax: 
query I rowsort label-1421
SELECT + COUNT( * ) FROM tab0 WHERE col2 + + 19 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-1421
SELECT + COUNT ( * ) FROM tab0 WHERE col2 + + 19 IS NOT NULL
----
3

query III rowsort
SELECT ALL * FROM tab2 WHERE col1 > - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT 89 + + 5 FROM tab1
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-1424
SELECT + COUNT( * ) * MIN( DISTINCT 4 ) FROM tab1
----
12

skipif mysql # not compatible
query I rowsort label-1424
SELECT + COUNT ( * ) * MIN ( DISTINCT 4 ) FROM tab1
----
12

query I rowsort
SELECT ALL ( + ( - col0 ) ) FROM tab1
----
-51
-85
-91

query I rowsort
SELECT ALL col2 AS col1 FROM tab0 WHERE NOT col1 / - 15 IS NOT NULL
----

query I rowsort
SELECT + 34 + - 90 FROM tab2
----
-56
-56
-56

query I rowsort
SELECT 79 * - 2 + - 73 FROM tab2
----
-231
-231
-231

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL IN ( - ( + col0 ) * col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1430
SELECT + COUNT( * ) AS col2 FROM tab1 WHERE col0 * 15 NOT BETWEEN ( ( + 41 ) ) AND ( - col2 )
----
3

skipif mysql # not compatible
query I rowsort label-1430
SELECT + COUNT ( * ) AS col2 FROM tab1 WHERE col0 * 15 NOT BETWEEN ( ( + 41 ) ) AND ( - col2 )
----
3

query I rowsort
SELECT ALL - 56 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1432
SELECT COUNT( + CAST( NULL AS DECIMAL ) ) + 90 AS col0 FROM tab2
----
90

skipif mysql # not compatible
query I rowsort label-1432
SELECT COUNT ( + CAST ( NULL AS REAL ) ) + 90 AS col0 FROM tab2
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-1433
SELECT COUNT( * ) FROM tab2 WHERE NULL >= - col0
----
0

skipif mysql # not compatible
query I rowsort label-1433
SELECT COUNT ( * ) FROM tab2 WHERE NULL >= - col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1434
SELECT 66 + - COUNT( * ) AS col1 FROM tab1
----
63

skipif mysql # not compatible
query I rowsort label-1434
SELECT 66 + - COUNT ( * ) AS col1 FROM tab1
----
63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1435
SELECT COUNT( * ) + - COUNT( * ) * + ( 22 + - CAST( NULL AS SIGNED ) ) col0 FROM tab2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1435
SELECT COUNT ( * ) + - COUNT ( * ) * + ( 22 + - CAST ( NULL AS INTEGER ) ) col0 FROM tab2
----
NULL

query I rowsort
SELECT 78 + - col1 FROM tab1
----
31
64
73

query I rowsort
SELECT DISTINCT + col0 + 57 * + 66 AS col0 FROM tab1 AS cor0 WHERE NOT col1 BETWEEN ( + col0 ) AND ( 2 )
----
3813
3847
3853

onlyif mysql # aggregate syntax: 
query I rowsort label-1438
SELECT ALL + COUNT( * ) * 48 col0 FROM tab2 AS cor0
----
144

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1438
SELECT ALL + COUNT ( * ) * 48 col0 FROM tab2 AS cor0
----
144

onlyif mysql # DIV for integer division: 
query I rowsort label-1439
SELECT col0 DIV 77 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1439
SELECT col0 / 77 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT 57 + - 74 * 19 FROM ( tab0 AS cor0 CROSS JOIN tab0 )
----
9 values hashing to 0e7cddab9d52fd1d47799182157ba472

query I rowsort
SELECT + 3 FROM tab2 AS cor0 CROSS JOIN tab2
----
9 values hashing to 3cf1e377a943589897b8d431a834f1ba

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1442
SELECT - CAST( NULL AS SIGNED ) - - CAST( COUNT( * ) + 77 AS SIGNED ) FROM tab2 AS cor0 CROSS JOIN tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-1442
SELECT - CAST ( NULL AS INTEGER ) - - CAST ( COUNT ( * ) + 77 AS INTEGER ) FROM tab2 AS cor0 CROSS JOIN tab2
----
NULL

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE col0 BETWEEN 9 AND col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-1444
SELECT + + MAX( col1 ) AS col0 FROM tab2 cor0
----
77

skipif mysql # not compatible
query I rowsort label-1444
SELECT + + MAX ( col1 ) AS col0 FROM tab2 cor0
----
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 4 col0 FROM tab1 AS cor0
----
-4

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + 33 * + col0 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1447
SELECT - MIN( ALL col1 ) col1 FROM tab2 AS cor0
----
-51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1447
SELECT - MIN ( ALL col1 ) col1 FROM tab2 AS cor0
----
-51

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( + col1 * - col0 ) = NULL
----

query I rowsort
SELECT + + 1 * col0 FROM tab1 AS cor0
----
51
85
91

query III rowsort
SELECT * FROM tab1 WHERE - col1 = col1 + col0 * ( col0 )
----

query III rowsort
SELECT * FROM tab2 WHERE NULL <= + col2 + col0 / - 46
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1452
SELECT DISTINCT + ( - MIN( ALL col0 ) ) col0 FROM tab2
----
-46

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1452
SELECT DISTINCT + ( - MIN ( ALL col0 ) ) col0 FROM tab2
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-1453
SELECT ALL COUNT( + - col0 ) col0 FROM tab1
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1453
SELECT ALL COUNT ( + - col0 ) col0 FROM tab1
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-1454
SELECT 27 DIV + + ( + 32 ) * + col2 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1454
SELECT 27 / + + ( + 32 ) * + col2 FROM tab0
----
0
0
0

query I rowsort
SELECT - col0 * + col1 + 34 * + col1 AS col1 FROM tab0
----
-1113
-63
1539

query I rowsort
SELECT DISTINCT col2 + - - col1 + + col2 AS col2 FROM tab2
----
157
183
97

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1457
SELECT ALL * FROM tab2 WHERE NOT NULL > NULL OR NOT CAST( NULL AS SIGNED ) - - col2 IS NULL
----

skipif mysql # not compatible
query III rowsort label-1457
SELECT ALL * FROM tab2 WHERE NOT NULL > NULL OR NOT CAST ( NULL AS INTEGER ) - - col2 IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1458
SELECT - 20 + - COUNT( * ) DIV + COUNT( * ) FROM tab1 AS cor0
----
-21

skipif mysql # not compatible
query I rowsort label-1458
SELECT - 20 + - COUNT ( * ) / + COUNT ( * ) FROM tab1 AS cor0
----
-21

query I rowsort
SELECT DISTINCT - - col2 + - 20 AS col1 FROM tab0 AS cor0
----
-10
27
79

query I rowsort
SELECT - col1 AS col0 FROM tab2 AS cor0 WHERE col2 * + 84 - - 31 <= ( 0 )
----

query I rowsort
SELECT DISTINCT + 2 + - ( ( 85 ) ) AS col2 FROM tab2 cor0
----
-83

query I rowsort
SELECT DISTINCT + 62 + - col0 AS col1 FROM tab0 WHERE NULL = + col1 * + 31
----

query I rowsort
SELECT ALL 77 + - col1 AS col1 FROM tab0
----
-4
56
76

query I rowsort
SELECT ALL + ( + + 87 ) - - 72 + + 54 * + 7 AS col0 FROM tab1
----
537
537
537

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1465
SELECT * FROM tab1 AS cor0 WHERE - ( col2 ) * 17 = - col2 * CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-1465
SELECT * FROM tab1 AS cor0 WHERE - ( col2 ) * 17 = - col2 * CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT DISTINCT + col2 * 65 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN col0 * 54 AND 82
----

query I rowsort
SELECT DISTINCT + ( - col1 ) - 8 FROM tab1 AS cor0 WHERE NOT + col0 NOT BETWEEN ( NULL ) AND col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 7 AS col1, col2 col0 FROM tab2 AS cor0
----
7
23
7
40
7
58

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( NULL ) BETWEEN + + col1 AND ( - 29 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1470
SELECT col2 DIV + - col2 AS col1 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-1470
SELECT col2 / + - col2 AS col1 FROM tab2 AS cor0
----
-1
-1
-1

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 76 - ( 63 ) / - col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - + 49 * + + 15 AS col0 FROM tab0 AS cor0
----
-735

onlyif mysql # aggregate syntax: 
query I rowsort label-1473
SELECT DISTINCT - ( SUM( DISTINCT - 14 ) ) FROM tab2
----
14

skipif mysql # not compatible
query I rowsort label-1473
SELECT DISTINCT - ( SUM ( DISTINCT - 14 ) ) FROM tab2
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-1474
SELECT DISTINCT - COUNT( * ) * 52 * + 24 AS col1 FROM tab2
----
-3744

skipif mysql # not compatible
query I rowsort label-1474
SELECT DISTINCT - COUNT ( * ) * 52 * + 24 AS col1 FROM tab2
----
-3744

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1475
SELECT CAST( + - 80 AS SIGNED ) * col2 AS col2 FROM tab2
----
-1840
-3200
-4640

skipif mysql # not compatible
query I rowsort label-1475
SELECT CAST ( + - 80 AS INTEGER ) * col2 AS col2 FROM tab2
----
-1840
-3200
-4640

onlyif mysql # aggregate syntax: 
query I rowsort label-1476
SELECT MIN( + 13 ) FROM tab1
----
13

skipif mysql # not compatible
query I rowsort label-1476
SELECT MIN ( + 13 ) FROM tab1
----
13

query I rowsort
SELECT DISTINCT + col0 + - ( + col1 ) * + col1 AS col2 FROM tab1 WHERE NULL NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col1 <= col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE 18 * - col2 < NULL
----

query II rowsort
SELECT ALL ( - 3 ) AS col0, 87 * - + col0 FROM tab2
----
-3
-4002
-3
-5568
-3
-6525

query II rowsort
SELECT DISTINCT 56 * - col0, col0 * + ( col2 ) AS col2 FROM tab1
----
-2856
4896
-4760
5015
-5096
6188

query I rowsort
SELECT 66 * col1 * + col0 FROM tab1
----
28050
282282
47124

query I rowsort
SELECT - col1 * 87 FROM tab1 WHERE NOT ( + col0 ) NOT IN ( col0 )
----
-1218
-4089
-435

onlyif mysql # aggregate syntax: 
query I rowsort label-1484
SELECT + COUNT( DISTINCT + 17 ) FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-1484
SELECT + COUNT ( DISTINCT + 17 ) FROM tab2
----
1

query I rowsort
SELECT ( + col1 ) * - + col0 FROM tab1
----
-425
-4277
-714

query I rowsort
SELECT DISTINCT col2 FROM tab1 WHERE ( - + 55 * + - col0 + + col0 ) = - col2
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1487
SELECT col1 FROM tab1 AS cor0 WHERE NOT ( 84 * - - 23 + CAST( NULL AS DECIMAL ) / 24 ) <> ( col2 )
----

skipif mysql # not compatible
query I rowsort label-1487
SELECT col1 FROM tab1 AS cor0 WHERE NOT ( 84 * - - 23 + CAST ( NULL AS REAL ) / 24 ) <> ( col2 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( - 32 ) BETWEEN ( NULL ) AND NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( - col2 <= ( + 9 ) )
----

query I rowsort
SELECT DISTINCT col0 + col2 FROM tab2 WHERE ( NULL ) <> ( - 19 + - col1 * + + col0 * col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1491
SELECT - + COUNT( * ) * + + COUNT( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-81

skipif mysql # not compatible
query I rowsort label-1491
SELECT - + COUNT ( * ) * + + COUNT ( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-81

query I rowsort
SELECT DISTINCT + col2 + - 73 FROM tab2 AS cor0 WHERE NOT + col1 - - col0 < - col0
----
-15
-33
-50

query I rowsort
SELECT ALL 92 - - col2 AS col1 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE - col0 * - col2 = + 68
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1495
SELECT DISTINCT - - COUNT( * ) + - COUNT( * ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1495
SELECT DISTINCT - - COUNT ( * ) + - COUNT ( * ) FROM tab0 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1496
SELECT ALL + COUNT( * ) + - 39 AS col1 FROM tab2 AS cor0
----
-36

skipif mysql # not compatible
query I rowsort label-1496
SELECT ALL + COUNT ( * ) + - 39 AS col1 FROM tab2 AS cor0
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-1497
SELECT DISTINCT COUNT( * ) + COUNT( ALL + col1 ) FROM tab0 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-1497
SELECT DISTINCT COUNT ( * ) + COUNT ( ALL + col1 ) FROM tab0 AS cor0
----
6

query I rowsort
SELECT + + 29 + - col0 FROM tab0 AS cor0
----
-58
-68
14

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 87 + 61 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL BETWEEN ( col2 * - + col0 ) AND col0 * - col0
----

query I rowsort
SELECT col1 + - 80 + - 83 + - col1 * - - 77 AS col2 FROM tab2
----
-4039
-5255
-6015

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1502
SELECT - COUNT( * ) * + - COUNT( * ) + + CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-1502
SELECT - COUNT ( * ) * + - COUNT ( * ) + + CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1503
SELECT DISTINCT + COUNT( * ) FROM tab0 WHERE NOT + col0 <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-1503
SELECT DISTINCT + COUNT ( * ) FROM tab0 WHERE NOT + col0 <= NULL
----
0

query I rowsort
SELECT col2 + - - col2 AS col0 FROM tab1
----
118
136
192

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1505
SELECT col1 AS col2 FROM tab2 WHERE ( NOT NULL <> CAST( NULL AS SIGNED ) * col1 )
----

skipif mysql # not compatible
query I rowsort label-1505
SELECT col1 AS col2 FROM tab2 WHERE ( NOT NULL <> CAST ( NULL AS INTEGER ) * col1 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 11 > 99
----

query I rowsort
SELECT DISTINCT - col1 FROM tab2 AS cor0 WHERE NOT col2 * - 70 NOT BETWEEN ( col2 * - col1 ) AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN ( col2 / - 21 ) AND - 89
----

query I rowsort
SELECT + col1 AS col0 FROM tab2 AS cor0 WHERE NOT + col0 BETWEEN - col2 AND - col2
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-1510
SELECT DISTINCT - COUNT( * ) * + 38 AS col2 FROM tab0 AS cor0
----
-114

skipif mysql # not compatible
query I rowsort label-1510
SELECT DISTINCT - COUNT ( * ) * + 38 AS col2 FROM tab0 AS cor0
----
-114

query I rowsort
SELECT ALL col1 FROM tab0 AS cor0 WHERE NOT ( col1 ) IS NULL
----
1
21
81

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col0 <> - 20 * - + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1513
SELECT + CAST( + col1 AS SIGNED ) AS col2, + CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
51
NULL
67
NULL
77
NULL

skipif mysql # not compatible
query II rowsort label-1513
SELECT + CAST ( + col1 AS INTEGER ) AS col2, + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
51
NULL
67
NULL
77
NULL

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + 67 / 29 IN ( + col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1515
SELECT + COUNT( * ) DIV + + 14 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1515
SELECT + COUNT ( * ) / + + 14 FROM tab2 AS cor0
----
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col1 + 28 + col0 IS NOT NULL
----

query I rowsort
SELECT - - 76 FROM tab0 cor0
----
76
76
76

query I rowsort
SELECT ALL + col2 * col0 + col1 AS col0 FROM tab0 AS cor0 WHERE 94 IS NOT NULL
----
786
891
9604

onlyif mysql # aggregate syntax: 
query I rowsort label-1519
SELECT - COUNT( * ) * 1 AS col2 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-1519
SELECT - COUNT ( * ) * 1 AS col2 FROM tab2
----
-3

query I rowsort
SELECT ALL + 13 * col0 FROM tab1
----
1105
1183
663

onlyif mysql # aggregate syntax: 
query I rowsort label-1521
SELECT DISTINCT + MIN( - col1 ) AS col2 FROM tab2
----
-77

skipif mysql # not compatible
query I rowsort label-1521
SELECT DISTINCT + MIN ( - col1 ) AS col2 FROM tab2
----
-77

onlyif mysql # aggregate syntax: 
query II rowsort label-1522
SELECT ALL COUNT( * ), COUNT( * ) col1 FROM tab2
----
3
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1522
SELECT ALL COUNT ( * ), COUNT ( * ) col1 FROM tab2
----
3
3

query II rowsort
SELECT DISTINCT col2 AS col0, - 22 AS col0 FROM tab2
----
23
-22
40
-22
58
-22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1524
SELECT - + CAST( - 62 AS SIGNED ) * COUNT( * ) * + 19 FROM tab1 WHERE NOT - 8 IS NULL
----
3534

skipif mysql # not compatible
query I rowsort label-1524
SELECT - + CAST ( - 62 AS INTEGER ) * COUNT ( * ) * + 19 FROM tab1 WHERE NOT - 8 IS NULL
----
3534

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1525
SELECT - CAST( NULL AS SIGNED ) * - 59 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1525
SELECT - CAST ( NULL AS INTEGER ) * - 59 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - ( + col1 ) * 22 * 75 + - 90 AS col1 FROM tab0
----
-133740
-1740
-34740

onlyif mysql # aggregate syntax: 
query I rowsort label-1527
SELECT DISTINCT + MAX( + col1 ) FROM tab1
----
47

skipif mysql # not compatible
query I rowsort label-1527
SELECT DISTINCT + MAX ( + col1 ) FROM tab1
----
47

onlyif mysql # aggregate syntax: 
query II rowsort label-1528
SELECT - COUNT( * ) col2, + 96 FROM tab2
----
-3
96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1528
SELECT - COUNT ( * ) col2, + 96 FROM tab2
----
-3
96

query I rowsort
SELECT + ( + 58 ) FROM tab0 WHERE NOT NULL = ( - + ( 72 ) )
----

query I rowsort
SELECT ALL 53 * - + col2 FROM tab0
----
-2491
-5247
-530

query I rowsort
SELECT - 92 * - - 36 FROM tab2
----
-3312
-3312
-3312

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col0 * + 43 col0 FROM tab1 cor0
----
2193
3655
3913

query IIIIII rowsort
SELECT ALL * FROM tab0, tab1 cor0 WHERE NULL <> NULL
----

query I rowsort
SELECT 37 * 94 + - col0 FROM tab2
----
3403
3414
3432

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1535
SELECT ALL AVG ( - - CAST( NULL AS SIGNED ) ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-1535
SELECT ALL AVG ( - - CAST ( NULL AS INTEGER ) ) FROM tab2
----
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL > - 38
----

query I rowsort
SELECT ( + - col0 ) * col2 AS col2 FROM tab1 AS cor0
----
-4896
-5015
-6188

query I rowsort
SELECT DISTINCT + - col1 * - col2 + + + col1 FROM tab2 cor0
----
1224
3157
3953

query I rowsort
SELECT ALL + + 99 * col2 + ( col1 ) + + col2 AS col2 FROM tab1 AS cor0
----
5905
6847
9614

query I rowsort
SELECT col2 + + col1 * + col0 * - 53 AS col2 FROM tab2 cor0 WHERE NULL IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * col2 + + + col0 + - 7 * col2 + - 96 * + + 13 col0 FROM tab0 AS cor0
----
-1131
647
7957

query I rowsort
SELECT DISTINCT col2 + + col2 + + col1 * 95 FROM tab1
----
1522
4601
593

onlyif mysql # aggregate syntax: 
query I rowsort label-1543
SELECT + COUNT( * ) + - - MAX( - + col0 ) AS col2 FROM tab2
----
-43

skipif mysql # not compatible
query I rowsort label-1543
SELECT + COUNT ( * ) + - - MAX ( - + col0 ) AS col2 FROM tab2
----
-43

query I rowsort
SELECT + col1 + + 92 FROM tab2
----
143
159
169

query II rowsort
SELECT ALL - 1, col0 AS col1 FROM tab2
----
-1
46
-1
64
-1
75

onlyif mysql # DIV for integer division: 
query I rowsort label-1546
SELECT - ( col0 ) DIV + col1 + - - col0 - + col0 + - col0 AS col1 FROM tab0
----
-15
-194
-91

skipif mysql # not compatible
query I rowsort label-1546
SELECT - ( col0 ) / + col1 + - - col0 - + col0 + - col0 AS col1 FROM tab0
----
-15
-194
-91

query I rowsort
SELECT col2 + - col2 * + col2 AS col2 FROM tab1
----
-3422
-4556
-9120

onlyif mysql # aggregate syntax: 
query I rowsort label-1548
SELECT - 97 + - - ( + MAX( - 65 ) ) AS col2 FROM tab2
----
-162

skipif mysql # not compatible
query I rowsort label-1548
SELECT - 97 + - - ( + MAX ( - 65 ) ) AS col2 FROM tab2
----
-162

query I rowsort
SELECT DISTINCT - - col2 - + + 96 FROM tab0 AS cor0
----
-49
-86
3

query I rowsort
SELECT DISTINCT 99 + - + col2 + col2 AS col2 FROM tab0
----
99

onlyif mysql # aggregate syntax: 
query II rowsort label-1551
SELECT + 51, MIN( DISTINCT + col1 ) FROM tab2
----
51
51

skipif mysql # not compatible
query II rowsort label-1551
SELECT + 51, MIN ( DISTINCT + col1 ) FROM tab2
----
51
51

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL IN ( + 81, - col1, + 84 + + col1 )
----

query I rowsort
SELECT ALL + + col2 * col0 * + col0 FROM tab2 AS cor0
----
163840
326250
48668

query I rowsort
SELECT DISTINCT + col2 + - col1 + + - col2 AS col1 FROM tab1 AS cor0 WHERE NOT ( + col0 ) NOT BETWEEN NULL AND col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 / col0 * col2 + + col0 col2 FROM tab1 cor0 WHERE NOT ( + col2 ) IS NOT NULL
----

query I rowsort
SELECT ALL + + col2 * + 62 AS col1 FROM tab1 AS cor0
----
3658
4216
5952

onlyif mysql # aggregate syntax: 
query I rowsort label-1557
SELECT + COUNT( * ) FROM tab0 AS cor0 WHERE NOT ( col2 ) IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-1557
SELECT + COUNT ( * ) FROM tab0 AS cor0 WHERE NOT ( col2 ) IS NULL
----
3

query II rowsort
SELECT ALL - 34 AS col2, col2 FROM tab1 AS cor0
----
-34
59
-34
68
-34
96

query II rowsort
SELECT DISTINCT + 69 AS col1, - 56 + - 43 AS col2 FROM tab0 cor0
----
69
-99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 21 AS col1, 87 col1 FROM tab2 cor0
----
21
87
21
87
21
87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 84 * + + col2 col0 FROM tab2
----
-1932
-3360
-4872

query I rowsort
SELECT ( - 21 ) AS col0 FROM tab0
----
-21
-21
-21

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 69 * - col0 * col2 * - col0 col0 FROM tab2
----
11304960
22511250
3358092

query I rowsort
SELECT 54 / col1 AS col1 FROM tab0 WHERE NOT ( NULL IN ( - col2 * + ( + col2 ) ) )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT - col0 NOT BETWEEN NULL AND + 31 + - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1566
SELECT DISTINCT + - COUNT( * ) + + MAX( ALL + 32 ) AS col0 FROM tab2 AS cor0
----
29

skipif mysql # not compatible
query I rowsort label-1566
SELECT DISTINCT + - COUNT ( * ) + + MAX ( ALL + 32 ) AS col0 FROM tab2 AS cor0
----
29

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 50 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-1568
SELECT - MIN( + 2 ) FROM tab1 AS cor0
----
-2

skipif mysql # not compatible
query I rowsort label-1568
SELECT - MIN ( + 2 ) FROM tab1 AS cor0
----
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-1569
SELECT 41 DIV + col2 AS col0 FROM tab0 AS cor0
----
0
0
4

skipif mysql # not compatible
query I rowsort label-1569
SELECT 41 / + col2 AS col0 FROM tab0 AS cor0
----
0
0
4

onlyif mysql # aggregate syntax: 
query II rowsort label-1570
SELECT ALL COUNT( * ) * - COUNT( col0 ) AS col2, COUNT( * ) FROM tab0
----
-9
3

skipif mysql # not compatible
query II rowsort label-1570
SELECT ALL COUNT ( * ) * - COUNT ( col0 ) AS col2, COUNT ( * ) FROM tab0
----
-9
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1571
SELECT ALL + ( col1 ) * + - ( - CAST( - 22 AS SIGNED ) ) FROM tab0
----
-1782
-22
-462

skipif mysql # not compatible
query I rowsort label-1571
SELECT ALL + ( col1 ) * + - ( - CAST ( - 22 AS INTEGER ) ) FROM tab0
----
-1782
-22
-462

query I rowsort
SELECT DISTINCT 90 * - ( 83 ) * - 47 AS col0 FROM tab2
----
351090

onlyif mysql # DIV for integer division: 
query I rowsort label-1573
SELECT ALL + ( + col2 ) DIV + 12 AS col2 FROM tab1 AS cor0
----
4
5
8

skipif mysql # not compatible
query I rowsort label-1573
SELECT ALL + ( + col2 ) / + 12 AS col2 FROM tab1 AS cor0
----
4
5
8

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 63 + - - col2 * - col1 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 * + col0 * - + col2 * + 63 AS col1, + col0 + + col1 col2 FROM tab1 cor0
----
-15730848
65
-26855325
90
-35475804
138

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( 49 ) IS NULL
----

query I rowsort
SELECT DISTINCT + 30 * - 17 FROM tab2 AS cor0 WHERE 1 * + + col0 IS NOT NULL
----
-510

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1578
SELECT COUNT( * ), 96 AS col1 FROM tab2 AS cor0 WHERE NULL IN ( + CAST( NULL AS SIGNED ) )
----
0
96

skipif mysql # not compatible
query II rowsort label-1578
SELECT COUNT ( * ), 96 AS col1 FROM tab2 AS cor0 WHERE NULL IN ( + CAST ( NULL AS INTEGER ) )
----
0
96

query II rowsort
SELECT - 97 + - ( - - col0 ), + ( col1 ) FROM tab0 AS cor0
----
-112
81
-184
21
-194
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 col0 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
-59
-68
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1581
SELECT DISTINCT col0 * - CAST( + col0 AS SIGNED ) * + col2 FROM tab2
----
-163840
-326250
-48668

skipif mysql # not compatible
query I rowsort label-1581
SELECT DISTINCT col0 * - CAST ( + col0 AS INTEGER ) * + col2 FROM tab2
----
-163840
-326250
-48668

query I rowsort
SELECT + ( + + 37 ) FROM tab0
----
37
37
37

onlyif mysql # DIV for integer division: 
query I rowsort label-1583
SELECT DISTINCT - col0 * - - col1 - - + col2 * + 74 * + col2 * - 93 + + ( + col0 ) + + col0 DIV - - col2 FROM tab2
----
-11016063
-23155997
-3642876

skipif mysql # not compatible
query I rowsort label-1583
SELECT DISTINCT - col0 * - - col1 - - + col2 * + 74 * + col2 * - 93 + + ( + col0 ) + + col0 / - - col2 FROM tab2
----
-11016063
-23155997
-3642876

onlyif mysql # aggregate syntax: 
query I rowsort label-1584
SELECT DISTINCT - COUNT( * ) - 1 AS col2 FROM tab1
----
-4

skipif mysql # not compatible
query I rowsort label-1584
SELECT DISTINCT - COUNT ( * ) - 1 AS col2 FROM tab1
----
-4

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1585
SELECT ALL * FROM tab1 WHERE NULL NOT BETWEEN NULL AND + + CAST( NULL AS SIGNED ) + + CAST( + + 32 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-1585
SELECT ALL * FROM tab1 WHERE NULL NOT BETWEEN NULL AND + + CAST ( NULL AS INTEGER ) + + CAST ( + + 32 AS INTEGER )
----

query III rowsort
SELECT * FROM tab1 WHERE + col1 NOT BETWEEN + col1 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1587
SELECT * FROM tab0 WHERE - col2 + CAST( NULL AS SIGNED ) + - 5 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-1587
SELECT * FROM tab0 WHERE - col2 + CAST ( NULL AS INTEGER ) + - 5 IS NOT NULL
----

query I rowsort
SELECT + 87 - col2 * + col2 AS col2 FROM tab2 AS cor0
----
-1513
-3277
-442

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1589
SELECT - CAST( + col0 AS SIGNED ) - + + col1 AS col1 FROM tab2 cor0
----
-141
-142
-97

skipif mysql # not compatible
query I rowsort label-1589
SELECT - CAST ( + col0 AS INTEGER ) - + + col1 AS col1 FROM tab2 cor0
----
-141
-142
-97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1590
SELECT + - COUNT( * ) DIV + + MIN( col2 ) AS col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1590
SELECT + - COUNT ( * ) / + + MIN ( col2 ) AS col1 FROM tab2 AS cor0
----
0

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT NULL NOT IN ( - 82 )
----

query I rowsort
SELECT - 68 AS col2 FROM tab1, tab2 cor0
----
9 values hashing to 5febf382d36d6e0191889c41b928786f

onlyif mysql # aggregate syntax: 
query I rowsort label-1593
SELECT DISTINCT - SUM( ALL + 72 ) FROM tab1 AS cor0
----
-216

skipif mysql # not compatible
query I rowsort label-1593
SELECT DISTINCT - SUM ( ALL + 72 ) FROM tab1 AS cor0
----
-216

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1594
SELECT DISTINCT - ( col0 ) DIV col2 DIV ( col1 ) + - CAST( col2 AS SIGNED ) + + col2 + ( - + col1 ) + - col1 AS col2 FROM tab0 AS cor0
----
-162
-2
-42

skipif mysql # not compatible
query I rowsort label-1594
SELECT DISTINCT - ( col0 ) / col2 / ( col1 ) + - CAST ( col2 AS INTEGER ) + + col2 + ( - + col1 ) + - col1 AS col2 FROM tab0 AS cor0
----
-162
-2
-42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1595
SELECT DISTINCT - CAST( + col2 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-1595
SELECT DISTINCT - CAST ( + col2 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-1596
SELECT COUNT( * ) FROM tab1 AS cor0 WHERE NOT - col1 * + 99 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-1596
SELECT COUNT ( * ) FROM tab1 AS cor0 WHERE NOT - col1 * + 99 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1597
SELECT DISTINCT + COUNT( - ( + col0 ) ) col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1597
SELECT DISTINCT + COUNT ( - ( + col0 ) ) col0 FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1598
SELECT ALL + MAX( col0 ) AS col2 FROM tab1 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-1598
SELECT ALL + MAX ( col0 ) AS col2 FROM tab1 AS cor0
----
91

query I rowsort
SELECT ALL + 58 AS col1 FROM tab0 AS cor0 WHERE NOT + col0 < ( NULL )
----

query I rowsort
SELECT - - ( col0 ) * + - col2 AS col1 FROM tab0 AS cor0
----
-705
-870
-9603

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL > - 93
----

query II rowsort
SELECT col1, col0 + + col0 FROM tab1
----
14
102
47
182
5
170

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL NOT BETWEEN - ( - 74 ) + - col0 * - col2 AND - 39 - + 41
----

onlyif mysql # DIV for integer division: 
query II rowsort label-1604
SELECT ALL col0 AS col0, 18 DIV 83 AS col0 FROM tab0
----
15
0
87
0
97
0

skipif mysql # not compatible
query II rowsort label-1604
SELECT ALL col0 AS col0, 18 / 83 AS col0 FROM tab0
----
15
0
87
0
97
0

query II rowsort
SELECT 96, - col2 AS col2 FROM tab0 AS cor0
----
96
-10
96
-47
96
-99

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1606
SELECT - - col1 col2, CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
14
NULL
47
NULL
5
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1606
SELECT - - col1 col2, CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
14
NULL
47
NULL
5
NULL

query I rowsort
SELECT ALL - + col1 * + ( + col0 ) AS col1 FROM tab1 AS cor0
----
-425
-4277
-714

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - 11 NOT IN ( + 58 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1609
SELECT ALL - 65 DIV COUNT( * ) + - 10 FROM tab1 AS cor0
----
-31

skipif mysql # not compatible
query I rowsort label-1609
SELECT ALL - 65 / COUNT ( * ) + - 10 FROM tab1 AS cor0
----
-31

onlyif mysql # DIV for integer division: 
query I rowsort label-1610
SELECT ALL + col0 * + col0 + col2 DIV - 2 AS col1 FROM tab1
----
2553
7196
8247

skipif mysql # not compatible
query I rowsort label-1610
SELECT ALL + col0 * + col0 + col2 / - 2 AS col1 FROM tab1
----
2553
7196
8247

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1611
SELECT 4 DIV + + SUM( - col2 ) AS col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-1611
SELECT 4 / + + SUM ( - col2 ) AS col1 FROM tab0
----
0

query I rowsort
SELECT DISTINCT col0 + - col2 + - 76 AS col2 FROM tab2
----
-52
-53
-59

query I rowsort
SELECT - - col0 * 62 * - col1 AS col1 FROM tab2 AS cor0
----
-145452
-305536
-311550

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1614
SELECT DISTINCT - col2 + - ( + CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1614
SELECT DISTINCT - col2 + - ( + CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT + - 68 FROM tab0 cor0
----
-68
-68
-68

onlyif mysql # DIV for integer division: 
query I rowsort label-1616
SELECT DISTINCT + + 17 * col2 DIV - col0 + - col0 col2 FROM tab0 AS cor0
----
-114
-68
-88

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1616
SELECT DISTINCT + + 17 * col2 / - col0 + - col0 col2 FROM tab0 AS cor0
----
-114
-68
-88

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1617
SELECT ALL + 43 + - col0 * - CAST( NULL AS SIGNED ), + col2 + - - col0 AS col2 FROM tab2
----
NULL
104
NULL
133
NULL
69

skipif mysql # not compatible
query II rowsort label-1617
SELECT ALL + 43 + - col0 * - CAST ( NULL AS INTEGER ), + col2 + - - col0 AS col2 FROM tab2
----
NULL
104
NULL
133
NULL
69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1618
SELECT CAST( NULL AS SIGNED ) + + - col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1618
SELECT CAST ( NULL AS INTEGER ) + + - col2 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1619
SELECT ALL COUNT( * ) - - + 57 FROM tab0
----
60

skipif mysql # not compatible
query I rowsort label-1619
SELECT ALL COUNT ( * ) - - + 57 FROM tab0
----
60

query I rowsort
SELECT col0 + + 56 + + ( - col1 ) AS col2 FROM tab1
----
100
136
93

query I rowsort
SELECT DISTINCT col1 * + 98 - - 36 AS col1 FROM tab2
----
5034
6602
7582

onlyif mysql # aggregate syntax: 
query I rowsort label-1622
SELECT - COUNT( * ) + 71 FROM tab1
----
68

skipif mysql # not compatible
query I rowsort label-1622
SELECT - COUNT ( * ) + 71 FROM tab1
----
68

query III rowsort
SELECT * FROM tab0 WHERE - + col0 + ( - col1 ) + - 13 + col1 * 17 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1624
SELECT ALL + 42 DIV - + ( + col0 ) FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1624
SELECT ALL + 42 / - + ( + col0 ) FROM tab1
----
0
0
0

query I rowsort
SELECT - 16 FROM tab2 AS cor0 WHERE NOT + 68 IS NULL
----
-16
-16
-16

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1626
SELECT ALL * FROM tab1 AS cor0 WHERE CAST( - col1 AS SIGNED ) > NULL
----

skipif mysql # not compatible
query III rowsort label-1626
SELECT ALL * FROM tab1 AS cor0 WHERE CAST ( - col1 AS INTEGER ) > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1627
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) * - col1 <= - col0
----

skipif mysql # not compatible
query III rowsort label-1627
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) * - col1 <= - col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1628
SELECT - - col2 * col2 DIV col1 FROM tab2 WHERE NOT col0 NOT IN ( - col2 * + col2 * - 12, col2 DIV 87, - - col1, col0 )
----
10
20
50

skipif mysql # not compatible
query I rowsort label-1628
SELECT - - col2 * col2 / col1 FROM tab2 WHERE NOT col0 NOT IN ( - col2 * + col2 * - 12, col2 / 87, - - col1, col0 )
----
10
20
50

query I rowsort
SELECT col1 * + - col1 * + + col0 AS col1 FROM tab0 cor0
----
-38367
-97
-98415

query I rowsort
SELECT + 87 AS col2 FROM tab1 AS cor0 WHERE NOT NULL < ( NULL )
----

query I rowsort
SELECT DISTINCT - ( + 53 ) AS col0 FROM tab1 AS cor0
----
-53

query I rowsort
SELECT - 10 + + - 83 + col0 FROM tab0
----
-6
-78
4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1633
SELECT ALL + COUNT( * ) DIV - COUNT( * ) AS col1 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-1633
SELECT ALL + COUNT ( * ) / - COUNT ( * ) AS col1 FROM tab0
----
-1

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - 32 IN ( + 93 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 63 + + + col0 - - - col1 AS col1 FROM tab2
----
50
58
71

onlyif mysql # aggregate syntax: 
query I rowsort label-1636
SELECT COUNT( * ) * + 34 col1 FROM tab2
----
102

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1636
SELECT COUNT ( * ) * + 34 col1 FROM tab2
----
102

onlyif mysql # aggregate syntax: 
query I rowsort label-1637
SELECT ALL + MAX( + - 28 ) FROM tab0
----
-28

skipif mysql # not compatible
query I rowsort label-1637
SELECT ALL + MAX ( + - 28 ) FROM tab0
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-1638
SELECT - SUM( ALL col1 ) AS col1 FROM tab1
----
-66

skipif mysql # not compatible
query I rowsort label-1638
SELECT - SUM ( ALL col1 ) AS col1 FROM tab1
----
-66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT + col1 col1, 21 * + col1 AS col0, col0 FROM tab1 AS cor0
----
9 values hashing to 9cb6ec46136cccfaa0ccaf6a84d23e8d

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 76 col2 FROM tab1 AS cor0
----
76
76
76

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 + - + col2 <= - col0
----

query III rowsort
SELECT * FROM tab0 WHERE ( col0 * + - col1 * ( col0 ) / - + col2 IS NOT NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1643
SELECT ALL - CAST( 63 AS SIGNED ) AS col2 FROM tab2
----
-63
-63
-63

skipif mysql # not compatible
query I rowsort label-1643
SELECT ALL - CAST ( 63 AS INTEGER ) AS col2 FROM tab2
----
-63
-63
-63

query I rowsort
SELECT ALL - 28 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to c3e7fa3d059fc708f03c60e9cef0c115

query I rowsort
SELECT col1 * + col2 + col1 AS col2 FROM tab2
----
1224
3157
3953

onlyif mysql # aggregate syntax: 
query I rowsort label-1646
SELECT ALL + COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-1646
SELECT ALL + COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----
0

query I rowsort
SELECT - col2 FROM tab0 AS cor0 WHERE NULL = 48 + ( 18 ) + col1
----

query I rowsort
SELECT ALL + + 52 + - col1 FROM tab1 AS cor0
----
38
47
5

query I rowsort
SELECT ALL - + 60 FROM tab1 AS cor0 WHERE col0 = 95
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1650
SELECT COUNT( DISTINCT + col2 ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-1650
SELECT COUNT ( DISTINCT + col2 ) AS col1 FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1651
SELECT ALL - COUNT( * ) + - - 61 FROM tab1 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-1651
SELECT ALL - COUNT ( * ) + - - 61 FROM tab1 AS cor0
----
58

query I rowsort
SELECT ( - 6 ) AS col0 FROM tab2 AS cor0
----
-6
-6
-6

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col1 IN ( col0 * - - col1 * + col0 + + col2, + 6, col1 )
----

query I rowsort
SELECT DISTINCT 28 + 4 AS col0 FROM tab0
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-1655
SELECT ALL + 8 + MAX( DISTINCT - 93 ) FROM tab2
----
-85

skipif mysql # not compatible
query I rowsort label-1655
SELECT ALL + 8 + MAX ( DISTINCT - 93 ) FROM tab2
----
-85

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1656
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT ( - CAST( + col1 AS SIGNED ) ) >= NULL
----

skipif mysql # not compatible
query III rowsort label-1656
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT ( - CAST ( + col1 AS INTEGER ) ) >= NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col0 < + + 20
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT ( NULL ) >= - col1
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT 18 IN ( col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL col1 AS col0 FROM tab1 AS cor0 WHERE NOT ( NOT ( + col0 ) IS NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1661
SELECT - MIN( ALL 56 ) FROM tab1
----
-56

skipif mysql # not compatible
query I rowsort label-1661
SELECT - MIN ( ALL 56 ) FROM tab1
----
-56

query III rowsort
SELECT * FROM tab0 WHERE NOT 42 + - 9 IS NOT NULL
----

query I rowsort
SELECT ALL 35 * + - col0 AS col0 FROM tab0
----
-3045
-3395
-525

query I rowsort
SELECT col1 * 95 AS col1 FROM tab2 AS cor0
----
4845
6365
7315

query I rowsort
SELECT ALL 2 FROM tab2 AS cor0 WHERE 99 IN ( - - col2 )
----

query I rowsort
SELECT ALL 14 * col1 + + col0 AS col1 FROM tab1 AS cor0
----
155
247
749

onlyif mysql # aggregate syntax: 
query II rowsort label-1667
SELECT - 13, + COUNT( col2 ) col1 FROM tab2 AS cor0
----
-13
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1667
SELECT - 13, + COUNT ( col2 ) col1 FROM tab2 AS cor0
----
-13
3

query I rowsort
SELECT - col2 * + col1 + 63 FROM tab0 AS cor0
----
-147
-36
-3744

onlyif mysql # DIV for integer division: 
query I rowsort label-1669
SELECT ALL + - col2 DIV 41 FROM tab2 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-1669
SELECT ALL + - col2 / 41 FROM tab2 AS cor0
----
-1
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1670
SELECT CAST( NULL AS SIGNED ) FROM tab1, tab2 AS cor0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-1670
SELECT CAST ( NULL AS INTEGER ) FROM tab1, tab2 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-1671
SELECT col0 * + 78 col1, col1 DIV + - col2 + - col1 FROM tab2
----
3588
-53
4992
-78
5850
-68

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1671
SELECT col0 * + 78 col1, col1 / + - col2 + - col1 FROM tab2
----
3588
-53
4992
-78
5850
-68

query I rowsort
SELECT + col1 * - ( + ( - 15 ) ) FROM tab0
----
1215
15
315

onlyif mysql # aggregate syntax: 
query I rowsort label-1673
SELECT MIN( - col2 ) * - COUNT( * ) FROM tab0
----
297

skipif mysql # not compatible
query I rowsort label-1673
SELECT MIN ( - col2 ) * - COUNT ( * ) FROM tab0
----
297

onlyif mysql # aggregate syntax: 
query I rowsort label-1674
SELECT DISTINCT - SUM( ALL 56 ) FROM tab1
----
-168

skipif mysql # not compatible
query I rowsort label-1674
SELECT DISTINCT - SUM ( ALL 56 ) FROM tab1
----
-168

onlyif mysql # aggregate syntax: 
query II rowsort label-1675
SELECT - COUNT( * ) + + COUNT( * ) AS col2, - COUNT( col1 ) AS col2 FROM tab2
----
0
-3

skipif mysql # not compatible
query II rowsort label-1675
SELECT - COUNT ( * ) + + COUNT ( * ) AS col2, - COUNT ( col1 ) AS col2 FROM tab2
----
0
-3

query I rowsort
SELECT - col0 + + + col2 + 1 FROM tab2
----
-16
-22
-23

query II rowsort
SELECT 2 + col2 AS col1, + 33 AS col2 FROM tab0
----
101
33
12
33
49
33

onlyif mysql # DIV for integer division: 
query I rowsort label-1678
SELECT ALL - - ( 93 ) DIV - col0 + - + col0 - col2 + col0 FROM tab2 AS cor0
----
-25
-41
-59

skipif mysql # not compatible
query I rowsort label-1678
SELECT ALL - - ( 93 ) / - col0 + - + col0 - col2 + col0 FROM tab2 AS cor0
----
-25
-41
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-1679
SELECT - + 67 + + SUM( 80 ) FROM tab2 AS cor0
----
173

skipif mysql # not compatible
query I rowsort label-1679
SELECT - + 67 + + SUM ( 80 ) FROM tab2 AS cor0
----
173

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 67 col0 FROM tab0 AS cor0
----
-67
-67
-67

query I rowsort
SELECT DISTINCT + - 81 FROM tab1 AS cor0 WHERE ( col2 ) + - + ( col1 ) IS NOT NULL
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-1682
SELECT - COUNT( * ) FROM tab1 AS cor0 WHERE col2 NOT IN ( + 22, - ( 45 ) * - col0 * - + col0 )
----
-3

skipif mysql # not compatible
query I rowsort label-1682
SELECT - COUNT ( * ) FROM tab1 AS cor0 WHERE col2 NOT IN ( + 22, - ( 45 ) * - col0 * - + col0 )
----
-3

query I rowsort
SELECT + - 13 + col1 AS col1 FROM tab0 AS cor0
----
-12
68
8

query I rowsort
SELECT DISTINCT - + col2 - - col0 AS col1 FROM tab0 cor0
----
-2
-32
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1685
SELECT DISTINCT + CAST( NULL AS SIGNED ) - - AVG ( DISTINCT + col2 ) * - 64 AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1685
SELECT DISTINCT + CAST ( NULL AS INTEGER ) - - AVG ( DISTINCT + col2 ) * - 64 AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
NULL

query I rowsort
SELECT - 20 AS col1 FROM tab2 WHERE - + 94 IS NOT NULL
----
-20
-20
-20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1687
SELECT + + col2 - + CAST( + ( - col1 ) AS SIGNED ) + - + 36 FROM tab1 WHERE NULL < - col0
----

skipif mysql # not compatible
query I rowsort label-1687
SELECT + + col2 - + CAST ( + ( - col1 ) AS INTEGER ) + - + 36 FROM tab1 WHERE NULL < - col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 90 col2 FROM tab1 cor0
----
90
90
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1689
SELECT CAST( NULL AS SIGNED ) - + + 34 * - col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1689
SELECT CAST ( NULL AS INTEGER ) - + + 34 * - col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1690
SELECT + - ( + + col1 ) * - - col0 DIV - - col0 + col0 * col0 * - 80 + + col2 - + col0 AS col0 FROM tab2 AS cor0
----
-169354
-327781
-450084

skipif mysql # not compatible
query I rowsort label-1690
SELECT + - ( + + col1 ) * - - col0 / - - col0 + col0 * col0 * - 80 + + col2 - + col0 AS col0 FROM tab2 AS cor0
----
-169354
-327781
-450084

query I rowsort
SELECT DISTINCT - 44 + ( - 22 ) AS col0 FROM tab2 AS cor0
----
-66

query II rowsort
SELECT DISTINCT + + col1 - col2 + - col0 * - ( - col0 ) AS col1, + col1 + col0 AS col1 FROM tab0 AS cor0
----
-191
96
-7558
108
-9507
98

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL NOT IN ( col2, 58, + col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 33 AS col1, col1 col2 FROM tab1
----
-33
14
-33
47
-33
5

query II rowsort
SELECT DISTINCT - col1 AS col0, - 32 FROM tab2
----
-51
-32
-67
-32
-77
-32

query I rowsort
SELECT DISTINCT col2 * + 51 AS col2 FROM tab0
----
2397
5049
510

onlyif mysql # aggregate syntax: 
query I rowsort label-1697
SELECT DISTINCT - COUNT( * ) FROM tab1 WHERE NULL >= - 20
----
0

skipif mysql # not compatible
query I rowsort label-1697
SELECT DISTINCT - COUNT ( * ) FROM tab1 WHERE NULL >= - 20
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1698
SELECT - - COUNT( * ) AS col2 FROM tab1 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-1698
SELECT - - COUNT ( * ) AS col2 FROM tab1 WHERE NOT NULL IS NULL
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1699
SELECT - COUNT( * ) AS col2, ( + CAST( NULL AS SIGNED ) ) AS col2 FROM tab0
----
-3
NULL

skipif mysql # not compatible
query II rowsort label-1699
SELECT - COUNT ( * ) AS col2, ( + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab0
----
-3
NULL

query II rowsort
SELECT 45, 44 AS col0 FROM tab2
----
45
44
45
44
45
44

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 AS col0, col1 col2 FROM tab0
----
10
21
47
81
99
1

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( + + 3 ) IN ( - 87 + + 48 + - col2 * col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL ( - - 97 ) FROM tab2
----
97
97
97

query I rowsort
SELECT ALL - col1 * 78 AS col1 FROM tab1 AS cor0
----
-1092
-3666
-390

query I rowsort
SELECT DISTINCT + + col1 * + 38 FROM tab0 cor0
----
3078
38
798

onlyif mysql # aggregate syntax: 
query I rowsort label-1706
SELECT ALL + MIN( - 54 ) * - COUNT( * ) + - - ( + COUNT( * ) ) FROM tab2, tab2 AS cor0
----
495

skipif mysql # not compatible
query I rowsort label-1706
SELECT ALL + MIN ( - 54 ) * - COUNT ( * ) + - - ( + COUNT ( * ) ) FROM tab2, tab2 AS cor0
----
495

onlyif mysql # DIV for integer division: 
query I rowsort label-1707
SELECT col0 DIV - col0 col2 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1707
SELECT col0 / - col0 col2 FROM tab2 AS cor0
----
-1
-1
-1

query I rowsort
SELECT DISTINCT + - 27 * + col1 AS col0 FROM tab0 AS cor0
----
-2187
-27
-567

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col2 * + + 38 = - 1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-1710
SELECT ALL + 24 + - COUNT( * ) AS col1 FROM tab0 cor0
----
21

skipif mysql # not compatible
query I rowsort label-1710
SELECT ALL + 24 + - COUNT ( * ) AS col1 FROM tab0 cor0
----
21

onlyif mysql # aggregate syntax: 
query II rowsort label-1711
SELECT COUNT( + col2 ) AS col2, - 78 FROM tab2 AS cor0
----
3
-78

skipif mysql # not compatible
query II rowsort label-1711
SELECT COUNT ( + col2 ) AS col2, - 78 FROM tab2 AS cor0
----
3
-78

onlyif mysql # DIV for integer division: 
query I rowsort label-1712
SELECT DISTINCT col1 + col2 + - + 14 DIV - + 47 AS col1 FROM tab2 AS cor0
----
117
125
74

skipif mysql # not compatible
query I rowsort label-1712
SELECT DISTINCT col1 + col2 + - + 14 / - + 47 AS col1 FROM tab2 AS cor0
----
117
125
74

onlyif mysql # aggregate syntax: 
query I rowsort label-1713
SELECT + - SUM( + - col1 ) FROM tab1 AS cor0 WHERE col2 * - 66 + - - col0 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1713
SELECT + - SUM ( + - col1 ) FROM tab1 AS cor0 WHERE col2 * - 66 + - - col0 IS NULL
----
NULL

query I rowsort
SELECT - - 36 + - col1 * + col0 + + ( + + col2 ) FROM tab2 AS cor0
----
-2287
-4852
-4931

query I rowsort
SELECT - col2 + + ( - - col0 ) * - col1 FROM tab1
----
-4345
-484
-810

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1716
SELECT DISTINCT ( CAST( + - 90 AS SIGNED ) ) * - 41 + + col1 FROM tab1
----
3695
3704
3737

skipif mysql # not compatible
query I rowsort label-1716
SELECT DISTINCT ( CAST ( + - 90 AS INTEGER ) ) * - 41 + + col1 FROM tab1
----
3695
3704
3737

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + ( + + 10 ) BETWEEN + 60 * + + 81 AND col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - 30 + + + 91 + + 48 * col0 AS col2 FROM tab2
----
2269
3133
3661

query I rowsort
SELECT + 96 * + 15 FROM tab0
----
1440
1440
1440

query I rowsort
SELECT - col0 * + + 92 AS col1 FROM tab2
----
-4232
-5888
-6900

query I rowsort
SELECT DISTINCT + 58 * + 37 FROM tab2
----
2146

query I rowsort
SELECT + col0 AS col2 FROM tab2 WHERE 6 > NULL
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-1723
SELECT * FROM tab2 WHERE - CAST( - col0 AS DECIMAL ) + + CAST( NULL AS SIGNED ) + + col2 <> NULL
----

skipif mysql # not compatible
query III rowsort label-1723
SELECT * FROM tab2 WHERE - CAST ( - col0 AS REAL ) + + CAST ( NULL AS INTEGER ) + + col2 <> NULL
----

query I rowsort
SELECT DISTINCT + 64 * col0 + - col1 FROM tab2
----
2893
4019
4733

query I rowsort
SELECT DISTINCT + 13 * + + col2 * - 78 FROM tab2
----
-23322
-40560
-58812

query I rowsort
SELECT DISTINCT col0 * + - col1 AS col0 FROM tab2
----
-2346
-4928
-5025

query III rowsort
SELECT * FROM tab2 cor0 WHERE NULL IN ( 95 * col0 * + + col2, col0, + col0 * - + col2 * + 77 * - 47 + - col2, - - col2 + - col1 + + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1728
SELECT SUM( col0 ) FROM tab2 AS cor0 WHERE + col1 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1728
SELECT SUM ( col0 ) FROM tab2 AS cor0 WHERE + col1 IS NULL
----
NULL

query I rowsort
SELECT ALL - 50 - + + 50 * col0 FROM tab0 AS cor0
----
-4400
-4900
-800

query I rowsort
SELECT DISTINCT + - col2 + - 24 - - 22 * col0 + col1 AS col0 FROM tab1 AS cor0
----
1016
1792
1957

query I rowsort
SELECT + col0 * + col0 * 15 AS col2 FROM tab0 AS cor0
----
113535
141135
3375

onlyif mysql # aggregate syntax: 
query I rowsort label-1732
SELECT + + COUNT( + col2 ) AS col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-1732
SELECT + + COUNT ( + col2 ) AS col0 FROM tab1 AS cor0
----
3

query I rowsort
SELECT DISTINCT - ( + - col2 ) AS col0 FROM tab2 AS cor0
----
23
40
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1734
SELECT - + 7 + CAST( NULL AS SIGNED ) col0 FROM tab2 AS cor0 WHERE NOT 60 IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1734
SELECT - + 7 + CAST ( NULL AS INTEGER ) col0 FROM tab2 AS cor0 WHERE NOT 60 IS NULL
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1735
SELECT DISTINCT MIN( ALL + - col2 ) FROM tab1 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-1735
SELECT DISTINCT MIN ( ALL + - col2 ) FROM tab1 AS cor0
----
-96

query II rowsort
SELECT DISTINCT col0 AS col0, col0 AS col1 FROM tab2
----
46
46
64
64
75
75

onlyif mysql # aggregate syntax: 
query I rowsort label-1737
SELECT DISTINCT COUNT( * ) * - 58 AS col1 FROM tab0, tab0 AS cor0
----
-522

skipif mysql # not compatible
query I rowsort label-1737
SELECT DISTINCT COUNT ( * ) * - 58 AS col1 FROM tab0, tab0 AS cor0
----
-522

onlyif mysql # aggregate syntax: 
query I rowsort label-1738
SELECT - MIN( DISTINCT - - col1 ) AS col1 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-1738
SELECT - MIN ( DISTINCT - - col1 ) AS col1 FROM tab0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1739
SELECT CAST( - COUNT( * ) AS SIGNED ) col0 FROM tab0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1739
SELECT CAST ( - COUNT ( * ) AS INTEGER ) col0 FROM tab0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-1740
SELECT - ( - SUM( + ( col1 ) ) ) AS col2 FROM tab1 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-1740
SELECT - ( - SUM ( + ( col1 ) ) ) AS col2 FROM tab1 AS cor0
----
66

query I rowsort
SELECT 18 * col1 FROM tab0 AS cor0
----
1458
18
378

query I rowsort
SELECT 30 * + 27 * - - 92 + - 2 * 23 AS col1 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 06df40c9ad4afdfda5b54fff5e290095

query II rowsort
SELECT - col2 AS col1, - col1 AS col2 FROM tab2 AS cor0
----
-23
-51
-40
-77
-58
-67

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 23 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 57 col0 FROM tab1 cor0
----
57
57
57

query II rowsort
SELECT + 21, col0 * + - 14 AS col0 FROM tab2 AS cor0
----
21
-1050
21
-644
21
-896

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + + ( col1 ) + + col2 col0 FROM tab2 AS cor0
----
120
181
200

onlyif mysql # aggregate syntax: 
query I rowsort label-1748
SELECT DISTINCT + COUNT( * ) + + 61 FROM tab1 AS cor0
----
64

skipif mysql # not compatible
query I rowsort label-1748
SELECT DISTINCT + COUNT ( * ) + + 61 FROM tab1 AS cor0
----
64

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 54 col1 FROM tab1
----
54
54
54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1750
SELECT ALL col1 * + CAST( NULL AS SIGNED ) + - col0 * + col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1750
SELECT ALL col1 * + CAST ( NULL AS INTEGER ) + - col0 * + col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1751
SELECT ALL CAST( - col2 AS SIGNED ) * - - col1 FROM tab2
----
-1173
-3080
-3886

skipif mysql # not compatible
query I rowsort label-1751
SELECT ALL CAST ( - col2 AS INTEGER ) * - - col1 FROM tab2
----
-1173
-3080
-3886

query II rowsort
SELECT - col2 + col0 + - 22, + col0 AS col0 FROM tab0
----
-24
97
-54
15
55
87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1753
SELECT DISTINCT - ( + + CAST( NULL AS SIGNED ) ) * - - COUNT( * ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-1753
SELECT DISTINCT - ( + + CAST ( NULL AS INTEGER ) ) * - - COUNT ( * ) AS col2 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1754
SELECT DISTINCT + ( SUM( + col0 ) ) + 29 FROM tab2 AS cor0
----
214

skipif mysql # not compatible
query I rowsort label-1754
SELECT DISTINCT + ( SUM ( + col0 ) ) + 29 FROM tab2 AS cor0
----
214

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT ALL 41 + + col2 AS col2, col2 col2, + col1 * - + col1 * col0 - + 79 FROM tab1 AS cor0
----
9 values hashing to fd54c4f0288b59c739225df99e6b8f36

onlyif mysql # aggregate syntax: 
query I rowsort label-1756
SELECT DISTINCT - COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE ( - + 62 ) = - ( ( col2 ) ) - + col0
----
-1

skipif mysql # not compatible
query I rowsort label-1756
SELECT DISTINCT - COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE ( - + 62 ) = - ( ( col2 ) ) - + col0
----
-1

query I rowsort
SELECT 16 FROM ( tab2 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to 3fdb08ec2e3d4b642dd4594778cca8b3

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT 37 * - 77 IS NULL
----
54 values hashing to eaa394f1627c8d5e53406d9ca3b09469

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE + 21 IS NOT NULL
----
54 values hashing to 38882227cfc7c3bf621ed1f30345739c

query II rowsort
SELECT col1 AS col1, col2 * + col2 + - col1 AS col1 FROM tab2
----
51
478
67
3297
77
1523

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-1761
SELECT ALL + CAST( NULL AS DECIMAL ) AS col1, - MIN( + - 69 ) AS col0 FROM tab2 AS cor0
----
NULL
69

skipif mysql # not compatible
query II rowsort label-1761
SELECT ALL + CAST ( NULL AS REAL ) AS col1, - MIN ( + - 69 ) AS col0 FROM tab2 AS cor0
----
NULL
69

query I rowsort
SELECT - col1 AS col0 FROM tab2 AS cor0 WHERE NOT col1 - + + col1 * col1 IS NOT NULL
----

query II rowsort
SELECT col1 AS col2, col1 * col2 FROM tab1 cor0
----
14
1344
47
3196
5
295

query II rowsort
SELECT DISTINCT + 14, ( - col1 ) AS col1 FROM tab0 AS cor0
----
14
-1
14
-21
14
-81

onlyif mysql # DIV for integer division: 
query II rowsort label-1765
SELECT DISTINCT col0 * 11 DIV 95 * + col2 AS col1, - col0 + + col2 AS col0 FROM tab2
----
115
-23
280
-24
464
-17

skipif mysql # not compatible
query II rowsort label-1765
SELECT DISTINCT col0 * 11 / 95 * + col2 AS col1, - col0 + + col2 AS col0 FROM tab2
----
115
-23
280
-24
464
-17

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1766
SELECT ALL ( + + 4 ) DIV - COUNT( * ) FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-1766
SELECT ALL ( + + 4 ) / - COUNT ( * ) FROM tab1
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1767
SELECT DISTINCT CAST( + + COUNT( * ) AS SIGNED ), COUNT( * ) FROM tab1
----
3
3

skipif mysql # not compatible
query II rowsort label-1767
SELECT DISTINCT CAST ( + + COUNT ( * ) AS INTEGER ), COUNT ( * ) FROM tab1
----
3
3

query I rowsort
SELECT ALL - 50 AS col0 FROM tab1 cor0
----
-50
-50
-50

query I rowsort
SELECT DISTINCT - col2 + + - col2 AS col0 FROM tab2 cor0
----
-116
-46
-80

query I rowsort
SELECT + col1 + - col1 FROM tab2 AS cor0 WHERE 84 IS NOT NULL
----
0
0
0

query I rowsort
SELECT - ( + ( - col0 ) ) * - 40 + + + col1 AS col2 FROM tab1 cor0
----
-2026
-3395
-3593

query I rowsort
SELECT col2 + + col2 + - - col2 * - col0 FROM tab2 AS cor0
----
-1012
-2480
-4234

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2, - col2 * col0 + - col0 + + ( - col1 ) + - - col1 col2 FROM tab2
----
23
-1104
40
-2624
58
-4425

query I rowsort
SELECT - col0 * + 76 AS col1 FROM tab1
----
-3876
-6460
-6916

onlyif mysql # aggregate syntax: 
query I rowsort label-1775
SELECT DISTINCT + 31 * - ( + COUNT( * ) ) FROM tab0
----
-93

skipif mysql # not compatible
query I rowsort label-1775
SELECT DISTINCT + 31 * - ( + COUNT ( * ) ) FROM tab0
----
-93

query II rowsort
SELECT + - col0, col2 + 1 FROM tab1 WHERE NULL NOT BETWEEN NULL AND + + 54
----

query I rowsort
SELECT DISTINCT 24 * + col2 FROM tab0
----
1128
2376
240

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + col1 * col0 * + col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT col2 + + - 80 FROM tab1
----
-12
-21
16

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1780
SELECT DISTINCT AVG ( ALL + CAST( NULL AS DECIMAL ) ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1780
SELECT DISTINCT AVG ( ALL + CAST ( NULL AS REAL ) ) AS col0 FROM tab1 AS cor0
----
NULL

query II rowsort
SELECT + 33 - + + col2 AS col2, ( - col2 ) + col1 FROM tab1 cor0
----
-26
-54
-35
-21
-63
-82

query I rowsort
SELECT + 0 - - + col0 FROM tab0 AS cor0
----
15
87
97

query I rowsort
SELECT ALL 99 * 15 - + col1 FROM tab1 cor0
----
1438
1471
1480

query I rowsort
SELECT ALL 94 * col0 - - col0 FROM tab2
----
4370
6080
7125

onlyif mysql # aggregate syntax: 
query I rowsort label-1785
SELECT DISTINCT + 82 * + - MAX( ALL + - col2 ) col2 FROM tab0
----
820

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1785
SELECT DISTINCT + 82 * + - MAX ( ALL + - col2 ) col2 FROM tab0
----
820

onlyif mysql # aggregate syntax: 
query II rowsort label-1786
SELECT SUM( ALL - 9 ) AS col1, 85 AS col2 FROM tab0
----
-27
85

skipif mysql # not compatible
query II rowsort label-1786
SELECT SUM ( ALL - 9 ) AS col1, 85 AS col2 FROM tab0
----
-27
85

onlyif mysql # DIV for integer division: 
query II rowsort label-1787
SELECT ALL 97 DIV col2 AS col2, + col1 AS col2 FROM tab0
----
0
1
2
81
9
21

skipif mysql # not compatible
query II rowsort label-1787
SELECT ALL 97 / col2 AS col2, + col1 AS col2 FROM tab0
----
0
1
2
81
9
21

onlyif mysql # aggregate syntax: 
query I rowsort label-1788
SELECT ALL MIN( DISTINCT - 77 ) FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
-77

skipif mysql # not compatible
query I rowsort label-1788
SELECT ALL MIN ( DISTINCT - 77 ) FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-1789
SELECT DISTINCT ( - + MIN( DISTINCT + + 11 ) ) AS col0 FROM tab2 cor0
----
-11

skipif mysql # not compatible
query I rowsort label-1789
SELECT DISTINCT ( - + MIN ( DISTINCT + + 11 ) ) AS col0 FROM tab2 cor0
----
-11

query I rowsort
SELECT + + col1 * + + 55 + - - col0 * col0 + - col1 FROM tab1 AS cor0
----
10819
3357
7495

onlyif mysql # DIV for integer division: 
query II rowsort label-1791
SELECT - 75 DIV 21 * + + col1 * - col2 + - - col1, + col1 FROM tab0 cor0
----
11502
81
298
1
651
21

skipif mysql # not compatible
query II rowsort label-1791
SELECT - 75 / 21 * + + col1 * - col2 + - - col1, + col1 FROM tab0 cor0
----
11502
81
298
1
651
21

query I rowsort
SELECT DISTINCT + col1 * + + col1 FROM tab1 AS cor0
----
196
2209
25

onlyif mysql # aggregate syntax: 
query I rowsort label-1793
SELECT + COUNT( - col0 ) AS col1 FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-1793
SELECT + COUNT ( - col0 ) AS col1 FROM tab0 cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1794
SELECT DISTINCT COUNT( DISTINCT - col1 ) AS col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-1794
SELECT DISTINCT COUNT ( DISTINCT - col1 ) AS col2 FROM tab0 AS cor0
----
3

query I rowsort
SELECT - + 37 * + - col2 + + col0 FROM tab2 AS cor0
----
1544
2221
897

query I rowsort
SELECT - col1 * + 13 AS col1 FROM tab0 AS cor0
----
-1053
-13
-273

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NOT 1 IS NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1798
SELECT + MIN( DISTINCT + 94 ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN NULL AND ( + 98 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1798
SELECT + MIN ( DISTINCT + 94 ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN NULL AND ( + 98 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1799
SELECT + - SUM( + col1 ) * CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1799
SELECT + - SUM ( + col1 ) * CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1800
SELECT ALL col0 DIV + + col0 AS col2 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-1800
SELECT ALL col0 / + + col0 AS col2 FROM tab0
----
1
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1801
SELECT DISTINCT - CAST( + 80 AS SIGNED ) AS col0 FROM tab0
----
-80

skipif mysql # not compatible
query I rowsort label-1801
SELECT DISTINCT - CAST ( + 80 AS INTEGER ) AS col0 FROM tab0
----
-80

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE 3 = + col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1803
SELECT ALL - col0 DIV + + 91 FROM tab0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-1803
SELECT ALL - col0 / + + 91 FROM tab0
----
-1
0
0

query III rowsort
SELECT * FROM tab2 WHERE NOT - col1 * 80 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT - col2 AS col1, - col2 * + col2 + + col2, - - 17 AS col0 FROM tab2
----
9 values hashing to fec8e1b979195b78317d655a32abd83a

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 col1, - 8 AS col2 FROM tab2
----
46
-8
64
-8
75
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-1807
SELECT ALL - MAX( DISTINCT 86 ) AS col2 FROM tab0 AS cor0
----
-86

skipif mysql # not compatible
query I rowsort label-1807
SELECT ALL - MAX ( DISTINCT 86 ) AS col2 FROM tab0 AS cor0
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-1808
SELECT ALL + + MAX( ALL - 62 ) AS col1 FROM tab0 AS cor0
----
-62

skipif mysql # not compatible
query I rowsort label-1808
SELECT ALL + + MAX ( ALL - 62 ) AS col1 FROM tab0 AS cor0
----
-62

query III rowsort
SELECT * FROM tab1 WHERE + - col0 * col0 * + col0 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1810
SELECT - + 72 DIV - col2 FROM tab0 AS cor0
----
0
1
7

skipif mysql # not compatible
query I rowsort label-1810
SELECT - + 72 / - col2 FROM tab0 AS cor0
----
0
1
7

query I rowsort
SELECT DISTINCT - col1 + - - 81 + - 95 AS col2 FROM tab1 AS cor0
----
-19
-28
-61

query I rowsort
SELECT DISTINCT + + col2 AS col1 FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN NULL AND - + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1813
SELECT ALL COUNT( * ) + + ( 65 ) AS col0 FROM tab1 cor0
----
68

skipif mysql # not compatible
query I rowsort label-1813
SELECT ALL COUNT ( * ) + + ( 65 ) AS col0 FROM tab1 cor0
----
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1814
SELECT CAST( NULL AS SIGNED ) + ( - col0 ) * 88 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1814
SELECT CAST ( NULL AS INTEGER ) + ( - col0 ) * 88 AS col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT 84 + ( - 63 ) FROM tab0
----
21
21
21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1816
SELECT - col0 + - ( + ( + + CAST( + + col2 AS SIGNED ) ) ) AS col0 FROM tab2
----
-104
-133
-69

skipif mysql # not compatible
query I rowsort label-1816
SELECT - col0 + - ( + ( + + CAST ( + + col2 AS INTEGER ) ) ) AS col0 FROM tab2
----
-104
-133
-69

query I rowsort
SELECT + col1 + - + ( + 46 ) FROM tab2
----
21
31
5

query I rowsort
SELECT ALL + - 59 + + col0 FROM tab2 cor0 WHERE NOT + col2 * + + ( - col0 ) IS NULL
----
-13
16
5

query I rowsort
SELECT + col1 FROM tab1 AS cor0 WHERE ( NULL IS NOT NULL )
----

query I rowsort
SELECT DISTINCT + - 25 * + 47 * - 25 + + + 56 AS col2 FROM tab0 AS cor0
----
29431

query II rowsort
SELECT DISTINCT - col2 AS col1, + 67 AS col2 FROM tab2
----
-23
67
-40
67
-58
67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1822
SELECT ALL CAST( + 14 AS SIGNED ) FROM tab2
----
14
14
14

skipif mysql # not compatible
query I rowsort label-1822
SELECT ALL CAST ( + 14 AS INTEGER ) FROM tab2
----
14
14
14

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col0 * col0 AS col1, 58 * + 88 col0 FROM tab2 AS cor0
----
-2116
5104
-4096
5104
-5625
5104

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1824
SELECT ALL + - 23 DIV - COUNT( * ) col2 FROM tab1 cor0
----
7

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1824
SELECT ALL + - 23 / - COUNT ( * ) col2 FROM tab1 cor0
----
7

query II rowsort
SELECT 51 AS col2, col2 + col0 * - col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) = - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1826
SELECT DISTINCT - 0 * - - MAX( DISTINCT col1 ) FROM tab0 cor0
----
0

skipif mysql # not compatible
query I rowsort label-1826
SELECT DISTINCT - 0 * - - MAX ( DISTINCT col1 ) FROM tab0 cor0
----
0

query I rowsort
SELECT - col0 FROM tab2 AS cor0 WHERE NOT NULL <> col1 / - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1828
SELECT COUNT( * ) * - COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE NOT - col0 * - 95 + + - col2 + - + 70 * + 11 BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-1828
SELECT COUNT ( * ) * - COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE NOT - col0 * - 95 + + - col2 + - + 70 * + 11 BETWEEN NULL AND NULL
----
0

query I rowsort
SELECT ALL 91 * ( + 10 ) FROM tab2
----
910
910
910

onlyif mysql # aggregate syntax: 
query I rowsort label-1830
SELECT DISTINCT + MIN( ALL + ( col2 ) ) FROM tab2
----
23

skipif mysql # not compatible
query I rowsort label-1830
SELECT DISTINCT + MIN ( ALL + ( col2 ) ) FROM tab2
----
23

query III rowsort
SELECT * FROM tab1 WHERE NOT + 58 + - col0 < NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) BETWEEN + + 99 AND + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1833
SELECT col1 * - col0 * CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1833
SELECT col1 * - col0 * CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT + col1 * col0 + - - col0 AS col2 FROM tab2
----
2392
4992
5100

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1835
SELECT col2 + - 2 * + - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1835
SELECT col2 + - 2 * + - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col0 FROM tab2 AS cor0 WHERE ( NOT - 78 < NULL )
----

query I rowsort
SELECT ALL - + 36 + + col2 FROM tab0 AS cor0
----
-26
11
63

query II rowsort
SELECT DISTINCT + - 38 + 12 + + - col2 AS col1, + col2 AS col0 FROM tab0 AS cor0
----
-125
99
-36
10
-73
47

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1839
SELECT + col0 AS col1, - CAST( NULL AS SIGNED ) * - 59 AS col1 FROM tab0 AS cor0
----
15
NULL
87
NULL
97
NULL

skipif mysql # not compatible
query II rowsort label-1839
SELECT + col0 AS col1, - CAST ( NULL AS INTEGER ) * - 59 AS col1 FROM tab0 AS cor0
----
15
NULL
87
NULL
97
NULL

query II rowsort
SELECT ALL - 87 + - 26 * + col0 + - col2 AS col2, - col0 FROM tab2 AS cor0
----
-1306
-46
-1791
-64
-2095
-75

query I rowsort
SELECT ALL - col1 * + + col1 - + - col1 AS col0 FROM tab1 AS cor0
----
-182
-20
-2162

query I rowsort
SELECT DISTINCT - col1 * - - col1 + + col1 - 39 - + col0 AS col0 FROM tab1 AS cor0
----
-144
-2292
-272

query I rowsort
SELECT ALL ( - 55 ) + + col1 AS col0 FROM tab1
----
-41
-50
-8

query III rowsort
SELECT ALL * FROM tab0 WHERE - + col2 > - col0
----
87
21
10

query I rowsort
SELECT DISTINCT col2 + - + 8 AS col1 FROM tab0
----
2
39
91

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 37 NOT BETWEEN + col0 AND + 66 + + col0
----

query I rowsort
SELECT ALL 65 * col1 * + + col0 FROM tab1 AS cor0
----
27625
278005
46410

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col2 < - + col2 * col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-1849
SELECT + MIN( ALL + - col0 ) FROM tab1 cor0 WHERE NOT col1 IS NULL
----
-91

skipif mysql # not compatible
query I rowsort label-1849
SELECT + MIN ( ALL + - col0 ) FROM tab1 cor0 WHERE NOT col1 IS NULL
----
-91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * + - col1 col2 FROM tab2
----
-2601
-4489
-5929

query II rowsort
SELECT - col2 AS col2, 60 FROM tab0 AS cor0
----
-10
60
-47
60
-99
60

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + col0 NOT BETWEEN + col1 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1853
SELECT ALL + col0 DIV 28 col2 FROM tab0 AS cor0
----
0
3
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1853
SELECT ALL + col0 / 28 col2 FROM tab0 AS cor0
----
0
3
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + - 44, ( - 83 ) col0 FROM tab2 AS cor0
----
-44
-83

query I rowsort
SELECT DISTINCT + 32 * - 7 FROM tab2 AS cor0
----
-224

query I rowsort
SELECT ( + - col1 ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT + 24 * - col2 AS col1 FROM tab2 AS cor0
----
-1392
-552
-960

query I rowsort
SELECT DISTINCT + - 5 + col1 AS col1 FROM tab2 AS cor0
----
46
62
72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1859
SELECT DISTINCT COUNT( * ) FROM tab1 AS cor0 WHERE NOT NULL BETWEEN col0 * - - 64 AND - 81 * + col0 + 88 + - - col1 - ( 3 ) - CAST( + - col0 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-1859
SELECT DISTINCT COUNT ( * ) FROM tab1 AS cor0 WHERE NOT NULL BETWEEN col0 * - - 64 AND - 81 * + col0 + 88 + - - col1 - ( 3 ) - CAST ( + - col0 AS INTEGER )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1860
SELECT DISTINCT + - ( - - COUNT( * ) ) col0 FROM tab1 cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1860
SELECT DISTINCT + - ( - - COUNT ( * ) ) col0 FROM tab1 cor0
----
-3

query I rowsort
SELECT ALL + col1 FROM tab2 WHERE NOT + 69 IS NULL
----
51
67
77

query I rowsort
SELECT + col2 + + 41 AS col1 FROM tab1 AS cor0
----
100
109
137

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1863
SELECT ALL col1 + + col1 * - CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1863
SELECT ALL col1 + + col1 * - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1864
SELECT - COUNT( * ) + + + COUNT( * ) + + - COUNT( * ) AS col2 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-1864
SELECT - COUNT ( * ) + + + COUNT ( * ) + + - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-3

query I rowsort
SELECT - ( + - col1 ) + - col2 FROM tab2 AS cor0
----
28
37
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + - + col2 col1 FROM tab0 AS cor0
----
-2
-32
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col2 FROM tab1 AS cor0 WHERE col2 + - ( + 73 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1868
SELECT DISTINCT - COUNT( * ) FROM tab2 AS cor0 WHERE col2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-1868
SELECT DISTINCT - COUNT ( * ) FROM tab2 AS cor0 WHERE col2 IS NULL
----
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col1 IN ( 50 )
----

query I rowsort
SELECT DISTINCT col2 * + + col1 * + col2 FROM tab2
----
123200
225388
26979

onlyif mysql # aggregate syntax: 
query I rowsort label-1871
SELECT + 92 + - + COUNT( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
83

skipif mysql # not compatible
query I rowsort label-1871
SELECT + 92 + - + COUNT ( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
83

query III rowsort
SELECT * FROM tab0 WHERE NULL BETWEEN + col2 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 66 col1 FROM tab2 AS cor0
----
66
66
66

query II rowsort
SELECT ALL col1 * - col0 + col0 + col1 * - 44, + col1 * - col2 AS col0 FROM tab0 AS cor0
----
-2664
-210
-44
-99
-4764
-3807

onlyif mysql # aggregate syntax: 
query I rowsort label-1875
SELECT ALL MIN( DISTINCT 55 ) * + - COUNT( * ) AS col2 FROM tab2 AS cor0
----
-165

skipif mysql # not compatible
query I rowsort label-1875
SELECT ALL MIN ( DISTINCT 55 ) * + - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-165

query I rowsort
SELECT ALL - 89 + 19 FROM tab1 AS cor0
----
-70
-70
-70

query I rowsort
SELECT ALL + - 65 + - 5 AS col2 FROM tab1 AS cor0
----
-70
-70
-70

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT NULL IS NOT NULL AND col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1879
SELECT DISTINCT + - col2 + + CAST( NULL AS SIGNED ) col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1879
SELECT DISTINCT + - col2 + + CAST ( NULL AS INTEGER ) col2 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT + 28 + col1 FROM tab2
----
105
79
95

query I rowsort
SELECT - col0 + - - col1 * + col0 FROM tab2
----
2300
4864
4950

query I rowsort
SELECT ALL - 25 * col0 AS col1 FROM tab0
----
-2175
-2425
-375

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1883
SELECT + 2 + + COUNT( * ) + COUNT( * ) AS col1 FROM tab2 WHERE NOT - + col2 * 47 / + col0 + ( + 18 ) * - 90 NOT BETWEEN + - ( + CAST( NULL AS SIGNED ) ) AND + + col2 * 37
----
2

skipif mysql # not compatible
query I rowsort label-1883
SELECT + 2 + + COUNT ( * ) + COUNT ( * ) AS col1 FROM tab2 WHERE NOT - + col2 * 47 / + col0 + ( + 18 ) * - 90 NOT BETWEEN + - ( + CAST ( NULL AS INTEGER ) ) AND + + col2 * 37
----
2

onlyif mysql # aggregate syntax: 
query II rowsort label-1884
SELECT SUM( DISTINCT - ( - col1 ) ), - 13 AS col2 FROM tab1
----
66
-13

skipif mysql # not compatible
query II rowsort label-1884
SELECT SUM ( DISTINCT - ( - col1 ) ), - 13 AS col2 FROM tab1
----
66
-13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1885
SELECT - CAST( + COUNT( - 77 ) AS SIGNED ) * + 66 AS col1 FROM tab0 AS cor0
----
-198

skipif mysql # not compatible
query I rowsort label-1885
SELECT - CAST ( + COUNT ( - 77 ) AS INTEGER ) * + 66 AS col1 FROM tab0 AS cor0
----
-198

query II rowsort
SELECT ALL - col2 AS col0, + 50 + - 21 FROM tab1 AS cor0
----
-59
29
-68
29
-96
29

query I rowsort
SELECT DISTINCT + col0 * + - col0 FROM tab0 AS cor0
----
-225
-7569
-9409

query I rowsort
SELECT ALL 71 * + 11 * + col0 + - col2 FROM tab0 cor0
----
11668
67937
75658

onlyif mysql # aggregate syntax: 
query I rowsort label-1889
SELECT ALL MIN( DISTINCT 70 ) col0 FROM tab2
----
70

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1889
SELECT ALL MIN ( DISTINCT 70 ) col0 FROM tab2
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-1890
SELECT ALL SUM( ALL col0 ) FROM tab1
----
227

skipif mysql # not compatible
query I rowsort label-1890
SELECT ALL SUM ( ALL col0 ) FROM tab1
----
227

query I rowsort
SELECT DISTINCT - 26 * + col2 AS col2 FROM tab2 WHERE NOT ( col2 ) IS NULL
----
-1040
-1508
-598

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1892
SELECT ALL AVG ( ALL + CAST( NULL AS SIGNED ) ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-1892
SELECT ALL AVG ( ALL + CAST ( NULL AS INTEGER ) ) FROM tab0
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE col2 + col2 <> NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 80 col0 FROM tab0
----
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1895
SELECT col2 + CAST( NULL AS SIGNED ) / + 28 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1895
SELECT col2 + CAST ( NULL AS INTEGER ) / + 28 AS col1 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1896
SELECT + COUNT( * ) + - CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-1896
SELECT + COUNT ( * ) + - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1897
SELECT - COUNT( DISTINCT col0 ) col2 FROM tab1
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1897
SELECT - COUNT ( DISTINCT col0 ) col2 FROM tab1
----
-3

query I rowsort
SELECT 80 + - 2 AS col0 FROM tab2
----
78
78
78

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL NOT BETWEEN - col0 AND - col0 * - 13
----

query I rowsort
SELECT ALL - ( 10 ) AS col0 FROM tab1
----
-10
-10
-10

query I rowsort
SELECT - 53 * 61 FROM tab1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL ( 90 ) * - col2 AS col2 FROM tab1
----
-5310
-6120
-8640

query III rowsort
SELECT * FROM tab1 WHERE NOT ( col1 * col2 + ( + 97 ) * col2 ) IS NOT NULL
----

query I rowsort
SELECT ALL 66 * 55 FROM tab0
----
3630
3630
3630

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1905
SELECT + CAST( NULL AS SIGNED ) + - COUNT( DISTINCT col0 ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-1905
SELECT + CAST ( NULL AS INTEGER ) + - COUNT ( DISTINCT col0 ) AS col2 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1906
SELECT - 21 * COUNT( * ) FROM tab0
----
-63

skipif mysql # not compatible
query I rowsort label-1906
SELECT - 21 * COUNT ( * ) FROM tab0
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-1907
SELECT + 55 * + COUNT( * ) FROM tab1
----
165

skipif mysql # not compatible
query I rowsort label-1907
SELECT + 55 * + COUNT ( * ) FROM tab1
----
165

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 71 col2 FROM tab1 WHERE NOT ( NULL ) IN ( 30 )
----

query I rowsort
SELECT ALL + col1 + - ( 99 ) AS col2 FROM tab2
----
-22
-32
-48

query I rowsort
SELECT + 11 * - col1 AS col0 FROM tab2
----
-561
-737
-847

query I rowsort
SELECT ALL - 98 - - col0 AS col1 FROM tab1
----
-13
-47
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-1912
SELECT + MIN( + 53 ) + + 7 FROM tab1
----
60

skipif mysql # not compatible
query I rowsort label-1912
SELECT + MIN ( + 53 ) + + 7 FROM tab1
----
60

query I rowsort
SELECT + ( + 86 ) * col2 AS col2 FROM tab2
----
1978
3440
4988

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 - col0 col1 FROM tab2
----
-128
-150
-92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1915
SELECT - COUNT( DISTINCT - col1 ) + + CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-1915
SELECT - COUNT ( DISTINCT - col1 ) + + CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1916
SELECT - CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) * 33 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1916
SELECT - CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) * 33 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1917
SELECT - 34 * - CAST( NULL AS DECIMAL ) AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1917
SELECT - 34 * - CAST ( NULL AS REAL ) AS col2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1918
SELECT 23 * COUNT( * ) col2 FROM tab2 WHERE NULL IS NULL
----
69

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1918
SELECT 23 * COUNT ( * ) col2 FROM tab2 WHERE NULL IS NULL
----
69

query I rowsort
SELECT 15 * + col2 AS col2 FROM tab1
----
1020
1440
885

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1920
SELECT - 73 DIV - ( - COUNT( * ) ) + 15 FROM tab2
----
-9

skipif mysql # not compatible
query I rowsort label-1920
SELECT - 73 / - ( - COUNT ( * ) ) + 15 FROM tab2
----
-9

query I rowsort
SELECT DISTINCT 14 / - col0 FROM tab1 WHERE NOT ( - col1 + col2 ) < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1922
SELECT MIN( 63 ) + - COUNT( * ) * - 72 FROM tab2
----
279

skipif mysql # not compatible
query I rowsort label-1922
SELECT MIN ( 63 ) + - COUNT ( * ) * - 72 FROM tab2
----
279

onlyif mysql # aggregate syntax: 
query I rowsort label-1923
SELECT DISTINCT SUM( + col1 ) * + COUNT( * ) AS col1 FROM tab1 WHERE NOT ( + col0 * col1 ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1923
SELECT DISTINCT SUM ( + col1 ) * + COUNT ( * ) AS col1 FROM tab1 WHERE NOT ( + col0 * col1 ) IS NOT NULL
----
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( + col2 + col1 / col0 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1925
SELECT - COUNT( * ) * + 20 FROM tab1 WHERE ( NULL ) BETWEEN 24 AND col2
----
0

skipif mysql # not compatible
query I rowsort label-1925
SELECT - COUNT ( * ) * + 20 FROM tab1 WHERE ( NULL ) BETWEEN 24 AND col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1926
SELECT ALL COUNT( * ) + 51 AS col1 FROM tab1 cor0
----
54

skipif mysql # not compatible
query I rowsort label-1926
SELECT ALL COUNT ( * ) + 51 AS col1 FROM tab1 cor0
----
54

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 col2 FROM tab1 AS cor0 WHERE ( NULL ) IN ( col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1928
SELECT DISTINCT COUNT( * ) + + MIN( DISTINCT - 94 + - 53 ) AS col1 FROM tab0 AS cor0
----
-144

skipif mysql # not compatible
query I rowsort label-1928
SELECT DISTINCT COUNT ( * ) + + MIN ( DISTINCT - 94 + - 53 ) AS col1 FROM tab0 AS cor0
----
-144

query I rowsort
SELECT 2 - col0 FROM tab1 AS cor0
----
-49
-83
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-1930
SELECT 51 + + MIN( + 82 ) FROM tab2
----
133

skipif mysql # not compatible
query I rowsort label-1930
SELECT 51 + + MIN ( + 82 ) FROM tab2
----
133

query I rowsort
SELECT DISTINCT 36 FROM tab2 cor0 CROSS JOIN tab2
----
36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1932
SELECT ALL + col0 AS col1 FROM tab2 WHERE NOT 94 * 21 - + CAST( NULL AS SIGNED ) * - 92 IS NOT NULL
----
46
64
75

skipif mysql # not compatible
query I rowsort label-1932
SELECT ALL + col0 AS col1 FROM tab2 WHERE NOT 94 * 21 - + CAST ( NULL AS INTEGER ) * - 92 IS NOT NULL
----
46
64
75

query I rowsort
SELECT 9 FROM tab0 cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1934
SELECT - + COUNT( * ) + 58 * + COUNT( * ) FROM tab1 AS cor0
----
171

skipif mysql # not compatible
query I rowsort label-1934
SELECT - + COUNT ( * ) + 58 * + COUNT ( * ) FROM tab1 AS cor0
----
171

query I rowsort
SELECT - col1 + col1 AS col1 FROM tab2 AS cor0 WHERE ( NULL ) NOT IN ( + col2 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( + 17 / col2 + - col1 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1937
SELECT + - COUNT( 87 ) DIV - COUNT( - col2 ) AS col1 FROM tab1 cor0
----
1

skipif mysql # not compatible
query I rowsort label-1937
SELECT + - COUNT ( 87 ) / - COUNT ( - col2 ) AS col1 FROM tab1 cor0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-1938
SELECT 0 DIV + col0 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1938
SELECT 0 / + col0 FROM tab0 AS cor0
----
0
0
0

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( - 78 * - col0 ) NOT IN ( ( 59 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-1940
SELECT ALL + + SUM( DISTINCT col0 ) FROM tab2 AS cor0
----
185

skipif mysql # not compatible
query I rowsort label-1940
SELECT ALL + + SUM ( DISTINCT col0 ) FROM tab2 AS cor0
----
185

query I rowsort
SELECT + ( + 93 ) AS col2 FROM tab0 AS cor0
----
93
93
93

query I rowsort
SELECT - col0 * col1 FROM tab2 AS cor0 WHERE 95 IS NOT NULL
----
-2346
-4928
-5025

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col1 * col1 >= 62
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1944
SELECT COUNT( * ) * + MAX( DISTINCT - col1 ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN NULL AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1944
SELECT COUNT ( * ) * + MAX ( DISTINCT - col1 ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN NULL AND NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1945
SELECT CAST( NULL AS SIGNED ) FROM tab1 WHERE NOT + col1 <= 56 * col0
----

skipif mysql # not compatible
query I rowsort label-1945
SELECT CAST ( NULL AS INTEGER ) FROM tab1 WHERE NOT + col1 <= 56 * col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1946
SELECT - COUNT( * ) FROM tab0 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-1946
SELECT - COUNT ( * ) FROM tab0 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1947
SELECT ALL + MIN( ALL + col0 ) FROM tab2 WHERE ( col2 ) < col1 * col0
----
46

skipif mysql # not compatible
query I rowsort label-1947
SELECT ALL + MIN ( ALL + col0 ) FROM tab2 WHERE ( col2 ) < col1 * col0
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-1948
SELECT ALL ( 55 ) * COUNT( * ) AS col1 FROM tab2
----
165

skipif mysql # not compatible
query I rowsort label-1948
SELECT ALL ( 55 ) * COUNT ( * ) AS col1 FROM tab2
----
165

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 col0 FROM tab2 WHERE NOT NULL NOT IN ( - 34 * - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1950
SELECT ALL SUM( ALL - col1 ) FROM tab1 WHERE col2 IS NOT NULL
----
-66

skipif mysql # not compatible
query I rowsort label-1950
SELECT ALL SUM ( ALL - col1 ) FROM tab1 WHERE col2 IS NOT NULL
----
-66

query I rowsort
SELECT col0 * 16 AS col2 FROM tab1 WHERE NOT ( NULL ) IN ( + col0 )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL IN ( - 79 + - col2 )
----

query I rowsort
SELECT - 76 * 90 FROM tab1
----
-6840
-6840
-6840

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col1 * + col1 IS NULL
----

query I rowsort
SELECT ALL + ( 38 ) FROM tab1 AS cor0
----
38
38
38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1956
SELECT - + CAST( NULL AS SIGNED ) * + - col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1956
SELECT - + CAST ( NULL AS INTEGER ) * + - col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1957
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col0 NOT IN ( CAST( NULL AS SIGNED ) + 78 * col2 )
----

skipif mysql # not compatible
query III rowsort label-1957
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col0 NOT IN ( CAST ( NULL AS INTEGER ) + 78 * col2 )
----

query I rowsort
SELECT - 8 * col0 - col0 AS col0 FROM tab0 WHERE NOT + col1 NOT BETWEEN ( NULL ) AND ( - col1 * 68 )
----

query II rowsort
SELECT 52, - ( 95 ) AS col0 FROM tab2
----
52
-95
52
-95
52
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-1960
SELECT MAX( DISTINCT - 4 ) AS col1 FROM tab1 WHERE NOT ( NULL ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1960
SELECT MAX ( DISTINCT - 4 ) AS col1 FROM tab1 WHERE NOT ( NULL ) IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1961
SELECT ALL COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE NULL IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-1961
SELECT ALL COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NULL IS NULL
----
3

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( + 58 ) > col0 * - col0
----

query I rowsort
SELECT ALL - col0 + - col0 + col1 FROM tab1 AS cor0
----
-135
-165
-88

query I rowsort
SELECT - 65 * + - 45 FROM tab2 cor0
----
2925
2925
2925

onlyif mysql # aggregate syntax: 
query I rowsort label-1965
SELECT ALL - 69 * - COUNT( * ) FROM tab0 AS cor0
----
207

skipif mysql # not compatible
query I rowsort label-1965
SELECT ALL - 69 * - COUNT ( * ) FROM tab0 AS cor0
----
207

query I rowsort
SELECT col2 AS col0 FROM tab2 cor0 WHERE ( ( + 18 ) + + 39 ) <> ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1967
SELECT ALL + col2 * ( - col2 ) FROM tab2 WHERE NOT CAST( NULL AS SIGNED ) IN ( col1 )
----

skipif mysql # not compatible
query I rowsort label-1967
SELECT ALL + col2 * ( - col2 ) FROM tab2 WHERE NOT CAST ( NULL AS INTEGER ) IN ( col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1968
SELECT DISTINCT + MAX( ALL - - col0 ) + - 23 AS col1 FROM tab0
----
74

skipif mysql # not compatible
query I rowsort label-1968
SELECT DISTINCT + MAX ( ALL - - col0 ) + - 23 AS col1 FROM tab0
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-1969
SELECT DISTINCT - MIN( ALL - + col1 ) AS col0 FROM tab1
----
47

skipif mysql # not compatible
query I rowsort label-1969
SELECT DISTINCT - MIN ( ALL - + col1 ) AS col0 FROM tab1
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-1970
SELECT ALL + COUNT( * ) FROM tab2 WHERE NOT + - col0 > ( - + col0 * col1 + 68 )
----
0

skipif mysql # not compatible
query I rowsort label-1970
SELECT ALL + COUNT ( * ) FROM tab2 WHERE NOT + - col0 > ( - + col0 * col1 + 68 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1971
SELECT CAST( NULL AS SIGNED ) FROM tab0 WHERE NULL = ( NULL )
----

skipif mysql # not compatible
query I rowsort label-1971
SELECT CAST ( NULL AS INTEGER ) FROM tab0 WHERE NULL = ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1972
SELECT ALL 96 * - CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1972
SELECT ALL 96 * - CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1973
SELECT ALL SUM( DISTINCT col1 ) FROM tab2
----
195

skipif mysql # not compatible
query I rowsort label-1973
SELECT ALL SUM ( DISTINCT col1 ) FROM tab2
----
195

query I rowsort
SELECT + 49 + + - col2 FROM tab0
----
-50
2
39

query I rowsort
SELECT ( + col2 ) * + - col1 + 85 AS col0 FROM tab2
----
-1088
-2995
-3801

onlyif mysql # aggregate syntax: 
query II rowsort label-1976
SELECT COUNT( * ), ( - ( - COUNT( * ) ) ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9
9

skipif mysql # not compatible
query II rowsort label-1976
SELECT COUNT ( * ), ( - ( - COUNT ( * ) ) ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9
9

query I rowsort
SELECT DISTINCT + ( + + 72 ) - col0 AS col2 FROM tab0
----
-15
-25
57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1978
SELECT DISTINCT - + CAST( NULL AS SIGNED ) * - - 48 AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1978
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) * - - 48 AS col1 FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT - 81 / col1 * col2 / - col0 + col0 <= NULL
----

query I rowsort
SELECT ALL 17 AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
17
17
17

onlyif mysql # aggregate syntax: 
query II rowsort label-1981
SELECT DISTINCT 59 AS col0, COUNT( * ) + + 29 AS col2 FROM tab0 AS cor0
----
59
32

skipif mysql # not compatible
query II rowsort label-1981
SELECT DISTINCT 59 AS col0, COUNT ( * ) + + 29 AS col2 FROM tab0 AS cor0
----
59
32

query II rowsort
SELECT DISTINCT + col1 AS col1, col2 FROM tab2 AS cor0
----
51
23
67
58
77
40

query I rowsort
SELECT - 67 * + + col0 - - + ( + - col0 ) FROM tab0 AS cor0
----
-1020
-5916
-6596

query I rowsort
SELECT ALL + col2 * - - col1 + col0 AS col0 FROM tab2 AS cor0
----
1219
3144
3961

query I rowsort
SELECT ALL col2 * + + ( - col1 ) AS col2 FROM tab1
----
-1344
-295
-3196

onlyif mysql # DIV for integer division: 
query I rowsort label-1986
SELECT + 54 DIV + - col2 col1 FROM tab0
----
-1
-5
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1986
SELECT + 54 / + - col2 col1 FROM tab0
----
-1
-5
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1987
SELECT DISTINCT CAST( NULL AS SIGNED ) / - col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-1987
SELECT DISTINCT CAST ( NULL AS INTEGER ) / - col2 FROM tab0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col1 * + + col2 * - - ( col1 ) col2, col0 AS col1 FROM tab1
----
-1475
85
-150212
91
-18816
51

onlyif mysql # aggregate syntax: 
query I rowsort label-1989
SELECT ALL + MAX( - + 38 ) FROM tab0
----
-38

skipif mysql # not compatible
query I rowsort label-1989
SELECT ALL + MAX ( - + 38 ) FROM tab0
----
-38

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1990
SELECT - - MAX( DISTINCT - col1 ) DIV 90 AS col1 FROM tab1 WHERE NOT - col2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-1990
SELECT - - MAX ( DISTINCT - col1 ) / 90 AS col1 FROM tab1 WHERE NOT - col2 IS NULL
----
0

query I rowsort
SELECT ALL - - 66 * ( 76 ) FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( - col1 + + + 58 + col1, - col0 )
----

query II rowsort
SELECT + 61, ( + col0 ) FROM tab1 cor0
----
61
51
61
85
61
91

onlyif mysql # aggregate syntax: 
query I rowsort label-1993
SELECT COUNT( 97 ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-1993
SELECT COUNT ( 97 ) AS col1 FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1994
SELECT ALL + MAX( col0 ) FROM tab2 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-1994
SELECT ALL + MAX ( col0 ) FROM tab2 AS cor0
----
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1995
SELECT ALL + 32 FROM tab2 WHERE NOT - + col1 * col2 + - + 2 + + + col0 NOT BETWEEN NULL AND - col1 + + CAST( col1 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-1995
SELECT ALL + 32 FROM tab2 WHERE NOT - + col1 * col2 + - + 2 + + + col0 NOT BETWEEN NULL AND - col1 + + CAST ( col1 AS INTEGER )
----

query I rowsort
SELECT - 87 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL IS NOT NULL
----
9 values hashing to 84bcab58a965cc8ae97b39d2d01b3d23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1997
SELECT ALL + col0 + CAST( NULL AS SIGNED ) + 19 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1997
SELECT ALL + col0 + CAST ( NULL AS INTEGER ) + 19 AS col1 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NOT - + 50 IS NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1999
SELECT ALL MIN( - CAST( NULL AS SIGNED ) ) + - 21 * + MAX( ALL - 69 ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1999
SELECT ALL MIN ( - CAST ( NULL AS INTEGER ) ) + - 21 * + MAX ( ALL - 69 ) AS col0 FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL < col1 + + col1 / + col0 - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2001
SELECT col0 FROM tab0 AS cor0 WHERE NULL NOT IN ( - 90 - + - col0 + CAST( - col1 AS SIGNED ) * - col1 + + col1 )
----

skipif mysql # not compatible
query I rowsort label-2001
SELECT col0 FROM tab0 AS cor0 WHERE NULL NOT IN ( - 90 - + - col0 + CAST ( - col1 AS INTEGER ) * - col1 + + col1 )
----

query I rowsort
SELECT DISTINCT + col1 + col1 + + col2 AS col2 FROM tab1 AS cor0
----
124
162
69

query I rowsort
SELECT - + col2 + + col1 + col1 AS col2 FROM tab0 AS cor0
----
-97
115
32

onlyif mysql # aggregate syntax: 
query I rowsort label-2004
SELECT 60 + COUNT( * ) AS col1 FROM tab2 cor0
----
63

skipif mysql # not compatible
query I rowsort label-2004
SELECT 60 + COUNT ( * ) AS col1 FROM tab2 cor0
----
63

query I rowsort
SELECT + - ( + col1 ) * + col0 + + 89 + + 26 FROM tab0 AS cor0
----
-1100
-1712
18

onlyif mysql # DIV for integer division: 
query I rowsort label-2006
SELECT ALL 54 DIV + 62 AS col2 FROM tab0 cor0 WHERE NOT col2 IS NULL
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2006
SELECT ALL 54 / + 62 AS col2 FROM tab0 cor0 WHERE NOT col2 IS NULL
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2007
SELECT COUNT( * ) + - - 35 AS col0 FROM tab0
----
38

skipif mysql # not compatible
query I rowsort label-2007
SELECT COUNT ( * ) + - - 35 AS col0 FROM tab0
----
38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + + - 39 col2 FROM tab0
----
-126
-136
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-2009
SELECT - MIN( + 16 ) col2 FROM tab0 WHERE ( + 30 * - col2 - + col1 ) IS NOT NULL
----
-16

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2009
SELECT - MIN ( + 16 ) col2 FROM tab0 WHERE ( + 30 * - col2 - + col1 ) IS NOT NULL
----
-16

onlyif mysql # aggregate syntax: 
query II rowsort label-2010
SELECT 32 AS col2, - COUNT( * ) * + COUNT( * ) FROM tab0
----
32
-9

skipif mysql # not compatible
query II rowsort label-2010
SELECT 32 AS col2, - COUNT ( * ) * + COUNT ( * ) FROM tab0
----
32
-9

query I rowsort
SELECT ALL - 11 - - 46 AS col2 FROM tab2
----
35
35
35

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2012
SELECT SUM( + col1 ) DIV - - 51 AS col0, 35 FROM tab1
----
1
35

skipif mysql # not compatible
query II rowsort label-2012
SELECT SUM ( + col1 ) / - - 51 AS col0, 35 FROM tab1
----
1
35

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2013
SELECT ALL * FROM tab1 WHERE NOT col0 NOT IN ( CAST( - col2 AS DECIMAL ) )
----

skipif mysql # not compatible
query III rowsort label-2013
SELECT ALL * FROM tab1 WHERE NOT col0 NOT IN ( CAST ( - col2 AS REAL ) )
----

query II rowsort
SELECT + + 96, col2 AS col0 FROM tab1 WHERE NULL IS NULL
----
96
59
96
68
96
96

query I rowsort
SELECT DISTINCT - 85 FROM tab2 cor0
----
-85

query I rowsort
SELECT - col0 FROM tab0 AS cor0 WHERE NULL <> + col1
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2017
SELECT + CAST( NULL AS SIGNED ) - + - ( CAST( + 39 AS DECIMAL ) ) * 35 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2017
SELECT + CAST ( NULL AS INTEGER ) - + - ( CAST ( + 39 AS REAL ) ) * 35 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2018
SELECT DISTINCT + COUNT( * ) + - SUM( DISTINCT - + ( + col1 ) ) FROM tab0 AS cor0
----
106

skipif mysql # not compatible
query I rowsort label-2018
SELECT DISTINCT + COUNT ( * ) + - SUM ( DISTINCT - + ( + col1 ) ) FROM tab0 AS cor0
----
106

query I rowsort
SELECT ALL - ( - col1 ) + + + ( + col2 ) AS col0 FROM tab2 AS cor0
----
117
125
74

query I rowsort
SELECT ALL col0 + + - 70 FROM tab2
----
-24
-6
5

query I rowsort
SELECT 65 * + 15 AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to 93207fb563248f6c7213179bd15d6125

query I rowsort
SELECT ALL + 41 * 42 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 6a0d061b7b0073068cab90403c1968f9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ( - col2 ) col2, + col0 + 65 - 83 * + + 60 AS col0 FROM tab2
----
-23
-4869
-40
-4851
-58
-4840

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2024
SELECT + 86 * + + CAST( NULL AS SIGNED ) * + + col1 + + 23 * 84 AS col2 FROM tab1 AS cor0 WHERE NOT - col0 <= NULL
----

skipif mysql # not compatible
query I rowsort label-2024
SELECT + 86 * + + CAST ( NULL AS INTEGER ) * + + col1 + + 23 * 84 AS col2 FROM tab1 AS cor0 WHERE NOT - col0 <= NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2025
SELECT DISTINCT + 43 + - COUNT( * ) col0 FROM tab0 AS cor0 WHERE NOT + CAST( - + 69 AS SIGNED ) + - col2 BETWEEN NULL AND 51
----
43

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2025
SELECT DISTINCT + 43 + - COUNT ( * ) col0 FROM tab0 AS cor0 WHERE NOT + CAST ( - + 69 AS INTEGER ) + - col2 BETWEEN NULL AND 51
----
43

query I rowsort
SELECT DISTINCT + col0 * col1 * ( + - col2 ) AS col2 FROM tab0 AS cor0
----
-18270
-57105
-9603

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL >= ( - col0 )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-2028
SELECT - col2 DIV - col2, 40 AS col2 FROM tab0 AS cor0
----
1
40
1
40
1
40

skipif mysql # not compatible
query II rowsort label-2028
SELECT - col2 / - col2, 40 AS col2 FROM tab0 AS cor0
----
1
40
1
40
1
40

query I rowsort
SELECT DISTINCT + 93 * - + col2 + + col1 + 50 + + col1 FROM tab1 AS cor0
----
-5427
-6180
-8850

query I rowsort
SELECT + col1 * 24 + - col2 FROM tab0 cor0
----
-75
1897
494

onlyif mysql # aggregate syntax: 
query I rowsort label-2031
SELECT ALL SUM( DISTINCT + - col1 ) FROM tab0 AS cor0
----
-103

skipif mysql # not compatible
query I rowsort label-2031
SELECT ALL SUM ( DISTINCT + - col1 ) FROM tab0 AS cor0
----
-103

onlyif mysql # aggregate syntax: 
query I rowsort label-2032
SELECT ALL - SUM( + col2 ) FROM tab2 AS cor0
----
-121

skipif mysql # not compatible
query I rowsort label-2032
SELECT ALL - SUM ( + col2 ) FROM tab2 AS cor0
----
-121

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2033
SELECT + CAST( - + col1 AS SIGNED ) AS col2 FROM tab1
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-2033
SELECT + CAST ( - + col1 AS INTEGER ) AS col2 FROM tab1
----
-14
-47
-5

query I rowsort
SELECT DISTINCT + + col2 * col0 * col0 FROM tab0 AS cor0
----
10575
75690
931491

query I rowsort
SELECT DISTINCT + - col0 + ( col0 ) FROM tab2 AS cor0
----
0

query I rowsort
SELECT DISTINCT + - col0 * + col0 / + 87 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN + 6 AND ( - + 13 ) + - col2
----

query II rowsort
SELECT DISTINCT - col1, col0 * - col1 * + - col2 AS col2 FROM tab1
----
-14
68544
-47
290836
-5
25075

onlyif mysql # DIV for integer division: 
query I rowsort label-2038
SELECT - col0 DIV + - 46 AS col0 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2038
SELECT - col0 / + - 46 AS col0 FROM tab1
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + col0 ) col1 FROM tab2 AS cor0
----
46
64
75

onlyif mysql # DIV for integer division: 
query I rowsort label-2040
SELECT ALL + col2 DIV - col0 + - - col0 + + 74 col2 FROM tab2 AS cor0
----
120
138
149

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2040
SELECT ALL + col2 / - col0 + - - col0 + + 74 col2 FROM tab2 AS cor0
----
120
138
149

query III rowsort
SELECT col2, col1, - ( + 92 ) AS col0 FROM tab0 AS cor0
----
9 values hashing to 5eba6ff4fe6f2b182665103e201dffe8

query II rowsort
SELECT ALL - col1 * + col2 * - col0 + col2, + col1 AS col0 FROM tab1 AS cor0
----
25134
5
290904
47
68640
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2043
SELECT DISTINCT + col2 + + - CAST( NULL AS SIGNED ) - + col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2043
SELECT DISTINCT + col2 + + - CAST ( NULL AS INTEGER ) - + col1 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2044
SELECT + 61 col1, COUNT( * ) AS col2 FROM tab2 AS cor0
----
61
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2044
SELECT + 61 col1, COUNT ( * ) AS col2 FROM tab2 AS cor0
----
61
3

query I rowsort
SELECT ALL + col1 + + 64 + + 52 * + 4 + + col1 FROM tab0 cor0
----
274
314
434

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2046
SELECT ALL + col1 - - CAST( NULL AS SIGNED ) * + col1 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2046
SELECT ALL + col1 - - CAST ( NULL AS INTEGER ) * + col1 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - + col1 + - 52 * - col2 AS col0 FROM tab0 AS cor0
----
2363
499
5147

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2048
SELECT DISTINCT ( + COUNT( * ) ) + - COUNT( * ) * CAST( NULL AS DECIMAL ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2048
SELECT DISTINCT ( + COUNT ( * ) ) + - COUNT ( * ) * CAST ( NULL AS REAL ) FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2049
SELECT ALL + - SUM( + col2 ) FROM tab0 WHERE NOT NULL > ( + - col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2049
SELECT ALL + - SUM ( + col2 ) FROM tab0 WHERE NOT NULL > ( + - col1 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2050
SELECT col1 + - + CAST( NULL AS SIGNED ) AS col2, - col0 FROM tab0
----
NULL
-15
NULL
-87
NULL
-97

skipif mysql # not compatible
query II rowsort label-2050
SELECT col1 + - + CAST ( NULL AS INTEGER ) AS col2, - col0 FROM tab0
----
NULL
-15
NULL
-87
NULL
-97

query I rowsort
SELECT + col0 * - ( + col1 ) + - - 85 FROM tab2
----
-2261
-4843
-4940

onlyif mysql # aggregate syntax: 
query II rowsort label-2052
SELECT DISTINCT + SUM( DISTINCT - col0 ) col2, - 90 * + COUNT( * ) FROM tab1
----
-227
-270

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2052
SELECT DISTINCT + SUM ( DISTINCT - col0 ) col2, - 90 * + COUNT ( * ) FROM tab1
----
-227
-270

onlyif mysql # aggregate syntax: 
query I rowsort label-2053
SELECT COUNT( * ) + - + COUNT( * ) AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-2053
SELECT COUNT ( * ) + - + COUNT ( * ) AS col2 FROM tab1
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2054
SELECT + ( - CAST( NULL AS DECIMAL ) ) + SUM( ALL + 70 ) FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2054
SELECT + ( - CAST ( NULL AS REAL ) ) + SUM ( ALL + 70 ) FROM tab0 cor0
----
NULL

query I rowsort
SELECT 5 + + col0 AS col1 FROM tab2 AS cor0
----
51
69
80

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col1 IN ( + col0, - col1, - - col0 + + ( + 49 ), + 49 * + col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + col2 * + col2 * + col0 * col0 FROM tab2 AS cor0 WHERE NOT + col0 + col2 > + 23
----

query I rowsort
SELECT DISTINCT + - col1 - - col1 FROM tab0 cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2059
SELECT ALL + - COUNT( * ) + + COUNT( 1 ) AS col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2059
SELECT ALL + - COUNT ( * ) + + COUNT ( 1 ) AS col0 FROM tab0 AS cor0
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL NOT IN ( + - col2, + 80 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2061
SELECT + 41 * + CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2061
SELECT + 41 * + CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col1 * ( - col2 ) <> ( NULL )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2063
SELECT DISTINCT - ( - MIN( DISTINCT - col2 ) ) AS col0, 68 FROM tab1 AS cor0
----
-96
68

skipif mysql # not compatible
query II rowsort label-2063
SELECT DISTINCT - ( - MIN ( DISTINCT - col2 ) ) AS col0, 68 FROM tab1 AS cor0
----
-96
68

query II rowsort
SELECT - col1, col0 AS col0 FROM tab2 cor0
----
-51
46
-67
75
-77
64

query II rowsort
SELECT ALL + col2 AS col1, + 3 AS col2 FROM tab0 AS cor0
----
10
3
47
3
99
3

query I rowsort
SELECT DISTINCT - - 14 * + + ( col2 ) FROM tab2 AS cor0
----
322
560
812

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - ( + col2 ) * + col0 + - + 6 col2, + col1 col1 FROM tab2 AS cor0
----
-1064
51
-2566
77
-4356
67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 40 * + col0 col1, + col2 FROM tab0
----
3480
10
3880
99
600
47

query I rowsort
SELECT 58 * + col1 AS col0 FROM tab1
----
2726
290
812

query III rowsort
SELECT * FROM tab2 WHERE NOT + 99 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2071
SELECT - COUNT( - 42 ) / - MAX( DISTINCT + ( + + CAST( NULL AS SIGNED ) ) ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2071
SELECT - COUNT ( - 42 ) / - MAX ( DISTINCT + ( + + CAST ( NULL AS INTEGER ) ) ) AS col0 FROM tab2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2072
SELECT ALL ( - col0 ) DIV + col1 + 35 FROM tab2 WHERE NULL IS NULL
----
34
35
35

skipif mysql # not compatible
query I rowsort label-2072
SELECT ALL ( - col0 ) / + col1 + 35 FROM tab2 WHERE NULL IS NULL
----
34
35
35

onlyif mysql # aggregate syntax: 
query I rowsort label-2073
SELECT - SUM( - 76 ) col1 FROM tab0
----
228

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2073
SELECT - SUM ( - 76 ) col1 FROM tab0
----
228

query I rowsort
SELECT ALL - col1 * - + 83 * + col2 FROM tab0
----
17430
315981
8217

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - 41 ) col0 FROM tab1
----
-41
-41
-41

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 53 = + - ( col1 ) + - - col0 + - + 8 * + col1 * - ( col0 ) * + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + 5 * ( 66 ) FROM tab0 AS cor0
----
330
330
330

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2078
SELECT ALL - CAST( NULL AS SIGNED ) * - CAST( NULL AS SIGNED ) FROM tab2 AS cor0 WHERE 15 / - ( col1 ) NOT IN ( + + col0 )
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2078
SELECT ALL - CAST ( NULL AS INTEGER ) * - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 WHERE 15 / - ( col1 ) NOT IN ( + + col0 )
----
NULL
NULL
NULL

query I rowsort
SELECT ( 40 ) AS col1 FROM tab0 AS cor0
----
40
40
40

onlyif mysql # aggregate syntax: 
query I rowsort label-2080
SELECT ALL + ( - - MAX( col0 ) ) AS col1 FROM tab0 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-2080
SELECT ALL + ( - - MAX ( col0 ) ) AS col1 FROM tab0 AS cor0
----
97

query I rowsort
SELECT ALL 47 + + + 9 * col1 AS col0 FROM tab1 AS cor0
----
173
470
92

onlyif mysql # DIV for integer division: 
query I rowsort label-2082
SELECT ALL - - col0 DIV + 87 + - + col0 * - col0 FROM tab1 WHERE NOT - + col1 IS NULL
----
2601
7225
8282

skipif mysql # not compatible
query I rowsort label-2082
SELECT ALL - - col0 / + 87 + - + col0 * - col0 FROM tab1 WHERE NOT - + col1 IS NULL
----
2601
7225
8282

query I rowsort
SELECT col0 * + 95 AS col0 FROM tab0
----
1425
8265
9215

query I rowsort
SELECT DISTINCT + 21 + ( + - 93 ) * - + col0 AS col2 FROM tab0 cor0
----
1416
8112
9042

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2085
SELECT - CAST( NULL AS SIGNED ), col0 AS col0 FROM tab2 AS cor0 WHERE 74 IN ( + 16 * col1 )
----

skipif mysql # not compatible
query II rowsort label-2085
SELECT - CAST ( NULL AS INTEGER ), col0 AS col0 FROM tab2 AS cor0 WHERE 74 IN ( + 16 * col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2086
SELECT ALL + CAST( NULL AS SIGNED ) + + col0 AS col1 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2086
SELECT ALL + CAST ( NULL AS INTEGER ) + + col0 AS col1 FROM tab1 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2087
SELECT 72 + - + COUNT( * ) FROM tab0 AS cor0
----
69

skipif mysql # not compatible
query I rowsort label-2087
SELECT 72 + - + COUNT ( * ) FROM tab0 AS cor0
----
69

query I rowsort
SELECT DISTINCT - col2 * - - 6 - - 18 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2089
SELECT col0 DIV 88 FROM tab1 AS cor0 WHERE NULL IS NULL
----
0
0
1

skipif mysql # not compatible
query I rowsort label-2089
SELECT col0 / 88 FROM tab1 AS cor0 WHERE NULL IS NULL
----
0
0
1

onlyif mysql # DIV for integer division: 
query I rowsort label-2090
SELECT ALL - 20 DIV - - col0 + - - col0 FROM tab1 AS cor0
----
51
85
91

skipif mysql # not compatible
query I rowsort label-2090
SELECT ALL - 20 / - - col0 + - - col0 FROM tab1 AS cor0
----
51
85
91

query II rowsort
SELECT ALL + 53, + col1 AS col2 FROM tab0 AS cor0
----
53
1
53
21
53
81

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col2 * col1 <= ( ( - col0 ) )
----

query II rowsort
SELECT - col0 AS col0, - col2 AS col1 FROM tab2
----
-46
-23
-64
-40
-75
-58

query I rowsort
SELECT col0 * + - col2 * - col2 AS col2 FROM tab0
----
33135
8700
950697

onlyif mysql # aggregate syntax: 
query I rowsort label-2095
SELECT DISTINCT ( + COUNT( * ) ) - - + 20 FROM tab2
----
23

skipif mysql # not compatible
query I rowsort label-2095
SELECT DISTINCT ( + COUNT ( * ) ) - - + 20 FROM tab2
----
23

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + + col2 * + 1 - + col1 NOT BETWEEN ( - col1 ) AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2097
SELECT DISTINCT - COUNT( * ) * CAST( NULL AS SIGNED ) col2 FROM tab1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2097
SELECT DISTINCT - COUNT ( * ) * CAST ( NULL AS INTEGER ) col2 FROM tab1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2098
SELECT ALL col0 DIV 73 + - col2 FROM tab2
----
-23
-40
-57

skipif mysql # not compatible
query I rowsort label-2098
SELECT ALL col0 / 73 + - col2 FROM tab2
----
-23
-40
-57

query I rowsort
SELECT ALL col2 + 29 * 48 * - col1 FROM tab1 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT - col0, - col1 AS col2 FROM tab0
----
-15
-81
-87
-21
-97
-1

query I rowsort
SELECT ALL 46 - col1 * - col1 FROM tab0
----
47
487
6607

query I rowsort
SELECT DISTINCT + ( + - col0 ) AS col2 FROM tab0 AS cor0
----
-15
-87
-97

query II rowsort
SELECT ALL + 3 + ( + 0 ) - + - col0 AS col0, + 15 FROM tab0 AS cor0
----
100
15
18
15
90
15

onlyif mysql # aggregate syntax: 
query I rowsort label-2104
SELECT ALL COUNT( DISTINCT ( - 53 ) ) AS col2 FROM tab2 AS cor0 WHERE + 33 <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-2104
SELECT ALL COUNT ( DISTINCT ( - 53 ) ) AS col2 FROM tab2 AS cor0 WHERE + 33 <> NULL
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2105
SELECT MAX( - 60 ) AS col2, COUNT( * ) * - + COUNT( * ) AS col2 FROM tab1 AS cor0
----
-60
-9

skipif mysql # not compatible
query II rowsort label-2105
SELECT MAX ( - 60 ) AS col2, COUNT ( * ) * - + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-60
-9

query II rowsort
SELECT DISTINCT + col1, col0 * + + col0 AS col1 FROM tab1 cor0 WHERE NULL < - col0 + 95
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 15 col2 FROM tab2
----
-15
-15
-15

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + 92 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2109
SELECT + COUNT( * ) FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-2109
SELECT + COUNT ( * ) FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2110
SELECT + + col0 * - col0 + + col2 * + 67 + + CAST( NULL AS SIGNED ) AS col2, col0 FROM tab2 AS cor0
----
NULL
46
NULL
64
NULL
75

skipif mysql # not compatible
query II rowsort label-2110
SELECT + + col0 * - col0 + + col2 * + 67 + + CAST ( NULL AS INTEGER ) AS col2, col0 FROM tab2 AS cor0
----
NULL
46
NULL
64
NULL
75

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT - col2 * - + col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - - 35 * - 69 AS col2 FROM tab1 AS cor0
----
-2415
-2415
-2415

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2113
SELECT MAX( DISTINCT - col2 ) DIV - 82 AS col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2113
SELECT MAX ( DISTINCT - col2 ) / - 82 AS col0 FROM tab1 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 59 * col2 col2 FROM tab0 AS cor0
----
-2773
-5841
-590

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2115
SELECT DISTINCT - + CAST( - - COUNT( * ) AS SIGNED ), CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-3
NULL

skipif mysql # not compatible
query II rowsort label-2115
SELECT DISTINCT - + CAST ( - - COUNT ( * ) AS INTEGER ), CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-3
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( - 51 IS NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2117
SELECT CAST( - - 85 AS SIGNED ) FROM tab1
----
85
85
85

skipif mysql # not compatible
query I rowsort label-2117
SELECT CAST ( - - 85 AS INTEGER ) FROM tab1
----
85
85
85

onlyif mysql # aggregate syntax: 
query I rowsort label-2118
SELECT ALL - 0 * COUNT( * ) AS col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-2118
SELECT ALL - 0 * COUNT ( * ) AS col1 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2119
SELECT - MIN( - - ( - 47 ) ) AS col1 FROM tab2
----
47

skipif mysql # not compatible
query I rowsort label-2119
SELECT - MIN ( - - ( - 47 ) ) AS col1 FROM tab2
----
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2120
SELECT + CAST( + - col1 AS SIGNED ) + 80 FROM tab0 AS cor0
----
-1
59
79

skipif mysql # not compatible
query I rowsort label-2120
SELECT + CAST ( + - col1 AS INTEGER ) + 80 FROM tab0 AS cor0
----
-1
59
79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2121
SELECT + + CAST( col2 AS SIGNED ) + + - col1 AS col0 FROM tab2 AS cor0
----
-28
-37
-9

skipif mysql # not compatible
query I rowsort label-2121
SELECT + + CAST ( col2 AS INTEGER ) + + - col1 AS col0 FROM tab2 AS cor0
----
-28
-37
-9

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - col2 + col1 + + 94 > - 54 * + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2123
SELECT DISTINCT - - MIN( ALL - + col1 ) col1 FROM tab1 AS cor0
----
-47

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2123
SELECT DISTINCT - - MIN ( ALL - + col1 ) col1 FROM tab1 AS cor0
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-2124
SELECT DISTINCT 26 + + - COUNT( * ) + COUNT( * ) FROM tab0 cor0
----
26

skipif mysql # not compatible
query I rowsort label-2124
SELECT DISTINCT 26 + + - COUNT ( * ) + COUNT ( * ) FROM tab0 cor0
----
26

query I rowsort
SELECT col2 * - col1 * + col1 FROM tab1
----
-1475
-150212
-18816

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2126
SELECT DISTINCT * FROM tab0 WHERE NOT NULL < ( - + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-2126
SELECT DISTINCT * FROM tab0 WHERE NOT NULL < ( - + CAST ( NULL AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2127
SELECT DISTINCT COUNT( * ) FROM tab2 AS cor0 WHERE NOT ( col0 ) >= + col0
----
0

skipif mysql # not compatible
query I rowsort label-2127
SELECT DISTINCT COUNT ( * ) FROM tab2 AS cor0 WHERE NOT ( col0 ) >= + col0
----
0

query I rowsort
SELECT - col2 * col2 - 61 FROM tab2 AS cor0
----
-1661
-3425
-590

query I rowsort
SELECT 0 * - 63 - + col0 AS col1 FROM tab2 AS cor0 WHERE ( NOT ( ( NULL IS NOT NULL ) ) )
----
-46
-64
-75

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT ( NOT - col1 IS NOT NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2131
SELECT - ( - - COUNT( * ) ) - - 57 AS col1 FROM tab2 cor0
----
54

skipif mysql # not compatible
query I rowsort label-2131
SELECT - ( - - COUNT ( * ) ) - - 57 AS col1 FROM tab2 cor0
----
54

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE + col0 <> col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-2133
SELECT DISTINCT + col2 DIV - - col2 + + - col0 FROM tab2 cor0
----
-45
-63
-74

skipif mysql # not compatible
query I rowsort label-2133
SELECT DISTINCT + col2 / - - col2 + + - col0 FROM tab2 cor0
----
-45
-63
-74

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 95 + col2 col1 FROM tab2
----
-37
-55
-72

onlyif mysql # DIV for integer division: 
query I rowsort label-2135
SELECT ALL col1 DIV col1 - 36 AS col2 FROM tab2
----
-35
-35
-35

skipif mysql # not compatible
query I rowsort label-2135
SELECT ALL col1 / col1 - 36 AS col2 FROM tab2
----
-35
-35
-35

query I rowsort
SELECT - col2 + - 90 AS col2 FROM tab1
----
-149
-158
-186

onlyif mysql # aggregate syntax: 
query I rowsort label-2137
SELECT DISTINCT + - MIN( DISTINCT col1 ) FROM tab2 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-2137
SELECT DISTINCT + - MIN ( DISTINCT col1 ) FROM tab2 AS cor0
----
-51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2138
SELECT + + ( - col1 ) * CAST( NULL AS SIGNED ) + + col2 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2138
SELECT + + ( - col1 ) * CAST ( NULL AS INTEGER ) + + col2 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 31 * - + col2 col1 FROM tab0 cor0
----
1457
3069
310

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2140
SELECT + + CAST( NULL AS SIGNED ) / + 50 col2, 14 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
18 values hashing to dc45e674a7fe272537b91698e269813c

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2140
SELECT + + CAST ( NULL AS INTEGER ) / + 50 col2, 14 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
18 values hashing to dc45e674a7fe272537b91698e269813c

query I rowsort
SELECT 61 * + 10 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 31192eeb31f84c0dcfd9cbec77964120

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT ( + 85 ) IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col1 * + col2 BETWEEN + col2 AND NULL
----

query II rowsort
SELECT ALL 25 AS col1, col0 + + col1 + + col1 * col2 AS col0 FROM tab0 AS cor0
----
25
197
25
318
25
3903

query II rowsort
SELECT DISTINCT 82, col2 AS col1 FROM tab0 AS cor0
----
82
10
82
47
82
99

query I rowsort
SELECT DISTINCT + 94 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN + col0 AND col1
----

query II rowsort
SELECT DISTINCT + col2 AS col0, - col1 FROM tab0 cor0
----
10
-21
47
-81
99
-1

query I rowsort
SELECT col2 + 24 AS col2 FROM tab2
----
47
64
82

query I rowsort
SELECT - 0 + - col1 AS col0 FROM tab0
----
-1
-21
-81

query I rowsort
SELECT - 14 + + col1 AS col2 FROM tab2
----
37
53
63

onlyif mysql # aggregate syntax: 
query I rowsort label-2151
SELECT ALL + COUNT( col2 ) AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-2151
SELECT ALL + COUNT ( col2 ) AS col0 FROM tab2
----
3

query I rowsort
SELECT ALL - col0 + - col1 AS col0 FROM tab1 WHERE NOT + col0 * - ( + col2 ) <= + - col0
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - 83 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + 57 + + 52 FROM tab1 AS cor0
----
109

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 57 < ( - ( + col2 ) * 40 + + col0 )
----

query I rowsort
SELECT DISTINCT + col0 + - ( + - col1 ) FROM tab2 AS cor0
----
141
142
97

query I rowsort
SELECT ALL - - col0 / col0 * - 72 FROM tab0 WHERE NOT NULL = NULL
----

query I rowsort
SELECT col0 + + - 91 AS col0 FROM tab0
----
-4
-76
6

onlyif mysql # aggregate syntax: 
query I rowsort label-2159
SELECT + MIN( ALL - 75 ) FROM tab2 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-2159
SELECT + MIN ( ALL - 75 ) FROM tab2 AS cor0
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-2160
SELECT + MAX( ALL - col0 ) * - 14 - - 6 AS col1 FROM tab2 AS cor0
----
650

skipif mysql # not compatible
query I rowsort label-2160
SELECT + MAX ( ALL - col0 ) * - 14 - - 6 AS col1 FROM tab2 AS cor0
----
650

query I rowsort
SELECT ALL - col2 + + ( 16 ) FROM tab0 AS cor0
----
-31
-83
6

query III rowsort
SELECT * FROM tab2 WHERE NULL IN ( + 29, + col0 )
----

query I rowsort
SELECT - col1 - - 72 + col2 AS col0 FROM tab2
----
35
44
63

onlyif mysql # aggregate syntax: 
query I rowsort label-2164
SELECT ALL ( + + SUM( - 86 ) ) AS col2 FROM tab0
----
-258

skipif mysql # not compatible
query I rowsort label-2164
SELECT ALL ( + + SUM ( - 86 ) ) AS col2 FROM tab0
----
-258

onlyif mysql # DIV for integer division: 
query I rowsort label-2165
SELECT DISTINCT + 6 DIV - 73 AS col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-2165
SELECT DISTINCT + 6 / - 73 AS col1 FROM tab0
----
0

query I rowsort
SELECT DISTINCT + 80 FROM tab2 WHERE NOT ( NULL ) IS NOT NULL
----
80

query III rowsort
SELECT * FROM tab0 WHERE NOT - 30 * + - 11 * + 75 + + col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + col0 * - 97 AS col2 FROM tab1 AS cor0
----
-4947
-8245
-8827

query I rowsort
SELECT ALL - col0 * - col0 * - 9 * + col2 AS col1 FROM tab2 AS cor0
----
-1474560
-2936250
-438012

query I rowsort
SELECT - col0 FROM tab2 AS cor0 WHERE NOT NULL <= NULL
----

query I rowsort
SELECT + col2 * - - 20 FROM tab2 cor0
----
1160
460
800

onlyif mysql # DIV for integer division: 
query I rowsort label-2172
SELECT ALL + col1 DIV - 51 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-2172
SELECT ALL + col1 / - 51 FROM tab2
----
-1
-1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2173
SELECT DISTINCT - COUNT( - 71 ) AS col1 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-2173
SELECT DISTINCT - COUNT ( - 71 ) AS col1 FROM tab1
----
-3

query I rowsort
SELECT + 42 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 64c29db9f1cd7ed4ddeb1735e3e0d442

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2175
SELECT DISTINCT + - 71 + COUNT( + + col2 ) * CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2175
SELECT DISTINCT + - 71 + COUNT ( + + col2 ) * CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-2176
SELECT ALL col2 + - col2 DIV col0, + col0 + + - ( + col1 ) AS col1 FROM tab0 AS cor0
----
10
66
44
-66
98
96

skipif mysql # not compatible
query II rowsort label-2176
SELECT ALL col2 + - col2 / col0, + col0 + + - ( + col1 ) AS col1 FROM tab0 AS cor0
----
10
66
44
-66
98
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2177
SELECT + - ( CAST( + - col1 AS SIGNED ) ) FROM tab0 cor0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-2177
SELECT + - ( CAST ( + - col1 AS INTEGER ) ) FROM tab0 cor0
----
1
21
81

onlyif mysql # DIV for integer division: 
query I rowsort label-2178
SELECT DISTINCT - 20 * col0 DIV - + col0 + + 40 FROM tab0 AS cor0
----
60

skipif mysql # not compatible
query I rowsort label-2178
SELECT DISTINCT - 20 * col0 / - + col0 + + 40 FROM tab0 AS cor0
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-2179
SELECT 22 * - COUNT( * ) + - 9 AS col2 FROM tab0 AS cor0 WHERE NOT NULL >= col0 + + - col2
----
-9

skipif mysql # not compatible
query I rowsort label-2179
SELECT 22 * - COUNT ( * ) + - 9 AS col2 FROM tab0 AS cor0 WHERE NOT NULL >= col0 + + - col2
----
-9

query I rowsort
SELECT ALL 30 + col0 FROM tab0 AS cor0
----
117
127
45

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2181
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( - - col2 >= - CAST( NULL AS DECIMAL ) + 29 )
----

skipif mysql # not compatible
query III rowsort label-2181
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( - - col2 >= - CAST ( NULL AS REAL ) + 29 )
----

query I rowsort
SELECT + 36 FROM tab0 WHERE NULL IS NULL
----
36
36
36

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2183
SELECT DISTINCT CAST( NULL AS SIGNED ), - col1 * col2 * col0 AS col1 FROM tab0
----
NULL
-18270
NULL
-57105
NULL
-9603

skipif mysql # not compatible
query II rowsort label-2183
SELECT DISTINCT CAST ( NULL AS INTEGER ), - col1 * col2 * col0 AS col1 FROM tab0
----
NULL
-18270
NULL
-57105
NULL
-9603

query I rowsort
SELECT + 65 + - - 42 * + ( col0 ) + col0 FROM tab2
----
2043
2817
3290

query I rowsort
SELECT col2 + - + col0 AS col2 FROM tab1
----
-23
-26
45

query I rowsort
SELECT ALL + - 43 + 55 FROM tab0 AS cor0
----
12
12
12

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab2 cor1 WHERE NOT NULL <= NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col2 + + + col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2189
SELECT - ( - COUNT( * ) ) - CAST( NULL AS SIGNED ) FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2189
SELECT - ( - COUNT ( * ) ) - CAST ( NULL AS INTEGER ) FROM tab2 cor0
----
NULL

query I rowsort
SELECT 34 - + col1 + - col2 FROM tab2 AS cor0
----
-40
-83
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2191
SELECT ALL + col1 * - CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2191
SELECT ALL + col1 * - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - - 15 - + col2 AS col2 FROM tab1 AS cor0
----
-44
-53
-81

onlyif mysql # DIV for integer division: 
query I rowsort label-2193
SELECT ALL + col1 + + col0 DIV + 98 col2 FROM tab0 AS cor0
----
1
21
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2193
SELECT ALL + col1 + + col0 / + 98 col2 FROM tab0 AS cor0
----
1
21
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2194
SELECT DISTINCT + - CAST( NULL AS SIGNED ) + + + col1 * - col1 FROM tab2 AS cor0 WHERE - 85 IS NULL
----

skipif mysql # not compatible
query I rowsort label-2194
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) + + + col1 * - col1 FROM tab2 AS cor0 WHERE - 85 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col0 * col0 - 73 col2 FROM tab1 AS cor0
----
2528
7152
8208

query II rowsort
SELECT - col2 AS col0, 20 * + col2 AS col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-59
1180
-68
1360
-96
1920

query I rowsort
SELECT + ( - ( - - 77 ) ) AS col1 FROM tab2
----
-77
-77
-77

query II rowsort
SELECT ALL - col2 AS col0, col2 AS col2 FROM tab0
----
-10
10
-47
47
-99
99

query I rowsort
SELECT - 45 * - col2 AS col1 FROM tab2 cor0
----
1035
1800
2610

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 57 * - col2 col2 FROM tab0 AS cor0
----
-2679
-5643
-570

onlyif mysql # aggregate syntax: 
query I rowsort label-2201
SELECT + COUNT( * ) AS col1 FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9

skipif mysql # not compatible
query I rowsort label-2201
SELECT + COUNT ( * ) AS col1 FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9

query II rowsort
SELECT - ( + col0 ), - col2 AS col1 FROM tab2
----
-46
-23
-64
-40
-75
-58

query I rowsort
SELECT DISTINCT - 61 * - 19 FROM tab2
----
1159

query I rowsort
SELECT DISTINCT + + 52 * - - col2 + - col1 AS col0 FROM tab2 cor0
----
1145
2003
2949

query I rowsort
SELECT ALL - col0 + + + col2 AS col1 FROM tab2 AS cor0
----
-17
-23
-24

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 1 + - - 31 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2207
SELECT ALL - - SUM( ALL col1 ) AS col2 FROM tab2 AS cor0
----
195

skipif mysql # not compatible
query I rowsort label-2207
SELECT ALL - - SUM ( ALL col1 ) AS col2 FROM tab2 AS cor0
----
195

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 49 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - - col2 + + + col1 + - + col1 * - ( + col2 ) AS col0 FROM tab2 AS cor0
----
1247
3197
4011

query I rowsort
SELECT col1 + + - col0 * col0 * - + col2 - - - col2 AS col0 FROM tab0
----
10609
75701
931393

query I rowsort
SELECT col2 * - col1 + ( - + col0 ) FROM tab1
----
-1395
-3287
-380

query I rowsort
SELECT + - col2 FROM tab0 WHERE + ( + col0 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2213
SELECT COUNT( * ) * + 41 AS col1 FROM tab0
----
123

skipif mysql # not compatible
query I rowsort label-2213
SELECT COUNT ( * ) * + 41 AS col1 FROM tab0
----
123

onlyif mysql # aggregate syntax: 
query II rowsort label-2214
SELECT ALL - - 37 AS col0, + COUNT( * ) * 38 AS col2 FROM tab0 WHERE NOT col2 = - col0
----
37
114

skipif mysql # not compatible
query II rowsort label-2214
SELECT ALL - - 37 AS col0, + COUNT ( * ) * 38 AS col2 FROM tab0 WHERE NOT col2 = - col0
----
37
114

query II rowsort
SELECT DISTINCT - 16 * + + ( - col2 ), col2 * + 54 + - + col1 AS col0 FROM tab0
----
1584
5345
160
519
752
2457

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-2216
SELECT - COUNT( * ) * CAST( NULL AS SIGNED ) * + CAST( NULL AS DECIMAL ) * + MAX( col2 ) AS col0, COUNT( * ) + + 80 FROM tab0
----
NULL
83

skipif mysql # not compatible
query II rowsort label-2216
SELECT - COUNT ( * ) * CAST ( NULL AS INTEGER ) * + CAST ( NULL AS REAL ) * + MAX ( col2 ) AS col0, COUNT ( * ) + + 80 FROM tab0
----
NULL
83

query I rowsort
SELECT ( + col1 ) * - ( col0 ) FROM tab1
----
-425
-4277
-714

query II rowsort
SELECT + col1, + col1 * - + col0 FROM tab1 AS cor0 WHERE NULL = col1 * + - col0 + 29
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2219
SELECT 1 - SUM( ALL - 24 ) AS col1 FROM tab0 AS cor0
----
73

skipif mysql # not compatible
query I rowsort label-2219
SELECT 1 - SUM ( ALL - 24 ) AS col1 FROM tab0 AS cor0
----
73

query I rowsort
SELECT + col1 + - 3 FROM tab0 AS cor0
----
-2
18
78

onlyif mysql # aggregate syntax: 
query I rowsort label-2221
SELECT - + COUNT( * ) + SUM( ALL - - ( + - col2 ) ) FROM tab2 cor0
----
-124

skipif mysql # not compatible
query I rowsort label-2221
SELECT - + COUNT ( * ) + SUM ( ALL - - ( + - col2 ) ) FROM tab2 cor0
----
-124

onlyif mysql # aggregate syntax: 
query I rowsort label-2222
SELECT ALL COUNT( - 0 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2222
SELECT ALL COUNT ( - 0 ) FROM tab1 AS cor0
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2223
SELECT - - CAST( NULL AS DECIMAL ) * + - CAST( + + COUNT( * ) AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2223
SELECT - - CAST ( NULL AS REAL ) * + - CAST ( + + COUNT ( * ) AS INTEGER ) FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2224
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT NULL IN ( - col1 + 21, CAST( NULL AS SIGNED ) / + - col2 * - col0 * + CAST( NULL AS SIGNED ) + - + 6 * + CAST( + ( - col0 ) AS SIGNED ) + + col2 )
----

skipif mysql # not compatible
query III rowsort label-2224
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT NULL IN ( - col1 + 21, CAST ( NULL AS INTEGER ) / + - col2 * - col0 * + CAST ( NULL AS INTEGER ) + - + 6 * + CAST ( + ( - col0 ) AS INTEGER ) + + col2 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2225
SELECT ALL CAST( NULL AS SIGNED ) * + + COUNT( DISTINCT col0 ) AS col0 FROM tab2 AS cor0 WHERE col0 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2225
SELECT ALL CAST ( NULL AS INTEGER ) * + + COUNT ( DISTINCT col0 ) AS col0 FROM tab2 AS cor0 WHERE col0 IS NOT NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2226
SELECT 5 DIV col1 AS col2 FROM tab1 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-2226
SELECT 5 / col1 AS col2 FROM tab1 AS cor0
----
0
0
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 col2 FROM tab1 AS cor0 WHERE NOT - 30 IS NULL
----
14
47
5

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col1 NOT BETWEEN NULL AND - 95
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2229
SELECT DISTINCT - SUM( + + ( CAST( NULL AS SIGNED ) ) ) col1, + MAX( - col0 ) FROM tab0
----
NULL
-15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2229
SELECT DISTINCT - SUM ( + + ( CAST ( NULL AS INTEGER ) ) ) col1, + MAX ( - col0 ) FROM tab0
----
NULL
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-2230
SELECT DISTINCT COUNT( + + 89 ) FROM tab2 WHERE + + 70 >= + col2
----
3

skipif mysql # not compatible
query I rowsort label-2230
SELECT DISTINCT COUNT ( + + 89 ) FROM tab2 WHERE + + 70 >= + col2
----
3

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - 31 + - 82 = col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL col2 * - 71 AS col2 FROM tab0 AS cor0
----
-3337
-7029
-710

query I rowsort
SELECT - col2 FROM tab1 AS cor0 WHERE NOT + col1 BETWEEN NULL AND - col1 / col1
----
-59
-68
-96

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NULL ) <> + 36 - - col0
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 35 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL 12 * 58 * + + 67 AS col1 FROM tab1
----
46632
46632
46632

query I rowsort
SELECT ALL ( - col2 ) AS col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-2238
SELECT ALL + MAX( + 72 ) AS col1 FROM tab1
----
72

skipif mysql # not compatible
query I rowsort label-2238
SELECT ALL + MAX ( + 72 ) AS col1 FROM tab1
----
72

query I rowsort
SELECT DISTINCT 40 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
40

onlyif mysql # aggregate syntax: 
query II rowsort label-2240
SELECT ALL COUNT( * ) col1, COUNT( * ) FROM tab2
----
3
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2240
SELECT ALL COUNT ( * ) col1, COUNT ( * ) FROM tab2
----
3
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2241
SELECT ALL * FROM tab0 cor0 WHERE - 66 >= - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-2241
SELECT ALL * FROM tab0 cor0 WHERE - 66 >= - CAST ( NULL AS INTEGER )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2242
SELECT ALL + CAST( NULL AS SIGNED ) * + 50 + 29 * + - col1 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2242
SELECT ALL + CAST ( NULL AS INTEGER ) * + 50 + 29 * + - col1 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2243
SELECT DISTINCT col0 + col1 * ( + CAST( NULL AS SIGNED ) ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2243
SELECT DISTINCT col0 + col1 * ( + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab2 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-2244
SELECT ALL + 88 DIV + col0 + + + col1, col0 AS col0 FROM tab1 AS cor0
----
15
51
47
91
6
85

skipif mysql # not compatible
query II rowsort label-2244
SELECT ALL + 88 / + col0 + + + col1, col0 AS col0 FROM tab1 AS cor0
----
15
51
47
91
6
85

query II rowsort
SELECT + col0 AS col2, + col2 AS col1 FROM tab1 AS cor0
----
51
96
85
59
91
68

query I rowsort
SELECT - col0 FROM tab0 WHERE NULL < - col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2247
SELECT 60 + - col2 + - col0 DIV - col0 AS col0 FROM tab1
----
-35
-7
2

skipif mysql # not compatible
query I rowsort label-2247
SELECT 60 + - col2 + - col0 / - col0 AS col0 FROM tab1
----
-35
-7
2

query I rowsort
SELECT ALL - 55 * + 62 AS col1 FROM tab2
----
-3410
-3410
-3410

query I rowsort
SELECT + - col2 + - 37 * + col0 AS col0 FROM tab2 WHERE NULL NOT BETWEEN NULL AND + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2250
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + - 3 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2250
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + - 3 FROM tab1
----
NULL

query I rowsort
SELECT - 18 + - - ( + + 85 ) + + col1 AS col0 FROM tab1
----
114
72
81

query I rowsort
SELECT - col1 + - col0 + - + 99 AS col2 FROM tab0
----
-195
-197
-207

query I rowsort
SELECT - - col1 AS col2 FROM tab0 AS cor0 WHERE + col0 + col0 + - 16 NOT BETWEEN + 98 AND NULL
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-2254
SELECT DISTINCT - ( - SUM( - col1 ) ) AS col2 FROM tab0 AS cor0
----
-103

skipif mysql # not compatible
query I rowsort label-2254
SELECT DISTINCT - ( - SUM ( - col1 ) ) AS col2 FROM tab0 AS cor0
----
-103

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 - + - col0 * - + col2 col1 FROM tab0
----
-624
-849
-9602

query I rowsort
SELECT + 23 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to d94fadcc1c8cc4fc51b78b83e04795f2

onlyif mysql # aggregate syntax: 
query I rowsort label-2257
SELECT DISTINCT COUNT( col2 ) AS col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2257
SELECT DISTINCT COUNT ( col2 ) AS col0 FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2258
SELECT MIN( DISTINCT + col1 ) * + COUNT( * ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2258
SELECT MIN ( DISTINCT + col1 ) * + COUNT ( * ) FROM tab0 AS cor0
----
3

query I rowsort
SELECT ALL - col1 AS col1 FROM tab0 AS cor0 WHERE + col1 IS NOT NULL
----
-1
-21
-81

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT + 3 + + col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 99 col0, - 66 FROM tab2
----
-99
-66
-99
-66
-99
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-2262
SELECT DISTINCT SUM( - col1 ) FROM tab2
----
-195

skipif mysql # not compatible
query I rowsort label-2262
SELECT DISTINCT SUM ( - col1 ) FROM tab2
----
-195

query II rowsort
SELECT col1, + col0 + 71 FROM tab0
----
1
168
21
158
81
86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2264
SELECT CAST( + - 37 AS SIGNED ) FROM tab1
----
-37
-37
-37

skipif mysql # not compatible
query I rowsort label-2264
SELECT CAST ( + - 37 AS INTEGER ) FROM tab1
----
-37
-37
-37

onlyif mysql # aggregate syntax: 
query II rowsort label-2265
SELECT DISTINCT COUNT( * ) AS col2, 57 FROM tab0
----
3
57

skipif mysql # not compatible
query II rowsort label-2265
SELECT DISTINCT COUNT ( * ) AS col2, 57 FROM tab0
----
3
57

query I rowsort
SELECT 92 * 24 FROM tab1 WHERE NOT ( NOT NULL IS NOT NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col2 col0, - col2 FROM tab0
----
10
-10
47
-47
99
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-2268
SELECT - MIN( - - 51 ) FROM tab1 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-2268
SELECT - MIN ( - - 51 ) FROM tab1 AS cor0
----
-51

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 99 + col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2270
SELECT + 64 * - COUNT( ALL + col2 ) FROM tab2
----
-192

skipif mysql # not compatible
query I rowsort label-2270
SELECT + 64 * - COUNT ( ALL + col2 ) FROM tab2
----
-192

query I rowsort
SELECT ALL col0 * - + 70 AS col0 FROM tab0
----
-1050
-6090
-6790

onlyif mysql # aggregate syntax: 
query I rowsort label-2272
SELECT SUM( ALL + - 59 ) AS col2 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2272
SELECT SUM ( ALL + - 59 ) AS col2 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2273
SELECT + - CAST( NULL AS DECIMAL ) FROM tab2 AS cor0 WHERE col1 IS NULL
----

skipif mysql # not compatible
query I rowsort label-2273
SELECT + - CAST ( NULL AS REAL ) FROM tab2 AS cor0 WHERE col1 IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2274
SELECT DISTINCT 82 * 99 DIV - - ( COUNT( * ) ) AS col1 FROM tab2 cor0
----
2706

skipif mysql # not compatible
query I rowsort label-2274
SELECT DISTINCT 82 * 99 / - - ( COUNT ( * ) ) AS col1 FROM tab2 cor0
----
2706

onlyif mysql # DIV for integer division: 
query I rowsort label-2275
SELECT + 23 DIV 31 FROM tab1 AS cor0 WHERE + col1 IS NOT NULL
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2275
SELECT + 23 / 31 FROM tab1 AS cor0 WHERE + col1 IS NOT NULL
----
0
0
0

query I rowsort
SELECT - 28 * + + col2 FROM tab1
----
-1652
-1904
-2688

query I rowsort
SELECT DISTINCT + 68 - - col0 AS col2 FROM tab0
----
155
165
83

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2278
SELECT DISTINCT + MIN( DISTINCT - + col2 ) DIV + COUNT( * ) AS col1 FROM tab2
----
-19

skipif mysql # not compatible
query I rowsort label-2278
SELECT DISTINCT + MIN ( DISTINCT - + col2 ) / + COUNT ( * ) AS col1 FROM tab2
----
-19

query II rowsort
SELECT DISTINCT + col1 * + col2 + 47, col1 FROM tab1
----
1391
14
3243
47
342
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2280
SELECT + + col1 / + - CAST( NULL AS SIGNED ) - CAST( - col2 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2280
SELECT + + col1 / + - CAST ( NULL AS INTEGER ) - CAST ( - col2 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + - col1 * + 39 col0 FROM tab2 cor0
----
-2040
-2680
-3080

query I rowsort
SELECT ALL 33 FROM tab1, tab2 AS cor0
----
9 values hashing to 620d384286e82d1c6c8b1b2b109a7da5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2283
SELECT CAST( col2 AS SIGNED ) * col0 FROM tab0 AS cor0
----
705
870
9603

skipif mysql # not compatible
query I rowsort label-2283
SELECT CAST ( col2 AS INTEGER ) * col0 FROM tab0 AS cor0
----
705
870
9603

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2284
SELECT DISTINCT CAST( + 81 AS SIGNED ) * + COUNT( ALL ( + 80 ) ) AS col2 FROM tab1 AS cor0
----
243

skipif mysql # not compatible
query I rowsort label-2284
SELECT DISTINCT CAST ( + 81 AS INTEGER ) * + COUNT ( ALL ( + 80 ) ) AS col2 FROM tab1 AS cor0
----
243

query I rowsort
SELECT ALL + col2 FROM tab0 AS cor0 WHERE - 62 NOT IN ( + 11 * - ( - + 50 ) )
----
10
47
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2286
SELECT - CAST( NULL AS SIGNED ) / - col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2286
SELECT - CAST ( NULL AS INTEGER ) / - col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col0 * + col1 AS col1 FROM tab0 WHERE NOT + 63 >= col0
----
-1827
-97

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL = + 11 - ( + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2289
SELECT ALL - ( + COUNT( * ) ) col2 FROM tab0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2289
SELECT ALL - ( + COUNT ( * ) ) col2 FROM tab0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2290
SELECT 57 + + CAST( NULL AS SIGNED ) AS col2 FROM tab2 WHERE NOT - CAST( - col1 AS SIGNED ) IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2290
SELECT 57 + + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 WHERE NOT - CAST ( - col1 AS INTEGER ) IS NULL
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2291
SELECT + CAST( - ( + - col0 ) AS SIGNED ) col2 FROM tab1
----
51
85
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2291
SELECT + CAST ( - ( + - col0 ) AS INTEGER ) col2 FROM tab1
----
51
85
91

onlyif mysql # DIV for integer division: 
query I rowsort label-2292
SELECT ALL + 66 DIV ( col2 ) AS col1 FROM tab0
----
0
1
6

skipif mysql # not compatible
query I rowsort label-2292
SELECT ALL + 66 / ( col2 ) AS col1 FROM tab0
----
0
1
6

query I rowsort
SELECT ALL + col0 FROM tab2 WHERE - col1 * - + col1 * col2 - - - col0 / - col0 IS NULL
----

query I rowsort
SELECT col2 + + 95 FROM tab1 AS cor0
----
154
163
191

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2295
SELECT + MAX( - CAST( NULL AS SIGNED ) ) + - CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2295
SELECT + MAX ( - CAST ( NULL AS INTEGER ) ) + - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2296
SELECT ALL 25 + - col2 DIV - + 34 FROM tab1
----
26
27
27

skipif mysql # not compatible
query I rowsort label-2296
SELECT ALL 25 + - col2 / - + 34 FROM tab1
----
26
27
27

onlyif mysql # aggregate syntax: 
query I rowsort label-2297
SELECT ALL COUNT( * ) + 16 - 69 col0 FROM tab0 AS cor0
----
-50

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2297
SELECT ALL COUNT ( * ) + 16 - 69 col0 FROM tab0 AS cor0
----
-50

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col1 * - - col2 - col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col2 * - - col0 - + col2 FROM tab0 cor0
----
658
860
9504

onlyif mysql # aggregate syntax: 
query I rowsort label-2300
SELECT ( - + COUNT( DISTINCT - - col1 ) ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2300
SELECT ( - + COUNT ( DISTINCT - - col1 ) ) FROM tab0 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2301
SELECT ALL CAST( col0 AS SIGNED ) + + 52 FROM tab2 AS cor0
----
116
127
98

skipif mysql # not compatible
query I rowsort label-2301
SELECT ALL CAST ( col0 AS INTEGER ) + + 52 FROM tab2 AS cor0
----
116
127
98

query I rowsort
SELECT DISTINCT - 86 - - - 84 FROM tab0 AS cor0
----
-170

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2303
SELECT + 78 / CAST( col2 AS SIGNED ) FROM tab2 AS cor0 WHERE ( NULL ) <> NULL
----

skipif mysql # not compatible
query I rowsort label-2303
SELECT + 78 / CAST ( col2 AS INTEGER ) FROM tab2 AS cor0 WHERE ( NULL ) <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2304
SELECT DISTINCT + COUNT( DISTINCT + col0 ) * + + 33 * - COUNT( * ) FROM tab2
----
-297

skipif mysql # not compatible
query I rowsort label-2304
SELECT DISTINCT + COUNT ( DISTINCT + col0 ) * + + 33 * - COUNT ( * ) FROM tab2
----
-297

query I rowsort
SELECT ALL 64 * 53 + - + 11 + - 94 AS col1 FROM tab2
----
3287
3287
3287

query I rowsort
SELECT DISTINCT - col2 * - 75 - + col1 + col0 * 49 + - col0 FROM tab2
----
3882
5995
7883

query I rowsort
SELECT col0 + + col1 * 54 AS col2 FROM tab2
----
2800
3693
4222

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2308
SELECT col0 + - 8 + + CAST( + - ( + 74 ) AS SIGNED ) FROM tab0
----
-67
15
5

skipif mysql # not compatible
query I rowsort label-2308
SELECT col0 + - 8 + + CAST ( + - ( + 74 ) AS INTEGER ) FROM tab0
----
-67
15
5

query I rowsort
SELECT - col2 * 20 + - - col1 FROM tab0
----
-179
-1979
-859

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2310
SELECT DISTINCT 34 * - + 60 * + + 10 - + CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2310
SELECT DISTINCT 34 * - + 60 * + + 10 - + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT - - 89 FROM tab1 cor0
----
89

query I rowsort
SELECT ALL 1 * + - 23 FROM tab0 AS cor0
----
-23
-23
-23

query I rowsort
SELECT + col1 * - + col0 - + 92 + - + col2 * + 18 AS col0 FROM tab1 AS cor0 WHERE NOT ( + + col1 ) BETWEEN - 18 AND NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col1 BETWEEN - col1 AND - col0 * - + col2 - - 81
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2315
SELECT + - COUNT( * ) * + + COUNT( * ) + + - 89 AS col1 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
-170

skipif mysql # not compatible
query I rowsort label-2315
SELECT + - COUNT ( * ) * + + COUNT ( * ) + + - 89 AS col1 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
-170

onlyif mysql # aggregate syntax: 
query I rowsort label-2316
SELECT ALL - COUNT( ALL col0 ) AS col1 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-2316
SELECT ALL - COUNT ( ALL col0 ) AS col1 FROM tab1
----
-3

query I rowsort
SELECT + col2 * 23 AS col0 FROM tab2
----
1334
529
920

query I rowsort
SELECT ALL + - ( + + col1 ) AS col0 FROM tab2 AS cor0
----
-51
-67
-77

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col2 / - col0 <= + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2320
SELECT - - COUNT( * ) * - ( - 50 ) * + COUNT( * ) col0 FROM tab0 cor0
----
450

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2320
SELECT - - COUNT ( * ) * - ( - 50 ) * + COUNT ( * ) col0 FROM tab0 cor0
----
450

onlyif mysql # DIV for integer division: 
query I rowsort label-2321
SELECT DISTINCT - 73 DIV + 16 AS col2 FROM tab2 AS cor0
----
-4

skipif mysql # not compatible
query I rowsort label-2321
SELECT DISTINCT - 73 / + 16 AS col2 FROM tab2 AS cor0
----
-4

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN 25 AND + + col0 * - + col1 * + ( + col0 )
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( ( col1 IS NULL ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-2324
SELECT + MIN( ALL - + col0 ) AS col2, 37 FROM tab1
----
-91
37

skipif mysql # not compatible
query II rowsort label-2324
SELECT + MIN ( ALL - + col0 ) AS col2, 37 FROM tab1
----
-91
37

onlyif mysql # DIV for integer division: 
query II rowsort label-2325
SELECT col2 DIV + col2 AS col2, + ( + col2 ) - + - col2 AS col2 FROM tab0
----
1
198
1
20
1
94

skipif mysql # not compatible
query II rowsort label-2325
SELECT col2 / + col2 AS col2, + ( + col2 ) - + - col2 AS col2 FROM tab0
----
1
198
1
20
1
94

onlyif mysql # DIV for integer division: 
query I rowsort label-2326
SELECT DISTINCT 17 DIV - col0 AS col2 FROM tab0
----
-1
0

skipif mysql # not compatible
query I rowsort label-2326
SELECT DISTINCT 17 / - col0 AS col2 FROM tab0
----
-1
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2327
SELECT 63 * col2 DIV - col0 FROM tab0
----
-197
-64
-7

skipif mysql # not compatible
query I rowsort label-2327
SELECT 63 * col2 / - col0 FROM tab0
----
-197
-64
-7

query II rowsort
SELECT DISTINCT - ( - col1 ) AS col2, col0 FROM tab2
----
51
46
67
75
77
64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2329
SELECT - col0 / - CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2329
SELECT - col0 / - CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2330
SELECT DISTINCT + SUM( DISTINCT + col2 ) * + - COUNT( * ) FROM tab1
----
-669

skipif mysql # not compatible
query I rowsort label-2330
SELECT DISTINCT + SUM ( DISTINCT + col2 ) * + - COUNT ( * ) FROM tab1
----
-669

query I rowsort
SELECT ALL col0 + - col2 * col0 FROM tab1 AS cor0
----
-4845
-4930
-6097

query I rowsort
SELECT 28 * + 98 FROM tab1 cor0
----
2744
2744
2744

query I rowsort
SELECT 9 * + + col0 * 30 * - col0 AS col2 FROM tab2 AS cor0
----
-1105920
-1518750
-571320

query I rowsort
SELECT ALL 56 AS col0 FROM tab0 AS cor0 WHERE + col0 IS NOT NULL
----
56
56
56

onlyif mysql # aggregate syntax: 
query I rowsort label-2335
SELECT + COUNT( * ) + - 49 AS col1 FROM tab2
----
-46

skipif mysql # not compatible
query I rowsort label-2335
SELECT + COUNT ( * ) + - 49 AS col1 FROM tab2
----
-46

query II rowsort
SELECT DISTINCT - col1 AS col2, col0 * - 13 - - 53 FROM tab1 AS cor0
----
-14
-610
-47
-1130
-5
-1052

query I rowsort
SELECT - ( + 16 ) FROM tab1 AS cor0
----
-16
-16
-16

query I rowsort
SELECT DISTINCT col0 FROM tab2 WHERE NULL < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2339
SELECT ALL - COUNT( * ) * + 24 - - + 65 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-7

skipif mysql # not compatible
query I rowsort label-2339
SELECT ALL - COUNT ( * ) * + 24 - - + 65 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-7

query I rowsort
SELECT + 87 - + col2 + - col2 AS col1 FROM tab0
----
-111
-7
67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col0 - - col1 AS col2, col1 col2 FROM tab2
----
-8
67
13
77
5
51

query I rowsort
SELECT DISTINCT - - ( - + ( - col1 ) ) FROM tab0 WHERE NOT col0 >= + ( col2 ) + + col2 * - 91
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - 46 NOT IN ( + col2 - - - col2, + col0 * col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2344
SELECT ALL + - ( + CAST( - col1 AS SIGNED ) ) FROM tab2 AS cor0
----
51
67
77

skipif mysql # not compatible
query I rowsort label-2344
SELECT ALL + - ( + CAST ( - col1 AS INTEGER ) ) FROM tab2 AS cor0
----
51
67
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2345
SELECT ALL + CAST( NULL AS SIGNED ) / + COUNT( DISTINCT - 55 ) * + MIN( DISTINCT 0 ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2345
SELECT ALL + CAST ( NULL AS INTEGER ) / + COUNT ( DISTINCT - 55 ) * + MIN ( DISTINCT 0 ) FROM tab0 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2346
SELECT + 45 DIV + col2 FROM tab1 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2346
SELECT + 45 / + col2 FROM tab1 cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2347
SELECT ALL - COUNT( * ), + COUNT( * ) * - MIN( DISTINCT col1 ) FROM tab0 AS cor0
----
-3
-3

skipif mysql # not compatible
query II rowsort label-2347
SELECT ALL - COUNT ( * ), + COUNT ( * ) * - MIN ( DISTINCT col1 ) FROM tab0 AS cor0
----
-3
-3

query I rowsort
SELECT + ( + 44 ) FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to ab2bc2b9f8baa300df7755e5980a319d

query I rowsort
SELECT ALL 6 AS col0 FROM tab2 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2350
SELECT + CAST( 54 AS SIGNED ) * col0 FROM tab2
----
2484
3456
4050

skipif mysql # not compatible
query I rowsort label-2350
SELECT + CAST ( 54 AS INTEGER ) * col0 FROM tab2
----
2484
3456
4050

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2351
SELECT ALL * FROM tab1 AS cor0 WHERE NULL <> 33 * - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-2351
SELECT ALL * FROM tab1 AS cor0 WHERE NULL <> 33 * - CAST ( NULL AS INTEGER )
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT col0 + - - col2 BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT - ( - 13 ) * col0 FROM tab2 AS cor0
----
598
832
975

query II rowsort
SELECT 45 * - 79 AS col1, 25 FROM tab0 AS cor0
----
-3555
25
-3555
25
-3555
25

onlyif mysql # DIV for integer division: 
query I rowsort label-2355
SELECT ALL - - col2 DIV - 59 AS col1 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-2355
SELECT ALL - - col2 / - 59 AS col1 FROM tab1 AS cor0
----
-1
-1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2356
SELECT + - ( + COUNT( * ) ) * + 72 AS col0 FROM tab1 AS cor0
----
-216

skipif mysql # not compatible
query I rowsort label-2356
SELECT + - ( + COUNT ( * ) ) * + 72 AS col0 FROM tab1 AS cor0
----
-216

query I rowsort
SELECT + - 27 AS col0 FROM tab2 cor0
----
-27
-27
-27

query II rowsort
SELECT DISTINCT - 94 AS col1, - 55 FROM tab2
----
-94
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-2359
SELECT DISTINCT COUNT( - - 68 ) AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-2359
SELECT DISTINCT COUNT ( - - 68 ) AS col2 FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2360
SELECT ALL MAX( DISTINCT - + 76 ) col2 FROM tab0
----
-76

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2360
SELECT ALL MAX ( DISTINCT - + 76 ) col2 FROM tab0
----
-76

query I rowsort
SELECT + 32 + col0 * - + col0 AS col2 FROM tab0
----
-193
-7537
-9377

query I rowsort
SELECT ALL col0 * + 0 FROM tab2
----
0
0
0

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE - 92 * - - col2 <> 49 * - - col2 / - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-2364
SELECT DISTINCT - ( - 58 ) DIV - + col0 + - col2 FROM tab0 AS cor0
----
-10
-50
-99

skipif mysql # not compatible
query I rowsort label-2364
SELECT DISTINCT - ( - 58 ) / - + col0 + - col2 FROM tab0 AS cor0
----
-10
-50
-99

query I rowsort
SELECT + col2 + - col1 AS col0 FROM tab0 AS cor0 WHERE col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2366
SELECT DISTINCT + COUNT( * ) + MAX( DISTINCT 95 ) FROM tab2 AS cor0
----
98

skipif mysql # not compatible
query I rowsort label-2366
SELECT DISTINCT + COUNT ( * ) + MAX ( DISTINCT 95 ) FROM tab2 AS cor0
----
98

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) NOT IN ( col1 * - - 49, + col2 )
----

query III rowsort
SELECT * FROM tab2 WHERE ( NULL ) NOT IN ( 92 + - 10 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2369
SELECT COUNT( * ) DIV + 21 FROM tab2 WHERE ( NULL ) NOT IN ( col2 )
----
0

skipif mysql # not compatible
query I rowsort label-2369
SELECT COUNT ( * ) / + 21 FROM tab2 WHERE ( NULL ) NOT IN ( col2 )
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2370
SELECT DISTINCT + ( + col1 ) * - col2 AS col1 FROM tab2 WHERE NOT CAST( NULL AS DECIMAL ) NOT BETWEEN - col0 AND ( col1 / 37 )
----

skipif mysql # not compatible
query I rowsort label-2370
SELECT DISTINCT + ( + col1 ) * - col2 AS col1 FROM tab2 WHERE NOT CAST ( NULL AS REAL ) NOT BETWEEN - col0 AND ( col1 / 37 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2371
SELECT ALL + COUNT( ALL col0 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-2371
SELECT ALL + COUNT ( ALL col0 ) FROM tab1
----
3

query I rowsort
SELECT col2 * ( - col2 ) - col0 * + col0 AS col1 FROM tab2
----
-2645
-5696
-8989

onlyif mysql # DIV for integer division: 
query I rowsort label-2373
SELECT DISTINCT 45 DIV col0 + 23 AS col1 FROM tab2
----
23

skipif mysql # not compatible
query I rowsort label-2373
SELECT DISTINCT 45 / col0 + 23 AS col1 FROM tab2
----
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2374
SELECT ALL - 6 + CAST( + col0 AS SIGNED ) FROM tab1 WHERE ( 4 + ( + 35 ) ) < NULL
----

skipif mysql # not compatible
query I rowsort label-2374
SELECT ALL - 6 + CAST ( + col0 AS INTEGER ) FROM tab1 WHERE ( 4 + ( + 35 ) ) < NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2375
SELECT 3 DIV - col1 AS col0 FROM tab0
----
-3
0
0

skipif mysql # not compatible
query I rowsort label-2375
SELECT 3 / - col1 AS col0 FROM tab0
----
-3
0
0

query I rowsort
SELECT ALL + 67 + ( + 76 + 17 ) AS col2 FROM tab2 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL col0 * + 26 FROM tab1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col0 + + 89 * col2 AS col1 FROM tab2
----
2093
3624
5237

query I rowsort
SELECT col1 FROM tab2 WHERE ( NULL ) >= ( col2 * + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2380
SELECT + 98 + + COUNT( * ) AS col0 FROM tab0
----
101

skipif mysql # not compatible
query I rowsort label-2380
SELECT + 98 + + COUNT ( * ) AS col0 FROM tab0
----
101

query I rowsort
SELECT + ( - 45 ) + - col0 * 61 FROM tab0
----
-5352
-5962
-960

query I rowsort
SELECT - 32 * 50 AS col1 FROM tab2
----
-1600
-1600
-1600

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2383
SELECT - CAST( + col2 AS SIGNED ) + - col1 * col0 FROM tab2
----
-2369
-4968
-5083

skipif mysql # not compatible
query I rowsort label-2383
SELECT - CAST ( + col2 AS INTEGER ) + - col1 * col0 FROM tab2
----
-2369
-4968
-5083

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + col0 * col2 - col2 IS NOT NULL
----

query I rowsort
SELECT 22 FROM tab2 WHERE col2 NOT BETWEEN + col1 AND + col0
----
22
22
22

query I rowsort
SELECT col1 * 15 + col2 FROM tab2
----
1063
1195
788

onlyif mysql # aggregate syntax: 
query I rowsort label-2387
SELECT DISTINCT + ( ( COUNT( * ) ) ) AS col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2387
SELECT DISTINCT + ( ( COUNT ( * ) ) ) AS col0 FROM tab2 AS cor0
----
3

query I rowsort
SELECT - 67 + col2 AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 29 * - col1 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2390
SELECT DISTINCT + CAST( + col2 AS SIGNED ) FROM tab1 AS cor0 WHERE NOT + col2 - CAST( NULL AS SIGNED ) <= NULL
----

skipif mysql # not compatible
query I rowsort label-2390
SELECT DISTINCT + CAST ( + col2 AS INTEGER ) FROM tab1 AS cor0 WHERE NOT + col2 - CAST ( NULL AS INTEGER ) <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2391
SELECT CAST( + col1 AS SIGNED ) DIV 43 AS col2 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-2391
SELECT CAST ( + col1 AS INTEGER ) / 43 AS col2 FROM tab1
----
0
0
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 18 col2 FROM tab2 AS cor0 CROSS JOIN tab0
----
9 values hashing to 09afafec657a5e9f082beb6a16ec85de

onlyif mysql # aggregate syntax: 
query I rowsort label-2393
SELECT + COUNT( * ) AS col0 FROM tab2 WHERE NOT ( 95 + col2 * col1 ) NOT BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-2393
SELECT + COUNT ( * ) AS col0 FROM tab2 WHERE NOT ( 95 + col2 * col1 ) NOT BETWEEN NULL AND NULL
----
0

query I rowsort
SELECT - col1 FROM tab1 AS cor0 WHERE NOT NULL = ( + 47 + + 42 * col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL NOT IN ( - ( col0 ) )
----

query I rowsort
SELECT col2 AS col1 FROM tab0 AS cor0 WHERE NOT 86 NOT BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT ALL - ( - 73 ) * col0 + 79 * col1 FROM tab0 AS cor0
----
7160
7494
8010

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( ( 66 ) ) <> ( NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2399
SELECT - COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE NOT + CAST( col1 AS DECIMAL ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2399
SELECT - COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NOT + CAST ( col1 AS REAL ) IS NOT NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2400
SELECT - ( col1 ) * + col1 + - ( - col2 ) DIV CAST( - 56 AS SIGNED ) FROM tab2 AS cor0
----
-2601
-4490
-5929

skipif mysql # not compatible
query I rowsort label-2400
SELECT - ( col1 ) * + col1 + - ( - col2 ) / CAST ( - 56 AS INTEGER ) FROM tab2 AS cor0
----
-2601
-4490
-5929

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2401
SELECT DISTINCT CAST( + MAX( ALL - col0 ) AS SIGNED ) FROM tab2 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-2401
SELECT DISTINCT CAST ( + MAX ( ALL - col0 ) AS INTEGER ) FROM tab2 AS cor0
----
-46

query I rowsort
SELECT 64 + + 81 AS col2 FROM tab1
----
145
145
145

query I rowsort
SELECT ALL col2 * + 67 AS col2 FROM tab2
----
1541
2680
3886

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2404
SELECT ALL col0 AS col1 FROM tab2 WHERE NOT - col1 * CAST( + 17 * + 36 AS SIGNED ) NOT BETWEEN col1 AND NULL
----

skipif mysql # not compatible
query I rowsort label-2404
SELECT ALL col0 AS col1 FROM tab2 WHERE NOT - col1 * CAST ( + 17 * + 36 AS INTEGER ) NOT BETWEEN col1 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2405
SELECT + SUM( DISTINCT col0 ) * + 93 FROM tab0
----
18507

skipif mysql # not compatible
query I rowsort label-2405
SELECT + SUM ( DISTINCT col0 ) * + 93 FROM tab0
----
18507

onlyif mysql # aggregate syntax: 
query I rowsort label-2406
SELECT DISTINCT + COUNT( * ) * + ( COUNT( * ) ) AS col1 FROM tab1
----
9

skipif mysql # not compatible
query I rowsort label-2406
SELECT DISTINCT + COUNT ( * ) * + ( COUNT ( * ) ) AS col1 FROM tab1
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2407
SELECT * FROM tab2 WHERE NULL >= CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-2407
SELECT * FROM tab2 WHERE NULL >= CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT ALL col0 * + col1 * - col0 AS col0 FROM tab2
----
-107916
-315392
-376875

query I rowsort
SELECT ALL col2 * + 28 * col2 AS col1 FROM tab1
----
129472
258048
97468

query I rowsort
SELECT ALL - col2 FROM tab0 WHERE ( ( + 44 ) ) IS NOT NULL
----
-10
-47
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-2411
SELECT DISTINCT + 63 * - MIN( - col2 ) AS col1 FROM tab1
----
6048

skipif mysql # not compatible
query I rowsort label-2411
SELECT DISTINCT + 63 * - MIN ( - col2 ) AS col1 FROM tab1
----
6048

query I rowsort
SELECT DISTINCT - col2 * + col1 + + col0 FROM tab0
----
-123
-2
-3792

query I rowsort
SELECT ALL + ( + 16 ) * col2 FROM tab0
----
1584
160
752

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2414
SELECT DISTINCT COUNT( DISTINCT + + ( + 85 ) ) DIV + COUNT( * ) AS col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2414
SELECT DISTINCT COUNT ( DISTINCT + + ( + 85 ) ) / + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2415
SELECT + 21 + col1 * + CAST( + 86 / - 33 AS SIGNED ) AS col0 FROM tab1 AS cor0 WHERE ( CAST( 29 AS SIGNED ) * + col1 ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-2415
SELECT + 21 + col1 * + CAST ( + 86 / - 33 AS INTEGER ) AS col0 FROM tab1 AS cor0 WHERE ( CAST ( 29 AS INTEGER ) * + col1 ) IS NULL
----

query I rowsort
SELECT col0 * - col1 - 72 FROM tab2 AS cor0
----
-2418
-5000
-5097

onlyif mysql # aggregate syntax: 
query I rowsort label-2417
SELECT ALL - COUNT( * ) * 10 + 39 AS col1 FROM tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-2417
SELECT ALL - COUNT ( * ) * 10 + 39 AS col1 FROM tab0 AS cor0
----
9

query III rowsort
SELECT * FROM tab2 WHERE - col2 NOT IN ( 22 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + 87 AS col0 FROM tab2, tab0 AS cor0 WHERE NOT - 10 * + 55 IS NOT NULL
----

query I rowsort
SELECT DISTINCT col0 * - col0 + col2 FROM tab0 WHERE - + col0 <> ( NULL )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2421
SELECT DISTINCT COUNT( * ) DIV + 6 FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 )
----
1

skipif mysql # not compatible
query I rowsort label-2421
SELECT DISTINCT COUNT ( * ) / + 6 FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 )
----
1

query I rowsort
SELECT DISTINCT + + ( + ( + 10 ) ) FROM tab1 AS cor0
----
10

query I rowsort
SELECT DISTINCT - ( + 14 ) + col2 FROM tab2 cor0
----
26
44
9

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - 32 + col1 * + col1 < + col0 * col1
----
75
67
58

query I rowsort
SELECT ALL - - col1 + ( + + col0 ) FROM tab2 AS cor0
----
141
142
97

onlyif mysql # aggregate syntax: 
query II rowsort label-2426
SELECT - COUNT( * ) AS col0, COUNT( * ) * - - SUM( 12 ) FROM tab0 AS cor0
----
-3
108

skipif mysql # not compatible
query II rowsort label-2426
SELECT - COUNT ( * ) AS col0, COUNT ( * ) * - - SUM ( 12 ) FROM tab0 AS cor0
----
-3
108

query I rowsort
SELECT 45 * + - col1 FROM tab1 AS cor0
----
-2115
-225
-630

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2428
SELECT - MAX( ALL CAST( NULL AS SIGNED ) ) AS col0 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2428
SELECT - MAX ( ALL CAST ( NULL AS INTEGER ) ) AS col0 FROM tab2 cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2429
SELECT - col0 col0, 68 * CAST( col2 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-46
1564
-64
2720
-75
3944

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2429
SELECT - col0 col0, 68 * CAST ( col2 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-46
1564
-64
2720
-75
3944

query I rowsort
SELECT DISTINCT 36 * + 47 FROM tab0 AS cor0
----
1692

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2431
SELECT - - col1 / CAST( NULL AS SIGNED ) col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2431
SELECT - - col1 / CAST ( NULL AS INTEGER ) col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2432
SELECT DISTINCT + CAST( - 79 AS DECIMAL ) AS col2 FROM tab0 cor0 WHERE col2 + col2 < NULL
----

skipif mysql # not compatible
query I rowsort label-2432
SELECT DISTINCT + CAST ( - 79 AS REAL ) AS col2 FROM tab0 cor0 WHERE col2 + col2 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2433
SELECT ALL - 91 * + COUNT( * ) AS col1 FROM tab0 AS cor0
----
-273

skipif mysql # not compatible
query I rowsort label-2433
SELECT ALL - 91 * + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-273

onlyif mysql # DIV for integer division: 
query I rowsort label-2434
SELECT ALL + 12 + + col0 DIV col0 col1 FROM tab2 AS cor0 WHERE 71 IS NOT NULL
----
13
13
13

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2434
SELECT ALL + 12 + + col0 / col0 col1 FROM tab2 AS cor0 WHERE 71 IS NOT NULL
----
13
13
13

onlyif mysql # aggregate syntax: 
query I rowsort label-2435
SELECT DISTINCT - COUNT( * ) * MIN( ALL - col0 ) AS col1 FROM tab2
----
225

skipif mysql # not compatible
query I rowsort label-2435
SELECT DISTINCT - COUNT ( * ) * MIN ( ALL - col0 ) AS col1 FROM tab2
----
225

query I rowsort
SELECT 59 FROM tab0 WHERE NOT ( NULL ) BETWEEN ( col2 * - col0 ) AND + col0
----

query I rowsort
SELECT 78 * col0 FROM tab2 WHERE NOT - col2 * - col1 BETWEEN ( col2 / 82 ) AND NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NOT ( NULL ) <= NULL )
----

query I rowsort
SELECT DISTINCT - 93 AS col1 FROM tab0 AS cor0 WHERE NOT 28 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2440
SELECT ALL COUNT( * ) + + 89 FROM tab2 AS cor0
----
92

skipif mysql # not compatible
query I rowsort label-2440
SELECT ALL COUNT ( * ) + + 89 FROM tab2 AS cor0
----
92

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2441
SELECT * FROM tab1 AS cor0 WHERE NOT col2 * - CAST( col0 AS SIGNED ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-2441
SELECT * FROM tab1 AS cor0 WHERE NOT col2 * - CAST ( col0 AS INTEGER ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2442
SELECT DISTINCT - - CAST( - col0 AS SIGNED ) col0 FROM tab0 AS cor0
----
-15
-87
-97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2442
SELECT DISTINCT - - CAST ( - col0 AS INTEGER ) col0 FROM tab0 AS cor0
----
-15
-87
-97

query I rowsort
SELECT + + ( - 37 ) AS col2 FROM tab2 AS cor0
----
-37
-37
-37

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - ( 15 ) = + - col0
----

query I rowsort
SELECT ( - + 42 ) * - 36 AS col2 FROM tab1 AS cor0
----
1512
1512
1512

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NULL > ( - 64 )
----

query I rowsort
SELECT DISTINCT + col1 * - col2 * 29 AS col2 FROM tab0 AS cor0 WHERE col2 IN ( 92 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( col0 ) > NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2449
SELECT ALL + CAST( NULL AS SIGNED ) * - COUNT( * ) + + 88 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2449
SELECT ALL + CAST ( NULL AS INTEGER ) * - COUNT ( * ) + + 88 FROM tab1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 97 * col2 col0, col1 FROM tab2
----
2231
51
3880
77
5626
67

query I rowsort
SELECT + 64 FROM tab2 WHERE - 46 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2452
SELECT ( CAST( col0 AS SIGNED ) ) * CAST( NULL AS SIGNED ) + - 92 col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2452
SELECT ( CAST ( col0 AS INTEGER ) ) * CAST ( NULL AS INTEGER ) + - 92 col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2453
SELECT DISTINCT COUNT( * ) * + + COUNT( + col1 ) AS col2 FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-2453
SELECT DISTINCT COUNT ( * ) * + + COUNT ( + col1 ) AS col2 FROM tab2
----
9

query I rowsort
SELECT ALL 73 + - col2 AS col2 FROM tab0
----
-26
26
63

query I rowsort
SELECT 69 * + - col1 AS col2 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2456
SELECT ALL - MAX( + - 29 ) AS col0 FROM tab0 cor0 WHERE NULL NOT BETWEEN 30 + + 32 AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2456
SELECT ALL - MAX ( + - 29 ) AS col0 FROM tab0 cor0 WHERE NULL NOT BETWEEN 30 + + 32 AND NULL
----
NULL

query I rowsort
SELECT ALL + + 66 + col0 * + + 78 AS col2 FROM tab0 AS cor0
----
1236
6852
7632

query I rowsort
SELECT DISTINCT + ( + + col0 ) + + ( col2 ) AS col1 FROM tab2 AS cor0
----
104
133
69

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2459
SELECT 23 DIV - ( - COUNT( * ) ) col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2459
SELECT 23 / - ( - COUNT ( * ) ) col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2460
SELECT col2 - + CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2460
SELECT col2 - + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2461
SELECT 68 - MIN( ALL - - CAST( NULL AS SIGNED ) ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2461
SELECT 68 - MIN ( ALL - - CAST ( NULL AS INTEGER ) ) FROM tab0
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2462
SELECT * FROM tab0 WHERE CAST( NULL AS DECIMAL ) / + col0 + 68 / + 15 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-2462
SELECT * FROM tab0 WHERE CAST ( NULL AS REAL ) / + col0 + 68 / + 15 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + col0 * - col2 - + ( + 32 ) FROM tab2
----
-1090
-2592
-4382

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT 70 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2465
SELECT ALL SUM( + col1 ) FROM tab0 AS cor0 WHERE NULL NOT IN ( 70 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2465
SELECT ALL SUM ( + col1 ) FROM tab0 AS cor0 WHERE NULL NOT IN ( 70 )
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col0 + - col0 + - + col1 >= ( 91 + - col1 * + + col0 )
----

query I rowsort
SELECT DISTINCT - col2 * - col2 - - + col0 * 51 AS col2 FROM tab2 AS cor0
----
2875
4864
7189

query I rowsort
SELECT ALL + - col1 * - col0 AS col1 FROM tab1 AS cor0
----
425
4277
714

onlyif mysql # DIV for integer division: 
query I rowsort label-2469
SELECT DISTINCT - col1 DIV - col0 * 95 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2469
SELECT DISTINCT - col1 / - col0 * 95 FROM tab1 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2470
SELECT ALL 50 FROM tab0 WHERE CAST( - - col0 AS SIGNED ) - + col1 NOT BETWEEN - col2 AND + 61 OR NOT - 65 - col2 NOT BETWEEN NULL AND - col1 * - col0
----
50
50
50

skipif mysql # not compatible
query I rowsort label-2470
SELECT ALL 50 FROM tab0 WHERE CAST ( - - col0 AS INTEGER ) - + col1 NOT BETWEEN - col2 AND + 61 OR NOT - 65 - col2 NOT BETWEEN NULL AND - col1 * - col0
----
50
50
50

onlyif mysql # aggregate syntax: 
query I rowsort label-2471
SELECT - SUM( + - 59 ) AS col2 FROM tab0
----
177

skipif mysql # not compatible
query I rowsort label-2471
SELECT - SUM ( + - 59 ) AS col2 FROM tab0
----
177

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - 72 - - col1 NOT BETWEEN + col0 AND - - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT - col2, 21 AS col2 FROM tab1 WHERE NOT + col0 IS NOT NULL
----

query II rowsort
SELECT DISTINCT - ( + + ( - 19 ) ) AS col2, col0 FROM tab0
----
19
15
19
87
19
97

query I rowsort
SELECT - 25 * - col1 AS col1 FROM tab1
----
1175
125
350

query I rowsort
SELECT col0 * 52 * - col1 AS col0 FROM tab1
----
-22100
-222404
-37128

query I rowsort
SELECT DISTINCT ( - ( + - 10 ) ) * - col0 * + - ( col0 ) FROM tab2 AS cor0
----
21160
40960
56250

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col0 + - 7 + + col0 * + col0 + 60 NOT IN ( ( + + 22 ) )
----

query I rowsort
SELECT ALL + + 73 AS col0 FROM tab1 AS cor0
----
73
73
73

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 1 * + - 41 col1 FROM tab2 AS cor0
----
-41

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NOT + ( + + col0 ) IS NOT NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 WHERE NOT ( + 42 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NOT + 12 + + col2 IS NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2484
SELECT ALL col1 + + - col1 DIV + 76 col2 FROM tab0 AS cor0
----
1
21
80

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2484
SELECT ALL col1 + + - col1 / + 76 col2 FROM tab0 AS cor0
----
1
21
80

onlyif mysql # aggregate syntax: 
query I rowsort label-2485
SELECT ALL COUNT( * ) + + - 15 AS col0 FROM tab2 AS cor0
----
-12

skipif mysql # not compatible
query I rowsort label-2485
SELECT ALL COUNT ( * ) + + - 15 AS col0 FROM tab2 AS cor0
----
-12

query I rowsort
SELECT DISTINCT - col1 + 40 AS col1 FROM tab1 AS cor0
----
-7
26
35

onlyif mysql # aggregate syntax: 
query I rowsort label-2487
SELECT MAX( ( + 22 ) ) col0 FROM tab0 AS cor0
----
22

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2487
SELECT MAX ( ( + 22 ) ) col0 FROM tab0 AS cor0
----
22

query I rowsort
SELECT ALL - - col0 + 79 + - col1 * - col1 - + - col1 FROM tab0 AS cor0
----
178
628
6736

query II rowsort
SELECT - 56 AS col0, col2 AS col2 FROM tab0
----
-56
10
-56
47
-56
99

query I rowsort
SELECT DISTINCT + col0 * - - 55 AS col2 FROM tab0
----
4785
5335
825

onlyif mysql # aggregate syntax: 
query I rowsort label-2491
SELECT DISTINCT + SUM( ALL + col2 ) AS col0 FROM tab2
----
121

skipif mysql # not compatible
query I rowsort label-2491
SELECT DISTINCT + SUM ( ALL + col2 ) AS col0 FROM tab2
----
121

query I rowsort
SELECT DISTINCT + 69 + - ( + col2 ) FROM tab2
----
11
29
46

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( + 32 + + ( - 79 ) * + 22 + ( + col2 ) ) < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2494
SELECT DISTINCT - SUM( + + col1 ) AS col1 FROM tab1
----
-66

skipif mysql # not compatible
query I rowsort label-2494
SELECT DISTINCT - SUM ( + + col1 ) AS col1 FROM tab1
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-2495
SELECT DISTINCT MIN( DISTINCT - + 89 ) FROM tab0
----
-89

skipif mysql # not compatible
query I rowsort label-2495
SELECT DISTINCT MIN ( DISTINCT - + 89 ) FROM tab0
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-2496
SELECT ALL + MIN( + 45 ) AS col0 FROM tab0
----
45

skipif mysql # not compatible
query I rowsort label-2496
SELECT ALL + MIN ( + 45 ) AS col0 FROM tab0
----
45

query I rowsort
SELECT ALL 93 * - col0 / ( + 8 ) FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN col1 * + col1 AND ( - + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2498
SELECT COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE - col2 >= - col1
----
0

skipif mysql # not compatible
query I rowsort label-2498
SELECT COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE - col2 >= - col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2499
SELECT + COUNT( * ) + + 72 FROM tab1 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-2499
SELECT + COUNT ( * ) + + 72 FROM tab1 AS cor0
----
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 96 + + col0 col1 FROM tab0 AS cor0
----
-81
-9
1

query I rowsort
SELECT ALL col2 + + - col0 AS col0 FROM tab1 AS cor0
----
-23
-26
45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2502
SELECT - 60 + CAST( COUNT( * ) AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-57

skipif mysql # not compatible
query I rowsort label-2502
SELECT - 60 + CAST ( COUNT ( * ) AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-57

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2503
SELECT DISTINCT + + 6 AS col0, + CAST( 80 AS SIGNED ) + - 53 col1 FROM tab0 AS cor0
----
6
27

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2503
SELECT DISTINCT + + 6 AS col0, + CAST ( 80 AS INTEGER ) + - 53 col1 FROM tab0 AS cor0
----
6
27

onlyif mysql # aggregate syntax: 
query I rowsort label-2504
SELECT DISTINCT + MAX( col2 ) FROM tab2 cor0 WHERE 69 * - 14 > ( NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-2504
SELECT DISTINCT + MAX ( col2 ) FROM tab2 cor0 WHERE 69 * - 14 > ( NULL )
----
NULL

query I rowsort
SELECT DISTINCT - 5 * - 99 * - 54 AS col0 FROM tab1 AS cor0
----
-26730

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1, - 58 col2 FROM tab1 cor0
----
14
-58
47
-58
5
-58

query I rowsort
SELECT DISTINCT + - col1 + - col1 * col2 FROM tab0 AS cor0 WHERE NOT col1 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2508
SELECT - - CAST( NULL AS SIGNED ) * + col2 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2508
SELECT - - CAST ( NULL AS INTEGER ) * + col2 FROM tab0 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2509
SELECT DISTINCT ( - COUNT( * ) ) + + + 28 FROM tab0 AS cor0 WHERE ( NULL ) NOT IN ( - col1, - 91 * col0 )
----
28

skipif mysql # not compatible
query I rowsort label-2509
SELECT DISTINCT ( - COUNT ( * ) ) + + + 28 FROM tab0 AS cor0 WHERE ( NULL ) NOT IN ( - col1, - 91 * col0 )
----
28

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2510
SELECT - 1 DIV + + SUM( - 78 ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2510
SELECT - 1 / + + SUM ( - 78 ) FROM tab0 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2511
SELECT DISTINCT col2 DIV + col2 - + col1 FROM tab2 AS cor0
----
-50
-66
-76

skipif mysql # not compatible
query I rowsort label-2511
SELECT DISTINCT col2 / + col2 - + col1 FROM tab2 AS cor0
----
-50
-66
-76

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL NOT BETWEEN + 5 AND + + 25 + col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 + col2 col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-28
-37
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-2514
SELECT ALL ( - + SUM( - - ( 49 ) ) ) FROM tab0 WHERE NULL <= + 53
----
NULL

skipif mysql # not compatible
query I rowsort label-2514
SELECT ALL ( - + SUM ( - - ( 49 ) ) ) FROM tab0 WHERE NULL <= + 53
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2515
SELECT DISTINCT ( + COUNT( DISTINCT col0 ) ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-2515
SELECT DISTINCT ( + COUNT ( DISTINCT col0 ) ) FROM tab0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2516
SELECT * FROM tab1 WHERE NOT ( NOT - col1 <= CAST( + col2 AS SIGNED ) + + 45 + col1 - - 98 / - col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-2516
SELECT * FROM tab1 WHERE NOT ( NOT - col1 <= CAST ( + col2 AS INTEGER ) + + 45 + col1 - - 98 / - col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - 65 FROM tab0 WHERE NOT - + col0 IS NULL
----
-65
-65
-65

onlyif mysql # aggregate syntax: 
query II rowsort label-2518
SELECT ALL ( - COUNT( * ) ) AS col1, SUM( ALL - ( col2 ) ) col2 FROM tab2
----
-3
-121

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2518
SELECT ALL ( - COUNT ( * ) ) AS col1, SUM ( ALL - ( col2 ) ) col2 FROM tab2
----
-3
-121

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + - 13 col2 FROM tab2 AS cor0
----
33
51
62

query I rowsort
SELECT ALL + col0 + + 49 AS col1 FROM tab1 AS cor0
----
100
134
140

query II rowsort
SELECT DISTINCT 16 AS col1, col2 * + ( - col2 ) FROM tab0
----
16
-100
16
-2209
16
-9801

onlyif mysql # aggregate syntax: 
query I rowsort label-2522
SELECT MAX( + 41 ) AS col1 FROM tab0
----
41

skipif mysql # not compatible
query I rowsort label-2522
SELECT MAX ( + 41 ) AS col1 FROM tab0
----
41

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * - col2 col1 FROM tab2 AS cor0
----
-1058
-2560
-4350

query I rowsort
SELECT 43 - + 42 AS col0 FROM tab0 AS cor0
----
1
1
1

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 23 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 WHERE NULL IN ( - col0 * - 79 * col0 )
----

query I rowsort
SELECT ALL + col1 AS col1 FROM tab0 WHERE ( + - 78 ) IS NOT NULL
----
1
21
81

query I rowsort
SELECT ALL 80 - + 25 FROM tab0
----
55
55
55

onlyif mysql # aggregate syntax: 
query II rowsort label-2529
SELECT + 47 + - - COUNT( * ) col2, COUNT( * ) FROM tab2
----
50
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2529
SELECT + 47 + - - COUNT ( * ) col2, COUNT ( * ) FROM tab2
----
50
3

query I rowsort
SELECT ALL - col2 + 2 FROM tab2 WHERE NOT NULL <> - ( col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2531
SELECT - SUM( ALL 91 ) + + 32 col0 FROM tab1
----
-241

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2531
SELECT - SUM ( ALL 91 ) + + 32 col0 FROM tab1
----
-241

query I rowsort
SELECT + 78 + 90 + - col0 FROM tab0
----
153
71
81

onlyif mysql # aggregate syntax: 
query II rowsort label-2533
SELECT 73 + 6, - ( + COUNT( * ) ) col0 FROM tab2
----
79
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2533
SELECT 73 + 6, - ( + COUNT ( * ) ) col0 FROM tab2
----
79
-3

query I rowsort
SELECT 85 * + col2 * - + col0 AS col2 FROM tab2 AS cor0
----
-217600
-369750
-89930

query I rowsort
SELECT ALL - + col0 * + - col2 FROM tab2 AS cor0
----
1058
2560
4350

query I rowsort
SELECT + col2 * 46 FROM tab2 AS cor0
----
1058
1840
2668

query III rowsort
SELECT * FROM tab1 cor0 WHERE ( col1 * 79 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2538
SELECT ALL + + CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-2538
SELECT ALL + + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # aggregate syntax: 
query I rowsort label-2539
SELECT DISTINCT - COUNT( DISTINCT + col1 ) AS col1 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-2539
SELECT DISTINCT - COUNT ( DISTINCT + col1 ) AS col1 FROM tab1
----
-3

onlyif mysql # DIV for integer division: 
query II rowsort label-2540
SELECT ALL - 41 * 10 * + 63 * - + col2 * - + col0 AS col2, 52 DIV 40 AS col1 FROM tab2
----
-112360500
1
-27328140
1
-66124800
1

skipif mysql # not compatible
query II rowsort label-2540
SELECT ALL - 41 * 10 * + 63 * - + col2 * - + col0 AS col2, 52 / 40 AS col1 FROM tab2
----
-112360500
1
-27328140
1
-66124800
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2541
SELECT ( + SUM( ALL - col1 ) ) AS col1 FROM tab0
----
-103

skipif mysql # not compatible
query I rowsort label-2541
SELECT ( + SUM ( ALL - col1 ) ) AS col1 FROM tab0
----
-103

onlyif mysql # aggregate syntax: 
query I rowsort label-2542
SELECT + 88 + COUNT( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
97

skipif mysql # not compatible
query I rowsort label-2542
SELECT + 88 + COUNT ( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-2543
SELECT DISTINCT - + MAX( DISTINCT - + col1 ) AS col0 FROM tab2 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-2543
SELECT DISTINCT - + MAX ( DISTINCT - + col1 ) AS col0 FROM tab2 AS cor0
----
51

onlyif mysql # DIV for integer division: 
query II rowsort label-2544
SELECT 30 AS col2, + col2 DIV - col0 FROM tab2 cor0
----
30
0
30
0
30
0

skipif mysql # not compatible
query II rowsort label-2544
SELECT 30 AS col2, + col2 / - col0 FROM tab2 cor0
----
30
0
30
0
30
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2545
SELECT DISTINCT - - MIN( - - col1 ) * COUNT( + + col1 ) + COUNT( * ) FROM tab2 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-2545
SELECT DISTINCT - - MIN ( - - col1 ) * COUNT ( + + col1 ) + COUNT ( * ) FROM tab2 AS cor0
----
156

query I rowsort
SELECT DISTINCT - + col1 * - - col2 FROM tab1 AS cor0 WHERE NOT - col1 IS NULL
----
-1344
-295
-3196

query I rowsort
SELECT - 70 * col2 FROM tab1 cor0
----
-4130
-4760
-6720

query I rowsort
SELECT + 52 * - + col2 FROM tab1
----
-3068
-3536
-4992

onlyif mysql # aggregate syntax: 
query I rowsort label-2549
SELECT ALL + MIN( DISTINCT - col2 ) AS col1 FROM tab0
----
-99

skipif mysql # not compatible
query I rowsort label-2549
SELECT ALL + MIN ( DISTINCT - col2 ) AS col1 FROM tab0
----
-99

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - 67 NOT BETWEEN col2 AND + - col0 * ( - col1 ) + - col2 + col1 * + col2 / col1 * + 86
----

onlyif mysql # DIV for integer division: 
query II rowsort label-2551
SELECT - col2 AS col2, 60 DIV - - 80 AS col2 FROM tab1
----
-59
0
-68
0
-96
0

skipif mysql # not compatible
query II rowsort label-2551
SELECT - col2 AS col2, 60 / - - 80 AS col2 FROM tab1
----
-59
0
-68
0
-96
0

query II rowsort
SELECT ALL - - 74, col0 FROM tab1 WHERE NOT - - col0 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 46 col2 FROM tab1
----
-46
-46
-46

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2554
SELECT col0, - CAST( NULL AS SIGNED ) col1 FROM tab2
----
46
NULL
64
NULL
75
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2554
SELECT col0, - CAST ( NULL AS INTEGER ) col1 FROM tab2
----
46
NULL
64
NULL
75
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2555
SELECT MAX( DISTINCT - + 11 ) AS col1 FROM tab0
----
-11

skipif mysql # not compatible
query I rowsort label-2555
SELECT MAX ( DISTINCT - + 11 ) AS col1 FROM tab0
----
-11

query I rowsort
SELECT DISTINCT + 19 * - col1 * - col0 AS col2 FROM tab0
----
1843
23085
34713

query II rowsort
SELECT 90, - col0 AS col2 FROM tab2 AS cor0
----
90
-46
90
-64
90
-75

query I rowsort
SELECT ALL - 51 * - 65 + col2 AS col2 FROM tab0 cor0
----
3325
3362
3414

onlyif mysql # aggregate syntax: 
query I rowsort label-2559
SELECT ALL MAX( DISTINCT + - col0 ) AS col0 FROM tab0 WHERE NOT col2 BETWEEN + 72 * + col2 * - col1 AND + col1 + - - ( - - col0 ) - - 13 OR - col0 <> NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2559
SELECT ALL MAX ( DISTINCT + - col0 ) AS col0 FROM tab0 WHERE NOT col2 BETWEEN + 72 * + col2 * - col1 AND + col1 + - - ( - - col0 ) - - 13 OR - col0 <> NULL
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2560
SELECT DISTINCT CAST( NULL AS SIGNED ) * + + SUM( ALL 68 ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2560
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + + SUM ( ALL 68 ) FROM tab2
----
NULL

query I rowsort
SELECT + 84 + + 11 FROM tab0
----
95
95
95

onlyif mysql # aggregate syntax: 
query I rowsort label-2562
SELECT ALL 90 * - MAX( ( + col1 ) ) FROM tab1
----
-4230

skipif mysql # not compatible
query I rowsort label-2562
SELECT ALL 90 * - MAX ( ( + col1 ) ) FROM tab1
----
-4230

query I rowsort
SELECT DISTINCT col1 * - ( - - col2 ) AS col1 FROM tab0 cor0
----
-210
-3807
-99

query I rowsort
SELECT col2 AS col1 FROM tab2 cor0 WHERE NULL <= ( 67 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2565
SELECT ALL + + COUNT( * ) FROM tab2 AS cor0 WHERE NOT + 36 >= + - col1
----
0

skipif mysql # not compatible
query I rowsort label-2565
SELECT ALL + + COUNT ( * ) FROM tab2 AS cor0 WHERE NOT + 36 >= + - col1
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - - col1 ) + + - 46 * + + col0 col1 FROM tab1 AS cor0
----
-2332
-3905
-4139

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE - col0 + 30 IS NULL
----

query I rowsort
SELECT ALL - + col0 - + col0 FROM tab2 AS cor0
----
-128
-150
-92

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col2 + + + 30 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT + col0 AS col1, + col2 * - col0 FROM tab2
----
46
-1058
64
-2560
75
-4350

query II rowsort
SELECT DISTINCT + 61 AS col0, 40 * - + col2 AS col2 FROM tab0
----
61
-1880
61
-3960
61
-400

query I rowsort
SELECT col1 * - - col0 * col2 AS col1 FROM tab0 cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL - 20 + - col0 AS col1 FROM tab0 AS cor0
----
-107
-117
-35

query I rowsort
SELECT + - 65 * + col0 FROM tab1 AS cor0
----
-3315
-5525
-5915

onlyif mysql # aggregate syntax: 
query I rowsort label-2575
SELECT COUNT( * ) * 52 FROM tab0 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-2575
SELECT COUNT ( * ) * 52 FROM tab0 AS cor0
----
156

query II rowsort
SELECT ALL ( - 4 ), ( col2 ) AS col1 FROM tab1
----
-4
59
-4
68
-4
96

onlyif mysql # aggregate syntax: 
query I rowsort label-2577
SELECT DISTINCT - ( - MIN( - 94 ) ) AS col1 FROM tab2 cor0
----
-94

skipif mysql # not compatible
query I rowsort label-2577
SELECT DISTINCT - ( - MIN ( - 94 ) ) AS col1 FROM tab2 cor0
----
-94

onlyif mysql # aggregate syntax: 
query II rowsort label-2578
SELECT ALL - + 98 * - COUNT( * ) col1, 77 AS col0 FROM tab2 AS cor0
----
294
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2578
SELECT ALL - + 98 * - COUNT ( * ) col1, 77 AS col0 FROM tab2 AS cor0
----
294
77

onlyif mysql # aggregate syntax: 
query I rowsort label-2579
SELECT ALL + - ( + - SUM( DISTINCT - col1 ) ) AS col2 FROM tab1 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-2579
SELECT ALL + - ( + - SUM ( DISTINCT - col1 ) ) AS col2 FROM tab1 AS cor0
----
-66

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col2 * - 84 * + + col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query II rowsort label-2581
SELECT - COUNT( DISTINCT - 58 ) AS col1, - 48 - - - 33 AS col1 FROM tab1 AS cor0
----
-1
-81

skipif mysql # not compatible
query II rowsort label-2581
SELECT - COUNT ( DISTINCT - 58 ) AS col1, - 48 - - - 33 AS col1 FROM tab1 AS cor0
----
-1
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-2582
SELECT MAX( ALL col1 ) * - + 72 AS col0 FROM tab0 AS cor0
----
-5832

skipif mysql # not compatible
query I rowsort label-2582
SELECT MAX ( ALL col1 ) * - + 72 AS col0 FROM tab0 AS cor0
----
-5832

onlyif mysql # aggregate syntax: 
query I rowsort label-2583
SELECT ALL SUM( DISTINCT - - ( - + 71 ) ) FROM tab1
----
-71

skipif mysql # not compatible
query I rowsort label-2583
SELECT ALL SUM ( DISTINCT - - ( - + 71 ) ) FROM tab1
----
-71

query III rowsort
SELECT * FROM tab2 WHERE NOT + 82 * - 80 * + - col2 NOT BETWEEN - + col1 * - 96 AND + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2585
SELECT col2 * CAST( NULL AS SIGNED ) + - 92 FROM tab1 WHERE NOT NULL BETWEEN ( + - col1 / col2 ) AND - col1 + - - 21
----

skipif mysql # not compatible
query I rowsort label-2585
SELECT col2 * CAST ( NULL AS INTEGER ) + - 92 FROM tab1 WHERE NOT NULL BETWEEN ( + - col1 / col2 ) AND - col1 + - - 21
----

query I rowsort
SELECT + 62 + - - col0 * - - col2 * - + col1 FROM tab0
----
-18208
-57043
-9541

query I rowsort
SELECT DISTINCT + - col1 * 45 + + - col2 FROM tab0 AS cor0
----
-144
-3692
-955

query I rowsort
SELECT DISTINCT 63 * col0 + + + col2 + - - 21 AS col2 FROM tab1 AS cor0
----
3330
5435
5822

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 27 * col2 * col2 + - + col1 col0 FROM tab2 WHERE ( + col1 <> + + col0 )
----
-14334
-43277
-90895

onlyif mysql # aggregate syntax: 
query I rowsort label-2590
SELECT + + COUNT( * ) FROM tab1 cor0 CROSS JOIN tab0 cor1
----
9

skipif mysql # not compatible
query I rowsort label-2590
SELECT + + COUNT ( * ) FROM tab1 cor0 CROSS JOIN tab0 cor1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-2591
SELECT - + COUNT( * ) * - COUNT( * ) FROM tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-2591
SELECT - + COUNT ( * ) * - COUNT ( * ) FROM tab1 AS cor0
----
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - + col1 - ( - col0 ) + + col2 * + col0 + - 49 + + 3 AS col0, + 20 * - 12 * - 93 col1 FROM tab1 AS cor0
----
4887
22320
5049
22320
6186
22320

query II rowsort
SELECT ALL + + col1, - 49 FROM tab0 AS cor0
----
1
-49
21
-49
81
-49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2594
SELECT - col2 + CAST( - ( + col0 ) AS SIGNED ) * + col0 FROM tab0 AS cor0
----
-272
-7579
-9508

skipif mysql # not compatible
query I rowsort label-2594
SELECT - col2 + CAST ( - ( + col0 ) AS INTEGER ) * + col0 FROM tab0 AS cor0
----
-272
-7579
-9508

onlyif mysql # DIV for integer division: 
query I rowsort label-2595
SELECT ALL + + col2 DIV col2 * + col1 + + - 55 + + + 6 * + 4 * - col0 FROM tab2 AS cor0
----
-1108
-1514
-1788

skipif mysql # not compatible
query I rowsort label-2595
SELECT ALL + + col2 / col2 * + col1 + + - 55 + + + 6 * + 4 * - col0 FROM tab2 AS cor0
----
-1108
-1514
-1788

query I rowsort
SELECT DISTINCT + ( - col2 ) + + col1 + + col0 AS col0 FROM tab0
----
-1
49
98

query I rowsort
SELECT ALL col0 - - + col1 FROM tab2
----
141
142
97

query II rowsort
SELECT ALL + 25 - - + 25, col0 AS col2 FROM tab1
----
50
51
50
85
50
91

onlyif mysql # aggregate syntax: 
query I rowsort label-2599
SELECT DISTINCT 86 - + 66 * COUNT( * ) FROM tab2
----
-112

skipif mysql # not compatible
query I rowsort label-2599
SELECT DISTINCT 86 - + 66 * COUNT ( * ) FROM tab2
----
-112

onlyif mysql # aggregate syntax: 
query I rowsort label-2600
SELECT DISTINCT + SUM( ALL - + 20 ) AS col0 FROM tab0
----
-60

skipif mysql # not compatible
query I rowsort label-2600
SELECT DISTINCT + SUM ( ALL - + 20 ) AS col0 FROM tab0
----
-60

query I rowsort
SELECT + col2 * + 69 AS col1 FROM tab1
----
4071
4692
6624

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2602
SELECT DISTINCT - 56 DIV - COUNT( * ) AS col2 FROM tab0
----
18

skipif mysql # not compatible
query I rowsort label-2602
SELECT DISTINCT - 56 / - COUNT ( * ) AS col2 FROM tab0
----
18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2603
SELECT 7 AS col2 FROM tab1 AS cor0 WHERE NOT + CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) NOT BETWEEN NULL AND ( NULL )
----

skipif mysql # not compatible
query I rowsort label-2603
SELECT 7 AS col2 FROM tab1 AS cor0 WHERE NOT + CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) NOT BETWEEN NULL AND ( NULL )
----

query II rowsort
SELECT DISTINCT 23, - ( + col0 ) AS col1 FROM tab0
----
23
-15
23
-87
23
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2605
SELECT DISTINCT + CAST( NULL AS SIGNED ) AS col0 FROM tab1 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-2605
SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT + ( + 57 ) FROM tab2 WHERE NOT - - 69 * col1 + + - col0 * - 15 IS NULL
----
57
57
57

query II rowsort
SELECT col2 AS col1, + col0 * 34 * + 88 FROM tab0
----
10
260304
47
44880
99
290224

query II rowsort
SELECT - col0, col1 FROM tab0
----
-15
81
-87
21
-97
1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2609
SELECT + CAST( NULL AS DECIMAL ) col1 FROM tab2 AS cor0 WHERE NOT + col0 * - col0 IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2609
SELECT + CAST ( NULL AS REAL ) col1 FROM tab2 AS cor0 WHERE NOT + col0 * - col0 IS NULL
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2610
SELECT DISTINCT + COUNT( - - col2 ) AS col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2610
SELECT DISTINCT + COUNT ( - - col2 ) AS col1 FROM tab2 AS cor0
----
3

query I rowsort
SELECT ALL col2 * col1 + 78 FROM tab1 cor0
----
1422
3274
373

query II rowsort
SELECT DISTINCT - + col1 AS col0, + col0 + - col0 - - 11 + + 22 - + ( - - 87 ) AS col0 FROM tab2 AS cor0
----
-51
-54
-67
-54
-77
-54

query I rowsort
SELECT col2 * - + ( col0 ) * + 61 + + ( + col1 ) FROM tab1
----
-298642
-305910
-377421

query II rowsort
SELECT ( + 27 ) AS col1, col0 AS col1 FROM tab2
----
27
46
27
64
27
75

query I rowsort
SELECT 36 * - col2 AS col1 FROM tab0
----
-1692
-3564
-360

query I rowsort
SELECT ALL 71 FROM tab2 WHERE - 37 * col0 BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL + + 71 + - col0 * - ( + - col1 ) AS col1 FROM tab1 cor0
----
-354
-4206
-643

query I rowsort
SELECT DISTINCT col0 * + - 91 * - col0 FROM tab1 AS cor0
----
236691
657475
753571

query I rowsort
SELECT ALL + 61 * + 26 AS col2 FROM tab0 AS cor0
----
1586
1586
1586

query I rowsort
SELECT DISTINCT + - col2 + 38 AS col2 FROM tab2 cor0
----
-2
-20
15

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2621
SELECT * FROM tab2 AS cor0 WHERE ( NOT CAST( NULL AS DECIMAL ) + - col0 IS NOT NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-2621
SELECT * FROM tab2 AS cor0 WHERE ( NOT CAST ( NULL AS REAL ) + - col0 IS NOT NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2622
SELECT DISTINCT + CAST( NULL AS SIGNED ) + COUNT( * ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2622
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + COUNT ( * ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + + 25 AS col1 FROM tab1 AS cor0
----
25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2624
SELECT DISTINCT + + CAST( NULL AS SIGNED ) + + COUNT( * ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2624
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) + + COUNT ( * ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL col0 + + 86 FROM tab0 AS cor0
----
101
173
183

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col2 + col0 <= + + col0 + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2627
SELECT - + col0 - + col0 - - + col1 * - + CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2627
SELECT - + col0 - + col0 - - + col1 * - + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col2 - 56 FROM tab2 cor0
----
-16
-33
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 - + col0 * + col1 col2 FROM tab1
----
-420
-4230
-700

query I rowsort
SELECT col2 + + 68 * + + 81 FROM tab1 WHERE NULL > NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2631
SELECT DISTINCT + col0 DIV - + 8 FROM tab0
----
-1
-10
-12

skipif mysql # not compatible
query I rowsort label-2631
SELECT DISTINCT + col0 / - + 8 FROM tab0
----
-1
-10
-12

query II rowsort
SELECT ALL 19 AS col1, - 97 AS col2 FROM tab0
----
19
-97
19
-97
19
-97

query II rowsort
SELECT col0, col0 + col1 FROM tab1
----
51
65
85
90
91
138

query I rowsort
SELECT - col1 + + ( col0 ) * col0 AS col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
144
7548
9408

onlyif mysql # aggregate syntax: 
query I rowsort label-2635
SELECT DISTINCT MAX( - 46 ) * + + ( + - COUNT( - 1 ) ) col1 FROM tab0 WHERE NOT - col0 NOT BETWEEN ( + 68 ) AND NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2635
SELECT DISTINCT MAX ( - 46 ) * + + ( + - COUNT ( - 1 ) ) col1 FROM tab0 WHERE NOT - col0 NOT BETWEEN ( + 68 ) AND NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2636
SELECT * FROM tab0 AS cor0 WHERE NOT + CAST( - col2 AS SIGNED ) < ( - col1 )
----
15
81
47
87
21
10

skipif mysql # not compatible
query III rowsort label-2636
SELECT * FROM tab0 AS cor0 WHERE NOT + CAST ( - col2 AS INTEGER ) < ( - col1 )
----
15
81
47
87
21
10

onlyif mysql # aggregate syntax: 
query I rowsort label-2637
SELECT ALL + MIN( DISTINCT + + col2 ) * COUNT( * ) FROM tab2 AS cor0
----
69

skipif mysql # not compatible
query I rowsort label-2637
SELECT ALL + MIN ( DISTINCT + + col2 ) * COUNT ( * ) FROM tab2 AS cor0
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-2638
SELECT - MIN( + 88 ) FROM tab1 AS cor0
----
-88

skipif mysql # not compatible
query I rowsort label-2638
SELECT - MIN ( + 88 ) FROM tab1 AS cor0
----
-88

query I rowsort
SELECT + - col1 AS col1 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN - col2 AND col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 99, col2 col0 FROM tab2 cor0
----
99
23
99
40
99
58

onlyif mysql # aggregate syntax: 
query I rowsort label-2641
SELECT + MIN( - + col2 ) * MAX( + 80 ) AS col0 FROM tab2 AS cor0
----
-4640

skipif mysql # not compatible
query I rowsort label-2641
SELECT + MIN ( - + col2 ) * MAX ( + 80 ) AS col0 FROM tab2 AS cor0
----
-4640

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2642
SELECT - col0 FROM tab2 cor0 WHERE NOT ( NULL ) <= - - CAST( + 60 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-2642
SELECT - col0 FROM tab2 cor0 WHERE NOT ( NULL ) <= - - CAST ( + 60 AS INTEGER )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2643
SELECT CAST( NULL AS SIGNED ) AS col0, + CAST( ( col2 ) AS SIGNED ) FROM tab1 AS cor0
----
NULL
59
NULL
68
NULL
96

skipif mysql # not compatible
query II rowsort label-2643
SELECT CAST ( NULL AS INTEGER ) AS col0, + CAST ( ( col2 ) AS INTEGER ) FROM tab1 AS cor0
----
NULL
59
NULL
68
NULL
96

query I rowsort
SELECT DISTINCT 26 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-2645
SELECT MAX( - col1 ) AS col2 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-2645
SELECT MAX ( - col1 ) AS col2 FROM tab0 AS cor0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2646
SELECT - - 51 * + CAST( NULL AS SIGNED ) * + MAX( ALL - col2 ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2646
SELECT - - 51 * + CAST ( NULL AS INTEGER ) * + MAX ( ALL - col2 ) AS col2 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - 62 * - + 77 * - col1 * + col1 AS col1 FROM tab0 AS cor0
----
-2105334
-31322214
-4774

onlyif mysql # DIV for integer division: 
query I rowsort label-2648
SELECT DISTINCT + - col2 + 10 DIV col2 FROM tab1 AS cor0 WHERE - col0 IS NOT NULL
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-2648
SELECT DISTINCT + - col2 + 10 / col2 FROM tab1 AS cor0 WHERE - col0 IS NOT NULL
----
-59
-68
-96

onlyif mysql # DIV for integer division: 
query I rowsort label-2649
SELECT - + col2 * - col1 + col0 DIV col1 AS col1 FROM tab0 cor0
----
196
214
3807

skipif mysql # not compatible
query I rowsort label-2649
SELECT - + col2 * - col1 + col0 / col1 AS col1 FROM tab0 cor0
----
196
214
3807

query I rowsort
SELECT + + ( - - col1 ) FROM tab1 AS cor0
----
14
47
5

query I rowsort
SELECT - - ( - 49 ) FROM tab0 AS cor0
----
-49
-49
-49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + - 11 * + 54 col0 FROM tab1
----
-503
-509
-543

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2653
SELECT + MIN( + - col2 ) * + 16 + + 45 AS col0 FROM tab0 WHERE + col0 + - col1 + - col0 + - col0 * - CAST( - + 46 AS SIGNED ) * + + CAST( NULL AS SIGNED ) IS NULL
----
-1539

skipif mysql # not compatible
query I rowsort label-2653
SELECT + MIN ( + - col2 ) * + 16 + + 45 AS col0 FROM tab0 WHERE + col0 + - col1 + - col0 + - col0 * - CAST ( - + 46 AS INTEGER ) * + + CAST ( NULL AS INTEGER ) IS NULL
----
-1539

query I rowsort
SELECT ALL - ( - + 36 ) FROM tab1
----
36
36
36

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 88 + col2 col2 FROM tab2
----
-30
-48
-65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2656
SELECT - MIN( + CAST( + col2 AS SIGNED ) ) + - + COUNT( * ) AS col1 FROM tab0 AS cor0
----
-13

skipif mysql # not compatible
query I rowsort label-2656
SELECT - MIN ( + CAST ( + col2 AS INTEGER ) ) + - + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-13

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col1 >= col0 * - + col1 * - + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2658
SELECT - SUM( - + col2 ) FROM tab0 AS cor0 WHERE - col0 = + col0 * + - col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2658
SELECT - SUM ( - + col2 ) FROM tab0 AS cor0 WHERE - col0 = + col0 * + - col2
----
NULL

query I rowsort
SELECT - 21 - + + col2 FROM tab2
----
-44
-61
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-2660
SELECT - MAX( ALL + col0 ) * + - ( 62 ) + + + COUNT( + + 53 ) * + + 15 - ( - COUNT( * ) ) AS col0 FROM tab0
----
6062

skipif mysql # not compatible
query I rowsort label-2660
SELECT - MAX ( ALL + col0 ) * + - ( 62 ) + + + COUNT ( + + 53 ) * + + 15 - ( - COUNT ( * ) ) AS col0 FROM tab0
----
6062

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2661
SELECT DISTINCT CAST( NULL AS SIGNED ) - - + COUNT( DISTINCT + col0 ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2661
SELECT DISTINCT CAST ( NULL AS INTEGER ) - - + COUNT ( DISTINCT + col0 ) AS col2 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2662
SELECT DISTINCT + MIN( DISTINCT + col0 ) AS col1 FROM tab0 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-2662
SELECT DISTINCT + MIN ( DISTINCT + col0 ) AS col1 FROM tab0 AS cor0
----
15

query I rowsort
SELECT - col1 * - - col2 - col0 * + ( + col0 ) * - col2 * - col0 - + col2 * + col2 * + - col2 + + + ( - + col2 ) * - - col2 + col1 * - col0 FROM tab0 AS cor0
----
-62033
-6586167
-89394325

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 65 BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2665
SELECT DISTINCT + - MAX( col0 ) * - COUNT( * ) + + + 55 - + + ( + CAST( NULL AS DECIMAL ) ) + - COUNT( * ) FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2665
SELECT DISTINCT + - MAX ( col0 ) * - COUNT ( * ) + + + 55 - + + ( + CAST ( NULL AS REAL ) ) + - COUNT ( * ) FROM tab2 cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL = - col0 * - 78 / - + col2 * - 19
----

query I rowsort
SELECT + 42 AS col0 FROM tab0 AS cor0 WHERE NOT col0 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT col2 FROM tab0 AS cor0 WHERE 59 * - 81 - 68 * - + col1 <= NULL
----

query I rowsort
SELECT ALL 42 * - col0 AS col2 FROM tab2 AS cor0 WHERE + 24 IS NOT NULL
----
-1932
-2688
-3150

query I rowsort
SELECT + col1 * + + col2 * col2 FROM tab1 WHERE NOT + col1 IS NULL
----
129024
17405
217328

onlyif mysql # aggregate syntax: 
query I rowsort label-2671
SELECT ALL 95 * - COUNT( * ) AS col0 FROM tab2
----
-285

skipif mysql # not compatible
query I rowsort label-2671
SELECT ALL 95 * - COUNT ( * ) AS col0 FROM tab2
----
-285

query I rowsort
SELECT DISTINCT - 2 + - ( + + col2 ) FROM tab1 WHERE NULL > NULL
----

query I rowsort
SELECT - ( + - 89 ) AS col0 FROM tab0
----
89
89
89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2674
SELECT ALL CAST( + ( - 58 ) AS SIGNED ) AS col1 FROM tab2
----
-58
-58
-58

skipif mysql # not compatible
query I rowsort label-2674
SELECT ALL CAST ( + ( - 58 ) AS INTEGER ) AS col1 FROM tab2
----
-58
-58
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-2675
SELECT DISTINCT - 47 * + COUNT( * ) FROM tab2
----
-141

skipif mysql # not compatible
query I rowsort label-2675
SELECT DISTINCT - 47 * + COUNT ( * ) FROM tab2
----
-141

query I rowsort
SELECT DISTINCT - 78 * - col0 AS col0 FROM tab1 AS cor0
----
3978
6630
7098

onlyif mysql # aggregate syntax: 
query I rowsort label-2677
SELECT DISTINCT - 24 * 70 * + - SUM( - col1 ) AS col2 FROM tab0 AS cor0
----
-173040

skipif mysql # not compatible
query I rowsort label-2677
SELECT DISTINCT - 24 * 70 * + - SUM ( - col1 ) AS col2 FROM tab0 AS cor0
----
-173040

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL IN ( + 42 * - - 78 )
----

query I rowsort
SELECT ALL + - 12 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to e698dd57d3aac30af14ce35da434bb45

query II rowsort
SELECT - 80 * col0 AS col2, - 64 FROM tab2
----
-3680
-64
-5120
-64
-6000
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-2681
SELECT - ( - MIN( ALL + 70 ) ) FROM tab0
----
70

skipif mysql # not compatible
query I rowsort label-2681
SELECT - ( - MIN ( ALL + 70 ) ) FROM tab0
----
70

query I rowsort
SELECT - col1 + - 89 - + + col1 AS col2 FROM tab1 AS cor0
----
-117
-183
-99

query I rowsort
SELECT + col1 AS col1 FROM tab2 AS cor0 WHERE NOT - 92 <= NULL
----

query I rowsort
SELECT ALL + col2 + + col1 + + 84 AS col0 FROM tab0 AS cor0
----
115
184
212

query I rowsort
SELECT ALL + col0 + + - col0 AS col2 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT + col2 FROM tab1 AS cor0 WHERE ( - 74 ) >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2687
SELECT col2 * - ( + col1 ) + + CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2687
SELECT col2 * - ( + col1 ) + + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2688
SELECT COUNT( * ) + 21 FROM tab2 AS cor0
----
24

skipif mysql # not compatible
query I rowsort label-2688
SELECT COUNT ( * ) + 21 FROM tab2 AS cor0
----
24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2689
SELECT + CAST( col1 AS SIGNED ) * - 49 AS col1 FROM tab2
----
-2499
-3283
-3773

skipif mysql # not compatible
query I rowsort label-2689
SELECT + CAST ( col1 AS INTEGER ) * - 49 AS col1 FROM tab2
----
-2499
-3283
-3773

query I rowsort
SELECT DISTINCT - 29 + - col0 AS col0 FROM tab2
----
-104
-75
-93

onlyif mysql # DIV for integer division: 
query I rowsort label-2691
SELECT + 64 * 18 DIV - - col2 FROM tab2
----
19
28
50

skipif mysql # not compatible
query I rowsort label-2691
SELECT + 64 * 18 / - - col2 FROM tab2
----
19
28
50

query II rowsort
SELECT + col1 * + + col0, + col2 AS col1 FROM tab2
----
2346
23
4928
40
5025
58

onlyif mysql # aggregate syntax: 
query I rowsort label-2693
SELECT DISTINCT SUM( col1 ) col1 FROM tab1
----
66

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2693
SELECT DISTINCT SUM ( col1 ) col1 FROM tab1
----
66

query I rowsort
SELECT ALL 34 * + - col2 AS col1 FROM tab0 AS cor0
----
-1598
-3366
-340

query I rowsort
SELECT + col1 AS col1 FROM tab1 AS cor0 WHERE col1 NOT IN ( - col1 )
----
14
47
5

query I rowsort
SELECT col0 + + col1 * 63 AS col1 FROM tab1
----
3052
400
933

onlyif mysql # aggregate syntax: 
query I rowsort label-2697
SELECT - 18 + + + COUNT( * ) FROM tab0
----
-15

skipif mysql # not compatible
query I rowsort label-2697
SELECT - 18 + + + COUNT ( * ) FROM tab0
----
-15

query I rowsort
SELECT 92 + + col0 + col2 FROM tab1
----
236
239
251

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2699
SELECT DISTINCT 78 DIV COUNT( * ) - 44 - COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-45

skipif mysql # not compatible
query I rowsort label-2699
SELECT DISTINCT 78 / COUNT ( * ) - 44 - COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-45

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL < ( 79 )
----

query I rowsort
SELECT DISTINCT + + 92 FROM tab1 AS cor0 WHERE NOT + ( + + col0 ) IS NULL
----
92

query II rowsort
SELECT ALL + 1 * - col1 - col2 AS col1, - 2 AS col2 FROM tab0 cor0
----
-100
-2
-128
-2
-31
-2

query I rowsort
SELECT ALL + col0 - - - col1 - col1 / col1 + 15 AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT + col0 * - col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-705
-870
-9603

query I rowsort
SELECT col1 FROM tab1 AS cor0 WHERE NOT + col2 + + 30 IS NOT NULL
----

query I rowsort
SELECT DISTINCT col2 * - col0 - col1 FROM tab2 AS cor0
----
-1109
-2637
-4417

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2707
SELECT * FROM tab1 WHERE NOT + ( 62 ) = + - CAST( col2 AS SIGNED )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-2707
SELECT * FROM tab1 WHERE NOT + ( 62 ) = + - CAST ( col2 AS INTEGER )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2708
SELECT DISTINCT + COUNT( * ) - - COUNT( * ) AS col0 FROM tab1 WHERE col1 = - - col2
----
0

skipif mysql # not compatible
query I rowsort label-2708
SELECT DISTINCT + COUNT ( * ) - - COUNT ( * ) AS col0 FROM tab1 WHERE col1 = - - col2
----
0

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL NOT IN ( + + 28, - 75 )
----

query I rowsort
SELECT - + ( + 47 ) * + col2 FROM tab2 AS cor0 WHERE NOT + col0 BETWEEN col1 AND + + ( 16 )
----
-1081
-1880
-2726

query I rowsort
SELECT col2 * col0 * - 44 FROM tab0 cor0
----
-31020
-38280
-422532

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - - col1 * - + col0 col1, + col2 FROM tab1 AS cor0
----
-425
59
-4277
68
-714
96

onlyif mysql # aggregate syntax: 
query I rowsort label-2713
SELECT - + MAX( - col2 ) * 94 + - 46 FROM tab1 AS cor0
----
5500

skipif mysql # not compatible
query I rowsort label-2713
SELECT - + MAX ( - col2 ) * 94 + - 46 FROM tab1 AS cor0
----
5500

query I rowsort
SELECT - - 43 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 199105619049271147956de52e7f5ed4

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE ( 31 ) BETWEEN NULL AND ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col0 BETWEEN NULL AND - - 28
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2717
SELECT DISTINCT COUNT( * ) + - MIN( ALL - + col0 ), COUNT( * ) AS col1 FROM tab0 AS cor0
----
100
3

skipif mysql # not compatible
query II rowsort label-2717
SELECT DISTINCT COUNT ( * ) + - MIN ( ALL - + col0 ), COUNT ( * ) AS col1 FROM tab0 AS cor0
----
100
3

onlyif mysql # DIV for integer division: 
query I rowsort label-2718
SELECT DISTINCT - + 93 DIV - + ( + 10 ) + + + col2 FROM tab0 AS cor0
----
108
19
56

skipif mysql # not compatible
query I rowsort label-2718
SELECT DISTINCT - + 93 / - + ( + 10 ) + + + col2 FROM tab0 AS cor0
----
108
19
56

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * ( - col2 ) col0 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2720
SELECT + COUNT( * ) AS col1, + COUNT( * ) FROM tab2 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-2720
SELECT + COUNT ( * ) AS col1, + COUNT ( * ) FROM tab2 AS cor0
----
3
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + 14 + - col2 col0 FROM tab1 AS cor0
----
-101
-50
-96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2722
SELECT DISTINCT + CAST( - COUNT( * ) AS SIGNED ) * + - 99 FROM tab1 WHERE NOT NULL NOT BETWEEN ( + col2 ) AND + col1
----
0

skipif mysql # not compatible
query I rowsort label-2722
SELECT DISTINCT + CAST ( - COUNT ( * ) AS INTEGER ) * + - 99 FROM tab1 WHERE NOT NULL NOT BETWEEN ( + col2 ) AND + col1
----
0

query I rowsort
SELECT - col0 * + col0 + - col1 AS col2 FROM tab0
----
-306
-7590
-9410

onlyif mysql # aggregate syntax: 
query I rowsort label-2724
SELECT ALL - SUM( - col0 ) * COUNT( * ) FROM tab1
----
681

skipif mysql # not compatible
query I rowsort label-2724
SELECT ALL - SUM ( - col0 ) * COUNT ( * ) FROM tab1
----
681

query I rowsort
SELECT ALL 28 - - col2 AS col0 FROM tab1
----
124
87
96

onlyif mysql # aggregate syntax: 
query I rowsort label-2726
SELECT - MIN( DISTINCT + col2 ) + - 48 FROM tab0
----
-58

skipif mysql # not compatible
query I rowsort label-2726
SELECT - MIN ( DISTINCT + col2 ) + - 48 FROM tab0
----
-58

query I rowsort
SELECT DISTINCT ( + col0 ) + + - 8 AS col2 FROM tab1
----
43
77
83

onlyif mysql # aggregate syntax: 
query I rowsort label-2728
SELECT COUNT( * ) + ( - 51 ) AS col1 FROM tab0 AS cor0
----
-48

skipif mysql # not compatible
query I rowsort label-2728
SELECT COUNT ( * ) + ( - 51 ) AS col1 FROM tab0 AS cor0
----
-48

query I rowsort
SELECT + - 12 + 94 FROM tab1 AS cor0
----
82
82
82

query II rowsort
SELECT ALL - col2 * + + ( 45 ), + col0 FROM tab1 cor0 WHERE NOT NULL NOT IN ( + col0 * + - col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2731
SELECT * FROM tab2 AS cor0 WHERE CAST( - col1 AS SIGNED ) + + - 14 NOT BETWEEN NULL AND col2
----

skipif mysql # not compatible
query III rowsort label-2731
SELECT * FROM tab2 AS cor0 WHERE CAST ( - col1 AS INTEGER ) + + - 14 NOT BETWEEN NULL AND col2
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2732
SELECT 61 * - 36 AS col2, SUM( DISTINCT - 1 ) AS col2 FROM tab2
----
-2196
-1

skipif mysql # not compatible
query II rowsort label-2732
SELECT 61 * - 36 AS col2, SUM ( DISTINCT - 1 ) AS col2 FROM tab2
----
-2196
-1

query I rowsort
SELECT + col0 * + + col1 AS col1 FROM tab1 AS cor0
----
425
4277
714

query I rowsort
SELECT ALL - + 54 AS col1 FROM tab1 AS cor0
----
-54
-54
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-2735
SELECT DISTINCT - COUNT( ALL ( col1 ) ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL >= 8
----
0

skipif mysql # not compatible
query I rowsort label-2735
SELECT DISTINCT - COUNT ( ALL ( col1 ) ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL >= 8
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2736
SELECT DISTINCT + - ( - COUNT( * ) ) AS col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2736
SELECT DISTINCT + - ( - COUNT ( * ) ) AS col0 FROM tab0 AS cor0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-2737
SELECT 40 DIV col1 FROM tab1
----
0
2
8

skipif mysql # not compatible
query I rowsort label-2737
SELECT 40 / col1 FROM tab1
----
0
2
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 50 col1, 16 FROM tab0
----
50
16
50
16
50
16

query I rowsort
SELECT + col2 / - - col1 * col0 / - - 55 AS col0 FROM tab1 WHERE NOT - 78 <= + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2740
SELECT ALL - COUNT( * ) * + 94 FROM tab2
----
-282

skipif mysql # not compatible
query I rowsort label-2740
SELECT ALL - COUNT ( * ) * + 94 FROM tab2
----
-282

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2741
SELECT ALL MAX( DISTINCT - - CAST( NULL AS DECIMAL ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2741
SELECT ALL MAX ( DISTINCT - - CAST ( NULL AS REAL ) ) FROM tab1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + ( - col2 ) col0 FROM tab0 cor0
----
-10
-47
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-2743
SELECT + COUNT( ALL - 81 ) + - + MAX( ALL + col2 ) AS col1 FROM tab2
----
-55

skipif mysql # not compatible
query I rowsort label-2743
SELECT + COUNT ( ALL - 81 ) + - + MAX ( ALL + col2 ) AS col1 FROM tab2
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-2744
SELECT DISTINCT + COUNT( * ) + - - 76 AS col2 FROM tab2
----
79

skipif mysql # not compatible
query I rowsort label-2744
SELECT DISTINCT + COUNT ( * ) + - - 76 AS col2 FROM tab2
----
79

query II rowsort
SELECT ALL + col2 + + col1 AS col2, col0 * 36 FROM tab1 AS cor0
----
110
1836
115
3276
64
3060

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2746
SELECT DISTINCT 45 DIV + ( + COUNT( * ) ) FROM tab1 cor0
----
15

skipif mysql # not compatible
query I rowsort label-2746
SELECT DISTINCT 45 / + ( + COUNT ( * ) ) FROM tab1 cor0
----
15

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL < col1
----

query II rowsort
SELECT DISTINCT - + col1 + - col1, col2 FROM tab2 AS cor0
----
-102
23
-134
58
-154
40

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2749
SELECT DISTINCT ( - col2 ) - - col1 DIV + CAST( 10 AS SIGNED ) + - col0 FROM tab1 AS cor0
----
-144
-146
-155

skipif mysql # not compatible
query I rowsort label-2749
SELECT DISTINCT ( - col2 ) - - col1 / + CAST ( 10 AS INTEGER ) + - col0 FROM tab1 AS cor0
----
-144
-146
-155

query I rowsort
SELECT col1 * - 32 AS col1 FROM tab2 AS cor0
----
-1632
-2144
-2464

onlyif mysql # aggregate syntax: 
query I rowsort label-2751
SELECT + MIN( ALL 61 ) AS col1 FROM tab2
----
61

skipif mysql # not compatible
query I rowsort label-2751
SELECT + MIN ( ALL 61 ) AS col1 FROM tab2
----
61

onlyif mysql # DIV for integer division: 
query I rowsort label-2752
SELECT col0 * 69 DIV col2 FROM tab1
----
36
92
99

skipif mysql # not compatible
query I rowsort label-2752
SELECT col0 * 69 / col2 FROM tab1
----
36
92
99

onlyif mysql # DIV for integer division: 
query I rowsort label-2753
SELECT ALL col0 - - col2 DIV col1 AS col2 FROM tab0
----
15
196
87

skipif mysql # not compatible
query I rowsort label-2753
SELECT ALL col0 - - col2 / col1 AS col2 FROM tab0
----
15
196
87

query III rowsort
SELECT * FROM tab2 WHERE - col2 * + col0 + + - ( + col0 ) - - 90 * - col0 NOT BETWEEN + col2 + + col0 AND - + 45
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-2755
SELECT 67 AS col1, + 11 + 64 + COUNT( * ) * - COUNT( * ) AS col0 FROM tab2
----
67
66

skipif mysql # not compatible
query II rowsort label-2755
SELECT 67 AS col1, + 11 + 64 + COUNT ( * ) * - COUNT ( * ) AS col0 FROM tab2
----
67
66

query I rowsort
SELECT DISTINCT col2 - + col0 * + - col0 AS col1 FROM tab2
----
2139
4136
5683

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2757
SELECT ALL col0 * - CAST( - col2 AS SIGNED ) AS col0, col2 AS col2 FROM tab1
----
4896
96
5015
59
6188
68

skipif mysql # not compatible
query II rowsort label-2757
SELECT ALL col0 * - CAST ( - col2 AS INTEGER ) AS col0, col2 AS col2 FROM tab1
----
4896
96
5015
59
6188
68

query I rowsort
SELECT + col1 * + - col0 AS col1 FROM tab1 WHERE - ( + 81 ) + - ( + + col1 ) + - 87 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * - + col2 col1 FROM tab1 WHERE NULL > col2 AND ( NULL ) IS NOT NULL
----

query I rowsort
SELECT - - 15 * + col0 FROM tab2 AS cor0 WHERE ( NULL IS NOT NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2761
SELECT DISTINCT SUM( + col0 ) * 8 FROM tab2 AS cor0 WHERE NOT ( NULL ) BETWEEN - CAST( NULL AS SIGNED ) AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2761
SELECT DISTINCT SUM ( + col0 ) * 8 FROM tab2 AS cor0 WHERE NOT ( NULL ) BETWEEN - CAST ( NULL AS INTEGER ) AND NULL
----
NULL

query I rowsort
SELECT - + 3 * + - col2 FROM tab0 cor0
----
141
297
30

query I rowsort
SELECT - - 42 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 64c29db9f1cd7ed4ddeb1735e3e0d442

onlyif mysql # aggregate syntax: 
query I rowsort label-2764
SELECT ALL - 96 * - COUNT( * ) FROM tab1
----
288

skipif mysql # not compatible
query I rowsort label-2764
SELECT ALL - 96 * - COUNT ( * ) FROM tab1
----
288

query I rowsort
SELECT ALL - + 79 FROM tab1 WHERE NOT + col1 IS NULL
----
-79
-79
-79

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - ( + col2 ) / - 86 - + - 35 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query II rowsort label-2767
SELECT 5 AS col0, MIN( DISTINCT + 77 ) FROM tab1 cor0
----
5
77

skipif mysql # not compatible
query II rowsort label-2767
SELECT 5 AS col0, MIN ( DISTINCT + 77 ) FROM tab1 cor0
----
5
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 31 col1 FROM tab1 AS cor0
----
-31

query I rowsort
SELECT + ( - + 24 ) FROM tab2 cor0
----
-24
-24
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-2770
SELECT - COUNT( * ) AS col2 FROM tab2 WHERE NOT ( col0 * - col2 >= + col0 )
----
-3

skipif mysql # not compatible
query I rowsort label-2770
SELECT - COUNT ( * ) AS col2 FROM tab2 WHERE NOT ( col0 * - col2 >= + col0 )
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-2771
SELECT DISTINCT + - 75 DIV col1 FROM tab1 WHERE NULL IS NULL
----
-1
-15
-5

skipif mysql # not compatible
query I rowsort label-2771
SELECT DISTINCT + - 75 / col1 FROM tab1 WHERE NULL IS NULL
----
-1
-15
-5

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - col1 >= 22
----

query II rowsort
SELECT DISTINCT + col1 + - col0 + + + col2 * - - col1 + + + 22, col1 AS col0 FROM tab1 AS cor0
----
1329
14
237
5
3174
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2774
SELECT + COUNT( * ) * - 62 DIV CAST( + AVG ( ALL - + col2 ) AS SIGNED ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2774
SELECT + COUNT ( * ) * - 62 / CAST ( + AVG ( ALL - + col2 ) AS INTEGER ) FROM tab0 AS cor0
----
3

query I rowsort
SELECT ALL - col0 AS col1 FROM tab1 WHERE NULL IS NULL
----
-51
-85
-91

query I rowsort
SELECT 6 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 5d1cb90ed58fa7573895d2f95b211821

query I rowsort
SELECT - + ( col0 ) AS col2 FROM tab2 cor0
----
-46
-64
-75

onlyif mysql # DIV for integer division: 
query I rowsort label-2778
SELECT - col1 DIV + col2 col0 FROM tab0 cor0
----
-1
-2
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2778
SELECT - col1 / + col2 col0 FROM tab0 cor0
----
-1
-2
0

query I rowsort
SELECT ALL + 98 + + 68 - - - 67 - - col1 AS col1 FROM tab1 cor0
----
104
113
146

onlyif mysql # DIV for integer division: 
query I rowsort label-2780
SELECT - ( + 80 ) DIV + - col1 - + 30 FROM tab2 AS cor0
----
-29
-29
-29

skipif mysql # not compatible
query I rowsort label-2780
SELECT - ( + 80 ) / + - col1 - + 30 FROM tab2 AS cor0
----
-29
-29
-29

query I rowsort
SELECT DISTINCT + 9 + + 4 FROM tab0 AS cor0
----
13

query I rowsort
SELECT ALL - + 0 * - 1 + - 61 AS col0 FROM tab0 AS cor0
----
-61
-61
-61

query I rowsort
SELECT ALL - 3 * + col0 * - col0 AS col1 FROM tab1
----
21675
24843
7803

query III rowsort
SELECT ALL * FROM tab2 WHERE - - col2 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2785
SELECT DISTINCT COUNT( * ) - - - 90 col0 FROM tab2
----
-87

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2785
SELECT DISTINCT COUNT ( * ) - - - 90 col0 FROM tab2
----
-87

query III rowsort
SELECT ALL * FROM tab1 WHERE + col1 = col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2787
SELECT + col2 + + - 89 DIV + + col2 col0 FROM tab1
----
58
67
96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2787
SELECT + col2 + + - 89 / + + col2 col0 FROM tab1
----
58
67
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2788
SELECT ALL CAST( MIN( 30 ) AS SIGNED ) FROM tab2
----
30

skipif mysql # not compatible
query I rowsort label-2788
SELECT ALL CAST ( MIN ( 30 ) AS INTEGER ) FROM tab2
----
30

query I rowsort
SELECT 56 * - - col2 AS col2 FROM tab1
----
3304
3808
5376

query II rowsort
SELECT DISTINCT + + col0 * + - ( + 85 ) + - col2 AS col1, + col0 * 5 FROM tab1 AS cor0
----
-4431
255
-7284
425
-7803
455

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * - ( col0 ) col1 FROM tab0
----
-225
-7569
-9409

query I rowsort
SELECT DISTINCT - 28 FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-2793
SELECT ALL + SUM( ALL - col2 ) FROM tab2 AS cor0
----
-121

skipif mysql # not compatible
query I rowsort label-2793
SELECT ALL + SUM ( ALL - col2 ) FROM tab2 AS cor0
----
-121

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 9 * col2 col2 FROM tab1 AS cor0
----
-531
-612
-864

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2795
SELECT - - col2 * col1 + + + col0 + - CAST( NULL AS SIGNED ) AS col0 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2795
SELECT - - col2 * col1 + + + col0 + - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2796
SELECT ALL + COUNT( * ) * 98 AS col1 FROM tab1 cor0
----
294

skipif mysql # not compatible
query I rowsort label-2796
SELECT ALL + COUNT ( * ) * 98 AS col1 FROM tab1 cor0
----
294

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * 76 col2 FROM tab0 cor0
----
1140
6612
7372

onlyif mysql # aggregate syntax: 
query II rowsort label-2798
SELECT ALL + 73 AS col0, - COUNT( * ) FROM tab1
----
73
-3

skipif mysql # not compatible
query II rowsort label-2798
SELECT ALL + 73 AS col0, - COUNT ( * ) FROM tab1
----
73
-3

query I rowsort
SELECT ALL - - col1 AS col2 FROM tab1 WHERE NOT - col2 IS NULL
----
14
47
5

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2800
SELECT ALL + col1 AS col1, CAST( NULL AS DECIMAL ) FROM tab0
----
1
NULL
21
NULL
81
NULL

skipif mysql # not compatible
query II rowsort label-2800
SELECT ALL + col1 AS col1, CAST ( NULL AS REAL ) FROM tab0
----
1
NULL
21
NULL
81
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2801
SELECT - col1 DIV + 42 FROM tab1
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-2801
SELECT - col1 / + 42 FROM tab1
----
-1
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2802
SELECT DISTINCT MAX( ALL + 65 ) FROM tab2
----
65

skipif mysql # not compatible
query I rowsort label-2802
SELECT DISTINCT MAX ( ALL + 65 ) FROM tab2
----
65

query I rowsort
SELECT + ( + 8 ) AS col1 FROM tab2
----
8
8
8

onlyif mysql # aggregate syntax: 
query I rowsort label-2804
SELECT - SUM( DISTINCT 64 ) FROM tab2
----
-64

skipif mysql # not compatible
query I rowsort label-2804
SELECT - SUM ( DISTINCT 64 ) FROM tab2
----
-64

query I rowsort
SELECT + ( - - 58 ) AS col2 FROM tab2
----
58
58
58

query I rowsort
SELECT ALL ( + + 57 ) FROM tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2807
SELECT * FROM tab0 AS cor0 WHERE CAST( - + col1 AS SIGNED ) <= NULL
----

skipif mysql # not compatible
query III rowsort label-2807
SELECT * FROM tab0 AS cor0 WHERE CAST ( - + col1 AS INTEGER ) <= NULL
----

query I rowsort
SELECT DISTINCT 70 + + col1 AS col1 FROM tab1 AS cor0
----
117
75
84

query I rowsort
SELECT - col1 * + col2 + + - col2 * ( - 50 ) FROM tab1 AS cor0
----
204
2655
3456

onlyif mysql # aggregate syntax: 
query I rowsort label-2810
SELECT DISTINCT + SUM( - - col1 ) AS col1 FROM tab1
----
66

skipif mysql # not compatible
query I rowsort label-2810
SELECT DISTINCT + SUM ( - - col1 ) AS col1 FROM tab1
----
66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + col2 + + + col1 + - col1 col1 FROM tab1
----
3481
4624
9216

query I rowsort
SELECT - 2 FROM tab0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT - 70 + col0 + - col2 - - - col2 * + 72 / col2 FROM tab0 WHERE - 54 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + 10 * - 31 * + 0 * + + col2 + 3 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2815
SELECT 59 DIV ( - COUNT( * ) ) AS col0 FROM tab1 AS cor0
----
-19

skipif mysql # not compatible
query I rowsort label-2815
SELECT 59 / ( - COUNT ( * ) ) AS col0 FROM tab1 AS cor0
----
-19

query III rowsort
SELECT * FROM tab2 cor0 WHERE NULL < + 51
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2817
SELECT + SUM( + + 22 ) FROM tab0 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-2817
SELECT + SUM ( + + 22 ) FROM tab0 AS cor0
----
66

query I rowsort
SELECT ALL col2 + - col0 + - 92 AS col1 FROM tab0
----
-169
-60
-90

query I rowsort
SELECT col1 AS col2 FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2820
SELECT DISTINCT - SUM( ALL - col0 ) AS col1 FROM tab0
----
199

skipif mysql # not compatible
query I rowsort label-2820
SELECT DISTINCT - SUM ( ALL - col0 ) AS col1 FROM tab0
----
199

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2821
SELECT ALL 8 AS col2, CAST( NULL AS SIGNED ) + + + col1 FROM tab1
----
8
NULL
8
NULL
8
NULL

skipif mysql # not compatible
query II rowsort label-2821
SELECT ALL 8 AS col2, CAST ( NULL AS INTEGER ) + + + col1 FROM tab1
----
8
NULL
8
NULL
8
NULL

query II rowsort
SELECT ALL col0, + col2 + + col2 FROM tab0
----
15
94
87
20
97
198

onlyif mysql # aggregate syntax: 
query II rowsort label-2823
SELECT DISTINCT - 71 * + 26 + - 16 AS col1, COUNT( * ) AS col0 FROM tab2 cor0
----
-1862
3

skipif mysql # not compatible
query II rowsort label-2823
SELECT DISTINCT - 71 * + 26 + - 16 AS col1, COUNT ( * ) AS col0 FROM tab2 cor0
----
-1862
3

query I rowsort
SELECT 93 AS col2 FROM tab0 cor0
----
93
93
93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2825
SELECT - ( + + MAX( CAST( NULL AS SIGNED ) ) ) * - SUM( ALL + col2 ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2825
SELECT - ( + + MAX ( CAST ( NULL AS INTEGER ) ) ) * - SUM ( ALL + col2 ) AS col1 FROM tab0 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-2826
SELECT ALL col2, col2 * 47 + - col0 - 61 DIV ( - + 20 ) + + + col2 AS col1 FROM tab1 AS cor0
----
59
2750
68
3176
96
4560

skipif mysql # not compatible
query II rowsort label-2826
SELECT ALL col2, col2 * 47 + - col0 - 61 / ( - + 20 ) + + + col2 AS col1 FROM tab1 AS cor0
----
59
2750
68
3176
96
4560

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( - 47 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2828
SELECT + SUM( col1 ) + + COUNT( * ) AS col1 FROM tab0
----
106

skipif mysql # not compatible
query I rowsort label-2828
SELECT + SUM ( col1 ) + + COUNT ( * ) AS col1 FROM tab0
----
106

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2829
SELECT ALL + col2 + - 13 * ( - col1 * col2 ) AS col0 FROM tab1 WHERE CAST( - col2 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-2829
SELECT ALL + col2 + - 13 * ( - col1 * col2 ) AS col0 FROM tab1 WHERE CAST ( - col2 AS INTEGER ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2830
SELECT ALL * FROM tab1 WHERE ( CAST( - col1 AS SIGNED ) ) <= ( NULL )
----

skipif mysql # not compatible
query III rowsort label-2830
SELECT ALL * FROM tab1 WHERE ( CAST ( - col1 AS INTEGER ) ) <= ( NULL )
----

query I rowsort
SELECT - col2 AS col0 FROM tab0 WHERE col0 IN ( - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2832
SELECT DISTINCT COUNT( * ) + - 99 AS col2 FROM tab0
----
-96

skipif mysql # not compatible
query I rowsort label-2832
SELECT DISTINCT COUNT ( * ) + - 99 AS col2 FROM tab0
----
-96

query I rowsort
SELECT ( ( + 9 ) ) FROM tab2 WHERE NOT col1 IS NULL
----
9
9
9

query I rowsort
SELECT ALL - col0 FROM tab0 WHERE ( col0 + col0 ) IS NOT NULL
----
-15
-87
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-2835
SELECT DISTINCT - COUNT( + col2 ) + + COUNT( * ) AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-2835
SELECT DISTINCT - COUNT ( + col2 ) + + COUNT ( * ) AS col0 FROM tab2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2836
SELECT ALL * FROM tab1 WHERE col1 * ( + col1 ) NOT BETWEEN ( ( + CAST( 89 AS SIGNED ) ) / col0 ) AND + col0
----
51
14
96
91
47
68

skipif mysql # not compatible
query III rowsort label-2836
SELECT ALL * FROM tab1 WHERE col1 * ( + col1 ) NOT BETWEEN ( ( + CAST ( 89 AS INTEGER ) ) / col0 ) AND + col0
----
51
14
96
91
47
68

onlyif mysql # aggregate syntax: 
query I rowsort label-2837
SELECT 89 + + COUNT( * ) AS col0 FROM tab1
----
92

skipif mysql # not compatible
query I rowsort label-2837
SELECT 89 + + COUNT ( * ) AS col0 FROM tab1
----
92

query I rowsort
SELECT col1 AS col0 FROM tab1 WHERE + 48 IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE col2 * 92 IS NULL
----

query I rowsort
SELECT DISTINCT - col1 AS col2 FROM tab2 WHERE NOT - ( 26 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2841
SELECT + SUM( ALL col0 ) AS col2 FROM tab0
----
199

skipif mysql # not compatible
query I rowsort label-2841
SELECT + SUM ( ALL col0 ) AS col2 FROM tab0
----
199

onlyif mysql # aggregate syntax: 
query I rowsort label-2842
SELECT DISTINCT - COUNT( col2 ) AS col1 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-2842
SELECT DISTINCT - COUNT ( col2 ) AS col1 FROM tab2
----
-3

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + 37 * + 27 + 70 BETWEEN NULL AND ( + col2 * + col1 )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND ( 9 / - ( - col1 ) )
----

query I rowsort
SELECT ALL 54 + - col2 * - col1 AS col0 FROM tab0
----
153
264
3861

onlyif mysql # aggregate syntax: 
query I rowsort label-2846
SELECT COUNT( * ) AS col0 FROM tab2 WHERE ( NULL ) > ( + col2 + 91 )
----
0

skipif mysql # not compatible
query I rowsort label-2846
SELECT COUNT ( * ) AS col0 FROM tab2 WHERE ( NULL ) > ( + col2 + 91 )
----
0

query I rowsort
SELECT DISTINCT col1 * col0 + + col1 AS col2 FROM tab0 WHERE NULL NOT IN ( col0 * col1 + col1 )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE 81 NOT IN ( + col2 + 5 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col1 + col0 * col2 AS col0 FROM tab0
----
786
891
9604

query I rowsort
SELECT col1 + 61 FROM tab2
----
112
128
138

query I rowsort
SELECT col2 + + 4 * col2 FROM tab2 cor0
----
115
200
290

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2852
SELECT + ( - CAST( NULL AS SIGNED ) ) + - col2 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2852
SELECT + ( - CAST ( NULL AS INTEGER ) ) + - col2 FROM tab2 cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 14 >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2854
SELECT + CAST( 33 AS SIGNED ) + 93 AS col2 FROM tab0 AS cor0
----
126
126
126

skipif mysql # not compatible
query I rowsort label-2854
SELECT + CAST ( 33 AS INTEGER ) + 93 AS col2 FROM tab0 AS cor0
----
126
126
126

onlyif mysql # DIV for integer division: 
query I rowsort label-2855
SELECT ALL + col2 DIV col2 + + ( - col0 + - col1 DIV - col0 ) AS col2 FROM tab2 AS cor0
----
-44
-62
-74

skipif mysql # not compatible
query I rowsort label-2855
SELECT ALL + col2 / col2 + + ( - col0 + - col1 / - col0 ) AS col2 FROM tab2 AS cor0
----
-44
-62
-74

query I rowsort
SELECT ALL col2 FROM tab0 cor0 WHERE ( + ( - col1 ) ) IN ( col1 * - col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2857
SELECT col0 FROM tab1 WHERE + col0 * CAST( NULL AS SIGNED ) > + col2 + + col0
----

skipif mysql # not compatible
query I rowsort label-2857
SELECT col0 FROM tab1 WHERE + col0 * CAST ( NULL AS INTEGER ) > + col2 + + col0
----

query I rowsort
SELECT - col0 - 85 * col2 AS col2 FROM tab0
----
-4010
-8512
-937

onlyif mysql # aggregate syntax: 
query I rowsort label-2859
SELECT MIN( - col0 ) - + COUNT( * ) AS col0 FROM tab1 AS cor0
----
-94

skipif mysql # not compatible
query I rowsort label-2859
SELECT MIN ( - col0 ) - + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-94

query I rowsort
SELECT DISTINCT - col1 * + 6 + - col0 FROM tab1 AS cor0
----
-115
-135
-373

query I rowsort
SELECT col0 AS col2 FROM tab0 cor0 WHERE + col0 + col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2862
SELECT + 87 + + CAST( 94 AS SIGNED ) FROM tab0 cor0
----
181
181
181

skipif mysql # not compatible
query I rowsort label-2862
SELECT + 87 + + CAST ( 94 AS INTEGER ) FROM tab0 cor0
----
181
181
181

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2863
SELECT ALL * FROM tab0 AS cor0 WHERE CAST( + col2 AS DECIMAL ) * + 4 NOT IN ( 39 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-2863
SELECT ALL * FROM tab0 AS cor0 WHERE CAST ( + col2 AS REAL ) * + 4 NOT IN ( 39 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2864
SELECT DISTINCT - ( CAST( - COUNT( * ) AS SIGNED ) ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2864
SELECT DISTINCT - ( CAST ( - COUNT ( * ) AS INTEGER ) ) AS col1 FROM tab1 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 63 + + col2 col2 FROM tab0 AS cor0
----
110
162
73

query I rowsort
SELECT DISTINCT + col1 * + 81 + 96 FROM tab2 AS cor0
----
4227
5523
6333

query I rowsort
SELECT ALL - + ( - 98 ) + ( col1 + - ( col1 ) ) FROM tab2 AS cor0
----
98
98
98

query I rowsort
SELECT ALL 79 AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT + ( col1 ) AS col0 FROM tab1 WHERE NOT 24 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2870
SELECT + CAST( - ( - col2 ) AS SIGNED ) FROM tab0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-2870
SELECT + CAST ( - ( - col2 ) AS INTEGER ) FROM tab0
----
10
47
99

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2871
SELECT ALL * FROM tab2 WHERE 62 <> ( 18 + 79 ) OR NOT + CAST( + col1 AS SIGNED ) <> NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-2871
SELECT ALL * FROM tab2 WHERE 62 <> ( 18 + 79 ) OR NOT + CAST ( + col1 AS INTEGER ) <> NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - col0 * + col1 - col1 FROM tab2 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT col2 + col0 FROM tab0 WHERE NOT NULL >= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 89 col1 FROM tab1
----
89
89
89

onlyif mysql # aggregate syntax: 
query I rowsort label-2875
SELECT ALL MAX( - col1 ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2875
SELECT ALL MAX ( - col1 ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2876
SELECT ALL COUNT( * ) + 11 FROM tab1 AS cor0 WHERE NOT ( col1 ) IS NOT NULL
----
11

skipif mysql # not compatible
query I rowsort label-2876
SELECT ALL COUNT ( * ) + 11 FROM tab1 AS cor0 WHERE NOT ( col1 ) IS NOT NULL
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-2877
SELECT SUM( DISTINCT col0 ) * + 95 AS col0 FROM tab0
----
18905

skipif mysql # not compatible
query I rowsort label-2877
SELECT SUM ( DISTINCT col0 ) * + 95 AS col0 FROM tab0
----
18905

onlyif mysql # aggregate syntax: 
query I rowsort label-2878
SELECT MIN( DISTINCT ( + col2 ) ) AS col0 FROM tab1
----
59

skipif mysql # not compatible
query I rowsort label-2878
SELECT MIN ( DISTINCT ( + col2 ) ) AS col0 FROM tab1
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-2879
SELECT ALL 74 + - COUNT( * ) * - + ( - 62 ) FROM tab1 AS cor0
----
-112

skipif mysql # not compatible
query I rowsort label-2879
SELECT ALL 74 + - COUNT ( * ) * - + ( - 62 ) FROM tab1 AS cor0
----
-112

query I rowsort
SELECT DISTINCT - - 34 * + AVG ( ALL col1 + - 39 * col0 ) AS col1 FROM tab1 AS cor0 WHERE 42 <= NULL
----
NULL

query I rowsort
SELECT ALL 37 FROM tab0 AS cor0 WHERE NOT ( + col2 ) >= 61
----
37
37

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) IN ( col0 + + 55 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( - col0 * col0 * col1 ) <= ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2884
SELECT - + col1 DIV - col0 + + - 51 AS col2 FROM tab0 AS cor0
----
-46
-51
-51

skipif mysql # not compatible
query I rowsort label-2884
SELECT - + col1 / - col0 + + - 51 AS col2 FROM tab0 AS cor0
----
-46
-51
-51

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( col2 ) NOT BETWEEN - col2 AND + 84 + 9
----
85
5
59
91
47
68

query I rowsort
SELECT + col0 + - 33 FROM tab1 cor0
----
18
52
58

query I rowsort
SELECT DISTINCT col0 AS col0 FROM tab0 AS cor0 WHERE NOT col1 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - - ( + 59 ) FROM tab1 cor0
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-2889
SELECT SUM( 31 ) * - COUNT( - + col1 ) * - COUNT( * ) FROM tab1
----
837

skipif mysql # not compatible
query I rowsort label-2889
SELECT SUM ( 31 ) * - COUNT ( - + col1 ) * - COUNT ( * ) FROM tab1
----
837

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2890
SELECT ( 8 ) * + col1 * + col1 * CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2890
SELECT ( 8 ) * + col1 * + col1 * CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2891
SELECT ALL - MIN( - - 51 ) * + SUM( DISTINCT - col0 ) FROM tab2
----
9435

skipif mysql # not compatible
query I rowsort label-2891
SELECT ALL - MIN ( - - 51 ) * + SUM ( DISTINCT - col0 ) FROM tab2
----
9435

onlyif mysql # DIV for integer division: 
query I rowsort label-2892
SELECT + col1 DIV + col2 * - col0 col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2892
SELECT + col1 / + col2 * - col0 col2 FROM tab1
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ( + + col2 ) col1, + 31 AS col1 FROM tab2
----
23
31
40
31
58
31

query II rowsort
SELECT ALL - 80 * - 59 AS col1, + 52 AS col0 FROM tab0
----
4720
52
4720
52
4720
52

query II rowsort
SELECT ALL + - 9 * + col2, - ( 7 ) AS col0 FROM tab2 AS cor0
----
-207
-7
-360
-7
-522
-7

query II rowsort
SELECT DISTINCT - + col0 * + col2 AS col2, col2 FROM tab2 cor0
----
-1058
23
-2560
40
-4350
58

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( + 97 IS NOT NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col2 col0, col1 + - - 8 * 89 FROM tab1 cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL - ( + + 70 ) * - col2 FROM tab0
----
3290
6930
700

query I rowsort
SELECT - - 0 - + 95 AS col1 FROM tab2 WHERE NULL > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2901
SELECT - CAST( NULL AS SIGNED ) + 25 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2901
SELECT - CAST ( NULL AS INTEGER ) + 25 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT + + col0 FROM tab0 WHERE NULL BETWEEN ( NULL ) AND 90 * 51
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col2 + + col2 * - 28 * + 66 <> - col0
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( + - 81 ) / col2 BETWEEN + 24 AND col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2905
SELECT ALL - 92 DIV + ( - COUNT( * ) ) col1 FROM tab2 AS cor0
----
30

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2905
SELECT ALL - 92 / + ( - COUNT ( * ) ) col1 FROM tab2 AS cor0
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-2906
SELECT ALL + COUNT( + col1 ) col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2906
SELECT ALL + COUNT ( + col1 ) col2 FROM tab1 AS cor0
----
3

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( - col1 ) * 97 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2908
SELECT DISTINCT + 32 * - + CAST( - col2 AS SIGNED ) col2 FROM tab1 AS cor0 WHERE NOT ( 96 ) IS NOT NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2908
SELECT DISTINCT + 32 * - + CAST ( - col2 AS INTEGER ) col2 FROM tab1 AS cor0 WHERE NOT ( 96 ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col1 + col0 * + col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + + col2 * - 5 * - + 1 FROM tab0 cor0
----
235
495
50

onlyif mysql # DIV for integer division: 
query II rowsort label-2911
SELECT + - col2, + 34 DIV col0 AS col0 FROM tab1 AS cor0
----
-59
0
-68
0
-96
0

skipif mysql # not compatible
query II rowsort label-2911
SELECT + - col2, + 34 / col0 AS col0 FROM tab1 AS cor0
----
-59
0
-68
0
-96
0

query I rowsort
SELECT + ( - col2 ) + 94 FROM tab1 WHERE NOT NULL < ( + col0 + + + col2 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2913
SELECT DISTINCT COUNT( * ) col0, - 42 FROM tab0
----
3
-42

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2913
SELECT DISTINCT COUNT ( * ) col0, - 42 FROM tab0
----
3
-42

query II rowsort
SELECT - ( 22 ), col1 AS col0 FROM tab1
----
-22
14
-22
47
-22
5

query I rowsort
SELECT DISTINCT - - col0 FROM tab0 WHERE ( NOT ( + col2 ) IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2916
SELECT - + MIN( ( 44 ) ) + COUNT( * ) / - 66 AS col1 FROM tab1 WHERE NOT NULL BETWEEN col1 AND - - 35
----
NULL

skipif mysql # not compatible
query I rowsort label-2916
SELECT - + MIN ( ( 44 ) ) + COUNT ( * ) / - 66 AS col1 FROM tab1 WHERE NOT NULL BETWEEN col1 AND - - 35
----
NULL

query I rowsort
SELECT DISTINCT 4 * + + col2 AS col2 FROM tab0
----
188
396
40

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL IN ( - - col1 + ( + col2 ) / - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2919
SELECT COUNT( * ) * - COUNT( * ) FROM tab0 WHERE NOT ( + - 23 / col2 ) NOT BETWEEN 56 / + col1 - + + 84 + + col1 AND + 84 * 27
----
-9

skipif mysql # not compatible
query I rowsort label-2919
SELECT COUNT ( * ) * - COUNT ( * ) FROM tab0 WHERE NOT ( + - 23 / col2 ) NOT BETWEEN 56 / + col1 - + + 84 + + col1 AND + 84 * 27
----
-9

query I rowsort
SELECT DISTINCT col0 FROM tab1 cor0 WHERE col1 <= + - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2921
SELECT - CAST( - - col0 AS SIGNED ) + + col1 + ( col1 ) AS col0 FROM tab2 AS cor0 WHERE NULL IS NULL
----
56
59
90

skipif mysql # not compatible
query I rowsort label-2921
SELECT - CAST ( - - col0 AS INTEGER ) + + col1 + ( col1 ) AS col0 FROM tab2 AS cor0 WHERE NULL IS NULL
----
56
59
90

query I rowsort
SELECT - 37 * - + col2 - - col1 AS col2 FROM tab0 AS cor0
----
1820
3664
391

query I rowsort
SELECT DISTINCT - 43 * col0 + - col0 * + + col2 * - col0 AS col2 FROM tab2 AS cor0
----
161088
323025
46690

query I rowsort
SELECT ALL - col1 + - - col2 AS col0 FROM tab2
----
-28
-37
-9

query III rowsort
SELECT * FROM tab1 WHERE - - col1 BETWEEN NULL AND - - 73 + col0
----

query I rowsort
SELECT col0 + + col0 + - 34 FROM tab2
----
116
58
94

query I rowsort
SELECT 83 + + col2 FROM tab1
----
142
151
179

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col0 NOT BETWEEN + col1 / + 52 AND - 76
----

query III rowsort
SELECT ALL * FROM tab1 WHERE - - ( - 14 ) BETWEEN ( + 53 * + col2 ) AND ( col0 * - col2 )
----

query I rowsort
SELECT ALL ( col0 ) * - - 56 FROM tab1
----
2856
4760
5096

query I rowsort
SELECT DISTINCT ( - 23 ) AS col1 FROM tab1
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-2932
SELECT ALL + + ( - MIN( ALL + ( + col2 ) ) ) AS col2 FROM tab0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2932
SELECT ALL + + ( - MIN ( ALL + ( + col2 ) ) ) AS col2 FROM tab0 WHERE NOT NULL IS NULL
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE - 20 * + + ( - col1 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT col1 + + - col2 AS col2 FROM tab1 AS cor0
----
-21
-54
-82

query I rowsort
SELECT DISTINCT 44 + - col0 FROM tab2
----
-2
-20
-31

query II rowsort
SELECT DISTINCT + ( + + 55 ), col0 + - col2 * - + col0 AS col2 FROM tab2
----
55
1104
55
2624
55
4425

query I rowsort
SELECT DISTINCT + 50 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
50

query I rowsort
SELECT DISTINCT 93 AS col1 FROM tab1 AS cor0 WHERE NOT + col0 + - col2 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2939
SELECT + col1 * - + col0 AS col2 FROM tab0 cor0 WHERE NOT CAST( NULL AS SIGNED ) * + col1 * + + col1 * - - col2 IS NOT NULL
----
-1215
-1827
-97

skipif mysql # not compatible
query I rowsort label-2939
SELECT + col1 * - + col0 AS col2 FROM tab0 cor0 WHERE NOT CAST ( NULL AS INTEGER ) * + col1 * + + col1 * - - col2 IS NOT NULL
----
-1215
-1827
-97

query I rowsort
SELECT ALL - 45 - - 8 AS col1 FROM tab0 WHERE - col0 - + 22 + - col2 IN ( + - 13 + 31 )
----

query I rowsort
SELECT DISTINCT + col0 AS col2 FROM tab0 WHERE col1 <= - + ( - 32 )
----
87
97

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE 71 + + col0 + - 96 / col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2943
SELECT + - COUNT( * ) / - CAST( NULL AS SIGNED ) col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2943
SELECT + - COUNT ( * ) / - CAST ( NULL AS INTEGER ) col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2944
SELECT - COUNT( * ) DIV - - COUNT( * ) FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-2944
SELECT - COUNT ( * ) / - - COUNT ( * ) FROM tab1
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-2945
SELECT ALL col2 DIV - - col2 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2945
SELECT ALL col2 / - - col2 FROM tab1
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2946
SELECT MIN( + 17 ) AS col1 FROM tab1
----
17

skipif mysql # not compatible
query I rowsort label-2946
SELECT MIN ( + 17 ) AS col1 FROM tab1
----
17

query II rowsort
SELECT DISTINCT - - col2 AS col0, col0 AS col1 FROM tab2 AS cor0
----
23
46
40
64
58
75

query II rowsort
SELECT DISTINCT col2 AS col0, + 63 FROM tab2 AS cor0
----
23
63
40
63
58
63

onlyif mysql # aggregate syntax: 
query I rowsort label-2949
SELECT DISTINCT + COUNT( + + 79 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-2949
SELECT DISTINCT + COUNT ( + + 79 ) FROM tab0
----
3

query II rowsort
SELECT ALL + col0, - col0 FROM tab0
----
15
-15
87
-87
97
-97

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 4 * - col0 IS NULL
----

query I rowsort
SELECT DISTINCT col0 + + + col2 * + + 5 AS col0 FROM tab0 AS cor0
----
137
250
592

onlyif mysql # DIV for integer division: 
query I rowsort label-2953
SELECT DISTINCT - 77 DIV col2 + col2 FROM tab2 AS cor0
----
20
39
57

skipif mysql # not compatible
query I rowsort label-2953
SELECT DISTINCT - 77 / col2 + col2 FROM tab2 AS cor0
----
20
39
57

query II rowsort
SELECT 4 AS col0, col0 AS col0 FROM tab1 AS cor0
----
4
51
4
85
4
91

onlyif mysql # DIV for integer division: 
query I rowsort label-2955
SELECT ALL - + col0 * - col1 + - ( 36 ) + 70 DIV + 53 AS col1 FROM tab1 AS cor0
----
390
4242
679

skipif mysql # not compatible
query I rowsort label-2955
SELECT ALL - + col0 * - col1 + - ( 36 ) + 70 / + 53 AS col1 FROM tab1 AS cor0
----
390
4242
679

onlyif mysql # aggregate syntax: 
query I rowsort label-2956
SELECT ALL COUNT( * ) FROM tab2 AS cor0 WHERE NOT - col2 + - - col1 * + 81 NOT IN ( + - col1 )
----
0

skipif mysql # not compatible
query I rowsort label-2956
SELECT ALL COUNT ( * ) FROM tab2 AS cor0 WHERE NOT - col2 + - - col1 * + 81 NOT IN ( + - col1 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2957
SELECT DISTINCT - 38 * + MAX( + + col0 ) FROM tab2
----
-2850

skipif mysql # not compatible
query I rowsort label-2957
SELECT DISTINCT - 38 * + MAX ( + + col0 ) FROM tab2
----
-2850

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2958
SELECT ALL + ( + CAST( + - 55 AS SIGNED ) ) AS col1 FROM tab2
----
-55
-55
-55

skipif mysql # not compatible
query I rowsort label-2958
SELECT ALL + ( + CAST ( + - 55 AS INTEGER ) ) AS col1 FROM tab2
----
-55
-55
-55

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2959
SELECT * FROM tab1 WHERE ( CAST( + col1 AS SIGNED ) ) NOT BETWEEN + 55 AND - + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-2959
SELECT * FROM tab1 WHERE ( CAST ( + col1 AS INTEGER ) ) NOT BETWEEN + 55 AND - + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT ALL - col2 * col0, + ( - col0 ) AS col2 FROM tab0
----
-705
-15
-870
-87
-9603
-97

query I rowsort
SELECT - 45 * - col1 - - 35 FROM tab1
----
2150
260
665

onlyif mysql # DIV for integer division: 
query I rowsort label-2962
SELECT col1 - + - 59 * - col2 DIV col2 FROM tab2
----
-8
18
8

skipif mysql # not compatible
query I rowsort label-2962
SELECT col1 - + - 59 * - col2 / col2 FROM tab2
----
-8
18
8

query I rowsort
SELECT DISTINCT + 86 AS col0 FROM tab2, tab2 cor0
----
86

onlyif mysql # DIV for integer division: 
query I rowsort label-2964
SELECT - - col1 + 98 DIV + col1 FROM tab1 AS cor0
----
21
24
49

skipif mysql # not compatible
query I rowsort label-2964
SELECT - - col1 + 98 / + col1 FROM tab1 AS cor0
----
21
24
49

query III rowsort
SELECT * FROM tab2 WHERE NOT + - ( col2 ) + + col0 + 23 / - + col2 * + - 75 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2966
SELECT DISTINCT col0 DIV - 28 col0 FROM tab2
----
-1
-2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2966
SELECT DISTINCT col0 / - 28 col0 FROM tab2
----
-1
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-2967
SELECT ALL + 22 DIV - + 89 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2967
SELECT ALL + 22 / - + 89 FROM tab1
----
0
0
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2968
SELECT ALL + COUNT( * ) / 54 * + + CAST( NULL AS DECIMAL ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-2968
SELECT ALL + COUNT ( * ) / 54 * + + CAST ( NULL AS REAL ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2969
SELECT ALL - SUM( DISTINCT - - col1 ) FROM tab0
----
-103

skipif mysql # not compatible
query I rowsort label-2969
SELECT ALL - SUM ( DISTINCT - - col1 ) FROM tab0
----
-103

query II rowsort
SELECT DISTINCT + col0 AS col0, col2 AS col2 FROM tab2 AS cor0
----
46
23
64
40
75
58

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col0 - - col0 - - 56 < ( NULL )
----

query I rowsort
SELECT ALL col0 * col1 * 23 FROM tab1 AS cor0
----
16422
9775
98371

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT + ( + + col1 ) + - col1 / 68 + - col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2974
SELECT - + MAX( ALL - col0 ) DIV 35 AS col2 FROM tab1 cor0
----
1

skipif mysql # not compatible
query I rowsort label-2974
SELECT - + MAX ( ALL - col0 ) / 35 AS col2 FROM tab1 cor0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-2975
SELECT DISTINCT + 99 DIV - 10 + - col2 + 49 FROM tab2 AS cor0
----
-18
0
17

skipif mysql # not compatible
query I rowsort label-2975
SELECT DISTINCT + 99 / - 10 + - col2 + 49 FROM tab2 AS cor0
----
-18
0
17

onlyif mysql # DIV for integer division: 
query I rowsort label-2976
SELECT + 1 DIV col1 * - + col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2976
SELECT + 1 / col1 * - + col0 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2977
SELECT - CAST( NULL AS DECIMAL ) * + 37 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2977
SELECT - CAST ( NULL AS REAL ) * + 37 FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 WHERE NOT 56 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( - 76 ) >= NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + 30 IS NOT NULL
----

query I rowsort
SELECT ALL - 10 * - ( ( col0 ) ) FROM tab1
----
510
850
910

onlyif mysql # aggregate syntax: 
query I rowsort label-2982
SELECT ALL + COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE - col0 * ( - + 17 ) IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-2982
SELECT ALL + COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE - col0 * ( - + 17 ) IS NOT NULL
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-2983
SELECT + 39 + col0 DIV + 51 AS col2 FROM tab1 AS cor0
----
40
40
40

skipif mysql # not compatible
query I rowsort label-2983
SELECT + 39 + col0 / + 51 AS col2 FROM tab1 AS cor0
----
40
40
40

query I rowsort
SELECT - + 69 + - col1 + + col1 FROM tab2 cor0
----
-69
-69
-69

query I rowsort
SELECT + col0 FROM tab1 AS cor0 WHERE NOT col2 NOT BETWEEN NULL AND col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2986
SELECT - 84 * 26 DIV + - col2 FROM tab2
----
37
54
94

skipif mysql # not compatible
query I rowsort label-2986
SELECT - 84 * 26 / + - col2 FROM tab2
----
37
54
94

query I rowsort
SELECT DISTINCT + col2 * - - col2 FROM tab2
----
1600
3364
529

query I rowsort
SELECT DISTINCT + col1 FROM tab1 AS cor0 WHERE - 74 <= - 49 * col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2989
SELECT ALL 92 + - COUNT( * ) * + COUNT( * ) * + COUNT( * ) AS col1 FROM tab2 AS cor0
----
65

skipif mysql # not compatible
query I rowsort label-2989
SELECT ALL 92 + - COUNT ( * ) * + COUNT ( * ) * + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-2990
SELECT 22 + COUNT( * ) FROM tab0 AS cor0
----
25

skipif mysql # not compatible
query I rowsort label-2990
SELECT 22 + COUNT ( * ) FROM tab0 AS cor0
----
25

query I rowsort
SELECT DISTINCT + col1 + + + col2 FROM tab1
----
110
115
64

onlyif mysql # aggregate syntax: 
query II rowsort label-2992
SELECT - COUNT( * ) + COUNT( * ), - MIN( DISTINCT - 46 ) AS col2 FROM tab0 WHERE ( - col0 ) NOT BETWEEN col1 * + col2 + + - 79 AND NULL AND NULL IN ( + col2 * col1 * ( - + col1 ) )
----
0
NULL

skipif mysql # not compatible
query II rowsort label-2992
SELECT - COUNT ( * ) + COUNT ( * ), - MIN ( DISTINCT - 46 ) AS col2 FROM tab0 WHERE ( - col0 ) NOT BETWEEN col1 * + col2 + + - 79 AND NULL AND NULL IN ( + col2 * col1 * ( - + col1 ) )
----
0
NULL

query II rowsort
SELECT ALL col1 AS col0, + col0 * + col2 AS col2 FROM tab1
----
14
4896
47
6188
5
5015

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 39 col0 FROM tab0
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-2995
SELECT 71 * + + COUNT( * ) + - 84 AS col1 FROM tab0
----
129

skipif mysql # not compatible
query I rowsort label-2995
SELECT 71 * + + COUNT ( * ) + - 84 AS col1 FROM tab0
----
129

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( - col0 ) <= NULL
----

query I rowsort
SELECT - 50 * 75 AS col2 FROM tab1
----
-3750
-3750
-3750

query I rowsort
SELECT DISTINCT - 64 + + col2 * - 0 FROM tab2 AS cor0
----
-64

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL IN ( + 17, + ( + 55 ) + col2 )
----

query I rowsort
SELECT - - 34 * + - ( - + col2 ) FROM tab1 AS cor0
----
2006
2312
3264

onlyif mysql # aggregate syntax: 
query I rowsort label-3001
SELECT - 33 * COUNT( * ) + - + 21 FROM tab0 AS cor0
----
-120

skipif mysql # not compatible
query I rowsort label-3001
SELECT - 33 * COUNT ( * ) + - + 21 FROM tab0 AS cor0
----
-120

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL = ( - + col1 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3003
SELECT DISTINCT ( + - ( MAX( ALL + 23 ) ) ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-23

skipif mysql # not compatible
query I rowsort label-3003
SELECT DISTINCT ( + - ( MAX ( ALL + 23 ) ) ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-23

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3004
SELECT * FROM tab2 AS cor0 WHERE NOT - col0 * + ( + col1 ) NOT IN ( + col0 * 32 - - CAST( NULL AS SIGNED ) + - col2 * + 2 / 15 )
----

skipif mysql # not compatible
query III rowsort label-3004
SELECT * FROM tab2 AS cor0 WHERE NOT - col0 * + ( + col1 ) NOT IN ( + col0 * 32 - - CAST ( NULL AS INTEGER ) + - col2 * + 2 / 15 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) <= + - col2
----

query I rowsort
SELECT ALL + - 45 * + col2 AS col1 FROM tab2 AS cor0
----
-1035
-1800
-2610

query I rowsort
SELECT + 34 * - 88 + col1 + - + 67 AS col0 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN - col0 * col0 / - col2 * + 0 AND 37
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col1 NOT IN ( + col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 45 AS col0 FROM tab0 AS cor0 WHERE NOT NULL <> - col1
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3010
SELECT ALL + + COUNT( * ) * + COUNT( * ) AS col2, COUNT( DISTINCT col2 ) AS col2 FROM tab1 AS cor0
----
9
3

skipif mysql # not compatible
query II rowsort label-3010
SELECT ALL + + COUNT ( * ) * + COUNT ( * ) AS col2, COUNT ( DISTINCT col2 ) AS col2 FROM tab1 AS cor0
----
9
3

query I rowsort
SELECT 71 * - col1 FROM tab0
----
-1491
-5751
-71

query I rowsort
SELECT DISTINCT 39 + + 62 AS col2 FROM tab2 WHERE ( NULL ) IS NULL
----
101

onlyif mysql # aggregate syntax: 
query I rowsort label-3013
SELECT - COUNT( * ) * - COUNT( * ) FROM tab2 WHERE NOT ( NULL <> - col0 )
----
0

skipif mysql # not compatible
query I rowsort label-3013
SELECT - COUNT ( * ) * - COUNT ( * ) FROM tab2 WHERE NOT ( NULL <> - col0 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3014
SELECT - MIN( DISTINCT - + col2 ) FROM tab2
----
58

skipif mysql # not compatible
query I rowsort label-3014
SELECT - MIN ( DISTINCT - + col2 ) FROM tab2
----
58

onlyif mysql # aggregate syntax: 
query II rowsort label-3015
SELECT DISTINCT COUNT( * ), 32 col2 FROM tab0
----
3
32

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3015
SELECT DISTINCT COUNT ( * ), 32 col2 FROM tab0
----
3
32

onlyif mysql # aggregate syntax: 
query I rowsort label-3016
SELECT DISTINCT - 44 * - + COUNT( * ) FROM tab2
----
132

skipif mysql # not compatible
query I rowsort label-3016
SELECT DISTINCT - 44 * - + COUNT ( * ) FROM tab2
----
132

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 + - col1 * + col1 IS NULL
----

query I rowsort
SELECT ALL - col2 - col1 * - col0 FROM tab0 AS cor0 WHERE col2 = - - col1 * col1 * - + 13 - + col0
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL <> + 14 + - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3020
SELECT COUNT( * ) + ( + COUNT( * ) ) AS col2 FROM tab2 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-3020
SELECT COUNT ( * ) + ( + COUNT ( * ) ) AS col2 FROM tab2 AS cor0
----
6

query I rowsort
SELECT ( col2 ) AS col2 FROM tab2 cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3022
SELECT ALL + + ( + COUNT( * ) ) - + + COUNT( * ) AS col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3022
SELECT ALL + + ( + COUNT ( * ) ) - + + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
0

query I rowsort
SELECT DISTINCT + col1 + + 32 * - ( + col2 ) FROM tab0 AS cor0
----
-1423
-299
-3167

query I rowsort
SELECT + 42 * + + ( col1 ) FROM tab2 AS cor0
----
2142
2814
3234

query I rowsort
SELECT - 98 + - - 52 AS col1 FROM tab2 WHERE + 7 IS NOT NULL
----
-46
-46
-46

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 93 * + - col1 col0 FROM tab1
----
-1302
-4371
-465

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 44 col0 FROM tab0
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-3028
SELECT COUNT( + + col1 ) - - MIN( 6 ) col1 FROM tab2
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3028
SELECT COUNT ( + + col1 ) - - MIN ( 6 ) col1 FROM tab2
----
9

query II rowsort
SELECT DISTINCT + 85 AS col1, - col0 * - - col1 + col1 AS col0 FROM tab2
----
85
-2295
85
-4851
85
-4958

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3030
SELECT DISTINCT CAST( NULL AS SIGNED ) / COUNT( * ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3030
SELECT DISTINCT CAST ( NULL AS INTEGER ) / COUNT ( * ) AS col1 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3031
SELECT - 7 * + COUNT( * ) col1 FROM tab1 AS cor0
----
-21

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3031
SELECT - 7 * + COUNT ( * ) col1 FROM tab1 AS cor0
----
-21

query I rowsort
SELECT - col0 * - - 35 FROM tab2
----
-1610
-2240
-2625

query II rowsort
SELECT - 62, col1 FROM tab0 AS cor0
----
-62
1
-62
21
-62
81

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3034
SELECT DISTINCT + + CAST( NULL AS SIGNED ) AS col0, + 2 AS col1 FROM tab2 AS cor0 WHERE 67 + + col0 NOT BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query II rowsort label-3034
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) AS col0, + 2 AS col1 FROM tab2 AS cor0 WHERE 67 + + col0 NOT BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3035
SELECT + CAST( - + MIN( DISTINCT - - 84 ) AS SIGNED ) col0 FROM tab0 AS cor0
----
-84

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3035
SELECT + CAST ( - + MIN ( DISTINCT - - 84 ) AS INTEGER ) col0 FROM tab0 AS cor0
----
-84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3036
SELECT + col1 * CAST( NULL AS SIGNED ) + + col1 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3036
SELECT + col1 * CAST ( NULL AS INTEGER ) + + col1 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3037
SELECT + col2 * col0 * - 9 / + CAST( NULL AS DECIMAL ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3037
SELECT + col2 * col0 * - 9 / + CAST ( NULL AS REAL ) FROM tab0
----
NULL
NULL
NULL

query II rowsort
SELECT ALL + 83 * - 32 AS col0, + 85 AS col2 FROM tab2
----
-2656
85
-2656
85
-2656
85

onlyif mysql # aggregate syntax: 
query I rowsort label-3039
SELECT + COUNT( * ) + - 11 FROM tab1 AS cor0 WHERE 70 IS NOT NULL
----
-8

skipif mysql # not compatible
query I rowsort label-3039
SELECT + COUNT ( * ) + - 11 FROM tab1 AS cor0 WHERE 70 IS NOT NULL
----
-8

query I rowsort
SELECT DISTINCT + 50 * 42 + + col1 + + 0 FROM tab2 AS cor0
----
2151
2167
2177

query I rowsort
SELECT col0 AS col0 FROM tab2 AS cor0 WHERE col2 * - ( - - col1 ) + + col0 / + 49 + + 96 * + 88 * + col2 NOT IN ( col2, 75 )
----
46
64
75

query I rowsort
SELECT - - col2 * + 60 AS col1 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT 74 FROM tab1 cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 2ccf8ef3f477e1a1a3e30c8b8154ff31

query I rowsort
SELECT col1 * - ( - col1 ) - - col0 * + + col0 FROM tab1 AS cor0
----
10490
2797
7250

query I rowsort
SELECT DISTINCT 29 + + + 75 - - col0 * - - col1 FROM tab1 AS cor0
----
4381
529
818

onlyif mysql # DIV for integer division: 
query I rowsort label-3046
SELECT ALL - col2 DIV col0 - + 48 * + 56 FROM tab2 AS cor0
----
-2688
-2688
-2688

skipif mysql # not compatible
query I rowsort label-3046
SELECT ALL - col2 / col0 - + 48 * + 56 FROM tab2 AS cor0
----
-2688
-2688
-2688

query I rowsort
SELECT ALL - 65 AS col0 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE - 41 < NULL
----

query III rowsort
SELECT * FROM tab1 WHERE ( NULL ) <> ( NULL )
----

query I rowsort
SELECT + 76 * + - col1 * - col0 * + 11 * col2 FROM tab2
----
164792320
243652200
45108888

query I rowsort
SELECT 13 * col1 AS col1 FROM tab0
----
1053
13
273

onlyif mysql # aggregate syntax: 
query I rowsort label-3052
SELECT ALL - - MIN( ALL 41 ) FROM tab1 AS cor0
----
41

skipif mysql # not compatible
query I rowsort label-3052
SELECT ALL - - MIN ( ALL 41 ) FROM tab1 AS cor0
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-3053
SELECT ALL MAX( ALL + - 79 ) col1 FROM tab2 AS cor0
----
-79

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3053
SELECT ALL MAX ( ALL + - 79 ) col1 FROM tab2 AS cor0
----
-79

query I rowsort
SELECT ALL - + col1 AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3055
SELECT ALL 33 * ( + MIN( DISTINCT + 2 ) ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
66

skipif mysql # not compatible
query I rowsort label-3055
SELECT ALL 33 * ( + MIN ( DISTINCT + 2 ) ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
66

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + 65 * + 72 IN ( + ( + col2 ) / - + col1 * - + col1 + + + 51 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 col1, 64 col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT ALL + + col2 FROM tab1 AS cor0 WHERE NOT - col1 * - col1 = 86 * col0 - col2
----
59
68
96

query I rowsort
SELECT ALL + + 2 AS col1 FROM tab2 AS cor0
----
2
2
2

query I rowsort
SELECT ALL + + 72 FROM tab1 WHERE NOT ( NULL ) > ( NULL )
----

query I rowsort
SELECT + 82 * + + col0 FROM tab1
----
4182
6970
7462

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3062
SELECT ALL 30 * + CAST( - col0 AS SIGNED ) AS col0 FROM tab0
----
-2610
-2910
-450

skipif mysql # not compatible
query I rowsort label-3062
SELECT ALL 30 * + CAST ( - col0 AS INTEGER ) AS col0 FROM tab0
----
-2610
-2910
-450

query II rowsort
SELECT 10 AS col0, col0 AS col2 FROM tab2
----
10
46
10
64
10
75

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3064
SELECT CAST( NULL AS SIGNED ) col2, + ( - + CAST( - 35 AS SIGNED ) ) + 86 FROM tab2
----
NULL
121
NULL
121
NULL
121

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3064
SELECT CAST ( NULL AS INTEGER ) col2, + ( - + CAST ( - 35 AS INTEGER ) ) + 86 FROM tab2
----
NULL
121
NULL
121
NULL
121

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - 95 * - 35 * - col2 + col2 IS NOT NULL
----

query I rowsort
SELECT - 16 * col0 * + col0 * - col1 FROM tab1
----
578000
582624
6227312

query I rowsort
SELECT ALL 3 * + - col2 * + 42 AS col0 FROM tab1
----
-12096
-7434
-8568

onlyif mysql # aggregate syntax: 
query I rowsort label-3068
SELECT DISTINCT + - ( MIN( - - col1 ) ) AS col1 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-3068
SELECT DISTINCT + - ( MIN ( - - col1 ) ) AS col1 FROM tab0 AS cor0
----
-1

query I rowsort
SELECT DISTINCT - col1 + + 47 AS col2 FROM tab2 AS cor0
----
-20
-30
-4

onlyif mysql # DIV for integer division: 
query I rowsort label-3070
SELECT DISTINCT - col1 * - 8 + + 96 DIV - col1 + + + 63 AS col2 FROM tab1 AS cor0
----
169
437
84

skipif mysql # not compatible
query I rowsort label-3070
SELECT DISTINCT - col1 * - 8 + + 96 / - col1 + + + 63 AS col2 FROM tab1 AS cor0
----
169
437
84

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - 0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - col2 * - col0 + - 71 FROM tab0
----
634
799
9532

query I rowsort
SELECT - 15 + + col1 FROM tab1
----
-1
-10
32

query II rowsort
SELECT col2, 40 * + col0 * + col0 FROM tab0 WHERE ( ( + 36 < + - col2 ) )
----

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT + 38 > NULL
----

query I rowsort
SELECT DISTINCT + col1 FROM tab2 AS cor0 WHERE NULL < col1
----

query I rowsort
SELECT - ( + + col0 ) - - col1 + + + 31 FROM tab0 AS cor0
----
-35
-65
97

query II rowsort
SELECT - + 9 - - col1 AS col0, - col1 FROM tab1 AS cor0
----
-4
-5
38
-47
5
-14

onlyif mysql # DIV for integer division: 
query I rowsort label-3079
SELECT DISTINCT - col1 DIV + 84 * col0 AS col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3079
SELECT DISTINCT - col1 / + 84 * col0 AS col1 FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3080
SELECT MIN( DISTINCT + 73 ) FROM tab1
----
73

skipif mysql # not compatible
query I rowsort label-3080
SELECT MIN ( DISTINCT + 73 ) FROM tab1
----
73

query II rowsort
SELECT col0, + ( col0 ) AS col1 FROM tab2
----
46
46
64
64
75
75

query I rowsort
SELECT ALL - AVG ( + 11 ) FROM tab2 WHERE + 24 >= + col0
----
NULL

query I rowsort
SELECT DISTINCT - 54 * - col1 FROM tab2
----
2754
3618
4158

query I rowsort
SELECT ALL - 50 * col2 / + col0 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3085
SELECT DISTINCT + SUM( ALL 78 ) AS col2 FROM tab0 AS cor0
----
234

skipif mysql # not compatible
query I rowsort label-3085
SELECT DISTINCT + SUM ( ALL 78 ) AS col2 FROM tab0 AS cor0
----
234

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT col2 + + + 73 BETWEEN col0 * + col2 AND + + col1 + col1 * col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL col2 * + + 32 + + 96 + - 64 * + + col2 AS col0 FROM tab0 AS cor0
----
-1408
-224
-3072

query I rowsort
SELECT - 48 * col2 AS col1 FROM tab1 cor0
----
-2832
-3264
-4608

query I rowsort
SELECT DISTINCT 28 * + col1 AS col0 FROM tab0 AS cor0
----
2268
28
588

onlyif mysql # aggregate syntax: 
query I rowsort label-3090
SELECT ALL - + COUNT( * ) * + COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE col0 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3090
SELECT ALL - + COUNT ( * ) * + COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE col0 IS NULL
----
0

query I rowsort
SELECT ALL + - ( + col1 ) * - col0 + + - col2 + + 50 + - col1 + + + col0 FROM tab0 AS cor0
----
1152
144
1933

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 15 * + ( - col1 ) col2 FROM tab2 AS cor0
----
-1005
-1155
-765

query I rowsort
SELECT DISTINCT - - col2 + col1 * col1 AS col1 FROM tab1 AS cor0
----
2277
292
84

query I rowsort
SELECT 76 * + col2 * + col1 * - - 15 FROM tab0
----
112860
239400
4339980

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3095
SELECT col2 / - + col1 + ( + + CAST( NULL AS SIGNED ) ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3095
SELECT col2 / - + col1 + ( + + CAST ( NULL AS INTEGER ) ) FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 99 > + + col1
----

query I rowsort
SELECT - col1 + + col0 + - col2 * col0 FROM tab0 cor0
----
-771
-804
-9507

onlyif mysql # aggregate syntax: 
query II rowsort label-3098
SELECT - + 1, COUNT( * ) - + + COUNT( * ) AS col2 FROM tab0 AS cor0
----
-1
0

skipif mysql # not compatible
query II rowsort label-3098
SELECT - + 1, COUNT ( * ) - + + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-1
0

query I rowsort
SELECT ALL 59 AS col1 FROM tab0 cor0 WHERE col1 * + 92 IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE + + col0 + - col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - col2 - - col2 + col2 + - - col1 * - col2 * - 60 + - 31 AS col2 FROM tab1
----
17728
191797
80705

onlyif mysql # aggregate syntax: 
query I rowsort label-3102
SELECT - ( - 29 ) + - + COUNT( * ) AS col2 FROM tab0 AS cor0
----
26

skipif mysql # not compatible
query I rowsort label-3102
SELECT - ( - 29 ) + - + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3103
SELECT - - col0 + - CAST( + col2 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
17
23
24

skipif mysql # not compatible
query I rowsort label-3103
SELECT - - col0 + - CAST ( + col2 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
17
23
24

onlyif mysql # aggregate syntax: 
query I rowsort label-3104
SELECT DISTINCT + MIN( ALL col2 ) FROM tab2 cor0
----
23

skipif mysql # not compatible
query I rowsort label-3104
SELECT DISTINCT + MIN ( ALL col2 ) FROM tab2 cor0
----
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3105
SELECT DISTINCT 78 * col1 * col1 - col2 * col2 + + - CAST( NULL AS SIGNED ) AS col1 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3105
SELECT DISTINCT 78 * col1 * col1 - col2 * col2 + + - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 cor0
----
NULL

query I rowsort
SELECT ALL - 80 FROM tab1 WHERE NULL IS NULL
----
-80
-80
-80

onlyif mysql # aggregate syntax: 
query II rowsort label-3107
SELECT - COUNT( ALL - 42 ) AS col2, + COUNT( * ) AS col2 FROM tab1
----
-3
3

skipif mysql # not compatible
query II rowsort label-3107
SELECT - COUNT ( ALL - 42 ) AS col2, + COUNT ( * ) AS col2 FROM tab1
----
-3
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3108
SELECT ALL 24 * - COUNT( ALL - col1 ) FROM tab0 WHERE NULL >= - 24 * CAST( + + col0 AS SIGNED ) - - - col0
----
0

skipif mysql # not compatible
query I rowsort label-3108
SELECT ALL 24 * - COUNT ( ALL - col1 ) FROM tab0 WHERE NULL >= - 24 * CAST ( + + col0 AS INTEGER ) - - - col0
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL < col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3110
SELECT ALL + + ( - + COUNT( * ) ) * - COUNT( + - 26 ) AS col2 FROM tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-3110
SELECT ALL + + ( - + COUNT ( * ) ) * - COUNT ( + - 26 ) AS col2 FROM tab1 AS cor0
----
9

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT 29 * - 1 < - col1 / - col2
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3112
SELECT ALL col1 DIV - col2 col2, col1 + + CAST( NULL AS SIGNED ) + - - col1 AS col0 FROM tab1 cor0
----
0
NULL
0
NULL
0
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3112
SELECT ALL col1 / - col2 col2, col1 + + CAST ( NULL AS INTEGER ) + - - col1 AS col0 FROM tab1 cor0
----
0
NULL
0
NULL
0
NULL

query I rowsort
SELECT DISTINCT - 14 * - - col2 FROM tab2
----
-322
-560
-812

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 91 IS NULL
----

query I rowsort
SELECT - col0 AS col2 FROM tab1 AS cor0 WHERE - 33 * + col2 IS NULL
----

query I rowsort
SELECT DISTINCT 66 + - - col2 * - col2 FROM tab0 AS cor0
----
-2143
-34
-9735

query II rowsort
SELECT DISTINCT 50 AS col1, col0 + col2 AS col0 FROM tab1 AS cor0
----
50
144
50
147
50
159

onlyif mysql # aggregate syntax: 
query I rowsort label-3118
SELECT - COUNT( * ) col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3118
SELECT - COUNT ( * ) col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3119
SELECT + CAST( + col0 AS SIGNED ) AS col2, col2 AS col2 FROM tab1
----
51
96
85
59
91
68

skipif mysql # not compatible
query II rowsort label-3119
SELECT + CAST ( + col0 AS INTEGER ) AS col2, col2 AS col2 FROM tab1
----
51
96
85
59
91
68

query II rowsort
SELECT col1 * col1, col1 AS col2 FROM tab0
----
1
1
441
21
6561
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + 52 col0 FROM tab0
----
2444
5148
520

onlyif mysql # aggregate syntax: 
query I rowsort label-3122
SELECT COUNT( * ) * + 74 AS col2 FROM tab1
----
222

skipif mysql # not compatible
query I rowsort label-3122
SELECT COUNT ( * ) * + 74 AS col2 FROM tab1
----
222

query I rowsort
SELECT DISTINCT - 92 + + + col2 * 23 FROM tab2 AS cor0
----
1242
437
828

query I rowsort
SELECT + col0 + 34 + col2 AS col2 FROM tab0 AS cor0
----
131
230
96

query I rowsort
SELECT - ( - - col1 ) * - col2 * + 5 * + 39 * + 40 + + col1 FROM tab1 AS cor0
----
10483214
2301005
24928847

onlyif mysql # aggregate syntax: 
query I rowsort label-3126
SELECT DISTINCT COUNT( * ) + 36 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
45

skipif mysql # not compatible
query I rowsort label-3126
SELECT DISTINCT COUNT ( * ) + 36 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
45

query III rowsort
SELECT ALL * FROM tab1 WHERE - ( - 77 ) + - - 20 IS NULL
----

query I rowsort
SELECT ALL 96 - + - col1 FROM tab0
----
117
177
97

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( 31 * + col2 ) >= 56
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3130
SELECT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN CAST( NULL AS SIGNED ) AND - col0 * - col2 - - col1 + + col1
----

skipif mysql # not compatible
query III rowsort label-3130
SELECT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN CAST ( NULL AS INTEGER ) AND - col0 * - col2 - - col1 + + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3131
SELECT + + SUM( ( - col0 ) ) AS col2 FROM tab0 AS cor0
----
-199

skipif mysql # not compatible
query I rowsort label-3131
SELECT + + SUM ( ( - col0 ) ) AS col2 FROM tab0 AS cor0
----
-199

onlyif mysql # aggregate syntax: 
query I rowsort label-3132
SELECT + SUM( ALL + 70 ) FROM tab2 AS cor0
----
210

skipif mysql # not compatible
query I rowsort label-3132
SELECT + SUM ( ALL + 70 ) FROM tab2 AS cor0
----
210

query II rowsort
SELECT ALL - 26 AS col1, - col0 * + col1 FROM tab0
----
-26
-1215
-26
-1827
-26
-97

query II rowsort
SELECT + 7, 57 AS col0 FROM tab2
----
7
57
7
57
7
57

query III rowsort
SELECT ALL * FROM tab1 WHERE 50 <= col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL col0 * + 85 FROM tab0
----
1275
7395
8245

onlyif mysql # aggregate syntax: 
query I rowsort label-3137
SELECT DISTINCT - SUM( + 99 ) AS col2 FROM tab1
----
-297

skipif mysql # not compatible
query I rowsort label-3137
SELECT DISTINCT - SUM ( + 99 ) AS col2 FROM tab1
----
-297

onlyif mysql # aggregate syntax: 
query I rowsort label-3138
SELECT - - MAX( - - col1 ) FROM tab2 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-3138
SELECT - - MAX ( - - col1 ) FROM tab2 AS cor0
----
77

query II rowsort
SELECT ALL - 79 * col2 * - col0 * + col1 AS col1, col1 * - 94 AS col1 FROM tab1 AS cor0
----
1980925
-470
22976044
-4418
5414976
-1316

query I rowsort
SELECT - - col2 + + col0 * 46 + - col2 FROM tab0 AS cor0
----
4002
4462
690

onlyif mysql # DIV for integer division: 
query I rowsort label-3141
SELECT ALL + col0 * 1 DIV - 40 FROM tab1 AS cor0
----
-1
-2
-2

skipif mysql # not compatible
query I rowsort label-3141
SELECT ALL + col0 * 1 / - 40 FROM tab1 AS cor0
----
-1
-2
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-3142
SELECT DISTINCT - + MAX( + ( - - col1 ) ) col2 FROM tab2 AS cor0
----
-77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3142
SELECT DISTINCT - + MAX ( + ( - - col1 ) ) col2 FROM tab2 AS cor0
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-3143
SELECT + MIN( - col1 ) + - + COUNT( ALL + + col1 ) AS col0 FROM tab1 AS cor0
----
-50

skipif mysql # not compatible
query I rowsort label-3143
SELECT + MIN ( - col1 ) + - + COUNT ( ALL + + col1 ) AS col0 FROM tab1 AS cor0
----
-50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3144
SELECT ALL + + COUNT( + CAST( NULL AS SIGNED ) ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
0

skipif mysql # not compatible
query I rowsort label-3144
SELECT ALL + + COUNT ( + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3145
SELECT ALL 14 + - + CAST( ( - 89 ) AS SIGNED ) - - col2 AS col0 FROM tab1
----
162
171
199

skipif mysql # not compatible
query I rowsort label-3145
SELECT ALL 14 + - + CAST ( ( - 89 ) AS INTEGER ) - - col2 AS col0 FROM tab1
----
162
171
199

onlyif mysql # aggregate syntax: 
query I rowsort label-3146
SELECT - - COUNT( * ) AS col2 FROM tab1 WHERE + col1 <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-3146
SELECT - - COUNT ( * ) AS col2 FROM tab1 WHERE + col1 <= NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3147
SELECT ALL - MIN( + 77 ) * - COUNT( * ) * - 43 FROM tab1
----
-9933

skipif mysql # not compatible
query I rowsort label-3147
SELECT ALL - MIN ( + 77 ) * - COUNT ( * ) * - 43 FROM tab1
----
-9933

onlyif mysql # aggregate syntax: 
query I rowsort label-3148
SELECT ALL COUNT( * ) + SUM( + + col0 ) col2 FROM tab2 AS cor0
----
188

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3148
SELECT ALL COUNT ( * ) + SUM ( + + col0 ) col2 FROM tab2 AS cor0
----
188

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - 46 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3150
SELECT - + COUNT( * ) col2 FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN + col0 AND NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3150
SELECT - + COUNT ( * ) col2 FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN + col0 AND NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 + + + col2, + col2 col0 FROM tab1 cor0
----
0
59
0
68
0
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 * - - col2 + + + col2 col2 FROM tab2 AS cor0
----
-1035
-2520
-4292

query I rowsort
SELECT DISTINCT - col0 * col2 * + - col1 AS col2 FROM tab2 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT DISTINCT + col2 AS col2, + 95 AS col2 FROM tab1
----
59
95
68
95
96
95

query I rowsort
SELECT DISTINCT 19 - col1 AS col0 FROM tab1
----
-28
14
5

query I rowsort
SELECT + - col0 + col1 - + + col2 + + col0 * - 13 AS col1 FROM tab2 WHERE + 7 + + 60 BETWEEN NULL AND + 73 * col0 / 71 * + + col0
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3157
SELECT ALL CAST( + col1 AS SIGNED ) DIV - col1, col1 FROM tab1
----
-1
14
-1
47
-1
5

skipif mysql # not compatible
query II rowsort label-3157
SELECT ALL CAST ( + col1 AS INTEGER ) / - col1, col1 FROM tab1
----
-1
14
-1
47
-1
5

onlyif mysql # DIV for integer division: 
query I rowsort label-3158
SELECT + 94 DIV + - ( 16 ) AS col1 FROM tab2 AS cor0
----
-5
-5
-5

skipif mysql # not compatible
query I rowsort label-3158
SELECT + 94 / + - ( 16 ) AS col1 FROM tab2 AS cor0
----
-5
-5
-5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 93 col1 FROM tab1 AS cor0
----
-93

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3160
SELECT DISTINCT - 10 AS col2 FROM tab0 AS cor0 WHERE NOT col0 * - CAST( NULL AS DECIMAL ) + col1 IS NULL
----

skipif mysql # not compatible
query I rowsort label-3160
SELECT DISTINCT - 10 AS col2 FROM tab0 AS cor0 WHERE NOT col0 * - CAST ( NULL AS REAL ) + col1 IS NULL
----

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2 cor1 WHERE ( NULL ) IS NOT NULL
----

query II rowsort
SELECT + ( - col0 ), col0 FROM tab1 AS cor0
----
-51
51
-85
85
-91
91

query I rowsort
SELECT ( col0 ) * - 21 FROM tab0 cor0
----
-1827
-2037
-315

query I rowsort
SELECT + col2 - - col0 * col1 AS col0 FROM tab1 AS cor0 WHERE NOT + col2 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col0 + - col1 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col1 / - + col1 FROM tab0 AS cor0 WHERE NOT col1 * - - col0 + + 98 + + col2 * + + col0 <> 71
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3167
SELECT COUNT( DISTINCT + 41 ) FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-3167
SELECT COUNT ( DISTINCT + 41 ) FROM tab2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3168
SELECT COUNT( DISTINCT + 3 ) AS col1 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-3168
SELECT COUNT ( DISTINCT + 3 ) AS col1 FROM tab2
----
1

query III rowsort
SELECT ALL * FROM tab2 WHERE col2 * - + ( + 88 ) BETWEEN + 74 AND - 18
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col1 > - + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( + col2 ) + col0 + - 5 / ( - col1 ) IS NULL
----

query I rowsort
SELECT ALL col1 * col2 * + col0 AS col2 FROM tab0 AS cor0
----
18270
57105
9603

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + - - col0 col1 FROM tab1 AS cor0
----
-45
23
26

onlyif mysql # aggregate syntax: 
query I rowsort label-3174
SELECT - 7 * + COUNT( * ) AS col2 FROM tab2 AS cor0
----
-21

skipif mysql # not compatible
query I rowsort label-3174
SELECT - 7 * + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-21

onlyif mysql # DIV for integer division: 
query I rowsort label-3175
SELECT DISTINCT 44 DIV - col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-3175
SELECT DISTINCT 44 / - col0 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3176
SELECT - COUNT( * ) * - 26 AS col1 FROM tab2
----
78

skipif mysql # not compatible
query I rowsort label-3176
SELECT - COUNT ( * ) * - 26 AS col1 FROM tab2
----
78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3177
SELECT DISTINCT 84 - CAST( + + col1 AS SIGNED ) * - - col0 FROM tab0
----
-1131
-13
-1743

skipif mysql # not compatible
query I rowsort label-3177
SELECT DISTINCT 84 - CAST ( + + col1 AS INTEGER ) * - - col0 FROM tab0
----
-1131
-13
-1743

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3178
SELECT ALL * FROM tab0 WHERE NULL >= - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-3178
SELECT ALL * FROM tab0 WHERE NULL >= - CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3179
SELECT - ( - - COUNT( ALL col2 ) ) AS col1 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-3179
SELECT - ( - - COUNT ( ALL col2 ) ) AS col1 FROM tab0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3180
SELECT + COUNT( col0 ) - COUNT( * ) * - + 45 FROM tab0
----
138

skipif mysql # not compatible
query I rowsort label-3180
SELECT + COUNT ( col0 ) - COUNT ( * ) * - + 45 FROM tab0
----
138

onlyif mysql # aggregate syntax: 
query I rowsort label-3181
SELECT + 64 - - - 79 + - SUM( DISTINCT + - 69 ) AS col2 FROM tab0
----
54

skipif mysql # not compatible
query I rowsort label-3181
SELECT + 64 - - - 79 + - SUM ( DISTINCT + - 69 ) AS col2 FROM tab0
----
54

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + col0 <= - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-3183
SELECT ALL - col0 DIV - - col1 FROM tab0
----
-4
-97
0

skipif mysql # not compatible
query I rowsort label-3183
SELECT ALL - col0 / - - col1 FROM tab0
----
-4
-97
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3184
SELECT DISTINCT - CAST( NULL AS SIGNED ) col0 FROM tab1 AS cor0 WHERE NOT 89 * - col1 <> + - col0 - + + 62
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3184
SELECT DISTINCT - CAST ( NULL AS INTEGER ) col0 FROM tab1 AS cor0 WHERE NOT 89 * - col1 <> + - col0 - + + 62
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3185
SELECT 65, - COUNT( * ) AS col2 FROM tab0
----
65
-3

skipif mysql # not compatible
query II rowsort label-3185
SELECT 65, - COUNT ( * ) AS col2 FROM tab0
----
65
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( - + col0 ) col2 FROM tab2
----
-46
-64
-75

query II rowsort
SELECT ALL + col1 AS col1, + 5 AS col1 FROM tab0 AS cor0
----
1
5
21
5
81
5

onlyif mysql # aggregate syntax: 
query I rowsort label-3188
SELECT DISTINCT + COUNT( DISTINCT - - 20 ) FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-3188
SELECT DISTINCT + COUNT ( DISTINCT - - 20 ) FROM tab2 AS cor0
----
1

query I rowsort
SELECT col1 * - + col1 AS col0 FROM tab0 cor0
----
-1
-441
-6561

query II rowsort
SELECT - col2 * - col1 + + + 81 AS col0, 54 + 44 + - 30 * - 78 + + + col2 FROM tab2 WHERE NOT + col2 + col1 > NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3191
SELECT - 74 DIV COUNT( * ) FROM tab1
----
-24

skipif mysql # not compatible
query I rowsort label-3191
SELECT - 74 / COUNT ( * ) FROM tab1
----
-24

query I rowsort
SELECT DISTINCT + col1 + - + 92 * + col2 FROM tab1 AS cor0
----
-5423
-6209
-8818

query I rowsort
SELECT ALL + ( - - 6 ) FROM tab0 AS cor0
----
6
6
6

onlyif mysql # aggregate syntax: 
query I rowsort label-3194
SELECT - 67 + + MIN( DISTINCT - 36 ) AS col2 FROM tab1 cor0
----
-103

skipif mysql # not compatible
query I rowsort label-3194
SELECT - 67 + + MIN ( DISTINCT - 36 ) AS col2 FROM tab1 cor0
----
-103

onlyif mysql # DIV for integer division: 
query II rowsort label-3195
SELECT - 35 + + col1 AS col2, + col1 DIV - 68 AS col0 FROM tab0 cor0
----
-14
0
-34
0
46
-1

skipif mysql # not compatible
query II rowsort label-3195
SELECT - 35 + + col1 AS col2, + col1 / - 68 AS col0 FROM tab0 cor0
----
-14
0
-34
0
46
-1

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT ( col1 ) * - col2 >= + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3197
SELECT - ( - COUNT( * ) ) * + COUNT( * ) * - 79 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL IS NULL
----
-6399

skipif mysql # not compatible
query I rowsort label-3197
SELECT - ( - COUNT ( * ) ) * + COUNT ( * ) * - 79 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL IS NULL
----
-6399

query I rowsort
SELECT - - 93 AS col0 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to e64105dfaa9fbd201adbb1f3f6968bde

onlyif mysql # aggregate syntax: 
query I rowsort label-3199
SELECT DISTINCT + 30 + + COUNT( * ) + - 82 col2 FROM tab2 AS cor0
----
-49

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3199
SELECT DISTINCT + 30 + + COUNT ( * ) + - 82 col2 FROM tab2 AS cor0
----
-49

query I rowsort
SELECT - - col0 - - col2 + - 20 * - 9 AS col0 FROM tab2 AS cor0
----
249
284
313

query I rowsort
SELECT ALL + ( - col1 ) + - - ( + col1 ) AS col2 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3202
SELECT DISTINCT - 5 DIV ( col2 ) + + 70 FROM tab0 AS cor0
----
70

skipif mysql # not compatible
query I rowsort label-3202
SELECT DISTINCT - 5 / ( col2 ) + + 70 FROM tab0 AS cor0
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-3203
SELECT COUNT( * ) FROM tab1 AS cor0 WHERE col1 + - col1 BETWEEN NULL AND - 26
----
0

skipif mysql # not compatible
query I rowsort label-3203
SELECT COUNT ( * ) FROM tab1 AS cor0 WHERE col1 + - col1 BETWEEN NULL AND - 26
----
0

query I rowsort
SELECT DISTINCT - 43 - + - col0 * 48 AS col2 FROM tab1
----
2405
4037
4325

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + - 79 >= NULL
----

query I rowsort
SELECT DISTINCT + col2 + col1 - - + col2 * + 1 AS col1 FROM tab1
----
123
183
206

onlyif mysql # aggregate syntax: 
query I rowsort label-3207
SELECT ALL - COUNT( * ) - + 79 AS col1 FROM tab0
----
-82

skipif mysql # not compatible
query I rowsort label-3207
SELECT ALL - COUNT ( * ) - + 79 AS col1 FROM tab0
----
-82

query I rowsort
SELECT 99 * - + col0 FROM tab2
----
-4554
-6336
-7425

query I rowsort
SELECT 41 + - + 29 * + - col0 AS col0 FROM tab0 WHERE - col2 IS NOT NULL
----
2564
2854
476

query II rowsort
SELECT 65 AS col1, col2 AS col2 FROM tab0
----
65
10
65
47
65
99

query II rowsort
SELECT DISTINCT 93, + col0 FROM tab2
----
93
46
93
64
93
75

query III rowsort
SELECT * FROM tab0 WHERE + - 9 IS NULL
----

query I rowsort
SELECT DISTINCT 39 - + + 19 FROM tab2
----
20

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col2 * - col1 + ( - col0 ) >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3215
SELECT + + col0, CAST( - - col0 AS SIGNED ) col2 FROM tab1 AS cor0
----
51
51
85
85
91
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3215
SELECT + + col0, CAST ( - - col0 AS INTEGER ) col2 FROM tab1 AS cor0
----
51
51
85
85
91
91

query II rowsort
SELECT - + col0 * + 97 AS col0, col2 FROM tab2 AS cor0
----
-4462
23
-6208
40
-7275
58

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT + col2 + - col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3218
SELECT COUNT( * ) DIV - 6 AS col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3218
SELECT COUNT ( * ) / - 6 AS col1 FROM tab1 AS cor0
----
0

query I rowsort
SELECT + + 91 AS col2 FROM tab0 WHERE NOT - 63 IS NOT NULL
----

query II rowsort
SELECT - 13 * + - 82, col0 AS col2 FROM tab0
----
1066
15
1066
87
1066
97

query I rowsort
SELECT DISTINCT - col1 AS col1 FROM tab1 cor0 WHERE col0 IS NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 73 * col1 / + + col2 < NULL
----

query I rowsort
SELECT ALL 92 + 84 FROM tab0 cor0
----
176
176
176

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3224
SELECT ALL ( col1 ) * + col2 * - CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3224
SELECT ALL ( col1 ) * + col2 * - CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( NOT NULL > NULL )
----

query I rowsort
SELECT + - col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-3227
SELECT MAX( 95 ) FROM tab1
----
95

skipif mysql # not compatible
query I rowsort label-3227
SELECT MAX ( 95 ) FROM tab1
----
95

query I rowsort
SELECT ALL col0 + col0 + 53 * - - col2 * col0 * col2 AS col0 FROM tab0
----
1756185
461274
50387135

query I rowsort
SELECT col1 * + 7 AS col0 FROM tab1
----
329
35
98

query II rowsort
SELECT DISTINCT + - col1 + 25 * col0 AS col2, col1 AS col0 FROM tab0 cor0
----
2154
21
2424
1
294
81

query I rowsort
SELECT ALL 26 + 95 + + col2 * + col1 FROM tab2 AS cor0
----
1294
3201
4007

onlyif mysql # aggregate syntax: 
query I rowsort label-3232
SELECT COUNT( * ) * + 59 col1 FROM tab1
----
177

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3232
SELECT COUNT ( * ) * + 59 col1 FROM tab1
----
177

onlyif mysql # aggregate syntax: 
query I rowsort label-3233
SELECT 3 * COUNT( * ) AS col0 FROM tab1
----
9

skipif mysql # not compatible
query I rowsort label-3233
SELECT 3 * COUNT ( * ) AS col0 FROM tab1
----
9

query I rowsort
SELECT ALL + col1 * col1 + + col2 AS col1 FROM tab1
----
2277
292
84

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + 60 NOT IN ( col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3236
SELECT DISTINCT MAX( ALL ( + col1 ) ) * - 75 AS col2 FROM tab1
----
-3525

skipif mysql # not compatible
query I rowsort label-3236
SELECT DISTINCT MAX ( ALL ( + col1 ) ) * - 75 AS col2 FROM tab1
----
-3525

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3237
SELECT ALL ( - col2 ) * + 53 FROM tab0 WHERE ( CAST( + col1 AS SIGNED ) ) <= ( 12 )
----
-5247

skipif mysql # not compatible
query I rowsort label-3237
SELECT ALL ( - col2 ) * + 53 FROM tab0 WHERE ( CAST ( + col1 AS INTEGER ) ) <= ( 12 )
----
-5247

query I rowsort
SELECT ALL - 61 * + col1 FROM tab2 WHERE + col0 = NULL
----

query I rowsort
SELECT 23 * - col2 + - 61 FROM tab0
----
-1142
-2338
-291

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 33 + - col2 * ( + 6 + - col2 ) col2 FROM tab2 WHERE NULL IS NULL
----
1393
3049
424

query III rowsort
SELECT * FROM tab0 WHERE NOT + 53 * - col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3242
SELECT ALL * FROM tab2 WHERE ( - 27 ) BETWEEN + col1 AND - CAST( NULL AS SIGNED ) - col2
----

skipif mysql # not compatible
query III rowsort label-3242
SELECT ALL * FROM tab2 WHERE ( - 27 ) BETWEEN + col1 AND - CAST ( NULL AS INTEGER ) - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3243
SELECT + CAST( NULL AS SIGNED ) * - ( 99 * - col2 ) AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3243
SELECT + CAST ( NULL AS INTEGER ) * - ( 99 * - col2 ) AS col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3244
SELECT - CAST( NULL AS SIGNED ) * 88 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3244
SELECT - CAST ( NULL AS INTEGER ) * 88 AS col2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3245
SELECT DISTINCT 26 * + COUNT( * ) AS col2 FROM tab2
----
78

skipif mysql # not compatible
query I rowsort label-3245
SELECT DISTINCT 26 * + COUNT ( * ) AS col2 FROM tab2
----
78

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + col2 * - 44 > + 10 * + 94
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 WHERE NOT + 50 * col1 + 7 / col0 NOT BETWEEN col0 AND - col2
----

query I rowsort
SELECT ALL + col0 * + ( ( - col1 ) ) AS col1 FROM tab1
----
-425
-4277
-714

onlyif mysql # aggregate syntax: 
query I rowsort label-3249
SELECT ALL + COUNT( * ) * MAX( + 7 / + col1 ) FROM tab0 WHERE NULL NOT BETWEEN ( NULL ) AND ( - 57 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3249
SELECT ALL + COUNT ( * ) * MAX ( + 7 / + col1 ) FROM tab0 WHERE NULL NOT BETWEEN ( NULL ) AND ( - 57 )
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col2 - 83 BETWEEN ( NULL ) AND ( NULL )
----

query I rowsort
SELECT col1 + 37 FROM tab0
----
118
38
58

onlyif mysql # aggregate syntax: 
query I rowsort label-3252
SELECT ALL + COUNT( * ) * - COUNT( * ) col0 FROM tab2
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3252
SELECT ALL + COUNT ( * ) * - COUNT ( * ) col0 FROM tab2
----
-9

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL NOT IN ( 35 + 21 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3254
SELECT + SUM( col1 ) * 80 AS col0 FROM tab0 WHERE ( col0 * + col0 ) IS NOT NULL
----
8240

skipif mysql # not compatible
query I rowsort label-3254
SELECT + SUM ( col1 ) * 80 AS col0 FROM tab0 WHERE ( col0 * + col0 ) IS NOT NULL
----
8240

query I rowsort
SELECT col2 * + col0 + col0 FROM tab0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT ( - col0 * col1 + - col2 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 WHERE + 28 NOT IN ( + col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - col2 NOT BETWEEN + 23 AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( + 52 * col1 ) BETWEEN ( NULL ) AND - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 95 AS col0 FROM tab0 AS cor0 WHERE NOT NULL IN ( 90 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( + col2 ) IN ( - col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT col1 FROM tab1 WHERE NOT NULL > - col0
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 46 = NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN NULL AND + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3265
SELECT - + COUNT( * ) * MAX( ALL col0 ) AS col2 FROM tab2 AS cor0
----
-225

skipif mysql # not compatible
query I rowsort label-3265
SELECT - + COUNT ( * ) * MAX ( ALL col0 ) AS col2 FROM tab2 AS cor0
----
-225

query I rowsort
SELECT DISTINCT - col1 + 38 FROM tab1 AS cor0
----
-9
24
33

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col2 <= NULL
----

query I rowsort
SELECT + col1 AS col0 FROM tab1 AS cor0 WHERE NOT + col1 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3269
SELECT DISTINCT ( MIN( 20 ) ) FROM tab0 AS cor0
----
20

skipif mysql # not compatible
query I rowsort label-3269
SELECT DISTINCT ( MIN ( 20 ) ) FROM tab0 AS cor0
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-3270
SELECT DISTINCT - SUM( col1 ) + 81 AS col2 FROM tab0 AS cor0
----
-22

skipif mysql # not compatible
query I rowsort label-3270
SELECT DISTINCT - SUM ( col1 ) + 81 AS col2 FROM tab0 AS cor0
----
-22

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL <> - ( + 77 )
----

query I rowsort
SELECT col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT IN ( + 81 * + col0 )
----

query I rowsort
SELECT ALL 67 * 19 FROM tab0 AS cor0
----
1273
1273
1273

onlyif mysql # DIV for integer division: 
query I rowsort label-3274
SELECT DISTINCT - ( + 58 ) DIV col1 AS col1 FROM tab2 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-3274
SELECT DISTINCT - ( + 58 ) / col1 AS col1 FROM tab2 AS cor0
----
-1
0

query I rowsort
SELECT + - 57 * + ( 91 ) AS col1 FROM tab1 AS cor0
----
-5187
-5187
-5187

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( col1 + + col0 ) NOT IN ( col2 / 61 + col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3277
SELECT ALL * FROM tab0 cor0 WHERE + ( col2 ) * + ( - col2 - CAST( + col0 AS SIGNED ) ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-3277
SELECT ALL * FROM tab0 cor0 WHERE + ( col2 ) * + ( - col2 - CAST ( + col0 AS INTEGER ) ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3278
SELECT COUNT( * ) DIV + 3 AS col0 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-3278
SELECT COUNT ( * ) / + 3 AS col0 FROM tab1
----
1

query I rowsort
SELECT DISTINCT + col2 + - - col0 + col0 FROM tab1
----
198
229
250

query I rowsort
SELECT + 9 * - col2 AS col0 FROM tab2 AS cor0
----
-207
-360
-522

query I rowsort
SELECT ALL + 93 FROM tab0 cor0 WHERE + col1 IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 73 * col2 BETWEEN - col0 AND - col2 * - ( col1 * - col2 ) + - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 55 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 1626bd3008abd9f18cc88cdecf7b64d0

onlyif mysql # aggregate syntax: 
query I rowsort label-3284
SELECT - MAX( + 62 ) FROM tab2, tab2 AS cor0
----
-62

skipif mysql # not compatible
query I rowsort label-3284
SELECT - MAX ( + 62 ) FROM tab2, tab2 AS cor0
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-3285
SELECT + COUNT( * ) - - 79 FROM tab2 AS cor0
----
82

skipif mysql # not compatible
query I rowsort label-3285
SELECT + COUNT ( * ) - - 79 FROM tab2 AS cor0
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-3286
SELECT - 45 + - + MAX( col1 ) AS col2 FROM tab1 AS cor0
----
-92

skipif mysql # not compatible
query I rowsort label-3286
SELECT - 45 + - + MAX ( col1 ) AS col2 FROM tab1 AS cor0
----
-92

query II rowsort
SELECT ALL + col2, 23 * - col1 AS col1 FROM tab1 AS cor0
----
59
-115
68
-1081
96
-322

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3288
SELECT ALL - + CAST( + col1 AS SIGNED ) + - col2 * + col2 AS col0 FROM tab0 AS cor0
----
-121
-2290
-9802

skipif mysql # not compatible
query I rowsort label-3288
SELECT ALL - + CAST ( + col1 AS INTEGER ) + - col2 * + col2 AS col0 FROM tab0 AS cor0
----
-121
-2290
-9802

query I rowsort
SELECT ALL - col0 * col1 AS col2 FROM tab1 AS cor0 WHERE NOT NULL = ( NULL )
----

query I rowsort
SELECT DISTINCT + 14 FROM tab0 cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col0 <= - col0 * 18
----

query I rowsort
SELECT + col2 + - - col2 FROM tab0 AS cor0
----
198
20
94

onlyif mysql # aggregate syntax: 
query I rowsort label-3293
SELECT - COUNT( * ) + 82 AS col0 FROM tab2 AS cor0
----
79

skipif mysql # not compatible
query I rowsort label-3293
SELECT - COUNT ( * ) + 82 AS col0 FROM tab2 AS cor0
----
79

query I rowsort
SELECT 87 + - col1 * + col2 FROM tab2 WHERE NOT ( + col2 * + + 87 / col2 ) IS NULL
----
-1086
-2993
-3799

query III rowsort
SELECT ALL * FROM tab0 WHERE col2 * col2 * - 52 - col2 * + col2 + - col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + 23 + + col2 / - col0 AS col0 FROM tab2 WHERE NOT ( - + col0 ) > NULL
----

query I rowsort
SELECT DISTINCT 17 + col2 * + 29 AS col2 FROM tab0 WHERE ( - col0 ) IS NOT NULL
----
1380
2888
307

query I rowsort
SELECT - col0 * - col0 AS col0 FROM tab0 WHERE NOT ( NULL ) < ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3299
SELECT - MAX( DISTINCT + - 94 ) FROM tab2
----
94

skipif mysql # not compatible
query I rowsort label-3299
SELECT - MAX ( DISTINCT + - 94 ) FROM tab2
----
94

query I rowsort
SELECT ( + - 56 ) * 23 FROM tab1
----
-1288
-1288
-1288

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3301
SELECT CAST( 23 AS SIGNED ) FROM tab1 AS cor0
----
23
23
23

skipif mysql # not compatible
query I rowsort label-3301
SELECT CAST ( 23 AS INTEGER ) FROM tab1 AS cor0
----
23
23
23

onlyif mysql # aggregate syntax: 
query I rowsort label-3302
SELECT ( + COUNT( - - col0 ) ) * 56 + 72 FROM tab0 AS cor0
----
240

skipif mysql # not compatible
query I rowsort label-3302
SELECT ( + COUNT ( - - col0 ) ) * 56 + 72 FROM tab0 AS cor0
----
240

onlyif mysql # aggregate syntax: 
query I rowsort label-3303
SELECT ALL COUNT( * ) * + 89 col2 FROM tab1 AS cor0
----
267

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3303
SELECT ALL COUNT ( * ) * + 89 col2 FROM tab1 AS cor0
----
267

query I rowsort
SELECT DISTINCT - - ( + col0 ) AS col2 FROM tab2 AS cor0
----
46
64
75

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NULL ) IN ( + col1 * 32 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3306
SELECT ALL + MIN( ALL - 93 ) AS col1 FROM tab1 WHERE + col1 + + col2 IS NOT NULL
----
-93

skipif mysql # not compatible
query I rowsort label-3306
SELECT ALL + MIN ( ALL - 93 ) AS col1 FROM tab1 WHERE + col1 + + col2 IS NOT NULL
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-3307
SELECT + COUNT( * ) + + - COUNT( * ) AS col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3307
SELECT + COUNT ( * ) + + - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3308
SELECT ALL - - CAST( + col0 AS SIGNED ) + ( - col1 ) AS col2 FROM tab0 AS cor0
----
-66
66
96

skipif mysql # not compatible
query I rowsort label-3308
SELECT ALL - - CAST ( + col0 AS INTEGER ) + ( - col1 ) AS col2 FROM tab0 AS cor0
----
-66
66
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 * - col1, ( + - 8 ) col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 89 + col1 * + + ( + col2 ) * - + 33 col1 FROM tab1 AS cor0
----
-105557
-44441
-9824

query III rowsort
SELECT * FROM tab1 cor0 WHERE + 23 * - col1 * - + col1 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 col1, - col2 AS col1 FROM tab1
----
14
-96
47
-68
5
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-3313
SELECT DISTINCT ( - MAX( DISTINCT + col0 ) ) AS col1 FROM tab1
----
-91

skipif mysql # not compatible
query I rowsort label-3313
SELECT DISTINCT ( - MAX ( DISTINCT + col0 ) ) AS col1 FROM tab1
----
-91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3314
SELECT DISTINCT + 29 DIV - 70 * + + ( COUNT( * ) ) FROM tab1 WHERE NOT 4 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3314
SELECT DISTINCT + 29 / - 70 * + + ( COUNT ( * ) ) FROM tab1 WHERE NOT 4 IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3315
SELECT + SUM( col1 ) AS col2 FROM tab2
----
195

skipif mysql # not compatible
query I rowsort label-3315
SELECT + SUM ( col1 ) AS col2 FROM tab2
----
195

query I rowsort
SELECT ALL + 19 + + + 21 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to b1e8ffeef334b4a2b01b2f91e649c2d3

onlyif mysql # aggregate syntax: 
query I rowsort label-3317
SELECT ALL - COUNT( * ) FROM tab2 WHERE ( 59 ) NOT IN ( col1 * + 31 )
----
-3

skipif mysql # not compatible
query I rowsort label-3317
SELECT ALL - COUNT ( * ) FROM tab2 WHERE ( 59 ) NOT IN ( col1 * + 31 )
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3318
SELECT ALL 11 + - COUNT( * ) AS col1 FROM tab2
----
8

skipif mysql # not compatible
query I rowsort label-3318
SELECT ALL 11 + - COUNT ( * ) AS col1 FROM tab2
----
8

query I rowsort
SELECT col0 + col1 FROM tab2 WHERE NULL IN ( + + 73 * - - col0 - + col1 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3320
SELECT ( COUNT( * ) ) * MIN( col2 ) AS col1 FROM tab2 AS cor0 WHERE NULL NOT IN ( + 77, CAST( NULL AS SIGNED ), - col0 + col0 + 64 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3320
SELECT ( COUNT ( * ) ) * MIN ( col2 ) AS col1 FROM tab2 AS cor0 WHERE NULL NOT IN ( + 77, CAST ( NULL AS INTEGER ), - col0 + col0 + 64 )
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( - 11 * + + col2 + - + 43 + - col2 * - 38 * col0 ) > ( + col2 ) - + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + 29 - col2 - - - col0 AS col1 FROM tab2 cor0
----
-104
-40
-75

query I rowsort
SELECT - col1 + - - 26 * + col0 + col2 FROM tab1 AS cor0
----
1408
2264
2387

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + + 61 col1 FROM tab2 AS cor0
----
107
125
136

query I rowsort
SELECT + + col2 * + + col1 + - - 80 AS col1 FROM tab2 AS cor0
----
1253
3160
3966

query I rowsort
SELECT ALL + + col1 - + 15 FROM tab1 AS cor0
----
-1
-10
32

query I rowsort
SELECT DISTINCT ( - - 16 ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-3328
SELECT DISTINCT MAX( - 1 ) * 37 - + 75 AS col1 FROM tab1 WHERE NULL IN ( col0, - col2 * + col0 * + - 71 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3328
SELECT DISTINCT MAX ( - 1 ) * 37 - + 75 AS col1 FROM tab1 WHERE NULL IN ( col0, - col2 * + col0 * + - 71 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3329
SELECT + COUNT( * ) DIV - + 81 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3329
SELECT + COUNT ( * ) / - + 81 FROM tab2 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3330
SELECT DISTINCT - + CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) AS col2, col1 AS col0 FROM tab0 AS cor0
----
NULL
1
NULL
21
NULL
81

skipif mysql # not compatible
query II rowsort label-3330
SELECT DISTINCT - + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) AS col2, col1 AS col0 FROM tab0 AS cor0
----
NULL
1
NULL
21
NULL
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3331
SELECT DISTINCT COUNT( col2 ) col2 FROM tab1 cor0 WHERE NOT col2 * + col1 - - CAST( NULL AS SIGNED ) BETWEEN ( + col1 ) AND NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3331
SELECT DISTINCT COUNT ( col2 ) col2 FROM tab1 cor0 WHERE NOT col2 * + col1 - - CAST ( NULL AS INTEGER ) BETWEEN ( + col1 ) AND NULL
----
0

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - col2 + 12 * - 14 * + + 26 NOT IN ( - - col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3333
SELECT ( - col1 ) * + col2 * col1 + + CAST( - 35 AS SIGNED ) * - col0 FROM tab1 cor0
----
-147027
-17031
1500

skipif mysql # not compatible
query I rowsort label-3333
SELECT ( - col1 ) * + col2 * col1 + + CAST ( - 35 AS INTEGER ) * - col0 FROM tab1 cor0
----
-147027
-17031
1500

onlyif mysql # DIV for integer division: 
query I rowsort label-3334
SELECT 61 DIV - - col1 AS col2 FROM tab0
----
0
2
61

skipif mysql # not compatible
query I rowsort label-3334
SELECT 61 / - - col1 AS col2 FROM tab0
----
0
2
61

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 95 col0, - col2 FROM tab1 WHERE NOT + - col2 <> + col1 * - - col1
----

query I rowsort
SELECT ALL 30 * - col1 FROM tab1
----
-1410
-150
-420

query II rowsort
SELECT DISTINCT - col1 AS col0, - col1 AS col2 FROM tab1
----
-14
-14
-47
-47
-5
-5

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3338
SELECT DISTINCT CAST( NULL AS SIGNED ), + CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-3338
SELECT DISTINCT CAST ( NULL AS INTEGER ), + CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3339
SELECT - - ( - COUNT( * ) ) FROM tab0 WHERE NOT NULL NOT BETWEEN + col0 * - + col1 * + col2 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-3339
SELECT - - ( - COUNT ( * ) ) FROM tab0 WHERE NOT NULL NOT BETWEEN + col0 * - + col1 * + col2 AND NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( - + 54 ) col2 FROM tab2
----
-54
-54
-54

query III rowsort
SELECT ALL * FROM tab2 WHERE + - col2 - + col1 IS NULL
----

query I rowsort
SELECT + col0 * + col0 + + 91 + + ( + 48 ) + - - col2 FROM tab0 AS cor0
----
411
7718
9647

onlyif mysql # aggregate syntax: 
query II rowsort label-3343
SELECT DISTINCT - 90 AS col0, - COUNT( * ) * - MAX( ALL + + 50 ) AS col2 FROM tab2 AS cor0
----
-90
150

skipif mysql # not compatible
query II rowsort label-3343
SELECT DISTINCT - 90 AS col0, - COUNT ( * ) * - MAX ( ALL + + 50 ) AS col2 FROM tab2 AS cor0
----
-90
150

onlyif mysql # aggregate syntax: 
query I rowsort label-3344
SELECT DISTINCT + COUNT( * ) FROM tab0, tab0 cor0
----
9

skipif mysql # not compatible
query I rowsort label-3344
SELECT DISTINCT + COUNT ( * ) FROM tab0, tab0 cor0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-3345
SELECT COUNT( DISTINCT ( + 59 ) ) FROM tab0 AS cor0 WHERE + col2 / ( - col0 ) NOT IN ( col2 )
----
1

skipif mysql # not compatible
query I rowsort label-3345
SELECT COUNT ( DISTINCT ( + 59 ) ) FROM tab0 AS cor0 WHERE + col2 / ( - col0 ) NOT IN ( col2 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3346
SELECT DISTINCT + - 3 + + MIN( DISTINCT + col0 ) AS col0 FROM tab1 AS cor0
----
48

skipif mysql # not compatible
query I rowsort label-3346
SELECT DISTINCT + - 3 + + MIN ( DISTINCT + col0 ) AS col0 FROM tab1 AS cor0
----
48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3347
SELECT - CAST( 94 AS SIGNED ) FROM tab2 AS cor0
----
-94
-94
-94

skipif mysql # not compatible
query I rowsort label-3347
SELECT - CAST ( 94 AS INTEGER ) FROM tab2 AS cor0
----
-94
-94
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-3348
SELECT ALL + COUNT( * ) + - - ( - + COUNT( * ) ) col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3348
SELECT ALL + COUNT ( * ) + - - ( - + COUNT ( * ) ) col0 FROM tab2 AS cor0
----
0

query I rowsort
SELECT DISTINCT + ( - col1 ) * col2 AS col0 FROM tab1 AS cor0
----
-1344
-295
-3196

onlyif mysql # DIV for integer division: 
query I rowsort label-3350
SELECT + - col1 DIV ( - col1 ) + - col2 col1 FROM tab1 AS cor0
----
-58
-67
-95

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3350
SELECT + - col1 / ( - col1 ) + - col2 col1 FROM tab1 AS cor0
----
-58
-67
-95

query I rowsort
SELECT - col2 + - 13 FROM tab2 AS cor0
----
-36
-53
-71

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col1 * - - 13 * - 74 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL 48 * + - col0 FROM tab2
----
-2208
-3072
-3600

query III rowsort
SELECT * FROM tab2 WHERE + 60 BETWEEN + ( + col2 ) AND + + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3355
SELECT DISTINCT MAX( DISTINCT - col0 ) AS col2 FROM tab2
----
-46

skipif mysql # not compatible
query I rowsort label-3355
SELECT DISTINCT MAX ( DISTINCT - col0 ) AS col2 FROM tab2
----
-46

query I rowsort
SELECT - 2 + + 78 FROM tab2
----
76
76
76

query I rowsort
SELECT ALL col1 + - - col1 * - 79 * + col0 AS col2 FROM tab0
----
-144312
-7662
-95904

query I rowsort
SELECT DISTINCT col2 * + + ( + + 87 ) AS col1 FROM tab1
----
5133
5916
8352

query II rowsort
SELECT col0 * - col2, 23 + - 38 FROM tab2 WHERE ( + col1 ) IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3360
SELECT DISTINCT 23 DIV + COUNT( * ) + - SUM( ALL - + 77 ) FROM tab2
----
238

skipif mysql # not compatible
query I rowsort label-3360
SELECT DISTINCT 23 / + COUNT ( * ) + - SUM ( ALL - + 77 ) FROM tab2
----
238

onlyif mysql # DIV for integer division: 
query I rowsort label-3361
SELECT - col2 DIV - 89 AS col0 FROM tab1 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-3361
SELECT - col2 / - 89 AS col0 FROM tab1 AS cor0
----
0
0
1

query I rowsort
SELECT - + 14 AS col1 FROM tab1 cor0
----
-14
-14
-14

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( - 84 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - 97 + - col2 FROM tab1 AS cor0
----
-156
-165
-193

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 58 - - col1 + - 42 * + 66 col1 FROM tab0 AS cor0
----
-2633
-2693
-2713

query I rowsort
SELECT ALL - + ( col2 ) - - col1 AS col2 FROM tab2 cor0
----
28
37
9

onlyif mysql # aggregate syntax: 
query I rowsort label-3367
SELECT SUM( DISTINCT - 28 ) - + 64 FROM tab2
----
-92

skipif mysql # not compatible
query I rowsort label-3367
SELECT SUM ( DISTINCT - 28 ) - + 64 FROM tab2
----
-92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3368
SELECT + CAST( NULL AS SIGNED ) - col1 * + ( - 58 ) AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3368
SELECT + CAST ( NULL AS INTEGER ) - col1 * + ( - 58 ) AS col1 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3369
SELECT - - MAX( ALL + 19 ), + 54 * - 78 DIV + 1 AS col2 FROM tab2 WHERE NOT - 33 IN ( col2, - 0, 54 * col0 )
----
19
-4212

skipif mysql # not compatible
query II rowsort label-3369
SELECT - - MAX ( ALL + 19 ), + 54 * - 78 / + 1 AS col2 FROM tab2 WHERE NOT - 33 IN ( col2, - 0, 54 * col0 )
----
19
-4212

query I rowsort
SELECT - col1 * + + 67 FROM tab2
----
-3417
-4489
-5159

onlyif mysql # aggregate syntax: 
query I rowsort label-3371
SELECT + MIN( DISTINCT + col1 ) AS col1 FROM tab2 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-3371
SELECT + MIN ( DISTINCT + col1 ) AS col1 FROM tab2 AS cor0
----
51

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT col0 - + col0 * - - 24 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3373
SELECT 37 / MIN( ALL + CAST( NULL AS SIGNED ) ) + - COUNT( * ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3373
SELECT 37 / MIN ( ALL + CAST ( NULL AS INTEGER ) ) + - COUNT ( * ) FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col2 <> + - col0 * - col2 + + 4
----

query I rowsort
SELECT DISTINCT - - ( 91 ) AS col2 FROM tab0 AS cor0
----
91

query II rowsort
SELECT DISTINCT - col1, - col2 - col0 AS col0 FROM tab1 AS cor0
----
-14
-147
-47
-159
-5
-144

query I rowsort
SELECT DISTINCT - 3 FROM tab2 AS cor0 WHERE NOT + col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3378
SELECT ALL + + COUNT( DISTINCT + col0 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3378
SELECT ALL + + COUNT ( DISTINCT + col0 ) FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3379
SELECT DISTINCT - + SUM( DISTINCT 77 ) FROM tab1 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-3379
SELECT DISTINCT - + SUM ( DISTINCT 77 ) FROM tab1 AS cor0
----
-77

query I rowsort
SELECT ALL col2 * + 80 * + - 46 * - ( 82 ) FROM tab2
----
12070400
17502080
6940480

query III rowsort
SELECT * FROM tab2 WHERE NOT - col0 NOT BETWEEN + col1 AND - - 78
----

query I rowsort
SELECT DISTINCT - col0 * + 85 FROM tab0
----
-1275
-7395
-8245

query III rowsort
SELECT * FROM tab2 WHERE NOT + 12 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3384
SELECT ALL * FROM tab1 WHERE col2 * col2 - + - ( - col2 ) - - - CAST( - + col2 AS SIGNED ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-3384
SELECT ALL * FROM tab1 WHERE col2 * col2 - + - ( - col2 ) - - - CAST ( - + col2 AS INTEGER ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab0 WHERE ( - + ( - col2 ) * + + col2 + - col2 + col2 ) NOT BETWEEN ( NULL ) AND ( ( col0 ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3386
SELECT ALL + COUNT( - col2 ) AS col1 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-3386
SELECT ALL + COUNT ( - col2 ) AS col1 FROM tab0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3387
SELECT CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) > - - col0 + + - col1
----

skipif mysql # not compatible
query I rowsort label-3387
SELECT CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) > - - col0 + + - col1
----

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL NOT BETWEEN ( NULL ) AND - + 74 - 75
----

query I rowsort
SELECT col0 + ( ( 81 ) ) * - 2 + 16 * col1 + col1 AS col0 FROM tab0
----
-48
1230
282

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL NOT IN ( + col0 + - 89 + - - ( - 21 ) + + - col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3391
SELECT ALL - ( CAST( + 46 AS SIGNED ) ) FROM tab2
----
-46
-46
-46

skipif mysql # not compatible
query I rowsort label-3391
SELECT ALL - ( CAST ( + 46 AS INTEGER ) ) FROM tab2
----
-46
-46
-46

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + - 75 col2 FROM tab0 AS cor0
----
-28
-65
24

query II rowsort
SELECT col0, - 29 FROM tab0 AS cor0 WHERE - col2 IS NOT NULL
----
15
-29
87
-29
97
-29

query I rowsort
SELECT ALL - col2 + - - col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
28
37
9

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col2 >= - 20
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT - col2 AS col1, 28 AS col0 FROM tab2 AS cor0
----
-23
28
-40
28
-58
28

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + 16 IN ( col2 )
----

query II rowsort
SELECT col0 AS col0, + col2 AS col1 FROM tab1 AS cor0
----
51
96
85
59
91
68

onlyif mysql # aggregate syntax: 
query I rowsort label-3399
SELECT MAX( DISTINCT 59 ) FROM tab1
----
59

skipif mysql # not compatible
query I rowsort label-3399
SELECT MAX ( DISTINCT 59 ) FROM tab1
----
59

onlyif mysql # DIV for integer division: 
query I rowsort label-3400
SELECT + col2 DIV - + col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3400
SELECT + col2 / - + col1 FROM tab2
----
0
0
0

query III rowsort
SELECT * FROM tab2 WHERE NULL NOT BETWEEN col2 * + 58 + col2 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL ( col2 ) col0, col0 AS col0 FROM tab0
----
10
87
47
15
99
97

query I rowsort
SELECT ALL - 84 - col1 AS col0 FROM tab1
----
-131
-89
-98

query I rowsort
SELECT DISTINCT col0 - - col0 * - - col0 FROM tab1
----
2652
7310
8372

onlyif mysql # aggregate syntax: 
query I rowsort label-3405
SELECT DISTINCT + COUNT( DISTINCT - 45 ) AS col1 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-3405
SELECT DISTINCT + COUNT ( DISTINCT - 45 ) AS col1 FROM tab0
----
1

query I rowsort
SELECT - col1 - - - col0 FROM tab2
----
-141
-142
-97

query III rowsort
SELECT * FROM tab2 WHERE 39 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - 33 + 5 + + col0 FROM tab0 AS cor0
----
-13
59
69

query I rowsort
SELECT + 42 + + - col2 FROM tab1 AS cor0
----
-17
-26
-54

query I rowsort
SELECT - ( - col0 ) FROM tab0 WHERE NOT + col2 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3411
SELECT - col0 DIV + col0 + 0 AS col1 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-3411
SELECT - col0 / + col0 + 0 AS col1 FROM tab2 AS cor0
----
-1
-1
-1

query II rowsort
SELECT ALL + 25, 63 AS col2 FROM tab1 cor0 WHERE NOT ( NULL ) IS NOT NULL
----
25
63
25
63
25
63

onlyif mysql # aggregate syntax: 
query I rowsort label-3413
SELECT ALL COUNT( - 91 ) AS col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3413
SELECT ALL COUNT ( - 91 ) AS col0 FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3414
SELECT DISTINCT - MAX( DISTINCT col2 ) AS col2 FROM tab0 cor0
----
-99

skipif mysql # not compatible
query I rowsort label-3414
SELECT DISTINCT - MAX ( DISTINCT col2 ) AS col2 FROM tab0 cor0
----
-99

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND + 97 * - col0 + - 97
----

query I rowsort
SELECT ALL + 36 * - - col2 FROM tab2 AS cor0
----
1440
2088
828

query I rowsort
SELECT + - col1 * - - 33 FROM tab1 AS cor0
----
-1551
-165
-462

onlyif mysql # aggregate syntax: 
query I rowsort label-3418
SELECT DISTINCT ( - 73 ) * - COUNT( DISTINCT - col2 ) AS col1 FROM tab2
----
219

skipif mysql # not compatible
query I rowsort label-3418
SELECT DISTINCT ( - 73 ) * - COUNT ( DISTINCT - col2 ) AS col1 FROM tab2
----
219

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + col2 BETWEEN - 62 AND - col0
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3420
SELECT DISTINCT + 65, - MAX( - col1 ) AS col0 FROM tab2
----
65
51

skipif mysql # not compatible
query II rowsort label-3420
SELECT DISTINCT + 65, - MAX ( - col1 ) AS col0 FROM tab2
----
65
51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 90 + - 62 col0 FROM tab0
----
28
28
28

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE 19 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3423
SELECT MIN( DISTINCT + - col0 ) + 75 * - 7 AS col2 FROM tab0 AS cor0
----
-622

skipif mysql # not compatible
query I rowsort label-3423
SELECT MIN ( DISTINCT + - col0 ) + 75 * - 7 AS col2 FROM tab0 AS cor0
----
-622

query I rowsort
SELECT 3 * 19 FROM tab1
----
57
57
57

query I rowsort
SELECT col1 * ( - + col1 ) FROM tab1
----
-196
-2209
-25

query II rowsort
SELECT + ( + col0 ), col1 AS col2 FROM tab1 AS cor0
----
51
14
85
5
91
47

query I rowsort
SELECT - 59 + - col1 FROM tab1 cor0
----
-106
-64
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-3428
SELECT - COUNT( * ) + + - 48 - - - 2 AS col0 FROM tab0 AS cor0
----
-53

skipif mysql # not compatible
query I rowsort label-3428
SELECT - COUNT ( * ) + + - 48 - - - 2 AS col0 FROM tab0 AS cor0
----
-53

query I rowsort
SELECT DISTINCT - 12 + - + col0 FROM tab2 AS cor0
----
-58
-76
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-3430
SELECT - - COUNT( * ) + + - COUNT( * ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3430
SELECT - - COUNT ( * ) + + - COUNT ( * ) FROM tab1 AS cor0
----
0

query I rowsort
SELECT + + 98 + + + col0 AS col2 FROM tab2 AS cor0
----
144
162
173

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3432
SELECT * FROM tab1 WHERE + + col0 * CAST( - col2 AS DECIMAL ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-3432
SELECT * FROM tab1 WHERE + + col0 * CAST ( - col2 AS REAL ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col2 FROM tab0 WHERE col1 IS NOT NULL
----
10
47
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 83 * col2 col0 FROM tab1 WHERE + 20 IS NOT NULL
----
-4897
-5644
-7968

query II rowsort
SELECT ALL col2 AS col0, + 89 FROM tab1
----
59
89
68
89
96
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 22 col1 FROM tab1, tab0 cor0
----
9 values hashing to fae46f8148b02964f7145eb6ed5819f9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * col0 * - 84 col0 FROM tab2
----
-215040
-365400
-88872

onlyif mysql # DIV for integer division: 
query I rowsort label-3438
SELECT 20 DIV - - 19 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3438
SELECT 20 / - - 19 FROM tab0
----
1
1
1

query I rowsort
SELECT ALL + - 1 + + 93 AS col1 FROM tab2 AS cor0
----
92
92
92

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 34 * - + col1 = col1 + col1
----

query I rowsort
SELECT ALL col1 + 15 AS col2 FROM tab0 cor0
----
16
36
96

onlyif mysql # aggregate syntax: 
query I rowsort label-3442
SELECT COUNT( * ) * 53 FROM tab0 AS cor0
----
159

skipif mysql # not compatible
query I rowsort label-3442
SELECT COUNT ( * ) * 53 FROM tab0 AS cor0
----
159

onlyif mysql # aggregate syntax: 
query I rowsort label-3443
SELECT ALL + ( - + 30 ) * - COUNT( * ) * + COUNT( * ) AS col2 FROM tab0 AS cor0
----
270

skipif mysql # not compatible
query I rowsort label-3443
SELECT ALL + ( - + 30 ) * - COUNT ( * ) * + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
270

query I rowsort
SELECT + col0 AS col0 FROM tab0 WHERE NOT + 66 * - col2 IS NOT NULL
----

query I rowsort
SELECT ALL - + 85 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 8ebc8ffafb1517ea04e3a6fc4059d88a

query II rowsort
SELECT - + col0 * + + col1 AS col0, col2 AS col1 FROM tab1 AS cor0
----
-425
59
-4277
68
-714
96

query I rowsort
SELECT DISTINCT + 2 * + col0 AS col0 FROM tab0
----
174
194
30

query I rowsort
SELECT 22 * - - col2 AS col0 FROM tab0
----
1034
2178
220

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 AS col0, 98 col0 FROM tab0
----
10
98
47
98
99
98

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3450
SELECT + CAST( NULL AS DECIMAL ) FROM tab1 WHERE NOT - CAST( + col2 AS DECIMAL ) = NULL
----

skipif mysql # not compatible
query I rowsort label-3450
SELECT + CAST ( NULL AS REAL ) FROM tab1 WHERE NOT - CAST ( + col2 AS REAL ) = NULL
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3451
SELECT ALL CAST( NULL AS DECIMAL ) * + COUNT( * ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3451
SELECT ALL CAST ( NULL AS REAL ) * + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT - 18 AS col1 FROM tab0 cor0 WHERE NOT NULL BETWEEN NULL AND ( NULL )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL IN ( col0 * - - col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3454
SELECT DISTINCT + - col0 * col1 * CAST( + col0 AS SIGNED ) * - col2 + + 44 - + col2 * + col0 AS col1 FROM tab0 AS cor0
----
1588664
855914
921932

skipif mysql # not compatible
query I rowsort label-3454
SELECT DISTINCT + - col0 * col1 * CAST ( + col0 AS INTEGER ) * - col2 + + 44 - + col2 * + col0 AS col1 FROM tab0 AS cor0
----
1588664
855914
921932

query I rowsort
SELECT ALL ( + col1 ) * - col0 + + - col1 * + - col0 + col2 AS col0 FROM tab0 cor0
----
10
47
99

query I rowsort
SELECT ALL 90 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 96f7a90428db93f472e0d219bab64853

onlyif mysql # aggregate syntax: 
query I rowsort label-3457
SELECT DISTINCT + 11 + COUNT( * ) AS col0 FROM tab0
----
14

skipif mysql # not compatible
query I rowsort label-3457
SELECT DISTINCT + 11 + COUNT ( * ) AS col0 FROM tab0
----
14

query II rowsort
SELECT ALL col0 * - col0, 62 AS col0 FROM tab1
----
-2601
62
-7225
62
-8281
62

query I rowsort
SELECT col0 + - + col2 * - col2 + - col0 AS col0 FROM tab0
----
100
2209
9801

query I rowsort
SELECT DISTINCT + - 64 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-64

query II rowsort
SELECT DISTINCT 25, - col2 / + + col0 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL - + col2 * + col2 + + - 23 + + 11 AS col1 FROM tab1 AS cor0
----
-3493
-4636
-9228

query I rowsort
SELECT + ( + 57 ) FROM tab1 cor0
----
57
57
57

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3464
SELECT DISTINCT - + col1 - + CAST( NULL AS SIGNED ) AS col0, ( 43 ) * CAST( col2 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
1720
NULL
2494
NULL
989

skipif mysql # not compatible
query II rowsort label-3464
SELECT DISTINCT - + col1 - + CAST ( NULL AS INTEGER ) AS col0, ( 43 ) * CAST ( col2 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
1720
NULL
2494
NULL
989

onlyif mysql # DIV for integer division: 
query II rowsort label-3465
SELECT + 21 AS col1, col1 DIV + + 4 AS col2 FROM tab1 AS cor0
----
21
1
21
11
21
3

skipif mysql # not compatible
query II rowsort label-3465
SELECT + 21 AS col1, col1 / + + 4 AS col2 FROM tab1 AS cor0
----
21
1
21
11
21
3

query II rowsort
SELECT ALL + col1 + col0, col2 AS col0 FROM tab2 AS cor0
----
141
40
142
58
97
23

onlyif mysql # aggregate syntax: 
query I rowsort label-3467
SELECT ALL SUM( + 91 ) * SUM( ALL col0 ) AS col1 FROM tab2
----
50505

skipif mysql # not compatible
query I rowsort label-3467
SELECT ALL SUM ( + 91 ) * SUM ( ALL col0 ) AS col1 FROM tab2
----
50505

onlyif mysql # DIV for integer division: 
query I rowsort label-3468
SELECT ALL col0 DIV - + col1 - col1 AS col1 FROM tab2
----
-51
-68
-77

skipif mysql # not compatible
query I rowsort label-3468
SELECT ALL col0 / - + col1 - col1 AS col1 FROM tab2
----
-51
-68
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3469
SELECT - 74 * - CAST( + + col0 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
1110
6438
7178

skipif mysql # not compatible
query I rowsort label-3469
SELECT - 74 * - CAST ( + + col0 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
1110
6438
7178

onlyif mysql # aggregate syntax: 
query I rowsort label-3470
SELECT - COUNT( 39 ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-3470
SELECT - COUNT ( 39 ) FROM tab1
----
-3

query II rowsort
SELECT ALL + col0, 97 FROM tab1 cor0
----
51
97
85
97
91
97

onlyif mysql # aggregate syntax: 
query II rowsort label-3472
SELECT 72 AS col0, COUNT( DISTINCT - + col0 ) AS col1 FROM tab1 AS cor0
----
72
3

skipif mysql # not compatible
query II rowsort label-3472
SELECT 72 AS col0, COUNT ( DISTINCT - + col0 ) AS col1 FROM tab1 AS cor0
----
72
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3473
SELECT 29 * + + COUNT( * ) * + 97 FROM tab2 AS cor0
----
8439

skipif mysql # not compatible
query I rowsort label-3473
SELECT 29 * + + COUNT ( * ) * + 97 FROM tab2 AS cor0
----
8439

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3474
SELECT DISTINCT + CAST( NULL AS SIGNED ) + - COUNT( * ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3474
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * 38 col1 FROM tab1 cor0
----
1786
190
532

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NOT NULL NOT BETWEEN 45 / + + col0 * 69 AND col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3477
SELECT DISTINCT + 38 * AVG ( - + CAST( 23 AS SIGNED ) ) AS col1, 8 FROM tab1 WHERE NOT ( NOT CAST( - + col0 AS SIGNED ) > NULL )
----
NULL
8

skipif mysql # not compatible
query II rowsort label-3477
SELECT DISTINCT + 38 * AVG ( - + CAST ( 23 AS INTEGER ) ) AS col1, 8 FROM tab1 WHERE NOT ( NOT CAST ( - + col0 AS INTEGER ) > NULL )
----
NULL
8

query II rowsort
SELECT DISTINCT 83 + col0, + col0 FROM tab2
----
129
46
147
64
158
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( + col2 ) + - + 29 + - col2 col0 FROM tab2 cor0
----
-109
-145
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3480
SELECT + - CAST( NULL AS SIGNED ) + - - col1 * + col1 * 29 + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3480
SELECT + - CAST ( NULL AS INTEGER ) + - - col1 * + col1 * 29 + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - - col0 FROM tab0 WHERE NULL < - col2
----

query I rowsort
SELECT - 53 AS col1 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to fee5c00ad71c23e23683a32c71fe6e7d

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 + + 50 col1 FROM tab1 AS cor0
----
3
36
45

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 14 + - 23 col2 FROM tab1 AS cor0
----
-9
-9
-9

query I rowsort
SELECT DISTINCT - 8 + - + 26 + - col0 * col0 FROM tab2 AS cor0
----
-2150
-4130
-5659

query I rowsort
SELECT col0 * + col1 * - 47 * - + 45 + + col1 * + col1 FROM tab1 cor0
----
1510306
898900
9048064

onlyif mysql # aggregate syntax: 
query I rowsort label-3487
SELECT DISTINCT + COUNT( * ) + 2 AS col2 FROM tab0
----
5

skipif mysql # not compatible
query I rowsort label-3487
SELECT DISTINCT + COUNT ( * ) + 2 AS col2 FROM tab0
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-3488
SELECT ALL + COUNT( * ) * + + 88 - ( + COUNT( * ) ) FROM tab2
----
261

skipif mysql # not compatible
query I rowsort label-3488
SELECT ALL + COUNT ( * ) * + + 88 - ( + COUNT ( * ) ) FROM tab2
----
261

query III rowsort
SELECT * FROM tab0 WHERE NOT ( - 27 ) / - - col0 = NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-3490
SELECT - col2 AS col0, 1 DIV col2 FROM tab1
----
-59
0
-68
0
-96
0

skipif mysql # not compatible
query II rowsort label-3490
SELECT - col2 AS col0, 1 / col2 FROM tab1
----
-59
0
-68
0
-96
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3491
SELECT 59, COUNT( * ) * COUNT( * ) + COUNT( * ) + COUNT( * ) AS col2 FROM tab1
----
59
15

skipif mysql # not compatible
query II rowsort label-3491
SELECT 59, COUNT ( * ) * COUNT ( * ) + COUNT ( * ) + COUNT ( * ) AS col2 FROM tab1
----
59
15

query I rowsort
SELECT + 68 * - col2 AS col0 FROM tab0
----
-3196
-6732
-680

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ( + 26 ) AS col1, - 23 + - col2 col0 FROM tab1
----
26
-119
26
-82
26
-91

query III rowsort
SELECT * FROM tab1 WHERE NOT - 83 IN ( 85 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3495
SELECT COUNT( - col0 ) FROM tab1 WHERE NOT + 24 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3495
SELECT COUNT ( - col0 ) FROM tab1 WHERE NOT + 24 IS NOT NULL
----
0

query II rowsort
SELECT ALL + - 31 AS col2, + col2 FROM tab0 AS cor0 WHERE NULL = + col2 * col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3497
SELECT SUM( 7 ) AS col2 FROM tab0 WHERE NOT 86 IS NULL
----
21

skipif mysql # not compatible
query I rowsort label-3497
SELECT SUM ( 7 ) AS col2 FROM tab0 WHERE NOT 86 IS NULL
----
21

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - + 9 + col2 col1, - col1 AS col1 FROM tab2 AS cor0
----
14
-51
31
-77
49
-67

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3499
SELECT col1 + col1 + col0 / - ( CAST( NULL AS SIGNED ) ) AS col1, 62 FROM tab1 AS cor0
----
NULL
62
NULL
62
NULL
62

skipif mysql # not compatible
query II rowsort label-3499
SELECT col1 + col1 + col0 / - ( CAST ( NULL AS INTEGER ) ) AS col1, 62 FROM tab1 AS cor0
----
NULL
62
NULL
62
NULL
62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3500
SELECT + ( - + 61 ) FROM tab2 AS cor0 WHERE NOT - col1 + col2 + + 56 / col2 * - ( + + 66 ) + - CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-3500
SELECT + ( - + 61 ) FROM tab2 AS cor0 WHERE NOT - col1 + col2 + + 56 / col2 * - ( + + 66 ) + - CAST ( NULL AS INTEGER ) IS NULL
----

query I rowsort
SELECT DISTINCT + col2 FROM tab0 AS cor0 WHERE NOT col0 + 77 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NULL <> col0 - - - 5
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3503
SELECT + 40 * - COUNT( * ) col2 FROM tab2
----
-120

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3503
SELECT + 40 * - COUNT ( * ) col2 FROM tab2
----
-120

onlyif mysql # aggregate syntax: 
query I rowsort label-3504
SELECT DISTINCT + 62 * + + COUNT( * ) FROM tab2
----
186

skipif mysql # not compatible
query I rowsort label-3504
SELECT DISTINCT + 62 * + + COUNT ( * ) FROM tab2
----
186

query I rowsort
SELECT - 85 FROM tab2 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL col0 + - 6 FROM tab0 AS cor0
----
81
9
91

query I rowsort
SELECT + + 53 * 75 AS col1 FROM tab2 AS cor0 WHERE + col0 IS NOT NULL
----
3975
3975
3975

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NULL IN ( - col1, col0 * - - ( + 82 ) ) )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + col2 + + + col1 = + ( + col1 ) * + col1 + col0
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - 65 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3511
SELECT DISTINCT + COUNT( + col2 ) * + + 10 AS col2 FROM tab2 AS cor0
----
30

skipif mysql # not compatible
query I rowsort label-3511
SELECT DISTINCT + COUNT ( + col2 ) * + + 10 AS col2 FROM tab2 AS cor0
----
30

onlyif mysql # DIV for integer division: 
query I rowsort label-3512
SELECT DISTINCT col2 DIV - + col1 - - col2 AS col0 FROM tab2
----
23
40
58

skipif mysql # not compatible
query I rowsort label-3512
SELECT DISTINCT col2 / - + col1 - - col2 AS col0 FROM tab2
----
23
40
58

query I rowsort
SELECT DISTINCT + 54 AS col0 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN + 48 / + 64 AND + col1
----

query I rowsort
SELECT - 79 / - col1 FROM tab1 AS cor0 WHERE + 96 + - - 75 IN ( + + ( ( + + 91 ) ), - col2, - col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col0 + - col1, col2 col0 FROM tab0 AS cor0
----
-108
10
-96
47
-98
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3516
SELECT + 93 - + COUNT( * ) * + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3516
SELECT + 93 - + COUNT ( * ) * + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT + col2 * 49 - - - col2 - + col0 AS col0 FROM tab2 AS cor0
----
1058
1856
2709

onlyif mysql # aggregate syntax: 
query I rowsort label-3518
SELECT MAX( ALL - - col2 ) col2 FROM tab0
----
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3518
SELECT MAX ( ALL - - col2 ) col2 FROM tab0
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-3519
SELECT DISTINCT - 12 * - COUNT( * ) FROM tab0
----
36

skipif mysql # not compatible
query I rowsort label-3519
SELECT DISTINCT - 12 * - COUNT ( * ) FROM tab0
----
36

query III rowsort
SELECT * FROM tab1 WHERE NOT - 95 IS NOT NULL
----

query I rowsort
SELECT ALL + 81 AS col2 FROM tab2 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL <= col2 + - + col1
----

query II rowsort
SELECT DISTINCT col2 AS col1, + 85 AS col2 FROM tab1
----
59
85
68
85
96
85

onlyif mysql # aggregate syntax: 
query I rowsort label-3524
SELECT COUNT( DISTINCT - - col1 ) * + COUNT( * ) FROM tab1 WHERE NULL <> col2 AND NULL >= 83
----
0

skipif mysql # not compatible
query I rowsort label-3524
SELECT COUNT ( DISTINCT - - col1 ) * + COUNT ( * ) FROM tab1 WHERE NULL <> col2 AND NULL >= 83
----
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 57 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL 9 + + - 5 AS col2 FROM tab0 AS cor0
----
4
4
4

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3527
SELECT col2, + CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
59
NULL
68
NULL
96
NULL

skipif mysql # not compatible
query II rowsort label-3527
SELECT col2, + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
59
NULL
68
NULL
96
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-3528
SELECT DISTINCT col2 AS col1, 73 DIV - col1 FROM tab2 AS cor0
----
23
-1
40
0
58
-1

skipif mysql # not compatible
query II rowsort label-3528
SELECT DISTINCT col2 AS col1, 73 / - col1 FROM tab2 AS cor0
----
23
-1
40
0
58
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3529
SELECT DISTINCT + COUNT( * ) + + MAX( DISTINCT + col1 ) FROM tab2 AS cor0
----
80

skipif mysql # not compatible
query I rowsort label-3529
SELECT DISTINCT + COUNT ( * ) + + MAX ( DISTINCT + col1 ) FROM tab2 AS cor0
----
80

query I rowsort
SELECT - col0 + - - 47 AS col1 FROM tab1
----
-38
-4
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-3531
SELECT - COUNT( + col0 ) AS col2 FROM tab0 WHERE NULL IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-3531
SELECT - COUNT ( + col0 ) AS col2 FROM tab0 WHERE NULL IS NULL
----
-3

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3532
SELECT * FROM tab0 WHERE + CAST( - 30 AS DECIMAL ) + + col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-3532
SELECT * FROM tab0 WHERE + CAST ( - 30 AS REAL ) + + col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-3533
SELECT col0 DIV + col0 + 93 FROM tab1
----
94
94
94

skipif mysql # not compatible
query I rowsort label-3533
SELECT col0 / + col0 + 93 FROM tab1
----
94
94
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3534
SELECT ALL + + CAST( + 69 AS SIGNED ) + - col2 * + - ( + ( - - 33 ) ) * + - 95 FROM tab1 AS cor0
----
-184896
-213111
-300891

skipif mysql # not compatible
query I rowsort label-3534
SELECT ALL + + CAST ( + 69 AS INTEGER ) + - col2 * + - ( + ( - - 33 ) ) * + - 95 FROM tab1 AS cor0
----
-184896
-213111
-300891

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 col2 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 33 col0 FROM tab1 AS cor0
----
-33
-33
-33

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN NULL AND col2 * col1
----

query II rowsort
SELECT DISTINCT + + col0, - col0 * col0 * + col0 + 93 + + col0 FROM tab0 AS cor0
----
15
-3267
87
-658323
97
-912483

onlyif mysql # aggregate syntax: 
query I rowsort label-3539
SELECT + MIN( DISTINCT - 29 ) AS col2 FROM tab2 AS cor0
----
-29

skipif mysql # not compatible
query I rowsort label-3539
SELECT + MIN ( DISTINCT - 29 ) AS col2 FROM tab2 AS cor0
----
-29

query I rowsort
SELECT ALL - col1 FROM tab2 cor0 WHERE NOT col0 * + ( + + col0 ) * + - col2 NOT BETWEEN NULL AND + col0
----

query III rowsort
SELECT ALL - col0 * + col1 * + 93 - col1 - ( col2 ) AS col1, 12 + - - col2 * - 36, + 53 AS col0 FROM tab2 AS cor0
----
9 values hashing to 94096b68b09b96662075d187756513e6

query I rowsort
SELECT ALL + ( - ( + col2 ) ) AS col1 FROM tab0 AS cor0
----
-10
-47
-99

query I rowsort
SELECT DISTINCT 89 * - 6 - + - col0 AS col0 FROM tab2 AS cor0 WHERE col2 > + - col1
----
-459
-470
-488

onlyif mysql # aggregate syntax: 
query II rowsort label-3544
SELECT ALL + MIN( DISTINCT + col0 ) col0, + 21 * + 53 FROM tab2
----
46
1113

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3544
SELECT ALL + MIN ( DISTINCT + col0 ) col0, + 21 * + 53 FROM tab2
----
46
1113

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 col0 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
14
47
5

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col1 NOT IN ( 13 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3547
SELECT DISTINCT CAST( col2 AS SIGNED ), - col1 * - + 89 AS col1 FROM tab0 WHERE NOT 17 IS NULL
----
10
1869
47
7209
99
89

skipif mysql # not compatible
query II rowsort label-3547
SELECT DISTINCT CAST ( col2 AS INTEGER ), - col1 * - + 89 AS col1 FROM tab0 WHERE NOT 17 IS NULL
----
10
1869
47
7209
99
89

onlyif mysql # aggregate syntax: 
query I rowsort label-3548
SELECT 93 * - - COUNT( * ) + COUNT( * ) FROM tab2
----
282

skipif mysql # not compatible
query I rowsort label-3548
SELECT 93 * - - COUNT ( * ) + COUNT ( * ) FROM tab2
----
282

query II rowsort
SELECT DISTINCT + col0, col0 AS col0 FROM tab1 AS cor0 WHERE ( NULL ) >= NULL
----

query I rowsort
SELECT + - 15 FROM tab2 AS cor0 WHERE ( NULL ) > NULL
----

query II rowsort
SELECT + - 91 * col1, - col1 AS col0 FROM tab2 cor0 WHERE 80 - col2 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT col2 + + 64 FROM tab2 AS cor0 WHERE NULL <= ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3553
SELECT DISTINCT - COUNT( * ) + + COUNT( * ) FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-3553
SELECT DISTINCT - COUNT ( * ) + + COUNT ( * ) FROM tab2 cor0
----
0

query I rowsort
SELECT DISTINCT + - col0 + col0 * - col2 AS col1 FROM tab1 AS cor0
----
-4947
-5100
-6279

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3555
SELECT - + CAST( + - 53 AS SIGNED ) * - SUM( DISTINCT + 24 ) FROM tab1 cor0
----
-1272

skipif mysql # not compatible
query I rowsort label-3555
SELECT - + CAST ( + - 53 AS INTEGER ) * - SUM ( DISTINCT + 24 ) FROM tab1 cor0
----
-1272

query I rowsort
SELECT + col1 AS col2 FROM tab2 WHERE - col1 IS NOT NULL
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-3557
SELECT ALL + + COUNT( * ) AS col2 FROM tab0 WHERE NOT col2 * col0 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-3557
SELECT ALL + + COUNT ( * ) AS col2 FROM tab0 WHERE NOT col2 * col0 IS NULL
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3558
SELECT 70 DIV COUNT( * ) AS col0 FROM tab1
----
23

skipif mysql # not compatible
query I rowsort label-3558
SELECT 70 / COUNT ( * ) AS col0 FROM tab1
----
23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 * - col0 col0, + col0 * + col0 FROM tab2
----
-2346
2116
-4928
4096
-5025
5625

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col1 + + + col0 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3561
SELECT DISTINCT col1 * + col0 FROM tab0 WHERE NOT + + CAST( NULL AS SIGNED ) IS NOT NULL
----
1215
1827
97

skipif mysql # not compatible
query I rowsort label-3561
SELECT DISTINCT col1 * + col0 FROM tab0 WHERE NOT + + CAST ( NULL AS INTEGER ) IS NOT NULL
----
1215
1827
97

query I rowsort
SELECT + 93 + - 8 AS col1 FROM tab0 AS cor0
----
85
85
85

onlyif mysql # aggregate syntax: 
query I rowsort label-3563
SELECT ALL MAX( DISTINCT + col2 ) + ( - + MAX( - + 86 ) ) AS col1 FROM tab2 AS cor0
----
144

skipif mysql # not compatible
query I rowsort label-3563
SELECT ALL MAX ( DISTINCT + col2 ) + ( - + MAX ( - + 86 ) ) AS col1 FROM tab2 AS cor0
----
144

query I rowsort
SELECT - 13 * col1 FROM tab2
----
-1001
-663
-871

query I rowsort
SELECT - col2 * col1 + - - 31 AS col0 FROM tab2 WHERE NULL IS NULL
----
-1142
-3049
-3855

onlyif mysql # aggregate syntax: 
query I rowsort label-3566
SELECT ALL + COUNT( * ) FROM tab2 AS cor0 WHERE NOT ( NOT NULL IS NULL )
----
3

skipif mysql # not compatible
query I rowsort label-3566
SELECT ALL + COUNT ( * ) FROM tab2 AS cor0 WHERE NOT ( NOT NULL IS NULL )
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 59 * ( col2 ) col0, col0 AS col1 FROM tab2 AS cor0
----
1357
46
2360
64
3422
75

onlyif mysql # DIV for integer division: 
query II rowsort label-3568
SELECT ALL - col2 * + - col1, - col0 DIV 36 AS col1 FROM tab1 AS cor0
----
1344
-1
295
-2
3196
-2

skipif mysql # not compatible
query II rowsort label-3568
SELECT ALL - col2 * + - col1, - col0 / 36 AS col1 FROM tab1 AS cor0
----
1344
-1
295
-2
3196
-2

query I rowsort
SELECT DISTINCT + - col2 * - + col2 FROM tab1 AS cor0
----
3481
4624
9216

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT 53 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - - col1 * - + 8 + + + col1 - - 14 NOT BETWEEN NULL AND 94
----

query II rowsort
SELECT - col2, - col0 + + 89 AS col0 FROM tab0
----
-10
2
-47
74
-99
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-3573
SELECT ALL COUNT( ALL + - col1 ) AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-3573
SELECT ALL COUNT ( ALL + - col1 ) AS col0 FROM tab2
----
3

query II rowsort
SELECT DISTINCT - 51 AS col2, - ( col2 ) AS col0 FROM tab2
----
-51
-23
-51
-40
-51
-58

query II rowsort
SELECT + 79, col1 + - + col1 AS col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
79
0
79
0
79
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3576
SELECT col0 DIV + - col2 FROM tab0
----
-8
0
0

skipif mysql # not compatible
query I rowsort label-3576
SELECT col0 / + - col2 FROM tab0
----
-8
0
0

query II rowsort
SELECT ALL + 59, + col2 * - - 2 AS col1 FROM tab1
----
59
118
59
136
59
192

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3578
SELECT ALL * FROM tab1 WHERE - col2 BETWEEN NULL AND CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-3578
SELECT ALL * FROM tab1 WHERE - col2 BETWEEN NULL AND CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3579
SELECT ALL MAX( ALL - - col1 ) AS col1 FROM tab0
----
81

skipif mysql # not compatible
query I rowsort label-3579
SELECT ALL MAX ( ALL - - col1 ) AS col1 FROM tab0
----
81

query I rowsort
SELECT ALL 6 * + + 35 FROM tab2
----
210
210
210

onlyif mysql # aggregate syntax: 
query I rowsort label-3581
SELECT DISTINCT + + 73 * COUNT( * ) AS col0 FROM tab1 AS cor0
----
219

skipif mysql # not compatible
query I rowsort label-3581
SELECT DISTINCT + + 73 * COUNT ( * ) AS col0 FROM tab1 AS cor0
----
219

query I rowsort
SELECT + + col2 + - + 67 FROM tab0 AS cor0
----
-20
-57
32

query II rowsort
SELECT DISTINCT col2 AS col2, col0 / + + 70 AS col0 FROM tab2 WHERE NULL >= - + col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 72 col0 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
-72

query III rowsort
SELECT * FROM tab1 WHERE ( ( + 64 ) <= NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - ( + col1 ) * - - col0 + - + 95 + + col0 col0, 56 FROM tab0
----
-1295
56
-1835
56
-95
56

onlyif mysql # DIV for integer division: 
query I rowsort label-3587
SELECT + 16 DIV 66 AS col1 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3587
SELECT + 16 / 66 AS col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT + + col0 + + 25 AS col1 FROM tab0 AS cor0
----
112
122
40

query I rowsort
SELECT - col1 FROM tab2 cor0 WHERE 6 + - - col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3590
SELECT ALL 45 * + col1 + - - col2 + - col0 / - - CAST( NULL AS SIGNED ) col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3590
SELECT ALL 45 * + col1 + - - col2 + - col0 / - - CAST ( NULL AS INTEGER ) col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT 33 + - col2 AS col2, - col2 AS col0 FROM tab2 AS cor0 WHERE 49 IS NOT NULL
----
-25
-58
-7
-40
10
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-3592
SELECT COUNT( DISTINCT 14 ) + - 40 + - - 61 FROM tab0 AS cor0
----
22

skipif mysql # not compatible
query I rowsort label-3592
SELECT COUNT ( DISTINCT 14 ) + - 40 + - - 61 FROM tab0 AS cor0
----
22

query I rowsort
SELECT DISTINCT + col0 - - ( + + 52 ) FROM tab2
----
116
127
98

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - - col0 + + 29 IS NOT NULL
----

query I rowsort
SELECT 24 + - col0 + + - 86 * + + 18 FROM tab0
----
-1539
-1611
-1621

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - - col2 * + col1 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3597
SELECT - MIN( DISTINCT + 33 ) * 55 FROM tab0
----
-1815

skipif mysql # not compatible
query I rowsort label-3597
SELECT - MIN ( DISTINCT + 33 ) * 55 FROM tab0
----
-1815

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 86 = + col0 * + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3599
SELECT * FROM tab1 AS cor0 WHERE + col1 > + - col1 * - ( + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-3599
SELECT * FROM tab1 AS cor0 WHERE + col1 > + - col1 * - ( + CAST ( NULL AS INTEGER ) )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 21 NOT IN ( + col1, - col0, - col1 )
----
15
81
47
97
1
99

query I rowsort
SELECT DISTINCT col1 + 7 FROM tab2 AS cor0
----
58
74
84

onlyif mysql # aggregate syntax: 
query II rowsort label-3602
SELECT - 87, + COUNT( * ) col2 FROM tab0
----
-87
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3602
SELECT - 87, + COUNT ( * ) col2 FROM tab0
----
-87
3

query II rowsort
SELECT ALL + col2 AS col0, - col0 AS col2 FROM tab0
----
10
-87
47
-15
99
-97

onlyif mysql # aggregate syntax: 
query II rowsort label-3604
SELECT + COUNT( * ), COUNT( * ) FROM tab1
----
3
3

skipif mysql # not compatible
query II rowsort label-3604
SELECT + COUNT ( * ), COUNT ( * ) FROM tab1
----
3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3605
SELECT + COUNT( * ) * + 46 FROM tab0
----
138

skipif mysql # not compatible
query I rowsort label-3605
SELECT + COUNT ( * ) * + 46 FROM tab0
----
138

query I rowsort
SELECT DISTINCT 91 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
91

query II rowsort
SELECT col1, 29 FROM tab0
----
1
29
21
29
81
29

query I rowsort
SELECT - 40 * - 94 * - col1 AS col1 FROM tab1 AS cor0
----
-176720
-18800
-52640

query I rowsort
SELECT - - 19 * col2 AS col1 FROM tab0 cor0
----
1881
190
893

onlyif mysql # aggregate syntax: 
query I rowsort label-3610
SELECT 39 * + + ( + COUNT( * ) ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3610
SELECT 39 * + + ( + COUNT ( * ) ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
0

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT NULL IN ( + 80 * col1 + - + col1 * - col1 + - col1, col2, - + ( 10 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3612
SELECT DISTINCT + SUM( ALL 90 ) AS col0 FROM tab0, tab2 cor0
----
810

skipif mysql # not compatible
query I rowsort label-3612
SELECT DISTINCT + SUM ( ALL 90 ) AS col0 FROM tab0, tab2 cor0
----
810

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3613
SELECT + MIN( - CAST( NULL AS DECIMAL ) ) + + 11 FROM tab2, tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3613
SELECT + MIN ( - CAST ( NULL AS REAL ) ) + + 11 FROM tab2, tab1 cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3614
SELECT - MAX( DISTINCT - 27 ) FROM tab1 AS cor0
----
27

skipif mysql # not compatible
query I rowsort label-3614
SELECT - MAX ( DISTINCT - 27 ) FROM tab1 AS cor0
----
27

query I rowsort
SELECT DISTINCT + + 2 * - 12 AS col2 FROM tab0 AS cor0
----
-24

query I rowsort
SELECT - col2 * + 77 * col1 + + + col1 FROM tab2 WHERE NULL > + col2
----

query I rowsort
SELECT - col1 + - 70 FROM tab0
----
-151
-71
-91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col1 * + - col2 col0 FROM tab2 AS cor0
----
-1173
-3080
-3886

query II rowsort
SELECT ALL col1 * + 62 + - col0, + col1 FROM tab0 cor0
----
-35
1
1215
21
5007
81

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 12 + + - col0 * - + 80 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3621
SELECT DISTINCT + MIN( DISTINCT col0 ) + ( - COUNT( DISTINCT + col2 ) ) FROM tab0 AS cor0
----
12

skipif mysql # not compatible
query I rowsort label-3621
SELECT DISTINCT + MIN ( DISTINCT col0 ) + ( - COUNT ( DISTINCT + col2 ) ) FROM tab0 AS cor0
----
12

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( 83 ) < ( NULL )
----

query I rowsort
SELECT ALL + + 74 + - - col2 * + col2 AS col0 FROM tab2 AS cor0
----
1674
3438
603

onlyif mysql # aggregate syntax: 
query I rowsort label-3624
SELECT DISTINCT + ( + 56 ) + + COUNT( * ) AS col2 FROM tab1 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-3624
SELECT DISTINCT + ( + 56 ) + + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-3625
SELECT + ( + COUNT( ALL - col2 ) ) AS col0 FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-3625
SELECT + ( + COUNT ( ALL - col2 ) ) AS col0 FROM tab0 cor0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-3626
SELECT col0 * col1 DIV - + col1 AS col1 FROM tab2
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-3626
SELECT col0 * col1 / - + col1 AS col1 FROM tab2
----
-46
-64
-75

onlyif mysql # DIV for integer division: 
query I rowsort label-3627
SELECT - ( 8 ) DIV - - col2 - col1 FROM tab0
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-3627
SELECT - ( 8 ) / - - col2 - col1 FROM tab0
----
-1
-21
-81

query II rowsort
SELECT DISTINCT + 40 - col1 AS col2, - ( col1 ) FROM tab2
----
-11
-51
-27
-67
-37
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3629
SELECT ALL col0 * - CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3629
SELECT ALL col0 * - CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3630
SELECT ALL COUNT( * ) DIV + + COUNT( * ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-3630
SELECT ALL COUNT ( * ) / + + COUNT ( * ) FROM tab0
----
1

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL NOT BETWEEN col2 / - col2 AND NULL
----

query II rowsort
SELECT DISTINCT - - col0 * - 50 AS col0, col0 FROM tab2 cor0
----
-2300
46
-3200
64
-3750
75

onlyif mysql # DIV for integer division: 
query I rowsort label-3633
SELECT + - 87 DIV 34 + 48 AS col0 FROM tab1 AS cor0
----
46
46
46

skipif mysql # not compatible
query I rowsort label-3633
SELECT + - 87 / 34 + 48 AS col0 FROM tab1 AS cor0
----
46
46
46

onlyif mysql # aggregate syntax: 
query I rowsort label-3634
SELECT SUM( + - 29 ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-261

skipif mysql # not compatible
query I rowsort label-3634
SELECT SUM ( + - 29 ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-261

query III rowsort
SELECT * FROM tab2 WHERE NOT - + col2 / - - col2 <> NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3636
SELECT 33 * + MAX( DISTINCT col2 ) + + COUNT( * ) + - - ( + ( + + AVG ( + CAST( NULL AS SIGNED ) ) ) ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3636
SELECT 33 * + MAX ( DISTINCT col2 ) + + COUNT ( * ) + - - ( + ( + + AVG ( + CAST ( NULL AS INTEGER ) ) ) ) FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3637
SELECT + SUM( ALL col0 ) * - 43 FROM tab1 cor0
----
-9761

skipif mysql # not compatible
query I rowsort label-3637
SELECT + SUM ( ALL col0 ) * - 43 FROM tab1 cor0
----
-9761

query I rowsort
SELECT + - 84 AS col0 FROM tab0 cor0
----
-84
-84
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-3639
SELECT DISTINCT + MAX( ALL - 8 ) AS col1 FROM tab1 AS cor0
----
-8

skipif mysql # not compatible
query I rowsort label-3639
SELECT DISTINCT + MAX ( ALL - 8 ) AS col1 FROM tab1 AS cor0
----
-8

onlyif mysql # DIV for integer division: 
query I rowsort label-3640
SELECT 20 DIV - + 3 + col1 AS col0 FROM tab2 AS cor0
----
45
61
71

skipif mysql # not compatible
query I rowsort label-3640
SELECT 20 / - + 3 + col1 AS col0 FROM tab2 AS cor0
----
45
61
71

query I rowsort
SELECT + col0 * - col0 * - col1 + - col0 AS col1 FROM tab0 AS cor0
----
158862
18210
9312

query II rowsort
SELECT col2, - 82 FROM tab2
----
23
-82
40
-82
58
-82

onlyif mysql # aggregate syntax: 
query II rowsort label-3643
SELECT DISTINCT - COUNT( * ), MAX( - + col0 ) * + COUNT( * ) AS col0 FROM tab1
----
-3
-153

skipif mysql # not compatible
query II rowsort label-3643
SELECT DISTINCT - COUNT ( * ), MAX ( - + col0 ) * + COUNT ( * ) AS col0 FROM tab1
----
-3
-153

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3644
SELECT DISTINCT + CAST( + - col0 AS SIGNED ) FROM tab2
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-3644
SELECT DISTINCT + CAST ( + - col0 AS INTEGER ) FROM tab2
----
-46
-64
-75

query III rowsort
SELECT * FROM tab2 WHERE NOT - - 89 + - col2 <> NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + col0 + col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3647
SELECT + 64 + COUNT( * ) AS col2 FROM tab1
----
67

skipif mysql # not compatible
query I rowsort label-3647
SELECT + 64 + COUNT ( * ) AS col2 FROM tab1
----
67

query I rowsort
SELECT - 38 + + 22 + - + col1 FROM tab1 AS cor0 WHERE 80 - col1 * + + 18 IS NOT NULL
----
-21
-30
-63

query II rowsort
SELECT + - 29 * - col2 * col1 + + col1 AS col0, ( + col2 ) * + 94 AS col1 FROM tab2 AS cor0
----
112761
5452
34068
2162
89397
3760

query I rowsort
SELECT 12 - - - col2 + + 37 FROM tab2 WHERE - col2 IS NOT NULL
----
-9
26
9

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3651
SELECT 74 DIV - col0 - col0 * - ( col0 ) * + 26 * + CAST( + + col1 AS SIGNED ) AS col2 FROM tab0
----
244634
4132674
473846

skipif mysql # not compatible
query I rowsort label-3651
SELECT 74 / - col0 - col0 * - ( col0 ) * + 26 * + CAST ( + + col1 AS INTEGER ) AS col2 FROM tab0
----
244634
4132674
473846

query I rowsort
SELECT DISTINCT - 53 + col1 + col2 * col1 * col1 AS col2 FROM tab1 AS cor0
----
1427
150206
18777

query I rowsort
SELECT col0 FROM tab2 AS cor0 WHERE ( NULL ) = NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3654
SELECT - CAST( - COUNT( * ) AS SIGNED ) AS col2 FROM tab1 AS cor0 WHERE + 51 < - col2
----
0

skipif mysql # not compatible
query I rowsort label-3654
SELECT - CAST ( - COUNT ( * ) AS INTEGER ) AS col2 FROM tab1 AS cor0 WHERE + 51 < - col2
----
0

query I rowsort
SELECT ALL + 64 - + col0 * + col1 FROM tab2
----
-2282
-4864
-4961

query I rowsort
SELECT col0 * + + 85 FROM tab2
----
3910
5440
6375

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3657
SELECT DISTINCT - ( + - 31 ) DIV - - 25 + - MAX( - - col1 ) FROM tab1
----
-46

skipif mysql # not compatible
query I rowsort label-3657
SELECT DISTINCT - ( + - 31 ) / - - 25 + - MAX ( - - col1 ) FROM tab1
----
-46

query I rowsort
SELECT ALL - - 99 + + 1 FROM tab0 WHERE NOT col0 * + 54 * col2 IS NULL
----
100
100
100

onlyif mysql # aggregate syntax: 
query I rowsort label-3659
SELECT ALL + COUNT( * ) * + + ( + COUNT( * ) ) FROM tab1
----
9

skipif mysql # not compatible
query I rowsort label-3659
SELECT ALL + COUNT ( * ) * + + ( + COUNT ( * ) ) FROM tab1
----
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3660
SELECT DISTINCT - CAST( - COUNT( * ) AS SIGNED ) DIV ( + + MAX( ALL ( - col0 ) ) ) * 35 * - 31 col1 FROM tab2 cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3660
SELECT DISTINCT - CAST ( - COUNT ( * ) AS INTEGER ) / ( + + MAX ( ALL ( - col0 ) ) ) * 35 * - 31 col1 FROM tab2 cor0
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( col2 * + col1 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 WHERE NOT - col2 <= ( NULL )
----

query I rowsort
SELECT col1 + 59 AS col0 FROM tab0 WHERE NOT ( NULL ) BETWEEN NULL AND + 69
----

query I rowsort
SELECT ALL 50 FROM tab0 WHERE NOT ( + col1 ) BETWEEN ( col0 / - col0 ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3665
SELECT DISTINCT SUM( ALL + ( 27 ) ) AS col1 FROM tab0
----
81

skipif mysql # not compatible
query I rowsort label-3665
SELECT DISTINCT SUM ( ALL + ( 27 ) ) AS col1 FROM tab0
----
81

query III rowsort
SELECT * FROM tab2 WHERE NOT + col0 - + col0 = - 8
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 WHERE - col0 <= + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3668
SELECT SUM( DISTINCT - 64 ) FROM tab2
----
-64

skipif mysql # not compatible
query I rowsort label-3668
SELECT SUM ( DISTINCT - 64 ) FROM tab2
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-3669
SELECT MAX( ALL + 77 ) AS col0 FROM tab2
----
77

skipif mysql # not compatible
query I rowsort label-3669
SELECT MAX ( ALL + 77 ) AS col0 FROM tab2
----
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3670
SELECT ALL - col2 - col1 AS col2 FROM tab2 WHERE NOT ( CAST( NULL AS SIGNED ) * + ( col1 ) ) IS NOT NULL
----
-117
-125
-74

skipif mysql # not compatible
query I rowsort label-3670
SELECT ALL - col2 - col1 AS col2 FROM tab2 WHERE NOT ( CAST ( NULL AS INTEGER ) * + ( col1 ) ) IS NOT NULL
----
-117
-125
-74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3671
SELECT DISTINCT - CAST( + col2 AS SIGNED ) col2 FROM tab0
----
-10
-47
-99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3671
SELECT DISTINCT - CAST ( + col2 AS INTEGER ) col2 FROM tab0
----
-10
-47
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3672
SELECT ALL - CAST( NULL AS SIGNED ) FROM tab0 WHERE NOT col2 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-3672
SELECT ALL - CAST ( NULL AS INTEGER ) FROM tab0 WHERE NOT col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3673
SELECT DISTINCT SUM( ALL 1 ) AS col1 FROM tab1 WHERE NOT NULL = NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3673
SELECT DISTINCT SUM ( ALL 1 ) AS col1 FROM tab1 WHERE NOT NULL = NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3674
SELECT COUNT( * ) AS col1 FROM tab2 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3674
SELECT COUNT ( * ) AS col1 FROM tab2 WHERE NOT NULL IS NULL
----
0

query I rowsort
SELECT 30 + 89 * + col2 FROM tab0
----
4213
8841
920

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL NOT IN ( 35 + 73 )
----

query I rowsort
SELECT + 24 + + col1 * + 52 AS col0 FROM tab2
----
2676
3508
4028

query I rowsort
SELECT ALL col1 * 71 + + 35 * + col2 AS col2 FROM tab1
----
2420
4354
5717

onlyif mysql # DIV for integer division: 
query I rowsort label-3679
SELECT DISTINCT + ( col1 ) + - 63 DIV col0 AS col0 FROM tab1
----
13
47
5

skipif mysql # not compatible
query I rowsort label-3679
SELECT DISTINCT + ( col1 ) + - 63 / col0 AS col0 FROM tab1
----
13
47
5

query I rowsort
SELECT DISTINCT 35 * + col1 FROM tab0 WHERE col2 IS NOT NULL
----
2835
35
735

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-3681
SELECT - MIN( - 40 ) DIV + COUNT( * ) FROM tab1 WHERE NOT col2 + CAST( NULL AS DECIMAL ) * + 54 IS NOT NULL
----
13

skipif mysql # not compatible
query I rowsort label-3681
SELECT - MIN ( - 40 ) / + COUNT ( * ) FROM tab1 WHERE NOT col2 + CAST ( NULL AS REAL ) * + 54 IS NOT NULL
----
13

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - col0 + col2 >= + 93
----

query I rowsort
SELECT - col1 * col1 + 83 * col2 FROM tab1
----
3435
4872
7772

query I rowsort
SELECT - 96 * 58 + - col2 AS col1 FROM tab1
----
-5627
-5636
-5664

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3685
SELECT - ( CAST( - col0 AS SIGNED ) ) * 66 + - col0 FROM tab2
----
2990
4160
4875

skipif mysql # not compatible
query I rowsort label-3685
SELECT - ( CAST ( - col0 AS INTEGER ) ) * 66 + - col0 FROM tab2
----
2990
4160
4875

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 0 col1 FROM tab0 WHERE NOT ( col2 * col0 ) = - col1 + 32
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3687
SELECT ALL COUNT( * ) * - 96 FROM tab2
----
-288

skipif mysql # not compatible
query I rowsort label-3687
SELECT ALL COUNT ( * ) * - 96 FROM tab2
----
-288

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NULL ) BETWEEN col0 + col2 AND NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) BETWEEN NULL AND - 6 / - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3690
SELECT ALL - MIN( + 19 ) + 6 * 74 FROM tab0 cor0
----
425

skipif mysql # not compatible
query I rowsort label-3690
SELECT ALL - MIN ( + 19 ) + 6 * 74 FROM tab0 cor0
----
425

query I rowsort
SELECT 43 + + 37 FROM tab1 AS cor0
----
80
80
80

query I rowsort
SELECT ALL - col0 * + 92 - + col2 AS col0 FROM tab1 AS cor0
----
-4788
-7879
-8440

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( + col1 * - col2 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3694
SELECT COUNT( * ) * + COUNT( * ) + + MAX( ALL - col2 - + 56 ) AS col1 FROM tab0
----
-57

skipif mysql # not compatible
query I rowsort label-3694
SELECT COUNT ( * ) * + COUNT ( * ) + + MAX ( ALL - col2 - + 56 ) AS col1 FROM tab0
----
-57

query III rowsort
SELECT * FROM tab2 WHERE + col0 - - 93 IN ( - 72 - + col1 )
----

query I rowsort
SELECT ALL - 75 AS col2 FROM tab2 WHERE NOT ( + 27 ) IS NOT NULL
----

query I rowsort
SELECT + 96 FROM tab1 AS cor0 WHERE - col0 * col0 <= - ( - col2 ) * ( - col0 )
----
96
96

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3698
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT IN ( col2 * + 48 + + CAST( NULL AS SIGNED ) * + 33 )
----

skipif mysql # not compatible
query III rowsort label-3698
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT IN ( col2 * + 48 + + CAST ( NULL AS INTEGER ) * + 33 )
----

query I rowsort
SELECT ALL + 23 AS col0 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
23
23
23

onlyif mysql # aggregate syntax: 
query I rowsort label-3700
SELECT ALL COUNT( * ) + + 86 * - COUNT( * ) FROM tab1 cor0
----
-255

skipif mysql # not compatible
query I rowsort label-3700
SELECT ALL COUNT ( * ) + + 86 * - COUNT ( * ) FROM tab1 cor0
----
-255

onlyif mysql # DIV for integer division: 
query I rowsort label-3701
SELECT - col0 DIV 52 FROM tab2 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-3701
SELECT - col0 / 52 FROM tab2 AS cor0
----
-1
-1
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 - - col1 col1 FROM tab2 cor0
----
141
142
97

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col1 >= col2
----

query I rowsort
SELECT + + 93 - - col1 FROM tab0 AS cor0
----
114
174
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3705
SELECT DISTINCT - - CAST( NULL AS SIGNED ) * 22 - + 79 / col2 AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3705
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) * 22 - + 79 / col2 AS col1 FROM tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 - + 27 col2 FROM tab1
----
32
41
69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3707
SELECT CAST( + 6 AS SIGNED ) FROM tab2
----
6
6
6

skipif mysql # not compatible
query I rowsort label-3707
SELECT CAST ( + 6 AS INTEGER ) FROM tab2
----
6
6
6

query I rowsort
SELECT + col1 * 60 * - col2 FROM tab1
----
-17700
-191760
-80640

query III rowsort
SELECT * FROM tab1 WHERE NOT ( 86 ) * - 92 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3710
SELECT ALL - ( + + COUNT( * ) ) DIV COUNT( * ) col2 FROM tab1
----
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3710
SELECT ALL - ( + + COUNT ( * ) ) / COUNT ( * ) col2 FROM tab1
----
-1

query I rowsort
SELECT DISTINCT ( - 49 ) FROM tab0 WHERE NULL >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3712
SELECT ALL MAX( DISTINCT + 6 ) col2 FROM tab0
----
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3712
SELECT ALL MAX ( DISTINCT + 6 ) col2 FROM tab0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-3713
SELECT ALL SUM( DISTINCT - 18 ) AS col2 FROM tab2
----
-18

skipif mysql # not compatible
query I rowsort label-3713
SELECT ALL SUM ( DISTINCT - 18 ) AS col2 FROM tab2
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-3714
SELECT 66 * COUNT( ALL - col2 ) AS col2 FROM tab2 WHERE NOT col0 - + ( col1 ) IS NULL
----
198

skipif mysql # not compatible
query I rowsort label-3714
SELECT 66 * COUNT ( ALL - col2 ) AS col2 FROM tab2 WHERE NOT col0 - + ( col1 ) IS NULL
----
198

query I rowsort
SELECT ( col0 ) FROM tab0 WHERE NOT NULL <= - col1
----

query I rowsort
SELECT 33 AS col0 FROM tab0 AS cor0 WHERE NOT NULL >= ( + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3717
SELECT ALL - ( ( - 21 ) ) * - COUNT( * ) FROM tab0 AS cor0
----
-63

skipif mysql # not compatible
query I rowsort label-3717
SELECT ALL - ( ( - 21 ) ) * - COUNT ( * ) FROM tab0 AS cor0
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-3718
SELECT DISTINCT - + SUM( DISTINCT - 63 ) * 94 AS col1 FROM tab0 AS cor0
----
5922

skipif mysql # not compatible
query I rowsort label-3718
SELECT DISTINCT - + SUM ( DISTINCT - 63 ) * 94 AS col1 FROM tab0 AS cor0
----
5922

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col0 * col1 <= + 58
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + ( col0 ) + 28 BETWEEN ( - col1 ) AND + col1 * col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3721
SELECT ALL - col1 DIV + - col2 AS col1 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3721
SELECT ALL - col1 / + - col2 AS col1 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3722
SELECT + col0 DIV + 55 + 64 AS col1 FROM tab2 AS cor0
----
64
65
65

skipif mysql # not compatible
query I rowsort label-3722
SELECT + col0 / + 55 + 64 AS col1 FROM tab2 AS cor0
----
64
65
65

query I rowsort
SELECT ALL - col2 * - - col2 - - col0 * 21 FROM tab2 AS cor0
----
-1789
-256
437

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( + col2 ) col0 FROM tab0 AS cor0
----
10
47
99

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col1 / - col1 + - col1 IS NOT NULL
----

query II rowsort
SELECT - col0 AS col2, - 65 FROM tab0
----
-15
-65
-87
-65
-97
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-3727
SELECT DISTINCT COUNT( * ) * COUNT( * ) * - 84 AS col0 FROM tab0
----
-756

skipif mysql # not compatible
query I rowsort label-3727
SELECT DISTINCT COUNT ( * ) * COUNT ( * ) * - 84 AS col0 FROM tab0
----
-756

query I rowsort
SELECT ALL - 16 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to be22ac76b42c6f7212ecc0ba7c89eb34

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( - 42 ) = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3730
SELECT COUNT( * ) - COUNT( * ) * COUNT( * ) FROM tab1 AS cor0 WHERE NOT ( NULL ) > ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-3730
SELECT COUNT ( * ) - COUNT ( * ) * COUNT ( * ) FROM tab1 AS cor0 WHERE NOT ( NULL ) > ( NULL )
----
0

query I rowsort
SELECT DISTINCT - 28 * col2 * - - col2 FROM tab1 AS cor0
----
-129472
-258048
-97468

query I rowsort
SELECT ALL ( - col1 ) AS col1 FROM tab1 cor0 WHERE NULL <> NULL
----

query II rowsort
SELECT - + 63 AS col0, col1 * + col2 + + 36 * + 2 AS col1 FROM tab0 AS cor0
----
-63
171
-63
282
-63
3879

query I rowsort
SELECT col1 * - - 60 FROM tab2 AS cor0
----
3060
4020
4620

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 col1 FROM tab1 AS cor0 WHERE col0 * - col2 BETWEEN col1 AND NULL
----

query I rowsort
SELECT DISTINCT 27 * - col0 * 2 - + col0 + - 10 FROM tab0 AS cor0
----
-4795
-5345
-835

query I rowsort
SELECT ( col1 ) * - 15 FROM tab1 AS cor0
----
-210
-705
-75

query I rowsort
SELECT ALL col2 AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
10
47
99

query II rowsort
SELECT col2, + 57 + - - col0 + col0 AS col2 FROM tab2 AS cor0
----
23
149
40
185
58
207

onlyif mysql # aggregate syntax: 
query I rowsort label-3740
SELECT - COUNT( ALL ( col0 ) ) AS col0 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3740
SELECT - COUNT ( ALL ( col0 ) ) AS col0 FROM tab0 AS cor0
----
-3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( - 53 ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3742
SELECT DISTINCT + 19 DIV - col1 + - + col2 FROM tab2 AS cor0
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-3742
SELECT DISTINCT + 19 / - col1 + - + col2 FROM tab2 AS cor0
----
-23
-40
-58

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT ( col0 ) BETWEEN + col2 AND ( NULL )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col1 NOT IN ( - + col2 )
----

query I rowsort
SELECT DISTINCT + col2 * + col0 + - col1 AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3746
SELECT DISTINCT - + COUNT( * ) DIV + 6 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3746
SELECT DISTINCT - + COUNT ( * ) / + 6 FROM tab2 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3747
SELECT * FROM tab0 WHERE + + CAST( NULL AS SIGNED ) * 88 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-3747
SELECT * FROM tab0 WHERE + + CAST ( NULL AS INTEGER ) * 88 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3748
SELECT - col1 * + CAST( NULL AS SIGNED ) * col0 * - - col1 * + col2 + 2 * col0 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3748
SELECT - col1 * + CAST ( NULL AS INTEGER ) * col0 * - - col1 * + col2 + 2 * col0 AS col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col1 AS col0 FROM tab0 WHERE NOT ( NULL ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * - - 80 + + 32 + - col2 col2 FROM tab1
----
1056
3724
373

query I rowsort
SELECT - col0 + + + col2 * - + 38 AS col0 FROM tab0 AS cor0
----
-1801
-3859
-467

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col0 * - 60 = ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3753
SELECT ALL COUNT( * ) + - 89 + - + 21 FROM tab1 AS cor0
----
-107

skipif mysql # not compatible
query I rowsort label-3753
SELECT ALL COUNT ( * ) + - 89 + - + 21 FROM tab1 AS cor0
----
-107

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3754
SELECT + 89 * + COUNT( * ) * CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3754
SELECT + 89 * + COUNT ( * ) * CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3755
SELECT ALL + 4 * - MIN( ALL col2 ) + - 28 FROM tab2 WHERE NOT + - 56 IS NULL
----
-120

skipif mysql # not compatible
query I rowsort label-3755
SELECT ALL + 4 * - MIN ( ALL col2 ) + - 28 FROM tab2 WHERE NOT + - 56 IS NULL
----
-120

query I rowsort
SELECT + col1 * + - col2 * - 28 - - - col0 * + 77 + + col2 AS col2 FROM tab0
----
-4598
-809
105488

onlyif mysql # DIV for integer division: 
query I rowsort label-3757
SELECT col1 - + - 88 DIV + + col0 + + ( + col0 ) FROM tab1
----
138
66
91

skipif mysql # not compatible
query I rowsort label-3757
SELECT col1 - + - 88 / + + col0 + + ( + col0 ) FROM tab1
----
138
66
91

query I rowsort
SELECT DISTINCT + ( 75 ) AS col1 FROM tab2
----
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col2 + - 1 col0 FROM tab1 AS cor0
----
58
67
95

query I rowsort
SELECT ( - col0 ) + ( - 1 ) AS col1 FROM tab1 cor0
----
-52
-86
-92

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL NOT IN ( + 11 )
----

query I rowsort
SELECT ALL col2 * - - col0 + + 47 - - col0 * + col2 + col1 FROM tab2 AS cor0
----
2214
5244
8814

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + col2 col1, col2 FROM tab1 AS cor0
----
59
59
68
68
96
96

onlyif mysql # aggregate syntax: 
query I rowsort label-3764
SELECT ALL COUNT( - col2 ) * - 67 + 11 * - 32 AS col1 FROM tab0 AS cor0 WHERE 82 * + 97 + + + col2 IS NOT NULL
----
-553

skipif mysql # not compatible
query I rowsort label-3764
SELECT ALL COUNT ( - col2 ) * - 67 + 11 * - 32 AS col1 FROM tab0 AS cor0 WHERE 82 * + 97 + + + col2 IS NOT NULL
----
-553

query III rowsort
SELECT * FROM tab2 WHERE NOT - 26 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + - col2 col0 FROM tab1 WHERE NOT ( NULL ) IS NOT NULL
----
-21
-54
-82

query III rowsort
SELECT * FROM tab1 WHERE NOT ( + col1 / - + col2 ) > col1 * - col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3768
SELECT DISTINCT + COUNT( * ) FROM tab1, tab1 cor0 WHERE NOT + - CAST( NULL AS SIGNED ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3768
SELECT DISTINCT + COUNT ( * ) FROM tab1, tab1 cor0 WHERE NOT + - CAST ( NULL AS INTEGER ) IS NULL
----
0

query II rowsort
SELECT + col0, - 6 * - 78 * + ( + 35 ) * + col0 + - col2 FROM tab1
----
51
835284
85
1392241
91
1490512

query I rowsort
SELECT DISTINCT col0 AS col1 FROM tab0 WHERE + 81 <> NULL
----

query I rowsort
SELECT ALL col1 FROM tab0 WHERE NOT ( 94 * 87 + 43 + - col1 < 20 * - col0 )
----
1
21
81

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3772
SELECT DISTINCT col1 * + 4, - CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
204
NULL
268
NULL
308
NULL

skipif mysql # not compatible
query II rowsort label-3772
SELECT DISTINCT col1 * + 4, - CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
204
NULL
268
NULL
308
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 37 + + - col0 * + - ( col2 ) col1 FROM tab0 WHERE NULL <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3774
SELECT + + MAX( DISTINCT 64 ) AS col1 FROM tab2 AS cor0
----
64

skipif mysql # not compatible
query I rowsort label-3774
SELECT + + MAX ( DISTINCT 64 ) AS col1 FROM tab2 AS cor0
----
64

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 1 + - col0 BETWEEN ( NULL ) AND col1 * + 50 + + col2 + 7 * col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3776
SELECT + col2 + - 23 - 6 + - col2 + ( col2 ) + + + 59 * - CAST( NULL AS SIGNED ) * col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3776
SELECT + col2 + - 23 - 6 + - col2 + ( col2 ) + + + 59 * - CAST ( NULL AS INTEGER ) * col0 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE 95 IS NULL
----

query I rowsort
SELECT DISTINCT + + 50 + - - col1 AS col2 FROM tab2 AS cor0
----
101
117
127

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL IN ( ( 36 ) ) )
----

query I rowsort
SELECT ALL ( - 37 ) + - col0 FROM tab0 AS cor0
----
-124
-134
-52

query I rowsort
SELECT col0 AS col0 FROM tab0 WHERE - col0 - - 2 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3782
SELECT - 43 AS col1, ( + MAX( DISTINCT + col1 ) ) FROM tab2
----
-43
77

skipif mysql # not compatible
query II rowsort label-3782
SELECT - 43 AS col1, ( + MAX ( DISTINCT + col1 ) ) FROM tab2
----
-43
77

query I rowsort
SELECT - col1 * - 63 * + + col1 FROM tab2 WHERE NULL IS NULL
----
163863
282807
373527

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3784
SELECT ALL + CAST( NULL AS SIGNED ), + CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL
NULL
NULL
NULL
NULL
NULL

skipif mysql # not compatible
query II rowsort label-3784
SELECT ALL + CAST ( NULL AS INTEGER ), + CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL
NULL
NULL
NULL
NULL
NULL

query I rowsort
SELECT + col0 * - 27 FROM tab1
----
-1377
-2295
-2457

query I rowsort
SELECT DISTINCT 97 + col2 - - - col0 FROM tab2
----
73
74
80

query I rowsort
SELECT DISTINCT + 35 * - 85 FROM tab0
----
-2975

query I rowsort
SELECT 25 * + 83 AS col2 FROM tab2
----
2075
2075
2075

query I rowsort
SELECT ALL + col0 * 30 AS col2 FROM tab0
----
2610
2910
450

onlyif mysql # aggregate syntax: 
query I rowsort label-3790
SELECT DISTINCT 69 * + COUNT( * ) FROM tab2
----
207

skipif mysql # not compatible
query I rowsort label-3790
SELECT DISTINCT 69 * + COUNT ( * ) FROM tab2
----
207

onlyif mysql # aggregate syntax: 
query I rowsort label-3791
SELECT ALL - 68 + COUNT( * ) FROM tab1 AS cor0
----
-65

skipif mysql # not compatible
query I rowsort label-3791
SELECT ALL - 68 + COUNT ( * ) FROM tab1 AS cor0
----
-65

query I rowsort
SELECT col2 + - 87 AS col0 FROM tab0 AS cor0
----
-40
-77
12

query I rowsort
SELECT DISTINCT 14 - - - col2 AS col0 FROM tab0
----
-33
-85
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3794
SELECT DISTINCT - CAST( NULL AS SIGNED ) + - - 76 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3794
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + - - 76 FROM tab0
----
NULL

query I rowsort
SELECT ALL 49 * - - 30 AS col1 FROM tab1
----
1470
1470
1470

query I rowsort
SELECT - 10 FROM tab2 AS cor0 WHERE NOT col0 * ( + - col2 ) BETWEEN - col0 AND - col0 * - + 73
----
-10
-10
-10

query II rowsort
SELECT + col0 * + - ( col2 ) - + col2 AS col0, + 98 * + 55 AS col0 FROM tab2 AS cor0
----
-1081
5390
-2600
5390
-4408
5390

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 90 col0, col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
90
10
90
47
90
99

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL > 72 + + + col1 * col1 - - - col1
----

query I rowsort
SELECT ALL + + 4 AS col0 FROM tab0 AS cor0
----
4
4
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3801
SELECT + + 84 / - - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3801
SELECT + + 84 / - - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 86 * - col1 * col2 col2 FROM tab0
----
-18060
-327402
-8514

query I rowsort
SELECT DISTINCT col2 FROM tab2 WHERE NOT NULL > - - col1
----

query I rowsort
SELECT DISTINCT + ( + - col1 ) AS col1 FROM tab1
----
-14
-47
-5

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - + col0 * col2 + + 73 BETWEEN NULL AND NULL
----

query II rowsort
SELECT ALL col2 AS col0, col1 FROM tab0 WHERE ( col1 * col0 ) NOT BETWEEN + col1 AND ( NULL )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-3807
SELECT ALL + 42 col0, - 30 DIV 81 FROM tab1
----
42
0
42
0
42
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3807
SELECT ALL + 42 col0, - 30 / 81 FROM tab1
----
42
0
42
0
42
0

query II rowsort
SELECT ALL 62 AS col2, col2 FROM tab0
----
62
10
62
47
62
99

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - 64 IN ( + col1 * + 67 * - 89 + - col2, - col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + 38 <= ( col2 )
----
64
77
40
75
67
58

onlyif mysql # aggregate syntax: 
query I rowsort label-3811
SELECT ALL - 5 + - COUNT( * ) FROM tab1 WHERE + ( ( - 76 ) ) IS NULL
----
-5

skipif mysql # not compatible
query I rowsort label-3811
SELECT ALL - 5 + - COUNT ( * ) FROM tab1 WHERE + ( ( - 76 ) ) IS NULL
----
-5

query I rowsort
SELECT + col2 + col1 FROM tab1 WHERE NOT - col0 BETWEEN col2 AND + - col0
----
110
115
64

onlyif mysql # aggregate syntax: 
query I rowsort label-3813
SELECT ALL + MAX( + + col1 ) FROM tab2 cor0
----
77

skipif mysql # not compatible
query I rowsort label-3813
SELECT ALL + MAX ( + + col1 ) FROM tab2 cor0
----
77

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT ( NULL ) = + - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3815
SELECT + COUNT( * ) * 33 AS col2 FROM tab2 cor0
----
99

skipif mysql # not compatible
query I rowsort label-3815
SELECT + COUNT ( * ) * 33 AS col2 FROM tab2 cor0
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-3816
SELECT ALL + COUNT( 53 ) AS col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3816
SELECT ALL + COUNT ( 53 ) AS col0 FROM tab1 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * - - 22 col0 FROM tab0 AS cor0
----
-1782
-22
-462

onlyif mysql # DIV for integer division: 
query I rowsort label-3818
SELECT 49 DIV 58 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3818
SELECT 49 / 58 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - 92 * + col0 FROM tab1
----
-4692
-7820
-8372

query I rowsort
SELECT + col0 AS col1 FROM tab0 WHERE NOT + col2 <> NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 14 col2, + 33 + + 91 AS col2 FROM tab0
----
14
124
14
124
14
124

query I rowsort
SELECT - 94 * ( - 26 ) FROM tab0
----
2444
2444
2444

query I rowsort
SELECT + col2 FROM tab0 AS cor0 WHERE - 35 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + 62 * - col2 col0 FROM tab1 AS cor0
----
-3663
-4263
-5966

query I rowsort
SELECT ALL + - col2 + - - col2 AS col2 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT col1 * col2 + - 80 FROM tab0 AS cor0 WHERE col1 >= NULL
----

query II rowsort
SELECT - - col0 AS col2, + col0 AS col0 FROM tab0 AS cor0
----
15
15
87
87
97
97

query I rowsort
SELECT + 95 + ( - 21 ) + + col2 FROM tab2 AS cor0
----
114
132
97

query II rowsort
SELECT DISTINCT + col2 AS col0, 7 FROM tab1 AS cor0
----
59
7
68
7
96
7

query I rowsort
SELECT col1 + 68 + - col2 * - + 65 AS col1 FROM tab1 cor0
----
3908
4535
6322

query III rowsort
SELECT * FROM tab2 WHERE ( NOT NULL > + col0 / + col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3832
SELECT DISTINCT - ( 95 ) * - + col2 - + 31 DIV - ( col0 ) FROM tab2
----
2185
3800
5510

skipif mysql # not compatible
query I rowsort label-3832
SELECT DISTINCT - ( 95 ) * - + col2 - + 31 / - ( col0 ) FROM tab2
----
2185
3800
5510

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3833
SELECT DISTINCT - CAST( - col1 AS SIGNED ) * 79 * 97 - + - col1 FROM tab1
----
107296
360208
38320

skipif mysql # not compatible
query I rowsort label-3833
SELECT DISTINCT - CAST ( - col1 AS INTEGER ) * 79 * 97 - + - col1 FROM tab1
----
107296
360208
38320

query I rowsort
SELECT + + 28 AS col1 FROM tab2 WHERE + col2 IS NOT NULL
----
28
28
28

onlyif mysql # aggregate syntax: 
query I rowsort label-3835
SELECT DISTINCT + + COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE ( NULL ) < NULL
----
0

skipif mysql # not compatible
query I rowsort label-3835
SELECT DISTINCT + + COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE ( NULL ) < NULL
----
0

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN + col2 AND + col0
----

query I rowsort
SELECT - col0 * - + col2 FROM tab1 AS cor0
----
4896
5015
6188

onlyif mysql # aggregate syntax: 
query II rowsort label-3838
SELECT + + SUM( DISTINCT - col2 ), - COUNT( * ) + 87 + + 24 + - COUNT( * ) * COUNT( * ) AS col1 FROM tab1 AS cor0
----
-223
99

skipif mysql # not compatible
query II rowsort label-3838
SELECT + + SUM ( DISTINCT - col2 ), - COUNT ( * ) + 87 + + 24 + - COUNT ( * ) * COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-223
99

onlyif mysql # aggregate syntax: 
query I rowsort label-3839
SELECT DISTINCT - - COUNT( * ) - + 45 FROM tab2 AS cor0
----
-42

skipif mysql # not compatible
query I rowsort label-3839
SELECT DISTINCT - - COUNT ( * ) - + 45 FROM tab2 AS cor0
----
-42

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 AS col0, col1 col2 FROM tab2 AS cor0
----
51
51
67
67
77
77

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-3841
SELECT + CAST( NULL AS SIGNED ) AS col0, col1 * CAST( NULL AS DECIMAL ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
NULL
NULL
NULL

skipif mysql # not compatible
query II rowsort label-3841
SELECT + CAST ( NULL AS INTEGER ) AS col0, col1 * CAST ( NULL AS REAL ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT ( 91 ) AS col0 FROM tab2 AS cor0
----
91

query II rowsort
SELECT ALL - col0, col0 AS col1 FROM tab1 AS cor0
----
-51
51
-85
85
-91
91

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 16 > ( - - 29 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * + + col0 col0 FROM tab0
----
1215
1827
97

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3846
SELECT DISTINCT * FROM tab2 WHERE NOT - - CAST( col0 AS SIGNED ) * - col0 - col0 + - - 42 = + 51
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-3846
SELECT DISTINCT * FROM tab2 WHERE NOT - - CAST ( col0 AS INTEGER ) * - col0 - col0 + - - 42 = + 51
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 WHERE NOT - col1 + col0 BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3848
SELECT DISTINCT ( + SUM( - col1 ) ) AS col2 FROM tab2
----
-195

skipif mysql # not compatible
query I rowsort label-3848
SELECT DISTINCT ( + SUM ( - col1 ) ) AS col2 FROM tab2
----
-195

query I rowsort
SELECT - + 60 AS col2 FROM tab2 WHERE NOT + - 25 IS NULL
----
-60
-60
-60

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col0 BETWEEN - - col1 AND NULL
----

query I rowsort
SELECT - 20 FROM tab0 cor0 WHERE NOT 86 * col0 + + col2 IS NULL
----
-20
-20
-20

query I rowsort
SELECT DISTINCT ( - 51 ) FROM tab2 cor0
----
-51

query I rowsort
SELECT - - 68 AS col2 FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to 599bee15ac4cc39b859854e07dfe7990

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3854
SELECT 90 + 53 + CAST( - COUNT( col2 ) AS SIGNED ) * + - 51 FROM tab2
----
296

skipif mysql # not compatible
query I rowsort label-3854
SELECT 90 + 53 + CAST ( - COUNT ( col2 ) AS INTEGER ) * + - 51 FROM tab2
----
296

onlyif mysql # aggregate syntax: 
query I rowsort label-3855
SELECT + 63 * - + COUNT( * ) col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-567

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3855
SELECT + 63 * - + COUNT ( * ) col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-567

query III rowsort
SELECT * FROM tab1 WHERE NULL NOT IN ( col2, - 72 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3857
SELECT - 41 DIV col2 AS col1 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-3857
SELECT - 41 / col2 AS col1 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
-1
-1
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3858
SELECT ALL - CAST( 16 AS SIGNED ) + 35, + col2 FROM tab1 AS cor0
----
19
59
19
68
19
96

skipif mysql # not compatible
query II rowsort label-3858
SELECT ALL - CAST ( 16 AS INTEGER ) + 35, + col2 FROM tab1 AS cor0
----
19
59
19
68
19
96

onlyif mysql # aggregate syntax: 
query I rowsort label-3859
SELECT ALL - MAX( - col1 ) FROM tab2 cor0
----
51

skipif mysql # not compatible
query I rowsort label-3859
SELECT ALL - MAX ( - col1 ) FROM tab2 cor0
----
51

query I rowsort
SELECT DISTINCT col0 + - + col1 * - col2 AS col0 FROM tab1 AS cor0
----
1395
3287
380

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3861
SELECT 22, + CAST( NULL AS SIGNED ) * - col2 col0 FROM tab2 AS cor0
----
22
NULL
22
NULL
22
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3861
SELECT 22, + CAST ( NULL AS INTEGER ) * - col2 col0 FROM tab2 AS cor0
----
22
NULL
22
NULL
22
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL > - 67
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3863
SELECT DISTINCT ( + + 87 ) DIV + + 10 + 56 FROM tab2
----
64

skipif mysql # not compatible
query I rowsort label-3863
SELECT DISTINCT ( + + 87 ) / + + 10 + 56 FROM tab2
----
64

query I rowsort
SELECT ALL + col1 * + + col0 FROM tab1
----
425
4277
714

query III rowsort
SELECT ALL * FROM tab1 WHERE - col0 / - col2 <= ( NULL )
----

query I rowsort
SELECT + col1 * 31 AS col0 FROM tab1
----
1457
155
434

query I rowsort
SELECT - + 92 FROM tab1 WHERE NULL = + - ( + - col0 ) + - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3868
SELECT - MIN( DISTINCT + 26 ) col0 FROM tab2 WHERE - 45 * col1 * - col1 IS NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3868
SELECT - MIN ( DISTINCT + 26 ) col0 FROM tab2 WHERE - 45 * col1 * - col1 IS NULL
----
NULL

query I rowsort
SELECT - 36 + - col1 FROM tab2
----
-103
-113
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-3870
SELECT DISTINCT - ( + - COUNT( * ) ) col0 FROM tab2 cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3870
SELECT DISTINCT - ( + - COUNT ( * ) ) col0 FROM tab2 cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3871
SELECT ALL + COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE NULL < NULL
----
0

skipif mysql # not compatible
query I rowsort label-3871
SELECT ALL + COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE NULL < NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3872
SELECT ALL CAST( - - 88 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
88
88
88

skipif mysql # not compatible
query I rowsort label-3872
SELECT ALL CAST ( - - 88 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
88
88
88

onlyif mysql # aggregate syntax: 
query I rowsort label-3873
SELECT COUNT( * ) * - 42 * 55 FROM tab2 AS cor0
----
-6930

skipif mysql # not compatible
query I rowsort label-3873
SELECT COUNT ( * ) * - 42 * 55 FROM tab2 AS cor0
----
-6930

query I rowsort
SELECT ALL - col0 * + - 83 + - + col1 FROM tab2 cor0 WHERE NOT 88 >= + + col1 + 31
----
5235
6158

query II rowsort
SELECT ALL + col2 * + 5, - col1 * + - col2 AS col0 FROM tab1 AS cor0
----
295
295
340
3196
480
1344

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 col0, 54 AS col2 FROM tab2
----
46
54
64
54
75
54

onlyif mysql # DIV for integer division: 
query I rowsort label-3877
SELECT ALL - + col1 DIV - col0 + + - 77 AS col1 FROM tab2 AS cor0
----
-76
-76
-77

skipif mysql # not compatible
query I rowsort label-3877
SELECT ALL - + col1 / - col0 + + - 77 AS col1 FROM tab2 AS cor0
----
-76
-76
-77

query I rowsort
SELECT ( - col1 ) * - 48 AS col0 FROM tab1 AS cor0
----
2256
240
672

onlyif mysql # aggregate syntax: 
query I rowsort label-3879
SELECT + SUM( - ( - 78 ) ) AS col0 FROM tab2 cor0
----
234

skipif mysql # not compatible
query I rowsort label-3879
SELECT + SUM ( - ( - 78 ) ) AS col0 FROM tab2 cor0
----
234

query I rowsort
SELECT - ( + - 40 ) * - 41 + col0 FROM tab2
----
-1565
-1576
-1594

query I rowsort
SELECT DISTINCT + - 41 AS col2 FROM tab1 cor0
----
-41

onlyif mysql # DIV for integer division: 
query I rowsort label-3882
SELECT + + col1 DIV col0 - - + col1 AS col1 FROM tab0 AS cor0
----
1
21
86

skipif mysql # not compatible
query I rowsort label-3882
SELECT + + col1 / col0 - - + col1 AS col1 FROM tab0 AS cor0
----
1
21
86

onlyif mysql # aggregate syntax: 
query I rowsort label-3883
SELECT DISTINCT - COUNT( * ) + + 35 AS col2 FROM tab2 AS cor0
----
32

skipif mysql # not compatible
query I rowsort label-3883
SELECT DISTINCT - COUNT ( * ) + + 35 AS col2 FROM tab2 AS cor0
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-3884
SELECT COUNT( * ) + + + COUNT( * ) AS col1 FROM tab2 cor0
----
6

skipif mysql # not compatible
query I rowsort label-3884
SELECT COUNT ( * ) + + + COUNT ( * ) AS col1 FROM tab2 cor0
----
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + + col0 * - - ( 94 ) col2 FROM tab0 AS cor0
----
1363
8168
9019

onlyif mysql # aggregate syntax: 
query I rowsort label-3886
SELECT COUNT( * ) + + COUNT( col0 ) col1 FROM tab0 cor0
----
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3886
SELECT COUNT ( * ) + + COUNT ( col0 ) col1 FROM tab0 cor0
----
6

query I rowsort
SELECT col0 + + 43 + + col1 + - - col0 AS col2 FROM tab0
----
154
238
238

onlyif mysql # aggregate syntax: 
query I rowsort label-3888
SELECT ALL + MAX( DISTINCT + col1 ) FROM tab1
----
47

skipif mysql # not compatible
query I rowsort label-3888
SELECT ALL + MAX ( DISTINCT + col1 ) FROM tab1
----
47

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3889
SELECT DISTINCT col2 - + + col2 + + CAST( col0 AS SIGNED ) DIV + 95 + col0 FROM tab1
----
51
85
91

skipif mysql # not compatible
query I rowsort label-3889
SELECT DISTINCT col2 - + + col2 + + CAST ( col0 AS INTEGER ) / + 95 + col0 FROM tab1
----
51
85
91

query III rowsort
SELECT * FROM tab0 WHERE + col0 + + col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + 51 * col1 AS col2 FROM tab2
----
2601
3417
3927

onlyif mysql # aggregate syntax: 
query I rowsort label-3892
SELECT + - COUNT( DISTINCT + - 31 ) AS col1 FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-3892
SELECT + - COUNT ( DISTINCT + - 31 ) AS col1 FROM tab1 AS cor0
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-3893
SELECT - 0 * col0 DIV + 71 + - - ( - - ( + - col0 ) ) * col1 FROM tab1 AS cor0
----
-425
-4277
-714

skipif mysql # not compatible
query I rowsort label-3893
SELECT - 0 * col0 / + 71 + - - ( - - ( + - col0 ) ) * col1 FROM tab1 AS cor0
----
-425
-4277
-714

query I rowsort
SELECT + 10 * + 21 AS col0 FROM tab0 AS cor0
----
210
210
210

query I rowsort
SELECT ALL - 2 * 92 AS col0 FROM tab1
----
-184
-184
-184

query IIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT ( NULL ) BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3897
SELECT - CAST( NULL AS SIGNED ) AS col0, col2 * + col0 * - - col2 FROM tab2
----
NULL
102400
NULL
24334
NULL
252300

skipif mysql # not compatible
query II rowsort label-3897
SELECT - CAST ( NULL AS INTEGER ) AS col0, col2 * + col0 * - - col2 FROM tab2
----
NULL
102400
NULL
24334
NULL
252300

query I rowsort
SELECT - 41 * + - col1 AS col1 FROM tab0 AS cor0
----
3321
41
861

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 col2, + col0 AS col0 FROM tab0 AS cor0
----
10
87
47
15
99
97

query II rowsort
SELECT col2 AS col0, - 29 FROM tab0 AS cor0
----
10
-29
47
-29
99
-29

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 54 col0 FROM tab1
----
54
54
54

onlyif mysql # aggregate syntax: 
query I rowsort label-3902
SELECT + COUNT( * ) * + - 36 * - COUNT( * ) FROM tab1
----
324

skipif mysql # not compatible
query I rowsort label-3902
SELECT + COUNT ( * ) * + - 36 * - COUNT ( * ) FROM tab1
----
324

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - 74 col0 FROM tab0
----
-3478
-7326
-740

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3904
SELECT DISTINCT CAST( + col1 AS SIGNED ) AS col1 FROM tab0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-3904
SELECT DISTINCT CAST ( + col1 AS INTEGER ) AS col1 FROM tab0
----
1
21
81

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - 95 * col2 IS NOT NULL
----

query I rowsort
SELECT ALL + 58 + - col2 * col2 AS col0 FROM tab1
----
-3423
-4566
-9158

query I rowsort
SELECT DISTINCT - col0 + ( col1 ) AS col0 FROM tab0 AS cor0
----
-66
-96
66

query I rowsort
SELECT ALL 87 + - + ( + ( - 41 ) ) FROM tab2 AS cor0
----
128
128
128

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col0 = NULL
----

query I rowsort
SELECT ALL col2 / + col2 * + + col0 FROM tab1 WHERE NOT - - col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3911
SELECT DISTINCT + - 95 + - COUNT( * ) AS col2 FROM tab1 AS cor0
----
-98

skipif mysql # not compatible
query I rowsort label-3911
SELECT DISTINCT + - 95 + - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-98

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3912
SELECT * FROM tab2 AS cor0 WHERE - col2 + col1 <> col2 + + + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-3912
SELECT * FROM tab2 AS cor0 WHERE - col2 + col1 <> col2 + + + CAST ( NULL AS INTEGER )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3913
SELECT DISTINCT col0 / + ( + CAST( NULL AS SIGNED ) ) + col2 * - + col1 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3913
SELECT DISTINCT col0 / + ( + CAST ( NULL AS INTEGER ) ) + col2 * - + col1 FROM tab0 cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 34 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3915
SELECT ALL - 99 - + COUNT( * ) FROM tab1 AS cor0
----
-102

skipif mysql # not compatible
query I rowsort label-3915
SELECT ALL - 99 - + COUNT ( * ) FROM tab1 AS cor0
----
-102

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3916
SELECT DISTINCT + col2 - - + col2 + + - CAST( NULL AS SIGNED ) * + - 55 + - ( + 63 ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3916
SELECT DISTINCT + col2 - - + col2 + + - CAST ( NULL AS INTEGER ) * + - 55 + - ( + 63 ) FROM tab1 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 13 - + ( + 65 ) col0 FROM tab2 AS cor0
----
-52
-52
-52

query I rowsort
SELECT - 30 * 8 FROM tab2, tab0 AS cor0
----
9 values hashing to 0610af4582ef9667f54c9da2a68959ef

onlyif mysql # DIV for integer division: 
query I rowsort label-3919
SELECT + col1 DIV 34 - - 90 col0 FROM tab1
----
90
90
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3919
SELECT + col1 / 34 - - 90 col0 FROM tab1
----
90
90
91

query I rowsort
SELECT ALL col0 - + - col1 AS col2 FROM tab0
----
108
96
98

query I rowsort
SELECT DISTINCT + 64 - 24 AS col0 FROM tab2
----
40

query III rowsort
SELECT ALL * FROM tab2 WHERE - - 37 * - col1 * + 50 * + col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT DISTINCT - col0 - col2 + + + ( - col1 ), 2 AS col2 FROM tab1
----
-149
2
-161
2
-206
2

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - 11 * - col0 * 39 BETWEEN NULL AND col0 / - 94 - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 54 col0, 31 FROM tab0, tab1 AS cor0
----
18 values hashing to cce2b911ce379a3986b1cd28bcc66801

query I rowsort
SELECT - ( + + 24 ) AS col1 FROM tab0 AS cor0
----
-24
-24
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-3927
SELECT DISTINCT COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE ( NOT ( NULL ) IS NOT NULL )
----
3

skipif mysql # not compatible
query I rowsort label-3927
SELECT DISTINCT COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE ( NOT ( NULL ) IS NOT NULL )
----
3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col2 >= - - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ( - 92 ) AS col1 FROM tab2 cor0
----
-92
-92
-92

query I rowsort
SELECT DISTINCT + 44 + - 25 AS col1 FROM tab2 AS cor0
----
19

query I rowsort
SELECT ( - - col2 ) FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT + 4 * - 31 * + col1 FROM tab0 AS cor0
----
-10044
-124
-2604

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NOT + - 78 + 63 + + + col0 / col2 IS NOT NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query II rowsort label-3934
SELECT 78 DIV + - col0 + + + 75 AS col1, + 0 * - - 38 AS col0 FROM tab1 AS cor0
----
74
0
75
0
75
0

skipif mysql # not compatible
query II rowsort label-3934
SELECT 78 / + - col0 + + + 75 AS col1, + 0 * - - 38 AS col0 FROM tab1 AS cor0
----
74
0
75
0
75
0

query I rowsort
SELECT + - ( + 74 ) * + col2 FROM tab0 AS cor0
----
-3478
-7326
-740

onlyif mysql # aggregate syntax: 
query I rowsort label-3936
SELECT ALL SUM( + col2 ) AS col0 FROM tab0 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-3936
SELECT ALL SUM ( + col2 ) AS col0 FROM tab0 AS cor0
----
156

onlyif mysql # aggregate syntax: 
query I rowsort label-3937
SELECT DISTINCT COUNT( ALL col0 ) col0 FROM tab0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3937
SELECT DISTINCT COUNT ( ALL col0 ) col0 FROM tab0
----
3

query II rowsort
SELECT ALL - col1, - col1 AS col2 FROM tab2
----
-51
-51
-67
-67
-77
-77

query III rowsort
SELECT * FROM tab0 WHERE NOT - col2 >= + + 91 + ( - + col0 ) / 54
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3940
SELECT + MIN( DISTINCT + 41 ) + - COUNT( * ) * + ( + + COUNT( * ) ) FROM tab1
----
32

skipif mysql # not compatible
query I rowsort label-3940
SELECT + MIN ( DISTINCT + 41 ) + - COUNT ( * ) * + ( + + COUNT ( * ) ) FROM tab1
----
32

query I rowsort
SELECT DISTINCT - 97 * col1 AS col1 FROM tab0
----
-2037
-7857
-97

query I rowsort
SELECT + 39 + - - 86 + ( ( - col1 ) ) FROM tab0
----
104
124
44

query I rowsort
SELECT DISTINCT - 48 + - col2 FROM tab2
----
-106
-71
-88

query I rowsort
SELECT col0 + - col2 - - col1 AS col1 FROM tab1
----
-31
31
70

query III rowsort
SELECT * FROM tab2 WHERE - col1 < ( - - col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT ( + col1 ) AS col0, col2 FROM tab1 cor0
----
14
96
47
68
5
59

query III rowsort
SELECT * FROM tab1 WHERE + col0 + col0 + col1 <= NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3948
SELECT DISTINCT + 25 / - CAST( NULL AS SIGNED ), + SUM( DISTINCT + 98 ) col2 FROM tab0
----
NULL
98

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3948
SELECT DISTINCT + 25 / - CAST ( NULL AS INTEGER ), + SUM ( DISTINCT + 98 ) col2 FROM tab0
----
NULL
98

query I rowsort
SELECT ALL + 90 + + ( + - col2 ) FROM tab2 AS cor0
----
32
50
67

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL IS NULL OR NOT - col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + col1 AS col1 FROM tab2 AS cor0 WHERE NOT 35 + - col0 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3952
SELECT DISTINCT + CAST( NULL AS SIGNED ) + + col2, 71 AS col1 FROM tab1 AS cor0
----
NULL
71

skipif mysql # not compatible
query II rowsort label-3952
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + + col2, 71 AS col1 FROM tab1 AS cor0
----
NULL
71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3953
SELECT - - col1 + CAST( NULL AS SIGNED ) / + - col1 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3953
SELECT - - col1 + CAST ( NULL AS INTEGER ) / + - col1 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 91 - 94 FROM tab1
----
-3

query I rowsort
SELECT ALL 93 * + + col0 FROM tab2
----
4278
5952
6975

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3956
SELECT ALL * FROM tab1 WHERE NULL NOT BETWEEN - 40 AND + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-3956
SELECT ALL * FROM tab1 WHERE NULL NOT BETWEEN - 40 AND + CAST ( NULL AS INTEGER )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3957
SELECT DISTINCT - + 9 * - + col1 DIV - col1 + - + 26 AS col1 FROM tab1 WHERE + 97 + + + ( 7 ) + + col0 DIV 34 IS NOT NULL
----
-35

skipif mysql # not compatible
query I rowsort label-3957
SELECT DISTINCT - + 9 * - + col1 / - col1 + - + 26 AS col1 FROM tab1 WHERE + 97 + + + ( 7 ) + + col0 / 34 IS NOT NULL
----
-35

onlyif mysql # aggregate syntax: 
query II rowsort label-3958
SELECT DISTINCT - + COUNT( * ) - + + ( + + COUNT( * ) ), 68 col1 FROM tab1 WHERE - col1 BETWEEN NULL AND NULL
----
0
68

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3958
SELECT DISTINCT - + COUNT ( * ) - + + ( + + COUNT ( * ) ), 68 col1 FROM tab1 WHERE - col1 BETWEEN NULL AND NULL
----
0
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3959
SELECT CAST( NULL AS SIGNED ) * + col0 * - + col0 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3959
SELECT CAST ( NULL AS INTEGER ) * + col0 * - + col0 AS col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT col2 * + - 35 + - + 83 FROM tab2 AS cor0
----
-1483
-2113
-888

onlyif mysql # DIV for integer division: 
query I rowsort label-3961
SELECT ALL 62 DIV col0 AS col1 FROM tab1 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-3961
SELECT ALL 62 / col0 AS col1 FROM tab1 AS cor0
----
0
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3962
SELECT DISTINCT - ( - SUM( - col1 ) ) FROM tab0 AS cor0
----
-103

skipif mysql # not compatible
query I rowsort label-3962
SELECT DISTINCT - ( - SUM ( - col1 ) ) FROM tab0 AS cor0
----
-103

query I rowsort
SELECT 45 * col1 AS col0 FROM tab0 AS cor0
----
3645
45
945

onlyif mysql # aggregate syntax: 
query I rowsort label-3964
SELECT DISTINCT + + MAX( DISTINCT col2 ) AS col1 FROM tab1 cor0
----
96

skipif mysql # not compatible
query I rowsort label-3964
SELECT DISTINCT + + MAX ( DISTINCT col2 ) AS col1 FROM tab1 cor0
----
96

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL >= col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3966
SELECT 73 * + - SUM( ALL - + 61 ) AS col0 FROM tab2
----
13359

skipif mysql # not compatible
query I rowsort label-3966
SELECT 73 * + - SUM ( ALL - + 61 ) AS col0 FROM tab2
----
13359

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 50 col1 FROM tab2
----
50

query II rowsort
SELECT - 78 + + col0 + - col0 + + 83 * + + 36 - + col0 * col2 * - ( 70 ), + 66 AS col0 FROM tab1 AS cor0
----
345630
66
353960
66
436070
66

query I rowsort
SELECT + + col0 + 44 AS col0 FROM tab2 AS cor0
----
108
119
90

onlyif mysql # aggregate syntax: 
query I rowsort label-3970
SELECT DISTINCT + + MAX( DISTINCT - - col2 ) + - COUNT( * ) + - MIN( DISTINCT + - col2 ) FROM tab1 AS cor0
----
189

skipif mysql # not compatible
query I rowsort label-3970
SELECT DISTINCT + + MAX ( DISTINCT - - col2 ) + - COUNT ( * ) + - MIN ( DISTINCT + - col2 ) FROM tab1 AS cor0
----
189

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 87 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - + col0 FROM tab0 WHERE NOT - + col1 IS NOT NULL
----

query I rowsort
SELECT - 17 * + col0 FROM tab0
----
-1479
-1649
-255

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3974
SELECT ALL - col2 * + - col0 * + - CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3974
SELECT ALL - col2 * + - col0 * + - CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT + 65 * + + col1 FROM tab1
----
3055
325
910

query I rowsort
SELECT DISTINCT + 13 + + col1 AS col1 FROM tab2
----
64
80
90

query I rowsort
SELECT + 83 + - col0 AS col1 FROM tab0
----
-14
-4
68

query IIIIII rowsort
SELECT * FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 ) WHERE NOT ( NULL ) IS NOT NULL
----
54 values hashing to 375f372843089b03f23b00160007527a

onlyif mysql # aggregate syntax: 
query I rowsort label-3979
SELECT - ( COUNT( * ) ) * + 0 AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-3979
SELECT - ( COUNT ( * ) ) * + 0 AS col1 FROM tab1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3980
SELECT ALL col1 DIV - + col2 * 27 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3980
SELECT ALL col1 / - + col2 * 27 FROM tab1 AS cor0
----
0
0
0

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NULL ) < - ( + - col2 ) * col0
----

query I rowsort
SELECT DISTINCT + + col1 + + + 84 AS col2 FROM tab2 AS cor0
----
135
151
161

query I rowsort
SELECT ALL + + 59 AS col1 FROM tab0 AS cor0
----
59
59
59

query I rowsort
SELECT ALL - - 32 * col1 + - + col2 + + col2 AS col1 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN col2 AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col2 = - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3986
SELECT MAX( - - ( col1 ) ) FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-3986
SELECT MAX ( - - ( col1 ) ) FROM tab1 AS cor0
----
47

query I rowsort
SELECT DISTINCT + - ( - - col2 ) * col2 AS col0 FROM tab0 cor0
----
-100
-2209
-9801

onlyif mysql # aggregate syntax: 
query I rowsort label-3988
SELECT + MIN( + 5 ) * + MIN( ALL + 81 ) / - - ( 62 ) AS col0 FROM tab2 cor0 WHERE NOT - col0 * + - col0 + col1 > NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3988
SELECT + MIN ( + 5 ) * + MIN ( ALL + 81 ) / - - ( 62 ) AS col0 FROM tab2 cor0 WHERE NOT - col0 * + - col0 + col1 > NULL
----
NULL

query I rowsort
SELECT ( + - 76 ) FROM tab1
----
-76
-76
-76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col2 * 4 AS col0, ( - col0 ) col2 FROM tab0
----
188
-15
396
-97
40
-87

onlyif mysql # DIV for integer division: 
query II rowsort label-3991
SELECT DISTINCT + col2 DIV + - 3 AS col1, col1 FROM tab2 AS cor0
----
-13
77
-19
67
-7
51

skipif mysql # not compatible
query II rowsort label-3991
SELECT DISTINCT + col2 / + - 3 AS col1, col1 FROM tab2 AS cor0
----
-13
77
-19
67
-7
51

query I rowsort
SELECT ALL + - 33 AS col1 FROM tab2 AS cor0
----
-33
-33
-33

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 * + 73 col2, - col2 FROM tab0 cor0
----
3431
-47
7227
-99
730
-10

onlyif mysql # aggregate syntax: 
query II rowsort label-3994
SELECT ALL ( + COUNT( * ) ), - 1 * SUM( + + col2 ) + - 74 + - ( - + COUNT( * ) ) AS col1 FROM tab2 AS cor0
----
3
-192

skipif mysql # not compatible
query II rowsort label-3994
SELECT ALL ( + COUNT ( * ) ), - 1 * SUM ( + + col2 ) + - 74 + - ( - + COUNT ( * ) ) AS col1 FROM tab2 AS cor0
----
3
-192

query I rowsort
SELECT - ( + - 47 ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 4fe192f296791e1e40ea00a68aa8dab7

query I rowsort
SELECT DISTINCT + col1 AS col0 FROM tab2 WHERE NOT ( NOT ( NULL ) < NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3997
SELECT - + COUNT( * ) * SUM( + 19 ) + - 45 FROM tab2 WHERE NOT - CAST( - - 44 AS SIGNED ) NOT BETWEEN + ( - col2 ) AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3997
SELECT - + COUNT ( * ) * SUM ( + 19 ) + - 45 FROM tab2 WHERE NOT - CAST ( - - 44 AS INTEGER ) NOT BETWEEN + ( - col2 ) AND NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3998
SELECT DISTINCT col0 DIV 64 DIV + - 32 FROM tab1 WHERE NOT 11 IN ( col1 )
----
0

skipif mysql # not compatible
query I rowsort label-3998
SELECT DISTINCT col0 / 64 / + - 32 FROM tab1 WHERE NOT 11 IN ( col1 )
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col0 + + col2 * + col2 col1 FROM tab2 AS cor0
----
1664
3439
575

query II rowsort
SELECT ALL - col0 AS col1, col0 FROM tab2 AS cor0 WHERE 89 + + + 7 BETWEEN 81 AND + + col1
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col0 * col2 + - - 44 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT + col0 AS col1, - 62 FROM tab1 AS cor0
----
51
-62
85
-62
91
-62

query I rowsort
SELECT ALL + 5 + + 58 FROM tab2 AS cor0
----
63
63
63

query I rowsort
SELECT DISTINCT col0 + - - col0 * - col2 FROM tab1 AS cor0
----
-4845
-4930
-6097

query I rowsort
SELECT - + col2 + + + col2 AS col1 FROM tab0 cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4006
SELECT DISTINCT MAX( ALL col2 ) col2 FROM tab2 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4006
SELECT DISTINCT MAX ( ALL col2 ) col2 FROM tab2 WHERE NOT NULL IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4007
SELECT DISTINCT COUNT( * ) * - - 65 AS col2 FROM tab0
----
195

skipif mysql # not compatible
query I rowsort label-4007
SELECT DISTINCT COUNT ( * ) * - - 65 AS col2 FROM tab0
----
195

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4008
SELECT ALL CAST( + + col0 AS SIGNED ) + + 39 AS col0 FROM tab2
----
103
114
85

skipif mysql # not compatible
query I rowsort label-4008
SELECT ALL CAST ( + + col0 AS INTEGER ) + + 39 AS col0 FROM tab2
----
103
114
85

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4009
SELECT COUNT( DISTINCT - 33 ) * 97 DIV + + COUNT( * ) + + COUNT( * ) * - 87 AS col0 FROM tab2
----
-229

skipif mysql # not compatible
query I rowsort label-4009
SELECT COUNT ( DISTINCT - 33 ) * 97 / + + COUNT ( * ) + + COUNT ( * ) * - 87 AS col0 FROM tab2
----
-229

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT 62 + + col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4011
SELECT ALL + + 3 * col1 + - CAST( NULL AS SIGNED ) FROM tab1 WHERE + - CAST( + col1 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-4011
SELECT ALL + + 3 * col1 + - CAST ( NULL AS INTEGER ) FROM tab1 WHERE + - CAST ( + col1 AS INTEGER ) IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4012
SELECT + - SUM( + col2 ) AS col2, MIN( col2 ) AS col2 FROM tab2 cor0
----
-121
23

skipif mysql # not compatible
query II rowsort label-4012
SELECT + - SUM ( + col2 ) AS col2, MIN ( col2 ) AS col2 FROM tab2 cor0
----
-121
23

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col0 * + col0 * col1 * col1 - + 94 > - col0 * 11 + - col2 + - 54
----

query I rowsort
SELECT - col2 - + - col0 + - ( - col2 ) + + + col2 + + - col0 FROM tab1 AS cor0
----
59
68
96

onlyif mysql # aggregate syntax: 
query II rowsort label-4015
SELECT ALL + COUNT( * ) col0, COUNT( * ) FROM tab1
----
3
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4015
SELECT ALL + COUNT ( * ) col0, COUNT ( * ) FROM tab1
----
3
3

onlyif mysql # DIV for integer division: 
query I rowsort label-4016
SELECT - + col1 DIV - 20 AS col0 FROM tab1 AS cor0
----
0
0
2

skipif mysql # not compatible
query I rowsort label-4016
SELECT - + col1 / - 20 AS col0 FROM tab1 AS cor0
----
0
0
2

onlyif mysql # aggregate syntax: 
query I rowsort label-4017
SELECT + + 81 * - COUNT( * ) AS col1 FROM tab0 cor0
----
-243

skipif mysql # not compatible
query I rowsort label-4017
SELECT + + 81 * - COUNT ( * ) AS col1 FROM tab0 cor0
----
-243

query I rowsort
SELECT DISTINCT - 12 * + col1 AS col2 FROM tab2 AS cor0
----
-612
-804
-924

onlyif mysql # DIV for integer division: 
query I rowsort label-4019
SELECT DISTINCT + col1 DIV - + 42 AS col1 FROM tab1
----
-1
0

skipif mysql # not compatible
query I rowsort label-4019
SELECT DISTINCT + col1 / - + 42 AS col1 FROM tab1
----
-1
0

query II rowsort
SELECT ALL + col0, ( - + 0 ) AS col1 FROM tab2
----
46
0
64
0
75
0

query I rowsort
SELECT - 24 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-24
-24
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-4022
SELECT DISTINCT SUM( - - col2 ) FROM tab1
----
223

skipif mysql # not compatible
query I rowsort label-4022
SELECT DISTINCT SUM ( - - col2 ) FROM tab1
----
223

query I rowsort
SELECT - + 22 AS col1 FROM tab1 WHERE NOT - col1 * 27 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4024
SELECT ALL + 94 AS col0, MIN( - col0 ) FROM tab2
----
94
-75

skipif mysql # not compatible
query II rowsort label-4024
SELECT ALL + 94 AS col0, MIN ( - col0 ) FROM tab2
----
94
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-4025
SELECT - MAX( + - 51 ) AS col1 FROM tab1 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-4025
SELECT - MAX ( + - 51 ) AS col1 FROM tab1 AS cor0
----
51

query I rowsort
SELECT ALL - col1 * 64 AS col1 FROM tab2 AS cor0
----
-3264
-4288
-4928

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col1 + + col0 + 14 + + col2 + - - col0 <> NULL
----

query II rowsort
SELECT ALL + 23, 20 AS col0 FROM tab2 AS cor0
----
23
20
23
20
23
20

query I rowsort
SELECT DISTINCT + + ( - 82 ) FROM tab2 AS cor0
----
-82

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE + 95 + col1 + + col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4031
SELECT ALL COUNT( * ) + MAX( ALL + 23 ) * - 0 AS col2 FROM tab0 AS cor0 WHERE ( col2 + + col2 ) IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-4031
SELECT ALL COUNT ( * ) + MAX ( ALL + 23 ) * - 0 AS col2 FROM tab0 AS cor0 WHERE ( col2 + + col2 ) IS NOT NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4032
SELECT DISTINCT + COUNT( * ) + - - 74 + - 86 AS col0 FROM tab0 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-4032
SELECT DISTINCT + COUNT ( * ) + - - 74 + - 86 AS col0 FROM tab0 AS cor0
----
-9

query I rowsort
SELECT ( - col2 ) + - 79 AS col2 FROM tab2 AS cor0 WHERE NULL > NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL < + 32
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4035
SELECT DISTINCT + + col0 + + + col2 + + ( - 15 ) DIV + col1 FROM tab1 AS cor0
----
141
146
159

skipif mysql # not compatible
query I rowsort label-4035
SELECT DISTINCT + + col0 + + + col2 + + ( - 15 ) / + col1 FROM tab1 AS cor0
----
141
146
159

query I rowsort
SELECT DISTINCT 26 AS col0 FROM tab0 AS cor0
----
26

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4037
SELECT + col2 AS col0, - CAST( + col1 AS SIGNED ) col1 FROM tab1
----
59
-5
68
-47
96
-14

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4037
SELECT + col2 AS col0, - CAST ( + col1 AS INTEGER ) col1 FROM tab1
----
59
-5
68
-47
96
-14

query I rowsort
SELECT 10 * + 63 AS col0 FROM tab0
----
630
630
630

onlyif mysql # aggregate syntax: 
query I rowsort label-4039
SELECT ALL + COUNT( * ) * COUNT( * ) * + 55 * - COUNT( * ) - + 40 AS col2 FROM tab2
----
-1525

skipif mysql # not compatible
query I rowsort label-4039
SELECT ALL + COUNT ( * ) * COUNT ( * ) * + 55 * - COUNT ( * ) - + 40 AS col2 FROM tab2
----
-1525

query II rowsort
SELECT + col0 AS col1, + 50 AS col0 FROM tab2
----
46
50
64
50
75
50

onlyif mysql # aggregate syntax: 
query I rowsort label-4041
SELECT DISTINCT COUNT( * ) AS col0 FROM tab2 WHERE - col1 < NULL
----
0

skipif mysql # not compatible
query I rowsort label-4041
SELECT DISTINCT COUNT ( * ) AS col0 FROM tab2 WHERE - col1 < NULL
----
0

query I rowsort
SELECT - col2 * + + 68 - col2 + col2 FROM tab1
----
-4012
-4624
-6528

query I rowsort
SELECT ALL col0 FROM tab0 WHERE NOT - col2 NOT IN ( + col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 8 col0 FROM tab1
----
-8
-8
-8

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4045
SELECT - 32 DIV COUNT( * ) - ( + SUM( - - 53 ) ) AS col1 FROM tab2
----
-169

skipif mysql # not compatible
query I rowsort label-4045
SELECT - 32 / COUNT ( * ) - ( + SUM ( - - 53 ) ) AS col1 FROM tab2
----
-169

query I rowsort
SELECT ALL - 88 * - + 56 + col0 AS col1 FROM tab2
----
4974
4992
5003

onlyif mysql # aggregate syntax: 
query I rowsort label-4047
SELECT DISTINCT - + SUM( + col1 ) + ( + COUNT( * ) ) FROM tab1 AS cor0
----
-63

skipif mysql # not compatible
query I rowsort label-4047
SELECT DISTINCT - + SUM ( + col1 ) + ( + COUNT ( * ) ) FROM tab1 AS cor0
----
-63

query II rowsort
SELECT DISTINCT col1 AS col2, - col2 * + col0 * 24 - - - col0 FROM tab2 cor0
----
51
-25438
67
-104475
77
-61504

query I rowsort
SELECT col1 + + col2 - 52 * col0 FROM tab2 AS cor0
----
-2318
-3211
-3775

query I rowsort
SELECT 48 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 8b09cc2c99c2102036162d063e0e5a4b

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4051
SELECT ALL ( - col1 ) - + CAST( NULL AS SIGNED ) + - col0 - col1 * - col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4051
SELECT ALL ( - col1 ) - + CAST ( NULL AS INTEGER ) + - col0 - col1 * - col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 69 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 3bd7460efa48c66c072ad5f3c2def7e9

onlyif mysql # aggregate syntax: 
query I rowsort label-4053
SELECT MAX( DISTINCT + ( col2 ) ) FROM tab0 WHERE NOT + col2 * - col1 IS NULL
----
99

skipif mysql # not compatible
query I rowsort label-4053
SELECT MAX ( DISTINCT + ( col2 ) ) FROM tab0 WHERE NOT + col2 * - col1 IS NULL
----
99

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-4054
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE ( + CAST( NULL AS SIGNED ) + 52 IS NULL )
----
54 values hashing to c419dc2a653bccd84f7a2da103315187

skipif mysql # not compatible
query IIIIII rowsort label-4054
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE ( + CAST ( NULL AS INTEGER ) + 52 IS NULL )
----
54 values hashing to c419dc2a653bccd84f7a2da103315187

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL <> ( + col1 )
----

query I rowsort
SELECT - col0 * col1 + + + col1 AS col2 FROM tab1 AS cor0
----
-420
-4230
-700

onlyif mysql # aggregate syntax: 
query I rowsort label-4057
SELECT ALL COUNT( * ) * 49 FROM tab1 AS cor0
----
147

skipif mysql # not compatible
query I rowsort label-4057
SELECT ALL COUNT ( * ) * 49 FROM tab1 AS cor0
----
147

onlyif mysql # aggregate syntax: 
query I rowsort label-4058
SELECT + + MIN( - 12 ) * - - COUNT( * ) + + SUM( DISTINCT - col2 ) AS col0 FROM tab2 AS cor0
----
-157

skipif mysql # not compatible
query I rowsort label-4058
SELECT + + MIN ( - 12 ) * - - COUNT ( * ) + + SUM ( DISTINCT - col2 ) AS col0 FROM tab2 AS cor0
----
-157

onlyif mysql # aggregate syntax: 
query I rowsort label-4059
SELECT SUM( 11 ) * + + COUNT( * ) FROM tab1 cor0
----
99

skipif mysql # not compatible
query I rowsort label-4059
SELECT SUM ( 11 ) * + + COUNT ( * ) FROM tab1 cor0
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4060
SELECT - + COUNT( * ) * - 9 AS col1 FROM tab2 AS cor0
----
27

skipif mysql # not compatible
query I rowsort label-4060
SELECT - + COUNT ( * ) * - 9 AS col1 FROM tab2 AS cor0
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-4061
SELECT - SUM( col2 ) AS col0 FROM tab2
----
-121

skipif mysql # not compatible
query I rowsort label-4061
SELECT - SUM ( col2 ) AS col0 FROM tab2
----
-121

onlyif mysql # aggregate syntax: 
query I rowsort label-4062
SELECT DISTINCT ( + + SUM( ALL - 69 ) ) * - 85 FROM tab1
----
17595

skipif mysql # not compatible
query I rowsort label-4062
SELECT DISTINCT ( + + SUM ( ALL - 69 ) ) * - 85 FROM tab1
----
17595

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 82 * col1 col2 FROM tab2
----
4182
5494
6314

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col0 * - col2 NOT BETWEEN NULL AND 7
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4065
SELECT ALL - 91 * COUNT( * ) AS col2 FROM tab2 AS cor0
----
-273

skipif mysql # not compatible
query I rowsort label-4065
SELECT ALL - 91 * COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-273

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - ( col1 ) + - 77 / - col2 * + col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4067
SELECT + 63 * - 79 * COUNT( * ) col0 FROM tab0
----
-14931

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4067
SELECT + 63 * - 79 * COUNT ( * ) col0 FROM tab0
----
-14931

query I rowsort
SELECT ALL 19 FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to 3dac30dc82c9e5acbbd3a5c5d1aeee11

query II rowsort
SELECT ALL - 85, 52 + + + col2 + + col2 - + - col2 * - - ( + 9 ) AS col0 FROM tab1
----
-85
1108
-85
701
-85
800

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4070
SELECT * FROM tab0 WHERE col1 BETWEEN - CAST( NULL AS SIGNED ) AND - col1
----

skipif mysql # not compatible
query III rowsort label-4070
SELECT * FROM tab0 WHERE col1 BETWEEN - CAST ( NULL AS INTEGER ) AND - col1
----

onlyif mysql # DIV for integer division: 
query III rowsort label-4071
SELECT col2 DIV - + col1 AS col2, col1 + - col2, 94 * + 94 + + + col1 AS col2 FROM tab1 AS cor0
----
9 values hashing to f9bc6b1e3531733d0ab4d945902c13ee

skipif mysql # not compatible
query III rowsort label-4071
SELECT col2 / - + col1 AS col2, col1 + - col2, 94 * + 94 + + + col1 AS col2 FROM tab1 AS cor0
----
9 values hashing to f9bc6b1e3531733d0ab4d945902c13ee

query I rowsort
SELECT ALL + 50 + 25 FROM tab1 AS cor0
----
75
75
75

query I rowsort
SELECT + + col0 + + 35 FROM tab2 AS cor0
----
110
81
99

query I rowsort
SELECT ( - ( + + col0 ) ) + + 7 + - ( - col1 ) - - + col1 * + + col2 FROM tab1 AS cor0
----
1314
222
3159

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col2 col1 FROM tab2 AS cor0 WHERE 24 IS NOT NULL
----
-23
-40
-58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4076
SELECT ALL 86 * - MIN( ALL + CAST( NULL AS SIGNED ) ) / + 80 * - 84 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4076
SELECT ALL 86 * - MIN ( ALL + CAST ( NULL AS INTEGER ) ) / + 80 * - 84 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4077
SELECT DISTINCT + + 24 + COUNT( * ) FROM tab1 WHERE NULL IS NULL
----
27

skipif mysql # not compatible
query I rowsort label-4077
SELECT DISTINCT + + 24 + COUNT ( * ) FROM tab1 WHERE NULL IS NULL
----
27

query I rowsort
SELECT + col0 AS col2 FROM tab0 WHERE 45 > + col2 * col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4079
SELECT DISTINCT ( - MIN( - + col2 ) ) AS col1 FROM tab2
----
58

skipif mysql # not compatible
query I rowsort label-4079
SELECT DISTINCT ( - MIN ( - + col2 ) ) AS col1 FROM tab2
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-4080
SELECT + COUNT( * ) * + + MIN( DISTINCT + 23 ) FROM tab2
----
69

skipif mysql # not compatible
query I rowsort label-4080
SELECT + COUNT ( * ) * + + MIN ( DISTINCT + 23 ) FROM tab2
----
69

onlyif mysql # DIV for integer division: 
query I rowsort label-4081
SELECT col1 DIV - 84 * + - col2 * col1 * col1 * - col2 AS col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4081
SELECT col1 / - 84 * + - col2 * col1 * col1 * - col2 AS col0 FROM tab2
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4082
SELECT ALL - 86 DIV - col1 + + 62 + - 80 * - col0 AS col1 FROM tab2 AS cor0
----
3743
5183
6063

skipif mysql # not compatible
query I rowsort label-4082
SELECT ALL - 86 / - col1 + + 62 + - 80 * - col0 AS col1 FROM tab2 AS cor0
----
3743
5183
6063

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4083
SELECT + CAST( - - COUNT( * ) AS SIGNED ) - + 1 col1 FROM tab0 AS cor0
----
2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4083
SELECT + CAST ( - - COUNT ( * ) AS INTEGER ) - + 1 col1 FROM tab0 AS cor0
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-4084
SELECT + + col1 DIV col1 - + col2 FROM tab2 AS cor0
----
-22
-39
-57

skipif mysql # not compatible
query I rowsort label-4084
SELECT + + col1 / col1 - + col2 FROM tab2 AS cor0
----
-22
-39
-57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4085
SELECT 4 * CAST( - ( + + col0 ) AS SIGNED ) col2 FROM tab2 AS cor0
----
-184
-256
-300

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4085
SELECT 4 * CAST ( - ( + + col0 ) AS INTEGER ) col2 FROM tab2 AS cor0
----
-184
-256
-300

query I rowsort
SELECT col1 * - col1 + + col1 + col0 FROM tab0 AS cor0
----
-333
-6465
97

onlyif mysql # aggregate syntax: 
query I rowsort label-4087
SELECT - COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-4087
SELECT - COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4088
SELECT ALL + MAX( col0 ) FROM tab1 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-4088
SELECT ALL + MAX ( col0 ) FROM tab1 AS cor0
----
91

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4089
SELECT DISTINCT col1, - col1 * - - CAST( NULL AS SIGNED ) FROM tab1 cor0
----
14
NULL
47
NULL
5
NULL

skipif mysql # not compatible
query II rowsort label-4089
SELECT DISTINCT col1, - col1 * - - CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
14
NULL
47
NULL
5
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4090
SELECT MIN( + CAST( NULL AS SIGNED ) ) col0 FROM tab0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4090
SELECT MIN ( + CAST ( NULL AS INTEGER ) ) col0 FROM tab0
----
NULL

query I rowsort
SELECT ( + 5 ) AS col0 FROM tab0
----
5
5
5

query I rowsort
SELECT DISTINCT - col2 * + 95 FROM tab0
----
-4465
-9405
-950

query I rowsort
SELECT + 46 + - ( 94 ) FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( ( - + 41 ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4094
SELECT CAST( - - col1 AS SIGNED ) + + - 4 col1, 28 - + col2 AS col0 FROM tab2
----
47
5
63
-30
73
-12

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4094
SELECT CAST ( - - col1 AS INTEGER ) + + - 4 col1, 28 - + col2 AS col0 FROM tab2
----
47
5
63
-30
73
-12

query I rowsort
SELECT ALL + 26 * - + 26 AS col0 FROM tab2
----
-676
-676
-676

query I rowsort
SELECT + col0 AS col2 FROM tab0 AS cor0 WHERE NULL IS NULL
----
15
87
97

query I rowsort
SELECT DISTINCT - col1 * - - col1 + + - col0 + - col1 FROM tab1 AS cor0
----
-115
-2347
-261

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4098
SELECT DISTINCT + col0 * col1 + + 92 - + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4098
SELECT DISTINCT + col0 * col1 + + 92 - + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-4099
SELECT 4 DIV - + col1 - + - ( - col0 ) + - col2 + col2, col0 col1 FROM tab0
----
-101
97
-15
15
-87
87

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4099
SELECT 4 / - + col1 - + - ( - col0 ) + - col2 + col2, col0 col1 FROM tab0
----
-101
97
-15
15
-87
87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( col0 ) - + col2 col2 FROM tab0
----
-196
-62
-97

query I rowsort
SELECT + 31 - 81 AS col2 FROM tab2
----
-50
-50
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-4102
SELECT COUNT( * ) - COUNT( * ) + + + MAX( - col1 ) * + + COUNT( * ) FROM tab2
----
-153

skipif mysql # not compatible
query I rowsort label-4102
SELECT COUNT ( * ) - COUNT ( * ) + + + MAX ( - col1 ) * + + COUNT ( * ) FROM tab2
----
-153

onlyif mysql # aggregate syntax: 
query I rowsort label-4103
SELECT 72 + COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
81

skipif mysql # not compatible
query I rowsort label-4103
SELECT 72 + COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
81

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4104
SELECT DISTINCT - + CAST( + CAST( - - 81 AS DECIMAL ) AS SIGNED ) col2 FROM ( tab2 AS cor0 CROSS JOIN tab0 AS cor1 ) WHERE NOT ( NULL ) IS NOT NULL
----
-81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4104
SELECT DISTINCT - + CAST ( + CAST ( - - 81 AS REAL ) AS INTEGER ) col2 FROM ( tab2 AS cor0 CROSS JOIN tab0 AS cor1 ) WHERE NOT ( NULL ) IS NOT NULL
----
-81

query II rowsort
SELECT 12 * col2, + col2 AS col0 FROM tab0 AS cor0
----
1188
99
120
10
564
47

query I rowsort
SELECT ALL - + col0 * + 62 FROM tab2 AS cor0 WHERE - 52 BETWEEN - - col1 * - + col1 AND + + col0
----
-2852
-3968
-4650

query I rowsort
SELECT + 57 * 94 AS col0 FROM tab1 AS cor0
----
5358
5358
5358

query I rowsort
SELECT + + 50 * + + col0 AS col0 FROM tab1 cor0
----
2550
4250
4550

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( - + 31 ) col0 FROM tab0 AS cor0
----
-31

query I rowsort
SELECT ALL - col0 * + 72 + - ( 53 ) AS col1 FROM tab0 AS cor0
----
-1133
-6317
-7037

query I rowsort
SELECT - - 99 AS col2 FROM tab0 AS cor0
----
99
99
99

query II rowsort
SELECT col2 * 35 AS col0, - col2 FROM tab2 WHERE NOT - col0 > - - col0
----
1400
-40
2030
-58
805
-23

query I rowsort
SELECT ALL 1 * - - col1 FROM tab0
----
1
21
81

query IIIIII rowsort
SELECT ALL * FROM tab1, tab1 AS cor0 WHERE 92 IS NOT NULL
----
54 values hashing to 375f372843089b03f23b00160007527a

onlyif mysql # aggregate syntax: 
query II rowsort label-4115
SELECT DISTINCT + 63 AS col2, COUNT( * ) FROM tab1
----
63
3

skipif mysql # not compatible
query II rowsort label-4115
SELECT DISTINCT + 63 AS col2, COUNT ( * ) FROM tab1
----
63
3

query III rowsort
SELECT ALL * FROM tab0 WHERE + 59 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4117
SELECT DISTINCT - 63 * + COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4117
SELECT DISTINCT - 63 * + COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4118
SELECT 22 * - - MAX( + + col2 ) + CAST( COUNT( * ) AS SIGNED ) AS col1 FROM tab2 cor0
----
1279

skipif mysql # not compatible
query I rowsort label-4118
SELECT 22 * - - MAX ( + + col2 ) + CAST ( COUNT ( * ) AS INTEGER ) AS col1 FROM tab2 cor0
----
1279

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 69 col0 FROM tab1
----
69
69
69

onlyif mysql # aggregate syntax: 
query I rowsort label-4120
SELECT ALL SUM( - 73 ) FROM tab1
----
-219

skipif mysql # not compatible
query I rowsort label-4120
SELECT ALL SUM ( - 73 ) FROM tab1
----
-219

onlyif mysql # aggregate syntax: 
query I rowsort label-4121
SELECT DISTINCT MAX( DISTINCT - 32 ) FROM tab1
----
-32

skipif mysql # not compatible
query I rowsort label-4121
SELECT DISTINCT MAX ( DISTINCT - 32 ) FROM tab1
----
-32

query I rowsort
SELECT + 97 + - col0 AS col2 FROM tab1
----
12
46
6

query I rowsort
SELECT ALL col1 * + 18 FROM tab0 WHERE + col0 - col0 <> ( - col2 )
----
1458
18
378

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4124
SELECT - 31 / - CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4124
SELECT - 31 / - CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4125
SELECT - ( - COUNT( * ) ) * - 58 FROM tab0
----
-174

skipif mysql # not compatible
query I rowsort label-4125
SELECT - ( - COUNT ( * ) ) * - 58 FROM tab0
----
-174

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL NOT BETWEEN NULL AND ( + 53 / col1 )
----

query I rowsort
SELECT - col0 - + 78 AS col2 FROM tab2
----
-124
-142
-153

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4128
SELECT 45 AS col1 FROM tab0 WHERE ( NULL ) BETWEEN col2 AND ( - col2 ) * + col1 + - ( CAST( NULL AS SIGNED ) ) * col1
----

skipif mysql # not compatible
query I rowsort label-4128
SELECT 45 AS col1 FROM tab0 WHERE ( NULL ) BETWEEN col2 AND ( - col2 ) * + col1 + - ( CAST ( NULL AS INTEGER ) ) * col1
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4129
SELECT DISTINCT + MIN( - 2 ) * + CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4129
SELECT DISTINCT + MIN ( - 2 ) * + CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + 75 + + col1 = NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4131
SELECT ALL - col0 DIV - 54 AS col2 FROM tab2
----
0
1
1

skipif mysql # not compatible
query I rowsort label-4131
SELECT ALL - col0 / - 54 AS col2 FROM tab2
----
0
1
1

query I rowsort
SELECT + col0 * - 81 FROM tab2
----
-3726
-5184
-6075

query I rowsort
SELECT DISTINCT + col0 FROM tab1 WHERE ( NULL ) IS NULL
----
51
85
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4134
SELECT - col0 * CAST( col1 AS SIGNED ) FROM tab2
----
-2346
-4928
-5025

skipif mysql # not compatible
query I rowsort label-4134
SELECT - col0 * CAST ( col1 AS INTEGER ) FROM tab2
----
-2346
-4928
-5025

query I rowsort
SELECT ALL AVG ( DISTINCT + 31 ) FROM tab2 WHERE NOT col1 * + col2 IS NOT NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4136
SELECT DISTINCT + 57 DIV col2 AS col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-4136
SELECT DISTINCT + 57 / col2 AS col0 FROM tab1
----
0

query I rowsort
SELECT + 1 * col2 FROM tab2
----
23
40
58

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL NOT BETWEEN ( - 72 ) AND col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4139
SELECT ALL - CAST( NULL AS SIGNED ) * + col1 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4139
SELECT ALL - CAST ( NULL AS INTEGER ) * + col1 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + 81 col2 FROM tab1 WHERE NOT col0 * col1 BETWEEN - col0 + col2 AND ( NULL )
----

query I rowsort
SELECT col2 + col2 * + ( - col0 ) FROM tab0
----
-658
-860
-9504

onlyif mysql # DIV for integer division: 
query I rowsort label-4142
SELECT + col2 * col0 + col2 DIV + 79 col1 FROM tab2
----
1058
2560
4350

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4142
SELECT + col2 * col0 + col2 / + 79 col1 FROM tab2
----
1058
2560
4350

onlyif mysql # DIV for integer division: 
query I rowsort label-4143
SELECT ALL 81 DIV + col2 AS col1 FROM tab2
----
1
2
3

skipif mysql # not compatible
query I rowsort label-4143
SELECT ALL 81 / + col2 AS col1 FROM tab2
----
1
2
3

query I rowsort
SELECT DISTINCT + col0 * - 91 FROM tab2 WHERE NOT ( 0 ) NOT IN ( + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4145
SELECT MAX( ALL 34 ) + - MIN( col0 ) FROM tab1
----
-17

skipif mysql # not compatible
query I rowsort label-4145
SELECT MAX ( ALL 34 ) + - MIN ( col0 ) FROM tab1
----
-17

query III rowsort
SELECT * FROM tab0 WHERE col1 / 75 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4147
SELECT ALL + MIN( 53 ) AS col1 FROM tab1
----
53

skipif mysql # not compatible
query I rowsort label-4147
SELECT ALL + MIN ( 53 ) AS col1 FROM tab1
----
53

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col0 < col0 + 90
----

query I rowsort
SELECT DISTINCT + 68 FROM tab0 WHERE NULL <= + 74 - col2
----

query I rowsort
SELECT ALL 4 - - 18 FROM tab1
----
22
22
22

query I rowsort
SELECT + 93 + + ( - col1 ) AS col2 FROM tab2
----
16
26
42

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 21 col2 FROM tab0 AS cor0
----
21

query I rowsort
SELECT DISTINCT - col2 / - 29 + - col1 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND ( - 36 + col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4154
SELECT + col2 DIV - 6 AS col0 FROM tab2 AS cor0
----
-3
-6
-9

skipif mysql # not compatible
query I rowsort label-4154
SELECT + col2 / - 6 AS col0 FROM tab2 AS cor0
----
-3
-6
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-4155
SELECT DISTINCT COUNT( * ) col1 FROM tab0 AS cor0 WHERE NOT col1 > ( NULL )
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4155
SELECT DISTINCT COUNT ( * ) col1 FROM tab0 AS cor0 WHERE NOT col1 > ( NULL )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4156
SELECT DISTINCT - SUM( DISTINCT + col2 ) FROM tab1 AS cor0
----
-223

skipif mysql # not compatible
query I rowsort label-4156
SELECT DISTINCT - SUM ( DISTINCT + col2 ) FROM tab1 AS cor0
----
-223

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4157
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NULL ) BETWEEN + col2 AND + col0 * CAST( - col1 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-4157
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NULL ) BETWEEN + col2 AND + col0 * CAST ( - col1 AS INTEGER )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4158
SELECT ALL + 89 DIV + col2 + - col0 * + 19 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-1214
-1424
-871

skipif mysql # not compatible
query I rowsort label-4158
SELECT ALL + 89 / + col2 + - col0 * + 19 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-1214
-1424
-871

query IIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab0 WHERE NOT 71 + 17 IS NOT NULL
----

query I rowsort
SELECT 94 FROM tab0 AS cor0 CROSS JOIN tab1
----
9 values hashing to b0ffb7527f4fbf44f30945e1ccb58c24

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab0 WHERE ( 65 ) IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4162
SELECT COUNT( CAST( 15 AS DECIMAL ) ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-4162
SELECT COUNT ( CAST ( 15 AS REAL ) ) FROM tab2
----
3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( + col2 * + 85 + 45 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - col1 * 98 AS col1 FROM tab2 cor0
----
-4998
-6566
-7546

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 49 col1 FROM tab1 AS cor0
----
49
49
49

onlyif mysql # aggregate syntax: 
query I rowsort label-4166
SELECT DISTINCT 82 + + COUNT( * ) AS col0 FROM tab2 cor0 WHERE NOT ( NULL ) BETWEEN NULL AND + col0
----
82

skipif mysql # not compatible
query I rowsort label-4166
SELECT DISTINCT 82 + + COUNT ( * ) AS col0 FROM tab2 cor0 WHERE NOT ( NULL ) BETWEEN NULL AND + col0
----
82

query I rowsort
SELECT DISTINCT + 8 * - 84 AS col1 FROM tab2 AS cor0
----
-672

query I rowsort
SELECT DISTINCT - - 54 AS col2 FROM tab0 cor0
----
54

query I rowsort
SELECT DISTINCT col1 FROM tab2 AS cor0 WHERE NOT 12 IS NULL
----
51
67
77

query I rowsort
SELECT ALL - col1 * col0 FROM tab1 AS cor0 WHERE NOT - 17 IS NULL
----
-425
-4277
-714

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4171
SELECT * FROM tab1 AS cor0 WHERE NOT - col2 <= ( CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-4171
SELECT * FROM tab1 AS cor0 WHERE NOT - col2 <= ( CAST ( NULL AS INTEGER ) )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - col2 * + 73 IS NULL
----

query I rowsort
SELECT ALL 83 FROM tab1 AS cor0 WHERE NOT col0 NOT BETWEEN + 63 AND - 22
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4174
SELECT DISTINCT COUNT( col0 ) + + 80 * + 92 FROM tab0 AS cor0 WHERE NOT 94 < col1
----
7363

skipif mysql # not compatible
query I rowsort label-4174
SELECT DISTINCT COUNT ( col0 ) + + 80 * + 92 FROM tab0 AS cor0 WHERE NOT 94 < col1
----
7363

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 9 col0 FROM tab0
----
9
9
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4176
SELECT ( CAST( NULL AS SIGNED ) ) / + col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4176
SELECT ( CAST ( NULL AS INTEGER ) ) / + col1 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 WHERE + 59 * - 28 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4178
SELECT ALL - COUNT( * ) + + 84 AS col1 FROM tab0
----
81

skipif mysql # not compatible
query I rowsort label-4178
SELECT ALL - COUNT ( * ) + + 84 AS col1 FROM tab0
----
81

query III rowsort
SELECT * FROM tab2 WHERE col2 + + 74 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 50 * + col2 col0 FROM tab1
----
2950
3400
4800

onlyif mysql # aggregate syntax: 
query I rowsort label-4181
SELECT + COUNT( ALL + 87 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-4181
SELECT + COUNT ( ALL + 87 ) FROM tab2
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-4182
SELECT col0 DIV col2 * + 78 AS col2 FROM tab0
----
0
0
624

skipif mysql # not compatible
query I rowsort label-4182
SELECT col0 / col2 * + 78 AS col2 FROM tab0
----
0
0
624

query I rowsort
SELECT ALL - col1 FROM tab1 AS cor0 WHERE - 53 IS NOT NULL
----
-14
-47
-5

query I rowsort
SELECT - col2 FROM tab1 AS cor0 WHERE ( 32 * 74 ) = - col0
----

query I rowsort
SELECT ALL + - 17 * col2 + - ( - 96 ) * 79 AS col2 FROM tab2 AS cor0
----
6598
6904
7193

onlyif mysql # aggregate syntax: 
query I rowsort label-4186
SELECT + COUNT( * ) + 6 AS col1 FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 )
----
15

skipif mysql # not compatible
query I rowsort label-4186
SELECT + COUNT ( * ) + 6 AS col1 FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 )
----
15

query III rowsort
SELECT * FROM tab2 WHERE ( - - col2 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT 87 - + ( + col1 ) + col1 AS col1 FROM tab2
----
87

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - - 86 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4190
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( + CAST( NULL AS SIGNED ) * + col0 ) <= NULL
----

skipif mysql # not compatible
query III rowsort label-4190
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( + CAST ( NULL AS INTEGER ) * + col0 ) <= NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4191
SELECT + 48 DIV + MIN( ALL - col2 ) AS col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4191
SELECT + 48 / + MIN ( ALL - col2 ) AS col2 FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4192
SELECT - - MAX( 22 ) - - ( - 10 ) FROM tab0 AS cor0
----
12

skipif mysql # not compatible
query I rowsort label-4192
SELECT - - MAX ( 22 ) - - ( - 10 ) FROM tab0 AS cor0
----
12

query I rowsort
SELECT + + col2 - - col0 * - - ( col0 ) AS col1 FROM tab1 AS cor0
----
2697
7284
8349

query I rowsort
SELECT + - 16 - + 73 + + + 60 FROM tab1 cor0
----
-29
-29
-29

query I rowsort
SELECT - 14 - - 94 FROM tab1 AS cor0
----
80
80
80

query III rowsort
SELECT * FROM tab0 WHERE NULL IS NOT NULL AND NOT ( col1 * col2 + - col2 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4197
SELECT ALL - 61 * - 14 AS col1, - COUNT( * ) + + COUNT( * ) col1 FROM tab2
----
854
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4197
SELECT ALL - 61 * - 14 AS col1, - COUNT ( * ) + + COUNT ( * ) col1 FROM tab2
----
854
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4198
SELECT DISTINCT - MIN( col1 ) + + CAST( MIN( - col0 ) AS SIGNED ) FROM tab1 WHERE NOT NULL < NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4198
SELECT DISTINCT - MIN ( col1 ) + + CAST ( MIN ( - col0 ) AS INTEGER ) FROM tab1 WHERE NOT NULL < NULL
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4199
SELECT DISTINCT CAST( COUNT( * ) AS SIGNED ) col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4199
SELECT DISTINCT CAST ( COUNT ( * ) AS INTEGER ) col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
0

query I rowsort
SELECT DISTINCT col1 FROM tab2 AS cor0 WHERE NOT ( + - col1 IS NULL )
----
51
67
77

query I rowsort
SELECT ALL - + 6 * col2 + - 64 AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-418
-472
-640

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 72 NOT BETWEEN ( - col0 ) AND col2 / + ( col2 ) + - col0
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col1 * - 75 * - 85 BETWEEN NULL AND - 63
----

query I rowsort
SELECT + 78 * - + 55 + + col1 AS col1 FROM tab2 AS cor0 WHERE NOT NULL > ( - col1 )
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND 92 + col1
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4206
SELECT ALL - 81 + + COUNT( * ) * - + COUNT( * ) DIV + COUNT( * ) FROM tab0 AS cor0
----
-84

skipif mysql # not compatible
query I rowsort label-4206
SELECT ALL - 81 + + COUNT ( * ) * - + COUNT ( * ) / + COUNT ( * ) FROM tab0 AS cor0
----
-84

query II rowsort
SELECT - col1 AS col1, - col0 FROM tab0 AS cor0
----
-1
-97
-21
-87
-81
-15

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN NULL AND - col2 - - - col0 + col2 * 21
----

query I rowsort
SELECT - + col1 + - + col1 AS col1 FROM tab1 AS cor0
----
-10
-28
-94

query I rowsort
SELECT - col2 + + + col1 AS col0 FROM tab2 cor0
----
28
37
9

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col2 * - col1 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + - + 21 col1 FROM tab0
----
-6
66
76

onlyif mysql # DIV for integer division: 
query I rowsort label-4213
SELECT DISTINCT + col1 DIV - - 89 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-4213
SELECT DISTINCT + col1 / - - 89 FROM tab0
----
0

query III rowsort
SELECT * FROM tab1 WHERE ( ( NULL ) < + + 11 )
----

query II rowsort
SELECT ALL - col2 + - col1, col0 FROM tab0
----
-100
97
-128
15
-31
87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4216
SELECT + col0 * - CAST( NULL AS SIGNED ) + + - col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4216
SELECT + col0 * - CAST ( NULL AS INTEGER ) + + - col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT col0 * + 84 AS col2 FROM tab2
----
3864
5376
6300

onlyif mysql # DIV for integer division: 
query I rowsort label-4218
SELECT col0 DIV col1 + 62 * - + 43 FROM tab1 cor0
----
-2649
-2663
-2665

skipif mysql # not compatible
query I rowsort label-4218
SELECT col0 / col1 + 62 * - + 43 FROM tab1 cor0
----
-2649
-2663
-2665

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + 66 + - ( - + col0 ) NOT BETWEEN ( + col2 ) AND ( 70 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4220
SELECT + - 91 DIV - col1 + + col1 FROM tab2 WHERE + col1 IS NOT NULL
----
52
68
78

skipif mysql # not compatible
query I rowsort label-4220
SELECT + - 91 / - col1 + + col1 FROM tab2 WHERE + col1 IS NOT NULL
----
52
68
78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4221
SELECT - col1 * + + 61 * CAST( NULL AS SIGNED ) + col2 + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4221
SELECT - col1 * + + 61 * CAST ( NULL AS INTEGER ) + col2 + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( 30 ) + col1 + - - col1 col0 FROM tab2 cor0
----
132
164
184

onlyif mysql # aggregate syntax: 
query I rowsort label-4223
SELECT - 13 + - + COUNT( * ) AS col0 FROM tab0 AS cor0
----
-16

skipif mysql # not compatible
query I rowsort label-4223
SELECT - 13 + - + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-16

query I rowsort
SELECT - 17 + col0 FROM tab2 AS cor0
----
29
47
58

onlyif mysql # aggregate syntax: 
query I rowsort label-4225
SELECT DISTINCT - - MIN( DISTINCT + + col0 ) AS col0 FROM tab0 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-4225
SELECT DISTINCT - - MIN ( DISTINCT + + col0 ) AS col0 FROM tab0 AS cor0
----
15

query I rowsort
SELECT DISTINCT + + 3 * - col1 * - col1 + + + col1 AS col0 FROM tab2 AS cor0
----
13534
17864
7854

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( ( NULL ) IS NULL )
----

query I rowsort
SELECT col2 + + col2 + + - 26 * 29 FROM tab1 cor0 WHERE NOT 64 IS NULL
----
-562
-618
-636

query I rowsort
SELECT DISTINCT - col1 * + + col0 * - col2 FROM tab1 cor0
----
25075
290836
68544

query I rowsort
SELECT ALL col1 * col1 * + 12 AS col1 FROM tab1 AS cor0
----
2352
26508
300

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4231
SELECT DISTINCT CAST( + + CAST( NULL AS SIGNED ) AS DECIMAL ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4231
SELECT DISTINCT CAST ( + + CAST ( NULL AS INTEGER ) AS REAL ) FROM tab2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4232
SELECT ALL * FROM tab2 WHERE + 14 * - 69 - - + CAST( + - 74 AS SIGNED ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-4232
SELECT ALL * FROM tab2 WHERE + 14 * - 69 - - + CAST ( + - 74 AS INTEGER ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col1 * - ( - col2 ) AS col1 FROM tab1
----
1344
295
3196

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 AS col0, ( - col1 ) col2 FROM tab0
----
-15
-81
-87
-21
-97
-1

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4235
SELECT * FROM tab0 WHERE NOT 85 * + 72 IS NULL OR NOT NULL <= + CAST( + col2 AS SIGNED )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-4235
SELECT * FROM tab0 WHERE NOT 85 * + 72 IS NULL OR NOT NULL <= + CAST ( + col2 AS INTEGER )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4236
SELECT DISTINCT 15 * + + MAX( ALL + + col0 ) AS col2 FROM tab1
----
1365

skipif mysql # not compatible
query I rowsort label-4236
SELECT DISTINCT 15 * + + MAX ( ALL + + col0 ) AS col2 FROM tab1
----
1365

query I rowsort
SELECT ALL + 87 AS col2 FROM tab2 cor0
----
87
87
87

onlyif mysql # aggregate syntax: 
query I rowsort label-4238
SELECT ALL COUNT( * ) * + 47 FROM tab1 AS cor0
----
141

skipif mysql # not compatible
query I rowsort label-4238
SELECT ALL COUNT ( * ) * + 47 FROM tab1 AS cor0
----
141

query I rowsort
SELECT col0 * - + col1 + - 75 AS col1 FROM tab2 AS cor0
----
-2421
-5003
-5100

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT NULL <> ( + col1 * + col0 )
----

query I rowsort
SELECT DISTINCT - + col0 * - + col0 FROM tab0 AS cor0
----
225
7569
9409

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT ( - col2 / col2 + - col2 ) NOT BETWEEN 56 AND 66
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4243
SELECT + COUNT( * ) DIV - 24 AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-4243
SELECT + COUNT ( * ) / - 24 AS col2 FROM tab2
----
0

query I rowsort
SELECT 99 * - + col0 FROM tab0
----
-1485
-8613
-9603

query I rowsort
SELECT - col2 + - 41 FROM tab2
----
-64
-81
-99

query II rowsort
SELECT + col1 + 11 AS col1, 47 - + col2 * + 19 AS col2 FROM tab0
----
12
-1834
32
-143
92
-846

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col1 / + 31 <> NULL
----

query I rowsort
SELECT ALL + col0 AS col2 FROM tab2 AS cor0 WHERE col1 <> NULL
----

query I rowsort
SELECT DISTINCT + 33 + - ( - - col2 ) FROM tab0 AS cor0
----
-14
-66
23

query I rowsort
SELECT ALL - ( + ( - ( - col1 ) ) ) + - col0 FROM tab2 AS cor0
----
-141
-142
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-4251
SELECT ALL MIN( DISTINCT - col0 ) AS col0 FROM tab1 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-4251
SELECT ALL MIN ( DISTINCT - col0 ) AS col0 FROM tab1 AS cor0
----
-91

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4252
SELECT ALL + col0 / 87 + + 22 AS col1 FROM tab0 AS cor0 WHERE NOT + col2 * + col0 + + + ( - col0 ) * + + col0 NOT BETWEEN - col2 AND CAST( + col1 AS DECIMAL )
----

skipif mysql # not compatible
query I rowsort label-4252
SELECT ALL + col0 / 87 + + 22 AS col1 FROM tab0 AS cor0 WHERE NOT + col2 * + col0 + + + ( - col0 ) * + + col0 NOT BETWEEN - col2 AND CAST ( + col1 AS REAL )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 7 / + col1 < NULL
----

query I rowsort
SELECT + col2 AS col2 FROM tab1 AS cor0 WHERE NULL NOT IN ( - col0 / - col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4255
SELECT ALL * FROM tab2 AS cor0 WHERE NOT CAST( - + 32 AS SIGNED ) + + 95 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-4255
SELECT ALL * FROM tab2 AS cor0 WHERE NOT CAST ( - + 32 AS INTEGER ) + + 95 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - - ( - + col2 ) <= - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 79 * - col0 * + col1 + col0 col0 FROM tab2
----
-185288
-389248
-396900

query III rowsort
SELECT ALL * FROM tab2 WHERE - col0 * 5 BETWEEN + 88 * + - col2 AND col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4259
SELECT ALL - CAST( NULL AS SIGNED ) * + 42 / + COUNT( DISTINCT - col0 ) col0 FROM tab0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4259
SELECT ALL - CAST ( NULL AS INTEGER ) * + 42 / + COUNT ( DISTINCT - col0 ) col0 FROM tab0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4260
SELECT + col1 DIV - - 9 AS col1 FROM tab2
----
5
7
8

skipif mysql # not compatible
query I rowsort label-4260
SELECT + col1 / - - 9 AS col1 FROM tab2
----
5
7
8

query I rowsort
SELECT ALL - 60 * + - col1 FROM tab0
----
1260
4860
60

query I rowsort
SELECT + col1 + + col0 AS col0 FROM tab2 cor0
----
141
142
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 57 + + col1 + 19 col0 FROM tab2 AS cor0 WHERE 66 = NULL
----

query I rowsort
SELECT ALL col2 - - 59 * - col1 FROM tab0 AS cor0
----
-1229
-4732
40

onlyif mysql # aggregate syntax: 
query I rowsort label-4265
SELECT 90 + MIN( + - col0 ) AS col1 FROM tab0
----
-7

skipif mysql # not compatible
query I rowsort label-4265
SELECT 90 + MIN ( + - col0 ) AS col1 FROM tab0
----
-7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4266
SELECT DISTINCT * FROM tab1 WHERE NOT + CAST( - col1 AS SIGNED ) + + col2 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-4266
SELECT DISTINCT * FROM tab1 WHERE NOT + CAST ( - col1 AS INTEGER ) + + col2 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - - col0 BETWEEN col2 AND - + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4268
SELECT ALL SUM( ALL - - 86 ) FROM tab0
----
258

skipif mysql # not compatible
query I rowsort label-4268
SELECT ALL SUM ( ALL - - 86 ) FROM tab0
----
258

query II rowsort
SELECT DISTINCT + col1, 6 FROM tab2 AS cor0
----
51
6
67
6
77
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4270
SELECT ALL - AVG ( DISTINCT + ( + + CAST( NULL AS SIGNED ) ) ) FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4270
SELECT ALL - AVG ( DISTINCT + ( + + CAST ( NULL AS INTEGER ) ) ) FROM tab1 cor0
----
NULL

query II rowsort
SELECT DISTINCT - - col0 AS col0, 90 AS col2 FROM tab0 AS cor0
----
15
90
87
90
97
90

onlyif mysql # aggregate syntax: 
query I rowsort label-4272
SELECT ALL SUM( ALL + - col1 ) AS col0 FROM tab1 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-4272
SELECT ALL SUM ( ALL + - col1 ) AS col0 FROM tab1 AS cor0
----
-66

query I rowsort
SELECT - 65 + - col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-124
-133
-161

query I rowsort
SELECT DISTINCT - col2 * + - col1 + - 48 AS col0 FROM tab0 AS cor0
----
162
3759
51

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) IN ( + - col0 )
----

query I rowsort
SELECT + col1 * + - col1 AS col1 FROM tab1 AS cor0
----
-196
-2209
-25

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 86 AS col2, - 49 col0 FROM tab0 AS cor0
----
-86
-49
-86
-49
-86
-49

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col2 + - - 66 + - 47 * - col2 + - 77 * + col2 + + col0 - + 38 * - col1 + - + col1 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + 89 + - col0 NOT BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4280
SELECT + CAST( - + col1 AS SIGNED ) * - col1 + + 87 FROM tab0
----
528
6648
88

skipif mysql # not compatible
query I rowsort label-4280
SELECT + CAST ( - + col1 AS INTEGER ) * - col1 + + 87 FROM tab0
----
528
6648
88

query III rowsort
SELECT ALL * FROM tab2 WHERE ( - 15 NOT BETWEEN NULL AND NULL )
----

query I rowsort
SELECT DISTINCT - ( - 5 ) AS col1 FROM tab1 cor0
----
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4283
SELECT COUNT( * ) * + ( - CAST( NULL AS SIGNED ) ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4283
SELECT COUNT ( * ) * + ( - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT - ( col2 ) * + - col2 FROM tab2
----
1600
3364
529

onlyif mysql # aggregate syntax: 
query II rowsort label-4285
SELECT 23 AS col1, COUNT( * ) FROM tab2 cor0
----
23
3

skipif mysql # not compatible
query II rowsort label-4285
SELECT 23 AS col1, COUNT ( * ) FROM tab2 cor0
----
23
3

query I rowsort
SELECT ALL col0 + ( + - col2 ) FROM tab1 AS cor0
----
-45
23
26

onlyif mysql # DIV for integer division: 
query I rowsort label-4287
SELECT - 87 + col1 DIV col1 * 4 AS col1 FROM tab0 AS cor0
----
-83
-83
-83

skipif mysql # not compatible
query I rowsort label-4287
SELECT - 87 + col1 / col1 * 4 AS col1 FROM tab0 AS cor0
----
-83
-83
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-4288
SELECT COUNT( * ) + 76 AS col0 FROM tab0 AS cor0
----
79

skipif mysql # not compatible
query I rowsort label-4288
SELECT COUNT ( * ) + 76 AS col0 FROM tab0 AS cor0
----
79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4289
SELECT - CAST( - 67 AS SIGNED ) + + 99 + + + 48 AS col0 FROM tab0 AS cor0
----
214
214
214

skipif mysql # not compatible
query I rowsort label-4289
SELECT - CAST ( - 67 AS INTEGER ) + + 99 + + + 48 AS col0 FROM tab0 AS cor0
----
214
214
214

query I rowsort
SELECT DISTINCT + 2 + 12 FROM tab1 AS cor0
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-4291
SELECT ALL + - COUNT( * ) + 70 FROM tab2 AS cor0
----
67

skipif mysql # not compatible
query I rowsort label-4291
SELECT ALL + - COUNT ( * ) + 70 FROM tab2 AS cor0
----
67

query I rowsort
SELECT ALL + - col1 * col2 + - col0 - + + col2 FROM tab0 AS cor0
----
-295
-307
-3869

query I rowsort
SELECT ALL - 33 + 63 * + 92 AS col2 FROM tab0
----
5763
5763
5763

query I rowsort
SELECT ALL - col1 * - 85 * - col1 FROM tab1
----
-16660
-187765
-2125

query I rowsort
SELECT + 21 + - 2 + + - col1 FROM tab0
----
-2
-62
18

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-4296
SELECT * FROM tab0 WHERE ( NULL ) <= CAST( NULL AS DECIMAL ) + + CAST( - col2 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-4296
SELECT * FROM tab0 WHERE ( NULL ) <= CAST ( NULL AS REAL ) + + CAST ( - col2 AS INTEGER )
----

query I rowsort
SELECT - col1 FROM tab2 WHERE + col0 NOT IN ( col0, 78 )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - 60 IS NOT NULL
----

query I rowsort
SELECT DISTINCT col2 * - + ( - - 25 ) AS col2 FROM tab0
----
-1175
-2475
-250

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4300
SELECT 59 - - + COUNT( * ) + - - 75 * - - 14 + - COUNT( * ) + + CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4300
SELECT 59 - - + COUNT ( * ) + - - 75 * - - 14 + - COUNT ( * ) + + CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL

query II rowsort
SELECT ALL + col0, col0 / + col0 + col2 AS col1 FROM tab2 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT DISTINCT + col1 AS col2, + ( - col1 ) AS col2 FROM tab2 AS cor0
----
51
-51
67
-67
77
-77

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL IS NULL OR NULL > NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4304
SELECT + - col1 * + - col1 + - CAST( - - ( - col0 ) AS SIGNED ) FROM tab2 AS cor0
----
2647
4564
5993

skipif mysql # not compatible
query I rowsort label-4304
SELECT + - col1 * + - col1 + - CAST ( - - ( - col0 ) AS INTEGER ) FROM tab2 AS cor0
----
2647
4564
5993

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col1 * + col2 - - col1 <= NULL
----

query I rowsort
SELECT DISTINCT - ( 65 ) FROM tab0
----
-65

query I rowsort
SELECT + col1 * + col1 * + - col1 * 36 FROM tab0
----
-19131876
-333396
-36

onlyif mysql # DIV for integer division: 
query I rowsort label-4308
SELECT ALL col0 DIV 51 FROM tab2
----
0
1
1

skipif mysql # not compatible
query I rowsort label-4308
SELECT ALL col0 / 51 FROM tab2
----
0
1
1

onlyif mysql # aggregate syntax: 
query II rowsort label-4309
SELECT 60, - COUNT( * ) * + 26 * COUNT( - ( col1 ) ) AS col1 FROM tab1
----
60
-234

skipif mysql # not compatible
query II rowsort label-4309
SELECT 60, - COUNT ( * ) * + 26 * COUNT ( - ( col1 ) ) AS col1 FROM tab1
----
60
-234

query I rowsort
SELECT ALL - col2 * + - col0 AS col2 FROM tab0
----
705
870
9603

query II rowsort
SELECT DISTINCT col2 AS col1, 36 FROM tab2
----
23
36
40
36
58
36

onlyif mysql # aggregate syntax: 
query II rowsort label-4312
SELECT COUNT( * ) AS col2, 78 FROM tab1
----
3
78

skipif mysql # not compatible
query II rowsort label-4312
SELECT COUNT ( * ) AS col2, 78 FROM tab1
----
3
78

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - 61 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT - col1 AS col1, - col1 + col1 FROM tab0
----
-1
0
-21
0
-81
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4315
SELECT DISTINCT + 96 AS col1, COUNT( DISTINCT + + col0 ) FROM tab2 AS cor0
----
96
3

skipif mysql # not compatible
query II rowsort label-4315
SELECT DISTINCT + 96 AS col1, COUNT ( DISTINCT + + col0 ) FROM tab2 AS cor0
----
96
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4316
SELECT DISTINCT + + COUNT( + 95 ) col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4316
SELECT DISTINCT + + COUNT ( + 95 ) col0 FROM tab1 AS cor0
----
3

query I rowsort
SELECT + - 58 * - ( + + 11 ) + - col2 AS col0 FROM tab2 WHERE + col1 * - col2 IS NOT NULL
----
580
598
615

query I rowsort
SELECT - col0 + + - col0 * + + col1 - + col1 + col2 * - col2 AS col1 FROM tab1
----
-3996
-9039
-9995

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4319
SELECT - col1 * - + CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) + + 24 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4319
SELECT - col1 * - + CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) + + 24 AS col2 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 WHERE col2 IN ( + 99 * + 62, - col1 + - - col2, + 14 - - - col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL BETWEEN col2 AND col0
----

query I rowsort
SELECT DISTINCT ( 86 ) + 5 FROM tab0 AS cor0
----
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4323
SELECT ALL + col1 + - col1 * CAST( NULL AS SIGNED ) * - col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4323
SELECT ALL + col1 + - col1 * CAST ( NULL AS INTEGER ) * - col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4324
SELECT + + CAST( NULL AS SIGNED ) * + CAST( - col1 AS SIGNED ) FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4324
SELECT + + CAST ( NULL AS INTEGER ) * + CAST ( - col1 AS INTEGER ) FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ( + + col2 ) AS col1 FROM tab1
----
59
68
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4326
SELECT col0 - + CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4326
SELECT col0 - + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT - 81 - - col0 FROM tab0
----
-66
16
6

query I rowsort
SELECT + 47 - - - 40 FROM tab1
----
7
7
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 - + + ( + 54 ) col1 FROM tab2
----
-8
10
21

query I rowsort
SELECT ALL col0 * - 14 FROM tab1
----
-1190
-1274
-714

query I rowsort
SELECT ALL - col1 + - 20 FROM tab2 AS cor0
----
-71
-87
-97

onlyif mysql # DIV for integer division: 
query II rowsort label-4332
SELECT ALL + col1, - col2 DIV 84 FROM tab1 AS cor0
----
14
-1
47
0
5
0

skipif mysql # not compatible
query II rowsort label-4332
SELECT ALL + col1, - col2 / 84 FROM tab1 AS cor0
----
14
-1
47
0
5
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4333
SELECT DISTINCT + + COUNT( DISTINCT + + col1 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4333
SELECT DISTINCT + + COUNT ( DISTINCT + + col1 ) FROM tab0 AS cor0
----
3

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN + 69 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4335
SELECT MAX( col0 ) AS col1 FROM tab2 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-4335
SELECT MAX ( col0 ) AS col1 FROM tab2 AS cor0
----
75

onlyif mysql # DIV for integer division: 
query I rowsort label-4336
SELECT + col2 * - col2 DIV - + col2 FROM tab1 cor0
----
59
68
96

skipif mysql # not compatible
query I rowsort label-4336
SELECT + col2 * - col2 / - + col2 FROM tab1 cor0
----
59
68
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4337
SELECT DISTINCT ( - + CAST( NULL AS SIGNED ) ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4337
SELECT DISTINCT ( - + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE NOT + 11 * - 60 * - 56 / - col2 NOT BETWEEN NULL AND + col2
----

query I rowsort
SELECT - 18 FROM tab0 WHERE NOT + col1 IN ( + + 66 - 17 )
----
-18
-18
-18

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 0 col1 FROM tab1
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4341
SELECT DISTINCT 17 DIV - 89 * - col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-4341
SELECT DISTINCT 17 / - 89 * - col1 FROM tab2
----
0

query I rowsort
SELECT + col1 + col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
117
125
74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4343
SELECT - COUNT( * ) * + - CAST( NULL AS DECIMAL ) + - - COUNT( * ) * - COUNT( * ) AS col1 FROM tab1 WHERE NOT + - 79 * - + CAST( NULL AS SIGNED ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4343
SELECT - COUNT ( * ) * + - CAST ( NULL AS REAL ) + - - COUNT ( * ) * - COUNT ( * ) AS col1 FROM tab1 WHERE NOT + - 79 * - + CAST ( NULL AS INTEGER ) IS NULL
----
NULL

query II rowsort
SELECT ALL - 81, 55 AS col1 FROM tab2
----
-81
55
-81
55
-81
55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4345
SELECT MIN( - CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4345
SELECT MIN ( - CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL < - col0 * - col0
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col2 * 34 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 * - col2 + 78 - + + ( + col0 ) * - col2, + col1 col1 FROM tab0 AS cor0
----
-3024
81
738
21
9582
1

query I rowsort
SELECT - + col2 + + col0 + + + col0 AS col1 FROM tab1 AS cor0
----
111
114
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4350
SELECT ALL + + col1 + + - ( - col2 ) + + 51 * - - CAST( + col0 AS SIGNED ) + + - 52 FROM tab2 AS cor0
----
2368
3329
3898

skipif mysql # not compatible
query I rowsort label-4350
SELECT ALL + + col1 + + - ( - col2 ) + + 51 * - - CAST ( + col0 AS INTEGER ) + + - 52 FROM tab2 AS cor0
----
2368
3329
3898

query II rowsort
SELECT DISTINCT col2, + 29 FROM tab2 AS cor0
----
23
29
40
29
58
29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4352
SELECT + + CAST( NULL AS SIGNED ) + + + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4352
SELECT + + CAST ( NULL AS INTEGER ) + + + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col2 FROM tab2 AS cor0 WHERE NULL < ( - - 31 ) + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4354
SELECT ALL - 37 + COUNT( * ) AS col2 FROM tab2 AS cor0
----
-34

skipif mysql # not compatible
query I rowsort label-4354
SELECT ALL - 37 + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-34

query I rowsort
SELECT DISTINCT + + col1 + + 66 FROM tab1 AS cor0
----
113
71
80

query I rowsort
SELECT ALL - col0 + + - col1 * col0 AS col1 FROM tab0 AS cor0
----
-1230
-1914
-194

query I rowsort
SELECT DISTINCT + col2 - + 76 AS col0 FROM tab2
----
-18
-36
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-4358
SELECT ALL + 4 * - 29 - - + ( COUNT( * ) ) AS col1 FROM tab0
----
-113

skipif mysql # not compatible
query I rowsort label-4358
SELECT ALL + 4 * - 29 - - + ( COUNT ( * ) ) AS col1 FROM tab0
----
-113

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + + col1 >= + 84
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + - col1 * + col2 + - - col2 + - col0 + - col1 FROM tab0 AS cor0
----
-308
-3856
-98

query I rowsort
SELECT - col0 * + ( + 74 ) FROM tab0 AS cor0
----
-1110
-6438
-7178

onlyif mysql # DIV for integer division: 
query II rowsort label-4362
SELECT col1, + col1 DIV + ( - col0 ) AS col1 FROM tab0
----
1
0
21
0
81
-5

skipif mysql # not compatible
query II rowsort label-4362
SELECT col1, + col1 / + ( - col0 ) AS col1 FROM tab0
----
1
0
21
0
81
-5

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-4363
SELECT col2 AS col0, - CAST( NULL AS DECIMAL ) * + 32 - + col0 * + CAST( + 90 AS SIGNED ) * - col0 - col2 / + col0 + - + 14 FROM tab1
----
59
NULL
68
NULL
96
NULL

skipif mysql # not compatible
query II rowsort label-4363
SELECT col2 AS col0, - CAST ( NULL AS REAL ) * + 32 - + col0 * + CAST ( + 90 AS INTEGER ) * - col0 - col2 / + col0 + - + 14 FROM tab1
----
59
NULL
68
NULL
96
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4364
SELECT + + COUNT( - col0 ) AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4364
SELECT + + COUNT ( - col0 ) AS col2 FROM tab2 AS cor0
----
3

query I rowsort
SELECT DISTINCT - + 8 * 13 FROM tab0 cor0
----
-104

onlyif mysql # DIV for integer division: 
query I rowsort label-4366
SELECT DISTINCT - - 12 DIV + - col2 - + + col2 FROM tab0 AS cor0
----
-11
-47
-99

skipif mysql # not compatible
query I rowsort label-4366
SELECT DISTINCT - - 12 / + - col2 - + + col2 FROM tab0 AS cor0
----
-11
-47
-99

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col2 + - + 35 * col0 <> - - col2 * + ( 15 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND 77
----

query I rowsort
SELECT DISTINCT + ( 46 ) / + - 9 AS col1 FROM tab0 WHERE NOT - col2 + - - col2 + col1 * 54 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4370
SELECT - COUNT( ALL - - col2 ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-4370
SELECT - COUNT ( ALL - - col2 ) FROM tab2
----
-3

query I rowsort
SELECT + 35 * + col0 AS col1 FROM tab2
----
1610
2240
2625

onlyif mysql # DIV for integer division: 
query I rowsort label-4372
SELECT - col1 DIV + 99 AS col0 FROM tab2 WHERE NOT - - col2 * - 73 IS NULL
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4372
SELECT - col1 / + 99 AS col0 FROM tab2 WHERE NOT - - col2 * - 73 IS NULL
----
0
0
0

query I rowsort
SELECT ( - + col0 ) * - + col1 FROM tab0
----
1215
1827
97

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4374
SELECT - CAST( + CAST( 61 AS DECIMAL ) AS SIGNED ) col0 FROM tab2
----
-61
-61
-61

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4374
SELECT - CAST ( + CAST ( 61 AS REAL ) AS INTEGER ) col0 FROM tab2
----
-61
-61
-61

query I rowsort
SELECT 76 * - col0 FROM tab0
----
-1140
-6612
-7372

onlyif mysql # aggregate syntax: 
query I rowsort label-4376
SELECT DISTINCT + COUNT( * ) + + 1 + + COUNT( * ) AS col1 FROM tab0 AS cor0
----
7

skipif mysql # not compatible
query I rowsort label-4376
SELECT DISTINCT + COUNT ( * ) + + 1 + + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-4377
SELECT + + COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE + col2 / + col0 BETWEEN NULL AND ( - + 15 )
----
0

skipif mysql # not compatible
query I rowsort label-4377
SELECT + + COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE + col2 / + col0 BETWEEN NULL AND ( - + 15 )
----
0

query I rowsort
SELECT DISTINCT + - 51 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-51

query I rowsort
SELECT - 33 + - col1 FROM tab0
----
-114
-34
-54

query II rowsort
SELECT ALL col2 AS col0, + col2 + - col1 FROM tab0
----
10
-11
47
-34
99
98

onlyif mysql # aggregate syntax: 
query I rowsort label-4381
SELECT DISTINCT + ( MIN( ALL - col0 ) ) + COUNT( * ) FROM tab0 AS cor0
----
-94

skipif mysql # not compatible
query I rowsort label-4381
SELECT DISTINCT + ( MIN ( ALL - col0 ) ) + COUNT ( * ) FROM tab0 AS cor0
----
-94

query I rowsort
SELECT DISTINCT - col2 + + 85 AS col1 FROM tab0 AS cor0
----
-14
38
75

query I rowsort
SELECT col1 - 73 FROM tab2 cor0 WHERE ( NULL ) IS NULL
----
-22
-6
4

query I rowsort
SELECT - + AVG ( + col2 ) FROM tab1 WHERE col0 IS NULL
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4385
SELECT 27 DIV COUNT( DISTINCT + col2 ) - - 46 FROM tab1
----
55

skipif mysql # not compatible
query I rowsort label-4385
SELECT 27 / COUNT ( DISTINCT + col2 ) - - 46 FROM tab1
----
55

onlyif mysql # aggregate syntax: 
query II rowsort label-4386
SELECT DISTINCT - COUNT( * ) - + - 42 AS col2, + COUNT( * ) FROM tab2
----
39
3

skipif mysql # not compatible
query II rowsort label-4386
SELECT DISTINCT - COUNT ( * ) - + - 42 AS col2, + COUNT ( * ) FROM tab2
----
39
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4387
SELECT - + SUM( ALL + 23 ) FROM tab1 WHERE 50 * + col0 IS NOT NULL
----
-69

skipif mysql # not compatible
query I rowsort label-4387
SELECT - + SUM ( ALL + 23 ) FROM tab1 WHERE 50 * + col0 IS NOT NULL
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-4388
SELECT - COUNT( * ) + - + 65 AS col2 FROM tab2
----
-68

skipif mysql # not compatible
query I rowsort label-4388
SELECT - COUNT ( * ) + - + 65 AS col2 FROM tab2
----
-68

query I rowsort
SELECT + + col0 FROM tab0 WHERE + col1 IS NOT NULL
----
15
87
97

query III rowsort
SELECT * FROM tab2 WHERE - col0 - col2 < NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 48 * + col0 col0 FROM tab1 WHERE col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4392
SELECT DISTINCT COUNT( + 2 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-4392
SELECT DISTINCT COUNT ( + 2 ) FROM tab1
----
3

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL NOT BETWEEN 44 / + 33 AND NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col2 / + col2 = NULL
----

query II rowsort
SELECT - col0 AS col0, - ( - col2 ) AS col2 FROM tab0 AS cor0
----
-15
47
-87
10
-97
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4396
SELECT ALL + + COUNT( * ) * - + 11 - COUNT( * ) AS col1 FROM tab0 AS cor0
----
-36

skipif mysql # not compatible
query I rowsort label-4396
SELECT ALL + + COUNT ( * ) * - + 11 - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-36

query I rowsort
SELECT ALL + 3 + 92 FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to e57d8ed879dfd04d04aae87725c970d3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4398
SELECT DISTINCT * FROM tab0 WHERE - 74 + - 41 BETWEEN NULL AND + + col2 * + + 96 / + - ( - CAST( NULL AS SIGNED ) ) * col1
----

skipif mysql # not compatible
query III rowsort label-4398
SELECT DISTINCT * FROM tab0 WHERE - 74 + - 41 BETWEEN NULL AND + + col2 * + + 96 / + - ( - CAST ( NULL AS INTEGER ) ) * col1
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( 30 IS NULL )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN 83 AND + ( col0 ) * - + col2 * col1
----

query I rowsort
SELECT DISTINCT - 99 AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) = - + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4402
SELECT DISTINCT - COUNT( * ) + COUNT( * ) + - SUM( col2 ) FROM tab2 AS cor0
----
-121

skipif mysql # not compatible
query I rowsort label-4402
SELECT DISTINCT - COUNT ( * ) + COUNT ( * ) + - SUM ( col2 ) FROM tab2 AS cor0
----
-121

query I rowsort
SELECT col1 * - - col1 FROM tab0 AS cor0
----
1
441
6561

query I rowsort
SELECT DISTINCT + 53 + - - 39 * col1 AS col0 FROM tab1 AS cor0
----
1886
248
599

query I rowsort
SELECT - + col2 FROM tab1 cor0 WHERE NOT + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4406
SELECT ALL - + 93 * + SUM( col2 ) FROM tab1 AS cor0
----
-20739

skipif mysql # not compatible
query I rowsort label-4406
SELECT ALL - + 93 * + SUM ( col2 ) FROM tab1 AS cor0
----
-20739

query I rowsort
SELECT ALL + + col1 AS col1 FROM tab0 AS cor0 WHERE NOT col2 IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4408
SELECT * FROM tab1 AS cor0 WHERE NOT col2 IN ( + + 42, col2 * - - CAST( + ( + CAST( NULL AS DECIMAL ) ) AS DECIMAL ) - col1 / - col1, + + ( + col2 ) + ( - - CAST( - - col2 AS DECIMAL ) ) )
----

skipif mysql # not compatible
query III rowsort label-4408
SELECT * FROM tab1 AS cor0 WHERE NOT col2 IN ( + + 42, col2 * - - CAST ( + ( + CAST ( NULL AS REAL ) ) AS REAL ) - col1 / - col1, + + ( + col2 ) + ( - - CAST ( - - col2 AS REAL ) ) )
----

query I rowsort
SELECT DISTINCT + col0 AS col0 FROM tab0 WHERE - col2 NOT BETWEEN + + col0 AND NULL
----
15
87
97

query III rowsort
SELECT * FROM tab2 WHERE NULL < + 0 * - col1 - + col2
----

query III rowsort
SELECT * FROM tab2 WHERE + - col0 < 60 - - + 58 + 49
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4412
SELECT ALL - COUNT( * ) AS col1 FROM tab2 WHERE 77 >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-4412
SELECT ALL - COUNT ( * ) AS col1 FROM tab2 WHERE 77 >= NULL
----
0

query I rowsort
SELECT + ( - + col2 ) + - + 9 AS col1 FROM tab2
----
-32
-49
-67

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col0 * - - col1 * 57 + 50 NOT BETWEEN col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4415
SELECT DISTINCT - SUM( 42 ) * 54 FROM tab2 AS cor0
----
-6804

skipif mysql # not compatible
query I rowsort label-4415
SELECT DISTINCT - SUM ( 42 ) * 54 FROM tab2 AS cor0
----
-6804

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NOT + 75 + + col2 + + - col2 IS NOT NULL )
----

query I rowsort
SELECT DISTINCT + + col2 + - 76 FROM tab0 AS cor0
----
-29
-66
23

query II rowsort
SELECT - + 10 AS col1, col1 AS col1 FROM tab2 AS cor0
----
-10
51
-10
67
-10
77

onlyif mysql # aggregate syntax: 
query I rowsort label-4419
SELECT ALL - + COUNT( * ) FROM tab1 WHERE NOT + - 92 + + - col2 * - col0 * + col0 * col0 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-4419
SELECT ALL - + COUNT ( * ) FROM tab1 WHERE NOT + - 92 + + - col2 * - col0 * + col0 * col0 IS NULL
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4420
SELECT DISTINCT 12 * + ( + COUNT( * ) ) FROM tab2
----
36

skipif mysql # not compatible
query I rowsort label-4420
SELECT DISTINCT 12 * + ( + COUNT ( * ) ) FROM tab2
----
36

query I rowsort
SELECT col1 + + 34 FROM tab0
----
115
35
55

query I rowsort
SELECT - 78 + + - col0 FROM tab0 AS cor0
----
-165
-175
-93

query I rowsort
SELECT + ( + 22 ) * - ( + col0 ) + col0 FROM tab2 AS cor0
----
-1344
-1575
-966

query I rowsort
SELECT col2 + - ( - - col0 ) * + 21 - col1 AS col2 FROM tab2 AS cor0
----
-1381
-1584
-994

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 32 + - - 16 col1 FROM tab0 AS cor0
----
48
48
48

onlyif mysql # DIV for integer division: 
query I rowsort label-4426
SELECT DISTINCT + 29 DIV col1 AS col2 FROM tab1 AS cor0
----
0
2
5

skipif mysql # not compatible
query I rowsort label-4426
SELECT DISTINCT + 29 / col1 AS col2 FROM tab1 AS cor0
----
0
2
5

onlyif mysql # aggregate syntax: 
query I rowsort label-4427
SELECT + - MAX( col2 ) col2 FROM tab0 AS cor0 WHERE 48 IS NOT NULL
----
-99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4427
SELECT + - MAX ( col2 ) col2 FROM tab0 AS cor0 WHERE 48 IS NOT NULL
----
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-4428
SELECT 48 DIV - 55 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4428
SELECT 48 / - 55 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT - col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) = NULL
----

query I rowsort
SELECT - 16 * col0 AS col2 FROM tab1
----
-1360
-1456
-816

onlyif mysql # aggregate syntax: 
query I rowsort label-4431
SELECT - + COUNT( * ) * MAX( - col2 ) FROM tab2 AS cor0
----
69

skipif mysql # not compatible
query I rowsort label-4431
SELECT - + COUNT ( * ) * MAX ( - col2 ) FROM tab2 AS cor0
----
69

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col1 * + col0 > 17
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4433
SELECT COUNT( DISTINCT - 33 ) AS col2 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-4433
SELECT COUNT ( DISTINCT - 33 ) AS col2 FROM tab2
----
1

query I rowsort
SELECT - col1 + + 6 * + col0 * + col1 FROM tab1 AS cor0
----
2545
25615
4270

query I rowsort
SELECT ALL col1 * + col1 + col0 AS col2 FROM tab0 AS cor0
----
528
6576
98

query I rowsort
SELECT ALL col1 * 26 * - col1 AS col1 FROM tab1 AS cor0
----
-5096
-57434
-650

query II rowsort
SELECT + col2, - 99 FROM tab1 AS cor0
----
59
-99
68
-99
96
-99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + + col2 col0 FROM tab1 AS cor0
----
110
115
64

onlyif mysql # aggregate syntax: 
query I rowsort label-4439
SELECT DISTINCT + 85 + + COUNT( * ) AS col2 FROM tab0 cor0
----
88

skipif mysql # not compatible
query I rowsort label-4439
SELECT DISTINCT + 85 + + COUNT ( * ) AS col2 FROM tab0 cor0
----
88

query I rowsort
SELECT ALL + - col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) <= - 85 * - + 20
----

query I rowsort
SELECT 92 + col0 AS col0 FROM tab2 cor0 WHERE - 40 * + col2 >= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NULL ) >= + col2 / - 59
----

query I rowsort
SELECT col1 * + 82 AS col1 FROM tab1
----
1148
3854
410

onlyif mysql # aggregate syntax: 
query I rowsort label-4444
SELECT DISTINCT + - SUM( + col0 ) FROM tab0 WHERE NOT NULL IS NOT NULL
----
-199

skipif mysql # not compatible
query I rowsort label-4444
SELECT DISTINCT + - SUM ( + col0 ) FROM tab0 WHERE NOT NULL IS NOT NULL
----
-199

query I rowsort
SELECT DISTINCT + 45 * 35 AS col1 FROM tab2
----
1575

query I rowsort
SELECT + ( - col1 ) * col0 * col0 FROM tab2
----
-107916
-315392
-376875

query I rowsort
SELECT 35 * - 51 AS col2 FROM tab2
----
-1785
-1785
-1785

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 99 col1 FROM tab1 AS cor0
----
-99

query I rowsort
SELECT - - col0 * col1 + + 97 FROM tab2 AS cor0
----
2443
5025
5122

query I rowsort
SELECT ALL 94 * + - col0 FROM tab0
----
-1410
-8178
-9118

onlyif mysql # aggregate syntax: 
query I rowsort label-4451
SELECT + - COUNT( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
-9

skipif mysql # not compatible
query I rowsort label-4451
SELECT + - COUNT ( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-4452
SELECT DISTINCT COUNT( * ) + - + 7 AS col1 FROM tab0
----
-4

skipif mysql # not compatible
query I rowsort label-4452
SELECT DISTINCT COUNT ( * ) + - + 7 AS col1 FROM tab0
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-4453
SELECT ALL MIN( 24 ) AS col1 FROM tab2 AS cor0
----
24

skipif mysql # not compatible
query I rowsort label-4453
SELECT ALL MIN ( 24 ) AS col1 FROM tab2 AS cor0
----
24

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 65 col0 FROM tab2 AS cor0
----
-65
-65
-65

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col2 IS NULL OR - 14 + + col0 + col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-4456
SELECT ALL - 44 DIV + col2 AS col1 FROM tab0
----
-4
0
0

skipif mysql # not compatible
query I rowsort label-4456
SELECT ALL - 44 / + col2 AS col1 FROM tab0
----
-4
0
0

query III rowsort
SELECT * FROM tab0 WHERE NOT + 6 - 63 + + 7 IS NOT NULL
----

query I rowsort
SELECT - + 7 * 95 * col0 + col0 AS col2 FROM tab2 AS cor0
----
-30544
-42496
-49800

onlyif mysql # aggregate syntax: 
query I rowsort label-4459
SELECT ALL - SUM( + - col1 ) AS col2 FROM tab1
----
66

skipif mysql # not compatible
query I rowsort label-4459
SELECT ALL - SUM ( + - col1 ) AS col2 FROM tab1
----
66

query I rowsort
SELECT DISTINCT - 7 + - - col1 AS col0 FROM tab0
----
-6
14
74

query II rowsort
SELECT - 86, col1 FROM tab0
----
-86
1
-86
21
-86
81

query I rowsort
SELECT DISTINCT col2 + 13 FROM tab2 AS cor0
----
36
53
71

onlyif mysql # aggregate syntax: 
query I rowsort label-4463
SELECT ALL + - SUM( + 74 ) FROM tab0 AS cor0
----
-222

skipif mysql # not compatible
query I rowsort label-4463
SELECT ALL + - SUM ( + 74 ) FROM tab0 AS cor0
----
-222

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4464
SELECT DISTINCT + + col1 + - CAST( + - ( - + col0 ) AS SIGNED ) + - 49 + - - 39 + + col0 FROM tab2 AS cor0
----
41
57
67

skipif mysql # not compatible
query I rowsort label-4464
SELECT DISTINCT + + col1 + - CAST ( + - ( - + col0 ) AS INTEGER ) + - 49 + - - 39 + + col0 FROM tab2 AS cor0
----
41
57
67

query I rowsort
SELECT - col1 + col2 * - col0 AS col2 FROM tab1
----
-4910
-5020
-6235

onlyif mysql # aggregate syntax: 
query I rowsort label-4466
SELECT + SUM( col2 ) * - + COUNT( * ) * - + 83 AS col1 FROM tab1
----
55527

skipif mysql # not compatible
query I rowsort label-4466
SELECT + SUM ( col2 ) * - + COUNT ( * ) * - + 83 AS col1 FROM tab1
----
55527

onlyif mysql # aggregate syntax: 
query I rowsort label-4467
SELECT + + MAX( ALL + 67 ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
67

skipif mysql # not compatible
query I rowsort label-4467
SELECT + + MAX ( ALL + 67 ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
67

query I rowsort
SELECT - col2 FROM tab1 WHERE NOT + col0 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4469
SELECT col2 * - col1 / + 28 - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4469
SELECT col2 * - col1 / + 28 - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - - ( col2 ), + col2 col2 FROM tab2 AS cor0
----
23
23
40
40
58
58

query I rowsort
SELECT DISTINCT - 44 * + - ( - - ( + + col0 ) ) FROM tab0 AS cor0
----
3828
4268
660

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4472
SELECT + CAST( 19 AS SIGNED ), col1 * - col1 col2 FROM tab0 AS cor0
----
19
-1
19
-441
19
-6561

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4472
SELECT + CAST ( 19 AS INTEGER ), col1 * - col1 col2 FROM tab0 AS cor0
----
19
-1
19
-441
19
-6561

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT + col1 * - 96 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col0 * + + ( + + col0 ) + col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - 85 * 98 * + col1 AS col2 FROM tab2 AS cor0
----
-424830
-558110
-641410

onlyif mysql # DIV for integer division: 
query I rowsort label-4476
SELECT ALL 9 DIV + col1 col1 FROM tab1 cor0
----
0
0
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4476
SELECT ALL 9 / + col1 col1 FROM tab1 cor0
----
0
0
1

query II rowsort
SELECT ALL col0 * + + ( + col0 ), col0 FROM tab0
----
225
15
7569
87
9409
97

query I rowsort
SELECT - ( 68 ) * - + col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
1564
2720
3944

query I rowsort
SELECT DISTINCT + 83 * - col2 FROM tab2
----
-1909
-3320
-4814

query I rowsort
SELECT DISTINCT ( - 5 ) AS col2 FROM tab1
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-4481
SELECT + + SUM( DISTINCT + col1 ) AS col2 FROM tab1 WHERE NOT 18 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4481
SELECT + + SUM ( DISTINCT + col1 ) AS col2 FROM tab1 WHERE NOT 18 IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query III rowsort label-4482
SELECT + 4 AS col0, 96 * + MAX( DISTINCT - + col0 ), + 58 AS col2 FROM tab1
----
4
-4896
58

skipif mysql # not compatible
query III rowsort label-4482
SELECT + 4 AS col0, 96 * + MAX ( DISTINCT - + col0 ), + 58 AS col2 FROM tab1
----
4
-4896
58

onlyif mysql # aggregate syntax: 
query I rowsort label-4483
SELECT ALL + SUM( ALL + + ( col1 ) ) FROM tab0
----
103

skipif mysql # not compatible
query I rowsort label-4483
SELECT ALL + SUM ( ALL + + ( col1 ) ) FROM tab0
----
103

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 27 NOT BETWEEN NULL AND ( + col2 )
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col1 * + + 60 * - 19 - - col1 IN ( - 62, + col0 + + col2 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4486
SELECT - ( + COUNT( DISTINCT + 26 ) ) AS col0, 39 AS col1 FROM tab1 AS cor0
----
-1
39

skipif mysql # not compatible
query II rowsort label-4486
SELECT - ( + COUNT ( DISTINCT + 26 ) ) AS col0, 39 AS col1 FROM tab1 AS cor0
----
-1
39

query I rowsort
SELECT ALL + 71 * - 48 FROM tab0 AS cor0
----
-3408
-3408
-3408

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4488
SELECT ALL - + 88 + COUNT( * ) AS col0, COUNT( * ) / - CAST( NULL AS SIGNED ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-79
NULL

skipif mysql # not compatible
query II rowsort label-4488
SELECT ALL - + 88 + COUNT ( * ) AS col0, COUNT ( * ) / - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-79
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4489
SELECT DISTINCT col1 * - + col0 / + CAST( NULL AS SIGNED ) + - + col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4489
SELECT DISTINCT col1 * - + col0 / + CAST ( NULL AS INTEGER ) + - + col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - col1 + + col0 * - + 56 AS col1 FROM tab1 cor0
----
-2870
-4765
-5143

onlyif mysql # aggregate syntax: 
query I rowsort label-4491
SELECT - MIN( DISTINCT + + 44 ) AS col1 FROM tab0 AS cor0
----
-44

skipif mysql # not compatible
query I rowsort label-4491
SELECT - MIN ( DISTINCT + + 44 ) AS col1 FROM tab0 AS cor0
----
-44

query I rowsort
SELECT - col1 * - col1 + - 87 + + - col1 FROM tab0 AS cor0
----
-87
333
6393

onlyif mysql # aggregate syntax: 
query II rowsort label-4493
SELECT 62 col1, - COUNT( ALL + col1 ) FROM tab0
----
62
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4493
SELECT 62 col1, - COUNT ( ALL + col1 ) FROM tab0
----
62
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4494
SELECT DISTINCT - SUM( + col0 ) - MIN( ALL col2 ) FROM tab2
----
-208

skipif mysql # not compatible
query I rowsort label-4494
SELECT DISTINCT - SUM ( + col0 ) - MIN ( ALL col2 ) FROM tab2
----
-208

query I rowsort
SELECT ALL col1 + - 14 AS col2 FROM tab2
----
37
53
63

onlyif mysql # aggregate syntax: 
query I rowsort label-4496
SELECT COUNT( * ) + - 37 AS col2 FROM tab2
----
-34

skipif mysql # not compatible
query I rowsort label-4496
SELECT COUNT ( * ) + - 37 AS col2 FROM tab2
----
-34

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - 7 * col1 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( - 11 + + - col0 - 27 * - col2 <= NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4499
SELECT ALL MIN( DISTINCT col0 ) AS col2 FROM tab1
----
51

skipif mysql # not compatible
query I rowsort label-4499
SELECT ALL MIN ( DISTINCT col0 ) AS col2 FROM tab1
----
51

query I rowsort
SELECT DISTINCT - ( + col2 ) * 78 FROM tab2 cor0
----
-1794
-3120
-4524

onlyif mysql # aggregate syntax: 
query I rowsort label-4501
SELECT DISTINCT + 67 * - COUNT( * ) AS col2 FROM tab0 AS cor0
----
-201

skipif mysql # not compatible
query I rowsort label-4501
SELECT DISTINCT + 67 * - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-201

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + col0 + - + col2 * + 41 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT ( + 37 / + col2 ) NOT BETWEEN col0 + - col1 AND - + 91
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4504
SELECT 64 AS col0, COUNT( * ) FROM tab1 AS cor0
----
64
3

skipif mysql # not compatible
query II rowsort label-4504
SELECT 64 AS col0, COUNT ( * ) FROM tab1 AS cor0
----
64
3

onlyif mysql # aggregate syntax: 
query II rowsort label-4505
SELECT DISTINCT - COUNT( * ) AS col1, - 84 AS col0 FROM tab1 AS cor0
----
-3
-84

skipif mysql # not compatible
query II rowsort label-4505
SELECT DISTINCT - COUNT ( * ) AS col1, - 84 AS col0 FROM tab1 AS cor0
----
-3
-84

query I rowsort
SELECT ALL col1 * - + ( 84 ) FROM tab2
----
-4284
-5628
-6468

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4507
SELECT * FROM tab2 WHERE NOT - ( + ( - col0 ) ) * col1 * - + CAST( col1 AS SIGNED ) + + col2 * col0 * col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-4507
SELECT * FROM tab2 WHERE NOT - ( + ( - col0 ) ) * col1 * - + CAST ( col1 AS INTEGER ) + + col2 * col0 * col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4508
SELECT 57 * + CAST( NULL AS SIGNED ) AS col0, col2 * - 3 FROM tab1
----
NULL
-177
NULL
-204
NULL
-288

skipif mysql # not compatible
query II rowsort label-4508
SELECT 57 * + CAST ( NULL AS INTEGER ) AS col0, col2 * - 3 FROM tab1
----
NULL
-177
NULL
-204
NULL
-288

query I rowsort
SELECT DISTINCT + ( col0 ) * - 54 FROM tab2
----
-2484
-3456
-4050

query II rowsort
SELECT 36 * + - col1 + + + col0, col2 AS col1 FROM tab2 AS cor0
----
-1790
23
-2337
58
-2708
40

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN col0 * 29 AND 85
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4512
SELECT COUNT( + 26 ) AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4512
SELECT COUNT ( + 26 ) AS col2 FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4513
SELECT + 59 DIV COUNT( * ) AS col2 FROM tab2
----
19

skipif mysql # not compatible
query I rowsort label-4513
SELECT + 59 / COUNT ( * ) AS col2 FROM tab2
----
19

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL BETWEEN 1 * 72 + + - col0 AND - col1 * - 79 + col1 * 93
----

query I rowsort
SELECT DISTINCT + col1 * col2 + col1 + - 35 AS col1 FROM tab1 AS cor0
----
1323
265
3208

onlyif mysql # DIV for integer division: 
query I rowsort label-4516
SELECT ALL 77 DIV + col0 + + col1 + + col0 + 90 FROM tab1 AS cor0
----
156
180
228

skipif mysql # not compatible
query I rowsort label-4516
SELECT ALL 77 / + col0 + + col1 + + col0 + 90 FROM tab1 AS cor0
----
156
180
228

onlyif mysql # aggregate syntax: 
query I rowsort label-4517
SELECT + MIN( ALL - + col0 ) + + + ( 81 ) FROM tab1 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-4517
SELECT + MIN ( ALL - + col0 ) + + + ( 81 ) FROM tab1 AS cor0
----
-10

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 81 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4519
SELECT CAST( NULL AS DECIMAL ) + col1 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4519
SELECT CAST ( NULL AS REAL ) + col1 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - + 83 + + col1 FROM tab2 AS cor0
----
-16
-32
-6

query I rowsort
SELECT DISTINCT - ( - 24 ) + - - 27 FROM tab0 AS cor0
----
51

query I rowsort
SELECT ALL + + col1 - + + col0 AS col0 FROM tab2 AS cor0
----
-8
13
5

query I rowsort
SELECT 40 + 15 FROM tab1 AS cor0
----
55
55
55

query I rowsort
SELECT ALL ( col2 ) * - col1 + - col1 AS col2 FROM tab2 AS cor0
----
-1224
-3157
-3953

query I rowsort
SELECT + col0 + - 35 FROM tab0 cor0
----
-20
52
62

query I rowsort
SELECT DISTINCT - 14 FROM tab1 WHERE NULL IS NULL
----
-14

query I rowsort
SELECT ALL 93 - + - col2 * - 99 AS col2 FROM tab2 WHERE NOT - - col1 / + col1 + col2 NOT IN ( - 76 * - + col1, col1 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4528
SELECT 26 - + COUNT( * ) / CAST( NULL AS SIGNED ) - + + SUM( - + 54 ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4528
SELECT 26 - + COUNT ( * ) / CAST ( NULL AS INTEGER ) - + + SUM ( - + 54 ) AS col0 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4529
SELECT DISTINCT - ( - MIN( + + col2 ) ) AS col2 FROM tab0 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-4529
SELECT DISTINCT - ( - MIN ( + + col2 ) ) AS col2 FROM tab0 AS cor0
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-4530
SELECT ALL - SUM( + + 69 ) FROM tab2 AS cor0
----
-207

skipif mysql # not compatible
query I rowsort label-4530
SELECT ALL - SUM ( + + 69 ) FROM tab2 AS cor0
----
-207

onlyif mysql # aggregate syntax: 
query I rowsort label-4531
SELECT - SUM( - - 90 ) AS col1 FROM tab2
----
-270

skipif mysql # not compatible
query I rowsort label-4531
SELECT - SUM ( - - 90 ) AS col1 FROM tab2
----
-270

onlyif mysql # aggregate syntax: 
query II rowsort label-4532
SELECT ALL COUNT( * ), - 28 AS col1 FROM tab1
----
3
-28

skipif mysql # not compatible
query II rowsort label-4532
SELECT ALL COUNT ( * ), - 28 AS col1 FROM tab1
----
3
-28

query I rowsort
SELECT + 64 * + - 41 AS col1 FROM tab0
----
-2624
-2624
-2624

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( + 63 ) col0 FROM tab1
----
63
63
63

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT ( NULL ) IN ( 75, - col2 + - col0 - - ( - 95 ) )
----

query I rowsort
SELECT - col0 * + 49 AS col1 FROM tab1 AS cor0
----
-2499
-4165
-4459

query I rowsort
SELECT - ( + - 43 ) FROM tab2 AS cor0
----
43
43
43

query I rowsort
SELECT - - col0 * - 71 * - + 79 AS col2 FROM tab1 AS cor0
----
286059
476765
510419

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4539
SELECT ALL + 49 * + 99 / CAST( NULL AS SIGNED ) AS col2 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4539
SELECT ALL + 49 * + 99 / CAST ( NULL AS INTEGER ) AS col2 FROM tab0 cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - 89 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4541
SELECT DISTINCT MAX( 85 ) AS col2 FROM tab2
----
85

skipif mysql # not compatible
query I rowsort label-4541
SELECT DISTINCT MAX ( 85 ) AS col2 FROM tab2
----
85

query II rowsort
SELECT 74 AS col2, + col0 FROM tab1
----
74
51
74
85
74
91

onlyif mysql # aggregate syntax: 
query I rowsort label-4543
SELECT DISTINCT - 40 * + + MIN( DISTINCT col1 ) AS col2 FROM tab1
----
-200

skipif mysql # not compatible
query I rowsort label-4543
SELECT DISTINCT - 40 * + + MIN ( DISTINCT col1 ) AS col2 FROM tab1
----
-200

query III rowsort
SELECT * FROM tab2 WHERE NOT - ( col0 ) <= - 41
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4545
SELECT ( - MAX( - 20 ) ) col2 FROM tab0
----
20

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4545
SELECT ( - MAX ( - 20 ) ) col2 FROM tab0
----
20

onlyif mysql # DIV for integer division: 
query II rowsort label-4546
SELECT 92, 28 DIV - col2 + 76 AS col2 FROM tab2
----
92
75
92
76
92
76

skipif mysql # not compatible
query II rowsort label-4546
SELECT 92, 28 / - col2 + 76 AS col2 FROM tab2
----
92
75
92
76
92
76

onlyif mysql # aggregate syntax: 
query I rowsort label-4547
SELECT DISTINCT - - 89 + + + 11 * - COUNT( * ) FROM tab1 AS cor0
----
56

skipif mysql # not compatible
query I rowsort label-4547
SELECT DISTINCT - - 89 + + + 11 * - COUNT ( * ) FROM tab1 AS cor0
----
56

query I rowsort
SELECT DISTINCT - + ( - + col2 ) FROM tab0 AS cor0
----
10
47
99

query I rowsort
SELECT DISTINCT + col1 + col0 + + col0 + - - col2 + - 62 + 10 + + col2 * - col1 - + - 60 AS col1 FROM tab0 cor0
----
-3641
203
3

query III rowsort
SELECT * FROM tab1 WHERE NULL < col2 * col0 + - - col1
----

query II rowsort
SELECT 64 + - - col1 AS col0, col1 - - 19 AS col0 FROM tab2
----
115
70
131
86
141
96

query I rowsort
SELECT ALL col0 * + - 53 AS col2 FROM tab2
----
-2438
-3392
-3975

query II rowsort
SELECT ALL - - 55 + - col0, - col2 + 37 AS col1 FROM tab1 cor0
----
-30
-22
-36
-31
4
-59

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4554
SELECT AVG ( DISTINCT + CAST( NULL AS DECIMAL ) ) FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4554
SELECT AVG ( DISTINCT + CAST ( NULL AS REAL ) ) FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col2 + col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4556
SELECT + MAX( ALL - - 96 ) * - SUM( ALL ( + col2 ) ) - - COUNT( * ) AS col2 FROM tab1
----
-21405

skipif mysql # not compatible
query I rowsort label-4556
SELECT + MAX ( ALL - - 96 ) * - SUM ( ALL ( + col2 ) ) - - COUNT ( * ) AS col2 FROM tab1
----
-21405

onlyif mysql # aggregate syntax: 
query II rowsort label-4557
SELECT ALL + ( + + COUNT( * ) ) - 72 col2, + MAX( + 59 ) AS col2 FROM tab0
----
-69
59

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4557
SELECT ALL + ( + + COUNT ( * ) ) - 72 col2, + MAX ( + 59 ) AS col2 FROM tab0
----
-69
59

query II rowsort
SELECT DISTINCT ( + 25 ) * - col1, 64 AS col1 FROM tab2
----
-1275
64
-1675
64
-1925
64

onlyif mysql # DIV for integer division: 
query I rowsort label-4559
SELECT DISTINCT - col0 DIV 73 FROM tab1
----
-1
0

skipif mysql # not compatible
query I rowsort label-4559
SELECT DISTINCT - col0 / 73 FROM tab1
----
-1
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4560
SELECT DISTINCT - col0 AS col0, CAST( col0 AS SIGNED ) FROM tab0 AS cor0
----
-15
15
-87
87
-97
97

skipif mysql # not compatible
query II rowsort label-4560
SELECT DISTINCT - col0 AS col0, CAST ( col0 AS INTEGER ) FROM tab0 AS cor0
----
-15
15
-87
87
-97
97

query I rowsort
SELECT ALL + col1 AS col0 FROM tab1 AS cor0 WHERE NOT NULL < col0 / - col1
----

query I rowsort
SELECT 13 AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL + + 51 AS col1 FROM tab0 AS cor0 WHERE - 68 + + 64 > NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL <= - 59
----

query I rowsort
SELECT DISTINCT - 68 FROM tab1 WHERE ( 57 * - col1 ) IS NOT NULL
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-4566
SELECT ALL MIN( - col1 ) col2 FROM tab1
----
-47

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4566
SELECT ALL MIN ( - col1 ) col2 FROM tab1
----
-47

query I rowsort
SELECT ALL 22 * 2 + - col2 AS col0 FROM tab1
----
-15
-24
-52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4568
SELECT DISTINCT + col2 * - CAST( NULL AS SIGNED ) + 65 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4568
SELECT DISTINCT + col2 * - CAST ( NULL AS INTEGER ) + 65 FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT 28 + col2 AS col2 FROM tab0
----
127
38
75

query I rowsort
SELECT 29 + 58 FROM tab1
----
87
87
87

onlyif mysql # aggregate syntax: 
query I rowsort label-4571
SELECT DISTINCT - COUNT( * ) * 90 AS col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-270

skipif mysql # not compatible
query I rowsort label-4571
SELECT DISTINCT - COUNT ( * ) * 90 AS col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-270

onlyif mysql # aggregate syntax: 
query I rowsort label-4572
SELECT ALL COUNT( * ) FROM tab1 WHERE NOT col2 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4572
SELECT ALL COUNT ( * ) FROM tab1 WHERE NOT col2 IS NOT NULL
----
0

query I rowsort
SELECT + col1 FROM tab1 WHERE NOT ( - col1 + + col1 * + col0 ) IS NOT NULL
----

query I rowsort
SELECT - col0 + + col1 * + col2 FROM tab2 WHERE - 55 + col1 IS NOT NULL
----
1127
3016
3811

query III rowsort
SELECT * FROM tab0 WHERE NOT + 88 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4576
SELECT ALL 42 * - COUNT( ALL 14 ) FROM tab0
----
-126

skipif mysql # not compatible
query I rowsort label-4576
SELECT ALL 42 * - COUNT ( ALL 14 ) FROM tab0
----
-126

query I rowsort
SELECT - ( - 35 ) AS col1 FROM tab2
----
35
35
35

query I rowsort
SELECT col2 FROM tab2 WHERE NOT col2 IS NULL
----
23
40
58

query I rowsort
SELECT - 13 * + col2 + - col0 FROM tab2
----
-345
-584
-829

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4580
SELECT - col0 * + col2 + CAST( col1 AS SIGNED ) DIV col0 FROM tab0
----
-700
-870
-9603

skipif mysql # not compatible
query I rowsort label-4580
SELECT - col0 * + col2 + CAST ( col1 AS INTEGER ) / col0 FROM tab0
----
-700
-870
-9603

query I rowsort
SELECT DISTINCT col2 FROM tab1 WHERE 75 >= ( 30 )
----
59
68
96

query I rowsort
SELECT ALL col2 * + ( col1 ) + ( 53 + col0 ) FROM tab0
----
249
350
3875

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col0 BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL 57 - col2 FROM tab2
----
-1
17
34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4585
SELECT col0 + CAST( NULL AS SIGNED ) * + ( + col1 + + col0 * - 80 ) AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4585
SELECT col0 + CAST ( NULL AS INTEGER ) * + ( + col1 + + col0 * - 80 ) AS col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + ( + col2 ) AS col1 FROM tab0 WHERE + col0 * col2 NOT IN ( - col1 * 49 + + col0 * - col2 )
----
10
47
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 17 col2 FROM tab0 AS cor0 WHERE NULL IS NULL
----
17

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( 14 ) NOT IN ( col0 * + col0 + col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4589
SELECT + COUNT( ALL - 25 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4589
SELECT + COUNT ( ALL - 25 ) FROM tab2 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + 32 col2 FROM tab0 AS cor0 WHERE ( - ( col2 ) ) IS NULL
----

query I rowsort
SELECT ALL + 24 * col0 + - col2 AS col2 FROM tab2 AS cor0
----
1081
1496
1742

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4592
SELECT + COUNT( * ) * - CAST( NULL AS SIGNED ) col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4592
SELECT + COUNT ( * ) * - CAST ( NULL AS INTEGER ) col1 FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4593
SELECT DISTINCT - col1 / - ( + col1 ) + - CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4593
SELECT DISTINCT - col1 / - ( + col1 ) + - CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4594
SELECT ALL * FROM tab1 WHERE NOT NULL >= ( CAST( + 96 AS DECIMAL ) * + col0 - - 87 )
----

skipif mysql # not compatible
query III rowsort label-4594
SELECT ALL * FROM tab1 WHERE NOT NULL >= ( CAST ( + 96 AS REAL ) * + col0 - - 87 )
----

query I rowsort
SELECT ALL 82 FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4596
SELECT ALL COUNT( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2
----
9

skipif mysql # not compatible
query I rowsort label-4596
SELECT ALL COUNT ( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2
----
9

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col2 * + col0 <> NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4598
SELECT 33 + - col1 DIV - col1 FROM tab2
----
34
34
34

skipif mysql # not compatible
query I rowsort label-4598
SELECT 33 + - col1 / - col1 FROM tab2
----
34
34
34

query I rowsort
SELECT - col2 AS col1 FROM tab1 WHERE ( + col0 * - col1 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4600
SELECT - COUNT( * ) AS col2 FROM tab2 WHERE + col1 NOT IN ( + col0 )
----
-3

skipif mysql # not compatible
query I rowsort label-4600
SELECT - COUNT ( * ) AS col2 FROM tab2 WHERE + col1 NOT IN ( + col0 )
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4601
SELECT - 19 / + 48 + - CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4601
SELECT - 19 / + 48 + - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4602
SELECT 71 + - col0 DIV + col0 FROM tab2 AS cor0
----
70
70
70

skipif mysql # not compatible
query I rowsort label-4602
SELECT 71 + - col0 / + col0 FROM tab2 AS cor0
----
70
70
70

query I rowsort
SELECT DISTINCT - col2 + col2 FROM tab1 AS cor0 WHERE NOT ( - col0 ) NOT BETWEEN NULL AND ( NULL )
----

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NULL BETWEEN NULL AND + col2 + - col1
----

query I rowsort
SELECT DISTINCT 1 FROM tab0 AS cor0 WHERE NOT col2 * 52 + - col1 IS NOT NULL
----

query I rowsort
SELECT + + 49 * + 33 + + col0 FROM tab0 AS cor0
----
1632
1704
1714

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4607
SELECT ALL + MAX( 34 ) * - COUNT( * ) + + CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4607
SELECT ALL + MAX ( 34 ) * - COUNT ( * ) + + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT - - 86 * col2 + ( + col0 ) AS col1 FROM tab0 AS cor0
----
4057
8611
947

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col2 - col0 col0 FROM tab1 AS cor0
----
-144
-147
-159

query I rowsort
SELECT DISTINCT + col2 - - 44 * col0 AS col1 FROM tab0 AS cor0
----
3838
4367
707

query I rowsort
SELECT ALL col0 + - - 49 AS col1 FROM tab0
----
136
146
64

query III rowsort
SELECT * FROM tab2 WHERE NULL BETWEEN NULL AND - col0 * col2
----

query I rowsort
SELECT ALL 94 * + col2 FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4614
SELECT DISTINCT - 78 DIV + + 20 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-4614
SELECT DISTINCT - 78 / + + 20 FROM tab1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4615
SELECT - MAX( DISTINCT col2 ) FROM tab1 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4615
SELECT - MAX ( DISTINCT col2 ) FROM tab1 WHERE NOT NULL IS NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4616
SELECT ALL + ( + 84 ) DIV 78 AS col0 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4616
SELECT ALL + ( + 84 ) / 78 AS col0 FROM tab0
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4617
SELECT + COUNT( * ) * 27 AS col0 FROM tab0
----
81

skipif mysql # not compatible
query I rowsort label-4617
SELECT + COUNT ( * ) * 27 AS col0 FROM tab0
----
81

query I rowsort
SELECT - col2 AS col0 FROM tab1 WHERE NOT col1 + 46 = NULL OR NOT col2 = ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4619
SELECT 9 DIV 67 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4619
SELECT 9 / 67 FROM tab0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 19 * - col2 col1 FROM tab1
----
1121
1292
1824

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col0 * + col2 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( - col0 ) BETWEEN ( + col0 ) AND + 35
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4623
SELECT DISTINCT SUM( col0 ) + - 25 * + 31 AS col1 FROM tab1 AS cor0 WHERE NOT ( - col2 * 74 ) IS NULL
----
-548

skipif mysql # not compatible
query I rowsort label-4623
SELECT DISTINCT SUM ( col0 ) + - 25 * + 31 AS col1 FROM tab1 AS cor0 WHERE NOT ( - col2 * 74 ) IS NULL
----
-548

query I rowsort
SELECT + col1 * + col2 FROM tab2 AS cor0 WHERE NOT NULL >= ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4625
SELECT - + 21 DIV 71 + col2 FROM tab1 AS cor0
----
59
68
96

skipif mysql # not compatible
query I rowsort label-4625
SELECT - + 21 / 71 + col2 FROM tab1 AS cor0
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-4626
SELECT MIN( ALL - ( + 87 ) ) * 64 AS col0 FROM tab0 AS cor0
----
-5568

skipif mysql # not compatible
query I rowsort label-4626
SELECT MIN ( ALL - ( + 87 ) ) * 64 AS col0 FROM tab0 AS cor0
----
-5568

query I rowsort
SELECT DISTINCT - 59 AS col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4628
SELECT DISTINCT - COUNT( - 79 ) AS col0 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4628
SELECT DISTINCT - COUNT ( - 79 ) AS col0 FROM tab2 AS cor0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + col0 col1, - col1 AS col2 FROM tab0 AS cor0
----
15
-81
87
-21
97
-1

query I rowsort
SELECT - col1 * + - 18 AS col0 FROM tab1 AS cor0
----
252
846
90

query I rowsort
SELECT col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) > + + col0 + - col1
----

query I rowsort
SELECT DISTINCT + col2 FROM tab0 AS cor0 WHERE NOT + col0 * col1 * - col1 IS NULL
----
10
47
99

query I rowsort
SELECT DISTINCT - col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) IN ( + col0 / - 77 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4634
SELECT - CAST( NULL AS SIGNED ) * col1 * - col2 * - - 12 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4634
SELECT - CAST ( NULL AS INTEGER ) * col1 * - col2 * - - 12 AS col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT 11 * - ( + col0 ) AS col2 FROM tab0
----
-1067
-165
-957

onlyif mysql # aggregate syntax: 
query I rowsort label-4636
SELECT + ( + COUNT( DISTINCT + col1 ) ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-4636
SELECT + ( + COUNT ( DISTINCT + col1 ) ) FROM tab1
----
3

query I rowsort
SELECT 96 AS col1 FROM tab2 WHERE ( + col1 ) IS NOT NULL
----
96
96
96

query I rowsort
SELECT - col0 * - + 29 AS col1 FROM tab2
----
1334
1856
2175

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4639
SELECT + COUNT( * ) DIV + SUM( - + 46 ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-4639
SELECT + COUNT ( * ) / + SUM ( - + 46 ) FROM tab1
----
0

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col2 + col2 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col0 BETWEEN col2 / + - 86 AND NULL
----

query I rowsort
SELECT ALL 61 - + + col2 + + 4 FROM tab1 AS cor0
----
-3
-31
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - + col0 ) * + col1 col1 FROM tab2
----
-2346
-4928
-5025

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col1 NOT BETWEEN NULL AND - col1 * - + col0 + + col2
----

query I rowsort
SELECT DISTINCT + 59 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
59

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col2 * + col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - 17 + + col0 AS col2 FROM tab1 cor0
----
34
68
74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4648
SELECT ALL + ( 18 ) - col1 + + + CAST( NULL AS SIGNED ) * + col1 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4648
SELECT ALL + ( 18 ) - col1 + + + CAST ( NULL AS INTEGER ) * + col1 FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4649
SELECT + 7 - + COUNT( * ) col0 FROM tab2 AS cor0
----
4

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4649
SELECT + 7 - + COUNT ( * ) col0 FROM tab2 AS cor0
----
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4650
SELECT DISTINCT ( 25 ) / + + CAST( NULL AS SIGNED ) * - col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4650
SELECT DISTINCT ( 25 ) / + + CAST ( NULL AS INTEGER ) * - col1 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4651
SELECT MIN( - col2 ) - + 98 FROM tab2 WHERE NOT - ( 92 ) NOT IN ( - 67 * - + col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4651
SELECT MIN ( - col2 ) - + 98 FROM tab2 WHERE NOT - ( 92 ) NOT IN ( - 67 * - + col1 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4652
SELECT COUNT( DISTINCT + 44 ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-4652
SELECT COUNT ( DISTINCT + 44 ) FROM tab0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4653
SELECT MAX( + ( - 71 ) ) FROM tab1
----
-71

skipif mysql # not compatible
query I rowsort label-4653
SELECT MAX ( + ( - 71 ) ) FROM tab1
----
-71

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4654
SELECT col1, - CAST( NULL AS SIGNED ) * - + 69 AS col2 FROM tab1
----
14
NULL
47
NULL
5
NULL

skipif mysql # not compatible
query II rowsort label-4654
SELECT col1, - CAST ( NULL AS INTEGER ) * - + 69 AS col2 FROM tab1
----
14
NULL
47
NULL
5
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4655
SELECT DISTINCT + ( + + col0 ) DIV - + 98 + - col0 FROM tab2
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-4655
SELECT DISTINCT + ( + + col0 ) / - + 98 + - col0 FROM tab2
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query II rowsort label-4656
SELECT - 27 * - + 34 AS col2, + COUNT( * ) * - ( - MAX( ALL + col0 ) ) FROM tab2
----
918
225

skipif mysql # not compatible
query II rowsort label-4656
SELECT - 27 * - + 34 AS col2, + COUNT ( * ) * - ( - MAX ( ALL + col0 ) ) FROM tab2
----
918
225

onlyif mysql # aggregate syntax: 
query I rowsort label-4657
SELECT DISTINCT - 63 * - + COUNT( * ) + 31 AS col0 FROM tab1 AS cor0
----
220

skipif mysql # not compatible
query I rowsort label-4657
SELECT DISTINCT - 63 * - + COUNT ( * ) + 31 AS col0 FROM tab1 AS cor0
----
220

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 31 BETWEEN 64 * + 46 + + col1 AND col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col1 * 39 AS col1 FROM tab0 AS cor0 WHERE NOT col0 * - 66 + + col0 NOT BETWEEN col0 AND ( + col0 + 8 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4660
SELECT MIN( DISTINCT 8 ) * - + COUNT( * ) - + - 98 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
26

skipif mysql # not compatible
query I rowsort label-4660
SELECT MIN ( DISTINCT 8 ) * - + COUNT ( * ) - + - 98 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-4661
SELECT + + 29 + + - COUNT( * ) + + COUNT( * ) * - 46 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-394

skipif mysql # not compatible
query I rowsort label-4661
SELECT + + 29 + + - COUNT ( * ) + + COUNT ( * ) * - 46 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-394

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT col0 >= col0 + col0 + + + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + col1 > 42
----
91
47
68

onlyif mysql # aggregate syntax: 
query I rowsort label-4664
SELECT DISTINCT + ( COUNT( * ) ) * + SUM( ALL + 6 ) + - - 72 FROM tab0 AS cor0
----
126

skipif mysql # not compatible
query I rowsort label-4664
SELECT DISTINCT + ( COUNT ( * ) ) * + SUM ( ALL + 6 ) + - - 72 FROM tab0 AS cor0
----
126

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4665
SELECT ALL - CAST( + ( + ( - 28 ) ) AS SIGNED ) + + col2 * col2 FROM tab0 AS cor0
----
128
2237
9829

skipif mysql # not compatible
query I rowsort label-4665
SELECT ALL - CAST ( + ( + ( - 28 ) ) AS INTEGER ) + + col2 * col2 FROM tab0 AS cor0
----
128
2237
9829

onlyif mysql # aggregate syntax: 
query I rowsort label-4666
SELECT COUNT( - 2 ) + - + COUNT( * ) FROM tab0 AS cor0 WHERE NOT - 32 BETWEEN col0 AND - - 21
----
0

skipif mysql # not compatible
query I rowsort label-4666
SELECT COUNT ( - 2 ) + - + COUNT ( * ) FROM tab0 AS cor0 WHERE NOT - 32 BETWEEN col0 AND - - 21
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4667
SELECT - SUM( DISTINCT ( + + col0 ) ) FROM tab0 AS cor0
----
-199

skipif mysql # not compatible
query I rowsort label-4667
SELECT - SUM ( DISTINCT ( + + col0 ) ) FROM tab0 AS cor0
----
-199

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * + - 95 + - col2 + 6 * + col2 + + col0 col0 FROM tab2 AS cor0
----
2346
4064
5875

query I rowsort
SELECT col1 * 78 FROM tab0 AS cor0 WHERE NULL BETWEEN NULL AND NULL
----

query II rowsort
SELECT col1 + 69, col0 FROM tab0 AS cor0
----
150
15
70
97
90
87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4671
SELECT ALL - 50 DIV CAST( + COUNT( * ) AS SIGNED ) FROM tab1 AS cor0
----
-16

skipif mysql # not compatible
query I rowsort label-4671
SELECT ALL - 50 / CAST ( + COUNT ( * ) AS INTEGER ) FROM tab1 AS cor0
----
-16

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 20 * col0 * - - col1 < + - 41 * - 75 / - col1
----
15
81
47
87
21
10

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + + ( - col1 ) col2 FROM tab0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4674
SELECT COUNT( * ) * + COUNT( * ) col0 FROM tab1 WHERE - col1 IS NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4674
SELECT COUNT ( * ) * + COUNT ( * ) col0 FROM tab1 WHERE - col1 IS NULL
----
0

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL BETWEEN + - col0 AND ( + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4676
SELECT ALL MAX( DISTINCT + ( + + col2 ) ) AS col1 FROM tab2
----
58

skipif mysql # not compatible
query I rowsort label-4676
SELECT ALL MAX ( DISTINCT + ( + + col2 ) ) AS col1 FROM tab2
----
58

query I rowsort
SELECT DISTINCT 80 * - + col0 + - + col1 + - + col0 * - + col0 FROM tab1
----
-1493
420
954

onlyif mysql # aggregate syntax: 
query I rowsort label-4678
SELECT ALL - SUM( DISTINCT - 79 ) AS col0 FROM tab1
----
79

skipif mysql # not compatible
query I rowsort label-4678
SELECT ALL - SUM ( DISTINCT - 79 ) AS col0 FROM tab1
----
79

query I rowsort
SELECT - 93 AS col2 FROM tab0 WHERE + col1 IS NOT NULL
----
-93
-93
-93

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( NULL ) NOT BETWEEN col1 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4681
SELECT - col2 DIV col2 DIV + + 11 AS col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4681
SELECT - col2 / col2 / + + 11 AS col2 FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT col2 + 98 FROM tab0 AS cor0
----
108
145
197

query I rowsort
SELECT DISTINCT - 2 * + + ( + col1 ) + + 61 AS col1 FROM tab0 cor0
----
-101
19
59

query II rowsort
SELECT col1, - col1 AS col2 FROM tab0 AS cor0
----
1
-1
21
-21
81
-81

query I rowsort
SELECT DISTINCT + 44 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-4686
SELECT ALL - - 65 - - - ( MIN( + 66 ) ) col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4686
SELECT ALL - - 65 - - - ( MIN ( + 66 ) ) col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4687
SELECT ALL CAST( NULL AS SIGNED ) + - COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-4687
SELECT ALL CAST ( NULL AS INTEGER ) + - COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4688
SELECT + col2 + + CAST( col2 AS SIGNED ) AS col2 FROM tab1
----
118
136
192

skipif mysql # not compatible
query I rowsort label-4688
SELECT + col2 + + CAST ( col2 AS INTEGER ) AS col2 FROM tab1
----
118
136
192

onlyif mysql # aggregate syntax: 
query I rowsort label-4689
SELECT ALL - + COUNT( * ) + + + 54 * - COUNT( * ) FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
-495

skipif mysql # not compatible
query I rowsort label-4689
SELECT ALL - + COUNT ( * ) + + + 54 * - COUNT ( * ) FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
-495

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( NOT + ( + 86 ) + + - 73 NOT BETWEEN + col1 AND + col2 )
----
15
81
47
87
21
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4691
SELECT ALL - - col0 FROM tab2 AS cor0 WHERE NULL < CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-4691
SELECT ALL - - col0 FROM tab2 AS cor0 WHERE NULL < CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT - col0 * - - col1 - + 81 FROM tab2 AS cor0
----
-2427
-5009
-5106

query II rowsort
SELECT - - 50 * col1 AS col1, - 59 FROM tab1 AS cor0
----
2350
-59
250
-59
700
-59

query I rowsort
SELECT DISTINCT col2 * - 6 AS col0 FROM tab2 AS cor0
----
-138
-240
-348

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE col0 * col0 / + - col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - - col2 AS col2 FROM tab1 AS cor0 WHERE NOT col1 / + col2 < - col2
----
59
68
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 60 + col1 col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
141
61
81

query I rowsort
SELECT ALL 25 * + col0 FROM tab2
----
1150
1600
1875

query I rowsort
SELECT - + 1 FROM tab1 WHERE NOT 80 IS NULL
----
-1
-1
-1

query I rowsort
SELECT DISTINCT 6 * - col1 * col2 AS col1 FROM tab2
----
-18480
-23316
-7038

query I rowsort
SELECT ALL 24 * col2 FROM tab1
----
1416
1632
2304

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4702
SELECT ALL * FROM tab2 WHERE CAST( - - col1 AS SIGNED ) - - col1 > ( CAST( 45 AS SIGNED ) + + col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-4702
SELECT ALL * FROM tab2 WHERE CAST ( - - col1 AS INTEGER ) - - col1 > ( CAST ( 45 AS INTEGER ) + + col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4703
SELECT ALL + SUM( - + col2 ) AS col1 FROM tab1
----
-223

skipif mysql # not compatible
query I rowsort label-4703
SELECT ALL + SUM ( - + col2 ) AS col1 FROM tab1
----
-223

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN ( - + col1 ) AND - col2 * - + col2 + + 67 + - col1
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NOT NULL BETWEEN 3 * 16 * + 7 * col1 AND ( + - col1 + col1 ) )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( 67 ) NOT IN ( col2, + col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4707
SELECT DISTINCT - 27 DIV + 15 AS col2 FROM tab1 cor0
----
-1

skipif mysql # not compatible
query I rowsort label-4707
SELECT DISTINCT - 27 / + 15 AS col2 FROM tab1 cor0
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-4708
SELECT ALL + COUNT( * ) AS col2, MIN( DISTINCT - col2 ) - + - ( - ( + - 91 ) ) * - - SUM( ALL + col0 ) AS col1 FROM tab2
----
3
16777

skipif mysql # not compatible
query II rowsort label-4708
SELECT ALL + COUNT ( * ) AS col2, MIN ( DISTINCT - col2 ) - + - ( - ( + - 91 ) ) * - - SUM ( ALL + col0 ) AS col1 FROM tab2
----
3
16777

onlyif mysql # aggregate syntax: 
query I rowsort label-4709
SELECT + 78 + COUNT( * ) AS col2 FROM tab2
----
81

skipif mysql # not compatible
query I rowsort label-4709
SELECT + 78 + COUNT ( * ) AS col2 FROM tab2
----
81

query I rowsort
SELECT ALL + col0 + 12 - 33 AS col2 FROM tab2 AS cor0
----
25
43
54

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4711
SELECT DISTINCT - - 86 + + - ( + - ( - 42 ) ) DIV - - ( + COUNT( * ) ) AS col1 FROM tab1 AS cor0
----
72

skipif mysql # not compatible
query I rowsort label-4711
SELECT DISTINCT - - 86 + + - ( + - ( - 42 ) ) / - - ( + COUNT ( * ) ) AS col1 FROM tab1 AS cor0
----
72

query I rowsort
SELECT ALL + 76 + - col1 * - 18 AS col1 FROM tab1 AS cor0
----
166
328
922

query I rowsort
SELECT ALL + + 89 + + + col1 FROM tab1 AS cor0
----
103
136
94

query II rowsort
SELECT col2, - 35 + - - col1 + ( + col0 ) AS col2 FROM tab2 AS cor0
----
23
62
40
106
58
107

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4715
SELECT CAST( NULL AS SIGNED ) - + col1 AS col0 FROM tab2 AS cor0 WHERE ( col2 ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-4715
SELECT CAST ( NULL AS INTEGER ) - + col1 AS col0 FROM tab2 AS cor0 WHERE ( col2 ) IS NULL
----

query I rowsort
SELECT col1 * - + ( col2 ) FROM tab1 AS cor0 WHERE - col2 + + + col1 IS NOT NULL
----
-1344
-295
-3196

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4717
SELECT ALL + 82 + + 67 * + CAST( NULL AS DECIMAL ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4717
SELECT ALL + 82 + + 67 * + CAST ( NULL AS REAL ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4718
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 47 * CAST( + 37 AS SIGNED ) / 17 + + - CAST( NULL AS SIGNED ) + col2 + col1 * - - col2 * - 68 + + - col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-4718
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 47 * CAST ( + 37 AS INTEGER ) / 17 + + - CAST ( NULL AS INTEGER ) + col2 + col1 * - - col2 * - 68 + + - col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4719
SELECT ALL - COUNT( * ) col1 FROM tab2 AS cor0 WHERE NOT NULL < - 95 * col1
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4719
SELECT ALL - COUNT ( * ) col1 FROM tab2 AS cor0 WHERE NOT NULL < - 95 * col1
----
0

query I rowsort
SELECT ALL + col0 + col1 * 80 FROM tab2 cor0
----
4126
5435
6224

query I rowsort
SELECT ALL - ( - 34 ) AS col2 FROM tab1 AS cor0
----
34
34
34

query IIIIII rowsort
SELECT * FROM tab1, tab2 cor0 WHERE 55 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4723
SELECT ALL 44 * - - ( + COUNT( * ) ) AS col2 FROM tab0, tab1 AS cor0
----
396

skipif mysql # not compatible
query I rowsort label-4723
SELECT ALL 44 * - - ( + COUNT ( * ) ) AS col2 FROM tab0, tab1 AS cor0
----
396

query I rowsort
SELECT + 17 * - ( - - 55 ) AS col1 FROM tab1
----
-935
-935
-935

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + col0 * - - 88 col0 FROM tab1
----
4539
7565
8099

query I rowsort
SELECT DISTINCT + col1 * 87 FROM tab1 AS cor0
----
1218
4089
435

query I rowsort
SELECT - ( col1 ) + - + 36 * - 87 AS col0 FROM tab0 AS cor0
----
3051
3111
3131

onlyif mysql # aggregate syntax: 
query I rowsort label-4728
SELECT SUM( ALL col1 ) + - COUNT( * ) AS col0 FROM tab2 cor0
----
192

skipif mysql # not compatible
query I rowsort label-4728
SELECT SUM ( ALL col1 ) + - COUNT ( * ) AS col0 FROM tab2 cor0
----
192

onlyif mysql # DIV for integer division: 
query II rowsort label-4729
SELECT + 22 + 35 * + col1 + + ( + col2 ) + 99 DIV col0, 94 AS col1 FROM tab0 AS cor0
----
157
94
2910
94
768
94

skipif mysql # not compatible
query II rowsort label-4729
SELECT + 22 + 35 * + col1 + + ( + col2 ) + 99 / col0, 94 AS col1 FROM tab0 AS cor0
----
157
94
2910
94
768
94

onlyif mysql # DIV for integer division: 
query I rowsort label-4730
SELECT ALL + col1 - + - col0 + + col0 * + col0 + 73 DIV - - 36 AS col2 FROM tab0 AS cor0
----
323
7679
9509

skipif mysql # not compatible
query I rowsort label-4730
SELECT ALL + col1 - + - col0 + + col0 * + col0 + 73 / - - 36 AS col2 FROM tab0 AS cor0
----
323
7679
9509

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4731
SELECT ALL - CAST( - + col2 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
23
40
58

skipif mysql # not compatible
query I rowsort label-4731
SELECT ALL - CAST ( - + col2 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
23
40
58

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT ( NOT ( ( NOT ( NOT NULL < + 14 ) ) ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4733
SELECT DISTINCT + + 48 * + 10 * - 32 + + - COUNT( * ) FROM tab1 AS cor0
----
-15363

skipif mysql # not compatible
query I rowsort label-4733
SELECT DISTINCT + + 48 * + 10 * - 32 + + - COUNT ( * ) FROM tab1 AS cor0
----
-15363

onlyif mysql # aggregate syntax: 
query I rowsort label-4734
SELECT - ( - COUNT( * ) ) * + + 76 AS col1 FROM tab2 AS cor0
----
228

skipif mysql # not compatible
query I rowsort label-4734
SELECT - ( - COUNT ( * ) ) * + + 76 AS col1 FROM tab2 AS cor0
----
228

onlyif mysql # DIV for integer division: 
query I rowsort label-4735
SELECT - - col1 DIV - col1 - + col0 AS col2 FROM tab1 AS cor0
----
-52
-86
-92

skipif mysql # not compatible
query I rowsort label-4735
SELECT - - col1 / - col1 - + col0 AS col2 FROM tab1 AS cor0
----
-52
-86
-92

query I rowsort
SELECT DISTINCT 52 FROM tab1 AS cor0 WHERE NULL IS NULL
----
52

onlyif mysql # aggregate syntax: 
query II rowsort label-4737
SELECT DISTINCT + COUNT( * ) AS col1, - MIN( + ( + col1 ) ) * - 94 FROM tab1 AS cor0
----
3
470

skipif mysql # not compatible
query II rowsort label-4737
SELECT DISTINCT + COUNT ( * ) AS col1, - MIN ( + ( + col1 ) ) * - 94 FROM tab1 AS cor0
----
3
470

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4738
SELECT COUNT( DISTINCT 86 ) * - CAST( + + CAST( NULL AS SIGNED ) AS SIGNED ), COUNT( * ) AS col2 FROM tab0
----
NULL
3

skipif mysql # not compatible
query II rowsort label-4738
SELECT COUNT ( DISTINCT 86 ) * - CAST ( + + CAST ( NULL AS INTEGER ) AS INTEGER ), COUNT ( * ) AS col2 FROM tab0
----
NULL
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4739
SELECT DISTINCT - col2, + col1 AS col1 FROM tab2 WHERE - + col2 / - col2 + - col2 * + CAST( NULL AS SIGNED ) IS NULL
----
-23
51
-40
77
-58
67

skipif mysql # not compatible
query II rowsort label-4739
SELECT DISTINCT - col2, + col1 AS col1 FROM tab2 WHERE - + col2 / - col2 + - col2 * + CAST ( NULL AS INTEGER ) IS NULL
----
-23
51
-40
77
-58
67

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col2 - + - col2 NOT BETWEEN ( NULL ) AND col2 * - 27
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4741
SELECT + SUM( DISTINCT + + CAST( col0 AS SIGNED ) ) AS col1 FROM tab1 WHERE NOT ( CAST( + 86 AS SIGNED ) ) > - col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4741
SELECT + SUM ( DISTINCT + + CAST ( col0 AS INTEGER ) ) AS col1 FROM tab1 WHERE NOT ( CAST ( + 86 AS INTEGER ) ) > - col1
----
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - col1 >= - 92 + - + col0
----

query I rowsort
SELECT DISTINCT + + 1 AS col2 FROM tab2 AS cor0
----
1

query I rowsort
SELECT ALL + 65 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 8bef2ea1f05f3514633f851312bdd805

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 13 * + col1 col0 FROM tab2
----
-1001
-663
-871

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - - col0 + col1 IS NULL
----

query I rowsort
SELECT + col2 + col0 FROM tab0 AS cor0 WHERE col0 * col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4748
SELECT DISTINCT - 4 * + + COUNT( * ) FROM tab0 AS cor0
----
-12

skipif mysql # not compatible
query I rowsort label-4748
SELECT DISTINCT - 4 * + + COUNT ( * ) FROM tab0 AS cor0
----
-12

query I rowsort
SELECT ALL col2 + - col1 + - ( col1 ) AS col2 FROM tab1 AS cor0
----
-26
49
68

query II rowsort
SELECT - 96 * + - col0 AS col2, + 91 - - - col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
4416
40
6144
14
7200
24

query I rowsort
SELECT col2 + - ( - 2 ) AS col2 FROM tab0 AS cor0
----
101
12
49

query I rowsort
SELECT + col0 + 66 * 33 AS col0 FROM tab1 AS cor0
----
2229
2263
2269

onlyif mysql # DIV for integer division: 
query I rowsort label-4753
SELECT - 72 + - - 78 - col1 DIV - - 68 AS col0 FROM tab2 cor0
----
5
6
6

skipif mysql # not compatible
query I rowsort label-4753
SELECT - 72 + - - 78 - col1 / - - 68 AS col0 FROM tab2 cor0
----
5
6
6

query I rowsort
SELECT 95 + + - col1 FROM tab0 cor0
----
14
74
94

query I rowsort
SELECT DISTINCT - + col0 * + + ( 95 ) - col2 + - 21 FROM tab0 AS cor0
----
-1493
-8296
-9335

onlyif mysql # aggregate syntax: 
query I rowsort label-4756
SELECT ALL + 8 * + SUM( 77 ) AS col1 FROM tab2
----
1848

skipif mysql # not compatible
query I rowsort label-4756
SELECT ALL + 8 * + SUM ( 77 ) AS col1 FROM tab2
----
1848

query II rowsort
SELECT ALL col2 * - col0 AS col0, - col0 AS col1 FROM tab1
----
-4896
-51
-5015
-85
-6188
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-4758
SELECT ALL + SUM( ALL col1 ) * COUNT( 5 ) + 64 FROM tab1
----
262

skipif mysql # not compatible
query I rowsort label-4758
SELECT ALL + SUM ( ALL col1 ) * COUNT ( 5 ) + 64 FROM tab1
----
262

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col2 + - + 63 * - col2 col0 FROM tab0 AS cor0
----
3008
6336
640

onlyif mysql # aggregate syntax: 
query I rowsort label-4760
SELECT - 88 - + 13 - - + COUNT( * ) + + COUNT( * ) AS col1 FROM tab2 AS cor0
----
-95

skipif mysql # not compatible
query I rowsort label-4760
SELECT - 88 - + 13 - - + COUNT ( * ) + + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + + + 95 + + col2 col1 FROM tab2 AS cor0
----
169
212
220

query I rowsort
SELECT DISTINCT - col2 FROM tab0 WHERE - + 5 < 72
----
-10
-47
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4763
SELECT + col1 FROM tab1 WHERE NOT + - CAST( NULL AS SIGNED ) + + col0 BETWEEN - ( - col1 ) AND - + col0 + + + col2 + - col1
----

skipif mysql # not compatible
query I rowsort label-4763
SELECT + col1 FROM tab1 WHERE NOT + - CAST ( NULL AS INTEGER ) + + col0 BETWEEN - ( - col1 ) AND - + col0 + + + col2 + - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4764
SELECT + COUNT( * ) * - 29 FROM tab1 AS cor0
----
-87

skipif mysql # not compatible
query I rowsort label-4764
SELECT + COUNT ( * ) * - 29 FROM tab1 AS cor0
----
-87

query I rowsort
SELECT ALL col1 * - col0 AS col0 FROM tab2 AS cor0 WHERE NOT NULL < - 78
----

query I rowsort
SELECT - 37 * - col0 FROM tab1 WHERE NOT ( 64 IS NULL )
----
1887
3145
3367

onlyif mysql # aggregate syntax: 
query II rowsort label-4767
SELECT ALL + COUNT( * ) col2, + COUNT( * ) AS col2 FROM tab1
----
3
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4767
SELECT ALL + COUNT ( * ) col2, + COUNT ( * ) AS col2 FROM tab1
----
3
3

onlyif mysql # aggregate syntax: 
query II rowsort label-4768
SELECT ( - + 76 ) * + - COUNT( * ), - MAX( + col1 ) AS col2 FROM tab1
----
228
-47

skipif mysql # not compatible
query II rowsort label-4768
SELECT ( - + 76 ) * + - COUNT ( * ), - MAX ( + col1 ) AS col2 FROM tab1
----
228
-47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 col0, - 62 * 31 AS col0 FROM tab2
----
51
-1922
67
-1922
77
-1922

onlyif mysql # aggregate syntax: 
query I rowsort label-4770
SELECT ( - MIN( + + 19 ) ) col2 FROM tab1
----
-19

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4770
SELECT ( - MIN ( + + 19 ) ) col2 FROM tab1
----
-19

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( 11 ) + col0 col0 FROM tab2 WHERE col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4772
SELECT MAX( DISTINCT + + col1 ) FROM tab1
----
47

skipif mysql # not compatible
query I rowsort label-4772
SELECT MAX ( DISTINCT + + col1 ) FROM tab1
----
47

query I rowsort
SELECT ALL - + col1 + 95 AS col2 FROM tab2 AS cor0
----
18
28
44

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 85 col2 FROM tab1 cor0
----
-85
-85
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-4775
SELECT - + 33 + - COUNT( * ) FROM tab0 AS cor0
----
-36

skipif mysql # not compatible
query I rowsort label-4775
SELECT - + 33 + - COUNT ( * ) FROM tab0 AS cor0
----
-36

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL > - 79
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4777
SELECT ALL + 69 DIV col0 AS col0 FROM tab0
----
0
0
4

skipif mysql # not compatible
query I rowsort label-4777
SELECT ALL + 69 / col0 AS col0 FROM tab0
----
0
0
4

onlyif mysql # aggregate syntax: 
query I rowsort label-4778
SELECT ALL - - COUNT( ALL + col0 ) + - COUNT( * ) + COUNT( * ) * - 91 AS col0 FROM tab0 AS cor0
----
-273

skipif mysql # not compatible
query I rowsort label-4778
SELECT ALL - - COUNT ( ALL + col0 ) + - COUNT ( * ) + COUNT ( * ) * - 91 AS col0 FROM tab0 AS cor0
----
-273

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4779
SELECT ALL + - col0 - - col1 + CAST( NULL AS DECIMAL ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4779
SELECT ALL + - col0 - - col1 + CAST ( NULL AS REAL ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4780
SELECT DISTINCT COUNT( * ) * + COUNT( * ) + + - 35 AS col0 FROM tab1
----
-26

skipif mysql # not compatible
query I rowsort label-4780
SELECT DISTINCT COUNT ( * ) * + COUNT ( * ) + + - 35 AS col0 FROM tab1
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-4781
SELECT COUNT( col2 ) FROM tab1 WHERE NULL <> col0 + - - 83
----
0

skipif mysql # not compatible
query I rowsort label-4781
SELECT COUNT ( col2 ) FROM tab1 WHERE NULL <> col0 + - - 83
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4782
SELECT + 71 + - + COUNT( * ) AS col0 FROM tab0
----
68

skipif mysql # not compatible
query I rowsort label-4782
SELECT + 71 + - + COUNT ( * ) AS col0 FROM tab0
----
68

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col1 - - col2 + - col1 < ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4784
SELECT ALL + 73 * - - COUNT( * ) AS col2 FROM tab2
----
219

skipif mysql # not compatible
query I rowsort label-4784
SELECT ALL + 73 * - - COUNT ( * ) AS col2 FROM tab2
----
219

query I rowsort
SELECT + col0 * col2 * col0 + + col0 * col1 * - + 46 AS col1 FROM tab1
----
216852
366366
406725

query III rowsort
SELECT * FROM tab1 WHERE col1 * + col0 * - ( - col2 ) NOT IN ( col0, - 12 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4787
SELECT DISTINCT + MAX( ALL + - ( + col2 ) ) DIV + + 10 FROM tab1
----
-5

skipif mysql # not compatible
query I rowsort label-4787
SELECT DISTINCT + MAX ( ALL + - ( + col2 ) ) / + + 10 FROM tab1
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-4788
SELECT ALL - MIN( - col2 ) FROM tab0
----
99

skipif mysql # not compatible
query I rowsort label-4788
SELECT ALL - MIN ( - col2 ) FROM tab0
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4789
SELECT - + SUM( ALL - col0 ) AS col2 FROM tab0 AS cor0
----
199

skipif mysql # not compatible
query I rowsort label-4789
SELECT - + SUM ( ALL - col0 ) AS col2 FROM tab0 AS cor0
----
199

query I rowsort
SELECT ALL - + 61 * + col0 AS col2 FROM tab2 AS cor0
----
-2806
-3904
-4575

query I rowsort
SELECT 25 AS col0 FROM tab0 AS cor0 WHERE NOT NULL >= NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4792
SELECT DISTINCT COUNT( * ) DIV + ( + MAX( - - col1 ) ) * - 4 AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-4792
SELECT DISTINCT COUNT ( * ) / + ( + MAX ( - - col1 ) ) * - 4 AS col1 FROM tab1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4793
SELECT DISTINCT col2 col1, CAST( NULL AS SIGNED ) AS col1 FROM tab0 cor0
----
10
NULL
47
NULL
99
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4793
SELECT DISTINCT col2 col1, CAST ( NULL AS INTEGER ) AS col1 FROM tab0 cor0
----
10
NULL
47
NULL
99
NULL

query I rowsort
SELECT + 36 * - ( 5 ) AS col0 FROM tab0 AS cor0
----
-180
-180
-180

query I rowsort
SELECT + 3 * - 44 * col2 AS col0 FROM tab1 AS cor0
----
-12672
-7788
-8976

query I rowsort
SELECT DISTINCT + - 7 AS col2 FROM tab1 AS cor0
----
-7

onlyif mysql # aggregate syntax: 
query II rowsort label-4797
SELECT ALL - 73, COUNT( * ) AS col1 FROM tab1 AS cor0
----
-73
3

skipif mysql # not compatible
query II rowsort label-4797
SELECT ALL - 73, COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-73
3

query I rowsort
SELECT DISTINCT col2 FROM tab0 AS cor0 WHERE NOT col0 <= col2 - - - col0 + + 26
----
10
99

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL > - - 99
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4800
SELECT + COUNT( * ) AS col2, 93 AS col0 FROM tab2 WHERE NOT NULL >= NULL
----
0
93

skipif mysql # not compatible
query II rowsort label-4800
SELECT + COUNT ( * ) AS col2, 93 AS col0 FROM tab2 WHERE NOT NULL >= NULL
----
0
93

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND - col1 * + col2 + 32
----

query I rowsort
SELECT DISTINCT - col2 FROM tab2 WHERE NOT - 12 * - 51 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col0 * + + col0 * - col1 * - - 25 + - col1 + col2 AS col2 FROM tab2
----
2697872
7884763
9421866

query I rowsort
SELECT ALL 9 * + - col0 + - col0 FROM tab0 AS cor0
----
-150
-870
-970

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL BETWEEN - col2 - col1 AND 35
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4806
SELECT - 86 * + - CAST( NULL AS DECIMAL ) * col1 FROM tab2 WHERE 79 * - - col2 + - col2 * - 58 / - - col0 + col1 * - + col1 IS NULL
----

skipif mysql # not compatible
query I rowsort label-4806
SELECT - 86 * + - CAST ( NULL AS REAL ) * col1 FROM tab2 WHERE 79 * - - col2 + - col2 * - 58 / - - col0 + col1 * - + col1 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 88, 91 col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
18 values hashing to 3d78e62f37fea15d54aedcf5821b169e

onlyif mysql # aggregate syntax: 
query I rowsort label-4808
SELECT DISTINCT - COUNT( * ) * - + SUM( ALL - col2 ) FROM tab0
----
-468

skipif mysql # not compatible
query I rowsort label-4808
SELECT DISTINCT - COUNT ( * ) * - + SUM ( ALL - col2 ) FROM tab0
----
-468

query I rowsort
SELECT + 45 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 60b9f935ee8e404d155a2f5e9515c050

query II rowsort
SELECT DISTINCT col2 AS col1, col1 FROM tab1
----
59
5
68
47
96
14

query II rowsort
SELECT ALL col1 AS col0, col0 FROM tab0 AS cor0
----
1
97
21
87
81
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4812
SELECT DISTINCT + + CAST( NULL AS SIGNED ) + - col1 AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4812
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) + - col1 AS col1 FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col1 <= - col1
----

query I rowsort
SELECT ALL + 10 + - - col0 FROM tab1 AS cor0
----
101
61
95

query I rowsort
SELECT - + 30 + + + col0 FROM tab1 cor0
----
21
55
61

query I rowsort
SELECT + + col2 + - - 84 AS col2 FROM tab0 AS cor0
----
131
183
94

query I rowsort
SELECT ALL + col1 + col2 + + 80 FROM tab0 AS cor0 WHERE - 78 IS NOT NULL
----
111
180
208

query I rowsort
SELECT 44 FROM tab2 WHERE col2 IS NOT NULL
----
44
44
44

onlyif mysql # aggregate syntax: 
query I rowsort label-4819
SELECT ALL - COUNT( * ) + - 89 FROM tab2
----
-92

skipif mysql # not compatible
query I rowsort label-4819
SELECT ALL - COUNT ( * ) + - 89 FROM tab2
----
-92

query I rowsort
SELECT DISTINCT + 13 - 47 FROM tab1
----
-34

query III rowsort
SELECT * FROM tab1 WHERE + ( - + ( + - 45 ) ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4822
SELECT - COUNT( * ) * + 51 AS col0 FROM tab0
----
-153

skipif mysql # not compatible
query I rowsort label-4822
SELECT - COUNT ( * ) * + 51 AS col0 FROM tab0
----
-153

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4823
SELECT DISTINCT 94 * + - COUNT( * ) DIV - COUNT( * ) AS col0 FROM tab0 cor0 WHERE col1 IS NOT NULL OR NULL >= + col2
----
94

skipif mysql # not compatible
query I rowsort label-4823
SELECT DISTINCT 94 * + - COUNT ( * ) / - COUNT ( * ) AS col0 FROM tab0 cor0 WHERE col1 IS NOT NULL OR NULL >= + col2
----
94

onlyif mysql # DIV for integer division: 
query I rowsort label-4824
SELECT - + ( ( - 73 ) ) DIV - + col0 - - - ( - + 94 ) FROM tab2 AS cor0
----
93
93
94

skipif mysql # not compatible
query I rowsort label-4824
SELECT - + ( ( - 73 ) ) / - + col0 - - - ( - + 94 ) FROM tab2 AS cor0
----
93
93
94

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col2 >= - - col2
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NULL ) = - 32
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 97 col0 FROM tab2 cor0
----
97
97
97

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col0 * + col1 * col1 >= - 97
----

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL IN ( - ( + col0 ) * col2 * - col0 - + + col0 + - col0 * col2 + + col2 / - 27 * + col2, col0 * - 57 )
----

query II rowsort
SELECT - col0 / - col2 * + col1 AS col2, ( - - 16 ) FROM tab0 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT - col2 AS col2, col1 AS col1 FROM tab0
----
-10
21
-47
81
-99
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4832
SELECT + COUNT( * ) * - - 14 FROM tab2
----
42

skipif mysql # not compatible
query I rowsort label-4832
SELECT + COUNT ( * ) * - - 14 FROM tab2
----
42

query I rowsort
SELECT - 13 * + col0 * + 69 * + + 89 FROM tab0 cor0
----
-1197495
-6945471
-7743801

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4834
SELECT DISTINCT - col0 + + col0 + - col1 * 35 + - + CAST( col0 AS SIGNED ) * + + CAST( NULL AS SIGNED ) * - - col1 * + 93 * 62 col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4834
SELECT DISTINCT - col0 + + col0 + - col1 * 35 + - + CAST ( col0 AS INTEGER ) * + + CAST ( NULL AS INTEGER ) * - - col1 * + 93 * 62 col0 FROM tab0 AS cor0
----
NULL

query II rowsort
SELECT ALL + 66, col1 FROM tab0 AS cor0
----
66
1
66
21
66
81

query I rowsort
SELECT ( - col1 ) FROM tab2 AS cor0 WHERE NOT ( ( + col1 IN ( 20, - col0 * - col1 + - col0, - 51 + 17 + - ( - + col0 ), - - ( + 18 ) ) ) )
----
-51
-67
-77

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NOT - 19 <= NULL )
----

query I rowsort
SELECT col1 - - + col2 FROM tab1 AS cor0 WHERE NOT 91 * - col2 + + col0 IS NULL
----
110
115
64

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4839
SELECT ALL + - 40 DIV - COUNT( * ) AS col1 FROM tab1 AS cor0
----
13

skipif mysql # not compatible
query I rowsort label-4839
SELECT ALL + - 40 / - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4840
SELECT ALL col1 FROM tab2 WHERE + col1 * - col2 + + + 47 + - - col1 * + 79 + - + CAST( NULL AS SIGNED ) * + + col2 - - col2 + - + col2 / - + 6 * - col1 + + + col0 / + ( + CAST( NULL AS SIGNED ) ) IN ( col1 - - col0 )
----

skipif mysql # not compatible
query I rowsort label-4840
SELECT ALL col1 FROM tab2 WHERE + col1 * - col2 + + + 47 + - - col1 * + 79 + - + CAST ( NULL AS INTEGER ) * + + col2 - - col2 + - + col2 / - + 6 * - col1 + + + col0 / + ( + CAST ( NULL AS INTEGER ) ) IN ( col1 - - col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 80, col1 col1 FROM tab1
----
80
14
80
47
80
5

query I rowsort
SELECT - 53 AS col1 FROM tab2 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT DISTINCT + col1, 69 + 61 + - + 56 AS col2 FROM tab0 WHERE NULL >= - 9
----

query I rowsort
SELECT ( 42 ) AS col0 FROM tab0
----
42
42
42

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4845
SELECT - + CAST( NULL AS SIGNED ), + col2 * - - col2 AS col1 FROM tab1 AS cor0
----
NULL
3481
NULL
4624
NULL
9216

skipif mysql # not compatible
query II rowsort label-4845
SELECT - + CAST ( NULL AS INTEGER ), + col2 * - - col2 AS col1 FROM tab1 AS cor0
----
NULL
3481
NULL
4624
NULL
9216

onlyif mysql # aggregate syntax: 
query I rowsort label-4846
SELECT + MAX( ALL 3 ) + - 34 FROM tab2 WHERE - col1 IS NOT NULL
----
-31

skipif mysql # not compatible
query I rowsort label-4846
SELECT + MAX ( ALL 3 ) + - 34 FROM tab2 WHERE - col1 IS NOT NULL
----
-31

query I rowsort
SELECT ALL 60 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to a97561e17ecaa618227c75a57b268f33

query I rowsort
SELECT + col1 * 10 AS col0 FROM tab2
----
510
670
770

query II rowsort
SELECT - ( 97 ) AS col1, - col1 * - 96 AS col2 FROM tab0
----
-97
2016
-97
7776
-97
96

onlyif mysql # aggregate syntax: 
query I rowsort label-4850
SELECT ALL - MAX( DISTINCT - col1 ) + - 35 FROM tab0 AS cor0
----
-34

skipif mysql # not compatible
query I rowsort label-4850
SELECT ALL - MAX ( DISTINCT - col1 ) + - 35 FROM tab0 AS cor0
----
-34

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - 28 NOT BETWEEN NULL AND 38 / col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4852
SELECT ALL CAST( NULL AS SIGNED ) + + col0 AS col0, + col1 + - col0 AS col0 FROM tab1 cor0
----
NULL
-37
NULL
-44
NULL
-80

skipif mysql # not compatible
query II rowsort label-4852
SELECT ALL CAST ( NULL AS INTEGER ) + + col0 AS col0, + col1 + - col0 AS col0 FROM tab1 cor0
----
NULL
-37
NULL
-44
NULL
-80

query I rowsort
SELECT ALL 48 + col2 FROM tab0 AS cor0
----
147
58
95

query I rowsort
SELECT - ( + + col0 ) AS col2 FROM tab2 AS cor0 WHERE col1 IS NOT NULL
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-4855
SELECT DISTINCT 54 * - - MIN( + 94 ) - - + 70 FROM tab0
----
5146

skipif mysql # not compatible
query I rowsort label-4855
SELECT DISTINCT 54 * - - MIN ( + 94 ) - - + 70 FROM tab0
----
5146

query I rowsort
SELECT ALL + col2 AS col1 FROM tab0 WHERE NOT - 63 IS NOT NULL AND NULL <= col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4857
SELECT ALL + COUNT( * ) - + 22 FROM tab2
----
-19

skipif mysql # not compatible
query I rowsort label-4857
SELECT ALL + COUNT ( * ) - + 22 FROM tab2
----
-19

query III rowsort
SELECT * FROM tab1 WHERE NOT ( - - col1 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4859
SELECT DISTINCT - SUM( ALL CAST( NULL AS DECIMAL ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4859
SELECT DISTINCT - SUM ( ALL CAST ( NULL AS REAL ) ) FROM tab1
----
NULL

query II rowsort
SELECT - col0 AS col2, 17 FROM tab1
----
-51
17
-85
17
-91
17

query I rowsort
SELECT col1 * - col0 * - col2 + col1 * + col2 FROM tab1 AS cor0
----
25370
294032
69888

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col0 col0 FROM tab2 AS cor0 WHERE NOT - 19 <> - col0 * col0
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-4863
SELECT + COUNT( * ), MIN( ALL - + col0 ) * + CAST( NULL AS DECIMAL ) AS col2 FROM tab1 AS cor0
----
3
NULL

skipif mysql # not compatible
query II rowsort label-4863
SELECT + COUNT ( * ), MIN ( ALL - + col0 ) * + CAST ( NULL AS REAL ) AS col2 FROM tab1 AS cor0
----
3
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4864
SELECT - + SUM( DISTINCT - col2 ) AS col0 FROM tab2 AS cor0
----
121

skipif mysql # not compatible
query I rowsort label-4864
SELECT - + SUM ( DISTINCT - col2 ) AS col0 FROM tab2 AS cor0
----
121

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col0 * - - col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4866
SELECT DISTINCT - 41 * COUNT( * ) * COUNT( * ) FROM tab1
----
-369

skipif mysql # not compatible
query I rowsort label-4866
SELECT DISTINCT - 41 * COUNT ( * ) * COUNT ( * ) FROM tab1
----
-369

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4867
SELECT ALL ( + 83 ) / + CAST( NULL AS DECIMAL ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4867
SELECT ALL ( + 83 ) / + CAST ( NULL AS REAL ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 22 FROM tab0 AS cor0 WHERE - col1 * + col1 * 21 IS NULL
----

query II rowsort
SELECT DISTINCT 94 * + col1 + - + 94 + - col1, col2 FROM tab2 AS cor0
----
4649
23
6137
58
7067
40

query I rowsort
SELECT - col2 * + - ( - col0 ) * - + col0 * + col2 FROM tab1 AS cor0
----
23970816
25150225
38291344

query I rowsort
SELECT DISTINCT 10 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4872
SELECT DISTINCT - CAST( col2 AS SIGNED ) * + - col0 / + + 13 * CAST( NULL AS SIGNED ) * + - col1 AS col1 FROM tab2 AS cor0 WHERE + col1 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4872
SELECT DISTINCT - CAST ( col2 AS INTEGER ) * + - col0 / + + 13 * CAST ( NULL AS INTEGER ) * + - col1 AS col1 FROM tab2 AS cor0 WHERE + col1 IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4873
SELECT COUNT( * ) FROM tab2 cor0 WHERE NOT - col0 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-4873
SELECT COUNT ( * ) FROM tab2 cor0 WHERE NOT - col0 IS NULL
----
3

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT NULL BETWEEN col1 + col0 + col1 * + - col2 AND - col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 col0 FROM tab2 AS cor0 WHERE NOT + col0 * - - col2 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4876
SELECT ALL + 19 DIV - col1 AS col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4876
SELECT ALL + 19 / - col1 AS col2 FROM tab2
----
0
0
0

query III rowsort
SELECT * FROM tab0 WHERE ( NULL >= NULL )
----

query I rowsort
SELECT DISTINCT - col0 + + + col1 AS col2 FROM tab2 WHERE NOT NULL <= + 44
----

query I rowsort
SELECT ALL - 59 - - col1 AS col2 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4880
SELECT ALL + ( - + 30 ) + + + MIN( - - col1 ) AS col1 FROM tab1 WHERE NULL IS NULL
----
-25

skipif mysql # not compatible
query I rowsort label-4880
SELECT ALL + ( - + 30 ) + + + MIN ( - - col1 ) AS col1 FROM tab1 WHERE NULL IS NULL
----
-25

query I rowsort
SELECT ALL - col2 * - - 12 + - col0 AS col1 FROM tab0 AS cor0
----
-1285
-207
-579

onlyif mysql # aggregate syntax: 
query I rowsort label-4882
SELECT MAX( ALL + - 40 ) FROM tab0 AS cor0
----
-40

skipif mysql # not compatible
query I rowsort label-4882
SELECT MAX ( ALL + - 40 ) FROM tab0 AS cor0
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-4883
SELECT ALL + + SUM( - col0 ) + COUNT( * ) AS col2 FROM tab2 AS cor0
----
-182

skipif mysql # not compatible
query I rowsort label-4883
SELECT ALL + + SUM ( - col0 ) + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-182

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4884
SELECT DISTINCT COUNT( * ) DIV COUNT( * ) FROM tab1 AS cor0 WHERE col1 IS NOT NULL
----
1

skipif mysql # not compatible
query I rowsort label-4884
SELECT DISTINCT COUNT ( * ) / COUNT ( * ) FROM tab1 AS cor0 WHERE col1 IS NOT NULL
----
1

query I rowsort
SELECT DISTINCT - 56 FROM tab2 AS cor0 WHERE NOT NULL < + 16 + - - col0 * - col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4886
SELECT ALL + COUNT( ALL - 88 ) * - SUM( ALL - ( + - col2 ) ) + CAST( + COUNT( * ) AS SIGNED ) DIV + COUNT( * ) AS col2 FROM tab2
----
-362

skipif mysql # not compatible
query I rowsort label-4886
SELECT ALL + COUNT ( ALL - 88 ) * - SUM ( ALL - ( + - col2 ) ) + CAST ( + COUNT ( * ) AS INTEGER ) / + COUNT ( * ) AS col2 FROM tab2
----
-362

onlyif mysql # aggregate syntax: 
query II rowsort label-4887
SELECT DISTINCT - COUNT( * ) * 59, + 77 AS col1 FROM tab2
----
-177
77

skipif mysql # not compatible
query II rowsort label-4887
SELECT DISTINCT - COUNT ( * ) * 59, + 77 AS col1 FROM tab2
----
-177
77

query I rowsort
SELECT 49 AS col1 FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to cb40783c0fff72e8802cdf0682e7cb55

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - col0 IS NULL AND NOT col1 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 6 + + col1 + 65 * - col2 * + col2 col0 FROM tab0 AS cor0
----
-143510
-637070
-6485

query I rowsort
SELECT DISTINCT - - col0 + + + col2 FROM tab1 AS cor0
----
144
147
159

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE col2 NOT BETWEEN + 45 AND NULL
----
87
21
10

query II rowsort
SELECT - col1 AS col1, 63 - col0 AS col1 FROM tab0 AS cor0 WHERE - col0 * col0 IS NOT NULL
----
-1
-34
-21
-24
-81
48

query II rowsort
SELECT - - 66 AS col0, + 77 * + col2 FROM tab2 cor0
----
66
1771
66
3080
66
4466

onlyif mysql # aggregate syntax: 
query I rowsort label-4895
SELECT ALL + COUNT( * ) + + 51 + - - 17 AS col0 FROM tab0 AS cor0
----
71

skipif mysql # not compatible
query I rowsort label-4895
SELECT ALL + COUNT ( * ) + + 51 + - - 17 AS col0 FROM tab0 AS cor0
----
71

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 88 AS col2, - col0 + + + 16 col2 FROM tab0 AS cor0
----
-88
-71
-88
-81
-88
1

query I rowsort
SELECT + ( - - 93 ) FROM tab1 AS cor0
----
93
93
93

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col0 <> + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-4899
SELECT - + 82, 67 + - - MAX( col0 ) AS col1 FROM tab0 AS cor0
----
-82
164

skipif mysql # not compatible
query II rowsort label-4899
SELECT - + 82, 67 + - - MAX ( col0 ) AS col1 FROM tab0 AS cor0
----
-82
164

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4900
SELECT ALL * FROM tab1 WHERE CAST( NULL AS SIGNED ) + - col2 NOT BETWEEN + col2 AND - - 7
----

skipif mysql # not compatible
query III rowsort label-4900
SELECT ALL * FROM tab1 WHERE CAST ( NULL AS INTEGER ) + - col2 NOT BETWEEN + col2 AND - - 7
----

query I rowsort
SELECT DISTINCT + 66 AS col0 FROM tab0 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT DISTINCT - ( - 32 ) AS col2, - 51 * + col0 AS col2 FROM tab0
----
32
-4437
32
-4947
32
-765

onlyif mysql # aggregate syntax: 
query I rowsort label-4903
SELECT - MIN( DISTINCT + - 32 ) AS col1 FROM tab0
----
32

skipif mysql # not compatible
query I rowsort label-4903
SELECT - MIN ( DISTINCT + - 32 ) AS col1 FROM tab0
----
32

query II rowsort
SELECT 20 * - + col0 AS col2, - col1 FROM tab0
----
-1740
-21
-1940
-1
-300
-81

query I rowsort
SELECT ( - 49 ) * - col0 + - - 18 AS col0 FROM tab2
----
2272
3154
3693

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - 33 col2 FROM tab1 AS cor0
----
-1683
-2805
-3003

query I rowsort
SELECT - col0 * col2 AS col2 FROM tab2 cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-1058
-2560
-4350

query I rowsort
SELECT - col2 + - col2 * 7 AS col2 FROM tab2
----
-184
-320
-464

query II rowsort
SELECT 87, col1 AS col0 FROM tab2 cor0
----
87
51
87
67
87
77

onlyif mysql # aggregate syntax: 
query II rowsort label-4910
SELECT ALL + ( - ( 81 ) ), COUNT( * ) col2 FROM tab1 AS cor0
----
-81
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4910
SELECT ALL + ( - ( 81 ) ), COUNT ( * ) col2 FROM tab1 AS cor0
----
-81
3

query II rowsort
SELECT ALL + 54 AS col0, 42 FROM tab0 AS cor0
----
54
42
54
42
54
42

onlyif mysql # aggregate syntax: 
query I rowsort label-4912
SELECT ALL - - 73 + - COUNT( * ) AS col0 FROM tab0 cor0
----
70

skipif mysql # not compatible
query I rowsort label-4912
SELECT ALL - - 73 + - COUNT ( * ) AS col0 FROM tab0 cor0
----
70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4913
SELECT col2 * - - col0 * - col0 * - col0 * + CAST( NULL AS SIGNED ) + - - 34 AS col0 FROM tab1 AS cor0 WHERE ( CAST( + 58 AS SIGNED ) ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-4913
SELECT col2 * - - col0 * - col0 * - col0 * + CAST ( NULL AS INTEGER ) + - - 34 AS col0 FROM tab1 AS cor0 WHERE ( CAST ( + 58 AS INTEGER ) ) IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 1 > NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 col1 FROM tab0 WHERE + + 12 * - ( col0 ) - + - col0 = + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4916
SELECT DISTINCT - COUNT( * ) * - COUNT( * ) AS col0 FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-4916
SELECT DISTINCT - COUNT ( * ) * - COUNT ( * ) AS col0 FROM tab0
----
9

query I rowsort
SELECT - 67 * - - col0 AS col2 FROM tab0
----
-1005
-5829
-6499

query I rowsort
SELECT DISTINCT col0 * + - col1 AS col2 FROM tab1
----
-425
-4277
-714

query I rowsort
SELECT col1 * + - col1 * + - col1 FROM tab1
----
103823
125
2744

query I rowsort
SELECT + + col1 * ( - - col0 ) AS col0 FROM tab0 WHERE - col0 <> NULL
----

query I rowsort
SELECT DISTINCT + col0 * + + col1 * - col2 FROM tab1
----
-25075
-290836
-68544

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4922
SELECT DISTINCT + COUNT( * ) * + - CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4922
SELECT DISTINCT + COUNT ( * ) * + - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT 31 + col0 FROM tab2
----
106
77
95

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + ( - col0 ) * + + col1 IS NULL
----

query II rowsort
SELECT ALL + 99 * - 83 * - col1 + - col2 + + col0 - - 70 - col0 AS col1, + col2 FROM tab0 AS cor0
----
172617
10
665600
47
8188
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4926
SELECT - + CAST( - - col0 AS SIGNED ) + col1 FROM tab2 AS cor0
----
-8
13
5

skipif mysql # not compatible
query I rowsort label-4926
SELECT - + CAST ( - - col0 AS INTEGER ) + col1 FROM tab2 AS cor0
----
-8
13
5

onlyif mysql # aggregate syntax: 
query I rowsort label-4927
SELECT DISTINCT COUNT( * ) + - 56 AS col2 FROM tab1
----
-53

skipif mysql # not compatible
query I rowsort label-4927
SELECT DISTINCT COUNT ( * ) + - 56 AS col2 FROM tab1
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-4928
SELECT + 65 * COUNT( * ) FROM tab1
----
195

skipif mysql # not compatible
query I rowsort label-4928
SELECT + 65 * COUNT ( * ) FROM tab1
----
195

onlyif mysql # aggregate syntax: 
query I rowsort label-4929
SELECT COUNT( DISTINCT + 88 ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-4929
SELECT COUNT ( DISTINCT + 88 ) FROM tab0
----
1

query I rowsort
SELECT - + 42 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 9894093f29c0defae91347934f060329

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4931
SELECT DISTINCT - 79 * 14 * + - ( - CAST( NULL AS SIGNED ) ) * - ( + 32 ) / + 26 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4931
SELECT DISTINCT - 79 * 14 * + - ( - CAST ( NULL AS INTEGER ) ) * - ( + 32 ) / + 26 FROM tab1
----
NULL

query I rowsort
SELECT ALL col1 FROM tab1 WHERE NOT + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4933
SELECT + SUM( ALL col0 ) FROM tab0 cor0
----
199

skipif mysql # not compatible
query I rowsort label-4933
SELECT + SUM ( ALL col0 ) FROM tab0 cor0
----
199

query I rowsort
SELECT ( - + 84 ) FROM tab1 AS cor0
----
-84
-84
-84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 col2, col1 * + 78 * 99 * - ( + - col2 ) AS col2 FROM tab0 WHERE NOT + col0 * col1 / 47 < - 75 + + + col0 * + 18
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 50 * - 63 col0 FROM tab1
----
-3150

onlyif mysql # aggregate syntax: 
query II rowsort label-4937
SELECT 20 AS col1, + COUNT( * ) col0 FROM tab0
----
20
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4937
SELECT 20 AS col1, + COUNT ( * ) col0 FROM tab0
----
20
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 AS col1, - col0 col1 FROM tab2
----
46
-46
64
-64
75
-75

query II rowsort
SELECT DISTINCT col1, - 14 AS col1 FROM tab0
----
1
-14
21
-14
81
-14

query III rowsort
SELECT * FROM tab2 WHERE NOT col0 * + col0 + + + col2 * - col1 NOT IN ( + col2, - col0 )
----

query I rowsort
SELECT - + 39 * + 64 * + - col2 AS col1 FROM tab1 cor0
----
147264
169728
239616

query II rowsort
SELECT + col2, - 75 AS col1 FROM tab0 cor0
----
10
-75
47
-75
99
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-4943
SELECT ALL - MAX( ALL col2 ) FROM tab0 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-4943
SELECT ALL - MAX ( ALL col2 ) FROM tab0 AS cor0
----
-99

query II rowsort
SELECT + 77 * - - col0, + 89 * + col0 AS col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
1155
1335
6699
7743
7469
8633

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4945
SELECT DISTINCT - 80 + col1 * + CAST( + col1 AS SIGNED ) AS col1 FROM tab1 cor0
----
-55
116
2129

skipif mysql # not compatible
query I rowsort label-4945
SELECT DISTINCT - 80 + col1 * + CAST ( + col1 AS INTEGER ) AS col1 FROM tab1 cor0
----
-55
116
2129

query I rowsort
SELECT - col1 + + col2 * + col1 + + + 64 AS col0 FROM tab1 AS cor0
----
1394
3213
354

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col2 + 48 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col0 <= - 22
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ( + 67 ) + + - 44 AS col1 FROM tab0 AS cor0
----
23
23
23

query I rowsort
SELECT DISTINCT - 2 + ( + col0 ) + - col1 + + col0 + - 48 FROM tab2 AS cor0
----
-9
1
33

query I rowsort
SELECT ALL + 74 - + col2 - - - ( - col1 ) AS col0 FROM tab1
----
-8
20
53

onlyif mysql # aggregate syntax: 
query I rowsort label-4952
SELECT DISTINCT + MIN( DISTINCT - col1 ) * - 91 * COUNT( * ) * + COUNT( * ) FROM tab2
----
63063

skipif mysql # not compatible
query I rowsort label-4952
SELECT DISTINCT + MIN ( DISTINCT - col1 ) * - 91 * COUNT ( * ) * + COUNT ( * ) FROM tab2
----
63063

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - + 56 > + - 31
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT DISTINCT col0 * + ( + 62 ) AS col0, 14 FROM tab2
----
2852
14
3968
14
4650
14

query II rowsort
SELECT + col1, col2 * + + col1 * + col2 FROM tab0
----
1
9801
21
2100
81
178929

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4956
SELECT ALL CAST( NULL AS SIGNED ) * + col2 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4956
SELECT ALL CAST ( NULL AS INTEGER ) * + col2 AS col2 FROM tab1
----
NULL
NULL
NULL

query II rowsort
SELECT - + col1 AS col2, col2 FROM tab2 AS cor0
----
-51
23
-67
58
-77
40

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 - + - 59 * + col2 col1 FROM tab0 AS cor0
----
2854
5842
611

query I rowsort
SELECT DISTINCT - col2 + + + col2 * + col0 + + col2 * + - 61 AS col2 FROM tab0 cor0
----
-2209
250
3465

onlyif mysql # aggregate syntax: 
query I rowsort label-4960
SELECT - - COUNT( * ) - + COUNT( * ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4960
SELECT - - COUNT ( * ) - + COUNT ( * ) FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4961
SELECT ALL - MIN( - 91 ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4961
SELECT ALL - MIN ( - 91 ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4962
SELECT - MAX( DISTINCT - col0 ) AS col0 FROM tab1
----
51

skipif mysql # not compatible
query I rowsort label-4962
SELECT - MAX ( DISTINCT - col0 ) AS col0 FROM tab1
----
51

onlyif mysql # aggregate syntax: 
query II rowsort label-4963
SELECT + 15 * - COUNT( * ) AS col2, + COUNT( * ) FROM tab0 AS cor0
----
-45
3

skipif mysql # not compatible
query II rowsort label-4963
SELECT + 15 * - COUNT ( * ) AS col2, + COUNT ( * ) FROM tab0 AS cor0
----
-45
3

onlyif mysql # DIV for integer division: 
query I rowsort label-4964
SELECT - col0 DIV + 79 FROM tab0 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-4964
SELECT - col0 / + 79 FROM tab0 AS cor0
----
-1
-1
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col2 + + 60 + 50 >= - col0
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col0 * col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 88 / - col1 < + 44 * 69
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4968
SELECT DISTINCT - - col0 * + 69 * + CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4968
SELECT DISTINCT - - col0 * + 69 * + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4969
SELECT COUNT( col2 ) col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4969
SELECT COUNT ( col2 ) col2 FROM tab2 AS cor0
----
3

query I rowsort
SELECT DISTINCT + col0 * + 80 + - + col0 AS col0 FROM tab0 AS cor0
----
1185
6873
7663

onlyif mysql # aggregate syntax: 
query I rowsort label-4971
SELECT DISTINCT + COUNT( * ) * - 21 FROM tab0
----
-63

skipif mysql # not compatible
query I rowsort label-4971
SELECT DISTINCT + COUNT ( * ) * - 21 FROM tab0
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-4972
SELECT DISTINCT + MIN( 92 ) AS col2 FROM tab2
----
92

skipif mysql # not compatible
query I rowsort label-4972
SELECT DISTINCT + MIN ( 92 ) AS col2 FROM tab2
----
92

onlyif mysql # DIV for integer division: 
query I rowsort label-4973
SELECT 43 DIV - - col2 FROM tab2
----
0
1
1

skipif mysql # not compatible
query I rowsort label-4973
SELECT 43 / - - col2 FROM tab2
----
0
1
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4974
SELECT DISTINCT ( - + COUNT( * ) ) DIV + 90 * + 27 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-4974
SELECT DISTINCT ( - + COUNT ( * ) ) / + 90 * + 27 FROM tab1
----
0

query II rowsort
SELECT 28 AS col2, + col2 AS col2 FROM tab1
----
28
59
28
68
28
96

query II rowsort
SELECT ALL col1, col0 - - col0 AS col0 FROM tab0
----
1
194
21
174
81
30

onlyif mysql # aggregate syntax: 
query I rowsort label-4977
SELECT ALL + COUNT( * ) * - - ( + MAX( DISTINCT - + col2 ) ) FROM tab2 WHERE NOT NULL IS NOT NULL
----
-69

skipif mysql # not compatible
query I rowsort label-4977
SELECT ALL + COUNT ( * ) * - - ( + MAX ( DISTINCT - + col2 ) ) FROM tab2 WHERE NOT NULL IS NOT NULL
----
-69

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 77 col1 FROM tab2
----
77

query I rowsort
SELECT + 65 * + 88 * col0 FROM tab0 AS cor0
----
497640
554840
85800

query I rowsort
SELECT ALL 42 * 1 FROM tab0 cor0
----
42
42
42

query I rowsort
SELECT col0 + + + 51 FROM tab1
----
102
136
142

query II rowsort
SELECT col1 AS col0, col2 + + col2 + + ( - 73 ) AS col1 FROM tab0 AS cor0
----
1
125
21
-53
81
21

query I rowsort
SELECT ALL col1 + - ( - col2 ) FROM tab0 AS cor0
----
100
128
31

query I rowsort
SELECT ALL + col2 * - + 11 + + col1 FROM tab2 AS cor0
----
-202
-363
-571

query I rowsort
SELECT ALL + col1 + 84 FROM tab2 AS cor0
----
135
151
161

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col2 * - 66 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4987
SELECT + COUNT( - 48 ) FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-4987
SELECT + COUNT ( - 48 ) FROM tab1 cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col2 col2, - 59 FROM tab0 AS cor0
----
10
-59
47
-59
99
-59

onlyif mysql # DIV for integer division: 
query I rowsort label-4989
SELECT DISTINCT - col1 + + col2 DIV - + col0 AS col1 FROM tab0 AS cor0
----
-2
-21
-84

skipif mysql # not compatible
query I rowsort label-4989
SELECT DISTINCT - col1 + + col2 / - + col0 AS col1 FROM tab0 AS cor0
----
-2
-21
-84

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4990
SELECT * FROM tab0 AS cor0 WHERE NULL IN ( - 48 * col1 * - col0, ( + col1 ) * - CAST( + col0 AS SIGNED ) + + 92 * - col0 )
----

skipif mysql # not compatible
query III rowsort label-4990
SELECT * FROM tab0 AS cor0 WHERE NULL IN ( - 48 * col1 * - col0, ( + col1 ) * - CAST ( + col0 AS INTEGER ) + + 92 * - col0 )
----

query I rowsort
SELECT - col0 - + col2 + - - col1 + + col1 FROM tab1
----
-119
-134
-65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4992
SELECT ALL - COUNT( * ) - COUNT( DISTINCT + col1 ) AS col1, - COUNT( * ) * - + CAST( 87 AS SIGNED ) AS col0 FROM tab1
----
-6
261

skipif mysql # not compatible
query II rowsort label-4992
SELECT ALL - COUNT ( * ) - COUNT ( DISTINCT + col1 ) AS col1, - COUNT ( * ) * - + CAST ( 87 AS INTEGER ) AS col0 FROM tab1
----
-6
261

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4993
SELECT DISTINCT + + 71 + + col1 + - CAST( + col2 AS SIGNED ) * - - col0 FROM tab1 AS cor0
----
-4811
-4939
-6070

skipif mysql # not compatible
query I rowsort label-4993
SELECT DISTINCT + + 71 + + col1 + - CAST ( + col2 AS INTEGER ) * - - col0 FROM tab1 AS cor0
----
-4811
-4939
-6070

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 96 = + col2
----

query I rowsort
SELECT ALL + 29 * + - col2 AS col1 FROM tab1 cor0
----
-1711
-1972
-2784

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4996
SELECT DISTINCT + col0 * + CAST( - col0 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-2601
-7225
-8281

skipif mysql # not compatible
query I rowsort label-4996
SELECT DISTINCT + col0 * + CAST ( - col0 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-2601
-7225
-8281

query II rowsort
SELECT col0 AS col0, + 30 * - 70 FROM tab2 cor0
----
46
-2100
64
-2100
75
-2100

onlyif mysql # aggregate syntax: 
query I rowsort label-4998
SELECT ALL - SUM( - 44 ) FROM tab1 cor0
----
132

skipif mysql # not compatible
query I rowsort label-4998
SELECT ALL - SUM ( - 44 ) FROM tab1 cor0
----
132

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN - ( 93 ) AND 84
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( col1 ) * col0 * + col1 col0 FROM tab2 AS cor0
----
119646
336675
379456

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - + 6 * + 15 * - col0 col2, col1 * + 37 FROM tab2 AS cor0
----
4140
1887
5760
2849
6750
2479

onlyif mysql # aggregate syntax: 
query I rowsort label-5002
SELECT ALL - SUM( DISTINCT - col2 ) AS col0 FROM tab1
----
223

skipif mysql # not compatible
query I rowsort label-5002
SELECT ALL - SUM ( DISTINCT - col2 ) AS col0 FROM tab1
----
223

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5003
SELECT DISTINCT ( col2 ), - CAST( - 31 AS SIGNED ) * + 60 * - CAST( NULL AS SIGNED ) FROM tab0
----
10
NULL
47
NULL
99
NULL

skipif mysql # not compatible
query II rowsort label-5003
SELECT DISTINCT ( col2 ), - CAST ( - 31 AS INTEGER ) * + 60 * - CAST ( NULL AS INTEGER ) FROM tab0
----
10
NULL
47
NULL
99
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE col2 * col0 NOT BETWEEN + 40 / + + col0 * - col1 + - + col0 AND 50
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 WHERE NOT - col1 <> 21 + + col1
----

query I rowsort
SELECT ALL col2 * - + col1 + col1 + - + col2 FROM tab1
----
-1426
-3217
-349

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5007
SELECT DISTINCT + CAST( NULL AS SIGNED ) col1 FROM tab0 WHERE + col1 >= + col2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5007
SELECT DISTINCT + CAST ( NULL AS INTEGER ) col1 FROM tab0 WHERE + col1 >= + col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5008
SELECT DISTINCT - SUM( DISTINCT 68 ) FROM tab1
----
-68

skipif mysql # not compatible
query I rowsort label-5008
SELECT DISTINCT - SUM ( DISTINCT 68 ) FROM tab1
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-5009
SELECT DISTINCT + 45 + COUNT( * ) AS col0 FROM tab2 AS cor0
----
48

skipif mysql # not compatible
query I rowsort label-5009
SELECT DISTINCT + 45 + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-5010
SELECT ALL - - 45 + + SUM( - col2 ) col1 FROM tab2 AS cor0
----
-76

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5010
SELECT ALL - - 45 + + SUM ( - col2 ) col1 FROM tab2 AS cor0
----
-76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 16 + + - col0 + - - col1 col0 FROM tab1 cor0
----
-53
-60
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 95 col1 FROM tab1 AS cor0
----
95
95
95

onlyif mysql # aggregate syntax: 
query I rowsort label-5013
SELECT + - COUNT( + 87 ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5013
SELECT + - COUNT ( + 87 ) FROM tab0 AS cor0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT DISTINCT - 43 AS col1, + 5 * + - col1 * + + ( - ( col2 ) ), 69 col0 FROM tab1
----
9 values hashing to 79afe147ae9b733ead72896e608df37b

query III rowsort
SELECT * FROM tab1 WHERE ( NOT + col0 IS NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT 80 + - col2 AS col0 FROM tab1 AS cor0
----
-16
12
21

query I rowsort
SELECT 1 + - + col1 FROM tab1 AS cor0
----
-13
-4
-46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5018
SELECT DISTINCT + 52 DIV - + 63 + + CAST( + COUNT( * ) AS SIGNED ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5018
SELECT DISTINCT + 52 / - + 63 + + CAST ( + COUNT ( * ) AS INTEGER ) FROM tab0 AS cor0
----
3

query I rowsort
SELECT - 68 + 37 FROM tab1 AS cor0
----
-31
-31
-31

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col0 BETWEEN 25 * - col1 AND - col1
----

query I rowsort
SELECT AVG ( 30 ) AS col0 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5022
SELECT + ( + - COUNT( - col1 ) ) + - COUNT( * ) AS col2 FROM tab2 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-5022
SELECT + ( + - COUNT ( - col1 ) ) + - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 62 + - 27 col1 FROM tab1 AS cor0
----
35
35
35

query I rowsort
SELECT + - col2 + - + col2 AS col0 FROM tab2 AS cor0
----
-116
-46
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-5025
SELECT - COUNT( * ) + - + 7 FROM tab1 cor0
----
-10

skipif mysql # not compatible
query I rowsort label-5025
SELECT - COUNT ( * ) + - + 7 FROM tab1 cor0
----
-10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5026
SELECT DISTINCT col0 - + CAST( NULL AS SIGNED ) + + - 5 + 66 / - 63 + + + 83 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5026
SELECT DISTINCT col0 - + CAST ( NULL AS INTEGER ) + + - 5 + 66 / - 63 + + + 83 FROM tab0
----
NULL

query I rowsort
SELECT ALL + - col0 AS col2 FROM tab1 WHERE NOT - 23 IS NULL
----
-51
-85
-91

query I rowsort
SELECT DISTINCT + col1 * + + col1 * - col1 * + col2 AS col1 FROM tab2 WHERE col0 + col0 + + col1 NOT BETWEEN ( NULL ) AND ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5029
SELECT ALL CAST( - - 38 AS SIGNED ) FROM tab1
----
38
38
38

skipif mysql # not compatible
query I rowsort label-5029
SELECT ALL CAST ( - - 38 AS INTEGER ) FROM tab1
----
38
38
38

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - ( + col0 ) + + - col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - col0 - - + 34 + + 40 FROM tab0
----
-13
-23
59

onlyif mysql # aggregate syntax: 
query I rowsort label-5032
SELECT COUNT( * ) - COUNT( * ) * + - 84 FROM tab2 AS cor0
----
255

skipif mysql # not compatible
query I rowsort label-5032
SELECT COUNT ( * ) - COUNT ( * ) * + - 84 FROM tab2 AS cor0
----
255

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - 19 + 88 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5034
SELECT + 34 - + 49 DIV - col1 AS col0 FROM tab1 AS cor0
----
35
37
43

skipif mysql # not compatible
query I rowsort label-5034
SELECT + 34 - + 49 / - col1 AS col0 FROM tab1 AS cor0
----
35
37
43

query II rowsort
SELECT - + 40, col0 AS col2 FROM tab2 cor0 WHERE NOT - col0 IN ( + - col1, 5, + 94 )
----
-40
46
-40
64
-40
75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5036
SELECT 6 DIV - - COUNT( * ) FROM tab0 AS cor0
----
2

skipif mysql # not compatible
query I rowsort label-5036
SELECT 6 / - - COUNT ( * ) FROM tab0 AS cor0
----
2

query II rowsort
SELECT col1 AS col1, col0 AS col1 FROM tab1 cor0
----
14
51
47
91
5
85

query I rowsort
SELECT DISTINCT + + col1 AS col2 FROM tab1 AS cor0 WHERE ( col2 ) IS NULL
----

query I rowsort
SELECT col1 * - - ( + col2 ) FROM tab1
----
1344
295
3196

query I rowsort
SELECT DISTINCT + 37 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
37

query I rowsort
SELECT DISTINCT - col1 FROM tab0 WHERE - 87 >= NULL
----

query I rowsort
SELECT ALL + - 68 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 5febf382d36d6e0191889c41b928786f

query I rowsort
SELECT + - col2 * 41 * + 72 FROM tab0 AS cor0
----
-138744
-292248
-29520

query I rowsort
SELECT DISTINCT + - col0 * - + col0 FROM tab1 AS cor0
----
2601
7225
8281

onlyif mysql # aggregate syntax: 
query I rowsort label-5045
SELECT ( + + COUNT( * ) ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5045
SELECT ( + + COUNT ( * ) ) AS col1 FROM tab1 AS cor0
----
3

query I rowsort
SELECT + 60 * - - 70 - - col2 * 18 FROM tab0 AS cor0
----
4380
5046
5982

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5047
SELECT + ( - + col1 ), CAST( - + col1 AS SIGNED ) FROM tab2 AS cor0
----
-51
-51
-67
-67
-77
-77

skipif mysql # not compatible
query II rowsort label-5047
SELECT + ( - + col1 ), CAST ( - + col1 AS INTEGER ) FROM tab2 AS cor0
----
-51
-51
-67
-67
-77
-77

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 44 IS NOT NULL
----

query I rowsort
SELECT ALL col2 AS col2 FROM tab0 AS cor0 WHERE NOT NULL <= + col2
----

query I rowsort
SELECT ALL 96 AS col0 FROM tab1 WHERE + col2 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5051
SELECT - col0 DIV - - 31 AS col2 FROM tab2
----
-1
-2
-2

skipif mysql # not compatible
query I rowsort label-5051
SELECT - col0 / - - 31 AS col2 FROM tab2
----
-1
-2
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-5052
SELECT 21 + + - COUNT( * ) FROM tab0 AS cor0
----
18

skipif mysql # not compatible
query I rowsort label-5052
SELECT 21 + + - COUNT ( * ) FROM tab0 AS cor0
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-5053
SELECT DISTINCT - 22 * - COUNT( * ) AS col2 FROM tab0
----
66

skipif mysql # not compatible
query I rowsort label-5053
SELECT DISTINCT - 22 * - COUNT ( * ) AS col2 FROM tab0
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-5054
SELECT + MAX( - ( - col1 ) ) * COUNT( - ( - 48 ) ) AS col0 FROM tab0
----
243

skipif mysql # not compatible
query I rowsort label-5054
SELECT + MAX ( - ( - col1 ) ) * COUNT ( - ( - 48 ) ) AS col0 FROM tab0
----
243

onlyif mysql # aggregate syntax: 
query I rowsort label-5055
SELECT DISTINCT - COUNT( DISTINCT 97 ) AS col1 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-5055
SELECT DISTINCT - COUNT ( DISTINCT 97 ) AS col1 FROM tab0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5056
SELECT ALL MIN( + CAST( + CAST( NULL AS DECIMAL ) AS SIGNED ) ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5056
SELECT ALL MIN ( + CAST ( + CAST ( NULL AS REAL ) AS INTEGER ) ) AS col0 FROM tab2
----
NULL

query I rowsort
SELECT - ( 55 ) AS col1 FROM tab2
----
-55
-55
-55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5058
SELECT - CAST( 64 AS SIGNED ) FROM tab2
----
-64
-64
-64

skipif mysql # not compatible
query I rowsort label-5058
SELECT - CAST ( 64 AS INTEGER ) FROM tab2
----
-64
-64
-64

query III rowsort
SELECT * FROM tab0 WHERE NOT col0 <> ( - col2 + + col0 )
----

query I rowsort
SELECT DISTINCT 67 FROM tab0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT ALL - col0 AS col2 FROM tab2 WHERE NOT ( - 64 ) NOT BETWEEN - 8 AND ( 62 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5062
SELECT MIN( 13 ) FROM tab2
----
13

skipif mysql # not compatible
query I rowsort label-5062
SELECT MIN ( 13 ) FROM tab2
----
13

query I rowsort
SELECT col1 + ( + col1 ) AS col1 FROM tab0
----
162
2
42

query I rowsort
SELECT ALL - 78 * + 54 AS col2 FROM tab1
----
-4212
-4212
-4212

query I rowsort
SELECT ALL + col0 * + 55 AS col1 FROM tab0
----
4785
5335
825

onlyif mysql # aggregate syntax: 
query I rowsort label-5066
SELECT DISTINCT - 19 * + ( COUNT( * ) ) FROM tab0
----
-57

skipif mysql # not compatible
query I rowsort label-5066
SELECT DISTINCT - 19 * + ( COUNT ( * ) ) FROM tab0
----
-57

query III rowsort
SELECT * FROM tab0 WHERE NOT ( + col2 ) <= ( - col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5068
SELECT - 19 / CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5068
SELECT - 19 / CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5069
SELECT + col2 DIV 78 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-5069
SELECT + col2 / 78 FROM tab0
----
0
0
1

query I rowsort
SELECT + 8 + + col1 * 46 AS col0 FROM tab1
----
2170
238
652

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5071
SELECT - 9 * + CAST( NULL AS DECIMAL ) AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5071
SELECT - 9 * + CAST ( NULL AS REAL ) AS col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5072
SELECT ALL 20 * COUNT( DISTINCT col0 * + 2 ) FROM tab1
----
60

skipif mysql # not compatible
query I rowsort label-5072
SELECT ALL 20 * COUNT ( DISTINCT col0 * + 2 ) FROM tab1
----
60

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL IN ( - col1 + + 26 * col2 )
----

query I rowsort
SELECT + col2 * + col0 AS col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
1058
2560
4350

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col2 FROM tab2 WHERE NOT - 17 NOT BETWEEN + col1 AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5076
SELECT MIN( DISTINCT CAST( + 11 AS SIGNED ) ) FROM tab1 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5076
SELECT MIN ( DISTINCT CAST ( + 11 AS INTEGER ) ) FROM tab1 WHERE NULL IS NOT NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5077
SELECT 62 + + col2 DIV + col1 AS col0 FROM tab2
----
62
62
62

skipif mysql # not compatible
query I rowsort label-5077
SELECT 62 + + col2 / + col1 AS col0 FROM tab2
----
62
62
62

query I rowsort
SELECT DISTINCT col1 - col1 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5079
SELECT MIN( col0 ) * + 44 FROM tab1
----
2244

skipif mysql # not compatible
query I rowsort label-5079
SELECT MIN ( col0 ) * + 44 FROM tab1
----
2244

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( col2 + - col2 ) >= ( col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5081
SELECT ALL + COUNT( * ) * CAST( NULL AS SIGNED ) FROM tab1 WHERE NOT + col0 <> ( NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-5081
SELECT ALL + COUNT ( * ) * CAST ( NULL AS INTEGER ) FROM tab1 WHERE NOT + col0 <> ( NULL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5082
SELECT ALL + SUM( ALL 83 ) AS col1 FROM tab1
----
249

skipif mysql # not compatible
query I rowsort label-5082
SELECT ALL + SUM ( ALL 83 ) AS col1 FROM tab1
----
249

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + + 29 col2 FROM tab2
----
52
69
87

onlyif mysql # aggregate syntax: 
query I rowsort label-5084
SELECT DISTINCT COUNT( 47 ) FROM tab0 AS cor0 WHERE NOT + 11 NOT BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-5084
SELECT DISTINCT COUNT ( 47 ) FROM tab0 AS cor0 WHERE NOT + 11 NOT BETWEEN NULL AND NULL
----
0

query I rowsort
SELECT + AVG ( DISTINCT - ( + 8 ) ) FROM tab0 AS cor0 WHERE NOT col0 NOT IN ( 56 * 55 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5086
SELECT ALL - SUM( col1 ) FROM tab2 cor0
----
-195

skipif mysql # not compatible
query I rowsort label-5086
SELECT ALL - SUM ( col1 ) FROM tab2 cor0
----
-195

query I rowsort
SELECT DISTINCT col0 * + 78 FROM tab2 AS cor0
----
3588
4992
5850

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5088
SELECT + CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-5088
SELECT + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT DISTINCT 30 * - col1 FROM tab2
----
-1530
-2010
-2310

query I rowsort
SELECT col2 AS col0 FROM tab0 AS cor0 WHERE NOT NULL IN ( + ( - col1 ) + 86 )
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 37 NOT BETWEEN + col2 AND ( ( col2 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5092
SELECT + + CAST( NULL AS SIGNED ) * + col0 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5092
SELECT + + CAST ( NULL AS INTEGER ) * + col0 FROM tab0 cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5093
SELECT DISTINCT CAST( 90 AS SIGNED ) col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5093
SELECT DISTINCT CAST ( 90 AS INTEGER ) col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT + col2 * col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-5095
SELECT DISTINCT 63 * COUNT( * ) col1 FROM tab2 AS cor0 WHERE NOT - 49 * 39 + - col2 > NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5095
SELECT DISTINCT 63 * COUNT ( * ) col1 FROM tab2 AS cor0 WHERE NOT - 49 * 39 + - col2 > NULL
----
0

query I rowsort
SELECT + - 81 * - col0 FROM tab2 AS cor0
----
3726
5184
6075

onlyif mysql # aggregate syntax: 
query I rowsort label-5097
SELECT DISTINCT + - MAX( col2 ) AS col2 FROM tab1 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-5097
SELECT DISTINCT + - MAX ( col2 ) AS col2 FROM tab1 AS cor0
----
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 col1 FROM tab0 AS cor0 WHERE NOT ( col1 * 56 ) <= col1 + - col2
----
15
87
97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5099
SELECT + + 60 DIV ( - 52 ) + MAX( DISTINCT - 90 + col0 ) * 94 AS col1 FROM tab0 cor0
----
657

skipif mysql # not compatible
query I rowsort label-5099
SELECT + + 60 / ( - 52 ) + MAX ( DISTINCT - 90 + col0 ) * 94 AS col1 FROM tab0 cor0
----
657

onlyif mysql # DIV for integer division: 
query I rowsort label-5100
SELECT - col2 + - col2 DIV col2 AS col0 FROM tab2
----
-24
-41
-59

skipif mysql # not compatible
query I rowsort label-5100
SELECT - col2 + - col2 / col2 AS col0 FROM tab2
----
-24
-41
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-5101
SELECT ALL - COUNT( * ) FROM tab2 WHERE NOT 52 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-5101
SELECT ALL - COUNT ( * ) FROM tab2 WHERE NOT 52 IS NULL
----
-3

query I rowsort
SELECT col2 + + + col0 * 49 AS col2 FROM tab2
----
2277
3176
3733

query I rowsort
SELECT - 18 + + - col0 * 48 AS col0 FROM tab1
----
-2466
-4098
-4386

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( + col1 ) NOT IN ( + col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 48 + ( - col0 ) col2 FROM tab2
----
-16
-27
2

query I rowsort
SELECT ALL - 43 * - col0 AS col1 FROM tab0
----
3741
4171
645

query I rowsort
SELECT DISTINCT - + col2 * + 24 * - col2 FROM tab0 AS cor0
----
235224
2400
53016

query I rowsort
SELECT DISTINCT col1 + 19 FROM tab2 AS cor0
----
70
86
96

onlyif mysql # aggregate syntax: 
query I rowsort label-5109
SELECT - SUM( + col0 ) AS col0 FROM tab0 AS cor0
----
-199

skipif mysql # not compatible
query I rowsort label-5109
SELECT - SUM ( + col0 ) AS col0 FROM tab0 AS cor0
----
-199

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT - col1 <= 37
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5111
SELECT ALL CAST( + col2 AS SIGNED ) + - col0 AS col2 FROM tab2 AS cor0
----
-17
-23
-24

skipif mysql # not compatible
query I rowsort label-5111
SELECT ALL CAST ( + col2 AS INTEGER ) + - col0 AS col2 FROM tab2 AS cor0
----
-17
-23
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-5112
SELECT COUNT( * ) * 43 FROM tab2 AS cor0
----
129

skipif mysql # not compatible
query I rowsort label-5112
SELECT COUNT ( * ) * 43 FROM tab2 AS cor0
----
129

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + 9 * + col0 > NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5114
SELECT DISTINCT + CAST( NULL AS SIGNED ) * - MAX( + 65 ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5114
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - MAX ( + 65 ) FROM tab0
----
NULL

query I rowsort
SELECT ALL - 15 - + col2 AS col1 FROM tab1
----
-111
-74
-83

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5116
SELECT ALL COUNT( * ) DIV + - 67 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-5116
SELECT ALL COUNT ( * ) / + - 67 FROM tab2
----
0

query I rowsort
SELECT + 57 + col2 AS col0 FROM tab1
----
116
125
153

query I rowsort
SELECT DISTINCT + col0 * - 64 * + col1 * col0 FROM tab1 AS cor0
----
-2312000
-2330496
-24909248

query I rowsort
SELECT ALL ( + + 81 ) + + + col2 FROM tab0 AS cor0
----
128
180
91

onlyif mysql # aggregate syntax: 
query I rowsort label-5120
SELECT 16 + SUM( ALL - 99 ) col1 FROM tab0 cor0
----
-281

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5120
SELECT 16 + SUM ( ALL - 99 ) col1 FROM tab0 cor0
----
-281

onlyif mysql # aggregate syntax: 
query I rowsort label-5121
SELECT DISTINCT - 67 + + MIN( + 23 ) AS col2 FROM tab2 AS cor0
----
-44

skipif mysql # not compatible
query I rowsort label-5121
SELECT DISTINCT - 67 + + MIN ( + 23 ) AS col2 FROM tab2 AS cor0
----
-44

query I rowsort
SELECT DISTINCT + 97 + + col2 FROM tab2 AS cor0
----
120
137
155

onlyif mysql # DIV for integer division: 
query I rowsort label-5123
SELECT ALL + - col1 - + col1 DIV - col1 col0 FROM tab1 AS cor0
----
-13
-4
-46

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5123
SELECT ALL + - col1 - + col1 / - col1 col0 FROM tab1 AS cor0
----
-13
-4
-46

query III rowsort
SELECT * FROM tab0 cor0 WHERE - col2 = - + col0 / - col0
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( - col1 * - ( - col0 ) ) = col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5126
SELECT ALL + col0 - + - CAST( 18 AS SIGNED ) AS col2 FROM tab2
----
64
82
93

skipif mysql # not compatible
query I rowsort label-5126
SELECT ALL + col0 - + - CAST ( 18 AS INTEGER ) AS col2 FROM tab2
----
64
82
93

query I rowsort
SELECT - 23 AS col1 FROM tab1 WHERE NOT 68 * + col0 <= + col0
----
-23
-23
-23

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL <> ( - 82 )
----

query I rowsort
SELECT ALL 22 * + 79 FROM tab2
----
1738
1738
1738

onlyif mysql # DIV for integer division: 
query II rowsort label-5130
SELECT ALL col2 DIV + col2 AS col2, - 35 * - ( col2 ) + col2 AS col0 FROM tab1
----
1
2124
1
2448
1
3456

skipif mysql # not compatible
query II rowsort label-5130
SELECT ALL col2 / + col2 AS col2, - 35 * - ( col2 ) + col2 AS col0 FROM tab1
----
1
2124
1
2448
1
3456

onlyif mysql # aggregate syntax: 
query II rowsort label-5131
SELECT 78 * + - 16 AS col2, MAX( ALL col0 ) AS col2 FROM tab1
----
-1248
91

skipif mysql # not compatible
query II rowsort label-5131
SELECT 78 * + - 16 AS col2, MAX ( ALL col0 ) AS col2 FROM tab1
----
-1248
91

query III rowsort
SELECT ALL * FROM tab1 WHERE ( col2 ) = ( NULL )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NULL ) NOT IN ( + 67 * col0 * 32 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5134
SELECT ALL + col0 / - + CAST( NULL AS DECIMAL ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5134
SELECT ALL + col0 / - + CAST ( NULL AS REAL ) FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 WHERE NOT ( - - col2 ) NOT IN ( col2 * - col1 )
----

query I rowsort
SELECT 26 * + + col0 FROM tab2
----
1196
1664
1950

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT + 58 * - 26 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5138
SELECT - 83 DIV + col0 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-5138
SELECT - 83 / + col0 FROM tab2 AS cor0
----
-1
-1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5139
SELECT + COUNT( ( + col0 ) ) AS col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5139
SELECT + COUNT ( ( + col0 ) ) AS col0 FROM tab1 AS cor0
----
3

query I rowsort
SELECT - - col0 * + - col1 * + 91 AS col0 FROM tab2 AS cor0
----
-213486
-448448
-457275

query I rowsort
SELECT ALL - + ( + col2 ) FROM tab2 AS cor0 WHERE col1 IS NOT NULL
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-5142
SELECT + + COUNT( * ) * + + MAX( ALL 53 ) FROM tab0 AS cor0
----
159

skipif mysql # not compatible
query I rowsort label-5142
SELECT + + COUNT ( * ) * + + MAX ( ALL 53 ) FROM tab0 AS cor0
----
159

query I rowsort
SELECT ALL ( - - col0 ) FROM tab0 cor0
----
15
87
97

query I rowsort
SELECT ALL 98 FROM tab0 AS cor0 WHERE NOT 59 < ( - ( col1 ) * - + col2 * col1 )
----

query I rowsort
SELECT - + 92 + col0 AS col1 FROM tab1 AS cor0 WHERE - col1 < - col1 * - col1
----
-1
-41
-7

query I rowsort
SELECT - col0 AS col0 FROM tab2 WHERE - + 70 NOT BETWEEN NULL AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5147
SELECT 76 DIV 41 AS col2 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5147
SELECT 76 / 41 AS col2 FROM tab2
----
1
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5148
SELECT - CAST( - col2 AS SIGNED ) * col0 col0 FROM tab0
----
705
870
9603

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5148
SELECT - CAST ( - col2 AS INTEGER ) * col0 col0 FROM tab0
----
705
870
9603

query I rowsort
SELECT - col1 AS col0 FROM tab1 WHERE ( NULL <= ( - col2 / + col2 / - + col2 ) )
----

query II rowsort
SELECT DISTINCT - col1 AS col1, + 61 * + - 48 AS col0 FROM tab0
----
-1
-2928
-21
-2928
-81
-2928

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5151
SELECT DISTINCT + 88 DIV - ( - SUM( DISTINCT ( col1 ) ) ) + + MIN( 16 ) FROM tab2
----
16

skipif mysql # not compatible
query I rowsort label-5151
SELECT DISTINCT + 88 / - ( - SUM ( DISTINCT ( col1 ) ) ) + + MIN ( 16 ) FROM tab2
----
16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5152
SELECT DISTINCT AVG ( + col0 ) FROM tab2 WHERE NOT + ( - - 64 ) * - col0 * + 96 - CAST( NULL AS SIGNED ) NOT IN ( col0 * - 54 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5152
SELECT DISTINCT AVG ( + col0 ) FROM tab2 WHERE NOT + ( - - 64 ) * - col0 * + 96 - CAST ( NULL AS INTEGER ) NOT IN ( col0 * - 54 )
----
NULL

query I rowsort
SELECT + col2 + + 49 * + 63 FROM tab2
----
3110
3127
3145

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5154
SELECT + COUNT( * ) DIV - - 93 + + + 42 FROM tab0
----
42

skipif mysql # not compatible
query I rowsort label-5154
SELECT + COUNT ( * ) / - - 93 + + + 42 FROM tab0
----
42

query I rowsort
SELECT ALL + ( + 75 ) + - col0 AS col2 FROM tab0 AS cor0
----
-12
-22
60

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( col2 ) - - col0 + - - ( 59 ) / - col2 * + col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5157
SELECT DISTINCT col1 / + 39 + + CAST( NULL AS SIGNED ) * + 57, + col1 AS col1 FROM tab0 AS cor0
----
NULL
1
NULL
21
NULL
81

skipif mysql # not compatible
query II rowsort label-5157
SELECT DISTINCT col1 / + 39 + + CAST ( NULL AS INTEGER ) * + 57, + col1 AS col1 FROM tab0 AS cor0
----
NULL
1
NULL
21
NULL
81

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col1 + + 18 + - col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( + col2 * - col1 IS NOT NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL <> ( 24 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5161
SELECT ALL + ( 99 ) + 89 + - 12 * COUNT( * ) FROM tab0 cor0
----
152

skipif mysql # not compatible
query I rowsort label-5161
SELECT ALL + ( 99 ) + 89 + - 12 * COUNT ( * ) FROM tab0 cor0
----
152

query I rowsort
SELECT ALL 86 * - col2 AS col1 FROM tab1
----
-5074
-5848
-8256

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col1 + + + 92 * col2 < - + 32
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5164
SELECT ALL + 76 * - + ( + - 64 ) * + COUNT( * ) + COUNT( * ) + + 85 * - - 13 AS col2 FROM tab0
----
15700

skipif mysql # not compatible
query I rowsort label-5164
SELECT ALL + 76 * - + ( + - 64 ) * + COUNT ( * ) + COUNT ( * ) + + 85 * - - 13 AS col2 FROM tab0
----
15700

onlyif mysql # aggregate syntax: 
query II rowsort label-5165
SELECT DISTINCT + COUNT( * ), + COUNT( + - col2 ) FROM tab2
----
3
3

skipif mysql # not compatible
query II rowsort label-5165
SELECT DISTINCT + COUNT ( * ), + COUNT ( + - col2 ) FROM tab2
----
3
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 16 * 71 col0 FROM tab0
----
1136
1136
1136

query III rowsort
SELECT ALL * FROM tab1 WHERE ( + - ( - + col1 ) * + col2 ) IS NULL
----

query I rowsort
SELECT ( + - col0 ) * - + 53 + - + col2 * + 47 AS col0 FROM tab1
----
-1809
1627
1732

query III rowsort
SELECT * FROM tab1 WHERE col2 * - col0 IS NOT NULL OR - col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col0 * + + col0 - col2 - 20 IN ( col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + 57 AS col0 FROM tab0 cor0
----
57
57
57

query I rowsort
SELECT 30 AS col1 FROM tab0 AS cor0 WHERE NOT ( - ( + + 52 ) + col2 ) <= - 79 * + col0
----
30
30
30

query I rowsort
SELECT DISTINCT - col2 FROM tab1 WHERE NOT ( NOT ( NULL IS NOT NULL ) )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5174
SELECT DISTINCT + COUNT( * ) * 25 DIV - 92 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
-2

skipif mysql # not compatible
query I rowsort label-5174
SELECT DISTINCT + COUNT ( * ) * 25 / - 92 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
-2

query I rowsort
SELECT ALL + 4 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 6fec965b60b9885c4af73e85422cfd9b

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( col1 + - 80 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5177
SELECT DISTINCT - COUNT( * ) - 56 + + + SUM( ALL - ( col1 ) ) AS col2 FROM tab0 AS cor0 WHERE NULL IN ( + col1 + + ( - + 94 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5177
SELECT DISTINCT - COUNT ( * ) - 56 + + + SUM ( ALL - ( col1 ) ) AS col2 FROM tab0 AS cor0 WHERE NULL IN ( + col1 + + ( - + 94 ) )
----
NULL

query I rowsort
SELECT ALL 93 + - col1 FROM tab0 AS cor0
----
12
72
92

query I rowsort
SELECT + col0 + + + 29 + + col1 * - 12 FROM tab0 AS cor0
----
-136
-928
114

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5180
SELECT DISTINCT CAST( NULL AS SIGNED ) + + ( 73 ) AS col0, + col2 * - - col1 FROM tab0
----
NULL
210
NULL
3807
NULL
99

skipif mysql # not compatible
query II rowsort label-5180
SELECT DISTINCT CAST ( NULL AS INTEGER ) + + ( 73 ) AS col0, + col2 * - - col1 FROM tab0
----
NULL
210
NULL
3807
NULL
99

query II rowsort
SELECT DISTINCT + 5 AS col0, + 18 FROM tab1
----
5
18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5182
SELECT ALL - 16 * - - CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5182
SELECT ALL - 16 * - - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - - 17 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5184
SELECT ALL + col1 AS col1 FROM tab1 AS cor0 WHERE col2 * - col1 + + + col1 BETWEEN + col1 * col1 * + - CAST( NULL AS DECIMAL ) - + - 95 / + col1 * + + ( + ( - col1 ) ) + 27 AND ( - 92 * + col2 )
----

skipif mysql # not compatible
query I rowsort label-5184
SELECT ALL + col1 AS col1 FROM tab1 AS cor0 WHERE col2 * - col1 + + + col1 BETWEEN + col1 * col1 * + - CAST ( NULL AS REAL ) - + - 95 / + col1 * + + ( + ( - col1 ) ) + 27 AND ( - 92 * + col2 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 NOT BETWEEN + col1 AND - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - col0 AS col2 FROM tab1 AS cor0 WHERE NULL IN ( ( - + col2 ), 79 + - col1, - + ( col2 ) * + - col2 * 87 / + - 18 * + 45 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5187
SELECT ALL + - COUNT( DISTINCT col2 ) col2 FROM tab2 AS cor0 WHERE ( NULL NOT BETWEEN + - col0 / col2 AND NULL )
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5187
SELECT ALL + - COUNT ( DISTINCT col2 ) col2 FROM tab2 AS cor0 WHERE ( NULL NOT BETWEEN + - col0 / col2 AND NULL )
----
0

query I rowsort
SELECT col0 - + col2 + + 92 * col2 AS col2 FROM tab2 AS cor0
----
2139
3704
5353

query I rowsort
SELECT + col0 - + ( + col1 ) * 38 + + ( col1 ) FROM tab0 AS cor0
----
-2982
-690
60

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + ( + col1 ) col1 FROM tab2 AS cor0 WHERE + col1 NOT BETWEEN NULL AND + + col0
----
51
77

onlyif mysql # aggregate syntax: 
query I rowsort label-5191
SELECT SUM( DISTINCT col2 ) FROM tab2 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5191
SELECT SUM ( DISTINCT col2 ) FROM tab2 WHERE NULL IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5192
SELECT DISTINCT * FROM tab2 WHERE NULL NOT IN ( - - CAST( + 64 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-5192
SELECT DISTINCT * FROM tab2 WHERE NULL NOT IN ( - - CAST ( + 64 AS INTEGER ) )
----

query I rowsort
SELECT DISTINCT + 74 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5194
SELECT + CAST( NULL AS SIGNED ) FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-5194
SELECT + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # aggregate syntax: 
query II rowsort label-5195
SELECT - 66 AS col2, MAX( DISTINCT 95 ) AS col0 FROM tab2 AS cor0
----
-66
95

skipif mysql # not compatible
query II rowsort label-5195
SELECT - 66 AS col2, MAX ( DISTINCT 95 ) AS col0 FROM tab2 AS cor0
----
-66
95

query I rowsort
SELECT col0 * + - 84 FROM tab0 AS cor0
----
-1260
-7308
-8148

query II rowsort
SELECT col1, - ( + col2 ) FROM tab0 AS cor0
----
1
-99
21
-10
81
-47

query I rowsort
SELECT - col0 * + - 50 AS col1 FROM tab0 AS cor0
----
4350
4850
750

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5199
SELECT - CAST( + col1 AS SIGNED ) DIV col0 * + col0 AS col2, 72 * + 85 FROM tab1 AS cor0
----
0
6120
0
6120
0
6120

skipif mysql # not compatible
query II rowsort label-5199
SELECT - CAST ( + col1 AS INTEGER ) / col0 * + col0 AS col2, 72 * + 85 FROM tab1 AS cor0
----
0
6120
0
6120
0
6120

onlyif mysql # aggregate syntax: 
query I rowsort label-5200
SELECT - COUNT( * ) * ( + 22 ) AS col2 FROM tab1 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-5200
SELECT - COUNT ( * ) * ( + 22 ) AS col2 FROM tab1 AS cor0
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-5201
SELECT DISTINCT + MIN( + col2 ) * - 13 + + MAX( ALL + 30 ) AS col1 FROM tab2 AS cor0
----
-269

skipif mysql # not compatible
query I rowsort label-5201
SELECT DISTINCT + MIN ( + col2 ) * - 13 + + MAX ( ALL + 30 ) AS col1 FROM tab2 AS cor0
----
-269

query I rowsort
SELECT - ( + - 38 ) AS col0 FROM tab0 AS cor0
----
38
38
38

query I rowsort
SELECT ALL + col1 * - + col1 AS col1 FROM tab0 AS cor0
----
-1
-441
-6561

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 83 col0 FROM tab1 AS cor0
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-5205
SELECT - COUNT( * ) * SUM( ALL - col2 ) FROM tab1
----
669

skipif mysql # not compatible
query I rowsort label-5205
SELECT - COUNT ( * ) * SUM ( ALL - col2 ) FROM tab1
----
669

query I rowsort
SELECT + ( - 88 ) AS col0 FROM tab2
----
-88
-88
-88

query I rowsort
SELECT ALL - col0 AS col0 FROM tab2 WHERE + + col0 IS NOT NULL
----
-46
-64
-75

query II rowsort
SELECT - ( col2 ) AS col1, col2 + 48 * - 93 * - + col1 AS col1 FROM tab0
----
-10
93754
-47
361631
-99
4563

query I rowsort
SELECT DISTINCT - col2 * + col0 - ( + 32 ) AS col0 FROM tab0 AS cor0
----
-737
-902
-9635

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col1 NOT BETWEEN + col0 + + - 41 AND - col2
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + col1 * - col1 - ( - col1 ) * col2 + col2 * + - 98 + - ( 62 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT DISTINCT 97, col2 FROM tab1
----
97
59
97
68
97
96

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + 2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5214
SELECT DISTINCT + + COUNT( * ) + - CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-5214
SELECT DISTINCT + + COUNT ( * ) + - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

query I rowsort
SELECT ALL + col1 + + 47 AS col0 FROM tab1 AS cor0
----
52
61
94

onlyif mysql # aggregate syntax: 
query I rowsort label-5216
SELECT ALL COUNT( * ) + - + MAX( - - 76 ) FROM tab0 cor0
----
-73

skipif mysql # not compatible
query I rowsort label-5216
SELECT ALL COUNT ( * ) + - + MAX ( - - 76 ) FROM tab0 cor0
----
-73

query I rowsort
SELECT + + col2 FROM tab2 AS cor0 WHERE + col1 NOT BETWEEN - + ( + + 15 ) AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5218
SELECT DISTINCT + - 14 DIV + col1 col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5218
SELECT DISTINCT + - 14 / + col1 col0 FROM tab2 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5219
SELECT ALL + - col0 DIV + 27 + - 38 + - col2 FROM tab0 AS cor0
----
-140
-51
-85

skipif mysql # not compatible
query I rowsort label-5219
SELECT ALL + - col0 / + 27 + - 38 + - col2 FROM tab0 AS cor0
----
-140
-51
-85

query I rowsort
SELECT - col2 * + col1 - 51 AS col1 FROM tab1
----
-1395
-3247
-346

query I rowsort
SELECT - col1 - 0 + - 16 - + col0 FROM tab0
----
-112
-114
-124

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5222
SELECT ALL - col0 * + ( + 75 ) + + col1 + CAST( - - col0 AS SIGNED ) AS col2 FROM tab2 WHERE NOT NULL <= NULL
----

skipif mysql # not compatible
query I rowsort label-5222
SELECT ALL - col0 * + ( + 75 ) + + col1 + CAST ( - - col0 AS INTEGER ) AS col2 FROM tab2 WHERE NOT NULL <= NULL
----

query I rowsort
SELECT col2 * - col0 + - 28 AS col1 FROM tab1
----
-4924
-5043
-6216

query I rowsort
SELECT DISTINCT + col2 * + + col0 * - col2 FROM tab2
----
-102400
-24334
-252300

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5225
SELECT ALL CAST( - col1 AS SIGNED ) - - - 17 * 78 AS col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-1377
-1393
-1403

skipif mysql # not compatible
query I rowsort label-5225
SELECT ALL CAST ( - col1 AS INTEGER ) - - - 17 * 78 AS col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-1377
-1393
-1403

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + - - 17 col2 FROM tab1
----
-30
12
3

query I rowsort
SELECT + ( col1 ) + + - col1 FROM tab1
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 39 + - col1 col0 FROM tab1 AS cor0
----
-8
25
34

onlyif mysql # DIV for integer division: 
query I rowsort label-5229
SELECT ALL + - col1 * + 45 + col0 DIV col0 * + 14 col2 FROM tab1 AS cor0
----
-2101
-211
-616

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5229
SELECT ALL + - col1 * + 45 + col0 / col0 * + 14 col2 FROM tab1 AS cor0
----
-2101
-211
-616

onlyif mysql # aggregate syntax: 
query I rowsort label-5230
SELECT - - COUNT( * ) col1 FROM tab1 AS cor0 WHERE + col2 IS NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5230
SELECT - - COUNT ( * ) col1 FROM tab1 AS cor0 WHERE + col2 IS NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5231
SELECT ALL * FROM tab2 WHERE + col0 - CAST( NULL AS SIGNED ) BETWEEN + col1 + - col0 + + ( - ( col0 ) ) + col2 * col0 / + ( col2 ) AND + 10 * col0
----

skipif mysql # not compatible
query III rowsort label-5231
SELECT ALL * FROM tab2 WHERE + col0 - CAST ( NULL AS INTEGER ) BETWEEN + col1 + - col0 + + ( - ( col0 ) ) + col2 * col0 / + ( col2 ) AND + 10 * col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5232
SELECT ALL * FROM tab0 WHERE - 10 + - CAST( NULL AS SIGNED ) * + col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-5232
SELECT ALL * FROM tab0 WHERE - 10 + - CAST ( NULL AS INTEGER ) * + col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( 50 * col1, + col2 + + col0, col2 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 90 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + + col2 * + 26 FROM tab2 AS cor0
----
1040
1508
598

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5236
SELECT DISTINCT - - CAST( - CAST( - - 94 AS SIGNED ) AS SIGNED ) * + - SUM( - col0 ) FROM tab1 AS cor0
----
-21338

skipif mysql # not compatible
query I rowsort label-5236
SELECT DISTINCT - - CAST ( - CAST ( - - 94 AS INTEGER ) AS INTEGER ) * + - SUM ( - col0 ) FROM tab1 AS cor0
----
-21338

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5237
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col0, COUNT( * ) FROM tab0
----
NULL
3

skipif mysql # not compatible
query II rowsort label-5237
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col0, COUNT ( * ) FROM tab0
----
NULL
3

onlyif mysql # aggregate syntax: 
query II rowsort label-5238
SELECT DISTINCT COUNT( * ) AS col0, + 32 - 46 AS col2 FROM tab2
----
3
-14

skipif mysql # not compatible
query II rowsort label-5238
SELECT DISTINCT COUNT ( * ) AS col0, + 32 - 46 AS col2 FROM tab2
----
3
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-5239
SELECT + 23 + COUNT( * ) AS col0 FROM tab2 WHERE NOT NULL IS NULL
----
23

skipif mysql # not compatible
query I rowsort label-5239
SELECT + 23 + COUNT ( * ) AS col0 FROM tab2 WHERE NOT NULL IS NULL
----
23

onlyif mysql # DIV for integer division: 
query II rowsort label-5240
SELECT 83 AS col2, col1 + - + col0 - - + ( + col2 ) * + col2 DIV - col2 + + col0 + + 27 DIV - col2 AS col1 FROM tab1
----
83
-21
83
-54
83
-82

skipif mysql # not compatible
query II rowsort label-5240
SELECT 83 AS col2, col1 + - + col0 - - + ( + col2 ) * + col2 / - col2 + + col0 + + 27 / - col2 AS col1 FROM tab1
----
83
-21
83
-54
83
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-5241
SELECT DISTINCT - - COUNT( * ) AS col2 FROM tab1 WHERE NULL IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-5241
SELECT DISTINCT - - COUNT ( * ) AS col2 FROM tab1 WHERE NULL IS NULL
----
3

query II rowsort
SELECT col0 AS col1, col0 AS col2 FROM tab1
----
51
51
85
85
91
91

onlyif mysql # aggregate syntax: 
query I rowsort label-5243
SELECT - COUNT( * ) AS col2 FROM tab1 WHERE NOT NULL <= - col2 - - col0
----
0

skipif mysql # not compatible
query I rowsort label-5243
SELECT - COUNT ( * ) AS col2 FROM tab1 WHERE NOT NULL <= - col2 - - col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5244
SELECT DISTINCT 24 * - col0 - + CAST( + col2 AS SIGNED ) FROM tab2 AS cor0 WHERE ( NOT NULL IS NOT NULL )
----
-1127
-1576
-1858

skipif mysql # not compatible
query I rowsort label-5244
SELECT DISTINCT 24 * - col0 - + CAST ( + col2 AS INTEGER ) FROM tab2 AS cor0 WHERE ( NOT NULL IS NOT NULL )
----
-1127
-1576
-1858

onlyif mysql # DIV for integer division: 
query I rowsort label-5245
SELECT col2 DIV - 24 - - + col2 AS col0 FROM tab0 AS cor0
----
10
46
95

skipif mysql # not compatible
query I rowsort label-5245
SELECT col2 / - 24 - - + col2 AS col0 FROM tab0 AS cor0
----
10
46
95

onlyif mysql # aggregate syntax: 
query I rowsort label-5246
SELECT ALL MAX( ALL + col0 ) AS col1 FROM tab0
----
97

skipif mysql # not compatible
query I rowsort label-5246
SELECT ALL MAX ( ALL + col0 ) AS col1 FROM tab0
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-5247
SELECT DISTINCT COUNT( * ) * + - SUM( DISTINCT + col0 ) FROM tab1
----
-681

skipif mysql # not compatible
query I rowsort label-5247
SELECT DISTINCT COUNT ( * ) * + - SUM ( DISTINCT + col0 ) FROM tab1
----
-681

query I rowsort
SELECT - + 77 + + col0 AS col1 FROM tab2 AS cor0
----
-13
-2
-31

query I rowsort
SELECT - col1 * + + col1 + + col0 FROM tab0 AS cor0
----
-354
-6546
96

onlyif mysql # DIV for integer division: 
query I rowsort label-5250
SELECT DISTINCT + col0 DIV + - 57 + col1 AS col0 FROM tab1 AS cor0
----
14
4
46

skipif mysql # not compatible
query I rowsort label-5250
SELECT DISTINCT + col0 / + - 57 + col1 AS col0 FROM tab1 AS cor0
----
14
4
46

query I rowsort
SELECT + ( 53 ) + + col0 FROM tab1 cor0
----
104
138
144

onlyif mysql # aggregate syntax: 
query I rowsort label-5252
SELECT ALL COUNT( * ) * - - 54 FROM tab2 AS cor0
----
162

skipif mysql # not compatible
query I rowsort label-5252
SELECT ALL COUNT ( * ) * - - 54 FROM tab2 AS cor0
----
162

query I rowsort
SELECT + 15 + col1 * - 17 * + - col1 AS col0 FROM tab1 AS cor0
----
3347
37568
440

query I rowsort
SELECT ALL - - col1 - - col0 + ( + 77 ) * + + 9 FROM tab2 AS cor0
----
790
834
835

query I rowsort
SELECT + 36 * + 73 FROM tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5256
SELECT DISTINCT CAST( + 78 AS SIGNED ) FROM tab2
----
78

skipif mysql # not compatible
query I rowsort label-5256
SELECT DISTINCT CAST ( + 78 AS INTEGER ) FROM tab2
----
78

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5257
SELECT DISTINCT CAST( NULL AS DECIMAL ) * - col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5257
SELECT DISTINCT CAST ( NULL AS REAL ) * - col0 FROM tab0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5258
SELECT ALL 18 DIV - col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5258
SELECT ALL 18 / - col1 FROM tab2
----
0
0
0

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - col0 BETWEEN + + col1 AND - col2 * col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-5260
SELECT DISTINCT COUNT( * ), ( ( - - MIN( DISTINCT col0 ) ) ) + + CAST( NULL AS DECIMAL ) AS col2 FROM tab2
----
3
NULL

skipif mysql # not compatible
query II rowsort label-5260
SELECT DISTINCT COUNT ( * ), ( ( - - MIN ( DISTINCT col0 ) ) ) + + CAST ( NULL AS REAL ) AS col2 FROM tab2
----
3
NULL

query III rowsort
SELECT ALL - col0 * col2 + + - col2 + 90, - col2 * - - col1 AS col2, + 7 + + col2 AS col2 FROM tab1 AS cor0
----
9 values hashing to 2023374bb80f155083512ebd9c78bd9f

query I rowsort
SELECT ALL - 42 * ( - col1 ) * + ( + ( + 17 ) ) FROM tab0
----
14994
57834
714

query I rowsort
SELECT - col2 * - col2 * - 34 FROM tab2 AS cor0
----
-114376
-17986
-54400

onlyif mysql # aggregate syntax: 
query I rowsort label-5264
SELECT + MIN( ALL + col0 ) AS col0 FROM tab0 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-5264
SELECT + MIN ( ALL + col0 ) AS col0 FROM tab0 AS cor0
----
15

query I rowsort
SELECT - col1 * - col0 + - 46 * + - col1 AS col0 FROM tab0 AS cor0 WHERE NOT ( + col2 + + - col2 IS NOT NULL )
----

query II rowsort
SELECT + ( - - col0 ), - 57 AS col0 FROM tab1 AS cor0
----
51
-57
85
-57
91
-57

query I rowsort
SELECT + - 56 + - + 88 - 26 AS col2 FROM tab0 AS cor0 WHERE NOT - col1 IS NOT NULL
----

query I rowsort
SELECT + - col1 * - - col0 FROM tab0 cor0
----
-1215
-1827
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-5269
SELECT DISTINCT - COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL < - 61
----
0

skipif mysql # not compatible
query I rowsort label-5269
SELECT DISTINCT - COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL < - 61
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - 46 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + 59 ) col1 FROM tab0
----
59
59
59

onlyif mysql # aggregate syntax: 
query I rowsort label-5272
SELECT MIN( ALL + ( + col0 ) ) AS col0 FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-5272
SELECT MIN ( ALL + ( + col0 ) ) AS col0 FROM tab0
----
15

query I rowsort
SELECT DISTINCT - col0 + + + col0 - + 30 * + col1 FROM tab0
----
-2430
-30
-630

query I rowsort
SELECT ALL + 5 * - 45 * + + col2 FROM tab1
----
-13275
-15300
-21600

onlyif mysql # aggregate syntax: 
query I rowsort label-5275
SELECT DISTINCT ( SUM( DISTINCT - 46 ) ) + + + 14 AS col1 FROM tab0 AS cor0
----
-32

skipif mysql # not compatible
query I rowsort label-5275
SELECT DISTINCT ( SUM ( DISTINCT - 46 ) ) + + + 14 AS col1 FROM tab0 AS cor0
----
-32

query I rowsort
SELECT + + col2 * - - 1 FROM tab2 AS cor0
----
23
40
58

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + + col2 * + 25 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + 42 AS col1 FROM tab2, tab2 AS cor0
----
42

query II rowsort
SELECT DISTINCT - col2, - col0 + - - col1 * + col0 AS col0 FROM tab0
----
-10
1740
-47
1200
-99
0

query III rowsort
SELECT * FROM tab1 WHERE ( NOT ( NULL ) NOT IN ( + col2 ) )
----

query I rowsort
SELECT DISTINCT col1 AS col0 FROM tab1 AS cor0 WHERE NOT col2 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 - - 94 + + - col0 * col1 * + 66 * - ( 61 ) - 97 * col1 col2 FROM tab0 cor0
----
390618
4883874
7353569

query I rowsort
SELECT + col1 - 92 FROM tab0 AS cor0
----
-11
-71
-91

query I rowsort
SELECT DISTINCT 39 AS col0 FROM tab1 AS cor0 WHERE 79 < NULL
----

query I rowsort
SELECT DISTINCT 10 - + ( - col1 ) FROM tab0
----
11
31
91

query I rowsort
SELECT ALL col0 - + 27 * - col1 FROM tab0
----
124
2202
654

query III rowsort
SELECT * FROM tab2 WHERE col0 - - - col2 IN ( 42 * + col2 )
----

query I rowsort
SELECT 99 + + - ( col2 ) AS col1 FROM tab2
----
41
59
76

query II rowsort
SELECT ALL col0 * col0 * - + 39, col0 * 69 + + 14 AS col0 FROM tab1
----
-101439
3533
-281775
5879
-322959
6293

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5290
SELECT ALL - COUNT( * ) DIV ( 92 ) AS col0 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-5290
SELECT ALL - COUNT ( * ) / ( 92 ) AS col0 FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5291
SELECT 48 + + - 98 + COUNT( * ) FROM tab0
----
-47

skipif mysql # not compatible
query I rowsort label-5291
SELECT 48 + + - 98 + COUNT ( * ) FROM tab0
----
-47

onlyif mysql # DIV for integer division: 
query I rowsort label-5292
SELECT ALL - col1 DIV - col2 - + col1 AS col2 FROM tab0
----
-1
-19
-80

skipif mysql # not compatible
query I rowsort label-5292
SELECT ALL - col1 / - col2 - + col1 AS col2 FROM tab0
----
-1
-19
-80

query I rowsort
SELECT col1 * + 84 AS col0 FROM tab1 AS cor0
----
1176
3948
420

query I rowsort
SELECT - + col0 FROM tab2 AS cor0 WHERE NOT 18 < NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-5295
SELECT ALL col1 DIV col1, col2 + + col1 AS col1 FROM tab1 cor0
----
1
110
1
115
1
64

skipif mysql # not compatible
query II rowsort label-5295
SELECT ALL col1 / col1, col2 + + col1 AS col1 FROM tab1 cor0
----
1
110
1
115
1
64

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5296
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col0 / + CAST( NULL AS SIGNED ) <> NULL
----

skipif mysql # not compatible
query III rowsort label-5296
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col0 / + CAST ( NULL AS INTEGER ) <> NULL
----

query I rowsort
SELECT - col1 * + - col1 + + col1 AS col1 FROM tab2 AS cor0 WHERE NOT + col2 IS NULL
----
2652
4556
6006

query I rowsort
SELECT + + col1 + + + 98 * - - col1 * - + col2 * + col2 AS col2 FROM tab2 AS cor0 WHERE NOT + col0 <> + col1 + - 85 + + 50 + - col0
----

query I rowsort
SELECT - col1 * 20 AS col2 FROM tab2 cor0
----
-1020
-1340
-1540

onlyif mysql # aggregate syntax: 
query II rowsort label-5300
SELECT DISTINCT 77 AS col0, COUNT( * ) FROM tab1 AS cor0
----
77
3

skipif mysql # not compatible
query II rowsort label-5300
SELECT DISTINCT 77 AS col0, COUNT ( * ) FROM tab1 AS cor0
----
77
3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) >= ( - + col2 * + - 41 + - ( 5 ) )
----

query I rowsort
SELECT ALL col1 * + + col1 * - col1 * + - col1 - + ( col2 ) AS col0 FROM tab0 AS cor0
----
-98
194471
43046674

onlyif mysql # DIV for integer division: 
query I rowsort label-5303
SELECT - col0 DIV 60 FROM tab2 cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-5303
SELECT - col0 / 60 FROM tab2 cor0
----
-1
-1
0

query I rowsort
SELECT 87 AS col0 FROM tab0 AS cor0 WHERE NOT - col0 = NULL
----

query I rowsort
SELECT col0 * - 47 AS col2 FROM tab1 AS cor0
----
-2397
-3995
-4277

query I rowsort
SELECT ( - col0 ) * - 18 - - - col2 FROM tab2 AS cor0
----
1112
1292
805

onlyif mysql # aggregate syntax: 
query I rowsort label-5307
SELECT COUNT( ALL + ( + ( col1 ) ) ) * + 5 * - COUNT( * ) FROM tab2
----
-45

skipif mysql # not compatible
query I rowsort label-5307
SELECT COUNT ( ALL + ( + ( col1 ) ) ) * + 5 * - COUNT ( * ) FROM tab2
----
-45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5308
SELECT DISTINCT + - col2 * + ( + ( + col1 ) ) / - col1 / ( CAST( NULL AS SIGNED ) ) AS col2 FROM tab2 WHERE NOT ( + - col0 ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5308
SELECT DISTINCT + - col2 * + ( + ( + col1 ) ) / - col1 / ( CAST ( NULL AS INTEGER ) ) AS col2 FROM tab2 WHERE NOT ( + - col0 ) IS NULL
----
NULL

query I rowsort
SELECT 98 + + col0 AS col1 FROM tab0
----
113
185
195

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 39 col2 FROM tab2, tab1 AS cor0
----
9 values hashing to 5ecc4d3de68ae828a2d522dff8571cbf

query I rowsort
SELECT DISTINCT + - col0 FROM tab1 cor0 WHERE NOT col2 / - 38 IS NULL
----
-51
-85
-91

query I rowsort
SELECT + + col0 * ( - 4 ) FROM tab1 AS cor0
----
-204
-340
-364

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5313
SELECT * FROM tab2 WHERE + + 2 / - CAST( + col1 AS SIGNED ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-5313
SELECT * FROM tab2 WHERE + + 2 / - CAST ( + col1 AS INTEGER ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-5314
SELECT + col0 DIV + + 43 + + 98 FROM tab2 AS cor0
----
99
99
99

skipif mysql # not compatible
query I rowsort label-5314
SELECT + col0 / + + 43 + + 98 FROM tab2 AS cor0
----
99
99
99

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col2 - - + col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT ALL - 81, col0 FROM tab2 AS cor0
----
-81
46
-81
64
-81
75

query I rowsort
SELECT ALL 91 + + 88 AS col0 FROM tab1 AS cor0
----
179
179
179

query I rowsort
SELECT col0 + + 76 + + 93 FROM tab2 cor0
----
215
233
244

query I rowsort
SELECT 63 + - - ( + col0 ) * col2 FROM tab0 AS cor0
----
768
933
9666

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5320
SELECT ALL + + col1 + - CAST( + 96 AS SIGNED ) FROM tab0 AS cor0
----
-15
-75
-95

skipif mysql # not compatible
query I rowsort label-5320
SELECT ALL + + col1 + - CAST ( + 96 AS INTEGER ) FROM tab0 AS cor0
----
-15
-75
-95

query I rowsort
SELECT ALL 79 + + + col0 AS col0 FROM tab0 AS cor0
----
166
176
94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5322
SELECT + CAST( NULL AS SIGNED ) * - + CAST( 31 AS SIGNED ) * + + 7 * COUNT( * ) FROM tab1 WHERE - - col2 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5322
SELECT + CAST ( NULL AS INTEGER ) * - + CAST ( 31 AS INTEGER ) * + + 7 * COUNT ( * ) FROM tab1 WHERE - - col2 IS NOT NULL
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col0 NOT BETWEEN + col1 AND NULL
----

query I rowsort
SELECT + col1 * 52 AS col1 FROM tab2 AS cor0
----
2652
3484
4004

query I rowsort
SELECT DISTINCT - - 46 * ( + 72 ) * + col1 AS col1 FROM tab1 AS cor0
----
155664
16560
46368

onlyif mysql # aggregate syntax: 
query II rowsort label-5326
SELECT ALL + ( + 88 ), + COUNT( * ) AS col0 FROM tab0 AS cor0
----
88
3

skipif mysql # not compatible
query II rowsort label-5326
SELECT ALL + ( + 88 ), + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
88
3

query I rowsort
SELECT - + ( 47 ) FROM tab2 cor0
----
-47
-47
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-5328
SELECT - COUNT( * ) * - SUM( + col2 ) FROM tab2 AS cor0
----
363

skipif mysql # not compatible
query I rowsort label-5328
SELECT - COUNT ( * ) * - SUM ( + col2 ) FROM tab2 AS cor0
----
363

onlyif mysql # aggregate syntax: 
query I rowsort label-5329
SELECT DISTINCT COUNT( * ) * + 67 FROM tab2 AS cor0
----
201

skipif mysql # not compatible
query I rowsort label-5329
SELECT DISTINCT COUNT ( * ) * + 67 FROM tab2 AS cor0
----
201

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( + 75 / col1, col1 * col2 )
----

query II rowsort
SELECT + col2 AS col1, col1 AS col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
10
21
47
81
99
1

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( NULL ) NOT IN ( + - col1 * + 62 ) AND NOT - + col1 IS NOT NULL
----

query I rowsort
SELECT ALL 28 + - + col1 FROM tab2
----
-23
-39
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-5334
SELECT COUNT( - - ( - col0 ) ) + - + COUNT( * ) AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-5334
SELECT COUNT ( - - ( - col0 ) ) + - + COUNT ( * ) AS col2 FROM tab2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5335
SELECT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN col0 AND CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-5335
SELECT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN col0 AND CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT + - 0 + + + col2 FROM tab0 AS cor0
----
10
47
99

query I rowsort
SELECT + 18 AS col1 FROM tab0 AS cor0 WHERE col0 * - col2 IS NOT NULL
----
18
18
18

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-5338
SELECT * FROM tab1 AS cor0 CROSS JOIN tab0 cor1 WHERE NULL BETWEEN ( NULL ) AND - - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query IIIIII rowsort label-5338
SELECT * FROM tab1 AS cor0 CROSS JOIN tab0 cor1 WHERE NULL BETWEEN ( NULL ) AND - - CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT DISTINCT 19 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE 26 > NULL
----

query I rowsort
SELECT + col0 * - col1 + - - col0 AS col1 FROM tab1 AS cor0
----
-340
-4186
-663

query I rowsort
SELECT ALL - - col1 - - col2 AS col2 FROM tab0 AS cor0
----
100
128
31

onlyif mysql # aggregate syntax: 
query II rowsort label-5342
SELECT DISTINCT - COUNT( * ) * + + 51 + ( - COUNT( * ) ) AS col0, + 52 FROM tab1 AS cor0
----
-156
52

skipif mysql # not compatible
query II rowsort label-5342
SELECT DISTINCT - COUNT ( * ) * + + 51 + ( - COUNT ( * ) ) AS col0, + 52 FROM tab1 AS cor0
----
-156
52

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 36 + - 32 * + col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-5344
SELECT ALL 53 + - 88 * - MIN( col2 ) * 99 FROM tab0 AS cor0
----
87173

skipif mysql # not compatible
query I rowsort label-5344
SELECT ALL 53 + - 88 * - MIN ( col2 ) * 99 FROM tab0 AS cor0
----
87173

onlyif mysql # aggregate syntax: 
query I rowsort label-5345
SELECT ALL - + SUM( DISTINCT - col2 ) AS col2 FROM tab2 WHERE col1 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5345
SELECT ALL - + SUM ( DISTINCT - col2 ) AS col2 FROM tab2 WHERE col1 IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5346
SELECT DISTINCT COUNT( * ) * + 83 FROM tab2
----
249

skipif mysql # not compatible
query I rowsort label-5346
SELECT DISTINCT COUNT ( * ) * + 83 FROM tab2
----
249

onlyif mysql # aggregate syntax: 
query I rowsort label-5347
SELECT - + COUNT( * ) AS col1 FROM tab2 WHERE NOT + ( - 43 ) IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-5347
SELECT - + COUNT ( * ) AS col1 FROM tab2 WHERE NOT + ( - 43 ) IS NULL
----
-3

query I rowsort
SELECT - col2 + + 91 FROM tab2 WHERE NOT - 33 IS NULL
----
33
51
68

onlyif mysql # aggregate syntax: 
query II rowsort label-5349
SELECT DISTINCT - 32 AS col2, COUNT( * ) * - + 54 * - - 60 FROM tab0
----
-32
-9720

skipif mysql # not compatible
query II rowsort label-5349
SELECT DISTINCT - 32 AS col2, COUNT ( * ) * - + 54 * - - 60 FROM tab0
----
-32
-9720

query I rowsort
SELECT ALL - + 94 AS col1 FROM tab0 WHERE NOT + col1 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5351
SELECT - SUM( ALL + ( + col1 ) ) FROM tab1
----
-66

skipif mysql # not compatible
query I rowsort label-5351
SELECT - SUM ( ALL + ( + col1 ) ) FROM tab1
----
-66

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( NOT - col0 IS NULL )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5353
SELECT + MIN( DISTINCT + - 57 ) * + SUM( DISTINCT - col2 ) * 36 + - + COUNT( * ), COUNT( - ( + 98 ) ) AS col0 FROM tab0
----
320109
3

skipif mysql # not compatible
query II rowsort label-5353
SELECT + MIN ( DISTINCT + - 57 ) * + SUM ( DISTINCT - col2 ) * 36 + - + COUNT ( * ), COUNT ( - ( + 98 ) ) AS col0 FROM tab0
----
320109
3

query I rowsort
SELECT - col0 AS col1 FROM tab0 WHERE NOT + - ( - 60 ) - + col0 <> - col2 * + - col1
----

query I rowsort
SELECT DISTINCT col2 AS col2 FROM tab0 AS cor0 WHERE NOT 51 = - col0
----
10
47
99

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col2 * + - col0 / col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + + col1 * 17 FROM tab2 AS cor0 WHERE NOT - 67 + + col0 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5358
SELECT ALL + 17 * - col0 DIV col0 FROM tab1 cor0
----
-17
-17
-17

skipif mysql # not compatible
query I rowsort label-5358
SELECT ALL + 17 * - col0 / col0 FROM tab1 cor0
----
-17
-17
-17

query I rowsort
SELECT + ( 22 ) AS col2 FROM tab1 AS cor0
----
22
22
22

onlyif mysql # aggregate syntax: 
query I rowsort label-5360
SELECT ALL + MAX( ALL - col2 ) AS col2 FROM tab2 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-5360
SELECT ALL + MAX ( ALL - col2 ) AS col2 FROM tab2 AS cor0
----
-23

query I rowsort
SELECT ALL + + 31 * + 4 FROM tab1 AS cor0
----
124
124
124

query I rowsort
SELECT DISTINCT + + 49 AS col1 FROM tab0 cor0
----
49

query II rowsort
SELECT ALL + col2 AS col0, ( + - 39 ) AS col2 FROM tab2 AS cor0
----
23
-39
40
-39
58
-39

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1, col1 col0 FROM tab0 AS cor0
----
1
1
21
21
81
81

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT - ( 7 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5366
SELECT ALL - COUNT( * ) DIV 66 AS col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5366
SELECT ALL - COUNT ( * ) / 66 AS col1 FROM tab0 AS cor0
----
0

query I rowsort
SELECT + 39 + - col1 AS col2 FROM tab1 AS cor0
----
-8
25
34

onlyif mysql # aggregate syntax: 
query I rowsort label-5368
SELECT + COUNT( * ) * 58 + + + SUM( DISTINCT col2 ) FROM tab0 AS cor0
----
330

skipif mysql # not compatible
query I rowsort label-5368
SELECT + COUNT ( * ) * 58 + + + SUM ( DISTINCT col2 ) FROM tab0 AS cor0
----
330

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5369
SELECT + SUM( - - CAST( NULL AS DECIMAL ) ) FROM tab2 WHERE NULL NOT BETWEEN NULL AND + 95
----
NULL

skipif mysql # not compatible
query I rowsort label-5369
SELECT + SUM ( - - CAST ( NULL AS REAL ) ) FROM tab2 WHERE NULL NOT BETWEEN NULL AND + 95
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5370
SELECT ( - + COUNT( + col1 ) ) AS col0 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-5370
SELECT ( - + COUNT ( + col1 ) ) AS col0 FROM tab2
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5371
SELECT + MAX( ALL 97 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
97

skipif mysql # not compatible
query I rowsort label-5371
SELECT + MAX ( ALL 97 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
97

query I rowsort
SELECT - col1 + + 72 FROM tab1 AS cor0
----
25
58
67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5373
SELECT + col2 + + + CAST( + col0 AS SIGNED ) FROM tab2 AS cor0
----
104
133
69

skipif mysql # not compatible
query I rowsort label-5373
SELECT + col2 + + + CAST ( + col0 AS INTEGER ) FROM tab2 AS cor0
----
104
133
69

query I rowsort
SELECT - + 98 + ( col1 ) + - - 2 AS col0 FROM tab1 AS cor0
----
-49
-82
-91

query I rowsort
SELECT 74 * - col0 FROM tab2 cor0
----
-3404
-4736
-5550

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT ( NULL ) IN ( col2, + 12 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5377
SELECT - + col0 DIV 44 AS col2 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-5377
SELECT - + col0 / 44 AS col2 FROM tab2 AS cor0
----
-1
-1
-1

query I rowsort
SELECT DISTINCT + col1 AS col2 FROM tab0 WHERE 67 * + - col0 / - ( - col0 ) IS NOT NULL
----
1
21
81

query I rowsort
SELECT DISTINCT + col1 * - - col2 / + 91 AS col0 FROM tab2 WHERE NOT NULL BETWEEN - col1 AND + 79
----

query III rowsort
SELECT ALL * FROM tab0 WHERE - ( col2 ) + + 26 NOT BETWEEN - - 35 * - ( 65 ) AND - col1 / + 46 + + col1 + - col0
----
87
21
10
97
1
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col2 * col2 + - col1 col1 FROM tab2 AS cor0
----
1523
3297
478

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + ( col1 ) + col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + col2 * - - col2 - - 2 FROM tab1 AS cor0
----
3483
4626
9218

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( + - col2 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - 62 AS col1 FROM tab2 cor0
----
-62
-62
-62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5386
SELECT DISTINCT + CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-5386
SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

query I rowsort
SELECT col1 + + - 18 AS col0 FROM tab1
----
-13
-4
29

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col0 * 0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-5389
SELECT ALL - ( + - COUNT( * ) ) FROM tab0 cor0 WHERE ( NULL ) < 28
----
0

skipif mysql # not compatible
query I rowsort label-5389
SELECT ALL - ( + - COUNT ( * ) ) FROM tab0 cor0 WHERE ( NULL ) < 28
----
0

query I rowsort
SELECT DISTINCT - col1 + + col2 + - - 15 AS col1 FROM tab2 AS cor0
----
-13
-22
6

query I rowsort
SELECT DISTINCT 23 + + + col2 FROM tab0 AS cor0
----
122
33
70

query II rowsort
SELECT - 82 AS col2, - col0 + col1 * - 84 AS col0 FROM tab1 AS cor0
----
-82
-1227
-82
-4039
-82
-505

onlyif mysql # aggregate syntax: 
query I rowsort label-5393
SELECT + COUNT( * ) * + - COUNT( * ) FROM tab1 AS cor0 WHERE + 40 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-5393
SELECT + COUNT ( * ) * + - COUNT ( * ) FROM tab1 AS cor0 WHERE + 40 IS NULL
----
0

query I rowsort
SELECT ALL col1 + col2 * - + col1 * - col1 FROM tab1 AS cor0
----
1480
150259
18830

query I rowsort
SELECT DISTINCT - - col0 + - col0 FROM tab1 AS cor0 WHERE + 74 / - 7 * col0 + col1 <> NULL
----

query I rowsort
SELECT ALL + col0 * + col0 + + col2 + - + col1 AS col0 FROM tab0 AS cor0
----
191
7558
9507

onlyif mysql # DIV for integer division: 
query I rowsort label-5397
SELECT col1 * 56 DIV ( + ( - - col0 ) ) AS col1 FROM tab1
----
15
28
3

skipif mysql # not compatible
query I rowsort label-5397
SELECT col1 * 56 / ( + ( - - col0 ) ) AS col1 FROM tab1
----
15
28
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5398
SELECT - 22 + + MIN( + col0 ) AS col0 FROM tab0
----
-7

skipif mysql # not compatible
query I rowsort label-5398
SELECT - 22 + + MIN ( + col0 ) AS col0 FROM tab0
----
-7

query I rowsort
SELECT DISTINCT - col1 + + 2 FROM tab2
----
-49
-65
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-5400
SELECT 82 + COUNT( * ) AS col1 FROM tab2
----
85

skipif mysql # not compatible
query I rowsort label-5400
SELECT 82 + COUNT ( * ) AS col1 FROM tab2
----
85

query I rowsort
SELECT 5 * + col1 + - + 26 FROM tab1
----
-1
209
44

query I rowsort
SELECT + ( + col1 ) + col0 AS col2 FROM tab2 AS cor0
----
141
142
97

query I rowsort
SELECT ALL + - col0 - col1 * + - col0 * - - col1 + - col0 AS col0 FROM tab1 AS cor0
----
1955
200837
9894

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5404
SELECT DISTINCT 66 * CAST( 21 AS SIGNED ) - + COUNT( * ) col0 FROM tab0
----
1383

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5404
SELECT DISTINCT 66 * CAST ( 21 AS INTEGER ) - + COUNT ( * ) col0 FROM tab0
----
1383

query I rowsort
SELECT ALL col0 * + - 67 - + + col2 + 88 AS col2 FROM tab0
----
-5751
-6510
-964

onlyif mysql # aggregate syntax: 
query I rowsort label-5406
SELECT + MAX( + - col2 ) FROM tab1 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-5406
SELECT + MAX ( + - col2 ) FROM tab1 AS cor0
----
-59

query I rowsort
SELECT DISTINCT + col2 FROM tab2 AS cor0 WHERE NOT NULL <> + 4 * + col0
----

query II rowsort
SELECT 82 AS col1, + col1 AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
82
14
82
47
82
5

onlyif mysql # aggregate syntax: 
query I rowsort label-5409
SELECT + + 19 * - MAX( DISTINCT + 24 ) AS col1 FROM tab1 AS cor0 WHERE NOT col0 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5409
SELECT + + 19 * - MAX ( DISTINCT + 24 ) AS col1 FROM tab1 AS cor0 WHERE NOT col0 IS NOT NULL
----
NULL

query I rowsort
SELECT ALL - col2 AS col1 FROM tab1 AS cor0 WHERE NOT col1 * - + col0 = + - col2 + - col0
----
-59
-68
-96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5411
SELECT DISTINCT COUNT( * ) * MAX( ALL col2 ) FROM tab1 AS cor0 WHERE NOT + CAST( - + col0 AS SIGNED ) + - col1 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5411
SELECT DISTINCT COUNT ( * ) * MAX ( ALL col2 ) FROM tab1 AS cor0 WHERE NOT + CAST ( - + col0 AS INTEGER ) + - col1 IS NOT NULL
----
NULL

query I rowsort
SELECT + + ( 98 ) FROM tab2 AS cor0 WHERE NOT ( ( NOT col2 * - col2 IS NOT NULL ) )
----
98
98
98

query I rowsort
SELECT ( + + 51 ) FROM tab0
----
51
51
51

query I rowsort
SELECT 63 + - + col1 FROM tab1 WHERE NOT col0 <= - + col1
----
16
49
58

query II rowsort
SELECT col2, + col2 AS col1 FROM tab2
----
23
23
40
40
58
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5416
SELECT CAST( + - COUNT( * ) AS SIGNED ) AS col1 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-5416
SELECT CAST ( + - COUNT ( * ) AS INTEGER ) AS col1 FROM tab1
----
-3

query III rowsort
SELECT ALL * FROM tab2 WHERE + 89 <= + col2 * col0 + + + 53
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT col0 AS col0, 71 - - ( col2 ) FROM tab2
----
46
94
64
111
75
129

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5419
SELECT - CAST( ( col1 ) AS SIGNED ) AS col2 FROM tab1 WHERE NOT col2 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-5419
SELECT - CAST ( ( col1 ) AS INTEGER ) AS col2 FROM tab1 WHERE NOT col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT col1 FROM tab1 WHERE + col2 * - + col1 IS NULL
----

query I rowsort
SELECT ALL + - 10 AS col0 FROM tab0 WHERE NOT - + col1 + - 46 IS NOT NULL
----

query I rowsort
SELECT col2 * - col2 * - + ( + - col2 ) * + col0 AS col0 FROM tab0 AS cor0
----
-1557345
-87000
-94119003

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5423
SELECT ALL - - CAST( - COUNT( * ) AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5423
SELECT ALL - - CAST ( - COUNT ( * ) AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-3

query I rowsort
SELECT - 50 * - 40 FROM tab0 AS cor0
----
2000
2000
2000

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5425
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL >= + CAST( NULL AS SIGNED ) / + col1
----

skipif mysql # not compatible
query III rowsort label-5425
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL >= + CAST ( NULL AS INTEGER ) / + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5426
SELECT - - COUNT( - col0 ) AS col0 FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-5426
SELECT - - COUNT ( - col0 ) AS col0 FROM tab2 cor0
----
3

query III rowsort
SELECT * FROM tab0 WHERE ( + col2 ) / - col0 * + col2 - + - col2 IS NULL
----

query I rowsort
SELECT + - 52 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 9500afe5646d620d5e8943351a29d082

query I rowsort
SELECT ALL + 42 + - 7 * - + col2 + + col2 - + col2 * col2 * ( + col1 ) AS col1 FROM tab2 AS cor0
----
-122838
-224882
-26753

query II rowsort
SELECT col0 + + + col2, col0 FROM tab0 cor0
----
196
97
62
15
97
87

query I rowsort
SELECT ALL - 0 FROM tab1 AS cor0 WHERE 39 NOT BETWEEN + + 96 * - + 76 AND 90 * - col2 + - + col2
----
0
0
0

query I rowsort
SELECT DISTINCT col1 + - 24 * + 46 AS col2 FROM tab0 AS cor0
----
-1023
-1083
-1103

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE 42 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5434
SELECT CAST( + CAST( + MAX( - col2 ) AS DECIMAL ) AS SIGNED ) + + 60 AS col0 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-5434
SELECT CAST ( + CAST ( + MAX ( - col2 ) AS REAL ) AS INTEGER ) + + 60 AS col0 FROM tab1 AS cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5435
SELECT - + SUM( 85 ) + 55 + - MAX( DISTINCT - - 93 ) + COUNT( * ) + - - 98 AS col1 FROM tab0 AS cor0
----
-192

skipif mysql # not compatible
query I rowsort label-5435
SELECT - + SUM ( 85 ) + 55 + - MAX ( DISTINCT - - 93 ) + COUNT ( * ) + - - 98 AS col1 FROM tab0 AS cor0
----
-192

query I rowsort
SELECT - 48 * - col2 * - col2 * + + col1 FROM tab1
----
-10431744
-6193152
-835440

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * + col1 col1 FROM tab2
----
-2601
-4489
-5929

onlyif mysql # aggregate syntax: 
query I rowsort label-5438
SELECT ALL - COUNT( * ) * - 21 AS col0 FROM tab1
----
63

skipif mysql # not compatible
query I rowsort label-5438
SELECT ALL - COUNT ( * ) * - 21 AS col0 FROM tab1
----
63

query I rowsort
SELECT DISTINCT col0 * + - 66 FROM tab2
----
-3036
-4224
-4950

onlyif mysql # DIV for integer division: 
query I rowsort label-5440
SELECT ALL 20 DIV + 41 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5440
SELECT ALL 20 / + 41 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5441
SELECT - - COUNT( * ) AS col0 FROM tab2 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-5441
SELECT - - COUNT ( * ) AS col0 FROM tab2 WHERE NULL IS NOT NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5442
SELECT CAST( + + 69 AS SIGNED ) FROM tab2
----
69
69
69

skipif mysql # not compatible
query I rowsort label-5442
SELECT CAST ( + + 69 AS INTEGER ) FROM tab2
----
69
69
69

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col1 NOT BETWEEN NULL AND col1
----

query I rowsort
SELECT DISTINCT + ( - - col2 ) - - - col0 - + col0 FROM tab2
----
-69
-88
-92

query I rowsort
SELECT - - 9 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 03b93b53107e36cf7d524e48c509b17b

query I rowsort
SELECT DISTINCT 33 * - 43 FROM tab0
----
-1419

onlyif mysql # DIV for integer division: 
query I rowsort label-5447
SELECT ALL 18 DIV + col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5447
SELECT ALL 18 / + col1 FROM tab2
----
0
0
0

query I rowsort
SELECT ALL - 60 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 067a4b5daf8747042e3b07ca8459859f

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT 22 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5450
SELECT DISTINCT COUNT( * ) DIV + 50 * - - COUNT( * ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5450
SELECT DISTINCT COUNT ( * ) / + 50 * - - COUNT ( * ) FROM tab1 AS cor0
----
0

query I rowsort
SELECT + 86 * + - col2 * + col0 FROM tab2 AS cor0
----
-220160
-374100
-90988

onlyif mysql # aggregate syntax: 
query II rowsort label-5452
SELECT DISTINCT 70 AS col0, 29 * + COUNT( * ) AS col2 FROM tab0 AS cor0
----
70
87

skipif mysql # not compatible
query II rowsort label-5452
SELECT DISTINCT 70 AS col0, 29 * + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
70
87

onlyif mysql # DIV for integer division: 
query II rowsort label-5453
SELECT ALL col0 AS col0, + col0 DIV col0 FROM tab2 AS cor0
----
46
1
64
1
75
1

skipif mysql # not compatible
query II rowsort label-5453
SELECT ALL col0 AS col0, + col0 / col0 FROM tab2 AS cor0
----
46
1
64
1
75
1

query II rowsort
SELECT - - col0 AS col2, + col1 AS col2 FROM tab0 AS cor0
----
15
81
87
21
97
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col0 col0, 73 FROM tab2 AS cor0
----
-46
73
-64
73
-75
73

query I rowsort
SELECT DISTINCT - col1 AS col2 FROM tab0 AS cor0 WHERE - col1 + + - col1 * - + 29 > + col0
----
-21
-81

onlyif mysql # DIV for integer division: 
query I rowsort label-5457
SELECT col0 DIV col1 * + - 38 DIV + col2 + + 83 AS col1 FROM tab2 AS cor0
----
83
83
83

skipif mysql # not compatible
query I rowsort label-5457
SELECT col0 / col1 * + - 38 / + col2 + + 83 AS col1 FROM tab2 AS cor0
----
83
83
83

onlyif mysql # DIV for integer division: 
query II rowsort label-5458
SELECT DISTINCT 91 DIV + ( + 93 ), col1 FROM tab2
----
0
51
0
67
0
77

skipif mysql # not compatible
query II rowsort label-5458
SELECT DISTINCT 91 / + ( + 93 ), col1 FROM tab2
----
0
51
0
67
0
77

query I rowsort
SELECT + ( + 13 ) AS col1 FROM tab1
----
13
13
13

query II rowsort
SELECT + ( + col1 ) AS col2, col2 FROM tab2
----
51
23
67
58
77
40

query I rowsort
SELECT 50 * - + 14 FROM tab1
----
-700
-700
-700

onlyif mysql # aggregate syntax: 
query I rowsort label-5462
SELECT + - 50 * + COUNT( * ) AS col0 FROM tab2 AS cor0
----
-150

skipif mysql # not compatible
query I rowsort label-5462
SELECT + - 50 * + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-150

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5463
SELECT DISTINCT - COUNT( * ) DIV - 21 col2 FROM tab0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5463
SELECT DISTINCT - COUNT ( * ) / - 21 col2 FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5464
SELECT DISTINCT COUNT( + + col0 ) AS col2 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-5464
SELECT DISTINCT COUNT ( + + col0 ) AS col2 FROM tab0
----
3

query I rowsort
SELECT - col2 + + ( ( + col0 ) ) AS col2 FROM tab1
----
-45
23
26

query I rowsort
SELECT 29 * - 29 FROM tab0
----
-841
-841
-841

query I rowsort
SELECT + ( - + 29 ) AS col2 FROM tab1
----
-29
-29
-29

query I rowsort
SELECT DISTINCT - ( + ( 44 ) ) * + + 68 AS col0 FROM tab1
----
-2992

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5469
SELECT col1, col2 * + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
51
NULL
67
NULL
77
NULL

skipif mysql # not compatible
query II rowsort label-5469
SELECT col1, col2 * + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
51
NULL
67
NULL
77
NULL

query II rowsort
SELECT DISTINCT - col2, - col1 AS col0 FROM tab2 AS cor0
----
-23
-51
-40
-77
-58
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-5471
SELECT ALL + - MIN( + - col0 ) + - 38 AS col2 FROM tab0 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-5471
SELECT ALL + - MIN ( + - col0 ) + - 38 AS col2 FROM tab0 AS cor0
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-5472
SELECT - ( - ( - COUNT( * ) ) ) AS col1 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5472
SELECT - ( - ( - COUNT ( * ) ) ) AS col1 FROM tab0 AS cor0
----
-3

query I rowsort
SELECT DISTINCT - AVG ( col0 ) AS col0 FROM tab2 AS cor0 WHERE + 12 + - col2 IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5474
SELECT DISTINCT - 5 + COUNT( ALL - 97 ) FROM tab2
----
-2

skipif mysql # not compatible
query I rowsort label-5474
SELECT DISTINCT - 5 + COUNT ( ALL - 97 ) FROM tab2
----
-2

query I rowsort
SELECT DISTINCT ( col2 ) * - col2 * + col2 + + 44 AS col1 FROM tab1
----
-205335
-314388
-884692

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5476
SELECT - - col1 FROM tab1 WHERE + + CAST( col2 AS SIGNED ) IS NOT NULL
----
14
47
5

skipif mysql # not compatible
query I rowsort label-5476
SELECT - - col1 FROM tab1 WHERE + + CAST ( col2 AS INTEGER ) IS NOT NULL
----
14
47
5

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT 14 >= NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5478
SELECT ALL + COUNT( 61 ) col0, - 86 * + - COUNT( * ) + + 42 FROM tab2
----
3
300

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5478
SELECT ALL + COUNT ( 61 ) col0, - 86 * + - COUNT ( * ) + + 42 FROM tab2
----
3
300

query I rowsort
SELECT + col1 * col0 + - col0 AS col0 FROM tab1
----
340
4186
663

query II rowsort
SELECT col2 * - + 4 * - col1 * + 35 + + + 42 AS col2, - ( - col2 ) FROM tab2
----
164262
23
431242
40
544082
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 col0 FROM tab2 AS cor0 WHERE NOT NULL IN ( col2, + 79, col2, - + col2 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col1 = + - 66 / + 6
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 WHERE NOT - 14 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT DISTINCT col2 AS col0, - col2 AS col0 FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-5485
SELECT ALL 59 AS col0, - 10 DIV col1 DIV 75 FROM tab0 cor0
----
59
0
59
0
59
0

skipif mysql # not compatible
query II rowsort label-5485
SELECT ALL 59 AS col0, - 10 / col1 / 75 FROM tab0 cor0
----
59
0
59
0
59
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5486
SELECT DISTINCT CAST( 39 AS SIGNED ) * + col1 - 54 - col0 FROM tab2 AS cor0
----
1889
2484
2885

skipif mysql # not compatible
query I rowsort label-5486
SELECT DISTINCT CAST ( 39 AS INTEGER ) * + col1 - 54 - col0 FROM tab2 AS cor0
----
1889
2484
2885

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5487
SELECT DISTINCT - 72 DIV COUNT( - + col0 ) FROM tab1
----
-24

skipif mysql # not compatible
query I rowsort label-5487
SELECT DISTINCT - 72 / COUNT ( - + col0 ) FROM tab1
----
-24

query I rowsort
SELECT - col0 * - + ( 2 ) FROM tab1
----
102
170
182

query I rowsort
SELECT - col0 + + col2 + + 69 AS col2 FROM tab2
----
45
46
52

onlyif mysql # aggregate syntax: 
query I rowsort label-5490
SELECT ALL COUNT( * ) * ( - COUNT( * ) ) FROM tab0
----
-9

skipif mysql # not compatible
query I rowsort label-5490
SELECT ALL COUNT ( * ) * ( - COUNT ( * ) ) FROM tab0
----
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 99 col1 FROM tab2
----
99
99
99

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL = col1
----

query III rowsort
SELECT ALL * FROM tab1 WHERE - col0 + + 42 <= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col2 AS col0, col1 + - + col1 col0 FROM tab0
----
-10
0
-47
0
-99
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5495
SELECT DISTINCT + - 61 * COUNT( * ) AS col0 FROM tab1 cor0
----
-183

skipif mysql # not compatible
query I rowsort label-5495
SELECT DISTINCT + - 61 * COUNT ( * ) AS col0 FROM tab1 cor0
----
-183

onlyif mysql # DIV for integer division: 
query I rowsort label-5496
SELECT - 65 DIV - col1 + + + 38 * - col1 + - 62 AS col2 FROM tab0 AS cor0
----
-3140
-35
-857

skipif mysql # not compatible
query I rowsort label-5496
SELECT - 65 / - col1 + + + 38 * - col1 + - 62 AS col2 FROM tab0 AS cor0
----
-3140
-35
-857

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5497
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) NOT BETWEEN NULL AND + CAST( + col1 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-5497
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) NOT BETWEEN NULL AND + CAST ( + col1 AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5498
SELECT - COUNT( * ) + - + 83, - MAX( DISTINCT col0 ) AS col0 FROM tab2 AS cor0
----
-86
-75

skipif mysql # not compatible
query II rowsort label-5498
SELECT - COUNT ( * ) + - + 83, - MAX ( DISTINCT col0 ) AS col0 FROM tab2 AS cor0
----
-86
-75

query I rowsort
SELECT col2 + + 14 - + + 27 * col0 AS col1 FROM tab0 AS cor0
----
-2325
-2506
-344

onlyif mysql # DIV for integer division: 
query I rowsort label-5500
SELECT DISTINCT + 49 DIV + col1 + - 8 FROM tab2 AS cor0
----
-8

skipif mysql # not compatible
query I rowsort label-5500
SELECT DISTINCT + 49 / + col1 + - 8 FROM tab2 AS cor0
----
-8

query I rowsort
SELECT DISTINCT - ( + col0 ) * col1 + 3 + + + 79 FROM tab1 AS cor0
----
-343
-4195
-632

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + 97 / col2 NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab0 WHERE - - 49 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5504
SELECT DISTINCT - COUNT( * ) AS col0 FROM tab2, tab0 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-5504
SELECT DISTINCT - COUNT ( * ) AS col0 FROM tab2, tab0 AS cor0
----
-9

query III rowsort
SELECT * FROM tab0 WHERE + col2 - col0 * - col0 <= + + col0 * col1
----
15
81
47

query I rowsort
SELECT DISTINCT 13 - + col2 AS col2 FROM tab0
----
-34
-86
3

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col1 BETWEEN NULL AND - col0
----

query I rowsort
SELECT col1 - col2 * 18 FROM tab2 WHERE ( - col1 ) >= + col0 / 23
----

query III rowsort
SELECT * FROM tab1 WHERE - col2 = col2 * - ( - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5510
SELECT ( - MAX( DISTINCT col0 ) ) AS col2 FROM tab1
----
-91

skipif mysql # not compatible
query I rowsort label-5510
SELECT ( - MAX ( DISTINCT col0 ) ) AS col2 FROM tab1
----
-91

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( - col0 ) < + 27
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5512
SELECT CAST( col0 AS SIGNED ) AS col1 FROM tab2 WHERE NULL NOT IN ( - col1 + 54 )
----

skipif mysql # not compatible
query I rowsort label-5512
SELECT CAST ( col0 AS INTEGER ) AS col1 FROM tab2 WHERE NULL NOT IN ( - col1 + 54 )
----

query I rowsort
SELECT ALL ( - col2 ) AS col2 FROM tab2 WHERE 54 * - col1 - - col0 NOT IN ( col1 )
----
-23
-40
-58

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5514
SELECT * FROM tab1 WHERE NOT + col2 * + CAST( 96 * - 85 AS SIGNED ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-5514
SELECT * FROM tab1 WHERE NOT + col2 * + CAST ( 96 * - 85 AS INTEGER ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + col2 * 54 + - col2 FROM tab2
----
1219
2120
3074

query I rowsort
SELECT DISTINCT ( col2 ) AS col2 FROM tab2 WHERE ( 90 ) IS NULL
----

query I rowsort
SELECT DISTINCT + 16 FROM tab1 WHERE - col1 IS NULL
----

query I rowsort
SELECT ALL ( ( - col2 ) ) FROM tab0
----
-10
-47
-99

query I rowsort
SELECT 9 * col2 FROM tab1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT + 92 + col2 AS col1 FROM tab1 WHERE + ( + col0 ) - 96 IS NOT NULL
----
151
160
188

onlyif mysql # DIV for integer division: 
query I rowsort label-5521
SELECT + col2 DIV + col2 + + 12 FROM tab2
----
13
13
13

skipif mysql # not compatible
query I rowsort label-5521
SELECT + col2 / + col2 + + 12 FROM tab2
----
13
13
13

onlyif mysql # aggregate syntax: 
query I rowsort label-5522
SELECT 29 / MAX( DISTINCT - 27 ) AS col2 FROM tab2 WHERE NULL BETWEEN - col0 AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5522
SELECT 29 / MAX ( DISTINCT - 27 ) AS col2 FROM tab2 WHERE NULL BETWEEN - col0 AND NULL
----
NULL

onlyif mysql # DIV for integer division: 
query III rowsort label-5523
SELECT DISTINCT * FROM tab1 WHERE NOT 6 + - 3 <> ( ( + ( + 16 ) ) DIV + col1 )
----
85
5
59

skipif mysql # not compatible
query III rowsort label-5523
SELECT DISTINCT * FROM tab1 WHERE NOT 6 + - 3 <> ( ( + ( + 16 ) ) / + col1 )
----
85
5
59

query I rowsort
SELECT - 86 + - col0 * - col0 AS col2 FROM tab2 WHERE NULL NOT BETWEEN NULL AND ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5525
SELECT - ( CAST( NULL AS SIGNED ) ) + col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5525
SELECT - ( CAST ( NULL AS INTEGER ) ) + col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT col2 + - col2 * 76 FROM tab1 AS cor0 WHERE + 22 = 30 + + 64
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL NOT IN ( 62 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5528
SELECT - 12 + + COUNT( * ) FROM tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-5528
SELECT - 12 + + COUNT ( * ) FROM tab2 AS cor0
----
-9

query I rowsort
SELECT col1 AS col2 FROM tab0 AS cor0 WHERE - col0 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5530
SELECT DISTINCT col2 FROM tab2 AS cor0 WHERE 64 * 87 >= CAST( NULL AS SIGNED ) * + 46
----

skipif mysql # not compatible
query I rowsort label-5530
SELECT DISTINCT col2 FROM tab2 AS cor0 WHERE 64 * 87 >= CAST ( NULL AS INTEGER ) * + 46
----

query I rowsort
SELECT DISTINCT + 33 + col0 * col1 AS col2 FROM tab1 cor0
----
4310
458
747

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - 34 / - col0 IS NOT NULL
----

query I rowsort
SELECT - col1 / + col1 AS col0 FROM tab2 WHERE ( - col2 + + col2 ) >= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5534
SELECT + col2 DIV + 18 col0 FROM tab2 AS cor0
----
1
2
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5534
SELECT + col2 / + 18 col0 FROM tab2 AS cor0
----
1
2
3

query I rowsort
SELECT ALL - 96 + - col2 AS col1 FROM tab0 AS cor0
----
-106
-143
-195

query I rowsort
SELECT 39 FROM tab1 cor0 WHERE NULL IN ( - col0 + - col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL <= 26 + 3
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5538
SELECT DISTINCT - col1 / - col2 + + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5538
SELECT DISTINCT - col1 / - col2 + + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL - col0 - - 13 * - col2 AS col1 FROM tab1 AS cor0
----
-1299
-852
-975

query I rowsort
SELECT col1 FROM tab2 AS cor0 WHERE + col1 IS NULL
----

query I rowsort
SELECT ( + ( col2 ) ) + 19 FROM tab0
----
118
29
66

query I rowsort
SELECT 33 + + col0 * 41 FROM tab1
----
2124
3518
3764

query I rowsort
SELECT ALL + col2 FROM tab2 WHERE NOT + col2 / - col2 BETWEEN - 43 AND 98
----

query I rowsort
SELECT ALL - col0 - + 3 - 37 AS col1 FROM tab2
----
-104
-115
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-5545
SELECT DISTINCT COUNT( DISTINCT + col1 ) FROM tab1 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-5545
SELECT DISTINCT COUNT ( DISTINCT + col1 ) FROM tab1 WHERE NOT NULL IS NULL
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( + col1 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ( col1 ) AS col1 FROM tab2 WHERE NOT NULL BETWEEN NULL AND col1
----

query I rowsort
SELECT ALL - ( ( + col0 ) ) FROM tab1
----
-51
-85
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5549
SELECT DISTINCT - CAST( - col1 AS SIGNED ) AS col0 FROM tab0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-5549
SELECT DISTINCT - CAST ( - col1 AS INTEGER ) AS col0 FROM tab0
----
1
21
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 42 col0 FROM tab2 AS cor0
----
42
42
42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5551
SELECT DISTINCT 66 * 82 AS col2 FROM tab1 AS cor0 WHERE CAST( col2 AS SIGNED ) NOT IN ( col2 )
----

skipif mysql # not compatible
query I rowsort label-5551
SELECT DISTINCT 66 * 82 AS col2 FROM tab1 AS cor0 WHERE CAST ( col2 AS INTEGER ) NOT IN ( col2 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + col0 < ( + col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-5553
SELECT + + 88 DIV 93 AS col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5553
SELECT + + 88 / 93 AS col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) <> ( ( 51 ) )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5555
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + col1 IN ( CAST( 86 AS DECIMAL ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-5555
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + col1 IN ( CAST ( 86 AS REAL ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col0 FROM tab1 AS cor0 WHERE NOT 11 * + col1 / col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5557
SELECT ALL - 33 + + COUNT( * ) + + 46 * 65 AS col2 FROM tab0 AS cor0
----
2960

skipif mysql # not compatible
query I rowsort label-5557
SELECT ALL - 33 + + COUNT ( * ) + + 46 * 65 AS col2 FROM tab0 AS cor0
----
2960

query I rowsort
SELECT - col0 * + + col0 AS col2 FROM tab0 AS cor0
----
-225
-7569
-9409

query I rowsort
SELECT + 13 + col0 FROM tab0 AS cor0
----
100
110
28

onlyif mysql # DIV for integer division: 
query I rowsort label-5560
SELECT ( - col2 ) DIV col2 AS col2 FROM tab0 AS cor0 WHERE NOT ( + col1 ) IS NULL
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-5560
SELECT ( - col2 ) / col2 AS col2 FROM tab0 AS cor0 WHERE NOT ( + col1 ) IS NULL
----
-1
-1
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 78 * - col2 col2 FROM tab2 AS cor0 WHERE NOT NULL <= col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5562
SELECT + - 25 + - col2 + + col1 DIV ( - 90 ) AS col0 FROM tab2 AS cor0
----
-48
-65
-83

skipif mysql # not compatible
query I rowsort label-5562
SELECT + - 25 + - col2 + + col1 / ( - 90 ) AS col0 FROM tab2 AS cor0
----
-48
-65
-83

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 83 / + col2 * col2 <> col0
----

query I rowsort
SELECT DISTINCT - 29 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN + 50 AND + - col2 * col1 + - col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5565
SELECT col2 * + - col2 + col2 + + col1 DIV 12 FROM tab1
----
-3422
-4553
-9119

skipif mysql # not compatible
query I rowsort label-5565
SELECT col2 * + - col2 + col2 + + col1 / 12 FROM tab1
----
-3422
-4553
-9119

query I rowsort
SELECT + ( + + ( + 29 ) ) + - col0 + col1 AS col0 FROM tab0
----
-37
-67
95

query III rowsort
SELECT * FROM tab0 WHERE + col1 <= - + col1
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 90 - col1 IS NOT NULL
----

query I rowsort
SELECT ALL - 1 * - col2 AS col2 FROM tab1
----
59
68
96

query I rowsort
SELECT DISTINCT + 68 * + col0 * col1 AS col0 FROM tab0
----
124236
6596
82620

onlyif mysql # aggregate syntax: 
query I rowsort label-5571
SELECT ALL MAX( ALL + col0 ) + COUNT( * ) FROM tab2
----
78

skipif mysql # not compatible
query I rowsort label-5571
SELECT ALL MAX ( ALL + col0 ) + COUNT ( * ) FROM tab2
----
78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5572
SELECT col2 + + CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0 WHERE ( - 41 * - + col2 * + - col1 / + col2 ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-5572
SELECT col2 + + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0 WHERE ( - 41 * - + col2 * + - col1 / + col2 ) IS NULL
----

query I rowsort
SELECT ALL - ( - + col0 ) + + 26 - - 67 + + 78 FROM tab2 AS cor0
----
217
235
246

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col0 + + col0 * + col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT ALL - - 9 * - 99 AS col1, 7 + - 56 AS col1 FROM tab2 AS cor0
----
-891
-49
-891
-49
-891
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-5576
SELECT - COUNT( ALL 35 ) AS col0 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5576
SELECT - COUNT ( ALL 35 ) AS col0 FROM tab1 AS cor0
----
-3

query I rowsort
SELECT + - 55 * + + col2 - + - col2 FROM tab0 AS cor0
----
-2538
-5346
-540

query I rowsort
SELECT col1 - - 82 FROM tab2
----
133
149
159

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5579
SELECT DISTINCT MAX( col0 ) * - + CAST( COUNT( * ) AS SIGNED ) FROM tab1
----
-273

skipif mysql # not compatible
query I rowsort label-5579
SELECT DISTINCT MAX ( col0 ) * - + CAST ( COUNT ( * ) AS INTEGER ) FROM tab1
----
-273

query I rowsort
SELECT col1 * + 58 + + - col1 FROM tab1 AS cor0
----
2679
285
798

onlyif mysql # DIV for integer division: 
query I rowsort label-5581
SELECT ALL - col0 DIV + col0 + + 31 FROM tab0 cor0
----
30
30
30

skipif mysql # not compatible
query I rowsort label-5581
SELECT ALL - col0 / + col0 + + 31 FROM tab0 cor0
----
30
30
30

query I rowsort
SELECT DISTINCT 22 + + 42 + + 11 AS col2 FROM tab1 AS cor0 WHERE NOT 60 NOT BETWEEN + col0 AND NULL
----

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE 26 IS NULL
----

query I rowsort
SELECT col1 * - col0 + + col0 + - col1 + + - col2 * + col0 FROM tab1 AS cor0
----
-10421
-5360
-5573

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 76 > 78 * + 88
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( NOT ( NULL ) NOT IN ( - col2 ) )
----

query I rowsort
SELECT DISTINCT col0 * 52 FROM tab2
----
2392
3328
3900

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5588
SELECT ALL - 97 * + CAST( NULL AS SIGNED ) FROM tab1, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-5588
SELECT ALL - 97 * + CAST ( NULL AS INTEGER ) FROM tab1, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + col2 NOT BETWEEN 68 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5590
SELECT MIN( DISTINCT 24 ) FROM tab1
----
24

skipif mysql # not compatible
query I rowsort label-5590
SELECT MIN ( DISTINCT 24 ) FROM tab1
----
24

query I rowsort
SELECT - 70 AS col1 FROM tab2 WHERE NOT col1 * col2 NOT BETWEEN ( 60 ) AND NULL
----

query I rowsort
SELECT - 21 AS col2 FROM tab1 WHERE NOT ( NOT NULL IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5593
SELECT MAX( - col1 ) col0 FROM tab1
----
-5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5593
SELECT MAX ( - col1 ) col0 FROM tab1
----
-5

query I rowsort
SELECT + col1 * + 76 AS col0 FROM tab0
----
1596
6156
76

onlyif mysql # DIV for integer division: 
query I rowsort label-5595
SELECT DISTINCT - 14 DIV - - col0 AS col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5595
SELECT DISTINCT - 14 / - - col0 AS col0 FROM tab1 AS cor0
----
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 86 + + 15 + + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5597
SELECT - COUNT( * ) * + + ( - MAX( DISTINCT - 89 ) ) col0 FROM tab1 cor0
----
-267

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5597
SELECT - COUNT ( * ) * + + ( - MAX ( DISTINCT - 89 ) ) col0 FROM tab1 cor0
----
-267

onlyif mysql # aggregate syntax: 
query I rowsort label-5598
SELECT ALL SUM( + 43 ) FROM tab2 AS cor0
----
129

skipif mysql # not compatible
query I rowsort label-5598
SELECT ALL SUM ( + 43 ) FROM tab2 AS cor0
----
129

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 47 col1, 87 FROM tab2 AS cor0
----
-47
87
-47
87
-47
87

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col0 <= + col2 + col1
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL <= + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5602
SELECT * FROM tab2 WHERE NOT 14 * - - 8 + + - col2 >= CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-5602
SELECT * FROM tab2 WHERE NOT 14 * - - 8 + + - col2 >= CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5603
SELECT ALL - + COUNT( * ) FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 )
----
-9

skipif mysql # not compatible
query I rowsort label-5603
SELECT ALL - + COUNT ( * ) FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 )
----
-9

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + - ( - col1 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5605
SELECT SUM( + + 20 ) FROM tab0
----
60

skipif mysql # not compatible
query I rowsort label-5605
SELECT SUM ( + + 20 ) FROM tab0
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-5606
SELECT DISTINCT SUM( ALL - col0 ) AS col1 FROM tab1 AS cor0
----
-227

skipif mysql # not compatible
query I rowsort label-5606
SELECT DISTINCT SUM ( ALL - col0 ) AS col1 FROM tab1 AS cor0
----
-227

onlyif mysql # aggregate syntax: 
query I rowsort label-5607
SELECT 0 * 65 - + COUNT( + + col0 ) + + 5 FROM tab1 cor0
----
2

skipif mysql # not compatible
query I rowsort label-5607
SELECT 0 * 65 - + COUNT ( + + col0 ) + + 5 FROM tab1 cor0
----
2

query II rowsort
SELECT + + ( + 13 ) AS col1, + col0 FROM tab0 AS cor0
----
13
15
13
87
13
97

query I rowsort
SELECT DISTINCT - + 30 FROM tab0 WHERE NOT + - col1 > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5610
SELECT ALL col0 + 9 * col2 AS col2 FROM tab2 WHERE - col1 NOT BETWEEN col1 AND - + 10 * 96 * - CAST( + 59 AS SIGNED ) * + 62
----
253
424
597

skipif mysql # not compatible
query I rowsort label-5610
SELECT ALL col0 + 9 * col2 AS col2 FROM tab2 WHERE - col1 NOT BETWEEN col1 AND - + 10 * 96 * - CAST ( + 59 AS INTEGER ) * + 62
----
253
424
597

query I rowsort
SELECT DISTINCT - 34 * - + col2 * + col0 * - - col1 FROM tab2
----
1834572
6702080
9909300

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5612
SELECT + CAST( NULL AS SIGNED ) + + - col1 + + 35 + + col0 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5612
SELECT + CAST ( NULL AS INTEGER ) + + - col1 + + 35 + + col0 AS col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT 71 * - 13 + - - 11 + + + col0 * + col0 FROM tab0
----
-687
6657
8497

query I rowsort
SELECT ( - col1 ) + + + col2 FROM tab1 AS cor0
----
21
54
82

query I rowsort
SELECT ALL + - 32 + + col2 FROM tab2 cor0
----
-9
26
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5616
SELECT ALL + CAST( - col1 AS SIGNED ) * - col2 FROM tab0 cor0
----
210
3807
99

skipif mysql # not compatible
query I rowsort label-5616
SELECT ALL + CAST ( - col1 AS INTEGER ) * - col2 FROM tab0 cor0
----
210
3807
99

onlyif mysql # aggregate syntax: 
query I rowsort label-5617
SELECT DISTINCT + COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE 12 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-5617
SELECT DISTINCT + COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE 12 IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5618
SELECT + - ( + - COUNT( * ) ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5618
SELECT + - ( + - COUNT ( * ) ) FROM tab2 AS cor0
----
3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col1 = col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5620
SELECT 62 * + + COUNT( DISTINCT + - col0 ) col2 FROM tab1
----
186

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5620
SELECT 62 * + + COUNT ( DISTINCT + - col0 ) col2 FROM tab1
----
186

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5621
SELECT COUNT( * ) * 95 DIV 86 AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-5621
SELECT COUNT ( * ) * 95 / 86 AS col2 FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5622
SELECT ALL SUM( 46 ) AS col0 FROM tab2
----
138

skipif mysql # not compatible
query I rowsort label-5622
SELECT ALL SUM ( 46 ) AS col0 FROM tab2
----
138

query II rowsort
SELECT ALL - 22 + col0 AS col1, - col1 AS col0 FROM tab1 AS cor0
----
29
-14
63
-5
69
-47

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5624
SELECT - - CAST( - 24 AS SIGNED ) AS col0, col1 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
-24
14
-24
47
-24
5

skipif mysql # not compatible
query II rowsort label-5624
SELECT - - CAST ( - 24 AS INTEGER ) AS col0, col1 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
-24
14
-24
47
-24
5

query I rowsort
SELECT DISTINCT + 48 * + + col2 AS col2 FROM tab1 cor0
----
2832
3264
4608

query I rowsort
SELECT 83 / - col0 * - col1 AS col2 FROM tab0 AS cor0 WHERE NOT - col2 <> + + 76
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5627
SELECT ALL - AVG ( ALL - CAST( NULL AS DECIMAL ) ) AS col1 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5627
SELECT ALL - AVG ( ALL - CAST ( NULL AS REAL ) ) AS col1 FROM tab2 cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 74 * - col1 AS col2, + 91 col0 FROM tab2 AS cor0
----
-3774
91
-4958
91
-5698
91

query I rowsort
SELECT DISTINCT - col0 * - 1 - 56 FROM tab1 AS cor0
----
-5
29
35

query I rowsort
SELECT ALL + col0 * + - 91 AS col1 FROM tab0
----
-1365
-7917
-8827

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - 48 = NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE - ( - 78 ) - + 69 + 58 BETWEEN col1 AND NULL
----

query I rowsort
SELECT DISTINCT - col0 * + 70 FROM tab2
----
-3220
-4480
-5250

onlyif mysql # aggregate syntax: 
query I rowsort label-5634
SELECT DISTINCT + MAX( - 36 ) FROM tab1
----
-36

skipif mysql # not compatible
query I rowsort label-5634
SELECT DISTINCT + MAX ( - 36 ) FROM tab1
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-5635
SELECT ALL - + COUNT( * ) * + + COUNT( * ) AS col0 FROM tab0 WHERE NULL = NULL
----
0

skipif mysql # not compatible
query I rowsort label-5635
SELECT ALL - + COUNT ( * ) * + + COUNT ( * ) AS col0 FROM tab0 WHERE NULL = NULL
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col1 >= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 AS col0, - 57 col0 FROM tab0 AS cor0
----
15
-57
87
-57
97
-57

query I rowsort
SELECT ALL - 95 * + col2 FROM tab2 AS cor0
----
-2185
-3800
-5510

onlyif mysql # DIV for integer division: 
query I rowsort label-5639
SELECT DISTINCT + col0 DIV + ( - col2 ) AS col0 FROM tab1 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-5639
SELECT DISTINCT + col0 / + ( - col2 ) AS col0 FROM tab1 AS cor0
----
-1
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 43 * - col1 col0 FROM tab2
----
2193
2881
3311

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + col2 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5642
SELECT DISTINCT + COUNT( 66 ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-5642
SELECT DISTINCT + COUNT ( 66 ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col0 IS NOT NULL AND NULL IS NOT NULL
----

query I rowsort
SELECT ALL + 94 + + col2 AS col2 FROM tab2 AS cor0
----
117
134
152

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5645
SELECT - - col1 * - + CAST( - + 69 AS SIGNED ) + - col0 * - - col0 AS col0 FROM tab2 AS cor0
----
-1002
1217
1403

skipif mysql # not compatible
query I rowsort label-5645
SELECT - - col1 * - + CAST ( - + 69 AS INTEGER ) + - col0 * - - col0 AS col0 FROM tab2 AS cor0
----
-1002
1217
1403

onlyif mysql # aggregate syntax: 
query I rowsort label-5646
SELECT COUNT( * ) + + - 91 - - 36 AS col2 FROM tab1 cor0
----
-52

skipif mysql # not compatible
query I rowsort label-5646
SELECT COUNT ( * ) + + - 91 - - 36 AS col2 FROM tab1 cor0
----
-52

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col0 * col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + col2 + - col1 - ( + 16 ) AS col2 FROM tab1 AS cor0
----
38
5
66

query II rowsort
SELECT DISTINCT - col1 AS col1, - col1 + - + col2 FROM tab2 AS cor0
----
-51
-74
-67
-125
-77
-117

query I rowsort
SELECT + 50 + 65 - - + col1 FROM tab1 AS cor0
----
120
129
162

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NULL ) BETWEEN NULL AND - col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5652
SELECT 26 + + 91 + + col1 DIV + col2 + + col2 * + + ( ( - + col1 ) ) * col2 * - col0 DIV col0 AS col1 FROM tab0 AS cor0
----
179047
2219
9918

skipif mysql # not compatible
query I rowsort label-5652
SELECT 26 + + 91 + + col1 / + col2 + + col2 * + + ( ( - + col1 ) ) * col2 * - col0 / col0 AS col1 FROM tab0 AS cor0
----
179047
2219
9918

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5653
SELECT + ( + + col1 ) * - col0 + + col0 * + CAST( NULL AS SIGNED ) + + col0 + col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5653
SELECT + ( + + col1 ) * - col0 + + col0 * + CAST ( NULL AS INTEGER ) + + col0 + col0 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 WHERE + 3 IS NULL
----

query I rowsort
SELECT ALL - ( - - 38 ) AS col0 FROM tab1
----
-38
-38
-38

query I rowsort
SELECT DISTINCT - col0 + + 80 * + + col0 FROM tab2
----
3634
5056
5925

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5657
SELECT ALL CAST( NULL AS DECIMAL ) + - col0 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5657
SELECT ALL CAST ( NULL AS REAL ) + - col0 AS col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col1 * - + 49 * + 98 - col1 * + col1 * + 53 AS col1 FROM tab1 AS cor0
----
-25335
-342771
-77616

onlyif mysql # aggregate syntax: 
query I rowsort label-5659
SELECT 46 - - SUM( DISTINCT + col2 ) AS col1 FROM tab2 AS cor0
----
167

skipif mysql # not compatible
query I rowsort label-5659
SELECT 46 - - SUM ( DISTINCT + col2 ) AS col1 FROM tab2 AS cor0
----
167

onlyif mysql # DIV for integer division: 
query I rowsort label-5660
SELECT ALL - + 18 DIV + 55 * - 76 + + + col0 FROM tab2 AS cor0
----
46
64
75

skipif mysql # not compatible
query I rowsort label-5660
SELECT ALL - + 18 / + 55 * - 76 + + + col0 FROM tab2 AS cor0
----
46
64
75

query I rowsort
SELECT DISTINCT + col1 - 99 AS col2 FROM tab1 AS cor0
----
-52
-85
-94

query I rowsort
SELECT col0 + - + col2 - - + ( + + 6 ) * - 51 FROM tab2 AS cor0
----
-282
-283
-289

onlyif mysql # aggregate syntax: 
query I rowsort label-5663
SELECT DISTINCT + 95 - SUM( DISTINCT + - col2 ) AS col2 FROM tab2
----
216

skipif mysql # not compatible
query I rowsort label-5663
SELECT DISTINCT + 95 - SUM ( DISTINCT + - col2 ) AS col2 FROM tab2
----
216

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - - 88 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + ( + - 11 ) AS col0 FROM tab1 AS cor0
----
-11

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col2 * col2 BETWEEN NULL AND + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT col0, + 9 FROM tab1 AS cor0
----
51
9
85
9
91
9

query I rowsort
SELECT ALL + + col0 * - col1 + + 79 FROM tab1 AS cor0
----
-346
-4198
-635

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( - col0 * + col0 / + + 76, col0 - - + ( - + 37 ), 92 * + 14 )
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NOT NULL <> - 95 - - 70 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5671
SELECT DISTINCT - CAST( NULL AS SIGNED ), MIN( + col2 ) col2 FROM tab2 AS cor0
----
NULL
23

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5671
SELECT DISTINCT - CAST ( NULL AS INTEGER ), MIN ( + col2 ) col2 FROM tab2 AS cor0
----
NULL
23

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( + col2 - - col1 NOT IN ( - col2 * col0, - 56, - col2 ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5673
SELECT DISTINCT + CAST( NULL AS SIGNED ) / ( col1 ) * + + col1 * - col0 AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5673
SELECT DISTINCT + CAST ( NULL AS INTEGER ) / ( col1 ) * + + col1 * - col0 AS col2 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL 64 AS col1 FROM tab1 AS cor0 WHERE - col2 * + 37 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 91 + - col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - + col0 * 32 AS col2 FROM tab2 cor0
----
-1472
-2048
-2400

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 21 col0 FROM tab0 cor0
----
21
21
21

onlyif mysql # DIV for integer division: 
query II rowsort label-5678
SELECT - + col2 DIV + col2, - 45 - + col0 AS col0 FROM tab0 AS cor0
----
-1
-132
-1
-142
-1
-60

skipif mysql # not compatible
query II rowsort label-5678
SELECT - + col2 / + col2, - 45 - + col0 AS col0 FROM tab0 AS cor0
----
-1
-132
-1
-142
-1
-60

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col2 >= - col0
----

query I rowsort
SELECT DISTINCT + 71 * 10 AS col0 FROM tab2 AS cor0
----
710

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - ( + - col0 ) IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col0 >= + - col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5683
SELECT ALL + CAST( + + COUNT( * ) AS SIGNED ) DIV - COUNT( * ) FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-5683
SELECT ALL + CAST ( + + COUNT ( * ) AS INTEGER ) / - COUNT ( * ) FROM tab0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5684
SELECT CAST( NULL AS SIGNED ) * + col0 + 19 * + col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5684
SELECT CAST ( NULL AS INTEGER ) * + col0 + 19 * + col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT - 24 FROM tab1 AS cor0 CROSS JOIN tab1 cor1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL 34 + - col1 FROM tab2 AS cor0
----
-17
-33
-43

query I rowsort
SELECT DISTINCT - - col2 + ( - col0 ) AS col2 FROM tab2 AS cor0
----
-17
-23
-24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5688
SELECT DISTINCT MAX( ALL + + ( + + col0 ) ) AS col1 FROM tab0 AS cor0 WHERE NOT - CAST( NULL AS SIGNED ) BETWEEN 17 AND 99 * + col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5688
SELECT DISTINCT MAX ( ALL + + ( + + col0 ) ) AS col1 FROM tab0 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) BETWEEN 17 AND 99 * + col0
----
NULL

query I rowsort
SELECT 82 FROM tab1 WHERE 10 IS NULL
----

query II rowsort
SELECT DISTINCT col1 AS col2, 70 AS col2 FROM tab0
----
1
70
21
70
81
70

query I rowsort
SELECT + ( - col2 ) FROM tab0 WHERE ( + 42 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5692
SELECT + SUM( + - 64 ) * + + SUM( DISTINCT - col0 ) + + + 7 FROM tab2
----
35527

skipif mysql # not compatible
query I rowsort label-5692
SELECT + SUM ( + - 64 ) * + + SUM ( DISTINCT - col0 ) + + + 7 FROM tab2
----
35527

query I rowsort
SELECT 45 * - col2 + + ( + + 1 ) FROM tab0
----
-2114
-4454
-449

onlyif mysql # DIV for integer division: 
query I rowsort label-5694
SELECT col1 * - - col0 + + + col1 DIV + col0 AS col2 FROM tab0
----
1220
1827
97

skipif mysql # not compatible
query I rowsort label-5694
SELECT col1 * - - col0 + + + col1 / + col0 AS col2 FROM tab0
----
1220
1827
97

onlyif mysql # aggregate syntax: 
query I rowsort label-5695
SELECT 73 + COUNT( col0 ) AS col1 FROM tab2
----
76

skipif mysql # not compatible
query I rowsort label-5695
SELECT 73 + COUNT ( col0 ) AS col1 FROM tab2
----
76

query I rowsort
SELECT - col1 FROM tab2 AS cor0 WHERE ( NULL ) > - col1
----

query II rowsort
SELECT DISTINCT - col2 + + 75 AS col0, - col1 FROM tab1 AS cor0
----
-21
-14
16
-5
7
-47

query I rowsort
SELECT DISTINCT + col0 + - + col1 - 52 * col1 FROM tab0 AS cor0
----
-1026
-4278
44

query I rowsort
SELECT ALL - 54 * - + col0 - - 94 AS col0 FROM tab1 AS cor0
----
2848
4684
5008

onlyif mysql # aggregate syntax: 
query I rowsort label-5700
SELECT + COUNT( + 62 ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5700
SELECT + COUNT ( + 62 ) AS col1 FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5701
SELECT MIN( col1 ) * COUNT( * ) AS col1 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-5701
SELECT MIN ( col1 ) * COUNT ( * ) AS col1 FROM tab0
----
3

query II rowsort
SELECT ALL - + ( + + col2 ) AS col0, + 6 FROM tab1 AS cor0
----
-59
6
-68
6
-96
6

query I rowsort
SELECT ALL - - 35 * ( - + 90 ) FROM tab2 AS cor0
----
-3150
-3150
-3150

query I rowsort
SELECT - - col1 FROM tab1 AS cor0 WHERE NOT + col0 <= - col1
----
14
47
5

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col2 * - col2 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5706
SELECT SUM( ALL 71 ) * - COUNT( * ) FROM tab2 cor0
----
-639

skipif mysql # not compatible
query I rowsort label-5706
SELECT SUM ( ALL 71 ) * - COUNT ( * ) FROM tab2 cor0
----
-639

query I rowsort
SELECT DISTINCT 42 * + 25 * ( - col2 ) FROM tab1 cor0
----
-100800
-61950
-71400

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT col1 * col0 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5709
SELECT - 72 / + - CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5709
SELECT - 72 / + - CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 WHERE NOT 93 * + - 39 <> + - col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5711
SELECT ALL col2 DIV - col0 col2 FROM tab1
----
-1
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5711
SELECT ALL col2 / - col0 col2 FROM tab1
----
-1
0
0

query I rowsort
SELECT DISTINCT 36 * - - col2 * + - 24 FROM tab2
----
-19872
-34560
-50112

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5713
SELECT + col1 col0 FROM tab2 WHERE NULL NOT BETWEEN + + CAST( - col0 AS DECIMAL ) + col0 AND - col2
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5713
SELECT + col1 col0 FROM tab2 WHERE NULL NOT BETWEEN + + CAST ( - col0 AS REAL ) + col0 AND - col2
----

query I rowsort
SELECT DISTINCT - 39 + 14 FROM tab1 cor0
----
-25

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 + + col2 IS NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col0 BETWEEN - + col0 * + col1 - 21 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5717
SELECT ALL COUNT( * ) + + 33 FROM tab0 AS cor0
----
36

skipif mysql # not compatible
query I rowsort label-5717
SELECT ALL COUNT ( * ) + + 33 FROM tab0 AS cor0
----
36

query I rowsort
SELECT - col2 + col1 + + - col2 AS col1 FROM tab2 AS cor0
----
-3
-49
5

onlyif mysql # aggregate syntax: 
query I rowsort label-5719
SELECT + SUM( ALL + 81 ) AS col2 FROM tab0 AS cor0
----
243

skipif mysql # not compatible
query I rowsort label-5719
SELECT + SUM ( ALL + 81 ) AS col2 FROM tab0 AS cor0
----
243

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * 67 col2 FROM tab1 WHERE - 39 + col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5721
SELECT SUM( + col0 ) + + 80 AS col2 FROM tab0 WHERE - - col2 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5721
SELECT SUM ( + col0 ) + + 80 AS col2 FROM tab0 WHERE - - col2 IS NULL
----
NULL

query II rowsort
SELECT DISTINCT + col1, col0 + col1 FROM tab2
----
51
97
67
142
77
141

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5723
SELECT * FROM tab1 WHERE col2 * + CAST( NULL AS SIGNED ) * - 95 IS NOT NULL OR NOT NULL IS NULL
----

skipif mysql # not compatible
query III rowsort label-5723
SELECT * FROM tab1 WHERE col2 * + CAST ( NULL AS INTEGER ) * - 95 IS NOT NULL OR NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5724
SELECT MAX( col1 ) - + 11 col0 FROM tab2
----
66

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5724
SELECT MAX ( col1 ) - + 11 col0 FROM tab2
----
66

query I rowsort
SELECT + col1 - + + col2 AS col2 FROM tab1
----
-21
-54
-82

query I rowsort
SELECT DISTINCT col2 + - + 99 AS col1 FROM tab1 AS cor0
----
-3
-31
-40

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - ( + 49 ) col1 FROM tab0 cor0
----
49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col1 col0, col1 AS col1 FROM tab0 AS cor0
----
-1
1
-21
21
-81
81

query I rowsort
SELECT 60 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to a97561e17ecaa618227c75a57b268f33

query I rowsort
SELECT ALL + + col0 + - - col0 + ( col1 ) AS col2 FROM tab2 WHERE - - col2 * + 12 * col1 NOT BETWEEN NULL AND NULL
----

query II rowsort
SELECT + col0, + col0 AS col0 FROM tab2 AS cor0
----
46
46
64
64
75
75

query II rowsort
SELECT - col2 * col1, + col0 FROM tab0 cor0
----
-210
87
-3807
15
-99
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 64 * - + 73 col1 FROM tab1 AS cor0
----
-4672
-4672
-4672

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5734
SELECT DISTINCT - + col1 + - 22 / 22 AS col2 FROM tab0 cor0 WHERE NOT + CAST( NULL AS SIGNED ) * - + col1 > col0 + 12 + - col2 - - 61
----

skipif mysql # not compatible
query I rowsort label-5734
SELECT DISTINCT - + col1 + - 22 / 22 AS col2 FROM tab0 cor0 WHERE NOT + CAST ( NULL AS INTEGER ) * - + col1 > col0 + 12 + - col2 - - 61
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5735
SELECT - + SUM( - + 83 ) * - MIN( - - col1 ) AS col2 FROM tab2 AS cor0
----
-12699

skipif mysql # not compatible
query I rowsort label-5735
SELECT - + SUM ( - + 83 ) * - MIN ( - - col1 ) AS col2 FROM tab2 AS cor0
----
-12699

onlyif mysql # aggregate syntax: 
query I rowsort label-5736
SELECT ALL - + COUNT( * ) FROM tab2 AS cor0 WHERE NOT 74 + - col2 = + 67 * col2
----
-3

skipif mysql # not compatible
query I rowsort label-5736
SELECT ALL - + COUNT ( * ) FROM tab2 AS cor0 WHERE NOT 74 + - col2 = + 67 * col2
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-5737
SELECT ALL - MIN( col1 ), COUNT( * ) + 19 col1 FROM tab0
----
-1
22

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5737
SELECT ALL - MIN ( col1 ), COUNT ( * ) + 19 col1 FROM tab0
----
-1
22

query II rowsort
SELECT ALL 0 * col2 AS col1, col2 FROM tab1
----
0
59
0
68
0
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5739
SELECT DISTINCT + CAST( + + col1 AS SIGNED ) FROM tab2
----
51
67
77

skipif mysql # not compatible
query I rowsort label-5739
SELECT DISTINCT + CAST ( + + col1 AS INTEGER ) FROM tab2
----
51
67
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5740
SELECT CAST( + MIN( ALL - col1 ) AS SIGNED ) FROM tab2
----
-77

skipif mysql # not compatible
query I rowsort label-5740
SELECT CAST ( + MIN ( ALL - col1 ) AS INTEGER ) FROM tab2
----
-77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 50 col1 FROM tab2
----
50
50
50

query III rowsort
SELECT * FROM tab0 WHERE NOT + 65 IN ( + col1 + 67 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-5743
SELECT ALL COUNT( * ) + + MIN( ALL + ( + col1 ) ) AS col1 FROM tab2 AS cor0
----
54

skipif mysql # not compatible
query I rowsort label-5743
SELECT ALL COUNT ( * ) + + MIN ( ALL + ( + col1 ) ) AS col1 FROM tab2 AS cor0
----
54

query I rowsort
SELECT col1 + + 70 + col0 AS col2 FROM tab1
----
135
160
208

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5745
SELECT ALL - CAST( - CAST( NULL AS SIGNED ) AS DECIMAL ) + - + col2 col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5745
SELECT ALL - CAST ( - CAST ( NULL AS INTEGER ) AS REAL ) + - + col2 col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 84 + + col2 FROM tab1
----
-16
-25
12

query II rowsort
SELECT - 95, - col0 AS col2 FROM tab1 cor0
----
-95
-51
-95
-85
-95
-91

query I rowsort
SELECT DISTINCT + - col0 + + + ( + - col1 ) * + - 46 + col2 AS col1 FROM tab0 AS cor0
----
3758
48
889

query I rowsort
SELECT ALL col0 + - 69 * 24 FROM tab2 AS cor0
----
-1581
-1592
-1610

query II rowsort
SELECT ALL - col0 + + - 61 * + + 18 AS col1, ( - col0 ) FROM tab2 AS cor0
----
-1144
-46
-1162
-64
-1173
-75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + - col1, + 30 col0 FROM tab0 cor0
----
-1
30
-21
30
-81
30

query I rowsort
SELECT col1 * 60 + - col2 + + - col1 FROM tab2 AS cor0 WHERE col2 > NULL
----

query I rowsort
SELECT ALL col2 - - col1 * col0 AS col0 FROM tab0 AS cor0
----
1262
1837
196

query I rowsort
SELECT - 19 + 62 FROM tab1
----
43
43
43

query I rowsort
SELECT 14 + ( - col2 ) FROM tab0
----
-33
-85
4

onlyif mysql # aggregate syntax: 
query II rowsort label-5756
SELECT - COUNT( * ) + + + 63 AS col0, 50 FROM tab1
----
60
50

skipif mysql # not compatible
query II rowsort label-5756
SELECT - COUNT ( * ) + + + 63 AS col0, 50 FROM tab1
----
60
50

query I rowsort
SELECT col2 + + - col1 AS col2 FROM tab0
----
-11
-34
98

query I rowsort
SELECT + col2 * + - 65 AS col1 FROM tab2
----
-1495
-2600
-3770

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5759
SELECT * FROM tab0 WHERE NOT NULL <= - 72 * + CAST( + col0 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-5759
SELECT * FROM tab0 WHERE NOT NULL <= - 72 * + CAST ( + col0 AS INTEGER )
----

query I rowsort
SELECT ALL col1 * - 74 * + + col2 FROM tab0
----
-15540
-281718
-7326

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 20 AS col0, - col1 col1 FROM tab0
----
20
-1
20
-21
20
-81

query II rowsort
SELECT col1, ( col1 ) + + 1 FROM tab2
----
51
52
67
68
77
78

onlyif mysql # DIV for integer division: 
query I rowsort label-5763
SELECT DISTINCT col1 DIV 61 AS col1 FROM tab2
----
0
1

skipif mysql # not compatible
query I rowsort label-5763
SELECT DISTINCT col1 / 61 AS col1 FROM tab2
----
0
1

query I rowsort
SELECT col1 * + 28 AS col2 FROM tab1 AS cor0
----
1316
140
392

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5765
SELECT - - ( + + 51 ) * - + 46 AS col0, + CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-2346
NULL
-2346
NULL
-2346
NULL

skipif mysql # not compatible
query II rowsort label-5765
SELECT - - ( + + 51 ) * - + 46 AS col0, + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-2346
NULL
-2346
NULL
-2346
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5766
SELECT - - CAST( NULL AS SIGNED ) + + + col2 * - - ( - + col0 ) AS col2 FROM tab1 AS cor0 WHERE NOT + col2 = NULL
----

skipif mysql # not compatible
query I rowsort label-5766
SELECT - - CAST ( NULL AS INTEGER ) + + + col2 * - - ( - + col0 ) AS col2 FROM tab1 AS cor0 WHERE NOT + col2 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5767
SELECT DISTINCT + MIN( - 19 ) AS col2 FROM tab0 AS cor0
----
-19

skipif mysql # not compatible
query I rowsort label-5767
SELECT DISTINCT + MIN ( - 19 ) AS col2 FROM tab0 AS cor0
----
-19

query II rowsort
SELECT ALL 78, col2 AS col1 FROM tab0 AS cor0
----
78
10
78
47
78
99

onlyif mysql # aggregate syntax: 
query I rowsort label-5769
SELECT DISTINCT - + COUNT( DISTINCT + + col1 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5769
SELECT DISTINCT - + COUNT ( DISTINCT + + col1 ) FROM tab1 AS cor0
----
-3

query I rowsort
SELECT - 25 + + col0 AS col2 FROM tab0
----
-10
62
72

query I rowsort
SELECT + col2 * - col2 + - col0 + + col2 AS col0 FROM tab2
----
-1624
-3381
-552

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5772
SELECT + 57 + CAST( NULL AS DECIMAL ) * - col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5772
SELECT + 57 + CAST ( NULL AS REAL ) * - col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5773
SELECT ALL - COUNT( 97 ) AS col2 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-5773
SELECT ALL - COUNT ( 97 ) AS col2 FROM tab0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * - 75 + + 46 col2 FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5775
SELECT ALL - COUNT( - col2 ) AS col1 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5775
SELECT ALL - COUNT ( - col2 ) AS col1 FROM tab1 AS cor0
----
-3

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col2 + + col1 * + - 77 / + + ( col2 ) / - col2 + - 14 IS NULL
----

query I rowsort
SELECT DISTINCT - col0 AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) = 75
----

onlyif mysql # DIV for integer division: 
query II rowsort label-5778
SELECT DISTINCT 10 + - + 30 AS col1, 69 DIV + - 31 FROM tab0 cor0
----
-20
-2

skipif mysql # not compatible
query II rowsort label-5778
SELECT DISTINCT 10 + - + 30 AS col1, 69 / + - 31 FROM tab0 cor0
----
-20
-2

query I rowsort
SELECT + ( - 26 ) FROM tab1 AS cor0
----
-26
-26
-26

query I rowsort
SELECT - 23 * 37 + col0 AS col2 FROM tab1 WHERE ( NOT + col2 <> - + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5781
SELECT DISTINCT + 90 * - 31 * COUNT( * ) * COUNT( DISTINCT + 22 ) AS col2 FROM tab2, tab2 AS cor0
----
-25110

skipif mysql # not compatible
query I rowsort label-5781
SELECT DISTINCT + 90 * - 31 * COUNT ( * ) * COUNT ( DISTINCT + 22 ) AS col2 FROM tab2, tab2 AS cor0
----
-25110

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + col1 + 68 - + col2 / - + col0 * - 87 + col2 * + - col0 + - - col2 = NULL
----

query I rowsort
SELECT ALL + col2 - - + col1 AS col1 FROM tab2 AS cor0
----
117
125
74

query I rowsort
SELECT DISTINCT 42 + + 79 AS col1 FROM tab2 AS cor0
----
121

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col1 + 45 - col0 * col1 <= - 32
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NULL BETWEEN + col2 AND + - col2 * + col1
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - 28 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL col2 - + + col2 * + 68 AS col1 FROM tab0
----
-3149
-6633
-670

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5789
SELECT DISTINCT - col1 + 54 * CAST( + - col2 AS SIGNED ) + - 97 AS col1 FROM tab1
----
-3288
-3816
-5295

skipif mysql # not compatible
query I rowsort label-5789
SELECT DISTINCT - col1 + 54 * CAST ( + - col2 AS INTEGER ) + - 97 AS col1 FROM tab1
----
-3288
-3816
-5295

onlyif mysql # DIV for integer division: 
query II rowsort label-5790
SELECT ALL + col0 DIV col0 - - 84, col2 col2 FROM tab0
----
85
10
85
47
85
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5790
SELECT ALL + col0 / col0 - - 84, col2 col2 FROM tab0
----
85
10
85
47
85
99

query I rowsort
SELECT ALL - 27 - - 34 AS col2 FROM tab0
----
7
7
7

onlyif mysql # aggregate syntax: 
query II rowsort label-5792
SELECT ALL 51 AS col0, COUNT( * ) * - + COUNT( * ) FROM tab1
----
51
-9

skipif mysql # not compatible
query II rowsort label-5792
SELECT ALL 51 AS col0, COUNT ( * ) * - + COUNT ( * ) FROM tab1
----
51
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5793
SELECT col1 * - CAST( col0 AS SIGNED ) FROM tab0
----
-1215
-1827
-97

skipif mysql # not compatible
query I rowsort label-5793
SELECT col1 * - CAST ( col0 AS INTEGER ) FROM tab0
----
-1215
-1827
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 41 col1 FROM tab0
----
41

query I rowsort
SELECT - 41 * - ( - col2 ) AS col0 FROM tab0 AS cor0
----
-1927
-4059
-410

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT ( NULL = NULL )
----

query I rowsort
SELECT DISTINCT + ( + - col2 ) AS col2 FROM tab0 AS cor0
----
-10
-47
-99

query I rowsort
SELECT DISTINCT + 31 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
31

query I rowsort
SELECT - col0 AS col2 FROM tab1 WHERE NOT 3 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT - - 75 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5801
SELECT - COUNT( + ( + 53 ) ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5801
SELECT - COUNT ( + ( + 53 ) ) FROM tab2 AS cor0
----
-3

query I rowsort
SELECT - - 7 * - col2 * col1 * - 43 FROM tab1 AS cor0
----
404544
88795
961996

onlyif mysql # aggregate syntax: 
query I rowsort label-5803
SELECT DISTINCT - + COUNT( DISTINCT + - ( - 66 ) ) + 92 + - SUM( DISTINCT + - col0 ) AS col2 FROM tab0 AS cor0
----
290

skipif mysql # not compatible
query I rowsort label-5803
SELECT DISTINCT - + COUNT ( DISTINCT + - ( - 66 ) ) + 92 + - SUM ( DISTINCT + - col0 ) AS col2 FROM tab0 AS cor0
----
290

onlyif mysql # aggregate syntax: 
query I rowsort label-5804
SELECT DISTINCT - SUM( - col0 ) * + - ( 79 ) FROM tab2 AS cor0
----
-14615

skipif mysql # not compatible
query I rowsort label-5804
SELECT DISTINCT - SUM ( - col0 ) * + - ( 79 ) FROM tab2 AS cor0
----
-14615

query I rowsort
SELECT ALL + - col2 + + + 69 * + + col1 AS col2 FROM tab2 AS cor0 WHERE NOT col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5806
SELECT DISTINCT MIN( ALL + col2 ) FROM tab2
----
23

skipif mysql # not compatible
query I rowsort label-5806
SELECT DISTINCT MIN ( ALL + col2 ) FROM tab2
----
23

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL NOT IN ( + col1, ( + col0 ), + col0 )
----

query I rowsort
SELECT - col0 * 3 FROM tab1
----
-153
-255
-273

onlyif mysql # aggregate syntax: 
query I rowsort label-5809
SELECT - + 99 + MIN( - 2 ) AS col2 FROM tab0 WHERE col1 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5809
SELECT - + 99 + MIN ( - 2 ) AS col2 FROM tab0 WHERE col1 IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5810
SELECT + COUNT( ALL - + col1 ) * + 46 FROM tab1
----
138

skipif mysql # not compatible
query I rowsort label-5810
SELECT + COUNT ( ALL - + col1 ) * + 46 FROM tab1
----
138

query I rowsort
SELECT DISTINCT ( - 68 ) FROM tab1
----
-68

query I rowsort
SELECT - 8 + - 4 AS col2 FROM tab2
----
-12
-12
-12

onlyif mysql # DIV for integer division: 
query I rowsort label-5813
SELECT - 93 DIV 41 + - col0 - 1 + + col2 DIV col2 col2 FROM tab1
----
-53
-87
-93

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5813
SELECT - 93 / 41 + - col0 - 1 + + col2 / col2 col2 FROM tab1
----
-53
-87
-93

query I rowsort
SELECT - + col2 + - + col1 FROM tab1 AS cor0
----
-110
-115
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-5815
SELECT DISTINCT + 4 + MAX( col0 ) AS col0 FROM tab2 AS cor0
----
79

skipif mysql # not compatible
query I rowsort label-5815
SELECT DISTINCT + 4 + MAX ( col0 ) AS col0 FROM tab2 AS cor0
----
79

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 cor0 JOIN tab2 cor1 ON ( NULL IS NOT NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5817
SELECT ALL - ( CAST( NULL AS SIGNED ) ) AS col1 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-5817
SELECT ALL - ( CAST ( NULL AS INTEGER ) ) AS col1 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT - + 69 + - + 28 + + - col0 AS col2 FROM tab0 cor0
----
-112
-184
-194

onlyif mysql # DIV for integer division: 
query I rowsort label-5819
SELECT ALL col1 * + + col1 + - ( - col0 ) DIV - col2 FROM tab0 AS cor0
----
1
433
6561

skipif mysql # not compatible
query I rowsort label-5819
SELECT ALL col1 * + + col1 + - ( - col0 ) / - col2 FROM tab0 AS cor0
----
1
433
6561

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * + 99 * - - col2 col0 FROM tab2 AS cor0
----
116127
304920
384714

query I rowsort
SELECT col2 FROM tab2 WHERE NOT + - col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5822
SELECT - MIN( DISTINCT - 3 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-5822
SELECT - MIN ( DISTINCT - 3 ) FROM tab2
----
3

query I rowsort
SELECT + col2 FROM tab2 WHERE NOT col1 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - 68 + col1 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + col2 * 95 NOT BETWEEN ( + 20 ) AND + + ( col1 )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - 32 * - + col0 <= NULL
----

query II rowsort
SELECT ALL - 33 AS col0, col1 FROM tab0
----
-33
1
-33
21
-33
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5828
SELECT DISTINCT + ( - col0 ) / CAST( NULL AS SIGNED ) - 17 * 64 + - col0 - - 51 / 12 + + col2 + - col2 / 63 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5828
SELECT DISTINCT + ( - col0 ) / CAST ( NULL AS INTEGER ) - 17 * 64 + - col0 - - 51 / 12 + + col2 + - col2 / 63 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT - 59 + + col0 FROM tab1 cor0
----
-8
26
32

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-5830
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col0 >= - + 28 * - 5 + - col2 + - col1 - CAST( ( CAST( NULL AS DECIMAL ) ) AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-5830
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col0 >= - + 28 * - 5 + - col2 + - col1 - CAST ( ( CAST ( NULL AS REAL ) ) AS INTEGER )
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - ( col2 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5832
SELECT ALL + CAST( - + 54 AS SIGNED ) FROM tab1 AS cor0
----
-54
-54
-54

skipif mysql # not compatible
query I rowsort label-5832
SELECT ALL + CAST ( - + 54 AS INTEGER ) FROM tab1 AS cor0
----
-54
-54
-54

query I rowsort
SELECT + - 41 + - - col2 FROM tab1 AS cor0
----
18
27
55

query III rowsort
SELECT * FROM tab1 WHERE col1 + - - ( - col2 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-5835
SELECT - ( - + COUNT( * ) ) + - 25 + + COUNT( - 23 ) col0 FROM tab2
----
-19

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5835
SELECT - ( - + COUNT ( * ) ) + - 25 + + COUNT ( - 23 ) col0 FROM tab2
----
-19

onlyif mysql # DIV for integer division: 
query I rowsort label-5836
SELECT DISTINCT + 34 DIV + col0 AS col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-5836
SELECT DISTINCT + 34 / + col0 AS col0 FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5837
SELECT DISTINCT - SUM( DISTINCT + 17 ) AS col2 FROM tab0 WHERE NOT ( col2 / col1 ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5837
SELECT DISTINCT - SUM ( DISTINCT + 17 ) AS col2 FROM tab0 WHERE NOT ( col2 / col1 ) IS NOT NULL
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE + col0 * - 24 - - - col0 + + 64 > - - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5839
SELECT DISTINCT MAX( DISTINCT - 57 ) AS col0 FROM tab2
----
-57

skipif mysql # not compatible
query I rowsort label-5839
SELECT DISTINCT MAX ( DISTINCT - 57 ) AS col0 FROM tab2
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-5840
SELECT DISTINCT + SUM( 74 ) + + COUNT( * ) FROM tab0
----
225

skipif mysql # not compatible
query I rowsort label-5840
SELECT DISTINCT + SUM ( 74 ) + + COUNT ( * ) FROM tab0
----
225

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5841
SELECT * FROM tab2 WHERE - + col2 = - col1 + + 5 - - CAST( + 40 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-5841
SELECT * FROM tab2 WHERE - + col2 = - col1 + + 5 - - CAST ( + 40 AS INTEGER )
----

query I rowsort
SELECT DISTINCT + col1 AS col1 FROM tab2 AS cor0 WHERE ( NOT 50 * - 30 * + col1 + + 88 IS NOT NULL )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL IN ( - 92 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5844
SELECT COUNT( * ) FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-5844
SELECT COUNT ( * ) FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN NULL AND NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5845
SELECT ALL ( + ( col1 ) ) - - col1 - + CAST( 77 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-49
-67
17

skipif mysql # not compatible
query I rowsort label-5845
SELECT ALL ( + ( col1 ) ) - - col1 - + CAST ( 77 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-49
-67
17

onlyif mysql # aggregate syntax: 
query I rowsort label-5846
SELECT ALL - COUNT( * ) - COUNT( DISTINCT - col0 ) col0 FROM tab2
----
-6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5846
SELECT ALL - COUNT ( * ) - COUNT ( DISTINCT - col0 ) col0 FROM tab2
----
-6

query I rowsort
SELECT ALL - ( + + 24 ) FROM tab1 AS cor0
----
-24
-24
-24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5848
SELECT DISTINCT - + CAST( NULL AS SIGNED ) + + col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5848
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) + + col1 FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL IN ( - 95 * + - col0, - col0 + + - 16, col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5850
SELECT MIN( + 78 ) FROM tab2 AS cor0
----
78

skipif mysql # not compatible
query I rowsort label-5850
SELECT MIN ( + 78 ) FROM tab2 AS cor0
----
78

query I rowsort
SELECT - - col1 * - + col1 AS col0 FROM tab1 AS cor0
----
-196
-2209
-25

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT - col0 * - + col2 * 75 * + - 98 <> col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5853
SELECT ALL + COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE - col0 * - col2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-5853
SELECT ALL + COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE - col0 * - col2 IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5854
SELECT ALL + COUNT( * ) FROM tab0 WHERE NULL NOT BETWEEN col0 AND - 95 - - col2 * - - col0
----
0

skipif mysql # not compatible
query I rowsort label-5854
SELECT ALL + COUNT ( * ) FROM tab0 WHERE NULL NOT BETWEEN col0 AND - 95 - - col2 * - - col0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 col0, - 87 AS col2 FROM tab0
----
15
-87
87
-87
97
-87

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5856
SELECT DISTINCT * FROM tab2 WHERE + - col1 + - CAST( - + 22 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-5856
SELECT DISTINCT * FROM tab2 WHERE + - col1 + - CAST ( - + 22 AS INTEGER ) IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL BETWEEN NULL AND + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5858
SELECT ALL - CAST( NULL AS SIGNED ), + col2 col0 FROM tab0
----
NULL
10
NULL
47
NULL
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5858
SELECT ALL - CAST ( NULL AS INTEGER ), + col2 col0 FROM tab0
----
NULL
10
NULL
47
NULL
99

query II rowsort
SELECT ALL col0 AS col0, + col0 AS col0 FROM tab0
----
15
15
87
87
97
97

query I rowsort
SELECT ALL + 58 * - col1 FROM tab2
----
-2958
-3886
-4466

query II rowsort
SELECT DISTINCT + col0, + 75 AS col2 FROM tab2
----
46
75
64
75
75
75

query I rowsort
SELECT ALL + + col0 * 30 * - col2 AS col0 FROM tab0 AS cor0
----
-21150
-26100
-288090

query I rowsort
SELECT ALL + ( col2 ) * - 38 AS col2 FROM tab0 AS cor0 WHERE NOT col2 = ( NULL )
----

query I rowsort
SELECT DISTINCT 57 * col2 FROM tab0 AS cor0
----
2679
5643
570

onlyif mysql # aggregate syntax: 
query I rowsort label-5865
SELECT DISTINCT - COUNT( * ) * + 31 FROM tab2 AS cor0
----
-93

skipif mysql # not compatible
query I rowsort label-5865
SELECT DISTINCT - COUNT ( * ) * + 31 FROM tab2 AS cor0
----
-93

query II rowsort
SELECT DISTINCT ( 67 ) AS col1, col1 AS col0 FROM tab1 WHERE + 3 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5867
SELECT DISTINCT ( col0 ) + CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5867
SELECT DISTINCT ( col0 ) + CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL

query I rowsort
SELECT ( 49 ) FROM tab1
----
49
49
49

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab1 cor1 WHERE NOT NULL = ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5870
SELECT ALL - + col0 DIV + ( + - ( - col2 ) ) + + 52 FROM tab2 AS cor0
----
50
51
51

skipif mysql # not compatible
query I rowsort label-5870
SELECT ALL - + col0 / + ( + - ( - col2 ) ) + + 52 FROM tab2 AS cor0
----
50
51
51

query I rowsort
SELECT DISTINCT - - ( + col0 ) + - col0 + - + col2 - - col0 + 15 + - col2 + col0 + + ( ( - - col0 ) ) * + col1 FROM tab1 AS cor0
----
4338
492
639

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( - + col2 ) NOT IN ( col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT ( + - col2 ) + col1 * + col0 FROM tab1 AS cor0
----
366
4209
618

query III rowsort
SELECT * FROM tab1 cor0 WHERE - 26 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - + 75 IS NOT NULL
----

query I rowsort
SELECT + col2 * + 86 * + col1 + 78 AS col2 FROM tab1
----
115662
25448
274934

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + col1 NOT BETWEEN - col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5878
SELECT DISTINCT + COUNT( * ) * - 74 AS col0 FROM tab0
----
-222

skipif mysql # not compatible
query I rowsort label-5878
SELECT DISTINCT + COUNT ( * ) * - 74 AS col0 FROM tab0
----
-222

onlyif mysql # DIV for integer division: 
query I rowsort label-5879
SELECT - col0 * col1 * 96 DIV + col1 + - col1 + - col2 FROM tab0
----
-1568
-8383
-9412

skipif mysql # not compatible
query I rowsort label-5879
SELECT - col0 * col1 * 96 / + col1 + - col1 + - col2 FROM tab0
----
-1568
-8383
-9412

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5880
SELECT ALL 81 * + + 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-5880
SELECT ALL 81 * + + CAST ( NULL AS INTEGER ) col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5881
SELECT ALL col0 + - 95 + - CAST( NULL AS SIGNED ) / + + col2 * + 37 * 73 * + + 38 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5881
SELECT ALL col0 + - 95 + - CAST ( NULL AS INTEGER ) / + + col2 * + 37 * 73 * + + 38 AS col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5882
SELECT + ( + - MIN( - 7 ) ) + + 25 FROM tab2
----
32

skipif mysql # not compatible
query I rowsort label-5882
SELECT + ( + - MIN ( - 7 ) ) + + 25 FROM tab2
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-5883
SELECT DISTINCT + 22 * - COUNT( * ) FROM tab1
----
-66

skipif mysql # not compatible
query I rowsort label-5883
SELECT DISTINCT + 22 * - COUNT ( * ) FROM tab1
----
-66

query I rowsort
SELECT DISTINCT + - ( 8 ) FROM tab2 AS cor0 WHERE - ( - col2 ) > + col0
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col2 + - - col1 IS NULL
----

query I rowsort
SELECT ALL col1 * - - col2 - - + col1 FROM tab0
----
100
231
3888

onlyif mysql # DIV for integer division: 
query I rowsort label-5887
SELECT DISTINCT col2 DIV col2 - + col1 FROM tab2
----
-50
-66
-76

skipif mysql # not compatible
query I rowsort label-5887
SELECT DISTINCT col2 / col2 - + col1 FROM tab2
----
-50
-66
-76

onlyif mysql # aggregate syntax: 
query II rowsort label-5888
SELECT ALL + + MAX( DISTINCT + + 83 ) AS col0, 68 FROM tab1 AS cor0
----
83
68

skipif mysql # not compatible
query II rowsort label-5888
SELECT ALL + + MAX ( DISTINCT + + 83 ) AS col0, 68 FROM tab1 AS cor0
----
83
68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 38 col2 FROM tab1 AS cor0
----
-38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5890
SELECT ALL - CAST( NULL AS SIGNED ) FROM tab2 AS cor0 WHERE + 29 >= + - col1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5890
SELECT ALL - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 WHERE + 29 >= + - col1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5891
SELECT + MAX( ALL + col1 ) AS col2, - 12 col1 FROM tab0 AS cor0
----
81
-12

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5891
SELECT + MAX ( ALL + col1 ) AS col2, - 12 col1 FROM tab0 AS cor0
----
81
-12

query III rowsort
SELECT * FROM tab1 WHERE NOT - col0 BETWEEN col1 AND + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-5893
SELECT SUM( - + col1 ) FROM tab0 WHERE NOT NULL > NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5893
SELECT SUM ( - + col1 ) FROM tab0 WHERE NOT NULL > NULL
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE 55 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-5895
SELECT ( COUNT( DISTINCT - 22 ) ) col2 FROM tab2
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5895
SELECT ( COUNT ( DISTINCT - 22 ) ) col2 FROM tab2
----
1

query I rowsort
SELECT 48 + - col1 AS col0 FROM tab0 AS cor0 WHERE NOT col0 IS NOT NULL
----

query I rowsort
SELECT ALL - col1 AS col2 FROM tab2 AS cor0 WHERE ( NOT NULL IS NOT NULL )
----
-51
-67
-77

query II rowsort
SELECT + col0, col0 FROM tab2 AS cor0 WHERE NOT col2 IS NULL
----
46
46
64
64
75
75

query I rowsort
SELECT ALL - - col1 * ( - col0 ) AS col2 FROM tab2 AS cor0
----
-2346
-4928
-5025

onlyif mysql # aggregate syntax: 
query I rowsort label-5900
SELECT DISTINCT COUNT( * ) * - - COUNT( * ) FROM tab2 cor0
----
9

skipif mysql # not compatible
query I rowsort label-5900
SELECT DISTINCT COUNT ( * ) * - - COUNT ( * ) FROM tab2 cor0
----
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + + - col2 col1 FROM tab1 cor0
----
-45
23
26

query I rowsort
SELECT col1 + + ( - col1 ) * + - 98 AS col1 FROM tab2 AS cor0
----
5049
6633
7623

query I rowsort
SELECT ALL - 10 AS col2 FROM tab0 AS cor0 WHERE - col2 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT - 89 * - + col0 * + - col0 + col1 * - 64 AS col1 FROM tab1 cor0
----
-232385
-643345
-740017

onlyif mysql # DIV for integer division: 
query I rowsort label-5905
SELECT DISTINCT 71 + col1 DIV + col0 FROM tab2 AS cor0
----
71
72

skipif mysql # not compatible
query I rowsort label-5905
SELECT DISTINCT 71 + col1 / + col0 FROM tab2 AS cor0
----
71
72

onlyif mysql # aggregate syntax: 
query I rowsort label-5906
SELECT DISTINCT - SUM( DISTINCT col1 ) AS col2 FROM tab1 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-5906
SELECT DISTINCT - SUM ( DISTINCT col1 ) AS col2 FROM tab1 AS cor0
----
-66

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5907
SELECT DISTINCT + CAST( - 52 AS DECIMAL ) FROM tab1 cor0 WHERE NOT NULL < 99
----

skipif mysql # not compatible
query I rowsort label-5907
SELECT DISTINCT + CAST ( - 52 AS REAL ) FROM tab1 cor0 WHERE NOT NULL < 99
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5908
SELECT ALL - CAST( ( 85 ) AS SIGNED ) * 34 FROM tab0 AS cor0
----
-2890
-2890
-2890

skipif mysql # not compatible
query I rowsort label-5908
SELECT ALL - CAST ( ( 85 ) AS INTEGER ) * 34 FROM tab0 AS cor0
----
-2890
-2890
-2890

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + + + col0 col2 FROM tab1 AS cor0
----
102
170
182

onlyif mysql # aggregate syntax: 
query I rowsort label-5910
SELECT - SUM( ALL 1 ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-5910
SELECT - SUM ( ALL 1 ) FROM tab0
----
-3

query III rowsort
SELECT DISTINCT + 91 * 75, col0 AS col2, col0 + - col2 AS col0 FROM tab2
----
9 values hashing to d0cf36542079f66ba7038dee008687e5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5912
SELECT + 42 - col0 FROM tab2 WHERE - ( col2 ) / + + col0 - - CAST( NULL AS SIGNED ) >= + - 15
----

skipif mysql # not compatible
query I rowsort label-5912
SELECT + 42 - col0 FROM tab2 WHERE - ( col2 ) / + + col0 - - CAST ( NULL AS INTEGER ) >= + - 15
----

query I rowsort
SELECT 28 * + col2 FROM tab0
----
1316
2772
280

query I rowsort
SELECT ALL - 56 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-56
-56
-56

onlyif mysql # DIV for integer division: 
query II rowsort label-5915
SELECT DISTINCT + col0 DIV + 35 AS col1, col0 AS col0 FROM tab1
----
1
51
2
85
2
91

skipif mysql # not compatible
query II rowsort label-5915
SELECT DISTINCT + col0 / + 35 AS col1, col0 AS col0 FROM tab1
----
1
51
2
85
2
91

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col2 = + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-5917
SELECT - col1 + + - col2 - - 60 * col1 * + col2 DIV + - col2 FROM tab2 AS cor0
----
-3134
-4145
-4737

skipif mysql # not compatible
query I rowsort label-5917
SELECT - col1 + + - col2 - - 60 * col1 * + col2 / + - col2 FROM tab2 AS cor0
----
-3134
-4145
-4737

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5918
SELECT DISTINCT col2 AS col2, + CAST( NULL AS SIGNED ) FROM tab0
----
10
NULL
47
NULL
99
NULL

skipif mysql # not compatible
query II rowsort label-5918
SELECT DISTINCT col2 AS col2, + CAST ( NULL AS INTEGER ) FROM tab0
----
10
NULL
47
NULL
99
NULL

query I rowsort
SELECT - 73 * - + col0 FROM tab2 WHERE NOT - col0 IS NULL
----
3358
4672
5475

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 77 col2 FROM tab1 AS cor0
----
77
77
77

query I rowsort
SELECT - 65 + col2 FROM tab2 AS cor0 WHERE NOT + col2 IS NOT NULL
----

query I rowsort
SELECT 86 FROM tab1 AS cor0 WHERE NOT ( - col0 IS NULL )
----
86
86
86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5923
SELECT DISTINCT - col2 * + + CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5923
SELECT DISTINCT - col2 * + + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5924
SELECT ALL + + CAST( + col1 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
51
67
77

skipif mysql # not compatible
query I rowsort label-5924
SELECT ALL + + CAST ( + col1 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
51
67
77

query III rowsort
SELECT * FROM tab0 WHERE NOT ( + + col0 ) >= - col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5926
SELECT ALL 16 DIV + col2 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-5926
SELECT ALL 16 / + col2 FROM tab0
----
0
0
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5927
SELECT ALL 83 DIV SUM( - col1 ) AS col0 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-5927
SELECT ALL 83 / SUM ( - col1 ) AS col0 FROM tab0
----
0

query I rowsort
SELECT ( + col0 ) FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-5929
SELECT - MAX( ALL - 78 ) + + 63 FROM tab2 AS cor0
----
141

skipif mysql # not compatible
query I rowsort label-5929
SELECT - MAX ( ALL - 78 ) + + 63 FROM tab2 AS cor0
----
141

query I rowsort
SELECT ALL - + 35 FROM tab1 cor0 WHERE NOT - col2 = NULL
----

query III rowsort
SELECT * FROM tab0 WHERE + + ( 26 ) NOT BETWEEN NULL AND NULL
----

query II rowsort
SELECT DISTINCT col1 AS col2, + 10 AS col1 FROM tab1
----
14
10
47
10
5
10

query I rowsort
SELECT DISTINCT 83 + - col0 FROM tab2 AS cor0
----
19
37
8

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col1 < + col0 * - col0
----

query I rowsort
SELECT ALL 45 - + col1 FROM tab2 AS cor0
----
-22
-32
-6

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col2 + col0 + + ( + 27 ) * 24 = 85 + - 96
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5937
SELECT ALL - + 7 * - MIN( - col1 ) + - + COUNT( * ) FROM tab2 AS cor0
----
-542

skipif mysql # not compatible
query I rowsort label-5937
SELECT ALL - + 7 * - MIN ( - col1 ) + - + COUNT ( * ) FROM tab2 AS cor0
----
-542

onlyif mysql # aggregate syntax: 
query I rowsort label-5938
SELECT ALL + COUNT( * ) - + COUNT( * ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5938
SELECT ALL + COUNT ( * ) - + COUNT ( * ) FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5939
SELECT - 88 + COUNT( * ) FROM tab0
----
-85

skipif mysql # not compatible
query I rowsort label-5939
SELECT - 88 + COUNT ( * ) FROM tab0
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-5940
SELECT ALL MIN( ALL + 19 ) FROM tab1
----
19

skipif mysql # not compatible
query I rowsort label-5940
SELECT ALL MIN ( ALL + 19 ) FROM tab1
----
19

query I rowsort
SELECT ( - + 57 ) + + - 58 AS col2 FROM tab2
----
-115
-115
-115

query II rowsort
SELECT DISTINCT - col2, + 6 AS col1 FROM tab2
----
-23
6
-40
6
-58
6

onlyif mysql # aggregate syntax: 
query I rowsort label-5943
SELECT + MAX( ALL - col1 ) + - COUNT( * ) * + 43 FROM tab2
----
-180

skipif mysql # not compatible
query I rowsort label-5943
SELECT + MAX ( ALL - col1 ) + - COUNT ( * ) * + 43 FROM tab2
----
-180

query II rowsort
SELECT 68 * + - 92 + - col2 + + col0 AS col2, + 65 FROM tab1
----
-6230
65
-6233
65
-6301
65

query I rowsort
SELECT 66 * + col1 + + col1 FROM tab1
----
3149
335
938

query I rowsort
SELECT + 54 + 93 AS col0 FROM tab2
----
147
147
147

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - ( - col1 ) * - col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5948
SELECT ( + COUNT( + + col2 ) ) col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5948
SELECT ( + COUNT ( + + col2 ) ) col1 FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5949
SELECT ALL - 58 DIV + COUNT( * ) AS col0 FROM tab1
----
-19

skipif mysql # not compatible
query I rowsort label-5949
SELECT ALL - 58 / + COUNT ( * ) AS col0 FROM tab1
----
-19

query I rowsort
SELECT 34 * - col0 AS col1 FROM tab0
----
-2958
-3298
-510

onlyif mysql # aggregate syntax: 
query I rowsort label-5951
SELECT 17 * - 26 * - COUNT( * ) FROM tab2 cor0
----
1326

skipif mysql # not compatible
query I rowsort label-5951
SELECT 17 * - 26 * - COUNT ( * ) FROM tab2 cor0
----
1326

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5952
SELECT DISTINCT + col1 / - CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0 WHERE NOT 40 / + col0 * - col0 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-5952
SELECT DISTINCT + col1 / - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0 WHERE NOT 40 / + col0 * - col0 IS NOT NULL
----

query I rowsort
SELECT ALL - col0 * - 71 * - col1 AS col0 FROM tab2 AS cor0
----
-166566
-349888
-356775

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 64 < - 61 * - - col0 * - - 57
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + + 81 * - 61 FROM tab0 AS cor0
----
-4941

onlyif mysql # aggregate syntax: 
query I rowsort label-5956
SELECT + - COUNT( ALL + col0 ) AS col1 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5956
SELECT + - COUNT ( ALL + col0 ) AS col1 FROM tab2 AS cor0
----
-3

query I rowsort
SELECT 72 + 10 FROM tab0
----
82
82
82

query I rowsort
SELECT - col2 + 47 FROM tab1
----
-12
-21
-49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 92 col2, - col1 AS col0 FROM tab0
----
92
-1
92
-21
92
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-5960
SELECT ALL COUNT( * ) * + 38 FROM tab0
----
114

skipif mysql # not compatible
query I rowsort label-5960
SELECT ALL COUNT ( * ) * + 38 FROM tab0
----
114

onlyif mysql # aggregate syntax: 
query I rowsort label-5961
SELECT DISTINCT - ( + COUNT( DISTINCT col2 ) ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-5961
SELECT DISTINCT - ( + COUNT ( DISTINCT col2 ) ) FROM tab2
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5962
SELECT - MIN( ALL - + col2 ) col2 FROM tab1
----
96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5962
SELECT - MIN ( ALL - + col2 ) col2 FROM tab1
----
96

query II rowsort
SELECT ALL col2, + 58 * - col2 * - 55 * + col1 FROM tab2
----
23
3741870
40
9825200
58
12396340

query II rowsort
SELECT DISTINCT col0, col0 * + + 88 FROM tab1
----
51
4488
85
7480
91
8008

query I rowsort
SELECT + 5 AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to 6035628694bdea36f584f3649088551d

query II rowsort
SELECT ALL 6 AS col2, + 43 FROM tab1
----
6
43
6
43
6
43

query I rowsort
SELECT DISTINCT + ( - 18 ) AS col0 FROM tab0
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-5968
SELECT COUNT( * ) * - COUNT( * ) col1 FROM tab1 AS cor0
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5968
SELECT COUNT ( * ) * - COUNT ( * ) col1 FROM tab1 AS cor0
----
-9

query I rowsort
SELECT ALL 81 * - col0 * + 34 + - 69 FROM tab0 cor0
----
-239667
-267207
-41379

query I rowsort
SELECT + col1 * col0 * + - ( + - col0 ) AS col2 FROM tab1 AS cor0
----
36125
36414
389207

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col0 * - col1 IS NULL
----

query I rowsort
SELECT DISTINCT - - 49 + - - col0 AS col1 FROM tab2 AS cor0
----
113
124
95

query I rowsort
SELECT DISTINCT col0 AS col1 FROM tab2 WHERE NOT ( NULL ) IS NOT NULL
----
46
64
75

query I rowsort
SELECT DISTINCT 48 FROM tab1 WHERE NOT NULL IS NOT NULL
----
48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5975
SELECT DISTINCT - 8 - + CAST( col1 + 35 AS SIGNED ) AS col1 FROM tab1
----
-48
-57
-90

skipif mysql # not compatible
query I rowsort label-5975
SELECT DISTINCT - 8 - + CAST ( col1 + 35 AS INTEGER ) AS col1 FROM tab1
----
-48
-57
-90

query I rowsort
SELECT DISTINCT col0 * + col2 FROM tab0 WHERE col1 + - 34 * + 73 BETWEEN - col0 AND col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 col0 FROM tab0 WHERE NOT 53 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5978
SELECT + 61 * ( - MAX( DISTINCT + 77 ) ) AS col0 FROM tab2
----
-4697

skipif mysql # not compatible
query I rowsort label-5978
SELECT + 61 * ( - MAX ( DISTINCT + 77 ) ) AS col0 FROM tab2
----
-4697

query III rowsort
SELECT ALL * FROM tab2 WHERE - ( - 59 ) + + col1 NOT IN ( + 89 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-5980
SELECT - 0 * - MAX( DISTINCT 24 ) AS col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-5980
SELECT - 0 * - MAX ( DISTINCT 24 ) AS col1 FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5981
SELECT + COUNT( * ) * + 97 AS col0 FROM tab1
----
291

skipif mysql # not compatible
query I rowsort label-5981
SELECT + COUNT ( * ) * + 97 AS col0 FROM tab1
----
291

onlyif mysql # aggregate syntax: 
query I rowsort label-5982
SELECT ALL - COUNT( * ) + COUNT( * ) AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-5982
SELECT ALL - COUNT ( * ) + COUNT ( * ) AS col2 FROM tab2
----
0

query I rowsort
SELECT - ( + 71 ) * 99 AS col1 FROM tab0
----
-7029
-7029
-7029

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5984
SELECT col0 * + col0 AS col0 FROM tab2 WHERE CAST( + 27 AS SIGNED ) > NULL
----

skipif mysql # not compatible
query I rowsort label-5984
SELECT col0 * + col0 AS col0 FROM tab2 WHERE CAST ( + 27 AS INTEGER ) > NULL
----

query I rowsort
SELECT + ( col2 ) * + col0 AS col2 FROM tab2
----
1058
2560
4350

query I rowsort
SELECT - 90 * - col2 FROM tab0
----
4230
8910
900

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5987
SELECT CAST( NULL AS DECIMAL ) * 96 col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5987
SELECT CAST ( NULL AS REAL ) * 96 col0 FROM tab0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 31 * col2 col2 FROM tab2
----
1240
1798
713

query I rowsort
SELECT col0 * 30 AS col2 FROM tab0
----
2610
2910
450

onlyif mysql # aggregate syntax: 
query I rowsort label-5990
SELECT ( 32 ) * - COUNT( * ) FROM tab0
----
-96

skipif mysql # not compatible
query I rowsort label-5990
SELECT ( 32 ) * - COUNT ( * ) FROM tab0
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-5991
SELECT DISTINCT - SUM( DISTINCT col1 ) * COUNT( ALL 27 ) AS col1 FROM tab2
----
-585

skipif mysql # not compatible
query I rowsort label-5991
SELECT DISTINCT - SUM ( DISTINCT col1 ) * COUNT ( ALL 27 ) AS col1 FROM tab2
----
-585

query I rowsort
SELECT - col2 / 26 FROM tab0 WHERE NOT + col2 BETWEEN - col0 AND NULL
----

query III rowsort
SELECT * FROM tab0 WHERE ( col1 ) IN ( - col1 + col1 * 3 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5994
SELECT + CAST( MIN( DISTINCT col1 ) AS SIGNED ) FROM tab2 WHERE - col1 * 49 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5994
SELECT + CAST ( MIN ( DISTINCT col1 ) AS INTEGER ) FROM tab2 WHERE - col1 * 49 IS NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5995
SELECT ALL - CAST( col0 AS SIGNED ) - col2 AS col2 FROM tab2 WHERE NOT col2 * 17 <= NULL
----

skipif mysql # not compatible
query I rowsort label-5995
SELECT ALL - CAST ( col0 AS INTEGER ) - col2 AS col2 FROM tab2 WHERE NOT col2 * 17 <= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5996
SELECT ALL col2 * col0 + col0 DIV - col0 AS col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
704
869
9602

skipif mysql # not compatible
query I rowsort label-5996
SELECT ALL col2 * col0 + col0 / - col0 AS col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
704
869
9602

onlyif mysql # DIV for integer division: 
query I rowsort label-5997
SELECT DISTINCT 27 DIV - 22 FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-5997
SELECT DISTINCT 27 / - 22 FROM tab1
----
-1

query I rowsort
SELECT col2 + - 13 FROM tab1
----
46
55
83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5999
SELECT + col0 + CAST( NULL AS SIGNED ) * - col0 AS col2 FROM tab2 WHERE col1 IS NULL
----

skipif mysql # not compatible
query I rowsort label-5999
SELECT + col0 + CAST ( NULL AS INTEGER ) * - col0 AS col2 FROM tab2 WHERE col1 IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( ( 17 ) ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-6001
SELECT DISTINCT - col1 - + 17 DIV + ( 37 ) FROM tab0
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-6001
SELECT DISTINCT - col1 - + 17 / + ( 37 ) FROM tab0
----
-1
-21
-81

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6002
SELECT * FROM tab1 WHERE NOT - col2 * + CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-6002
SELECT * FROM tab1 WHERE NOT - col2 * + CAST ( NULL AS INTEGER ) IS NULL
----

query I rowsort
SELECT DISTINCT + ( 72 ) AS col1 FROM tab2 WHERE ( col0 * - 95 + - col2 ) NOT IN ( col1 / + col0 + + col2 )
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-6004
SELECT ALL MIN( col2 ) - SUM( ALL + col1 ) col1 FROM tab0
----
-93

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6004
SELECT ALL MIN ( col2 ) - SUM ( ALL + col1 ) col1 FROM tab0
----
-93

query III rowsort
SELECT * FROM tab2 WHERE NOT ( - ( col0 ) ) IN ( 1 * 91 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + 37 * + 98 FROM tab0 AS cor0
----
3626
3626
3626

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 91 - - col0 NOT BETWEEN ( NULL ) AND - 26
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6008
SELECT - 31 * - COUNT( * ) FROM tab1 cor0
----
93

skipif mysql # not compatible
query I rowsort label-6008
SELECT - 31 * - COUNT ( * ) FROM tab1 cor0
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-6009
SELECT COUNT( * ) FROM tab0 AS cor0 WHERE NOT - 75 + 98 BETWEEN NULL AND ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-6009
SELECT COUNT ( * ) FROM tab0 AS cor0 WHERE NOT - 75 + 98 BETWEEN NULL AND ( NULL )
----
0

query I rowsort
SELECT - 61 FROM tab1 AS cor0 CROSS JOIN tab0
----
9 values hashing to 51f53697966a79d306a4570537cd91a1

query I rowsort
SELECT 94 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0
----
9 values hashing to b0ffb7527f4fbf44f30945e1ccb58c24

onlyif mysql # aggregate syntax: 
query I rowsort label-6012
SELECT 4 * - COUNT( * ) FROM tab1
----
-12

skipif mysql # not compatible
query I rowsort label-6012
SELECT 4 * - COUNT ( * ) FROM tab1
----
-12

query I rowsort
SELECT col2 * - col2 + + col2 AS col1 FROM tab1 AS cor0 WHERE NOT - 12 * 19 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6014
SELECT ALL - 32 * - MAX( 56 * col2 + - col1 ) AS col1 FROM tab1 AS cor0
----
171584

skipif mysql # not compatible
query I rowsort label-6014
SELECT ALL - 32 * - MAX ( 56 * col2 + - col1 ) AS col1 FROM tab1 AS cor0
----
171584

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6015
SELECT CAST( COUNT( DISTINCT col0 ) AS SIGNED ) AS col2 FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-6015
SELECT CAST ( COUNT ( DISTINCT col0 ) AS INTEGER ) AS col2 FROM tab1 cor0
----
3

query I rowsort
SELECT + + col2 * 96 FROM tab0 AS cor0
----
4512
9504
960

onlyif mysql # aggregate syntax: 
query I rowsort label-6017
SELECT ALL ( + 56 ) + COUNT( * ) * 84 FROM tab0 AS cor0 WHERE NOT ( 42 * 62 ) IS NOT NULL
----
56

skipif mysql # not compatible
query I rowsort label-6017
SELECT ALL ( + 56 ) + COUNT ( * ) * 84 FROM tab0 AS cor0 WHERE NOT ( 42 * 62 ) IS NOT NULL
----
56

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - 42 * - 27 = NULL
----

query I rowsort
SELECT - col2 FROM tab1 AS cor0 WHERE NOT NULL IN ( col1 + - col2 )
----

query I rowsort
SELECT col2 AS col0 FROM tab1 AS cor0 WHERE NOT 13 IS NULL
----
59
68
96

query I rowsort
SELECT ALL col2 / + ( 52 ) FROM tab2 AS cor0 WHERE NOT col2 <> NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6022
SELECT 24 DIV + ( ( col0 ) ) FROM tab0 AS cor0 WHERE NOT col1 IS NULL
----
0
0
1

skipif mysql # not compatible
query I rowsort label-6022
SELECT 24 / + ( ( col0 ) ) FROM tab0 AS cor0 WHERE NOT col1 IS NULL
----
0
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6023
SELECT ALL 18 * MAX( + col1 ) AS col2 FROM tab2 AS cor0
----
1386

skipif mysql # not compatible
query I rowsort label-6023
SELECT ALL 18 * MAX ( + col1 ) AS col2 FROM tab2 AS cor0
----
1386

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6024
SELECT DISTINCT - col0 * - CAST( NULL AS SIGNED ) FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6024
SELECT DISTINCT - col0 * - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
NULL

query I rowsort
SELECT + col2 AS col2 FROM tab0 WHERE NOT col2 - + col2 IS NOT NULL
----

query I rowsort
SELECT col2 AS col0 FROM tab0 WHERE NOT 12 * col1 + col2 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + 15 * col2 NOT BETWEEN NULL AND + col1
----

query I rowsort
SELECT ALL + col2 + col1 AS col1 FROM tab2 WHERE NULL BETWEEN NULL AND 35 * - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6029
SELECT ALL SUM( DISTINCT + + 45 ) AS col0 FROM tab0
----
45

skipif mysql # not compatible
query I rowsort label-6029
SELECT ALL SUM ( DISTINCT + + 45 ) AS col0 FROM tab0
----
45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6030
SELECT + CAST( - 98 AS SIGNED ) AS col1 FROM tab2
----
-98
-98
-98

skipif mysql # not compatible
query I rowsort label-6030
SELECT + CAST ( - 98 AS INTEGER ) AS col1 FROM tab2
----
-98
-98
-98

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6031
SELECT * FROM tab0 WHERE CAST( NULL AS DECIMAL ) + col0 BETWEEN NULL AND ( col0 * col0 )
----

skipif mysql # not compatible
query III rowsort label-6031
SELECT * FROM tab0 WHERE CAST ( NULL AS REAL ) + col0 BETWEEN NULL AND ( col0 * col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + + - col1 col0 FROM tab1
----
0
0
0

query III rowsort
SELECT * FROM tab1 WHERE ( + 60 * col1 ) > col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL <= - ( col1 ) / - col1 + + col2
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col2 * + col1 NOT IN ( - col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-6036
SELECT + 77 + + - COUNT( * ) AS col0 FROM tab0 AS cor0
----
74

skipif mysql # not compatible
query I rowsort label-6036
SELECT + 77 + + - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
74

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 95 * - 83 NOT IN ( + col2 * + col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6038
SELECT ALL - col1 AS col2 FROM tab1 WHERE NOT ( CAST( 86 AS SIGNED ) * - col0 ) IS NULL
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-6038
SELECT ALL - col1 AS col2 FROM tab1 WHERE NOT ( CAST ( 86 AS INTEGER ) * - col0 ) IS NULL
----
-14
-47
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-6039
SELECT - SUM( ALL + - 2 ) FROM tab2
----
6

skipif mysql # not compatible
query I rowsort label-6039
SELECT - SUM ( ALL + - 2 ) FROM tab2
----
6

query I rowsort
SELECT DISTINCT 76 + + col2 AS col2 FROM tab0 WHERE NOT + ( 53 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6041
SELECT DISTINCT + COUNT( * ) AS col1 FROM tab0 WHERE NOT 35 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-6041
SELECT DISTINCT + COUNT ( * ) AS col1 FROM tab0 WHERE NOT 35 IS NOT NULL
----
0

query I rowsort
SELECT DISTINCT - 59 + + col2 + + + col0 FROM tab1 AS cor0
----
100
85
88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6043
SELECT + - CAST( + 49 AS SIGNED ) - + SUM( DISTINCT 36 ) FROM tab2 AS cor0
----
-85

skipif mysql # not compatible
query I rowsort label-6043
SELECT + - CAST ( + 49 AS INTEGER ) - + SUM ( DISTINCT 36 ) FROM tab2 AS cor0
----
-85

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6044
SELECT * FROM tab0 AS cor0 WHERE col0 + - - 80 - CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-6044
SELECT * FROM tab0 AS cor0 WHERE col0 + - - 80 - CAST ( NULL AS INTEGER ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6045
SELECT ALL - + COUNT( * ) + - 78 AS col0 FROM tab2 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-6045
SELECT ALL - + COUNT ( * ) + - 78 AS col0 FROM tab2 AS cor0
----
-81

query I rowsort
SELECT ( - col1 ) AS col0 FROM tab1 AS cor0 WHERE 21 NOT BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT + col0 + ( col1 ) * col0 FROM tab0 AS cor0 WHERE 74 IN ( 62 )
----

query I rowsort
SELECT col2 FROM tab2 AS cor0 WHERE ( col1 * - ( col0 ) * col0 ) IS NOT NULL
----
23
40
58

query III rowsort
SELECT * FROM tab1 cor0 WHERE 1 * - + col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-6050
SELECT ALL + COUNT( * ) - + + 77 FROM tab0
----
-74

skipif mysql # not compatible
query I rowsort label-6050
SELECT ALL + COUNT ( * ) - + + 77 FROM tab0
----
-74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6051
SELECT ALL + 85 - CAST( 62 AS SIGNED ) FROM tab0
----
23
23
23

skipif mysql # not compatible
query I rowsort label-6051
SELECT ALL + 85 - CAST ( 62 AS INTEGER ) FROM tab0
----
23
23
23

query I rowsort
SELECT + col0 * - - 91 FROM tab0
----
1365
7917
8827

query III rowsort
SELECT ALL * FROM tab0 WHERE + col1 / + col0 + + col2 NOT BETWEEN 54 * col1 AND - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + col2 FROM tab1 WHERE NOT - col1 * 70 + 11 NOT BETWEEN - col0 AND 53
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT col2 + - 76 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6056
SELECT + - CAST( COUNT( - col0 ) AS SIGNED ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-6056
SELECT + - CAST ( COUNT ( - col0 ) AS INTEGER ) FROM tab1 AS cor0
----
-3

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col2 NOT IN ( - col0 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 59 + + - col1 / col1 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( 27 ) col0 FROM tab0
----
27
27
27

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL IN ( col0 + - + col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6061
SELECT ALL col0 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN + col2 + + - 0 * - col2 + - col1 + col1 * - CAST( NULL AS SIGNED ) AND - col1 * col2
----

skipif mysql # not compatible
query I rowsort label-6061
SELECT ALL col0 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN + col2 + + - 0 * - col2 + - col1 + col1 * - CAST ( NULL AS INTEGER ) AND - col1 * col2
----

query I rowsort
SELECT DISTINCT + + col0 * - 61 + col1 AS col0 FROM tab0 AS cor0
----
-5286
-5916
-834

onlyif mysql # aggregate syntax: 
query I rowsort label-6063
SELECT DISTINCT - COUNT( ALL - col1 ) AS col2 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-6063
SELECT DISTINCT - COUNT ( ALL - col1 ) AS col2 FROM tab2 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-6064
SELECT + + COUNT( * ) * - 39 FROM tab1 AS cor0
----
-117

skipif mysql # not compatible
query I rowsort label-6064
SELECT + + COUNT ( * ) * - 39 FROM tab1 AS cor0
----
-117

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6065
SELECT ALL + 74 AS col1 FROM tab2 AS cor0 WHERE NOT + col0 <> - CAST( NULL AS DECIMAL ) + - col1
----

skipif mysql # not compatible
query I rowsort label-6065
SELECT ALL + 74 AS col1 FROM tab2 AS cor0 WHERE NOT + col0 <> - CAST ( NULL AS REAL ) + - col1
----

query I rowsort
SELECT ALL - 44 * col2 + - + col0 + 6 + - 68 * col0 AS col1 FROM tab2 AS cor0
----
-4180
-6170
-7721

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col0 / col1 NOT IN ( - + 90 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col2 + - - 61 >= + - col1 + ( 85 ) AND NOT 46 + + col2 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6069
SELECT col1 + - col2 + col1 + + + CAST( 10 AS SIGNED ) FROM tab0 AS cor0
----
-87
125
42

skipif mysql # not compatible
query I rowsort label-6069
SELECT col1 + - col2 + col1 + + + CAST ( 10 AS INTEGER ) FROM tab0 AS cor0
----
-87
125
42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6070
SELECT + CAST( NULL AS SIGNED ) + + col0 / - col2 col2 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6070
SELECT + CAST ( NULL AS INTEGER ) + + col0 / - col2 col2 FROM tab1 cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6071
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col0 * - CAST( - 40 AS SIGNED ) >= - - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-6071
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col0 * - CAST ( - 40 AS INTEGER ) >= - - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + col1 * - col1 + - 18 + 42 + - 5 AS col2 FROM tab1 AS cor0
----
-177
-2190
-6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 + - col1 * + + col0 col1 FROM tab1 AS cor0
----
-430
-4324
-728

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6074
SELECT 54 + - CAST( NULL AS DECIMAL ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6074
SELECT 54 + - CAST ( NULL AS REAL ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT 72 + col2 AS col2 FROM tab1
----
131
140
168

query I rowsort
SELECT col2 * col0 AS col0 FROM tab0 WHERE - 19 + + col2 + + + col2 >= + col2
----
705
9603

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 5 + - col2 col0 FROM tab0
----
-42
-5
-94

query I rowsort
SELECT ALL col0 + - 5 * - + ( + ( 92 ) ) FROM tab0
----
475
547
557

query I rowsort
SELECT DISTINCT - 26 * - - col0 FROM tab0
----
-2262
-2522
-390

query I rowsort
SELECT DISTINCT + col1 + col0 * 54 FROM tab0 WHERE NOT ( ( col0 * + col1 ) IS NOT NULL )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6081
SELECT 16 * - col2 AS col1 FROM tab2 WHERE + CAST( NULL AS DECIMAL ) / + ( + 54 ) IS NULL
----
-368
-640
-928

skipif mysql # not compatible
query I rowsort label-6081
SELECT 16 * - col2 AS col1 FROM tab2 WHERE + CAST ( NULL AS REAL ) / + ( + 54 ) IS NULL
----
-368
-640
-928

query I rowsort
SELECT DISTINCT col2 * + col0 + 97 + + col2 FROM tab2
----
1178
2697
4505

query I rowsort
SELECT DISTINCT + col0 + - 17 AS col1 FROM tab1 AS cor0
----
34
68
74

query I rowsort
SELECT ALL - 2 + - + 48 FROM tab2 AS cor0
----
-50
-50
-50

query III rowsort
SELECT * FROM tab0 WHERE - + 37 < col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( + 38 ) * - - 60 col1 FROM tab2
----
-2280
-2280
-2280

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6087
SELECT + COUNT( * ) * + CAST( NULL AS SIGNED ) FROM tab1 WHERE - col2 / - 70 NOT BETWEEN ( + + col0 * + col2 ) AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6087
SELECT + COUNT ( * ) * + CAST ( NULL AS INTEGER ) FROM tab1 WHERE - col2 / - 70 NOT BETWEEN ( + + col0 * + col2 ) AND NULL
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6088
SELECT ALL - 47 DIV + COUNT( * ) AS col0, + COUNT( * ) FROM tab1
----
-15
3

skipif mysql # not compatible
query II rowsort label-6088
SELECT ALL - 47 / + COUNT ( * ) AS col0, + COUNT ( * ) FROM tab1
----
-15
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6089
SELECT - col0 + - CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6089
SELECT - col0 + - CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6090
SELECT DISTINCT + CAST( NULL AS SIGNED ) / - col2, + col0 col1 FROM tab0
----
NULL
15
NULL
87
NULL
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6090
SELECT DISTINCT + CAST ( NULL AS INTEGER ) / - col2, + col0 col1 FROM tab0
----
NULL
15
NULL
87
NULL
97

query I rowsort
SELECT - col0 * ( + 35 ) * - 70 + - + col1 + col0 AS col0 FROM tab2 AS cor0
----
112695
156787
183758

query II rowsort
SELECT + - ( ( - col0 ) ), col2 AS col2 FROM tab1 AS cor0
----
51
96
85
59
91
68

query II rowsort
SELECT DISTINCT - - col1 - - - 26 AS col0, col0 AS col1 FROM tab0 AS cor0
----
-25
97
-5
87
55
15

query I rowsort
SELECT col1 * col1 * - + 66 AS col1 FROM tab1 AS cor0
----
-12936
-145794
-1650

query I rowsort
SELECT col2 AS col0 FROM tab0 AS cor0 WHERE NOT NULL <> ( - 10 )
----

query II rowsort
SELECT - - ( + 15 ), col1 AS col0 FROM tab1 AS cor0
----
15
14
15
47
15
5

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6097
SELECT * FROM tab2 AS cor0 WHERE NOT + col0 <> ( - col2 * - - col1 - - CAST( col2 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-6097
SELECT * FROM tab2 AS cor0 WHERE NOT + col0 <> ( - col2 * - - col1 - - CAST ( col2 AS INTEGER ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 60 AS col2, + 2 * - 70 col0 FROM tab2
----
60
-140
60
-140
60
-140

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6099
SELECT DISTINCT + ( + + ( - CAST( NULL AS SIGNED ) ) ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-6099
SELECT DISTINCT + ( + + ( - CAST ( NULL AS INTEGER ) ) ) AS col2 FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT - 98 AS col2 FROM tab1 WHERE - - col0 >= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col1, + col0 col2 FROM tab1
----
14
51
47
91
5
85

query I rowsort
SELECT ALL - ( - 49 ) FROM tab0
----
49
49
49

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + 61 >= NULL
----

query I rowsort
SELECT ALL col0 * + 85 AS col0 FROM tab0
----
1275
7395
8245

onlyif mysql # DIV for integer division: 
query II rowsort label-6105
SELECT col2, - col0 DIV col1 AS col2 FROM tab0
----
10
-4
47
0
99
-97

skipif mysql # not compatible
query II rowsort label-6105
SELECT col2, - col0 / col1 AS col2 FROM tab0
----
10
-4
47
0
99
-97

query I rowsort
SELECT 5 * col1 + - col0 AS col1 FROM tab2 AS cor0
----
209
260
321

query II rowsort
SELECT ALL + 78, 9 + - col1 AS col1 FROM tab2 AS cor0
----
78
-42
78
-58
78
-68

query I rowsort
SELECT - + ( - col2 ) * + ( - + col0 ) FROM tab1 AS cor0
----
-4896
-5015
-6188

onlyif mysql # aggregate syntax: 
query I rowsort label-6109
SELECT COUNT( DISTINCT - - col2 ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-6109
SELECT COUNT ( DISTINCT - - col2 ) AS col1 FROM tab1 AS cor0
----
3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) > ( + + 79 * - col2 + - 32 * 51 * + - col2 / - 63 )
----

query I rowsort
SELECT ALL + 27 AS col1 FROM tab1 cor0
----
27
27
27

query I rowsort
SELECT ALL + col2 AS col0 FROM tab2 AS cor0 WHERE NULL < + 74 * - ( + 41 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6113
SELECT ALL col0 * - col2 * col1 / - ( 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-6113
SELECT ALL col0 * - col2 * col1 / - ( CAST ( NULL AS INTEGER ) ) col0 FROM tab0
----
NULL
NULL
NULL

query II rowsort
SELECT ALL + - col0 AS col2, col1 AS col0 FROM tab2 AS cor0 WHERE 1 * + 61 IS NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col1 / - col0 IS NULL
----

query I rowsort
SELECT + col2 AS col2 FROM tab2 WHERE - + col0 IN ( - - 25, + 7 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6117
SELECT DISTINCT + SUM( ALL - 90 ) FROM tab2
----
-270

skipif mysql # not compatible
query I rowsort label-6117
SELECT DISTINCT + SUM ( ALL - 90 ) FROM tab2
----
-270

query I rowsort
SELECT DISTINCT - ( + 43 ) FROM tab1
----
-43

query II rowsort
SELECT ALL 41, col0 FROM tab2
----
41
46
41
64
41
75

query I rowsort
SELECT DISTINCT + col1 + 86 AS col2 FROM tab0
----
107
167
87

query I rowsort
SELECT - ( + + col0 ) * 81 + col2 AS col2 FROM tab1
----
-4035
-6826
-7303

query I rowsort
SELECT - col0 + + col0 - - ( 49 ) + col0 - + - col0 * col2 FROM tab2
----
1153
2673
4474

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( - col2 * - - col1 + 88 - + 19 - + 99 - - col2 + - 50 * - col1 * + 49 + col2 ) NOT IN ( col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + - 67 + col2 FROM tab0 cor0
----
-20
-57
32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6125
SELECT DISTINCT - ( + ( - - 36 ) ) - - - CAST( - col1 AS SIGNED ) col0 FROM tab1
----
-22
-31
11

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6125
SELECT DISTINCT - ( + ( - - 36 ) ) - - - CAST ( - col1 AS INTEGER ) col0 FROM tab1
----
-22
-31
11

onlyif mysql # aggregate syntax: 
query I rowsort label-6126
SELECT + 36 * + COUNT( * ) * COUNT( * ) FROM tab2
----
324

skipif mysql # not compatible
query I rowsort label-6126
SELECT + 36 * + COUNT ( * ) * COUNT ( * ) FROM tab2
----
324

query II rowsort
SELECT + col2 - 16 AS col2, + col1 + - col0 AS col0 FROM tab0
----
-6
-66
31
66
83
-96

query I rowsort
SELECT - 71 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to e72f95c346714d3065a96d67a6fd5062

query III rowsort
SELECT * FROM tab1 WHERE col1 + - 97 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-6130
SELECT DISTINCT - + MIN( ALL - 25 ) FROM tab0 AS cor0
----
25

skipif mysql # not compatible
query I rowsort label-6130
SELECT DISTINCT - + MIN ( ALL - 25 ) FROM tab0 AS cor0
----
25

query I rowsort
SELECT ALL + ( - - col0 ) AS col0 FROM tab2 cor0
----
46
64
75

query I rowsort
SELECT 24 * - + col0 AS col1 FROM tab1 AS cor0
----
-1224
-2040
-2184

query I rowsort
SELECT DISTINCT + ( + + col2 ) * 27 AS col0 FROM tab1 cor0
----
1593
1836
2592

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col2 * - col2 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6135
SELECT DISTINCT - 85 DIV + CAST( + + col2 AS SIGNED ) FROM tab1
----
-1
0

skipif mysql # not compatible
query I rowsort label-6135
SELECT DISTINCT - 85 / + CAST ( + + col2 AS INTEGER ) FROM tab1
----
-1
0

query III rowsort
SELECT * FROM tab0 WHERE NOT - col0 NOT BETWEEN col1 AND col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6137
SELECT ALL 73 DIV + 95 AS col2 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6137
SELECT ALL 73 / + 95 AS col2 FROM tab0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6138
SELECT DISTINCT SUM( ALL + - 53 ) AS col2 FROM tab1
----
-159

skipif mysql # not compatible
query I rowsort label-6138
SELECT DISTINCT SUM ( ALL + - 53 ) AS col2 FROM tab1
----
-159

query I rowsort
SELECT ALL - - 1 AS col0 FROM tab1 AS cor0
----
1
1
1

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col1 BETWEEN + - col0 AND NULL
----

query I rowsort
SELECT ALL + 77 * 78 FROM tab1 cor0
----
6006
6006
6006

onlyif mysql # aggregate syntax: 
query I rowsort label-6142
SELECT + SUM( ALL - col0 ) * - COUNT( * ) FROM tab2
----
555

skipif mysql # not compatible
query I rowsort label-6142
SELECT + SUM ( ALL - col0 ) * - COUNT ( * ) FROM tab2
----
555

query II rowsort
SELECT ALL + col0, - col0 FROM tab2
----
46
-46
64
-64
75
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-6144
SELECT - COUNT( * ) * + 5 AS col0 FROM tab2
----
-15

skipif mysql # not compatible
query I rowsort label-6144
SELECT - COUNT ( * ) * + 5 AS col0 FROM tab2
----
-15

query I rowsort
SELECT ALL - + 23 + - col1 FROM tab1 AS cor0
----
-28
-37
-70

query II rowsort
SELECT DISTINCT + col0 + - col0 + col1 AS col2, col2 + - col1 AS col2 FROM tab2 AS cor0
----
51
-28
67
-9
77
-37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6147
SELECT ALL 70 + + CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6147
SELECT ALL 70 + + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6148
SELECT + COUNT( * ) + - 26 FROM tab2 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-6148
SELECT + COUNT ( * ) + - 26 FROM tab2 AS cor0
----
-23

query I rowsort
SELECT DISTINCT + + ( ( col2 ) ) + + col0 AS col0 FROM tab0 AS cor0
----
196
62
97

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + 64 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6151
SELECT ALL 25 + + COUNT( * ) AS col0 FROM tab2
----
28

skipif mysql # not compatible
query I rowsort label-6151
SELECT ALL 25 + + COUNT ( * ) AS col0 FROM tab2
----
28

query III rowsort
SELECT * FROM tab0 WHERE + - 49 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col2 <> + - col1
----

query I rowsort
SELECT + 72 * + - 18 AS col1 FROM tab2
----
-1296
-1296
-1296

query I rowsort
SELECT ALL - col1 + - - col2 * - col2 FROM tab1
----
-3486
-4671
-9230

query I rowsort
SELECT + 61 * col1 AS col1 FROM tab0
----
1281
4941
61

onlyif mysql # aggregate syntax: 
query I rowsort label-6157
SELECT DISTINCT 1 + + ( + 91 ) + COUNT( * ) + - - MAX( ALL + col2 ) col2 FROM tab0 cor0
----
194

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6157
SELECT DISTINCT 1 + + ( + 91 ) + COUNT ( * ) + - - MAX ( ALL + col2 ) col2 FROM tab0 cor0
----
194

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 63 * + + col1 + col0 - + - 23 col2 FROM tab2 AS cor0
----
3282
4319
4938

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6159
SELECT + 95 + CAST( + - col2 AS SIGNED ) FROM tab0 AS cor0
----
-4
48
85

skipif mysql # not compatible
query I rowsort label-6159
SELECT + 95 + CAST ( + - col2 AS INTEGER ) FROM tab0 AS cor0
----
-4
48
85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6160
SELECT 59 * - CAST( NULL AS SIGNED ) + - col0 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6160
SELECT 59 * - CAST ( NULL AS INTEGER ) + - col0 AS col0 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL <= + - 5 * - col0 + 20
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6162
SELECT DISTINCT - COUNT( * ) * - + COUNT( * ) AS col2 FROM tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-6162
SELECT DISTINCT - COUNT ( * ) * - + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-6163
SELECT - col1 DIV - 6 FROM tab2 AS cor0
----
11
12
8

skipif mysql # not compatible
query I rowsort label-6163
SELECT - col1 / - 6 FROM tab2 AS cor0
----
11
12
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6164
SELECT DISTINCT 34 * + COUNT( * ) - - CAST( + - 59 AS SIGNED ) FROM tab0 AS cor0
----
43

skipif mysql # not compatible
query I rowsort label-6164
SELECT DISTINCT 34 * + COUNT ( * ) - - CAST ( + - 59 AS INTEGER ) FROM tab0 AS cor0
----
43

query I rowsort
SELECT ALL - + col0 AS col0 FROM tab2 AS cor0 WHERE NULL BETWEEN - 8 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6166
SELECT DISTINCT - + MIN( ALL - - 58 ) FROM tab2 AS cor0
----
-58

skipif mysql # not compatible
query I rowsort label-6166
SELECT DISTINCT - + MIN ( ALL - - 58 ) FROM tab2 AS cor0
----
-58

query I rowsort
SELECT DISTINCT 16 * - + col1 FROM tab1
----
-224
-752
-80

query III rowsort
SELECT * FROM tab0 WHERE NULL IS NOT NULL AND NULL IS NULL
----

query I rowsort
SELECT ALL col0 * + - 43 AS col1 FROM tab0
----
-3741
-4171
-645

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6170
SELECT - col2 * + 31 * - + CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6170
SELECT - col2 * + 31 * - + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col1 AS col1 FROM tab2 AS cor0 WHERE NOT - col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-6172
SELECT - + COUNT( * ), - 79 AS col2 FROM tab2 AS cor0
----
-3
-79

skipif mysql # not compatible
query II rowsort label-6172
SELECT - + COUNT ( * ), - 79 AS col2 FROM tab2 AS cor0
----
-3
-79

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 49 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + col0 = - - 11 * - col2 + + - col1 + + col0
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6175
SELECT DISTINCT + + 52 DIV - - COUNT( * ) FROM tab0 cor0
----
17

skipif mysql # not compatible
query I rowsort label-6175
SELECT DISTINCT + + 52 / - - COUNT ( * ) FROM tab0 cor0
----
17

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2 + + col2, + col0 col0 FROM tab2
----
116
75
46
46
80
64

query II rowsort
SELECT ALL + ( + col1 ) AS col0, - col0 + + - 26 AS col1 FROM tab2 WHERE + col0 IS NULL
----

query I rowsort
SELECT ALL + ( col2 ) + 55 FROM tab1
----
114
123
151

query I rowsort
SELECT DISTINCT col1 + - col1 * + col0 - col0 AS col2 FROM tab0 AS cor0
----
-1149
-1893
-193

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6180
SELECT DISTINCT MAX( col1 ) FROM tab0 AS cor0 WHERE col2 * - - col0 NOT IN ( + + ( + CAST( CAST( NULL AS SIGNED ) AS SIGNED ) ), col0, - col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6180
SELECT DISTINCT MAX ( col1 ) FROM tab0 AS cor0 WHERE col2 * - - col0 NOT IN ( + + ( + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) ), col0, - col1 )
----
NULL

query I rowsort
SELECT DISTINCT 48 * + + col0 + col0 + + col1 AS col0 FROM tab0 AS cor0
----
4284
4754
816

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL < 50
----

query I rowsort
SELECT DISTINCT + col2 FROM tab2 AS cor0 WHERE 50 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6184
SELECT ALL + 33 * - + CAST( + col1 AS SIGNED ) + + 95 FROM tab2 AS cor0
----
-1588
-2116
-2446

skipif mysql # not compatible
query I rowsort label-6184
SELECT ALL + 33 * - + CAST ( + col1 AS INTEGER ) + + 95 FROM tab2 AS cor0
----
-1588
-2116
-2446

query I rowsort
SELECT DISTINCT + 25 + - - col1 FROM tab1 AS cor0
----
30
39
72

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col2 + - col1 <> col1 * col1 + - 56 * 9
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-6187
SELECT + 56 + + COUNT( * ) + - 5 AS col2 FROM tab1
----
54

skipif mysql # not compatible
query I rowsort label-6187
SELECT + 56 + + COUNT ( * ) + - 5 AS col2 FROM tab1
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-6188
SELECT ALL + 23 - - ( - - COUNT( * ) ) FROM tab1, tab0 cor0
----
32

skipif mysql # not compatible
query I rowsort label-6188
SELECT ALL + 23 - - ( - - COUNT ( * ) ) FROM tab1, tab0 cor0
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-6189
SELECT + 25 * COUNT( * ) * + COUNT( * ) + + - COUNT( * ) AS col0 FROM tab0
----
222

skipif mysql # not compatible
query I rowsort label-6189
SELECT + 25 * COUNT ( * ) * + COUNT ( * ) + + - COUNT ( * ) AS col0 FROM tab0
----
222

onlyif mysql # aggregate syntax: 
query I rowsort label-6190
SELECT + COUNT( * ) + + 18 FROM tab1
----
21

skipif mysql # not compatible
query I rowsort label-6190
SELECT + COUNT ( * ) + + 18 FROM tab1
----
21

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + + - col1 col1 FROM tab0
----
0
0
0

query III rowsort
SELECT * FROM tab0 WHERE - 13 * + + col1 / 7 * 57 = + col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 23 + col0 col2 FROM tab1
----
108
114
74

query I rowsort
SELECT col2 * - + col1 + + col1 + - + col0 FROM tab2 AS cor0
----
-1168
-3067
-3894

query I rowsort
SELECT DISTINCT 4 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
4

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6196
SELECT * FROM tab0 AS cor0 WHERE NOT ( NOT ( col1 * - - col0 * - CAST( + col1 AS SIGNED ) NOT IN ( - ( 33 ) + - col2 ) ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-6196
SELECT * FROM tab0 AS cor0 WHERE NOT ( NOT ( col1 * - - col0 * - CAST ( + col1 AS INTEGER ) NOT IN ( - ( 33 ) + - col2 ) ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + 22 / + 76 <= NULL
----

query I rowsort
SELECT DISTINCT 58 AS col0 FROM tab0 cor0
----
58

onlyif mysql # aggregate syntax: 
query II rowsort label-6199
SELECT - - 66 * + 6 col1, - COUNT( * ) AS col1 FROM tab0 cor0
----
396
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6199
SELECT - - 66 * + 6 col1, - COUNT ( * ) AS col1 FROM tab0 cor0
----
396
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-6200
SELECT COUNT( * ) FROM tab0 AS cor0 WHERE NOT col1 * + col2 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-6200
SELECT COUNT ( * ) FROM tab0 AS cor0 WHERE NOT col1 * + col2 IS NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6201
SELECT + + MAX( - col2 ) * - 19 AS col0 FROM tab0 AS cor0
----
190

skipif mysql # not compatible
query I rowsort label-6201
SELECT + + MAX ( - col2 ) * - 19 AS col0 FROM tab0 AS cor0
----
190

onlyif mysql # aggregate syntax: 
query I rowsort label-6202
SELECT + 86 * + + ( + + COUNT( * ) ) AS col0 FROM tab2 AS cor0
----
258

skipif mysql # not compatible
query I rowsort label-6202
SELECT + 86 * + + ( + + COUNT ( * ) ) AS col0 FROM tab2 AS cor0
----
258

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + + 10 IS NOT NULL
----

query I rowsort
SELECT ALL 54 FROM tab1 WHERE ( + col1 ) IS NULL
----

query I rowsort
SELECT ALL - ( + 30 ) AS col0 FROM tab2
----
-30
-30
-30

query I rowsort
SELECT + ( 87 ) * + - col2 * - col0 AS col2 FROM tab2
----
222720
378450
92046

query I rowsort
SELECT + 62 * + - col1 FROM tab1
----
-2914
-310
-868

query I rowsort
SELECT ( + - 9 ) AS col1 FROM tab2
----
-9
-9
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-6209
SELECT DISTINCT - 48 + + - COUNT( * ) FROM tab1
----
-51

skipif mysql # not compatible
query I rowsort label-6209
SELECT DISTINCT - 48 + + - COUNT ( * ) FROM tab1
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-6210
SELECT ALL + + 62 * COUNT( * ) FROM tab0 cor0
----
186

skipif mysql # not compatible
query I rowsort label-6210
SELECT ALL + + 62 * COUNT ( * ) FROM tab0 cor0
----
186

onlyif mysql # aggregate syntax: 
query I rowsort label-6211
SELECT DISTINCT COUNT( * ) + MAX( ALL - + col2 ) AS col0 FROM tab2 AS cor0
----
-20

skipif mysql # not compatible
query I rowsort label-6211
SELECT DISTINCT COUNT ( * ) + MAX ( ALL - + col2 ) AS col0 FROM tab2 AS cor0
----
-20

query I rowsort
SELECT ALL - 25 AS col2 FROM tab0 cor0
----
-25
-25
-25

query II rowsort
SELECT DISTINCT - col2 AS col0, col1 AS col1 FROM tab2
----
-23
51
-40
77
-58
67

query II rowsort
SELECT ALL + col0 AS col1, - col2 FROM tab1
----
51
-96
85
-59
91
-68

query I rowsort
SELECT DISTINCT + 2 + ( + 91 ) AS col0 FROM tab2 cor0
----
93

query I rowsort
SELECT + - 62 + - - col1 + - 6 AS col1 FROM tab0 AS cor0
----
-47
-67
13

query I rowsort
SELECT DISTINCT - col1 + + - 41 + + col0 AS col2 FROM tab0 cor0
----
-107
25
55

query I rowsort
SELECT DISTINCT 7 + + + col1 AS col2 FROM tab0 AS cor0
----
28
8
88

query I rowsort
SELECT DISTINCT 36 AS col1 FROM tab2 cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6220
SELECT ALL + + AVG ( - CAST( NULL AS SIGNED ) ) col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6220
SELECT ALL + + AVG ( - CAST ( NULL AS INTEGER ) ) col2 FROM tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + ( 72 ) col2 FROM tab1 AS cor0
----
72
72
72

onlyif mysql # DIV for integer division: 
query II rowsort label-6222
SELECT ALL col0 + - 6, col0 DIV + col0 + + col0 AS col1 FROM tab2 AS cor0
----
40
47
58
65
69
76

skipif mysql # not compatible
query II rowsort label-6222
SELECT ALL col0 + - 6, col0 / + col0 + + col0 AS col1 FROM tab2 AS cor0
----
40
47
58
65
69
76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2, - col2 + + col0 + col2 col2 FROM tab1 AS cor0
----
59
85
68
91
96
51

query I rowsort
SELECT ALL - col2 * 0 - + + col1 AS col0 FROM tab0
----
-1
-21
-81

query III rowsort
SELECT * FROM tab1 WHERE - + col1 / + col2 + + + 20 + + col0 + - 70 / 8 * col1 * + 66 * - col2 <= ( NULL )
----

query I rowsort
SELECT col2 - ( - - col1 ) FROM tab0
----
-11
-34
98

query I rowsort
SELECT col1 - + - 98 FROM tab1
----
103
112
145

onlyif mysql # aggregate syntax: 
query I rowsort label-6228
SELECT ALL + 85 * COUNT( * ) FROM tab1
----
255

skipif mysql # not compatible
query I rowsort label-6228
SELECT ALL + 85 * COUNT ( * ) FROM tab1
----
255

query I rowsort
SELECT ALL + col2 FROM tab2 cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT - + 13 AS col2 FROM tab0 cor0
----
-13
-13
-13

query I rowsort
SELECT 84 AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
84
84
84

onlyif mysql # aggregate syntax: 
query I rowsort label-6232
SELECT + MIN( DISTINCT - - 45 ) FROM tab0 AS cor0
----
45

skipif mysql # not compatible
query I rowsort label-6232
SELECT + MIN ( DISTINCT - - 45 ) FROM tab0 AS cor0
----
45

query I rowsort
SELECT 1 * - col0 FROM tab0 cor0
----
-15
-87
-97

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6234
SELECT DISTINCT CAST( NULL AS SIGNED ) * - col0 + col1, 36 + - + ( col0 ) AS col2 FROM tab0 AS cor0
----
NULL
-51
NULL
-61
NULL
21

skipif mysql # not compatible
query II rowsort label-6234
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - col0 + col1, 36 + - + ( col0 ) AS col2 FROM tab0 AS cor0
----
NULL
-51
NULL
-61
NULL
21

onlyif mysql # aggregate syntax: 
query I rowsort label-6235
SELECT DISTINCT - MAX( - - 25 ) FROM tab0 AS cor0
----
-25

skipif mysql # not compatible
query I rowsort label-6235
SELECT DISTINCT - MAX ( - - 25 ) FROM tab0 AS cor0
----
-25

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 70 col1 FROM tab0 AS cor0
----
-70
-70
-70

query II rowsort
SELECT + col2, ( - + col0 ) + ( + - 33 ) FROM tab1 cor0
----
59
-118
68
-124
96
-84

query I rowsort
SELECT - col0 * - 12 * - + col1 - - + col1 + - col2 AS col2 FROM tab2 AS cor0
----
-28124
-59099
-60291

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL = + col1 + + col0
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + - col1 + + col0 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6241
SELECT ALL - col0 DIV + col1 + 95 FROM tab2
----
94
95
95

skipif mysql # not compatible
query I rowsort label-6241
SELECT ALL - col0 / + col1 + 95 FROM tab2
----
94
95
95

query I rowsort
SELECT - col2 + + 79 - - col0 * col0 - col0 * + 14 AS col1 FROM tab1 AS cor0
----
1870
6055
7018

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6243
SELECT ALL - col0 AS col1 FROM tab2 AS cor0 WHERE NOT + col2 <= + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-6243
SELECT ALL - col0 AS col1 FROM tab2 AS cor0 WHERE NOT + col2 <= + CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT DISTINCT - ( + - col2 ) * - 62 FROM tab1 WHERE NOT NULL <> col1 + - col2
----

query I rowsort
SELECT DISTINCT - col1 * col2 + col2 AS col2 FROM tab0 AS cor0
----
-200
-3760
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6246
SELECT DISTINCT - + col1 * + ( - + CAST( NULL AS SIGNED ) ) - - - col2 + + col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6246
SELECT DISTINCT - + col1 * + ( - + CAST ( NULL AS INTEGER ) ) - - - col2 + + col1 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT 81 * + 52 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6248
SELECT * FROM tab1 AS cor0 WHERE ( CAST( - col2 AS SIGNED ) ) + + col1 + + col1 + + col1 * + 17 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-6248
SELECT * FROM tab1 AS cor0 WHERE ( CAST ( - col2 AS INTEGER ) ) + + col1 + + col1 + + col1 * + 17 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-6249
SELECT + - ( ( + ( - COUNT( * ) ) ) ) - + 39 + 6 * - 10 AS col1 FROM tab2 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-6249
SELECT + - ( ( + ( - COUNT ( * ) ) ) ) - + 39 + 6 * - 10 AS col1 FROM tab2 AS cor0
----
-96

query I rowsort
SELECT - 97 - - + 38 * - col1 FROM tab0 AS cor0
----
-135
-3175
-895

query I rowsort
SELECT ALL + - 63 * - - col0 * - col1 AS col1 FROM tab2 AS cor0
----
147798
310464
316575

query I rowsort
SELECT - col0 + - col2 + 43 FROM tab0
----
-153
-19
-54

query I rowsort
SELECT ALL + 13 * + col1 FROM tab0
----
1053
13
273

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6254
SELECT DISTINCT COUNT( + + col1 ) DIV 48 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-6254
SELECT DISTINCT COUNT ( + + col1 ) / 48 FROM tab2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6255
SELECT CAST( - COUNT( * ) AS SIGNED ) + + COUNT( * ) * - - 49 FROM tab0
----
144

skipif mysql # not compatible
query I rowsort label-6255
SELECT CAST ( - COUNT ( * ) AS INTEGER ) + + COUNT ( * ) * - - 49 FROM tab0
----
144

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6256
SELECT DISTINCT + COUNT( * ) DIV 20 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-6256
SELECT DISTINCT + COUNT ( * ) / 20 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6257
SELECT + - COUNT( * ) + + 69 col0 FROM tab1 WHERE NOT + - 92 IS NULL
----
66

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6257
SELECT + - COUNT ( * ) + + 69 col0 FROM tab1 WHERE NOT + - 92 IS NULL
----
66

onlyif mysql # DIV for integer division: 
query I rowsort label-6258
SELECT ALL - 86 DIV + 21 AS col0 FROM tab1
----
-4
-4
-4

skipif mysql # not compatible
query I rowsort label-6258
SELECT ALL - 86 / + 21 AS col0 FROM tab1
----
-4
-4
-4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT DISTINCT - col2, + col0, + + 64 * col0 col1 FROM tab2 AS cor0
----
9 values hashing to 7e51f23277f04ba12a42070dc2e87bf8

query II rowsort
SELECT + col2, + 24 * + ( + col1 ) + 72 FROM tab1 cor0
----
59
192
68
1200
96
408

onlyif mysql # aggregate syntax: 
query I rowsort label-6261
SELECT MAX( ALL - 9 ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-6261
SELECT MAX ( ALL - 9 ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-6262
SELECT ALL COUNT( ALL 49 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-6262
SELECT ALL COUNT ( ALL 49 ) FROM tab0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-6263
SELECT ALL + 6 DIV 23 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6263
SELECT ALL + 6 / 23 FROM tab2 AS cor0
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col0 BETWEEN - + col2 AND NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 76 * + - 44 + + + 50 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 + col1 AS col0, col1 col2 FROM tab2 AS cor0
----
117
77
125
67
74
51

onlyif mysql # aggregate syntax: 
query I rowsort label-6267
SELECT ALL + MIN( ALL - - col2 ) FROM tab2 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-6267
SELECT ALL + MIN ( ALL - - col2 ) FROM tab2 AS cor0
----
23

onlyif mysql # DIV for integer division: 
query I rowsort label-6268
SELECT - ( + 50 ) + 83 DIV - - col2 AS col2 FROM tab1 AS cor0
----
-49
-49
-50

skipif mysql # not compatible
query I rowsort label-6268
SELECT - ( + 50 ) + 83 / - - col2 AS col2 FROM tab1 AS cor0
----
-49
-49
-50

query I rowsort
SELECT DISTINCT ( + 39 ) FROM tab1
----
39

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - col0 NOT IN ( col2, 64, + - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6271
SELECT DISTINCT + MIN( - - 81 ) + - 14 * - + 75 FROM tab1
----
1131

skipif mysql # not compatible
query I rowsort label-6271
SELECT DISTINCT + MIN ( - - 81 ) + - 14 * - + 75 FROM tab1
----
1131

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6272
SELECT col1 FROM tab1 WHERE + + CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-6272
SELECT col1 FROM tab1 WHERE + + CAST ( NULL AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT + - col2 * col1 + + col0 + + + col1 FROM tab2 AS cor0
----
-1076
-2939
-3744

query I rowsort
SELECT DISTINCT - col0 AS col2 FROM tab2 AS cor0 WHERE col1 + - - col0 * col1 IS NOT NULL
----
-46
-64
-75

query I rowsort
SELECT + + 82 AS col0 FROM tab0 cor0
----
82
82
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 40 col2, + 96 + col0 * - 38 FROM tab0 cor0
----
-40
-3210
-40
-3590
-40
-474

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6277
SELECT DISTINCT + COUNT( DISTINCT - 78 ) * + + 21 DIV + 13 AS col2 FROM tab2 AS cor0 WHERE NOT ( NULL < NULL )
----
0

skipif mysql # not compatible
query I rowsort label-6277
SELECT DISTINCT + COUNT ( DISTINCT - 78 ) * + + 21 / + 13 AS col2 FROM tab2 AS cor0 WHERE NOT ( NULL < NULL )
----
0

query I rowsort
SELECT DISTINCT 21 * 22 * col0 AS col0 FROM tab1
----
23562
39270
42042

query I rowsort
SELECT DISTINCT + 81 * + 41 AS col0 FROM tab1
----
3321

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2 * - - col0 + col1 col0, col1 AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL col1 AS col0 FROM tab0 AS cor0 WHERE - col2 IS NOT NULL
----
1
21
81

query II rowsort
SELECT DISTINCT col2 + + - col2 + - + col0 * ( col2 ) AS col1, 30 AS col1 FROM tab0 AS cor0
----
-705
30
-870
30
-9603
30

onlyif mysql # aggregate syntax: 
query I rowsort label-6283
SELECT + MIN( - + col1 ) AS col0 FROM tab1 AS cor0
----
-47

skipif mysql # not compatible
query I rowsort label-6283
SELECT + MIN ( - + col1 ) AS col0 FROM tab1 AS cor0
----
-47

query I rowsort
SELECT ALL - + col2 + + col2 * 14 AS col1 FROM tab1 AS cor0
----
1248
767
884

query I rowsort
SELECT ALL + 45 + + col2 - - col2 FROM tab1 AS cor0
----
163
181
237

onlyif mysql # DIV for integer division: 
query I rowsort label-6286
SELECT DISTINCT - col1 - - col0 + + 50 DIV - col0 FROM tab0 AS cor0
----
-69
66
96

skipif mysql # not compatible
query I rowsort label-6286
SELECT DISTINCT - col1 - - col0 + + 50 / - col0 FROM tab0 AS cor0
----
-69
66
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6287
SELECT col2 col2 FROM tab1 WHERE NOT col1 + col0 BETWEEN CAST( NULL AS SIGNED ) * + 20 * col1 AND - col0
----
59
68
96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6287
SELECT col2 col2 FROM tab1 WHERE NOT col1 + col0 BETWEEN CAST ( NULL AS INTEGER ) * + 20 * col1 AND - col0
----
59
68
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 8 col1 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6289
SELECT DISTINCT col2 DIV + 9 AS col1 FROM tab1
----
10
6
7

skipif mysql # not compatible
query I rowsort label-6289
SELECT DISTINCT col2 / + 9 AS col1 FROM tab1
----
10
6
7

query I rowsort
SELECT + 27 * + - col1 FROM tab1
----
-1269
-135
-378

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6291
SELECT + col2 * - CAST( NULL AS SIGNED ) / + ( - - 22 ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6291
SELECT + col2 * - CAST ( NULL AS INTEGER ) / + ( - - 22 ) FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6292
SELECT DISTINCT + SUM( DISTINCT col2 ) AS col0 FROM tab2 AS cor0
----
121

skipif mysql # not compatible
query I rowsort label-6292
SELECT DISTINCT + SUM ( DISTINCT col2 ) AS col0 FROM tab2 AS cor0
----
121

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6293
SELECT ALL CAST( + COUNT( * ) AS SIGNED ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-6293
SELECT ALL CAST ( + COUNT ( * ) AS INTEGER ) FROM tab1 AS cor0
----
3

query I rowsort
SELECT DISTINCT - - ( col2 ) * col2 AS col2 FROM tab2 AS cor0
----
1600
3364
529

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col1 <> - col0 + - col1
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + 32 IN ( col1 - - col0, col0, + + col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - 99 * 45 * - 24 FROM tab0 AS cor0
----
106920
106920
106920

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * 40 col2 FROM tab2 cor0
----
-1600
-2320
-920

onlyif mysql # aggregate syntax: 
query I rowsort label-6299
SELECT DISTINCT + - 29 * COUNT( * ) + - + 7 AS col0 FROM tab2 AS cor0
----
-94

skipif mysql # not compatible
query I rowsort label-6299
SELECT DISTINCT + - 29 * COUNT ( * ) + - + 7 AS col0 FROM tab2 AS cor0
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-6300
SELECT DISTINCT COUNT( * ) + + + COUNT( * ) + - + 28 AS col2 FROM tab2 AS cor0
----
-22

skipif mysql # not compatible
query I rowsort label-6300
SELECT DISTINCT COUNT ( * ) + + + COUNT ( * ) + - + 28 AS col2 FROM tab2 AS cor0
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-6301
SELECT COUNT( * ) * COUNT( ALL - col1 ) - 54 AS col1 FROM tab2 cor0
----
-45

skipif mysql # not compatible
query I rowsort label-6301
SELECT COUNT ( * ) * COUNT ( ALL - col1 ) - 54 AS col1 FROM tab2 cor0
----
-45

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( col0 IS NULL )
----

query II rowsort
SELECT col0 * - + 88 AS col0, 29 * - col0 AS col0 FROM tab2
----
-4048
-1334
-5632
-1856
-6600
-2175

query I rowsort
SELECT DISTINCT col2 + - ( + col2 ) - 63 FROM tab2
----
-63

query I rowsort
SELECT ( + col0 ) * - 13 FROM tab0
----
-1131
-1261
-195

query II rowsort
SELECT + + 83, - 96 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
18 values hashing to 88bac4ad25687818019b733b292d050f

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col2 * - col2 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6308
SELECT ALL + CAST( col2 AS SIGNED ) AS col0 FROM tab0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-6308
SELECT ALL + CAST ( col2 AS INTEGER ) AS col0 FROM tab0
----
10
47
99

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col1 * 7 < col1
----

query I rowsort
SELECT ALL - 85 + - 56 AS col0 FROM tab2 AS cor0
----
-141
-141
-141

query I rowsort
SELECT DISTINCT + + 94 + + col0 FROM tab1 AS cor0
----
145
179
185

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6312
SELECT ALL - 56 + COUNT( ALL + 21 ) + + - 95 DIV COUNT( * ) AS col0 FROM tab1 AS cor0
----
-84

skipif mysql # not compatible
query I rowsort label-6312
SELECT ALL - 56 + COUNT ( ALL + 21 ) + + - 95 / COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6313
SELECT DISTINCT 34 - CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6313
SELECT DISTINCT 34 - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT col1 FROM tab1 AS cor0 WHERE NOT + col1 NOT BETWEEN 34 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6315
SELECT ALL - COUNT( * ) * - MAX( - 46 ) FROM tab0 AS cor0 WHERE + col2 * - col1 + - 81 IS NOT NULL
----
-138

skipif mysql # not compatible
query I rowsort label-6315
SELECT ALL - COUNT ( * ) * - MAX ( - 46 ) FROM tab0 AS cor0 WHERE + col2 * - col1 + - 81 IS NOT NULL
----
-138

query I rowsort
SELECT ALL ( - ( + 47 ) ) AS col0 FROM tab0 AS cor0
----
-47
-47
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-6317
SELECT DISTINCT - - MIN( DISTINCT + + 33 ) FROM tab2 AS cor0
----
33

skipif mysql # not compatible
query I rowsort label-6317
SELECT DISTINCT - - MIN ( DISTINCT + + 33 ) FROM tab2 AS cor0
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-6318
SELECT - MAX( col2 ) AS col2 FROM tab0
----
-99

skipif mysql # not compatible
query I rowsort label-6318
SELECT - MAX ( col2 ) AS col2 FROM tab0
----
-99

query I rowsort
SELECT ALL 52 AS col1 FROM tab2 WHERE NULL IS NULL
----
52
52
52

query I rowsort
SELECT + col2 * + + col1 FROM tab0
----
210
3807
99

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( - col2 + + col2 ) < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6322
SELECT - 37 * - SUM( - + col0 ) AS col2 FROM tab1 AS cor0
----
-8399

skipif mysql # not compatible
query I rowsort label-6322
SELECT - 37 * - SUM ( - + col0 ) AS col2 FROM tab1 AS cor0
----
-8399

query II rowsort
SELECT 7 AS col2, 51 AS col1 FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 )
----
18 values hashing to bb6a6181ac9007db717986752e8e33d3

query III rowsort
SELECT * FROM tab0 WHERE NOT 87 + - - 9 * - col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6325
SELECT ALL + + COUNT( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-6325
SELECT ALL + + COUNT ( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9

query I rowsort
SELECT ALL + 52 + 30 AS col0 FROM tab1 AS cor0
----
82
82
82

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT NULL >= 59 + col0
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col2 * - col2 * - - 90 <= NULL
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT col0 * + col1 * + 8 + - + 58 <> NULL
----

query I rowsort
SELECT - col1 + + - 95 AS col1 FROM tab2 AS cor0
----
-146
-162
-172

query I rowsort
SELECT + - col2 + - 30 * col0 * + 83 FROM tab0 AS cor0
----
-216640
-241629
-37397

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6332
SELECT ALL + CAST( - + ( + col1 ) AS SIGNED ) + col1 - col0 FROM tab2 AS cor0
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-6332
SELECT ALL + CAST ( - + ( + col1 ) AS INTEGER ) + col1 - col0 FROM tab2 AS cor0
----
-46
-64
-75

query I rowsort
SELECT col0 * - 58 + - - col0 FROM tab1 AS cor0
----
-2907
-4845
-5187

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col2 * + - 10 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - 20 + - + col0 FROM tab2 cor0
----
-66
-84
-95

query I rowsort
SELECT - col0 + + 13 AS col0 FROM tab0 AS cor0
----
-2
-74
-84

query I rowsort
SELECT + ( - - 40 ) * - + 5 * - 79 AS col0 FROM tab1
----
15800
15800
15800

onlyif mysql # aggregate syntax: 
query I rowsort label-6338
SELECT + 41 * - - COUNT( DISTINCT - col2 ) FROM tab1
----
123

skipif mysql # not compatible
query I rowsort label-6338
SELECT + 41 * - - COUNT ( DISTINCT - col2 ) FROM tab1
----
123

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6339
SELECT + CAST( col0 AS SIGNED ) * + col0 + - col0 * + col2 * col1 FROM tab2
----
-193024
-285825
-51842

skipif mysql # not compatible
query I rowsort label-6339
SELECT + CAST ( col0 AS INTEGER ) * + col0 + - col0 * + col2 * col1 FROM tab2
----
-193024
-285825
-51842

query III rowsort
SELECT * FROM tab2 WHERE NULL <> 79 + - 85 + - col2 + - col0
----

query II rowsort
SELECT DISTINCT col1 AS col0, col1 AS col1 FROM tab1
----
14
14
47
47
5
5

onlyif mysql # aggregate syntax: 
query II rowsort label-6342
SELECT COUNT( * ), 82 col1 FROM tab2
----
3
82

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6342
SELECT COUNT ( * ), 82 col1 FROM tab2
----
3
82

query III rowsort
SELECT ALL * FROM tab2 WHERE ( NOT + col2 IS NOT NULL )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-6344
SELECT ALL col0 * - col1 - + col0 + - - col2 * - col0 + - col1 DIV + col1, 32 AS col2 FROM tab0 AS cor0
----
-1936
32
-2785
32
-9798
32

skipif mysql # not compatible
query II rowsort label-6344
SELECT ALL col0 * - col1 - + col0 + - - col2 * - col0 + - col1 / + col1, 32 AS col2 FROM tab0 AS cor0
----
-1936
32
-2785
32
-9798
32

onlyif mysql # aggregate syntax: 
query I rowsort label-6345
SELECT DISTINCT COUNT( * ) + + COUNT( * ) + + COUNT( * ) AS col1 FROM tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-6345
SELECT DISTINCT COUNT ( * ) + + COUNT ( * ) + + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-6346
SELECT ALL + + col0 + - 96 DIV + 38 FROM tab2 AS cor0
----
44
62
73

skipif mysql # not compatible
query I rowsort label-6346
SELECT ALL + + col0 + - 96 / + 38 FROM tab2 AS cor0
----
44
62
73

query III rowsort
SELECT * FROM tab2 WHERE - col2 < + 65
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 36 col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
36

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 * + + 71 * col0 <= col0 - + 27 - col2 * + - col0 * + 92
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - 18 * - 11 FROM tab2 AS cor0
----
198
198
198

query I rowsort
SELECT DISTINCT + - 88 FROM tab0 cor0
----
-88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6352
SELECT + MAX( ALL + - col0 ) AS col0 FROM tab2 AS cor0 WHERE NOT 68 IN ( + col0, CAST( NULL AS SIGNED ) * - ( - + col1 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6352
SELECT + MAX ( ALL + - col0 ) AS col0 FROM tab2 AS cor0 WHERE NOT 68 IN ( + col0, CAST ( NULL AS INTEGER ) * - ( - + col1 ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6353
SELECT ALL + + 20 * + 87 * + 70 * - - COUNT( * ) AS col2 FROM tab2 AS cor0
----
365400

skipif mysql # not compatible
query I rowsort label-6353
SELECT ALL + + 20 * + 87 * + 70 * - - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
365400

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) BETWEEN NULL AND + - 47
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6355
SELECT - + col0 DIV + col1 + - col1 FROM tab2 AS cor0
----
-51
-68
-77

skipif mysql # not compatible
query I rowsort label-6355
SELECT - + col0 / + col1 + - col1 FROM tab2 AS cor0
----
-51
-68
-77

query I rowsort
SELECT + col1 FROM tab2 WHERE NOT 10 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + 25 / col1 NOT BETWEEN - - 64 AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col1 BETWEEN NULL AND + 53
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6359
SELECT * FROM tab2 WHERE NOT - col1 / - col0 * - + col1 * + - col1 + + - CAST( NULL AS SIGNED ) <= + - ( - col0 )
----

skipif mysql # not compatible
query III rowsort label-6359
SELECT * FROM tab2 WHERE NOT - col1 / - col0 * - + col1 * + - col1 + + - CAST ( NULL AS INTEGER ) <= + - ( - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6360
SELECT DISTINCT COUNT( ALL - + 70 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-6360
SELECT DISTINCT COUNT ( ALL - + 70 ) FROM tab0
----
3

query I rowsort
SELECT 15 * - col1 FROM tab2
----
-1005
-1155
-765

onlyif mysql # aggregate syntax: 
query II rowsort label-6362
SELECT 6 AS col2, COUNT( * ) AS col0 FROM tab0 AS cor0
----
6
3

skipif mysql # not compatible
query II rowsort label-6362
SELECT 6 AS col2, COUNT ( * ) AS col0 FROM tab0 AS cor0
----
6
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6363
SELECT MIN( ALL + col0 ) AS col1 FROM tab0 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-6363
SELECT MIN ( ALL + col0 ) AS col1 FROM tab0 AS cor0
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-6364
SELECT - COUNT( * ) * - 59 FROM tab2 AS cor0
----
177

skipif mysql # not compatible
query I rowsort label-6364
SELECT - COUNT ( * ) * - 59 FROM tab2 AS cor0
----
177

onlyif mysql # DIV for integer division: 
query I rowsort label-6365
SELECT + + col2 DIV - 39 FROM tab0 AS cor0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-6365
SELECT + + col2 / - 39 FROM tab0 AS cor0
----
-1
-2
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6366
SELECT DISTINCT - COUNT( DISTINCT col1 ) AS col1 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-6366
SELECT DISTINCT - COUNT ( DISTINCT col1 ) AS col1 FROM tab2 AS cor0
----
-3

query II rowsort
SELECT ALL - col1 AS col0, col0 AS col1 FROM tab2 AS cor0
----
-51
46
-67
75
-77
64

query I rowsort
SELECT - col2 + + 29 AS col2 FROM tab0 AS cor0
----
-18
-70
19

query I rowsort
SELECT DISTINCT col1 AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) <= ( + col2 )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + + col0 * - col0 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6371
SELECT DISTINCT col1 + - + col0 + - 23 DIV - 76 FROM tab2 AS cor0
----
-8
13
5

skipif mysql # not compatible
query I rowsort label-6371
SELECT DISTINCT col1 + - + col0 + - 23 / - 76 FROM tab2 AS cor0
----
-8
13
5

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6372
SELECT ALL + CAST( NULL AS DECIMAL ) * + + CAST( - - col1 AS SIGNED ) col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6372
SELECT ALL + CAST ( NULL AS REAL ) * + + CAST ( - - col1 AS INTEGER ) col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6373
SELECT - SUM( col1 ) FROM tab2 cor0
----
-195

skipif mysql # not compatible
query I rowsort label-6373
SELECT - SUM ( col1 ) FROM tab2 cor0
----
-195

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + 61 col2 FROM tab1 AS cor0
----
-35
-7
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6375
SELECT - CAST( COUNT( * ) AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-6375
SELECT - CAST ( COUNT ( * ) AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col0 * - 9 IS NULL
----

query II rowsort
SELECT ALL + 12 * - col2 AS col2, - 74 FROM tab1 cor0
----
-1152
-74
-708
-74
-816
-74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6378
SELECT DISTINCT CAST( NULL AS SIGNED ) * ( - 96 ) * + - col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-6378
SELECT DISTINCT CAST ( NULL AS INTEGER ) * ( - 96 ) * + - col0 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6379
SELECT - MAX( + - col1 ) + + COUNT( * ) FROM tab2
----
54

skipif mysql # not compatible
query I rowsort label-6379
SELECT - MAX ( + - col1 ) + + COUNT ( * ) FROM tab2
----
54

query I rowsort
SELECT - 2 AS col0 FROM tab0 WHERE - col0 NOT BETWEEN - ( + ( + - col0 ) ) - + - 76 + - ( - col2 ) AND NULL
----
-2
-2
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6381
SELECT - col2 + - + CAST( - - 86 AS SIGNED ) FROM tab2
----
-109
-126
-144

skipif mysql # not compatible
query I rowsort label-6381
SELECT - col2 + - + CAST ( - - 86 AS INTEGER ) FROM tab2
----
-109
-126
-144

query III rowsort
SELECT * FROM tab0 WHERE NULL > - + col0
----

query I rowsort
SELECT col1 + ( 99 ) FROM tab2
----
150
166
176

query I rowsort
SELECT ALL ( - 10 ) + - - col1 FROM tab0
----
-9
11
71

query I rowsort
SELECT ALL 45 AS col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
45
45
45

query I rowsort
SELECT DISTINCT + 31 - - - 98 FROM tab2 AS cor0
----
-67

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6387
SELECT DISTINCT col2 + col2 + + - CAST( NULL AS SIGNED ) AS col0, - 90 - - - col0 + CAST( NULL AS SIGNED ) * - + col1 + + col2 FROM tab2 AS cor0
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-6387
SELECT DISTINCT col2 + col2 + + - CAST ( NULL AS INTEGER ) AS col0, - 90 - - - col0 + CAST ( NULL AS INTEGER ) * - + col1 + + col2 FROM tab2 AS cor0
----
NULL
NULL

query I rowsort
SELECT DISTINCT - col1 + - + col2 + - col1 AS col1 FROM tab2 AS cor0
----
-125
-192
-194

query I rowsort
SELECT DISTINCT 26 + col2 + - 69 + + col2 - - 66 AS col1 FROM tab2 cor0
----
103
139
69

query I rowsort
SELECT + + col2 FROM tab1 AS cor0 WHERE + col2 / + col0 IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - col0 + col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - - 8 - - + 65 FROM tab0 AS cor0
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-6393
SELECT ALL - COUNT( 0 ) - COUNT( * ) AS col2 FROM tab2
----
-6

skipif mysql # not compatible
query I rowsort label-6393
SELECT ALL - COUNT ( 0 ) - COUNT ( * ) AS col2 FROM tab2
----
-6

query II rowsort
SELECT DISTINCT 37, + col2 AS col0 FROM tab2
----
37
23
37
40
37
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6395
SELECT + CAST( 8 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
8
8
8

skipif mysql # not compatible
query I rowsort label-6395
SELECT + CAST ( 8 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
8
8
8

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 35 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6397
SELECT ALL - - MIN( ALL + + col0 ) FROM tab0 AS cor0 WHERE NOT + CAST( NULL AS SIGNED ) <= - col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6397
SELECT ALL - - MIN ( ALL + + col0 ) FROM tab0 AS cor0 WHERE NOT + CAST ( NULL AS INTEGER ) <= - col0
----
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col2 + - - col0 / col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + + 76 FROM tab2 cor0
----
76

onlyif mysql # DIV for integer division: 
query I rowsort label-6400
SELECT ALL - 23 DIV - - 88 col1 FROM tab1 AS cor0 WHERE NULL IS NULL
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6400
SELECT ALL - 23 / - - 88 col1 FROM tab1 AS cor0 WHERE NULL IS NULL
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6401
SELECT MIN( DISTINCT - col1 ) col2 FROM tab1 cor0
----
-47

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6401
SELECT MIN ( DISTINCT - col1 ) col2 FROM tab1 cor0
----
-47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6402
SELECT - 11 / + col1 * ( - CAST( NULL AS SIGNED ) ) * - col2 * col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6402
SELECT - 11 / + col1 * ( - CAST ( NULL AS INTEGER ) ) * - col2 * col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT - ( + 71 ) FROM tab2
----
-71
-71
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-6404
SELECT ALL MAX( ALL - 25 ) AS col2 FROM tab2
----
-25

skipif mysql # not compatible
query I rowsort label-6404
SELECT ALL MAX ( ALL - 25 ) AS col2 FROM tab2
----
-25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6405
SELECT DISTINCT col1 + col1 * col1 AS col0 FROM tab1 WHERE + ( CAST( - col1 AS SIGNED ) ) IS NOT NULL
----
210
2256
30

skipif mysql # not compatible
query I rowsort label-6405
SELECT DISTINCT col1 + col1 * col1 AS col0 FROM tab1 WHERE + ( CAST ( - col1 AS INTEGER ) ) IS NOT NULL
----
210
2256
30

query III rowsort
SELECT ALL * FROM tab0 WHERE ( 22 IS NOT NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + ( + + col0 ) + + 39 FROM tab1 AS cor0
----
124
130
90

onlyif mysql # DIV for integer division: 
query I rowsort label-6408
SELECT + 9 DIV - col1 AS col1 FROM tab1
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-6408
SELECT + 9 / - col1 AS col1 FROM tab1
----
-1
0
0

query II rowsort
SELECT - ( + 48 ) + 53, + col1 AS col1 FROM tab0
----
5
1
5
21
5
81

onlyif mysql # aggregate syntax: 
query I rowsort label-6410
SELECT - COUNT( * ) + + COUNT( * ) + + MIN( DISTINCT col0 ) * MIN( ALL + col0 ) * COUNT( * ) AS col1 FROM tab1 AS cor0
----
7803

skipif mysql # not compatible
query I rowsort label-6410
SELECT - COUNT ( * ) + + COUNT ( * ) + + MIN ( DISTINCT col0 ) * MIN ( ALL + col0 ) * COUNT ( * ) AS col1 FROM tab1 AS cor0
----
7803

query I rowsort
SELECT DISTINCT + 3 + - 39 FROM tab2 AS cor0
----
-36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6412
SELECT - + CAST( NULL AS SIGNED ) + AVG ( - CAST( 95 AS SIGNED ) ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6412
SELECT - + CAST ( NULL AS INTEGER ) + AVG ( - CAST ( 95 AS INTEGER ) ) AS col0 FROM tab1 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-6413
SELECT ALL + - col1 AS col2, - 67 DIV - col1 FROM tab1 AS cor0
----
-14
4
-47
1
-5
13

skipif mysql # not compatible
query II rowsort label-6413
SELECT ALL + - col1 AS col2, - 67 / - col1 FROM tab1 AS cor0
----
-14
4
-47
1
-5
13

query I rowsort
SELECT 84 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT 12 + - col0 FROM tab1 AS cor0
----
-39
-73
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-6416
SELECT - COUNT( * ) * + + 54 - + 8 FROM tab0 AS cor0
----
-170

skipif mysql # not compatible
query I rowsort label-6416
SELECT - COUNT ( * ) * + + 54 - + 8 FROM tab0 AS cor0
----
-170

query I rowsort
SELECT + + 45 * + col2 FROM tab0 AS cor0
----
2115
4455
450

query I rowsort
SELECT - col0 * + - 52 * - col1 AS col2 FROM tab0
----
-5044
-63180
-95004

onlyif mysql # aggregate syntax: 
query I rowsort label-6419
SELECT ALL COUNT( DISTINCT col0 ) - - 2 AS col0 FROM tab0
----
5

skipif mysql # not compatible
query I rowsort label-6419
SELECT ALL COUNT ( DISTINCT col0 ) - - 2 AS col0 FROM tab0
----
5

onlyif mysql # DIV for integer division: 
query I rowsort label-6420
SELECT col0 * col2 DIV - col1 FROM tab2
----
-20
-33
-64

skipif mysql # not compatible
query I rowsort label-6420
SELECT col0 * col2 / - col1 FROM tab2
----
-20
-33
-64

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6421
SELECT ALL - col2, - CAST( NULL AS SIGNED ) FROM tab1 WHERE NOT col2 BETWEEN - 69 + - + 50 * + CAST( NULL AS SIGNED ) + - - ( - - col1 ) AND NULL
----

skipif mysql # not compatible
query II rowsort label-6421
SELECT ALL - col2, - CAST ( NULL AS INTEGER ) FROM tab1 WHERE NOT col2 BETWEEN - 69 + - + 50 * + CAST ( NULL AS INTEGER ) + - - ( - - col1 ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6422
SELECT DISTINCT - COUNT( * ) - + MAX( - + 11 ) FROM tab1
----
8

skipif mysql # not compatible
query I rowsort label-6422
SELECT DISTINCT - COUNT ( * ) - + MAX ( - + 11 ) FROM tab1
----
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6423
SELECT DISTINCT COUNT( * ) * - - CAST( - 65 AS SIGNED ) * - - 76 * + 50 + + 51 AS col0 FROM tab0
----
-740949

skipif mysql # not compatible
query I rowsort label-6423
SELECT DISTINCT COUNT ( * ) * - - CAST ( - 65 AS INTEGER ) * - - 76 * + 50 + + 51 AS col0 FROM tab0
----
-740949

query I rowsort
SELECT 30 AS col2 FROM tab0 WHERE - col1 IS NOT NULL
----
30
30
30

onlyif mysql # DIV for integer division: 
query I rowsort label-6425
SELECT ALL - col0 DIV + 69 AS col2 FROM tab2
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-6425
SELECT ALL - col0 / + 69 AS col2 FROM tab2
----
-1
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6426
SELECT DISTINCT - + COUNT( * ) - + COUNT( * ) AS col1 FROM tab1 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-6426
SELECT DISTINCT - + COUNT ( * ) - + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-6

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE + 65 IS NULL
----

query I rowsort
SELECT + - 91 AS col1 FROM tab0 cor0
----
-91
-91
-91

query III rowsort
SELECT * FROM tab1 WHERE NOT - + col1 BETWEEN + col1 AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT col2 * + col0 * + + col2 AS col0 FROM tab1
----
295885
420784
470016

onlyif mysql # DIV for integer division: 
query I rowsort label-6431
SELECT ALL col0 DIV 76 FROM tab0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-6431
SELECT ALL col0 / 76 FROM tab0
----
0
1
1

onlyif mysql # DIV for integer division: 
query II rowsort label-6432
SELECT col1 AS col2, - 1 DIV + - ( + + 85 ) * + 28 FROM tab2
----
51
0
67
0
77
0

skipif mysql # not compatible
query II rowsort label-6432
SELECT col1 AS col2, - 1 / + - ( + + 85 ) * + 28 FROM tab2
----
51
0
67
0
77
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6433
SELECT ALL + SUM( ALL - + 93 ) FROM tab2
----
-279

skipif mysql # not compatible
query I rowsort label-6433
SELECT ALL + SUM ( ALL - + 93 ) FROM tab2
----
-279

query I rowsort
SELECT + + col0 FROM tab1 cor0 WHERE NOT + 61 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6435
SELECT DISTINCT - COUNT( col2 ) + - 31 DIV + 70 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-6435
SELECT DISTINCT - COUNT ( col2 ) + - 31 / + 70 FROM tab2 AS cor0
----
-3

query III rowsort
SELECT * FROM tab0 WHERE - col0 / col0 = - + 14
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL > - col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6438
SELECT ALL + 10 + - - 55 DIV - col1 col1 FROM tab1
----
-1
7
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6438
SELECT ALL + 10 + - - 55 / - col1 col1 FROM tab1
----
-1
7
9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6439
SELECT + 92 DIV - COUNT( * ) FROM tab0
----
-30

skipif mysql # not compatible
query I rowsort label-6439
SELECT + 92 / - COUNT ( * ) FROM tab0
----
-30

query III rowsort
SELECT * FROM tab0 WHERE + 95 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6441
SELECT DISTINCT + col2 * + col0 + + - 88 * - CAST( col2 AS SIGNED ), + 82 AS col2 FROM tab2 AS cor0
----
3082
82
6080
82
9454
82

skipif mysql # not compatible
query II rowsort label-6441
SELECT DISTINCT + col2 * + col0 + + - 88 * - CAST ( col2 AS INTEGER ), + 82 AS col2 FROM tab2 AS cor0
----
3082
82
6080
82
9454
82

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6442
SELECT + - COUNT( * ) DIV MAX( DISTINCT col2 ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6442
SELECT + - COUNT ( * ) / MAX ( DISTINCT col2 ) FROM tab0 AS cor0
----
0

query II rowsort
SELECT col2 * - col0, col2 AS col0 FROM tab1 AS cor0
----
-4896
96
-5015
59
-6188
68

onlyif mysql # aggregate syntax: 
query I rowsort label-6444
SELECT ALL + + COUNT( + - 10 ) + - + 74 AS col1 FROM tab0 cor0
----
-71

skipif mysql # not compatible
query I rowsort label-6444
SELECT ALL + + COUNT ( + - 10 ) + - + 74 AS col1 FROM tab0 cor0
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-6445
SELECT ALL - COUNT( * ) + + COUNT( ALL + + 77 ) AS col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6445
SELECT ALL - COUNT ( * ) + + COUNT ( ALL + + 77 ) AS col0 FROM tab2 AS cor0
----
0

query I rowsort
SELECT ALL + 23 - - - col1 + 56 * - + 49 * - col0 AS col0 FROM tab1 AS cor0
----
139953
233258
249680

query II rowsort
SELECT DISTINCT col0, 7 + col2 AS col2 FROM tab0
----
15
54
87
17
97
106

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6448
SELECT 65 + - - ( - - 38 ) DIV + MAX( col2 ) FROM tab0
----
65

skipif mysql # not compatible
query I rowsort label-6448
SELECT 65 + - - ( - - 38 ) / + MAX ( col2 ) FROM tab0
----
65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6449
SELECT - CAST( NULL AS SIGNED ) + + - CAST( - col1 AS SIGNED ) + + 66 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6449
SELECT - CAST ( NULL AS INTEGER ) + + - CAST ( - col1 AS INTEGER ) + + 66 FROM tab1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + + col2 ) + + 46 - col0 col2 FROM tab1
----
20
23
91

onlyif mysql # aggregate syntax: 
query I rowsort label-6451
SELECT COUNT( ALL + - 89 ) + COUNT( * ) AS col0 FROM tab0
----
6

skipif mysql # not compatible
query I rowsort label-6451
SELECT COUNT ( ALL + - 89 ) + COUNT ( * ) AS col0 FROM tab0
----
6

query I rowsort
SELECT DISTINCT - 5 + - 14 AS col2 FROM tab2
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-6453
SELECT ALL + COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-6453
SELECT ALL + COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
0

query I rowsort
SELECT 38 AS col1 FROM tab2 AS cor0 WHERE NOT 93 <= - + col1
----
38
38
38

query I rowsort
SELECT DISTINCT col0 * col2 - + col1 FROM tab1
----
4882
5010
6141

query III rowsort
SELECT * FROM tab1 WHERE NULL >= 46
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6457
SELECT ALL - CAST( NULL AS SIGNED ) - col2 / 45 FROM tab0 WHERE NOT col0 <= - 18
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6457
SELECT ALL - CAST ( NULL AS INTEGER ) - col2 / 45 FROM tab0 WHERE NOT col0 <= - 18
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL = 47
----

query I rowsort
SELECT col1 - + col2 AS col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
28
37
9

query I rowsort
SELECT ALL - ( - 66 ) + col1 FROM tab1
----
113
71
80

onlyif mysql # DIV for integer division: 
query I rowsort label-6461
SELECT 8 DIV 35 + col1 AS col0 FROM tab2
----
51
67
77

skipif mysql # not compatible
query I rowsort label-6461
SELECT 8 / 35 + col1 AS col0 FROM tab2
----
51
67
77

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( col0 ) NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT - ( + ( + col2 ) ) + col0 AS col0 FROM tab1
----
-45
23
26

query I rowsort
SELECT - col2 / 26 AS col1 FROM tab2 WHERE NULL <= NULL
----

query I rowsort
SELECT ALL + 2 * + col2 + - col2 AS col2 FROM tab1
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-6466
SELECT ALL MAX( DISTINCT + col1 ) * MIN( ALL 31 + col2 ) AS col2 FROM tab0
----
3321

skipif mysql # not compatible
query I rowsort label-6466
SELECT ALL MAX ( DISTINCT + col1 ) * MIN ( ALL 31 + col2 ) AS col2 FROM tab0
----
3321

query I rowsort
SELECT DISTINCT + col2 FROM tab0 WHERE ( col0 ) * + col0 IS NULL
----

query I rowsort
SELECT DISTINCT + col1 FROM tab2 WHERE - col2 IS NOT NULL
----
51
67
77

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL <> ( + 31 / - 72 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6470
SELECT ALL - col2 + - 4 DIV col1 AS col0 FROM tab2
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-6470
SELECT ALL - col2 + - 4 / col1 AS col0 FROM tab2
----
-23
-40
-58

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6471
SELECT ALL * FROM tab2 AS cor0 WHERE + CAST( 77 AS SIGNED ) >= NULL
----

skipif mysql # not compatible
query III rowsort label-6471
SELECT ALL * FROM tab2 AS cor0 WHERE + CAST ( 77 AS INTEGER ) >= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6472
SELECT ALL 36 DIV col0 FROM tab0 cor0
----
0
0
2

skipif mysql # not compatible
query I rowsort label-6472
SELECT ALL 36 / col0 FROM tab0 cor0
----
0
0
2

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col0 NOT BETWEEN 74 AND NULL
----

query I rowsort
SELECT DISTINCT col1 AS col2 FROM tab0 WHERE NULL <= NULL
----

query I rowsort
SELECT DISTINCT - - 99 + 28 AS col2 FROM tab2 AS cor0
----
127

onlyif mysql # aggregate syntax: 
query I rowsort label-6476
SELECT ALL COUNT( ALL 54 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-6476
SELECT ALL COUNT ( ALL 54 ) FROM tab0 AS cor0
----
3

query I rowsort
SELECT ALL - col2 + 48 AS col2 FROM tab2 AS cor0
----
-10
25
8

onlyif mysql # DIV for integer division: 
query I rowsort label-6478
SELECT DISTINCT col0 * + 73 + - ( col1 + + 23 DIV - col0 ) FROM tab2 cor0
----
3307
4595
5408

skipif mysql # not compatible
query I rowsort label-6478
SELECT DISTINCT col0 * + 73 + - ( col1 + + 23 / - col0 ) FROM tab2 cor0
----
3307
4595
5408

onlyif mysql # DIV for integer division: 
query I rowsort label-6479
SELECT + 28 DIV 67 AS col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6479
SELECT + 28 / 67 AS col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - 99 + 84 AS col0 FROM tab1 AS cor0
----
-15
-15
-15

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + col2 NOT BETWEEN col1 AND NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col2 = - 31
----

query I rowsort
SELECT ALL + + col1 + + 43 FROM tab1 AS cor0
----
48
57
90

query I rowsort
SELECT ALL - col1 - + ( - col1 ) * col1 AS col2 FROM tab2 AS cor0
----
2550
4422
5852

onlyif mysql # aggregate syntax: 
query I rowsort label-6485
SELECT - COUNT( 71 ) AS col1 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-6485
SELECT - COUNT ( 71 ) AS col1 FROM tab1 AS cor0
----
-3

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 40 IS NULL
----

query I rowsort
SELECT ALL - + 74 - col0 AS col2 FROM tab2 AS cor0
----
-120
-138
-149

query I rowsort
SELECT ALL col0 - - - 55 FROM tab2
----
-9
20
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6489
SELECT + col1 + - col0 FROM tab2 WHERE CAST( col1 AS SIGNED ) NOT IN ( col1 )
----

skipif mysql # not compatible
query I rowsort label-6489
SELECT + col1 + - col0 FROM tab2 WHERE CAST ( col1 AS INTEGER ) NOT IN ( col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col2 BETWEEN - col0 AND - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 70 + 52 col1 FROM tab0 WHERE NOT col1 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + 59 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6493
SELECT ALL * FROM tab0 WHERE NOT - CAST( NULL AS SIGNED ) < NULL
----

skipif mysql # not compatible
query III rowsort label-6493
SELECT ALL * FROM tab0 WHERE NOT - CAST ( NULL AS INTEGER ) < NULL
----

query I rowsort
SELECT ALL - 58 AS col0 FROM tab2 WHERE ( NULL ) IN ( - col1 )
----

query I rowsort
SELECT DISTINCT ( col2 ) + - 28 FROM tab0 cor0 WHERE NOT NULL <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6496
SELECT DISTINCT - CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0 WHERE NOT ( + 81 - 82 ) < NULL
----

skipif mysql # not compatible
query I rowsort label-6496
SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0 WHERE NOT ( + 81 - 82 ) < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6497
SELECT + COUNT( * ) * + - MIN( - col1 ) AS col0 FROM tab2 AS cor0
----
231

skipif mysql # not compatible
query I rowsort label-6497
SELECT + COUNT ( * ) * + - MIN ( - col1 ) AS col0 FROM tab2 AS cor0
----
231

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( - + 28 ) col0 FROM tab2 AS cor0
----
-28
-28
-28

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 8 * ( - 86 * + ( + ( - col1 ) ) ) col1 FROM tab1 AS cor0 WHERE - 13 IS NOT NULL
----
32336
3440
9632

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6500
SELECT + - 76 DIV - - COUNT( - 39 ) + + COUNT( * ) * - 57 FROM tab2 AS cor0
----
-196

skipif mysql # not compatible
query I rowsort label-6500
SELECT + - 76 / - - COUNT ( - 39 ) + + COUNT ( * ) * - 57 FROM tab2 AS cor0
----
-196

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 95 * col2 BETWEEN ( NULL ) AND - col2 * + 76
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-6502
SELECT - ( + - COUNT( * ) ) col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6502
SELECT - ( + - COUNT ( * ) ) col0 FROM tab2 AS cor0
----
3

query I rowsort
SELECT ALL + - 65 * - col0 AS col2 FROM tab1 AS cor0
----
3315
5525
5915

onlyif mysql # DIV for integer division: 
query I rowsort label-6504
SELECT DISTINCT - col1 DIV - 86 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6504
SELECT DISTINCT - col1 / - 86 FROM tab0 AS cor0
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NULL ) <> + ( + 18 )
----

query I rowsort
SELECT DISTINCT + 41 * - col1 AS col0 FROM tab0 AS cor0
----
-3321
-41
-861

query I rowsort
SELECT ALL - col0 + col0 AS col0 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN + 15 AND + ( + col2 ) * - col1
----

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT + col1 * + 61 + col0 * + col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-6509
SELECT + MIN( DISTINCT + + col0 ) FROM tab1 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-6509
SELECT + MIN ( DISTINCT + + col0 ) FROM tab1 AS cor0
----
51

query I rowsort
SELECT DISTINCT col2 + col2 AS col1 FROM tab0 WHERE NOT - ( - col2 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6511
SELECT DISTINCT + 77 DIV COUNT( * ) col0 FROM tab1
----
25

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6511
SELECT DISTINCT + 77 / COUNT ( * ) col0 FROM tab1
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-6512
SELECT COUNT( * ) + - + MIN( ALL - col0 ) FROM tab1
----
94

skipif mysql # not compatible
query I rowsort label-6512
SELECT COUNT ( * ) + - + MIN ( ALL - col0 ) FROM tab1
----
94

query I rowsort
SELECT + col1 + + col2 + - col2 * - + 92 FROM tab0
----
4452
9208
951

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6514
SELECT DISTINCT * FROM tab0 WHERE + - CAST( 20 AS SIGNED ) BETWEEN NULL AND col1
----

skipif mysql # not compatible
query III rowsort label-6514
SELECT DISTINCT * FROM tab0 WHERE + - CAST ( 20 AS INTEGER ) BETWEEN NULL AND col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6515
SELECT - + 95 + - ( - 10 ) + - + col1 DIV 35 FROM tab1 AS cor0
----
-85
-85
-86

skipif mysql # not compatible
query I rowsort label-6515
SELECT - + 95 + - ( - 10 ) + - + col1 / 35 FROM tab1 AS cor0
----
-85
-85
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-6516
SELECT DISTINCT - 99 * - COUNT( * ) + COUNT( * ) + + SUM( DISTINCT 31 ) FROM tab2 AS cor0
----
331

skipif mysql # not compatible
query I rowsort label-6516
SELECT DISTINCT - 99 * - COUNT ( * ) + COUNT ( * ) + + SUM ( DISTINCT 31 ) FROM tab2 AS cor0
----
331

query I rowsort
SELECT ALL + col2 * col1 AS col2 FROM tab1 AS cor0 WHERE NOT col1 + + col2 <> col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6518
SELECT + + CAST( NULL AS SIGNED ) + - + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6518
SELECT + + CAST ( NULL AS INTEGER ) + - + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6519
SELECT * FROM tab0 AS cor0 WHERE + col2 * - CAST( 31 AS SIGNED ) <= ( NULL )
----

skipif mysql # not compatible
query III rowsort label-6519
SELECT * FROM tab0 AS cor0 WHERE + col2 * - CAST ( 31 AS INTEGER ) <= ( NULL )
----

query I rowsort
SELECT + 66 * col0 AS col0 FROM tab1 AS cor0 WHERE + col1 * - + 78 + - 98 - col1 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6521
SELECT DISTINCT + COUNT( * ) + CAST( + 76 AS SIGNED ) + + 13 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
98

skipif mysql # not compatible
query I rowsort label-6521
SELECT DISTINCT + COUNT ( * ) + CAST ( + 76 AS INTEGER ) + + 13 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
98

query I rowsort
SELECT ALL + col0 - + 66 AS col1 FROM tab1
----
-15
19
25

onlyif mysql # aggregate syntax: 
query I rowsort label-6523
SELECT ALL COUNT( DISTINCT - col1 ) AS col0 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-6523
SELECT ALL COUNT ( DISTINCT - col1 ) AS col0 FROM tab0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6524
SELECT * FROM tab0 WHERE 96 NOT BETWEEN ( + col0 ) AND - col1 + - 91 * 2 OR CAST( 43 AS SIGNED ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-6524
SELECT * FROM tab0 WHERE 96 NOT BETWEEN ( + col0 ) AND - col1 + - 91 * 2 OR CAST ( 43 AS INTEGER ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-6525
SELECT + SUM( ALL + col2 ) - + 85 col0 FROM tab2 cor0
----
36

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6525
SELECT + SUM ( ALL + col2 ) - + 85 col0 FROM tab2 cor0
----
36

query II rowsort
SELECT ALL - - 78 + + 69 + - - col1, col1 FROM tab0 AS cor0
----
148
1
168
21
228
81

query I rowsort
SELECT + col0 AS col0 FROM tab2 AS cor0 WHERE 78 NOT BETWEEN col2 + 12 * 79 AND - col1
----
46
64
75

query I rowsort
SELECT - col1 - + - col1 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6529
SELECT COUNT( * ) + - 39 AS col2 FROM tab1 AS cor0
----
-36

skipif mysql # not compatible
query I rowsort label-6529
SELECT COUNT ( * ) + - 39 AS col2 FROM tab1 AS cor0
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-6530
SELECT COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE + col0 * - + col1 IN ( + 32 )
----
0

skipif mysql # not compatible
query I rowsort label-6530
SELECT COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE + col0 * - + col1 IN ( + 32 )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6531
SELECT - CAST( + + COUNT( * ) AS SIGNED ) AS col2 FROM tab2, tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-6531
SELECT - CAST ( + + COUNT ( * ) AS INTEGER ) AS col2 FROM tab2, tab2 AS cor0
----
-9

query I rowsort
SELECT col1 AS col2 FROM tab2 WHERE ( col0 * col0 + col0 + + - 55 ) IS NOT NULL
----
51
67
77

query III rowsort
SELECT ALL * FROM tab2 WHERE ( col0 + - col2 + + 53 ) IS NULL
----

query II rowsort
SELECT + ( col2 ), + 79 FROM tab1
----
59
79
68
79
96
79

onlyif mysql # aggregate syntax: 
query II rowsort label-6535
SELECT ALL COUNT( * ) AS col0, - MAX( ALL - 26 ) AS col1 FROM tab2
----
3
26

skipif mysql # not compatible
query II rowsort label-6535
SELECT ALL COUNT ( * ) AS col0, - MAX ( ALL - 26 ) AS col1 FROM tab2
----
3
26

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( - 54 * - col2 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-6537
SELECT DISTINCT ( COUNT( * ) ) FROM tab1 WHERE + + 86 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-6537
SELECT DISTINCT ( COUNT ( * ) ) FROM tab1 WHERE + + 86 IS NULL
----
0

query I rowsort
SELECT - col0 * - col1 * + col0 AS col1 FROM tab2
----
107916
315392
376875

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6539
SELECT + 76 * - + CAST( 22 AS SIGNED ) FROM tab2, tab1 AS cor0
----
9 values hashing to 9835d29d3556d752a2466eda0dbe85ff

skipif mysql # not compatible
query I rowsort label-6539
SELECT + 76 * - + CAST ( 22 AS INTEGER ) FROM tab2, tab1 AS cor0
----
9 values hashing to 9835d29d3556d752a2466eda0dbe85ff

query III rowsort
SELECT * FROM tab1 WHERE NOT + col2 + - ( + + col1 ) = - col1 * + col2 + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6541
SELECT ALL * FROM tab2 AS cor0 WHERE ( col1 ) NOT BETWEEN ( + - CAST( NULL AS DECIMAL ) * col0 + 60 + 77 ) AND ( + col0 )
----
46
51
23
64
77
40

skipif mysql # not compatible
query III rowsort label-6541
SELECT ALL * FROM tab2 AS cor0 WHERE ( col1 ) NOT BETWEEN ( + - CAST ( NULL AS REAL ) * col0 + 60 + 77 ) AND ( + col0 )
----
46
51
23
64
77
40

query I rowsort
SELECT + col1 * 33 * - col2 * + col2 AS col0 FROM tab0 AS cor0
----
-323433
-5904657
-69300

query I rowsort
SELECT 48 AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
48
48
48

query I rowsort
SELECT - col2 AS col1 FROM tab1 WHERE NOT ( - col0 ) IS NULL
----
-59
-68
-96

query I rowsort
SELECT col2 FROM tab1 AS cor0 WHERE NOT col1 NOT IN ( + - col1 + + 63, ( - col0 ) * + 45 * col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - 11 IN ( - col2 )
----

query I rowsort
SELECT DISTINCT + col1 + - 86 AS col1 FROM tab1 AS cor0
----
-39
-72
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-6548
SELECT ALL COUNT( * ) * ( COUNT( * ) ) FROM tab1 cor0
----
9

skipif mysql # not compatible
query I rowsort label-6548
SELECT ALL COUNT ( * ) * ( COUNT ( * ) ) FROM tab1 cor0
----
9

query I rowsort
SELECT - - col0 * + col0 + - 31 AS col1 FROM tab0 cor0
----
194
7538
9378

onlyif mysql # aggregate syntax: 
query I rowsort label-6550
SELECT + - COUNT( * ) + + 30 * SUM( + col1 ) col2 FROM tab0 AS cor0
----
3087

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6550
SELECT + - COUNT ( * ) + + 30 * SUM ( + col1 ) col2 FROM tab0 AS cor0
----
3087

query I rowsort
SELECT - col1 * - + 72 FROM tab1
----
1008
3384
360

onlyif mysql # DIV for integer division: 
query I rowsort label-6552
SELECT + 57 DIV + col0 FROM tab0
----
0
0
3

skipif mysql # not compatible
query I rowsort label-6552
SELECT + 57 / + col0 FROM tab0
----
0
0
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6553
SELECT + 75 DIV - + COUNT( * ) AS col2 FROM tab2
----
-25

skipif mysql # not compatible
query I rowsort label-6553
SELECT + 75 / - + COUNT ( * ) AS col2 FROM tab2
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-6554
SELECT ALL + + COUNT( * ) * + 44 FROM tab0 WHERE NOT + col1 IS NULL
----
132

skipif mysql # not compatible
query I rowsort label-6554
SELECT ALL + + COUNT ( * ) * + 44 FROM tab0 WHERE NOT + col1 IS NULL
----
132

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 15 * - + col1 col1 FROM tab2
----
-1005
-1155
-765

query I rowsort
SELECT col0 FROM tab1 WHERE ( + col1 - - - col1 ) BETWEEN col0 AND + + col1
----

query III rowsort
SELECT * FROM tab0 WHERE + - col1 IN ( - + 86 * + - col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6558
SELECT ALL + col2 * + col1 + + col0 * - CAST( NULL AS SIGNED ) + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6558
SELECT ALL + col2 * + col1 + + col0 * - CAST ( NULL AS INTEGER ) + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + - 65 - + + col1 + - - 25 * + 33 AS col1 FROM tab2 AS cor0
----
683
693
709

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6560
SELECT ALL - CAST( + COUNT( * ) AS SIGNED ) * 44 FROM tab0 WHERE ( NULL ) >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-6560
SELECT ALL - CAST ( + COUNT ( * ) AS INTEGER ) * 44 FROM tab0 WHERE ( NULL ) >= NULL
----
0

query III rowsort
SELECT * FROM tab0 WHERE NULL BETWEEN + - col0 AND col0
----

query I rowsort
SELECT ALL 15 + - col2 AS col0 FROM tab2
----
-25
-43
-8

query III rowsort
SELECT + ( col0 ) * + 93 * col0 AS col0, 50, - 16 AS col1 FROM tab0 AS cor0
----
9 values hashing to 07191fa923461ae54094489d0b9a008c

query I rowsort
SELECT ALL ( + 35 ) FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT + col2, - col2 AS col1 FROM tab1 cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6566
SELECT ALL + + col0 DIV - - col2 + + 4 AS col2 FROM tab1 AS cor0
----
4
5
5

skipif mysql # not compatible
query I rowsort label-6566
SELECT ALL + + col0 / - - col2 + + 4 AS col2 FROM tab1 AS cor0
----
4
5
5

query I rowsort
SELECT ALL 64 + col2 FROM tab0 AS cor0
----
111
163
74

onlyif mysql # DIV for integer division: 
query I rowsort label-6568
SELECT + col2 DIV 74 FROM tab0 cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-6568
SELECT + col2 / 74 FROM tab0 cor0
----
0
0
1

query I rowsort
SELECT + + col0 * + + col0 FROM tab2 cor0
----
2116
4096
5625

query I rowsort
SELECT + ( + col2 ) FROM tab0 AS cor0 WHERE NOT col0 IS NOT NULL
----

query I rowsort
SELECT + 77 * + 4 + + + col2 * - 12 FROM tab2 AS cor0
----
-172
-388
32

onlyif mysql # aggregate syntax: 
query I rowsort label-6572
SELECT + SUM( DISTINCT + col0 ) AS col1 FROM tab0 AS cor0
----
199

skipif mysql # not compatible
query I rowsort label-6572
SELECT + SUM ( DISTINCT + col0 ) AS col1 FROM tab0 AS cor0
----
199

onlyif mysql # aggregate syntax: 
query I rowsort label-6573
SELECT - ( + - MAX( + - 7 ) ) AS col0 FROM tab0
----
-7

skipif mysql # not compatible
query I rowsort label-6573
SELECT - ( + - MAX ( + - 7 ) ) AS col0 FROM tab0
----
-7

query I rowsort
SELECT ALL + 76 * - col2 FROM tab2
----
-1748
-3040
-4408

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6575
SELECT - 69 * - CAST( - ( + COUNT( * ) ) AS SIGNED ) FROM tab1
----
-207

skipif mysql # not compatible
query I rowsort label-6575
SELECT - 69 * - CAST ( - ( + COUNT ( * ) ) AS INTEGER ) FROM tab1
----
-207

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL BETWEEN + ( + col0 ) AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6577
SELECT CAST( + AVG ( ALL - ( - col1 ) ) AS SIGNED ) AS col1 FROM tab1
----
22

skipif mysql # not compatible
query I rowsort label-6577
SELECT CAST ( + AVG ( ALL - ( - col1 ) ) AS INTEGER ) AS col1 FROM tab1
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-6578
SELECT + COUNT( * ) * + + 43 FROM tab0 AS cor0
----
129

skipif mysql # not compatible
query I rowsort label-6578
SELECT + COUNT ( * ) * + + 43 FROM tab0 AS cor0
----
129

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6579
SELECT + + CAST( + COUNT( * ) AS SIGNED ) AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-6579
SELECT + + CAST ( + COUNT ( * ) AS INTEGER ) AS col2 FROM tab1 AS cor0
----
3

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 55 > NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6581
SELECT - - 36 DIV - COUNT( * ) col0, 53 * COUNT( * ) FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
-4
477

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6581
SELECT - - 36 / - COUNT ( * ) col0, 53 * COUNT ( * ) FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
-4
477

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 50 col0, col1 col2 FROM tab2
----
50
51
50
67
50
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2 col2, - col1 + + col1 FROM tab2
----
23
0
40
0
58
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6584
SELECT ALL + COUNT( * ) FROM tab0 AS cor0 WHERE NOT NULL >= ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-6584
SELECT ALL + COUNT ( * ) FROM tab0 AS cor0 WHERE NOT NULL >= ( NULL )
----
0

query I rowsort
SELECT ALL + + 60 FROM tab1 AS cor0 WHERE NULL <> - col2
----

query I rowsort
SELECT ALL - + ( - col0 ) * 4 + col1 + col0 AS col1 FROM tab1 AS cor0
----
269
430
502

query I rowsort
SELECT - + 8 AS col0 FROM tab0 cor0
----
-8
-8
-8

query II rowsort
SELECT ALL ( + 54 ), col1 FROM tab1 AS cor0
----
54
14
54
47
54
5

query I rowsort
SELECT col2 FROM tab1 WHERE ( NOT NULL IS NOT NULL )
----
59
68
96

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6590
SELECT + CAST( NULL AS SIGNED ) + col2 AS col0, col1 * + + col1 * + col1 AS col0 FROM tab0
----
NULL
1
NULL
531441
NULL
9261

skipif mysql # not compatible
query II rowsort label-6590
SELECT + CAST ( NULL AS INTEGER ) + col2 AS col0, col1 * + + col1 * + col1 AS col0 FROM tab0
----
NULL
1
NULL
531441
NULL
9261

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 40 + + 94 col0, col1 AS col2 FROM tab2
----
134
51
134
67
134
77

query I rowsort
SELECT ALL - 49 * + 55 * - col2 FROM tab1
----
159005
183260
258720

query I rowsort
SELECT DISTINCT col1 * col0 * col0 FROM tab0
----
158949
18225
9409

query I rowsort
SELECT + 20 * + - 57 + + ( + col0 ) + + - ( + ( - col1 ) ) * - 51 AS col2 FROM tab0 AS cor0
----
-1094
-2124
-5256

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col1 + - col0 * - - col2 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 83 - 21 AS col1, + col1 col2 FROM tab2 AS cor0
----
-104
51
-104
67
-104
77

query I rowsort
SELECT ALL 7 * - col1 FROM tab1
----
-329
-35
-98

query II rowsort
SELECT ALL + + ( + + 62 ) AS col1, - 52 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
18 values hashing to 79585903a03937954c8217e90e233cf6

onlyif mysql # DIV for integer division: 
query II rowsort label-6599
SELECT 42 - 84 DIV - - 70, + 94 AS col1 FROM tab0
----
41
94
41
94
41
94

skipif mysql # not compatible
query II rowsort label-6599
SELECT 42 - 84 / - - 70, + 94 AS col1 FROM tab0
----
41
94
41
94
41
94

onlyif mysql # aggregate syntax: 
query I rowsort label-6600
SELECT ALL - ( - SUM( DISTINCT - + col0 ) ) FROM tab2 AS cor0
----
-185

skipif mysql # not compatible
query I rowsort label-6600
SELECT ALL - ( - SUM ( DISTINCT - + col0 ) ) FROM tab2 AS cor0
----
-185

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6601
SELECT DISTINCT - + CAST( - - col2 AS SIGNED ) FROM tab2 cor0
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-6601
SELECT DISTINCT - + CAST ( - - col2 AS INTEGER ) FROM tab2 cor0
----
-23
-40
-58

query I rowsort
SELECT ALL - - 35 * + col0 * - + col1 + - col2 FROM tab1 AS cor0
----
-14934
-149763
-25086

query I rowsort
SELECT + - 29 * + 53 FROM tab0 cor0
----
-1537
-1537
-1537

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL = ( col0 + - col2 * + - col1 * - col2 * + + col0 )
----

query I rowsort
SELECT ALL + 48 * 9 AS col1 FROM tab2
----
432
432
432

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6606
SELECT ALL CAST( NULL AS SIGNED ) * + - col2 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6606
SELECT ALL CAST ( NULL AS INTEGER ) * + - col2 AS col1 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6607
SELECT DISTINCT col0 DIV 93 * + col2 AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-6607
SELECT DISTINCT col0 / 93 * + col2 AS col1 FROM tab1
----
0

query I rowsort
SELECT DISTINCT - col0 * + 51 AS col2 FROM tab2
----
-2346
-3264
-3825

query III rowsort
SELECT ALL * FROM tab1 WHERE 53 + + + 25 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL col2 * - 29 FROM tab1
----
-1711
-1972
-2784

onlyif mysql # aggregate syntax: 
query II rowsort label-6611
SELECT - COUNT( * ) * + COUNT( * ) AS col0, - ( + 72 ) AS col0 FROM tab1
----
-9
-72

skipif mysql # not compatible
query II rowsort label-6611
SELECT - COUNT ( * ) * + COUNT ( * ) AS col0, - ( + 72 ) AS col0 FROM tab1
----
-9
-72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6612
SELECT DISTINCT - ( - MIN( 50 ) ) AS col2 FROM tab0 WHERE + col2 + + CAST( - col0 AS SIGNED ) NOT BETWEEN - col2 * - - 47 + - 76 - col2 * - col0 AND + + 0 + - 0
----
50

skipif mysql # not compatible
query I rowsort label-6612
SELECT DISTINCT - ( - MIN ( 50 ) ) AS col2 FROM tab0 WHERE + col2 + + CAST ( - col0 AS INTEGER ) NOT BETWEEN - col2 * - - 47 + - 76 - col2 * - col0 AND + + 0 + - 0
----
50

onlyif mysql # DIV for integer division: 
query I rowsort label-6613
SELECT ALL - col0 DIV 94 AS col1 FROM tab0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-6613
SELECT ALL - col0 / 94 AS col1 FROM tab0
----
-1
0
0

query I rowsort
SELECT ALL - 21 * ( - col0 ) FROM tab1
----
1071
1785
1911

query II rowsort
SELECT ( - - 29 ), col0 AS col2 FROM tab2
----
29
46
29
64
29
75

query I rowsort
SELECT - + 13 + + col2 - col1 * col1 AS col2 FROM tab1 WHERE NOT - 71 IS NULL
----
-113
-2154
21

query I rowsort
SELECT ALL + 66 * - col2 + + + col1 AS col1 FROM tab1 AS cor0 WHERE NOT col0 IS NULL
----
-3889
-4441
-6322

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( + 66 ) col0 FROM tab1 AS cor0
----
66
66
66

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL IN ( 29 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6620
SELECT DISTINCT COUNT( - - col0 ) AS col1 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-6620
SELECT DISTINCT COUNT ( - - col0 ) AS col1 FROM tab0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6621
SELECT - 56, + CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE + 68 IS NOT NULL
----
18 values hashing to c5d3842be3a249f07fb900d396573aaa

skipif mysql # not compatible
query II rowsort label-6621
SELECT - 56, + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE + 68 IS NOT NULL
----
18 values hashing to c5d3842be3a249f07fb900d396573aaa

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL <= ( col2 + - 43 + - col1 * + col2 + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6623
SELECT DISTINCT SUM( ALL + 29 ) * - - 42 + - 36 + - + 18 FROM tab1 AS cor0
----
3600

skipif mysql # not compatible
query I rowsort label-6623
SELECT DISTINCT SUM ( ALL + 29 ) * - - 42 + - 36 + - + 18 FROM tab1 AS cor0
----
3600

query I rowsort
SELECT + 12 AS col1 FROM tab2 AS cor0 WHERE - col1 * ( + - 68 ) > - - col1
----
12
12
12

query II rowsort
SELECT col1 AS col1, col2 - + col1 AS col1 FROM tab2 AS cor0
----
51
-28
67
-9
77
-37

query I rowsort
SELECT ALL - ( + + 0 ) AS col2 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6627
SELECT DISTINCT - 32 * + MAX( + 77 ) AS col1 FROM tab0
----
-2464

skipif mysql # not compatible
query I rowsort label-6627
SELECT DISTINCT - 32 * + MAX ( + 77 ) AS col1 FROM tab0
----
-2464

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL >= - 1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 17 col2, - 53 FROM tab1
----
-17
-53

query I rowsort
SELECT + 96 * ( col1 ) + + - 36 * - 44 - + 22 * col2 AS col0 FROM tab0 cor0
----
-498
3380
8326

query I rowsort
SELECT - col1 - + ( - col2 ) AS col0 FROM tab0 AS cor0
----
-11
-34
98

onlyif mysql # aggregate syntax: 
query I rowsort label-6632
SELECT DISTINCT - COUNT( * ) * - - 48 + - 47 AS col1 FROM tab2 AS cor0
----
-191

skipif mysql # not compatible
query I rowsort label-6632
SELECT DISTINCT - COUNT ( * ) * - - 48 + - 47 AS col1 FROM tab2 AS cor0
----
-191

onlyif mysql # aggregate syntax: 
query I rowsort label-6633
SELECT + COUNT( * ) * + + COUNT( DISTINCT - col2 ) + - MIN( - 3 ) FROM tab0 AS cor0
----
12

skipif mysql # not compatible
query I rowsort label-6633
SELECT + COUNT ( * ) * + + COUNT ( DISTINCT - col2 ) + - MIN ( - 3 ) FROM tab0 AS cor0
----
12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6634
SELECT ALL CAST( + - col2 AS SIGNED ) + + - 0 AS col1 FROM tab2 WHERE - + col0 IS NULL
----

skipif mysql # not compatible
query I rowsort label-6634
SELECT ALL CAST ( + - col2 AS INTEGER ) + + - 0 AS col1 FROM tab2 WHERE - + col0 IS NULL
----

query I rowsort
SELECT 42 * - col0 * + col0 + - - col1 + - 2 + ( + - col0 ) * + + 6 + + - col2 AS col0 FROM tab1 AS cor0
----
-109632
-304016
-348371

onlyif mysql # DIV for integer division: 
query I rowsort label-6636
SELECT - + col1 DIV - 52 FROM tab0 cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-6636
SELECT - + col1 / - 52 FROM tab0 cor0
----
0
0
1

query I rowsort
SELECT - ( + 10 ) * col2 * - col2 AS col0 FROM tab1 cor0
----
34810
46240
92160

onlyif mysql # DIV for integer division: 
query II rowsort label-6638
SELECT - - col1 DIV + 90, + col1 AS col1 FROM tab0 AS cor0
----
0
1
0
21
0
81

skipif mysql # not compatible
query II rowsort label-6638
SELECT - - col1 / + 90, + col1 AS col1 FROM tab0 AS cor0
----
0
1
0
21
0
81

onlyif mysql # aggregate syntax: 
query I rowsort label-6639
SELECT + 18 * - - MAX( ALL + 77 ) AS col2 FROM tab2 AS cor0
----
1386

skipif mysql # not compatible
query I rowsort label-6639
SELECT + 18 * - - MAX ( ALL + 77 ) AS col2 FROM tab2 AS cor0
----
1386

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( + col1 ) col1 FROM tab0
----
-1
-21
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-6641
SELECT + + COUNT( * ) FROM tab0 WHERE NOT + 70 NOT IN ( - col1, col1, + 52, + col2 + - + col0 )
----
0

skipif mysql # not compatible
query I rowsort label-6641
SELECT + + COUNT ( * ) FROM tab0 WHERE NOT + 70 NOT IN ( - col1, col1, + 52, + col2 + - + col0 )
----
0

query I rowsort
SELECT ALL - - col0 FROM tab1 WHERE 66 + + + col2 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6643
SELECT ALL MAX( DISTINCT + col1 ) AS col2 FROM tab0
----
81

skipif mysql # not compatible
query I rowsort label-6643
SELECT ALL MAX ( DISTINCT + col1 ) AS col2 FROM tab0
----
81

query II rowsort
SELECT DISTINCT + col1, + col2 FROM tab1
----
14
96
47
68
5
59

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-6645
SELECT ALL 57 AS col0, col1 + + + CAST( NULL AS DECIMAL ) + - 5 FROM tab1
----
57
NULL
57
NULL
57
NULL

skipif mysql # not compatible
query II rowsort label-6645
SELECT ALL 57 AS col0, col1 + + + CAST ( NULL AS REAL ) + - 5 FROM tab1
----
57
NULL
57
NULL
57
NULL

query I rowsort
SELECT 49 * - col1 * - + col0 AS col2 FROM tab0
----
4753
59535
89523

onlyif mysql # aggregate syntax: 
query I rowsort label-6647
SELECT + + 41 + - COUNT( * ) col2 FROM tab1 AS cor0
----
38

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6647
SELECT + + 41 + - COUNT ( * ) col2 FROM tab1 AS cor0
----
38

query I rowsort
SELECT ( - 84 ) AS col0 FROM tab2 AS cor0 WHERE NOT - col1 / + col0 + col2 * 2 / + 41 < NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6649
SELECT ALL 8 DIV 42 * + 59 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6649
SELECT ALL 8 / 42 * + 59 FROM tab1
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - + 31 * + col0 IS NULL
----

query I rowsort
SELECT ALL + 9 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 03b93b53107e36cf7d524e48c509b17b

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 29 * + - col2 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6653
SELECT + MAX( - 71 ) AS col0 FROM tab0 AS cor0
----
-71

skipif mysql # not compatible
query I rowsort label-6653
SELECT + MAX ( - 71 ) AS col0 FROM tab0 AS cor0
----
-71

query I rowsort
SELECT DISTINCT - - col0 + + + col2 * 21 AS col0 FROM tab2 AS cor0
----
1293
529
904

query I rowsort
SELECT DISTINCT - + 14 AS col0 FROM tab0 AS cor0
----
-14

query I rowsort
SELECT ALL - 48 + + col2 * + + col1 + col2 FROM tab1 cor0
----
1392
306
3216

query I rowsort
SELECT DISTINCT + col1 * - col0 - + col0 FROM tab0 AS cor0 WHERE NOT col1 - - 98 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6658
SELECT + col2 + - - col0 DIV - col2 AS col1 FROM tab0 AS cor0
----
2
47
99

skipif mysql # not compatible
query I rowsort label-6658
SELECT + col2 + - - col0 / - col2 AS col1 FROM tab0 AS cor0
----
2
47
99

query III rowsort
SELECT ALL col0 * + col1 - - col0 AS col1, col1 AS col2, - col1 AS col1 FROM tab0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - + col0 + col2 IS NOT NULL
----

query I rowsort
SELECT + 81 * + ( - 71 ) + col1 AS col1 FROM tab1
----
-5704
-5737
-5746

onlyif mysql # DIV for integer division: 
query I rowsort label-6662
SELECT 59 DIV + col1 + - + ( - col2 ) FROM tab0
----
12
158
47

skipif mysql # not compatible
query I rowsort label-6662
SELECT 59 / + col1 + - + ( - col2 ) FROM tab0
----
12
158
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6663
SELECT + CAST( - 28 AS SIGNED ) AS col2 FROM tab0 WHERE - + col2 * + col0 + + col1 IS NOT NULL
----
-28
-28
-28

skipif mysql # not compatible
query I rowsort label-6663
SELECT + CAST ( - 28 AS INTEGER ) AS col2 FROM tab0 WHERE - + col2 * + col0 + + col1 IS NOT NULL
----
-28
-28
-28

query I rowsort
SELECT + col2 + - col1 + + + 73 FROM tab1
----
127
155
94

query II rowsort
SELECT + col1, + col1 FROM tab0 AS cor0
----
1
1
21
21
81
81

query I rowsort
SELECT DISTINCT - 87 FROM tab2 WHERE + - 9 IS NOT NULL
----
-87

query II rowsort
SELECT - col1, 19 + + col2 AS col1 FROM tab1
----
-14
115
-47
87
-5
78

query I rowsort
SELECT DISTINCT - col1 * + - col2 FROM tab2 AS cor0
----
1173
3080
3886

onlyif mysql # aggregate syntax: 
query I rowsort label-6669
SELECT ALL - - 74 * 52 * - COUNT( * ) FROM tab1 cor0
----
-11544

skipif mysql # not compatible
query I rowsort label-6669
SELECT ALL - - 74 * 52 * - COUNT ( * ) FROM tab1 cor0
----
-11544

query II rowsort
SELECT ALL - 94 AS col1, 10 FROM tab2 AS cor0
----
-94
10
-94
10
-94
10

query I rowsort
SELECT ( + + 78 ) * + + col2 FROM tab0 AS cor0
----
3666
7722
780

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * - - 41 col2 FROM tab0 cor0
----
3567
3977
615

onlyif mysql # DIV for integer division: 
query I rowsort label-6673
SELECT ALL col2 DIV - - col0 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6673
SELECT ALL col2 / - - col0 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
0
0
0

query II rowsort
SELECT DISTINCT + 81, + ( 90 ) + + 63 + + - col2 * col1 AS col1 FROM tab1 AS cor0
----
81
-1191
81
-142
81
-3043

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6675
SELECT col1 * - CAST( NULL AS SIGNED ) * col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6675
SELECT col1 * - CAST ( NULL AS INTEGER ) * col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT + col0 + - + col0 AS col1 FROM tab1 WHERE NOT - col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6677
SELECT - 71 DIV + COUNT( ALL - col0 ) col0 FROM tab2
----
-23

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6677
SELECT - 71 / + COUNT ( ALL - col0 ) col0 FROM tab2
----
-23

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6678
SELECT DISTINCT - MIN( 96 ) DIV 26 + 29 FROM tab1
----
26

skipif mysql # not compatible
query I rowsort label-6678
SELECT DISTINCT - MIN ( 96 ) / 26 + 29 FROM tab1
----
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6679
SELECT DISTINCT COUNT( * ) * - ( - - CAST( NULL AS SIGNED ) ) AS col1 FROM tab1 WHERE NOT + + col1 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6679
SELECT DISTINCT COUNT ( * ) * - ( - - CAST ( NULL AS INTEGER ) ) AS col1 FROM tab1 WHERE NOT + + col1 IS NOT NULL
----
NULL

query II rowsort
SELECT DISTINCT 15 AS col1, - col2 FROM tab0 WHERE NULL IS NULL
----
15
-10
15
-47
15
-99

query I rowsort
SELECT ALL - ( + + 74 ) FROM tab1
----
-74
-74
-74

query III rowsort
SELECT * FROM tab2 WHERE NOT - 52 * - col1 * - ( + col2 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-6683
SELECT + col1 DIV - - 67 AS col1 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-6683
SELECT + col1 / - - 67 AS col1 FROM tab0
----
0
0
1

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL > - 32
----

query I rowsort
SELECT DISTINCT - - 17 * col1 * - col1 + + 5 AS col0 FROM tab2 AS cor0
----
-100788
-44212
-76308

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6686
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - CAST( NULL AS SIGNED ) < - col0
----

skipif mysql # not compatible
query III rowsort label-6686
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) < - col0
----

query I rowsort
SELECT - 23 * - col0 AS col2 FROM tab2 AS cor0
----
1058
1472
1725

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6688
SELECT ALL - CAST( NULL AS SIGNED ) + - col1 AS col2 FROM tab0 cor0 WHERE NOT NULL > NULL
----

skipif mysql # not compatible
query I rowsort label-6688
SELECT ALL - CAST ( NULL AS INTEGER ) + - col1 AS col2 FROM tab0 cor0 WHERE NOT NULL > NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 15, col0 col2 FROM tab2 AS cor0
----
-15
46
-15
64
-15
75

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - col0 >= - 63
----
46
51
23

onlyif mysql # aggregate syntax: 
query I rowsort label-6691
SELECT DISTINCT - COUNT( + + col2 ) AS col2 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-6691
SELECT DISTINCT - COUNT ( + + col2 ) AS col2 FROM tab1 AS cor0
----
-3

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( + 39 / + 69 + ( + col1 ) ) BETWEEN NULL AND NULL
----

query II rowsort
SELECT DISTINCT - col1 - - + col2 AS col2, col2 * - + 93 AS col0 FROM tab0
----
-11
-930
-34
-4371
98
-9207

onlyif mysql # aggregate syntax: 
query I rowsort label-6694
SELECT + COUNT( - - col1 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-6694
SELECT + COUNT ( - - col1 ) FROM tab0
----
3

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + - 31 * + col0 NOT BETWEEN col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6696
SELECT 90 * + 43 - COUNT( ALL 81 ) * - 10 FROM tab2
----
3900

skipif mysql # not compatible
query I rowsort label-6696
SELECT 90 * + 43 - COUNT ( ALL 81 ) * - 10 FROM tab2
----
3900

query III rowsort
SELECT * FROM tab1 WHERE + + col2 >= + - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6698
SELECT DISTINCT - - CAST( NULL AS SIGNED ) - + col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6698
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) - + col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6699
SELECT ALL ( - 15 ) - COUNT( * ) - + 2 + + 35 AS col2 FROM tab2
----
15

skipif mysql # not compatible
query I rowsort label-6699
SELECT ALL ( - 15 ) - COUNT ( * ) - + 2 + + 35 AS col2 FROM tab2
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-6700
SELECT DISTINCT 19 * + COUNT( * ) FROM tab1, tab0 cor0
----
171

skipif mysql # not compatible
query I rowsort label-6700
SELECT DISTINCT 19 * + COUNT ( * ) FROM tab1, tab0 cor0
----
171

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - 64 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + + 51 * + 77 FROM tab1 AS cor0
----
3927
3927
3927

query I rowsort
SELECT ( - + 74 ) FROM tab2 AS cor0
----
-74
-74
-74

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 18 col2 FROM tab2 AS cor0 WHERE NOT ( NOT + 7 < ( + 78 ) - - - col2 )
----
18
18
18

query I rowsort
SELECT ALL - 51 FROM tab2 WHERE - 55 * col0 BETWEEN col1 AND - - col1 + 82 + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6706
SELECT SUM( DISTINCT + + col1 ) AS col1 FROM tab0
----
103

skipif mysql # not compatible
query I rowsort label-6706
SELECT SUM ( DISTINCT + + col1 ) AS col1 FROM tab0
----
103

onlyif mysql # aggregate syntax: 
query I rowsort label-6707
SELECT ALL ( + MIN( + ( + + col1 ) ) ) AS col2 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-6707
SELECT ALL ( + MIN ( + ( + + col1 ) ) ) AS col2 FROM tab0
----
1

query I rowsort
SELECT DISTINCT - 91 AS col2 FROM tab1 WHERE - + ( col1 ) NOT IN ( + col1, col2 )
----
-91

onlyif mysql # DIV for integer division: 
query I rowsort label-6709
SELECT ALL + col2 + - col0 * col2 DIV col1 * - col2 * + + col2 + 32 + col0 + + col0 * col1 AS col1 FROM tab2 AS cor0
----
13027
220486
57864

skipif mysql # not compatible
query I rowsort label-6709
SELECT ALL + col2 + - col0 * col2 / col1 * - col2 * + + col2 + 32 + col0 + + col0 * col1 AS col1 FROM tab2 AS cor0
----
13027
220486
57864

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - ( - 59 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6711
SELECT - ( - - 39 ) + - - COUNT( * ) FROM tab2 AS cor0
----
-36

skipif mysql # not compatible
query I rowsort label-6711
SELECT - ( - - 39 ) + - - COUNT ( * ) FROM tab2 AS cor0
----
-36

query I rowsort
SELECT 28 * + 4 FROM tab0
----
112
112
112

onlyif mysql # aggregate syntax: 
query I rowsort label-6713
SELECT DISTINCT MAX( DISTINCT - 62 ) FROM tab0, tab2 AS cor0
----
-62

skipif mysql # not compatible
query I rowsort label-6713
SELECT DISTINCT MAX ( DISTINCT - 62 ) FROM tab0, tab2 AS cor0
----
-62

onlyif mysql # aggregate syntax: 
query II rowsort label-6714
SELECT 87 * + COUNT( * ), + 90 AS col1 FROM tab1
----
261
90

skipif mysql # not compatible
query II rowsort label-6714
SELECT 87 * + COUNT ( * ), + 90 AS col1 FROM tab1
----
261
90

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( 13 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6716
SELECT - - 73 - CAST( NULL AS SIGNED ) AS col1, 97 - + col1 DIV - - 28 FROM tab1 AS cor0
----
NULL
96
NULL
97
NULL
97

skipif mysql # not compatible
query II rowsort label-6716
SELECT - - 73 - CAST ( NULL AS INTEGER ) AS col1, 97 - + col1 / - - 28 FROM tab1 AS cor0
----
NULL
96
NULL
97
NULL
97

query I rowsort
SELECT DISTINCT - + col2 * col2 + + + 94 AS col0 FROM tab1 AS cor0
----
-3387
-4530
-9122

query I rowsort
SELECT DISTINCT - - col1 FROM tab2 AS cor0 WHERE NOT col1 IS NULL
----
51
67
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6719
SELECT ALL - 79 / col2 + - CAST( NULL AS SIGNED ) - - col2 * + + col1 - 27 - - 97 * - + col1 AS col0 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6719
SELECT ALL - 79 / col2 + - CAST ( NULL AS INTEGER ) - - col2 * + + col1 - 27 - - 97 * - + col1 AS col0 FROM tab0 cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL <> 66 * + 9
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 col2 FROM tab2 AS cor0 WHERE col1 / 87 IS NOT NULL
----
51
67
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 + - col1 col2 FROM tab0 AS cor0
----
-108
-96
-98

query I rowsort
SELECT DISTINCT - col0 AS col1 FROM tab1 WHERE NOT - col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6724
SELECT DISTINCT - 71 * - COUNT( * ) FROM tab0
----
213

skipif mysql # not compatible
query I rowsort label-6724
SELECT DISTINCT - 71 * - COUNT ( * ) FROM tab0
----
213

query I rowsort
SELECT ALL col2 - - + 32 AS col1 FROM tab0 WHERE NOT + col0 + col0 + 75 IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6726
SELECT + col2 * + CAST( NULL AS DECIMAL ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6726
SELECT + col2 * + CAST ( NULL AS REAL ) FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT + + col2 * + col2 / - 47 FROM tab1 WHERE NULL <> - col1 + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6728
SELECT DISTINCT SUM( 21 ) + + 45 col2 FROM tab2 WHERE NOT col1 + - col2 NOT IN ( - col2 + + + col1 )
----
108

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6728
SELECT DISTINCT SUM ( 21 ) + + 45 col2 FROM tab2 WHERE NOT col1 + - col2 NOT IN ( - col2 + + + col1 )
----
108

query II rowsort
SELECT DISTINCT + col2, + col2 AS col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
23
23
40
40
58
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6730
SELECT + + 13 FROM tab2 WHERE NOT NULL BETWEEN - + CAST( NULL AS SIGNED ) * - col0 - col1 + CAST( - col0 AS SIGNED ) * - col0 AND + - col2
----

skipif mysql # not compatible
query I rowsort label-6730
SELECT + + 13 FROM tab2 WHERE NOT NULL BETWEEN - + CAST ( NULL AS INTEGER ) * - col0 - col1 + CAST ( - col0 AS INTEGER ) * - col0 AND + - col2
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6731
SELECT COUNT( * ) * - 46 DIV 35 AS col1 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-6731
SELECT COUNT ( * ) * - 46 / 35 AS col1 FROM tab2
----
-3

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col2 * + + 26 - col2 NOT BETWEEN - col1 AND + - col2 * col0 * - 86
----

query II rowsort
SELECT - - 17, + 5 * - col0 + - + col0 AS col2 FROM tab1 AS cor0
----
17
-306
17
-510
17
-546

query III rowsort
SELECT ALL * FROM tab2 WHERE + col2 + + col0 + 68 + + + col0 + + - col0 * col2 NOT IN ( 10 * + col0 + col2 + + col0, col2 * - - col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6735
SELECT ALL MAX( - 52 ) * - CAST( - 49 AS SIGNED ) AS col2 FROM tab1
----
-2548

skipif mysql # not compatible
query I rowsort label-6735
SELECT ALL MAX ( - 52 ) * - CAST ( - 49 AS INTEGER ) AS col2 FROM tab1
----
-2548

query I rowsort
SELECT DISTINCT + - 52 AS col1 FROM tab1 cor0
----
-52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( - + col1 ) col1 FROM tab1 AS cor0
----
14
47
5

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - 13 > col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6739
SELECT ALL + CAST( NULL AS SIGNED ) + - 50 + - MIN( - col1 ) FROM tab2 AS cor0 WHERE NOT NULL >= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6739
SELECT ALL + CAST ( NULL AS INTEGER ) + - 50 + - MIN ( - col1 ) FROM tab2 AS cor0 WHERE NOT NULL >= NULL
----
NULL

query I rowsort
SELECT - 82 FROM tab0 WHERE NOT - ( col1 ) * 42 NOT BETWEEN + col2 AND - col1 + 93
----

onlyif mysql # aggregate syntax: 
query III rowsort label-6741
SELECT DISTINCT - 80 AS col1, + MAX( + col1 ), COUNT( * ) - - - 54 AS col1 FROM tab0
----
-80
81
-51

skipif mysql # not compatible
query III rowsort label-6741
SELECT DISTINCT - 80 AS col1, + MAX ( + col1 ), COUNT ( * ) - - - 54 AS col1 FROM tab0
----
-80
81
-51

query I rowsort
SELECT DISTINCT 40 + col1 FROM tab1
----
45
54
87

query I rowsort
SELECT DISTINCT + col2 * + + col2 FROM tab1
----
3481
4624
9216

query I rowsort
SELECT ALL + 19 * - col0 FROM tab0 AS cor0
----
-1653
-1843
-285

query I rowsort
SELECT DISTINCT col2 + - 41 FROM tab2 AS cor0
----
-1
-18
17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6746
SELECT + CAST( NULL AS SIGNED ) AS col1, + MAX( ALL - ( - + col1 ) ) FROM tab1 AS cor0
----
NULL
47

skipif mysql # not compatible
query II rowsort label-6746
SELECT + CAST ( NULL AS INTEGER ) AS col1, + MAX ( ALL - ( - + col1 ) ) FROM tab1 AS cor0
----
NULL
47

onlyif mysql # aggregate syntax: 
query I rowsort label-6747
SELECT 67 + + COUNT( * ) FROM tab0
----
70

skipif mysql # not compatible
query I rowsort label-6747
SELECT 67 + + COUNT ( * ) FROM tab0
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-6748
SELECT ALL - COUNT( * ) * MAX( DISTINCT - + col0 ) AS col2 FROM tab1
----
153

skipif mysql # not compatible
query I rowsort label-6748
SELECT ALL - COUNT ( * ) * MAX ( DISTINCT - + col0 ) AS col2 FROM tab1
----
153

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6749
SELECT DISTINCT + 5 + + MAX( ALL + + CAST( NULL AS SIGNED ) ) AS col2 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6749
SELECT DISTINCT + 5 + + MAX ( ALL + + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab2 cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6750
SELECT ALL 58 + - ( + ( - - COUNT( * ) ) ) FROM tab0 AS cor0
----
55

skipif mysql # not compatible
query I rowsort label-6750
SELECT ALL 58 + - ( + ( - - COUNT ( * ) ) ) FROM tab0 AS cor0
----
55

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NOT - - col1 * 27 IS NOT NULL )
----

query I rowsort
SELECT ALL - col2 + - col1 FROM tab2 AS cor0 WHERE - 44 <> NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6753
SELECT - - CAST( - COUNT( * ) AS SIGNED ) - - - 39 DIV 32 - COUNT( * ) FROM tab0 AS cor0
----
-7

skipif mysql # not compatible
query I rowsort label-6753
SELECT - - CAST ( - COUNT ( * ) AS INTEGER ) - - - 39 / 32 - COUNT ( * ) FROM tab0 AS cor0
----
-7

onlyif mysql # aggregate syntax: 
query II rowsort label-6754
SELECT ALL - 61 * - + COUNT( * ) AS col2, + 44 FROM tab2
----
183
44

skipif mysql # not compatible
query II rowsort label-6754
SELECT ALL - 61 * - + COUNT ( * ) AS col2, + 44 FROM tab2
----
183
44

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL IS NOT NULL OR + col2 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6756
SELECT ALL 60 DIV - + col0 FROM tab1 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-6756
SELECT ALL 60 / - + col0 FROM tab1 AS cor0
----
-1
0
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - ( - 51 ) + + - col2 < + col2
----
46
51
23

query I rowsort
SELECT + - col2 FROM tab1 AS cor0 WHERE NOT 60 NOT BETWEEN + - 51 * 57 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 89 col0 FROM tab0, tab1 AS cor0
----
9 values hashing to 5c8428e9f1e7de3d09cb0814b4cc1743

query I rowsort
SELECT DISTINCT + col0 FROM tab2 WHERE ( NULL <= - col0 )
----

query I rowsort
SELECT DISTINCT + col1 + + - 25 FROM tab0
----
-24
-4
56

onlyif mysql # aggregate syntax: 
query I rowsort label-6762
SELECT - + COUNT( DISTINCT - + col0 ) col0 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6762
SELECT - + COUNT ( DISTINCT - + col0 ) col0 FROM tab0 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-6763
SELECT ALL 21 + COUNT( * ) FROM tab2 AS cor0
----
24

skipif mysql # not compatible
query I rowsort label-6763
SELECT ALL 21 + COUNT ( * ) FROM tab2 AS cor0
----
24

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6764
SELECT * FROM tab0 AS cor0 WHERE NOT + CAST( NULL AS SIGNED ) >= NULL
----

skipif mysql # not compatible
query III rowsort label-6764
SELECT * FROM tab0 AS cor0 WHERE NOT + CAST ( NULL AS INTEGER ) >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6765
SELECT DISTINCT MIN( 68 ) * 74 FROM tab2 AS cor0 WHERE NOT col2 IS NULL
----
5032

skipif mysql # not compatible
query I rowsort label-6765
SELECT DISTINCT MIN ( 68 ) * 74 FROM tab2 AS cor0 WHERE NOT col2 IS NULL
----
5032

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6766
SELECT - - col0 AS col0, col1 + + - CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
46
NULL
64
NULL
75
NULL

skipif mysql # not compatible
query II rowsort label-6766
SELECT - - col0 AS col0, col1 + + - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
46
NULL
64
NULL
75
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN ( NULL ) AND + - col1 + - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6768
SELECT DISTINCT + 60 AS col2, col0 + + + ( + + 23 ) + - CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
60
NULL

skipif mysql # not compatible
query II rowsort label-6768
SELECT DISTINCT + 60 AS col2, col0 + + + ( + + 23 ) + - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
60
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6769
SELECT COUNT( * ) + 23 * - COUNT( * ) AS col2 FROM tab2
----
-66

skipif mysql # not compatible
query I rowsort label-6769
SELECT COUNT ( * ) + 23 * - COUNT ( * ) AS col2 FROM tab2
----
-66

query I rowsort
SELECT - col2 + - - 77 + col0 + col1 * + col0 FROM tab1
----
4377
528
746

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 36 * + col0 * + 46 col2 FROM tab0
----
144072
160632
24840

onlyif mysql # DIV for integer division: 
query II rowsort label-6772
SELECT col0 DIV + col0 + + 97 + + + col1, ( col2 ) AS col2 FROM tab2
----
149
23
165
58
175
40

skipif mysql # not compatible
query II rowsort label-6772
SELECT col0 / + col0 + + 97 + + + col1, ( col2 ) AS col2 FROM tab2
----
149
23
165
58
175
40

query I rowsort
SELECT + 71 + ( + - col2 ) FROM tab0 AS cor0
----
-28
24
61

onlyif mysql # DIV for integer division: 
query II rowsort label-6774
SELECT DISTINCT - col2 + - col1 AS col2, col0 DIV - + ( + col1 ) AS col0 FROM tab0 AS cor0
----
-100
-97
-128
0
-31
-4

skipif mysql # not compatible
query II rowsort label-6774
SELECT DISTINCT - col2 + - col1 AS col2, col0 / - + ( + col1 ) AS col0 FROM tab0 AS cor0
----
-100
-97
-128
0
-31
-4

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NULL <> - col0 )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - 59 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col1 * - - 56 - + + col0 FROM tab0
----
-1263
-153
-4551

query I rowsort
SELECT DISTINCT - 94 + + - 52 AS col2 FROM tab1 AS cor0
----
-146

onlyif mysql # aggregate syntax: 
query I rowsort label-6779
SELECT DISTINCT - MIN( + 18 ) FROM tab1 cor0
----
-18

skipif mysql # not compatible
query I rowsort label-6779
SELECT DISTINCT - MIN ( + 18 ) FROM tab1 cor0
----
-18

query I rowsort
SELECT ALL - col0 AS col2 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN 40 AND NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-6781
SELECT + ( + col0 ), + CAST( NULL AS DECIMAL ) FROM tab1
----
51
NULL
85
NULL
91
NULL

skipif mysql # not compatible
query II rowsort label-6781
SELECT + ( + col0 ), + CAST ( NULL AS REAL ) FROM tab1
----
51
NULL
85
NULL
91
NULL

query I rowsort
SELECT ALL - ( - 37 ) FROM tab2
----
37
37
37

query I rowsort
SELECT + ( - 66 ) AS col1 FROM tab1
----
-66
-66
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-6784
SELECT COUNT( * ) col0 FROM tab2 WHERE NOT + col2 + + col0 NOT IN ( - + col2, + 24 * - col0 + + col0 )
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6784
SELECT COUNT ( * ) col0 FROM tab2 WHERE NOT + col2 + + col0 NOT IN ( - + col2, + 24 * - col0 + + col0 )
----
0

query III rowsort
SELECT + col2 AS col1, + col0, 17 FROM tab0
----
9 values hashing to e8f84725adb664e78bb168e4d851acf9

query I rowsort
SELECT ALL col2 FROM tab2 cor0 WHERE NOT - 53 IS NULL
----
23
40
58

query I rowsort
SELECT + col2 * - - 77 * col1 AS col0 FROM tab2 AS cor0
----
237160
299222
90321

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6788
SELECT - + CAST( NULL AS SIGNED ) / + AVG ( DISTINCT - - col1 ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6788
SELECT - + CAST ( NULL AS INTEGER ) / + AVG ( DISTINCT - - col1 ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT + ( + 87 ) FROM tab0
----
87
87
87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6790
SELECT DISTINCT + CAST( NULL AS SIGNED ) * 68 + - col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-6790
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * 68 + - col2 FROM tab1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - + 35 + - col2 AS col0, col1 + 28 col2 FROM tab0 AS cor0
----
-134
29
-45
49
-82
109

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - - col0 / - + col1 * - col0 * - - col2 col1, col1 FROM tab2 AS cor0 WHERE - 37 + col2 <= NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col0 * col0 * - - 83 = col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6794
SELECT + 84 DIV + col1 FROM tab0 AS cor0
----
1
4
84

skipif mysql # not compatible
query I rowsort label-6794
SELECT + 84 / + col1 FROM tab0 AS cor0
----
1
4
84

query III rowsort
SELECT * FROM tab2 cor0 WHERE ( - + col0 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 60 col1 FROM tab2
----
-60
-60
-60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6797
SELECT ALL - - col0 + + + 4 * col0 AS col0 FROM tab0 WHERE - col1 + + + col0 / CAST( - col0 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-6797
SELECT ALL - - col0 + + + 4 * col0 AS col0 FROM tab0 WHERE - col1 + + + col0 / CAST ( - col0 AS INTEGER ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6798
SELECT ALL + CAST( NULL AS SIGNED ) AS col0, + col2 FROM tab2 AS cor0
----
NULL
23
NULL
40
NULL
58

skipif mysql # not compatible
query II rowsort label-6798
SELECT ALL + CAST ( NULL AS INTEGER ) AS col0, + col2 FROM tab2 AS cor0
----
NULL
23
NULL
40
NULL
58

onlyif mysql # aggregate syntax: 
query I rowsort label-6799
SELECT + 52 + + MAX( ALL - 82 ) FROM tab1 cor0
----
-30

skipif mysql # not compatible
query I rowsort label-6799
SELECT + 52 + + MAX ( ALL - 82 ) FROM tab1 cor0
----
-30

onlyif mysql # aggregate syntax: 
query II rowsort label-6800
SELECT DISTINCT + COUNT( * ) - - 95 AS col1, MAX( - + col1 ) FROM tab1
----
98
-5

skipif mysql # not compatible
query II rowsort label-6800
SELECT DISTINCT + COUNT ( * ) - - 95 AS col1, MAX ( - + col1 ) FROM tab1
----
98
-5

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 98 * + 60 <= 60 * col1 / - col2 + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-6802
SELECT ALL - + COUNT( + + col2 ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-6802
SELECT ALL - + COUNT ( + + col2 ) FROM tab2 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6803
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( - col2 * 75 * + col0 ) <> ( - CAST( + ( - 12 ) AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-6803
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( - col2 * 75 * + col0 ) <> ( - CAST ( + ( - 12 ) AS INTEGER ) )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + 25 * - col1 NOT BETWEEN NULL AND + + 12 * 70 * - + col1 + col0 - col0 + - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6805
SELECT + - ( + ( - CAST( NULL AS SIGNED ) ) ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6805
SELECT + - ( + ( - CAST ( NULL AS INTEGER ) ) ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6806
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col0, MIN( + col1 ) FROM tab2
----
NULL
51

skipif mysql # not compatible
query II rowsort label-6806
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col0, MIN ( + col1 ) FROM tab2
----
NULL
51

onlyif mysql # DIV for integer division: 
query II rowsort label-6807
SELECT ALL + col1 AS col2, - 61 DIV col2 AS col2 FROM tab1
----
14
0
47
0
5
-1

skipif mysql # not compatible
query II rowsort label-6807
SELECT ALL + col1 AS col2, - 61 / col2 AS col2 FROM tab1
----
14
0
47
0
5
-1

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6808
SELECT ALL * FROM tab1 WHERE - CAST( NULL AS SIGNED ) * + col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-6808
SELECT ALL * FROM tab1 WHERE - CAST ( NULL AS INTEGER ) * + col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-6809
SELECT DISTINCT ( + ( + MIN( DISTINCT + 73 ) ) ) FROM tab0
----
73

skipif mysql # not compatible
query I rowsort label-6809
SELECT DISTINCT ( + ( + MIN ( DISTINCT + 73 ) ) ) FROM tab0
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-6810
SELECT ALL MAX( ALL + col2 ) AS col2 FROM tab2
----
58

skipif mysql # not compatible
query I rowsort label-6810
SELECT ALL MAX ( ALL + col2 ) AS col2 FROM tab2
----
58

query II rowsort
SELECT + col1 * - + ( - col0 ) * - ( - 6 ) AS col1, + 73 FROM tab0
----
10962
73
582
73
7290
73

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT ( NOT NULL BETWEEN NULL AND - col2 / 21 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6813
SELECT - COUNT( * ) * - SUM( DISTINCT col2 ) AS col1 FROM tab1 AS cor0
----
669

skipif mysql # not compatible
query I rowsort label-6813
SELECT - COUNT ( * ) * - SUM ( DISTINCT col2 ) AS col1 FROM tab1 AS cor0
----
669

query I rowsort
SELECT ALL - 4 * + col0 AS col0 FROM tab1 AS cor0
----
-204
-340
-364

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6815
SELECT ALL CAST( - 12 AS SIGNED ) AS col1 FROM tab2
----
-12
-12
-12

skipif mysql # not compatible
query I rowsort label-6815
SELECT ALL CAST ( - 12 AS INTEGER ) AS col1 FROM tab2
----
-12
-12
-12

query I rowsort
SELECT ( - 41 ) AS col1 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 4ba0c102091f9cbc9fe9439b04584e70

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 68, 28 + col1 col2 FROM tab2
----
68
105
68
79
68
95

onlyif mysql # DIV for integer division: 
query I rowsort label-6818
SELECT ALL col0 + 4 + - 17 DIV + col2 AS col0 FROM tab1 AS cor0
----
55
89
95

skipif mysql # not compatible
query I rowsort label-6818
SELECT ALL col0 + 4 + - 17 / + col2 AS col0 FROM tab1 AS cor0
----
55
89
95

onlyif mysql # aggregate syntax: 
query I rowsort label-6819
SELECT ALL - COUNT( * ) + - - 42 AS col0 FROM tab2 AS cor0
----
39

skipif mysql # not compatible
query I rowsort label-6819
SELECT ALL - COUNT ( * ) + - - 42 AS col0 FROM tab2 AS cor0
----
39

query II rowsort
SELECT - 87, - 98 AS col2 FROM tab0 AS cor0
----
-87
-98
-87
-98
-87
-98

query I rowsort
SELECT 83 + 60 AS col2 FROM tab1 AS cor0
----
143
143
143

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6822
SELECT ALL col2 * - - 10, CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
230
NULL
400
NULL
580
NULL

skipif mysql # not compatible
query II rowsort label-6822
SELECT ALL col2 * - - 10, CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
230
NULL
400
NULL
580
NULL

query I rowsort
SELECT 23 + + col1 FROM tab1
----
28
37
70

query I rowsort
SELECT + ( 71 ) AS col1 FROM tab1 AS cor0
----
71
71
71

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6825
SELECT ALL + CAST( + CAST( - - 68 AS DECIMAL ) AS SIGNED ) + + col2 FROM tab2 AS cor0
----
108
126
91

skipif mysql # not compatible
query I rowsort label-6825
SELECT ALL + CAST ( + CAST ( - - 68 AS REAL ) AS INTEGER ) + + col2 FROM tab2 AS cor0
----
108
126
91

query I rowsort
SELECT - col2 * - 73 * - + col1 - col2 - col2 * - 77 FROM tab0
----
-14570
-274339
297

onlyif mysql # aggregate syntax: 
query II rowsort label-6827
SELECT - COUNT( * ) AS col0, - 87 FROM tab0 AS cor0
----
-3
-87

skipif mysql # not compatible
query II rowsort label-6827
SELECT - COUNT ( * ) AS col0, - 87 FROM tab0 AS cor0
----
-3
-87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6828
SELECT + CAST( - col1 AS SIGNED ) * - + col2 - 99 AS col2 FROM tab0 cor0
----
0
111
3708

skipif mysql # not compatible
query I rowsort label-6828
SELECT + CAST ( - col1 AS INTEGER ) * - + col2 - 99 AS col2 FROM tab0 cor0
----
0
111
3708

query I rowsort
SELECT DISTINCT ( + - 71 ) AS col0 FROM tab1 AS cor0
----
-71

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 36, - ( 2 ) col0 FROM tab1 AS cor0
----
36
-2
36
-2
36
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6831
SELECT ALL 35 * CAST( - - 92 AS SIGNED ) + col2 + + 80 + ( + + col1 ) * 29 AS col0 FROM tab2 AS cor0 WHERE NULL < ( NULL )
----

skipif mysql # not compatible
query I rowsort label-6831
SELECT ALL 35 * CAST ( - - 92 AS INTEGER ) + col2 + + 80 + ( + + col1 ) * 29 AS col0 FROM tab2 AS cor0 WHERE NULL < ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6832
SELECT ALL COUNT( DISTINCT - + 67 ) AS col0 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-6832
SELECT ALL COUNT ( DISTINCT - + 67 ) AS col0 FROM tab2 AS cor0
----
1

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NULL ) <> + + ( - 85 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6834
SELECT COUNT( + + 37 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-6834
SELECT COUNT ( + + 37 ) FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6835
SELECT MAX( DISTINCT - - col1 ) AS col2 FROM tab0
----
81

skipif mysql # not compatible
query I rowsort label-6835
SELECT MAX ( DISTINCT - - col1 ) AS col2 FROM tab0
----
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6836
SELECT + CAST( NULL AS SIGNED ) AS col1 FROM tab1 WHERE NOT NULL >= - col0
----

skipif mysql # not compatible
query I rowsort label-6836
SELECT + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 WHERE NOT NULL >= - col0
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col1 BETWEEN NULL AND NULL
----

query I rowsort
SELECT + 24 FROM tab2, tab0 AS cor0
----
9 values hashing to b0d834ef9e4346801b6aaa0e74b2c8ef

onlyif mysql # aggregate syntax: 
query I rowsort label-6839
SELECT DISTINCT COUNT( * ) + - 72 AS col0 FROM tab0 cor0
----
-69

skipif mysql # not compatible
query I rowsort label-6839
SELECT DISTINCT COUNT ( * ) + - 72 AS col0 FROM tab0 cor0
----
-69

query I rowsort
SELECT ALL + 26 + col2 AS col1 FROM tab1 AS cor0
----
122
85
94

query I rowsort
SELECT - + col2 * + col1 + + col0 FROM tab2 AS cor0
----
-1127
-3016
-3811

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6842
SELECT ALL - MAX( DISTINCT CAST( 92 AS SIGNED ) ) + + COUNT( * ) + + + 90 * + COUNT( * ) FROM tab1 AS cor0
----
181

skipif mysql # not compatible
query I rowsort label-6842
SELECT ALL - MAX ( DISTINCT CAST ( 92 AS INTEGER ) ) + + COUNT ( * ) + + + 90 * + COUNT ( * ) FROM tab1 AS cor0
----
181

onlyif mysql # aggregate syntax: 
query I rowsort label-6843
SELECT DISTINCT - + 93 + - ( - COUNT( * ) ) AS col1 FROM tab0 AS cor0
----
-90

skipif mysql # not compatible
query I rowsort label-6843
SELECT DISTINCT - + 93 + - ( - COUNT ( * ) ) AS col1 FROM tab0 AS cor0
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-6844
SELECT - 39 * + COUNT( * ) AS col1 FROM tab0
----
-117

skipif mysql # not compatible
query I rowsort label-6844
SELECT - 39 * + COUNT ( * ) AS col1 FROM tab0
----
-117

query I rowsort
SELECT 3 * - col0 AS col2 FROM tab2
----
-138
-192
-225

onlyif mysql # aggregate syntax: 
query I rowsort label-6846
SELECT - 6 * + SUM( - - 15 ) * COUNT( * ) * + - COUNT( * ) col1 FROM tab0
----
2430

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6846
SELECT - 6 * + SUM ( - - 15 ) * COUNT ( * ) * + - COUNT ( * ) col1 FROM tab0
----
2430

onlyif mysql # aggregate syntax: 
query I rowsort label-6847
SELECT DISTINCT 54 * - COUNT( * ) FROM tab0
----
-162

skipif mysql # not compatible
query I rowsort label-6847
SELECT DISTINCT 54 * - COUNT ( * ) FROM tab0
----
-162

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 93 * - col2 col2 FROM tab1
----
-5487
-6324
-8928

query I rowsort
SELECT DISTINCT 11 * - 81 FROM tab0
----
-891

query I rowsort
SELECT ALL - 63 - - col0 * 80 + + col0 AS col1 FROM tab1 AS cor0
----
4068
6822
7308

onlyif mysql # aggregate syntax: 
query I rowsort label-6851
SELECT - - COUNT( - 32 ) + - 82 FROM tab2 AS cor0
----
-79

skipif mysql # not compatible
query I rowsort label-6851
SELECT - - COUNT ( - 32 ) + - 82 FROM tab2 AS cor0
----
-79

query I rowsort
SELECT - + 49 AS col2 FROM tab1 cor0
----
-49
-49
-49

query III rowsort
SELECT * FROM tab0 WHERE NOT + + 2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-6854
SELECT DISTINCT + COUNT( * ) FROM tab1 WHERE + col2 > + col1 + - + col0
----
3

skipif mysql # not compatible
query I rowsort label-6854
SELECT DISTINCT + COUNT ( * ) FROM tab1 WHERE + col2 > + col1 + - + col0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6855
SELECT CAST( col1 AS SIGNED ) * - col2 * + + col2 AS col1 FROM tab0
----
-178929
-2100
-9801

skipif mysql # not compatible
query I rowsort label-6855
SELECT CAST ( col1 AS INTEGER ) * - col2 * + + col2 AS col1 FROM tab0
----
-178929
-2100
-9801

query I rowsort
SELECT DISTINCT + - col0 AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-6857
SELECT - + MAX( DISTINCT - col1 ), + COUNT( * ) AS col0 FROM tab1 AS cor0
----
5
3

skipif mysql # not compatible
query II rowsort label-6857
SELECT - + MAX ( DISTINCT - col1 ), + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
5
3

query I rowsort
SELECT col2 * col2 * + col1 FROM tab2 cor0
----
123200
225388
26979

query I rowsort
SELECT + + 57 * + 82 AS col2 FROM tab0 AS cor0
----
4674
4674
4674

query I rowsort
SELECT ALL 57 + + 26 * - col1 * - 78 AS col1 FROM tab2 AS cor0 WHERE NOT NULL <= + ( + - col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6861
SELECT - 19 DIV + + 33 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6861
SELECT - 19 / + + 33 FROM tab1 AS cor0
----
0
0
0

query II rowsort
SELECT ALL col0, + 64 * - col2 AS col1 FROM tab1
----
51
-6144
85
-3776
91
-4352

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL NOT BETWEEN - 80 + col0 AND - - col1 * - + col0
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6864
SELECT DISTINCT - ( - CAST( NULL AS DECIMAL ) ) * + ( + 93 ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-6864
SELECT DISTINCT - ( - CAST ( NULL AS REAL ) ) * + ( + 93 ) FROM tab1
----
NULL

query I rowsort
SELECT + col1 + + - 70 + - - col1 AS col0 FROM tab0 cor0 WHERE NULL <> ( NULL )
----

query I rowsort
SELECT DISTINCT - ( + 95 ) FROM tab2 WHERE NOT + col1 + - col2 = NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - col0 * col1 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 37 col1 FROM tab2
----
-37
-37
-37

query III rowsort
SELECT * FROM tab1 WHERE ( col0 ) <= - col2 * + 45
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6870
SELECT * FROM tab2 WHERE NOT + col2 <> 12 * - CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-6870
SELECT * FROM tab2 WHERE NOT + col2 <> 12 * - CAST ( NULL AS REAL )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL NOT BETWEEN + col2 AND NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6872
SELECT ALL + col1 FROM tab0 WHERE NOT ( NULL ) NOT BETWEEN col1 AND ( CAST( + col2 AS DECIMAL ) )
----

skipif mysql # not compatible
query I rowsort label-6872
SELECT ALL + col1 FROM tab0 WHERE NOT ( NULL ) NOT BETWEEN col1 AND ( CAST ( + col2 AS REAL ) )
----

query I rowsort
SELECT ALL + 10 AS col2 FROM tab2 WHERE NOT + col1 NOT IN ( + col2 )
----

query I rowsort
SELECT DISTINCT + col2 * + 9 FROM tab1
----
531
612
864

onlyif mysql # aggregate syntax: 
query I rowsort label-6875
SELECT MAX( + ( col1 ) ) AS col0 FROM tab0
----
81

skipif mysql # not compatible
query I rowsort label-6875
SELECT MAX ( + ( col1 ) ) AS col0 FROM tab0
----
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( 97 ) col2 FROM tab1
----
97
97
97

query I rowsort
SELECT DISTINCT + col0 AS col0 FROM tab1 WHERE NOT + col0 * + col2 IS NULL
----
51
85
91

query III rowsort
SELECT * FROM tab2 WHERE col0 >= ( col2 * + col0 )
----

query I rowsort
SELECT DISTINCT - col0 * 80 AS col1 FROM tab1 WHERE col0 >= col0 + col2
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col0 NOT BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT 83 * + 91 FROM tab0
----
7553
7553
7553

query III rowsort
SELECT * FROM tab1 WHERE NOT + ( 9 ) IN ( + col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6883
SELECT DISTINCT COUNT( * ) DIV 45 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-6883
SELECT DISTINCT COUNT ( * ) / 45 FROM tab0
----
0

query I rowsort
SELECT ( col0 ) AS col0 FROM tab0 WHERE col2 * col2 IS NOT NULL
----
15
87
97

query I rowsort
SELECT ( 97 ) * - col1 AS col2 FROM tab1
----
-1358
-4559
-485

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6886
SELECT * FROM tab1 WHERE CAST( NULL AS SIGNED ) IN ( + 5 )
----

skipif mysql # not compatible
query III rowsort label-6886
SELECT * FROM tab1 WHERE CAST ( NULL AS INTEGER ) IN ( + 5 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6887
SELECT 39 * + COUNT( * ) AS col1 FROM tab0
----
117

skipif mysql # not compatible
query I rowsort label-6887
SELECT 39 * + COUNT ( * ) AS col1 FROM tab0
----
117

onlyif mysql # aggregate syntax: 
query I rowsort label-6888
SELECT COUNT( col2 ) * COUNT( * ) AS col1 FROM tab1
----
9

skipif mysql # not compatible
query I rowsort label-6888
SELECT COUNT ( col2 ) * COUNT ( * ) AS col1 FROM tab1
----
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6889
SELECT COUNT( * ) + + MIN( CAST( ( + col2 ) AS SIGNED ) - + col2 ) AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-6889
SELECT COUNT ( * ) + + MIN ( CAST ( ( + col2 ) AS INTEGER ) - + col2 ) AS col0 FROM tab2
----
3

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( NULL ) BETWEEN NULL AND + 94
----

query III rowsort
SELECT * FROM tab2 WHERE 89 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6892
SELECT - COUNT( * ) + + 64 FROM tab1
----
61

skipif mysql # not compatible
query I rowsort label-6892
SELECT - COUNT ( * ) + + 64 FROM tab1
----
61

query I rowsort
SELECT ALL 37 * 47 + - col0 FROM tab1 AS cor0 WHERE + 25 * - col1 >= ( NULL )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col1 >= ( - 98 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6895
SELECT col0 DIV 83 FROM tab1 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-6895
SELECT col0 / 83 FROM tab1 AS cor0
----
0
1
1

query I rowsort
SELECT ALL + ( - col0 ) * 17 + + col2 * col2 FROM tab2 AS cor0 WHERE col0 / col1 IS NOT NULL
----
-253
2089
512

onlyif mysql # aggregate syntax: 
query I rowsort label-6897
SELECT MAX( + 98 ) AS col2 FROM tab0
----
98

skipif mysql # not compatible
query I rowsort label-6897
SELECT MAX ( + 98 ) AS col2 FROM tab0
----
98

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6898
SELECT * FROM tab1 WHERE NOT + col0 + CAST( NULL AS SIGNED ) IN ( col2 + col0 )
----

skipif mysql # not compatible
query III rowsort label-6898
SELECT * FROM tab1 WHERE NOT + col0 + CAST ( NULL AS INTEGER ) IN ( col2 + col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6899
SELECT ALL col2 * + CAST( NULL AS SIGNED ) AS col1 FROM tab2 WHERE NOT NULL IN ( - 7 )
----

skipif mysql # not compatible
query I rowsort label-6899
SELECT ALL col2 * + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 WHERE NOT NULL IN ( - 7 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6900
SELECT + 88 * COUNT( * ) FROM tab1
----
264

skipif mysql # not compatible
query I rowsort label-6900
SELECT + 88 * COUNT ( * ) FROM tab1
----
264

onlyif mysql # aggregate syntax: 
query I rowsort label-6901
SELECT - MIN( DISTINCT - ( - col2 ) ) FROM tab2
----
-23

skipif mysql # not compatible
query I rowsort label-6901
SELECT - MIN ( DISTINCT - ( - col2 ) ) FROM tab2
----
-23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6902
SELECT + CAST( COUNT( * ) AS SIGNED ) col2 FROM tab0 WHERE NOT 16 / - CAST( NULL AS DECIMAL ) + col0 IS NOT NULL
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6902
SELECT + CAST ( COUNT ( * ) AS INTEGER ) col2 FROM tab0 WHERE NOT 16 / - CAST ( NULL AS REAL ) + col0 IS NOT NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6903
SELECT ALL COUNT( * ) AS col1 FROM tab2 cor0 CROSS JOIN tab0
----
9

skipif mysql # not compatible
query I rowsort label-6903
SELECT ALL COUNT ( * ) AS col1 FROM tab2 cor0 CROSS JOIN tab0
----
9

query I rowsort
SELECT DISTINCT col2 * col2 AS col0 FROM tab0 cor0 WHERE NOT NULL IS NOT NULL
----
100
2209
9801

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col1 * col0 NOT BETWEEN NULL AND col2 / + 31
----

query I rowsort
SELECT DISTINCT - col1 * + 28 AS col1 FROM tab1 AS cor0
----
-1316
-140
-392

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6907
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + col2 + - 99 * col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-6907
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + col2 + - 99 * col2 FROM tab0
----
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE + ( col1 ) > col0
----
15
81
47

query III rowsort
SELECT * FROM tab2 WHERE NOT + 36 * col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6910
SELECT ALL 62 / - - CAST( NULL AS SIGNED ) + + 7 * + COUNT( * ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6910
SELECT ALL 62 / - - CAST ( NULL AS INTEGER ) + + 7 * + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + - 65 + + col1 AS col1 FROM tab1 AS cor0
----
-18
-51
-60

query I rowsort
SELECT + 19 AS col1 FROM tab1 AS cor0 WHERE NULL >= ( NULL )
----

query I rowsort
SELECT - col0 + - 7 FROM tab2
----
-53
-71
-82

query I rowsort
SELECT ALL ( 69 ) AS col0 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 85d9b90a03b9def161891b13085271f7

query I rowsort
SELECT DISTINCT + col0 * + col0 FROM tab1 WHERE NOT ( NULL ) IS NOT NULL
----
2601
7225
8281

onlyif mysql # aggregate syntax: 
query I rowsort label-6916
SELECT DISTINCT - COUNT( * ) + - 53 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-62

skipif mysql # not compatible
query I rowsort label-6916
SELECT DISTINCT - COUNT ( * ) + - 53 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-62

query I rowsort
SELECT ALL - + col2 + - ( 98 ) * + 75 FROM tab2 cor0
----
-7373
-7390
-7408

query II rowsort
SELECT ALL + col2 AS col1, col1 AS col1 FROM tab2 AS cor0
----
23
51
40
77
58
67

onlyif mysql # aggregate syntax: 
query I rowsort label-6919
SELECT 82 * SUM( 96 ) col0 FROM tab2 AS cor0 WHERE NULL = - 16
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6919
SELECT 82 * SUM ( 96 ) col0 FROM tab2 AS cor0 WHERE NULL = - 16
----
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col1 + + col2 > + col0
----
51
14
96
91
47
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6921
SELECT + CAST( NULL AS SIGNED ) * + 13 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6921
SELECT + CAST ( NULL AS INTEGER ) * + 13 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6922
SELECT + ( + COUNT( ALL col2 ) ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-6922
SELECT + ( + COUNT ( ALL col2 ) ) FROM tab1 AS cor0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-6923
SELECT DISTINCT + col1 - - - 93 DIV + - col1 FROM tab2
----
52
68
78

skipif mysql # not compatible
query I rowsort label-6923
SELECT DISTINCT + col1 - - - 93 / + - col1 FROM tab2
----
52
68
78

query I rowsort
SELECT + 80 - + col1 FROM tab2
----
13
29
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6925
SELECT 67 - - MIN( ALL + col1 ) FROM tab1
----
72

skipif mysql # not compatible
query I rowsort label-6925
SELECT 67 - - MIN ( ALL + col1 ) FROM tab1
----
72

query I rowsort
SELECT DISTINCT 94 + 42 * - col1 AS col2 FROM tab1 WHERE NOT ( + + col2 ) IN ( + col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6927
SELECT col0 DIV + + 37 AS col0 FROM tab1
----
1
2
2

skipif mysql # not compatible
query I rowsort label-6927
SELECT col0 / + + 37 AS col0 FROM tab1
----
1
2
2

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT 2 * 83 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6929
SELECT + 70 * COUNT( * ) AS col0 FROM tab0 cor0
----
210

skipif mysql # not compatible
query I rowsort label-6929
SELECT + 70 * COUNT ( * ) AS col0 FROM tab0 cor0
----
210

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6930
SELECT ALL col0 * - + CAST( + 48 AS SIGNED ) FROM tab2 AS cor0
----
-2208
-3072
-3600

skipif mysql # not compatible
query I rowsort label-6930
SELECT ALL col0 * - + CAST ( + 48 AS INTEGER ) FROM tab2 AS cor0
----
-2208
-3072
-3600

query I rowsort
SELECT + + ( - 18 ) * + col1 + col1 AS col2 FROM tab0 AS cor0
----
-1377
-17
-357

query I rowsort
SELECT DISTINCT - 62 FROM tab1 AS cor0 WHERE ( ( - col2 ) IS NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6933
SELECT - + 8 * COUNT( * ) + - 22 AS col0 FROM tab0 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-6933
SELECT - + 8 * COUNT ( * ) + - 22 AS col0 FROM tab0 AS cor0
----
-46

query I rowsort
SELECT DISTINCT - 68 * 43 FROM tab1 AS cor0
----
-2924

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6935
SELECT CAST( + 48 AS SIGNED ) FROM tab2 AS cor0
----
48
48
48

skipif mysql # not compatible
query I rowsort label-6935
SELECT CAST ( + 48 AS INTEGER ) FROM tab2 AS cor0
----
48
48
48

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 49 IN ( - col2 + + + col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + 90 AS col0 FROM ( tab0 AS cor0 CROSS JOIN tab1 cor1 )
----
9 values hashing to 96f7a90428db93f472e0d219bab64853

query I rowsort
SELECT + col1 * + 85 FROM tab2
----
4335
5695
6545

query I rowsort
SELECT + + 63 * - - 38 + 85 AS col2 FROM tab0 AS cor0
----
2479
2479
2479

query I rowsort
SELECT ALL ( + + 11 ) * col2 * - col0 - - 30 FROM tab0 AS cor0
----
-105603
-7725
-9540

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col0 * - col0 + - col0 IN ( - - col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - 8 + + + col0 FROM tab2 cor0 WHERE NOT NULL IS NOT NULL
----
38
56
67

query I rowsort
SELECT ALL ( + + 50 ) AS col0 FROM tab1 AS cor0
----
50
50
50

query I rowsort
SELECT + AVG ( - 62 ) FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( col0 + col1 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6945
SELECT DISTINCT - COUNT( * ) DIV 34 FROM tab0, tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6945
SELECT DISTINCT - COUNT ( * ) / 34 FROM tab0, tab1 AS cor0
----
0

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL IN ( - + 47, col2 )
----

query II rowsort
SELECT + col1, col1 * col2 FROM tab2
----
51
1173
67
3886
77
3080

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col2 * col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-6949
SELECT 89 DIV col2 DIV + col2 + + - col2 * - col2 FROM tab2
----
1600
3364
529

skipif mysql # not compatible
query I rowsort label-6949
SELECT 89 / col2 / + col2 + + - col2 * - col2 FROM tab2
----
1600
3364
529

query I rowsort
SELECT DISTINCT + col0 * col2 + 49 FROM tab1 WHERE ( - col1 ) BETWEEN ( NULL ) AND - - col0 + - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6951
SELECT * FROM tab0 WHERE CAST( 98 AS SIGNED ) <= col1
----

skipif mysql # not compatible
query III rowsort label-6951
SELECT * FROM tab0 WHERE CAST ( 98 AS INTEGER ) <= col1
----

query I rowsort
SELECT DISTINCT - 1 + + - col0 * - - 98 AS col0 FROM tab0
----
-1471
-8527
-9507

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6953
SELECT ALL 58 col0, CAST( col0 AS SIGNED ) AS col1 FROM tab0
----
58
15
58
87
58
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6953
SELECT ALL 58 col0, CAST ( col0 AS INTEGER ) AS col1 FROM tab0
----
58
15
58
87
58
97

query I rowsort
SELECT - 37 + 74 AS col2 FROM tab1 AS cor0
----
37
37
37

query I rowsort
SELECT ALL + 38 * - col1 + + - col0 + + + 82 + - 58 * + col0 AS col2 FROM tab1 AS cor0
----
-3459
-5123
-7073

query I rowsort
SELECT + - 39 + - + col2 FROM tab1 AS cor0
----
-107
-135
-98

query I rowsort
SELECT DISTINCT + col1 + - - 31 FROM tab1 cor0
----
36
45
78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6958
SELECT DISTINCT col1 + col0 * - 80 * col2 * + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6958
SELECT DISTINCT col1 + col0 * - 80 * col2 * + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE - col0 + + col0 * + 46 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6960
SELECT DISTINCT - 87 * - COUNT( * ) FROM tab2 WHERE NOT NULL BETWEEN 50 * - col2 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-6960
SELECT DISTINCT - 87 * - COUNT ( * ) FROM tab2 WHERE NOT NULL BETWEEN 50 * - col2 AND NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6961
SELECT COUNT( DISTINCT - + col1 ) - COUNT( * ) - - MAX( ALL + 62 ) * + 70 AS col1 FROM tab1
----
4340

skipif mysql # not compatible
query I rowsort label-6961
SELECT COUNT ( DISTINCT - + col1 ) - COUNT ( * ) - - MAX ( ALL + 62 ) * + 70 AS col1 FROM tab1
----
4340

query I rowsort
SELECT ALL 36 + - ( + 3 ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 620d384286e82d1c6c8b1b2b109a7da5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6963
SELECT CAST( - col1 AS SIGNED ) - - 7 * + col1 * + - col1 + col1 FROM tab2 cor0
----
-18207
-31423
-41503

skipif mysql # not compatible
query I rowsort label-6963
SELECT CAST ( - col1 AS INTEGER ) - - 7 * + col1 * + - col1 + col1 FROM tab2 cor0
----
-18207
-31423
-41503

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6964
SELECT ALL col2 + + - CAST( - + col0 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
196
62
97

skipif mysql # not compatible
query I rowsort label-6964
SELECT ALL col2 + + - CAST ( - + col0 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
196
62
97

onlyif mysql # aggregate syntax: 
query I rowsort label-6965
SELECT - SUM( + - col2 ) + - - MIN( ALL + col1 ) FROM tab2 AS cor0
----
172

skipif mysql # not compatible
query I rowsort label-6965
SELECT - SUM ( + - col2 ) + - - MIN ( ALL + col1 ) FROM tab2 AS cor0
----
172

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) IN ( + - 52 - - col2 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( - 73 ) >= - col1
----
64
77
40

query I rowsort
SELECT ALL - col2 AS col2 FROM tab1 AS cor0 WHERE ( NULL ) < + col2 / - - col0 - - - 36
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col1 IN ( + 76, ( col0 ) + col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col2 BETWEEN - 92 * 68 AND + 8
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT ALL col1 AS col0, - 92 FROM tab2
----
51
-92
67
-92
77
-92

onlyif mysql # aggregate syntax: 
query II rowsort label-6972
SELECT - 41 AS col2, - COUNT( * ) FROM tab0
----
-41
-3

skipif mysql # not compatible
query II rowsort label-6972
SELECT - 41 AS col2, - COUNT ( * ) FROM tab0
----
-41
-3

query III rowsort
SELECT * FROM tab0 WHERE - col1 * - col0 IN ( + + col1 ) OR NOT NULL = NULL
----

query I rowsort
SELECT + col0 * - - col1 AS col1 FROM tab0
----
1215
1827
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + col2 * - 37 col0 FROM tab1
----
-10915
-118252
-49728

query I rowsort
SELECT - col1 + col0 FROM tab0 WHERE NOT col0 <= NULL
----

query II rowsort
SELECT ALL col1 AS col1, + col0 AS col1 FROM tab2
----
51
46
67
75
77
64

query I rowsort
SELECT DISTINCT 78 FROM tab2 AS cor0 WHERE NOT + ( + col0 ) <= ( + col2 )
----
78

query I rowsort
SELECT ALL 14 * + col0 FROM tab1 AS cor0
----
1190
1274
714

onlyif mysql # aggregate syntax: 
query I rowsort label-6980
SELECT DISTINCT - - MAX( 64 ) AS col0 FROM tab1 AS cor0
----
64

skipif mysql # not compatible
query I rowsort label-6980
SELECT DISTINCT - - MAX ( 64 ) AS col0 FROM tab1 AS cor0
----
64

query III rowsort
SELECT ALL * FROM tab0 WHERE + 30 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 col2 FROM tab1 WHERE NOT ( NOT NULL <> NULL )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE - 15 <> - - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 23 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to d94fadcc1c8cc4fc51b78b83e04795f2

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL <= ( 47 / + - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6986
SELECT ALL - ( - ( - - MAX( + col1 ) ) ) + - + 86 AS col2 FROM tab2 cor0
----
-9

skipif mysql # not compatible
query I rowsort label-6986
SELECT ALL - ( - ( - - MAX ( + col1 ) ) ) + - + 86 AS col2 FROM tab2 cor0
----
-9

query I rowsort
SELECT - 73 * + 57 + - 58 AS col0 FROM tab2 AS cor0
----
-4219
-4219
-4219

onlyif mysql # aggregate syntax: 
query I rowsort label-6988
SELECT DISTINCT - MIN( ( col1 ) ) FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-6988
SELECT DISTINCT - MIN ( ( col1 ) ) FROM tab0 AS cor0
----
-1

query I rowsort
SELECT ALL + col1 * ( + col0 ) * 36 + - - col2 AS col0 FROM tab1 cor0
----
15359
154040
25800

onlyif mysql # aggregate syntax: 
query I rowsort label-6990
SELECT + - COUNT( - col0 ) * 35 FROM tab2 AS cor0
----
-105

skipif mysql # not compatible
query I rowsort label-6990
SELECT + - COUNT ( - col0 ) * 35 FROM tab2 AS cor0
----
-105

query III rowsort
SELECT * FROM tab1 WHERE 54 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - 66 FROM tab1 WHERE - 24 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6993
SELECT DISTINCT + SUM( + + col0 ) FROM tab0
----
199

skipif mysql # not compatible
query I rowsort label-6993
SELECT DISTINCT + SUM ( + + col0 ) FROM tab0
----
199

query I rowsort
SELECT ALL + 40 * - col1 AS col2 FROM tab2
----
-2040
-2680
-3080

query III rowsort
SELECT ALL * FROM tab1 WHERE col2 - + ( + col2 ) * + col0 + col1 IN ( - - ( + col1 ) * + col0 )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL <> col2 / - + ( - + col0 )
----

query I rowsort
SELECT ALL + ( - 7 ) AS col1 FROM tab0 AS cor0
----
-7
-7
-7

query I rowsort
SELECT ALL - col2 - 2 FROM tab0 AS cor0
----
-101
-12
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-6999
SELECT + COUNT( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 cor1 WHERE NULL <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-6999
SELECT + COUNT ( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 cor1 WHERE NULL <> NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * - + 74 col2 FROM tab2
----
-3774
-4958
-5698

onlyif mysql # aggregate syntax: 
query I rowsort label-7001
SELECT DISTINCT + MIN( DISTINCT - col0 ) AS col0 FROM tab2
----
-75

skipif mysql # not compatible
query I rowsort label-7001
SELECT DISTINCT + MIN ( DISTINCT - col0 ) AS col0 FROM tab2
----
-75

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + + col1 + + col2 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7003
SELECT * FROM tab2 WHERE + 53 < - col1 / CAST( + 57 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-7003
SELECT * FROM tab2 WHERE + 53 < - col1 / CAST ( + 57 AS INTEGER )
----

query I rowsort
SELECT ALL - col1 + + + col1 FROM tab0 AS cor0
----
0
0
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL BETWEEN - col0 AND ( - col0 )
----

query I rowsort
SELECT + ( + 62 ) AS col2 FROM tab2 AS cor0
----
62
62
62

query III rowsort
SELECT * FROM tab0 cor0 WHERE + 53 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT col0 * - 28, - 54 AS col2 FROM tab0 cor0
----
-2436
-54
-2716
-54
-420
-54

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE ( NULL ) = + col2 + - col1 - + + col1 + + col2
----

query II rowsort
SELECT - - col0, col1 FROM tab2 AS cor0
----
46
51
64
77
75
67

query II rowsort
SELECT - col1, + 58 AS col0 FROM tab1 AS cor0
----
-14
58
-47
58
-5
58

query II rowsort
SELECT DISTINCT - col0, - 4 AS col2 FROM tab2 AS cor0
----
-46
-4
-64
-4
-75
-4

query I rowsort
SELECT DISTINCT + - col2 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
-59
-68
-96

query I rowsort
SELECT + col1 * + col1 + col1 AS col1 FROM tab2 AS cor0
----
2652
4556
6006

query I rowsort
SELECT DISTINCT col0 * - 15 AS col2 FROM tab1 AS cor0
----
-1275
-1365
-765

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7016
SELECT - SUM( - + CAST( NULL AS SIGNED ) ), + CAST( + + ( - 19 ) AS SIGNED ) AS col0 FROM tab0
----
NULL
-19

skipif mysql # not compatible
query II rowsort label-7016
SELECT - SUM ( - + CAST ( NULL AS INTEGER ) ), + CAST ( + + ( - 19 ) AS INTEGER ) AS col0 FROM tab0
----
NULL
-19

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE 66 * + col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-7018
SELECT ALL - MIN( - + col1 ) AS col0 FROM tab1
----
47

skipif mysql # not compatible
query I rowsort label-7018
SELECT ALL - MIN ( - + col1 ) AS col0 FROM tab1
----
47

query I rowsort
SELECT ( + ( + col0 ) ) FROM tab0
----
15
87
97

query III rowsort
SELECT * FROM tab0 WHERE NOT + 29 BETWEEN + col2 AND + col2 * + - ( + - 20 ) - + col2
----
15
81
47
97
1
99

query II rowsort
SELECT ( + col2 ) AS col1, 24 AS col0 FROM tab0 AS cor0
----
10
24
47
24
99
24

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7022
SELECT ALL + CAST( - - 42 AS SIGNED ) + 51 - - + col0 DIV - col2 AS col0 FROM tab1 cor0 WHERE NOT NULL IS NOT NULL
----
92
92
93

skipif mysql # not compatible
query I rowsort label-7022
SELECT ALL + CAST ( - - 42 AS INTEGER ) + 51 - - + col0 / - col2 AS col0 FROM tab1 cor0 WHERE NOT NULL IS NOT NULL
----
92
92
93

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7023
SELECT + - ( - + 39 ) * + 11 AS col0, CAST( col2 AS SIGNED ) FROM tab0 cor0
----
429
10
429
47
429
99

skipif mysql # not compatible
query II rowsort label-7023
SELECT + - ( - + 39 ) * + 11 AS col0, CAST ( col2 AS INTEGER ) FROM tab0 cor0
----
429
10
429
47
429
99

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7024
SELECT + col1 AS col0 FROM tab0 WHERE NOT 83 NOT BETWEEN col2 AND ( + - col0 - + CAST( NULL AS DECIMAL ) )
----

skipif mysql # not compatible
query I rowsort label-7024
SELECT + col1 AS col0 FROM tab0 WHERE NOT 83 NOT BETWEEN col2 AND ( + - col0 - + CAST ( NULL AS REAL ) )
----

query I rowsort
SELECT DISTINCT - 58 + + col1 FROM tab0 AS cor0
----
-37
-57
23

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7026
SELECT DISTINCT + MAX( ALL - col0 ) DIV + COUNT( * ) + + + COUNT( * ), + COUNT( * ) AS col1 FROM tab0 AS cor0
----
-2
3

skipif mysql # not compatible
query II rowsort label-7026
SELECT DISTINCT + MAX ( ALL - col0 ) / + COUNT ( * ) + + + COUNT ( * ), + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-2
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7027
SELECT - col1 * col1 + + CAST( NULL AS SIGNED ) - + col1 + - 18 + 44 - + + col2 / - + col2 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-7027
SELECT - col1 * col1 + + CAST ( NULL AS INTEGER ) - + col1 + - 18 + 44 - + + col2 / - + col2 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col1 AS col0, col2 col0 FROM tab1 AS cor0
----
-14
96
-47
68
-5
59

onlyif mysql # DIV for integer division: 
query I rowsort label-7029
SELECT DISTINCT - col2 DIV + 13 + + col0 + - col2 FROM tab1 AS cor0
----
-52
18
22

skipif mysql # not compatible
query I rowsort label-7029
SELECT DISTINCT - col2 / + 13 + + col0 + - col2 FROM tab1 AS cor0
----
-52
18
22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7030
SELECT ALL + 30 * CAST( - COUNT( * ) AS SIGNED ) col0 FROM tab1
----
-90

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7030
SELECT ALL + 30 * CAST ( - COUNT ( * ) AS INTEGER ) col0 FROM tab1
----
-90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7031
SELECT CAST( NULL AS SIGNED ) + - - col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7031
SELECT CAST ( NULL AS INTEGER ) + - - col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7032
SELECT + col2 + - + CAST( - 61 AS SIGNED ) DIV col1 + + col2 AS col2 FROM tab1
----
130
137
196

skipif mysql # not compatible
query I rowsort label-7032
SELECT + col2 + - + CAST ( - 61 AS INTEGER ) / col1 + + col2 AS col2 FROM tab1
----
130
137
196

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7033
SELECT DISTINCT - - col2 + - col2 * CAST( 91 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-5310
-6120
-8640

skipif mysql # not compatible
query I rowsort label-7033
SELECT DISTINCT - - col2 + - col2 * CAST ( 91 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-5310
-6120
-8640

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7034
SELECT col2 AS col1 FROM tab2 AS cor0 WHERE - CAST( NULL AS SIGNED ) * + + col0 = + 46
----

skipif mysql # not compatible
query I rowsort label-7034
SELECT col2 AS col1 FROM tab2 AS cor0 WHERE - CAST ( NULL AS INTEGER ) * + + col0 = + 46
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7035
SELECT ALL - ( + CAST( col2 AS SIGNED ) ) * - 2 FROM tab0
----
198
20
94

skipif mysql # not compatible
query I rowsort label-7035
SELECT ALL - ( + CAST ( col2 AS INTEGER ) ) * - 2 FROM tab0
----
198
20
94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7037
SELECT DISTINCT COUNT( col2 ) FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-7037
SELECT DISTINCT COUNT ( col2 ) FROM tab1 cor0
----
3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col1 * - + 97 <= - - col2
----

query II rowsort
SELECT ALL + col1, - col0 AS col2 FROM tab0 cor0
----
1
-97
21
-87
81
-15

onlyif mysql # aggregate syntax: 
query II rowsort label-7040
SELECT ALL ( + + COUNT( * ) ) * - MIN( DISTINCT col2 ), + 57 + + - ( - + 49 ) AS col1 FROM tab2
----
-69
106

skipif mysql # not compatible
query II rowsort label-7040
SELECT ALL ( + + COUNT ( * ) ) * - MIN ( DISTINCT col2 ), + 57 + + - ( - + 49 ) AS col1 FROM tab2
----
-69
106

query I rowsort
SELECT col0 * 94 FROM tab2
----
4324
6016
7050

query II rowsort
SELECT 41, + 73 * 33 AS col1 FROM tab0
----
41
2409
41
2409
41
2409

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 AS col2, - 96 col0 FROM tab2
----
51
-96
67
-96
77
-96

query II rowsort
SELECT ALL 25 AS col0, - 27 + + col2 FROM tab2
----
25
-4
25
13
25
31

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( - col2 * - + col1 / 72 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + ( + 52 ) AS col1 FROM tab1 AS cor0
----
52

query I rowsort
SELECT DISTINCT + - 37 FROM tab2 AS cor0 WHERE NOT - 91 IS NULL
----
-37

onlyif mysql # aggregate syntax: 
query II rowsort label-7048
SELECT ALL + 53, - COUNT( * ) * ( COUNT( * ) ) * - COUNT( * ) AS col2 FROM tab0 AS cor0
----
53
27

skipif mysql # not compatible
query II rowsort label-7048
SELECT ALL + 53, - COUNT ( * ) * ( COUNT ( * ) ) * - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
53
27

onlyif mysql # DIV for integer division: 
query I rowsort label-7049
SELECT + col0 DIV - - col1 AS col0 FROM tab0 AS cor0
----
0
4
97

skipif mysql # not compatible
query I rowsort label-7049
SELECT + col0 / - - col1 AS col0 FROM tab0 AS cor0
----
0
4
97

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 # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7051
SELECT DISTINCT MAX( DISTINCT + CAST( NULL AS SIGNED ) ) + 98 + - - 85 AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7051
SELECT DISTINCT MAX ( DISTINCT + CAST ( NULL AS INTEGER ) ) + 98 + - - 85 AS col1 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7052
SELECT ALL + COUNT( * ) + - + COUNT( - 54 ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7052
SELECT ALL + COUNT ( * ) + - + COUNT ( - 54 ) FROM tab0 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-7053
SELECT + col2 DIV col2 AS col2, + 40 * + + col0 * + - 35 + - col1 + + col1 AS col2 FROM tab1 cor0
----
1
-119000
1
-127400
1
-71400

skipif mysql # not compatible
query II rowsort label-7053
SELECT + col2 / col2 AS col2, + 40 * + + col0 * + - 35 + - col1 + + col1 AS col2 FROM tab1 cor0
----
1
-119000
1
-127400
1
-71400

query I rowsort
SELECT ALL + col1 * 39 AS col0 FROM tab0
----
3159
39
819

query I rowsort
SELECT DISTINCT col1 * - 30 FROM tab0
----
-2430
-30
-630

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL IS NULL OR NOT NULL NOT BETWEEN NULL AND - col0
----

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT ( NULL ) >= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7058
SELECT col1 DIV col0 * - - col2 AS col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7058
SELECT col1 / col0 * - - col2 AS col0 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7059
SELECT ( - COUNT( * ) ) DIV + 47 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7059
SELECT ( - COUNT ( * ) ) / + 47 FROM tab0 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7060
SELECT ALL ( - ( + COUNT( * ) ) ) AS col1 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7060
SELECT ALL ( - ( + COUNT ( * ) ) ) AS col1 FROM tab1 AS cor0
----
-3

query I rowsort
SELECT ALL col1 * + 0 + col2 FROM tab2 AS cor0
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-7062
SELECT + + COUNT( 87 ) * + - COUNT( ALL + - 50 ) FROM tab1 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-7062
SELECT + + COUNT ( 87 ) * + - COUNT ( ALL + - 50 ) FROM tab1 AS cor0
----
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col2 * + ( + - 68 ) col0 FROM tab1 AS cor0
----
4012
4624
6528

onlyif mysql # aggregate syntax: 
query I rowsort label-7064
SELECT + 76 * + SUM( + col2 ) AS col0 FROM tab0 AS cor0
----
11856

skipif mysql # not compatible
query I rowsort label-7064
SELECT + 76 * + SUM ( + col2 ) AS col0 FROM tab0 AS cor0
----
11856

onlyif mysql # aggregate syntax: 
query I rowsort label-7065
SELECT - COUNT( + ( 6 ) ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7065
SELECT - COUNT ( + ( 6 ) ) FROM tab2 AS cor0
----
-3

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT col0 NOT BETWEEN + 74 * - col2 AND - col0
----

query I rowsort
SELECT DISTINCT - col0 * - 37 FROM tab1 AS cor0
----
1887
3145
3367

query I rowsort
SELECT ALL + col2 * - - 87 FROM tab2 cor0
----
2001
3480
5046

onlyif mysql # DIV for integer division: 
query I rowsort label-7069
SELECT DISTINCT + - 93 DIV 24 * + - col0 AS col2 FROM tab2 AS cor0
----
138
192
225

skipif mysql # not compatible
query I rowsort label-7069
SELECT DISTINCT + - 93 / 24 * + - col0 AS col2 FROM tab2 AS cor0
----
138
192
225

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7070
SELECT ALL COUNT( * ) DIV MAX( col0 ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-7070
SELECT ALL COUNT ( * ) / MAX ( col0 ) FROM tab0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7071
SELECT DISTINCT - CAST( + - ( + col2 ) AS SIGNED ) FROM tab2
----
23
40
58

skipif mysql # not compatible
query I rowsort label-7071
SELECT DISTINCT - CAST ( + - ( + col2 ) AS INTEGER ) FROM tab2
----
23
40
58

query III rowsort
SELECT * FROM tab0 WHERE NOT + + col1 * + 41 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + 40 * + + 4 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7074
SELECT ALL - + AVG ( ALL - col2 ) + CAST( - - 33 AS SIGNED ) - - 12 + - 35 * - + COUNT( * ) FROM tab2 cor0 WHERE NULL < col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7074
SELECT ALL - + AVG ( ALL - col2 ) + CAST ( - - 33 AS INTEGER ) - - 12 + - 35 * - + COUNT ( * ) FROM tab2 cor0 WHERE NULL < col1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + ( + 59 ) + - + col1 col1 FROM tab2 AS cor0
----
-18
-8
8

query I rowsort
SELECT col1 + + - col2 AS col2 FROM tab2 AS cor0
----
28
37
9

onlyif mysql # aggregate syntax: 
query I rowsort label-7077
SELECT + SUM( - 18 ) * - - 4 + - + 46 FROM tab2 cor0
----
-262

skipif mysql # not compatible
query I rowsort label-7077
SELECT + SUM ( - 18 ) * - - 4 + - + 46 FROM tab2 cor0
----
-262

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 46 col2 FROM tab2 AS cor0
----
46
46
46

onlyif mysql # aggregate syntax: 
query I rowsort label-7079
SELECT ALL COUNT( + + 6 ) col2 FROM tab0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7079
SELECT ALL COUNT ( + + 6 ) col2 FROM tab0
----
3

query I rowsort
SELECT ALL - col0 FROM tab2 WHERE + col2 <= - 84 * 73
----

query I rowsort
SELECT 50 * + col2 FROM tab1
----
2950
3400
4800

query I rowsort
SELECT + - ( + + 67 ) * + + 73 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 7af7025358835a7fe583fe4f1b14bf90

query I rowsort
SELECT DISTINCT + col0 AS col0 FROM tab1 WHERE col0 = + col1
----

query II rowsort
SELECT + col0 AS col1, ( - 81 ) AS col2 FROM tab2 AS cor0
----
46
-81
64
-81
75
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-7085
SELECT ALL - + COUNT( * ) + + 1 + 48 AS col1 FROM tab2 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-7085
SELECT ALL - + COUNT ( * ) + + 1 + 48 AS col1 FROM tab2 AS cor0
----
46

onlyif mysql # DIV for integer division: 
query I rowsort label-7086
SELECT - 0 - + + ( col0 ) + - - col0 DIV 55 FROM tab0 cor0
----
-15
-86
-96

skipif mysql # not compatible
query I rowsort label-7086
SELECT - 0 - + + ( col0 ) + - - col0 / 55 FROM tab0 cor0
----
-15
-86
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-7087
SELECT - 91 + + 24 + - - COUNT( * ) AS col2 FROM tab1 AS cor0
----
-64

skipif mysql # not compatible
query I rowsort label-7087
SELECT - 91 + + 24 + - - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-64

query I rowsort
SELECT - 90 + - + col0 + + 87 + col2 * col1 * + - col2 FROM tab1
----
-129078
-17493
-217422

query I rowsort
SELECT ( - col2 ) + - + 37 FROM tab0
----
-136
-47
-84

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7090
SELECT DISTINCT * FROM tab2 WHERE NOT + - CAST( col2 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-7090
SELECT DISTINCT * FROM tab2 WHERE NOT + - CAST ( col2 AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT 88 * + col2 FROM tab1
----
5192
5984
8448

onlyif mysql # aggregate syntax: 
query I rowsort label-7092
SELECT ALL 37 * + + 35 + + COUNT( * ) * + COUNT( * ) * + 50 FROM tab1 AS cor0
----
1745

skipif mysql # not compatible
query I rowsort label-7092
SELECT ALL 37 * + + 35 + + COUNT ( * ) * + COUNT ( * ) * + 50 FROM tab1 AS cor0
----
1745

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7093
SELECT * FROM tab0 AS cor0 WHERE ( NOT + CAST( NULL AS SIGNED ) IS NOT NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-7093
SELECT * FROM tab0 AS cor0 WHERE ( NOT + CAST ( NULL AS INTEGER ) IS NOT NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - 91 + + col2 + - - col0 + + + col2 * + 15 AS col1 FROM tab2 AS cor0
----
323
613
912

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 84 col1 FROM tab1 AS cor0 WHERE NOT 9 IS NULL
----
-84
-84
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-7096
SELECT - - 23 * + ( + COUNT( * ) ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
207

skipif mysql # not compatible
query I rowsort label-7096
SELECT - - 23 * + ( + COUNT ( * ) ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
207

onlyif mysql # aggregate syntax: 
query I rowsort label-7097
SELECT MIN( DISTINCT - 74 ) AS col0 FROM tab2
----
-74

skipif mysql # not compatible
query I rowsort label-7097
SELECT MIN ( DISTINCT - 74 ) AS col0 FROM tab2
----
-74

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7098
SELECT - 86, CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
-86
NULL
-86
NULL
-86
NULL

skipif mysql # not compatible
query II rowsort label-7098
SELECT - 86, CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
-86
NULL
-86
NULL
-86
NULL

query I rowsort
SELECT ALL + ( - + col2 ) AS col1 FROM tab1
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-7100
SELECT SUM( ALL ( + - 27 ) ) FROM tab2
----
-81

skipif mysql # not compatible
query I rowsort label-7100
SELECT SUM ( ALL ( + - 27 ) ) FROM tab2
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-7101
SELECT - + 31 * - MIN( col1 ) + 28 FROM tab1 AS cor0
----
183

skipif mysql # not compatible
query I rowsort label-7101
SELECT - + 31 * - MIN ( col1 ) + 28 FROM tab1 AS cor0
----
183

query I rowsort
SELECT - + col1 + + 46 FROM tab1 AS cor0 WHERE NOT + col0 <> NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col1 * + 74 * + + 2 IS NULL
----

query II rowsort
SELECT - - col2 * + 0 + + - col0, + col0 FROM tab0 AS cor0
----
-15
15
-87
87
-97
97

onlyif mysql # aggregate syntax: 
query I rowsort label-7105
SELECT MAX( ALL col0 ) AS col1 FROM tab2 AS cor0 WHERE NOT + col0 - + + 96 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7105
SELECT MAX ( ALL col0 ) AS col1 FROM tab2 AS cor0 WHERE NOT + col0 - + + 96 IS NOT NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 43 * - col1 col0 FROM tab2 AS cor0 WHERE NOT + col2 NOT BETWEEN - + col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7107
SELECT + + 97 * - COUNT( * ) FROM tab1 AS cor0
----
-291

skipif mysql # not compatible
query I rowsort label-7107
SELECT + + 97 * - COUNT ( * ) FROM tab1 AS cor0
----
-291

query II rowsort
SELECT col2 AS col2, col1 AS col1 FROM tab2 AS cor0
----
23
51
40
77
58
67

onlyif mysql # DIV for integer division: 
query II rowsort label-7109
SELECT ALL col0 + - - ( - + col0 ) * col0 AS col2, + 39 DIV + + 3 col0 FROM tab0 WHERE - - col2 IS NOT NULL
----
-210
13
-7482
13
-9312
13

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7109
SELECT ALL col0 + - - ( - + col0 ) * col0 AS col2, + 39 / + + 3 col0 FROM tab0 WHERE - - col2 IS NOT NULL
----
-210
13
-7482
13
-9312
13

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7110
SELECT DISTINCT * FROM tab2 WHERE - 89 + - CAST( + col2 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-7110
SELECT DISTINCT * FROM tab2 WHERE - 89 + - CAST ( + col2 AS INTEGER ) IS NULL
----

query I rowsort
SELECT DISTINCT - 39 * + - 84 AS col1 FROM tab1 WHERE + col1 BETWEEN + 74 * + ( col2 ) AND - ( + - col2 ) * 32 + ( - col2 ) * ( + 64 ) - + 37
----

query I rowsort
SELECT DISTINCT ( + 70 ) FROM tab2
----
70

query I rowsort
SELECT + ( + col0 ) AS col2 FROM tab2 WHERE NOT NULL > - - col2
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col2 - - ( - col2 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7115
SELECT DISTINCT - 46 * COUNT( * ) col2 FROM tab0 AS cor0
----
-138

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7115
SELECT DISTINCT - 46 * COUNT ( * ) col2 FROM tab0 AS cor0
----
-138

onlyif mysql # DIV for integer division: 
query I rowsort label-7116
SELECT - 15 DIV - col2 - 90 + 39 + - col1 FROM tab1 AS cor0 WHERE - col0 + + col0 IS NOT NULL
----
-56
-65
-98

skipif mysql # not compatible
query I rowsort label-7116
SELECT - 15 / - col2 - 90 + 39 + - col1 FROM tab1 AS cor0 WHERE - col0 + + col0 IS NOT NULL
----
-56
-65
-98

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7117
SELECT * FROM tab0 AS cor0 WHERE ( NOT ( ( - CAST( NULL AS SIGNED ) ) = NULL ) )
----

skipif mysql # not compatible
query III rowsort label-7117
SELECT * FROM tab0 AS cor0 WHERE ( NOT ( ( - CAST ( NULL AS INTEGER ) ) = NULL ) )
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NOT + 45 - + col2 + - ( 76 ) BETWEEN 33 AND + 81 + + 72 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN 86 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7120
SELECT DISTINCT col2 + + + 79 DIV 57 FROM tab2 AS cor0
----
24
41
59

skipif mysql # not compatible
query I rowsort label-7120
SELECT DISTINCT col2 + + + 79 / 57 FROM tab2 AS cor0
----
24
41
59

query I rowsort
SELECT DISTINCT + + col2 - - + 57 * col1 * + col1 * + col0 AS col2 FROM tab1 AS cor0
----
11458151
121184
569868

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7122
SELECT DISTINCT + - ( - 43 ) * col0 * - + 85 - + + col1 FROM tab0 AS cor0 WHERE NOT 32 * - + col2 / - - 20 + 83 NOT BETWEEN NULL AND CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-7122
SELECT DISTINCT + - ( - 43 ) * col0 * - + 85 - + + col1 FROM tab0 AS cor0 WHERE NOT 32 * - + col2 / - - 20 + 83 NOT BETWEEN NULL AND CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7123
SELECT COUNT( * ) * - - MIN( 72 ) - - SUM( - - col2 ) FROM tab2
----
337

skipif mysql # not compatible
query I rowsort label-7123
SELECT COUNT ( * ) * - - MIN ( 72 ) - - SUM ( - - col2 ) FROM tab2
----
337

onlyif mysql # DIV for integer division: 
query I rowsort label-7124
SELECT - col0 DIV - + 91 - - col1 + - 16 + - col2 * + - col2 * col1 FROM tab1
----
129022
17394
217360

skipif mysql # not compatible
query I rowsort label-7124
SELECT - col0 / - + 91 - - col1 + - 16 + - col2 * + - col2 * col1 FROM tab1
----
129022
17394
217360

onlyif mysql # aggregate syntax: 
query I rowsort label-7125
SELECT DISTINCT + COUNT( * ) - - COUNT( * ) AS col2 FROM tab2
----
6

skipif mysql # not compatible
query I rowsort label-7125
SELECT DISTINCT + COUNT ( * ) - - COUNT ( * ) AS col2 FROM tab2
----
6

query I rowsort
SELECT + + col0 AS col2 FROM tab1 WHERE + col0 + - col0 + + 97 > NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + - col2 NOT IN ( + 98, col0, col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7128
SELECT DISTINCT + MIN( ALL - - col0 ) FROM tab1 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-7128
SELECT DISTINCT + MIN ( ALL - - col0 ) FROM tab1 AS cor0
----
51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2, + 13 col1 FROM tab1 AS cor0
----
-59
13
-68
13
-96
13

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7130
SELECT DISTINCT - col1 AS col0 FROM tab0 AS cor0 WHERE NOT - CAST( NULL AS DECIMAL ) * - + ( + + 64 ) IN ( - ( + col2 ), + col0 )
----

skipif mysql # not compatible
query I rowsort label-7130
SELECT DISTINCT - col1 AS col0 FROM tab0 AS cor0 WHERE NOT - CAST ( NULL AS REAL ) * - + ( + + 64 ) IN ( - ( + col2 ), + col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7131
SELECT ALL - CAST( NULL AS SIGNED ) AS col0 FROM tab2 WHERE col2 IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7131
SELECT ALL - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 WHERE col2 IS NOT NULL
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7132
SELECT - COUNT( * ) * - COUNT( * ) + - 27 FROM tab1 AS cor0
----
-18

skipif mysql # not compatible
query I rowsort label-7132
SELECT - COUNT ( * ) * - COUNT ( * ) + - 27 FROM tab1 AS cor0
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-7133
SELECT ALL + ( COUNT( * ) ) * + 85 FROM tab2 AS cor0
----
255

skipif mysql # not compatible
query I rowsort label-7133
SELECT ALL + ( COUNT ( * ) ) * + 85 FROM tab2 AS cor0
----
255

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * - ( + + 98 ) * - col2 col1 FROM tab2 AS cor0
----
-156800
-329672
-51842

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7135
SELECT DISTINCT * FROM tab2 cor0 WHERE col0 - + - CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-7135
SELECT DISTINCT * FROM tab2 cor0 WHERE col0 - + - CAST ( NULL AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT + 69 * 15 AS col1 FROM tab1 AS cor0
----
1035
1035
1035

onlyif mysql # aggregate syntax: 
query I rowsort label-7137
SELECT ALL + - 28 * + SUM( - + col2 ) FROM tab2 AS cor0
----
3388

skipif mysql # not compatible
query I rowsort label-7137
SELECT ALL + - 28 * + SUM ( - + col2 ) FROM tab2 AS cor0
----
3388

query I rowsort
SELECT col2 * - col0 * col0 FROM tab0 cor0
----
-10575
-75690
-931491

query I rowsort
SELECT DISTINCT 41 * - ( - + 92 ) FROM tab1 AS cor0
----
3772

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7140
SELECT CAST( NULL AS SIGNED ) * - col2, ( + + 5 ) AS col0 FROM tab1 AS cor0
----
NULL
5
NULL
5
NULL
5

skipif mysql # not compatible
query II rowsort label-7140
SELECT CAST ( NULL AS INTEGER ) * - col2, ( + + 5 ) AS col0 FROM tab1 AS cor0
----
NULL
5
NULL
5
NULL
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7141
SELECT - - 0 * ( + - 67 ) * - col2 + - CAST( - col1 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
51
67
77

skipif mysql # not compatible
query I rowsort label-7141
SELECT - - 0 * ( + - 67 ) * - col2 + - CAST ( - col1 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
51
67
77

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( - - col1 ) + + - 60 = + + col2 + + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT col1, - 69 FROM tab1
----
14
-69
47
-69
5
-69

query III rowsort
SELECT ALL * FROM tab0 WHERE + 71 <= - col1
----

query I rowsort
SELECT 48 + - + 53 FROM tab1
----
-5
-5
-5

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - col0 NOT BETWEEN + col1 AND - 84
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7147
SELECT + - CAST( NULL AS SIGNED ) AS col0 FROM tab2 WHERE NOT + + col0 <= + col2 / + 81 / - 31
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7147
SELECT + - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 WHERE NOT + + col0 <= + col2 / + 81 / - 31
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT + col1 * - 5 * ( col2 ), 90 AS col0 FROM tab2
----
-15400
90
-19430
90
-5865
90

onlyif mysql # aggregate syntax: 
query I rowsort label-7149
SELECT ALL 52 * - MIN( DISTINCT + col0 ) AS col2 FROM tab2
----
-2392

skipif mysql # not compatible
query I rowsort label-7149
SELECT ALL 52 * - MIN ( DISTINCT + col0 ) AS col2 FROM tab2
----
-2392

query I rowsort
SELECT + col0 * - - ( - 60 ) + + col1 * col2 * + col0 * - col0 AS col2 FROM tab0
----
-1594710
-857475
-937311

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + - - col1 col2 FROM tab2
----
141
142
97

onlyif mysql # aggregate syntax: 
query I rowsort label-7152
SELECT DISTINCT + MIN( ALL - col0 ) * ( - COUNT( * ) ) + MAX( DISTINCT + - col2 ) FROM tab1
----
214

skipif mysql # not compatible
query I rowsort label-7152
SELECT DISTINCT + MIN ( ALL - col0 ) * ( - COUNT ( * ) ) + MAX ( DISTINCT + - col2 ) FROM tab1
----
214

query I rowsort
SELECT + ( col1 ) + col1 AS col1 FROM tab1 cor0
----
10
28
94

query I rowsort
SELECT DISTINCT + col2 FROM tab1 AS cor0 WHERE - 22 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7155
SELECT 4 - + + COUNT( * ) AS col2 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-7155
SELECT 4 - + + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7156
SELECT ALL + CAST( - CAST( + - 7 AS SIGNED ) AS SIGNED ) * - + 60 FROM tab2 AS cor0
----
-420
-420
-420

skipif mysql # not compatible
query I rowsort label-7156
SELECT ALL + CAST ( - CAST ( + - 7 AS INTEGER ) AS INTEGER ) * - + 60 FROM tab2 AS cor0
----
-420
-420
-420

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7157
SELECT - - CAST( NULL AS DECIMAL ) * - col0 + + col0 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7157
SELECT - - CAST ( NULL AS REAL ) * - col0 + + col0 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7158
SELECT DISTINCT + - ( + col2 ) * - 92 + + CAST( col0 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
5513
6347
8883

skipif mysql # not compatible
query I rowsort label-7158
SELECT DISTINCT + - ( + col2 ) * - 92 + + CAST ( col0 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
5513
6347
8883

query II rowsort
SELECT 19 + - col1, col0 AS col1 FROM tab0 cor0
----
-2
87
-62
15
18
97

query I rowsort
SELECT DISTINCT + col2 - + ( + col1 ) FROM tab0 cor0
----
-11
-34
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7161
SELECT DISTINCT + col2 - 68 * + CAST( NULL AS SIGNED ) AS col1 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7161
SELECT DISTINCT + col2 - 68 * + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 cor0
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 95 - - 96 * - 49 IS NULL
----

query I rowsort
SELECT DISTINCT col0 - + + col2 + + col0 * col0 FROM tab1
----
2556
7251
8304

onlyif mysql # aggregate syntax: 
query I rowsort label-7164
SELECT ALL + SUM( ALL - ( col1 ) ) FROM tab1
----
-66

skipif mysql # not compatible
query I rowsort label-7164
SELECT ALL + SUM ( ALL - ( col1 ) ) FROM tab1
----
-66

query I rowsort
SELECT - 26 * 98 AS col2 FROM tab1
----
-2548
-2548
-2548

onlyif mysql # DIV for integer division: 
query I rowsort label-7166
SELECT 78 DIV - - col0 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-7166
SELECT 78 / - - col0 FROM tab2
----
1
1
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7167
SELECT DISTINCT + 1 DIV COUNT( * ) AS col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-7167
SELECT DISTINCT + 1 / COUNT ( * ) AS col1 FROM tab0
----
0

query I rowsort
SELECT DISTINCT + 6 + - col0 FROM tab0 AS cor0 WHERE NOT - 89 NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 17 * col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7170
SELECT ALL - + CAST( + - col0 AS SIGNED ) FROM tab0 cor0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-7170
SELECT ALL - + CAST ( + - col0 AS INTEGER ) FROM tab0 cor0
----
15
87
97

query I rowsort
SELECT DISTINCT - - col0 FROM tab1 WHERE NULL IS NULL
----
51
85
91

query I rowsort
SELECT DISTINCT - ( + + col2 ) FROM tab0 cor0
----
-10
-47
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7173
SELECT DISTINCT + col2 + + + CAST( NULL AS SIGNED ) col0 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7173
SELECT DISTINCT + col2 + + + CAST ( NULL AS INTEGER ) col0 FROM tab2 cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7174
SELECT MIN( col2 ) * + MIN( DISTINCT + 92 ) FROM tab0 AS cor0
----
920

skipif mysql # not compatible
query I rowsort label-7174
SELECT MIN ( col2 ) * + MIN ( DISTINCT + 92 ) FROM tab0 AS cor0
----
920

onlyif mysql # aggregate syntax: 
query I rowsort label-7175
SELECT - SUM( ALL col2 ) AS col1 FROM tab0
----
-156

skipif mysql # not compatible
query I rowsort label-7175
SELECT - SUM ( ALL col2 ) AS col1 FROM tab0
----
-156

query I rowsort
SELECT col2 * + 66 * 15 * + 43 AS col0 FROM tab0
----
2000790
4214430
425700

onlyif mysql # aggregate syntax: 
query I rowsort label-7177
SELECT SUM( - 59 ) FROM tab2
----
-177

skipif mysql # not compatible
query I rowsort label-7177
SELECT SUM ( - 59 ) FROM tab2
----
-177

onlyif mysql # aggregate syntax: 
query I rowsort label-7178
SELECT ALL - MIN( 23 ) FROM tab0
----
-23

skipif mysql # not compatible
query I rowsort label-7178
SELECT ALL - MIN ( 23 ) FROM tab0
----
-23

onlyif mysql # DIV for integer division: 
query I rowsort label-7179
SELECT ALL 97 DIV col2 + + col1 * col0 + - + col1 FROM tab2 WHERE NOT - col1 IS NULL
----
2299
4853
4959

skipif mysql # not compatible
query I rowsort label-7179
SELECT ALL 97 / col2 + + col1 * col0 + - + col1 FROM tab2 WHERE NOT - col1 IS NULL
----
2299
4853
4959

onlyif mysql # aggregate syntax: 
query I rowsort label-7180
SELECT DISTINCT COUNT( * ) + - - ( - 88 ) - + + ( - + SUM( ALL + col0 ) ) FROM tab0
----
114

skipif mysql # not compatible
query I rowsort label-7180
SELECT DISTINCT COUNT ( * ) + - - ( - 88 ) - + + ( - + SUM ( ALL + col0 ) ) FROM tab0
----
114

query I rowsort
SELECT DISTINCT - 11 FROM tab0 WHERE + 14 IS NOT NULL
----
-11

query I rowsort
SELECT - col1 * - 63 AS col2 FROM tab0 WHERE ( 27 ) IN ( 11, - col1 )
----

query I rowsort
SELECT - col0 * - col1 + + - col2 + - col1 AS col2 FROM tab2 AS cor0
----
2272
4811
4900

query I rowsort
SELECT ALL col2 + - 91 AS col0 FROM tab0 AS cor0
----
-44
-81
8

query II rowsort
SELECT ALL - 84, + col1 * + - 45 * col1 AS col2 FROM tab0 cor0 WHERE NOT NULL <> NULL AND ( + col0 BETWEEN + 91 - 47 * + col1 - - col0 AND NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7186
SELECT - col1 + col1 * - 4 + + + col0 - - col2 / - CAST( NULL AS SIGNED ) + + - col0 + - + col1 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7186
SELECT - col1 + col1 * - 4 + + + col0 - - col2 / - CAST ( NULL AS INTEGER ) + + - col0 + - + col1 FROM tab1 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7187
SELECT - COUNT( * ) + - 34 AS col2 FROM tab2 AS cor0
----
-37

skipif mysql # not compatible
query I rowsort label-7187
SELECT - COUNT ( * ) + - 34 AS col2 FROM tab2 AS cor0
----
-37

query I rowsort
SELECT col2 + - + col2 * + col2 + + 50 FROM tab1 AS cor0
----
-3372
-4506
-9070

onlyif mysql # DIV for integer division: 
query I rowsort label-7189
SELECT DISTINCT ( + + 77 ) * + col0 + + col2 DIV - + col0 * col1 FROM tab2
----
3542
4928
5775

skipif mysql # not compatible
query I rowsort label-7189
SELECT DISTINCT ( + + 77 ) * + col0 + + col2 / - + col0 * col1 FROM tab2
----
3542
4928
5775

query I rowsort
SELECT ALL - 74 + + col0 FROM tab2 AS cor0
----
-10
-28
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7191
SELECT ALL 35 - - - ( COUNT( * ) ) FROM tab1 AS cor0
----
32

skipif mysql # not compatible
query I rowsort label-7191
SELECT ALL 35 - - - ( COUNT ( * ) ) FROM tab1 AS cor0
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-7192
SELECT DISTINCT MIN( DISTINCT + - col2 ) + + 2 AS col1 FROM tab1 AS cor0
----
-94

skipif mysql # not compatible
query I rowsort label-7192
SELECT DISTINCT MIN ( DISTINCT + - col2 ) + + 2 AS col1 FROM tab1 AS cor0
----
-94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * - - col1 col2 FROM tab0 AS cor0
----
-1215
-1827
-97

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7194
SELECT * FROM tab2 WHERE ( - CAST( - - col1 AS SIGNED ) ) + + - CAST( NULL AS SIGNED ) > - - 17 AND NOT 23 NOT BETWEEN - 92 * + col2 AND - col1
----

skipif mysql # not compatible
query III rowsort label-7194
SELECT * FROM tab2 WHERE ( - CAST ( - - col1 AS INTEGER ) ) + + - CAST ( NULL AS INTEGER ) > - - 17 AND NOT 23 NOT BETWEEN - 92 * + col2 AND - col1
----

query I rowsort
SELECT DISTINCT + 73 * + ( - + col2 ) FROM tab0
----
-3431
-7227
-730

query I rowsort
SELECT + col2 FROM tab2 WHERE NOT - - ( - 13 ) IS NULL
----
23
40
58

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7197
SELECT ALL * FROM tab2 WHERE + 57 NOT BETWEEN - col0 - col0 * + - col2 / col0 + - CAST( 16 AS SIGNED ) AND - 71
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-7197
SELECT ALL * FROM tab2 WHERE + 57 NOT BETWEEN - col0 - col0 * + - col2 / col0 + - CAST ( 16 AS INTEGER ) AND - 71
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7198
SELECT + 57 col0 FROM tab2 WHERE NOT NULL IN ( - + CAST( NULL AS SIGNED ), col0, + col0, + 33 )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7198
SELECT + 57 col0 FROM tab2 WHERE NOT NULL IN ( - + CAST ( NULL AS INTEGER ), col0, + col0, + 33 )
----

query I rowsort
SELECT + 84 * col2 FROM tab2 AS cor0
----
1932
3360
4872

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT + 3 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-7201
SELECT DISTINCT - 63 DIV 24 FROM tab2
----
-2

skipif mysql # not compatible
query I rowsort label-7201
SELECT DISTINCT - 63 / 24 FROM tab2
----
-2

onlyif mysql # DIV for integer division: 
query II rowsort label-7202
SELECT DISTINCT ( + 67 ) + - - 70, ( col2 ) DIV - col1 col0 FROM tab0
----
137
-99
137
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7202
SELECT DISTINCT ( + 67 ) + - - 70, ( col2 ) / - col1 col0 FROM tab0
----
137
-99
137
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7203
SELECT + 94 + CAST( AVG ( - 29 ) AS SIGNED ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
65

skipif mysql # not compatible
query I rowsort label-7203
SELECT + 94 + CAST ( AVG ( - 29 ) AS INTEGER ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
65

query I rowsort
SELECT DISTINCT - 30 + col0 FROM tab1 AS cor0
----
21
55
61

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col2 AS col0, + 6 + + col1 col2 FROM tab1 AS cor0
----
59
11
68
53
96
20

query I rowsort
SELECT + col1 + - 27 - - 79 FROM tab0
----
133
53
73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7207
SELECT DISTINCT CAST( NULL AS SIGNED ) * + - MAX( - + col1 ) * 36 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-7207
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + - MAX ( - + col1 ) * 36 FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT 93 * col2 + + col0 FROM tab2
----
2185
3784
5469

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7209
SELECT ALL * FROM tab2 WHERE 64 * - - CAST( NULL AS SIGNED ) * col1 * + col1 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-7209
SELECT ALL * FROM tab2 WHERE 64 * - - CAST ( NULL AS INTEGER ) * col1 * + col1 IS NOT NULL
----

query II rowsort
SELECT ALL - col2 AS col0, col2 AS col2 FROM tab2
----
-23
23
-40
40
-58
58

query I rowsort
SELECT - col0 + + 1 AS col1 FROM tab2
----
-45
-63
-74

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 99 + + 13 + - - 0 - - ( + - col2 ) * + col1 * + 55 + + col0 col2 FROM tab0
----
-11549
-209456
-5434

onlyif mysql # aggregate syntax: 
query I rowsort label-7213
SELECT COUNT( * ) + - 94 AS col0 FROM tab0
----
-91

skipif mysql # not compatible
query I rowsort label-7213
SELECT COUNT ( * ) + - 94 AS col0 FROM tab0
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-7214
SELECT ALL + COUNT( ALL - 16 ) AS col1 FROM tab1 AS cor0 WHERE ( 91 ) - ( ( + + ( - + col0 ) ) ) * + col0 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-7214
SELECT ALL + COUNT ( ALL - 16 ) AS col1 FROM tab1 AS cor0 WHERE ( 91 ) - ( ( + + ( - + col0 ) ) ) * + col0 IS NULL
----
0

query I rowsort
SELECT ALL - 61 - - col1 AS col0 FROM tab1 AS cor0
----
-14
-47
-56

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7216
SELECT * FROM tab1 AS cor0 WHERE CAST( + - 64 AS DECIMAL ) * + - ( + - ( col0 ) ) < col2 * col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-7216
SELECT * FROM tab1 AS cor0 WHERE CAST ( + - 64 AS REAL ) * + - ( + - ( col0 ) ) < col2 * col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7217
SELECT CAST( NULL AS SIGNED ) * - 19 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7217
SELECT CAST ( NULL AS INTEGER ) * - 19 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7218
SELECT ALL + 25 * + SUM( - 18 ) col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) < col2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7218
SELECT ALL + 25 * + SUM ( - 18 ) col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) < col2
----
NULL

query II rowsort
SELECT col2 - + - col0 AS col1, + col0 FROM tab2
----
104
64
133
75
69
46

onlyif mysql # DIV for integer division: 
query II rowsort label-7220
SELECT col1 - + col1 AS col1, 44 DIV 13 - + col0 + - 76 DIV + 78 col0 FROM tab0
----
0
-12
0
-84
0
-94

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7220
SELECT col1 - + col1 AS col1, 44 / 13 - + col0 + - 76 / + 78 col0 FROM tab0
----
0
-12
0
-84
0
-94

query II rowsort
SELECT col1 + + - col1 AS col0, + 68 AS col0 FROM tab1 cor0
----
0
68
0
68
0
68

query I rowsort
SELECT ALL - - col2 + - col1 FROM tab1 cor0
----
21
54
82

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 30 / + 91 * 48 * + col2 >= - col2 * - 73 + + + col0 - - col1 * + 82 * col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 65 col2 FROM tab0 AS cor0
----
65

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 96 col2 FROM tab0 AS cor0
----
-96
-96
-96

onlyif mysql # DIV for integer division: 
query I rowsort label-7226
SELECT + col2 DIV - - ( col0 ) AS col1 FROM tab0 AS cor0
----
0
1
3

skipif mysql # not compatible
query I rowsort label-7226
SELECT + col2 / - - ( col0 ) AS col1 FROM tab0 AS cor0
----
0
1
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7227
SELECT DISTINCT + 23 * + COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
69

skipif mysql # not compatible
query I rowsort label-7227
SELECT DISTINCT + 23 * + COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-7228
SELECT + COUNT( * ) FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND + col2
----
0

skipif mysql # not compatible
query I rowsort label-7228
SELECT + COUNT ( * ) FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND + col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7229
SELECT ALL + COUNT( * ) DIV - COUNT( DISTINCT - col2 ) AS col1 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-7229
SELECT ALL + COUNT ( * ) / - COUNT ( DISTINCT - col2 ) AS col1 FROM tab0 AS cor0
----
-1

query I rowsort
SELECT DISTINCT + ( - col2 ) * - col2 * col1 FROM tab1
----
129024
17405
217328

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7231
SELECT ALL col0 / - CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7231
SELECT ALL col0 / - CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7232
SELECT ALL COUNT( * ) * + + 13 FROM tab2
----
39

skipif mysql # not compatible
query I rowsort label-7232
SELECT ALL COUNT ( * ) * + + 13 FROM tab2
----
39

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7233
SELECT DISTINCT * FROM tab1 WHERE NOT + CAST( - 78 AS SIGNED ) + - + col0 < col2
----

skipif mysql # not compatible
query III rowsort label-7233
SELECT DISTINCT * FROM tab1 WHERE NOT + CAST ( - 78 AS INTEGER ) + - + col0 < col2
----

query I rowsort
SELECT DISTINCT + 63 * + 6 FROM tab2
----
378

query I rowsort
SELECT - ( + 2 ) AS col1 FROM tab2
----
-2
-2
-2

query I rowsort
SELECT ALL - 57 * - col0 - + ( col1 ) AS col1 FROM tab1 AS cor0
----
2893
4840
5140

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT NULL BETWEEN 33 AND - + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7238
SELECT - CAST( 52 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-52
-52
-52

skipif mysql # not compatible
query I rowsort label-7238
SELECT - CAST ( 52 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-52
-52
-52

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN NULL AND - col0 * ( - col2 ) / - 65
----

query I rowsort
SELECT DISTINCT - col1 + + - col1 FROM tab0 AS cor0
----
-162
-2
-42

query I rowsort
SELECT + ( - - col2 ) * + 95 - + ( + col0 ) FROM tab0 AS cor0 WHERE 95 < ( NULL )
----

query I rowsort
SELECT - - col0 + - - 44 AS col2 FROM tab1 AS cor0
----
129
135
95

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col2 + + 54 + + col2 - col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7244
SELECT + COUNT( * ) * - + 27 col0 FROM tab2
----
-81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7244
SELECT + COUNT ( * ) * - + 27 col0 FROM tab2
----
-81

query III rowsort
SELECT * FROM tab0 WHERE - col1 - - - col0 - - col1 * - col2 * + col1 * + col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7246
SELECT ALL + COUNT( - col2 ) DIV + 21 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-7246
SELECT ALL + COUNT ( - col2 ) / + 21 FROM tab1
----
0

query I rowsort
SELECT DISTINCT 79 * - - col0 + - - col1 FROM tab0
----
1266
6894
7664

query I rowsort
SELECT ALL + 47 * col0 * - 88 + + col2 + - col2 + - col0 - col0 * col0 AS col0 FROM tab1 AS cor0
----
-213588
-358870
-384748

query II rowsort
SELECT - col1 + + - 37 + + col2 AS col0, + col0 * + col2 FROM tab1 AS cor0
----
-16
6188
17
5015
45
4896

onlyif mysql # aggregate syntax: 
query I rowsort label-7250
SELECT 64 + ( + COUNT( * ) ) + - 14 AS col0 FROM tab0 AS cor0
----
53

skipif mysql # not compatible
query I rowsort label-7250
SELECT 64 + ( + COUNT ( * ) ) + - 14 AS col0 FROM tab0 AS cor0
----
53

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + - 18 col0 FROM tab0 AS cor0
----
-17
3
63

onlyif mysql # aggregate syntax: 
query I rowsort label-7252
SELECT + 9 + - COUNT( DISTINCT - + col0 ) AS col0 FROM tab1 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-7252
SELECT + 9 + - COUNT ( DISTINCT - + col0 ) AS col0 FROM tab1 AS cor0
----
6

query I rowsort
SELECT + col0 * col1 FROM tab2 WHERE NULL NOT IN ( + col2, col0 + - ( 33 ), + 3 + - + col2 )
----

query I rowsort
SELECT DISTINCT col2 FROM tab2 WHERE NOT NULL > 8
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 col2, col2 FROM tab0 AS cor0
----
15
47
87
10
97
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 * col1 col2, - 2 AS col2 FROM tab2 cor0
----
2601
-2
4489
-2
5929
-2

query II rowsort
SELECT + col0, 56 * - + col0 AS col1 FROM tab0 AS cor0
----
15
-840
87
-4872
97
-5432

onlyif mysql # DIV for integer division: 
query I rowsort label-7258
SELECT col1 * - col1 DIV - - col1 AS col1 FROM tab0 AS cor0
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-7258
SELECT col1 * - col1 / - - col1 AS col1 FROM tab0 AS cor0
----
-1
-21
-81

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7259
SELECT - ( CAST( NULL AS DECIMAL ) ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7259
SELECT - ( CAST ( NULL AS REAL ) ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + ( + 64 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7261
SELECT CAST( + + 21 AS SIGNED ) FROM tab0
----
21
21
21

skipif mysql # not compatible
query I rowsort label-7261
SELECT CAST ( + + 21 AS INTEGER ) FROM tab0
----
21
21
21

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7262
SELECT ALL * FROM tab0 WHERE NOT - CAST( NULL AS SIGNED ) * 95 >= + 5
----

skipif mysql # not compatible
query III rowsort label-7262
SELECT ALL * FROM tab0 WHERE NOT - CAST ( NULL AS INTEGER ) * 95 >= + 5
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7263
SELECT DISTINCT 36 * + COUNT( * ) * - MAX( + col1 ) AS col0 FROM tab1 AS cor0
----
-5076

skipif mysql # not compatible
query I rowsort label-7263
SELECT DISTINCT 36 * + COUNT ( * ) * - MAX ( + col1 ) AS col0 FROM tab1 AS cor0
----
-5076

query I rowsort
SELECT DISTINCT + 85 * - + 26 FROM tab2 AS cor0
----
-2210

onlyif mysql # aggregate syntax: 
query I rowsort label-7265
SELECT ALL + + ( + - MIN( ALL - col0 ) ) FROM tab1 cor0
----
91

skipif mysql # not compatible
query I rowsort label-7265
SELECT ALL + + ( + - MIN ( ALL - col0 ) ) FROM tab1 cor0
----
91

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT ( - col2 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + ( + 99 ) AS col1 FROM tab2 AS cor0
----
99
99
99

query I rowsort
SELECT - 56 * + 33 * + - 57 FROM tab2 AS cor0
----
105336
105336
105336

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NOT - 9 IS NOT NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7270
SELECT ALL + - col0 * - - col0 - + - 98 + - col0 DIV + col1 FROM tab1 AS cor0
----
-2506
-7144
-8184

skipif mysql # not compatible
query I rowsort label-7270
SELECT ALL + - col0 * - - col0 - + - 98 + - col0 / + col1 FROM tab1 AS cor0
----
-2506
-7144
-8184

query II rowsort
SELECT - col2 + - 51 AS col0, + col1 AS col2 FROM tab0
----
-150
1
-61
21
-98
81

query I rowsort
SELECT col1 + col1 * - - 19 + + 68 * - col1 FROM tab1
----
-2256
-240
-672

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7273
SELECT DISTINCT - CAST( NULL AS SIGNED ) + COUNT( * ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-7273
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + COUNT ( * ) AS col1 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7274
SELECT MIN( ALL + + 29 ) AS col0 FROM tab0
----
29

skipif mysql # not compatible
query I rowsort label-7274
SELECT MIN ( ALL + + 29 ) AS col0 FROM tab0
----
29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7275
SELECT ( + + SUM( DISTINCT + CAST( NULL AS SIGNED ) ) ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7275
SELECT ( + + SUM ( DISTINCT + CAST ( NULL AS INTEGER ) ) ) AS col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT col0 * - + 42 + - col0 FROM tab1 AS cor0
----
-2193
-3655
-3913

onlyif mysql # aggregate syntax: 
query I rowsort label-7277
SELECT ALL - + COUNT( * ) * - + 93 * + + 72 * + 42 + + COUNT( * ) + - 2 FROM tab1 AS cor0
----
843697

skipif mysql # not compatible
query I rowsort label-7277
SELECT ALL - + COUNT ( * ) * - + 93 * + + 72 * + 42 + + COUNT ( * ) + - 2 FROM tab1 AS cor0
----
843697

query I rowsort
SELECT DISTINCT + 42 - - - col1 FROM tab0 AS cor0
----
-39
21
41

query I rowsort
SELECT ALL col2 + - 71 + + + col0 FROM tab0 cor0
----
-9
125
26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - - col1 + - 67 AS col1, col1 col1 FROM tab2 cor0
----
-16
51
0
67
10
77

query I rowsort
SELECT ALL 30 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to da5de0c411a2c0f445400f1b63ea9f89

query IIIIII rowsort
SELECT * FROM tab1 cor0 CROSS JOIN tab2 AS cor1 WHERE ( 26 IS NULL )
----

query I rowsort
SELECT col0 * - - 77 FROM tab1
----
3927
6545
7007

query I rowsort
SELECT ALL ( - - 80 ) FROM tab0 WHERE - 84 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7285
SELECT DISTINCT - + COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
-9

skipif mysql # not compatible
query I rowsort label-7285
SELECT DISTINCT - + COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7286
SELECT * FROM tab2 WHERE NOT + CAST( - + col0 AS SIGNED ) - + - col1 + - + col0 * - - col1 NOT BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query III rowsort label-7286
SELECT * FROM tab2 WHERE NOT + CAST ( - + col0 AS INTEGER ) - + - col1 + - + col0 * - - col1 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT col0 + - 52 AS col0 FROM tab1 WHERE NOT NULL >= + + col1
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col0 BETWEEN + col2 AND - col1
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 80 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-7290
SELECT ALL + 62 * SUM( 3 ) FROM tab2 cor0
----
558

skipif mysql # not compatible
query I rowsort label-7290
SELECT ALL + 62 * SUM ( 3 ) FROM tab2 cor0
----
558

query I rowsort
SELECT ALL + 93 * col2 FROM tab2 AS cor0
----
2139
3720
5394

query I rowsort
SELECT 5 * + col0 AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT - 39 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7294
SELECT DISTINCT - + MIN( DISTINCT - + 35 ) FROM tab1 cor0
----
35

skipif mysql # not compatible
query I rowsort label-7294
SELECT DISTINCT - + MIN ( DISTINCT - + 35 ) FROM tab1 cor0
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-7295
SELECT DISTINCT + MAX( DISTINCT + 62 ) FROM tab1
----
62

skipif mysql # not compatible
query I rowsort label-7295
SELECT DISTINCT + MAX ( DISTINCT + 62 ) FROM tab1
----
62

query II rowsort
SELECT + + col0, + 43 * + col1 FROM tab0 AS cor0
----
15
3483
87
903
97
43

query I rowsort
SELECT + col2 * + 74 + - col2 + + 79 AS col1 FROM tab2
----
1758
2999
4313

query I rowsort
SELECT col1 + + + col0 * + col2 AS col0 FROM tab2
----
1109
2637
4417

query I rowsort
SELECT + + 79 * - + col1 FROM tab1 WHERE + + 73 * + ( + col1 ) BETWEEN - + 41 AND + + ( - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7300
SELECT - COUNT( * ) + 61 AS col2 FROM tab2
----
58

skipif mysql # not compatible
query I rowsort label-7300
SELECT - COUNT ( * ) + 61 AS col2 FROM tab2
----
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7301
SELECT DISTINCT + - CAST( NULL AS SIGNED ) * COUNT( DISTINCT col2 ) * - - COUNT( * ) + + 42 + + MIN( DISTINCT + 85 ) + COUNT( * ) col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7301
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) * COUNT ( DISTINCT col2 ) * - - COUNT ( * ) + + 42 + + MIN ( DISTINCT + 85 ) + COUNT ( * ) col0 FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7302
SELECT DISTINCT + - 0 + + SUM( + col0 ) * + COUNT( * ) * CAST( NULL AS SIGNED ), + 45 AS col0 FROM tab2 AS cor0
----
NULL
45

skipif mysql # not compatible
query II rowsort label-7302
SELECT DISTINCT + - 0 + + SUM ( + col0 ) * + COUNT ( * ) * CAST ( NULL AS INTEGER ), + 45 AS col0 FROM tab2 AS cor0
----
NULL
45

query I rowsort
SELECT col0 * + + ( + + col1 ) + + 28 FROM tab1 AS cor0
----
4305
453
742

onlyif mysql # aggregate syntax: 
query I rowsort label-7304
SELECT ALL COUNT( * ) * + ( 13 ) AS col0 FROM tab1
----
39

skipif mysql # not compatible
query I rowsort label-7304
SELECT ALL COUNT ( * ) * + ( 13 ) AS col0 FROM tab1
----
39

query I rowsort
SELECT 43 * - + col2 FROM tab1
----
-2537
-2924
-4128

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7306
SELECT ALL + CAST( NULL AS SIGNED ) FROM tab1 WHERE NOT + ( col2 ) * col0 + - col0 IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7306
SELECT ALL + CAST ( NULL AS INTEGER ) FROM tab1 WHERE NOT + ( col2 ) * col0 + - col0 IS NULL
----
NULL
NULL
NULL

query I rowsort
SELECT + - 16 / + 24 * col2 AS col0 FROM tab2 WHERE - + 67 + - 67 BETWEEN NULL AND + col0
----

query I rowsort
SELECT DISTINCT col0 * + - 30 AS col0 FROM tab1 AS cor0
----
-1530
-2550
-2730

query I rowsort
SELECT - 88 AS col1 FROM tab2 AS cor0 WHERE 51 IS NOT NULL
----
-88
-88
-88

query I rowsort
SELECT + col1 * 93 + + col1 - + + col2 FROM tab1 AS cor0
----
1220
411
4350

query I rowsort
SELECT DISTINCT col0 + + + 56 FROM tab0 cor0
----
143
153
71

onlyif mysql # DIV for integer division: 
query I rowsort label-7312
SELECT + col2 DIV + + col0 FROM tab1 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-7312
SELECT + col2 / + + col0 FROM tab1 AS cor0
----
0
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7313
SELECT - - COUNT( * ) * ( + MIN( ALL - col0 ) ) AS col1 FROM tab0 AS cor0
----
-291

skipif mysql # not compatible
query I rowsort label-7313
SELECT - - COUNT ( * ) * ( + MIN ( ALL - col0 ) ) AS col1 FROM tab0 AS cor0
----
-291

query I rowsort
SELECT - col1 AS col2 FROM tab2 AS cor0 WHERE NOT + 67 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7315
SELECT DISTINCT COUNT( * ) AS col2, ( + - COUNT( + ( - col2 ) ) ) AS col1 FROM tab1 AS cor0
----
3
-3

skipif mysql # not compatible
query II rowsort label-7315
SELECT DISTINCT COUNT ( * ) AS col2, ( + - COUNT ( + ( - col2 ) ) ) AS col1 FROM tab1 AS cor0
----
3
-3

query II rowsort
SELECT DISTINCT 52 AS col2, col1 FROM tab0 AS cor0
----
52
1
52
21
52
81

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7317
SELECT - + 28, - CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-28
NULL
-28
NULL
-28
NULL

skipif mysql # not compatible
query II rowsort label-7317
SELECT - + 28, - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-28
NULL
-28
NULL
-28
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7318
SELECT CAST( 10 AS SIGNED ) FROM tab0
----
10
10
10

skipif mysql # not compatible
query I rowsort label-7318
SELECT CAST ( 10 AS INTEGER ) FROM tab0
----
10
10
10

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( NULL ) IN ( - col1 * col1 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7320
SELECT DISTINCT ( CAST( - MAX( 52 ) AS SIGNED ) ) FROM tab1
----
-52

skipif mysql # not compatible
query I rowsort label-7320
SELECT DISTINCT ( CAST ( - MAX ( 52 ) AS INTEGER ) ) FROM tab1
----
-52

query I rowsort
SELECT col1 FROM tab0 WHERE + col0 IS NOT NULL
----
1
21
81

query III rowsort
SELECT * FROM tab1 WHERE NOT 43 + col1 IS NOT NULL
----

query I rowsort
SELECT + ( - col2 ) * - 22 + + col1 FROM tab1
----
1303
1543
2126

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7324
SELECT * FROM tab1 WHERE - CAST( NULL AS SIGNED ) - - 66 BETWEEN NULL AND col1
----

skipif mysql # not compatible
query III rowsort label-7324
SELECT * FROM tab1 WHERE - CAST ( NULL AS INTEGER ) - - 66 BETWEEN NULL AND col1
----

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7326
SELECT CAST( NULL AS SIGNED ) AS col1 FROM tab2 WHERE 12 NOT IN ( col2 * - 11 + + ( 18 ) )
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7326
SELECT CAST ( NULL AS INTEGER ) AS col1 FROM tab2 WHERE 12 NOT IN ( col2 * - 11 + + ( 18 ) )
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 69 col1 FROM tab2
----
69
69
69

onlyif mysql # aggregate syntax: 
query I rowsort label-7328
SELECT + COUNT( ALL col1 ) col2 FROM tab1
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7328
SELECT + COUNT ( ALL col1 ) col2 FROM tab1
----
3

query I rowsort
SELECT - ( col0 ) * - 24 - + 17 FROM tab2
----
1087
1519
1783

query I rowsort
SELECT DISTINCT 74 + - ( - col1 ) AS col2 FROM tab0
----
155
75
95

query I rowsort
SELECT DISTINCT + col2 * col2 AS col2 FROM tab0 WHERE + col1 IN ( - col0 + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7332
SELECT ALL + 85 - - COUNT( 16 ) FROM tab2 WHERE NOT + col2 IS NULL
----
88

skipif mysql # not compatible
query I rowsort label-7332
SELECT ALL + 85 - - COUNT ( 16 ) FROM tab2 WHERE NOT + col2 IS NULL
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-7333
SELECT ALL - 31 + COUNT( DISTINCT 81 ) AS col1 FROM tab1 WHERE NOT col0 <> ( + 25 )
----
-31

skipif mysql # not compatible
query I rowsort label-7333
SELECT ALL - 31 + COUNT ( DISTINCT 81 ) AS col1 FROM tab1 WHERE NOT col0 <> ( + 25 )
----
-31

query III rowsort
SELECT * FROM tab0 WHERE 92 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7335
SELECT COUNT( * ) + + MIN( + col1 ) FROM tab2
----
54

skipif mysql # not compatible
query I rowsort label-7335
SELECT COUNT ( * ) + + MIN ( + col1 ) FROM tab2
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-7336
SELECT MAX( ALL col2 ) + 94 FROM tab1
----
190

skipif mysql # not compatible
query I rowsort label-7336
SELECT MAX ( ALL col2 ) + 94 FROM tab1
----
190

query I rowsort
SELECT 39 * - 50 + - col2 * col0 FROM tab0
----
-11553
-2655
-2820

query III rowsort
SELECT * FROM tab1 WHERE NOT + 4 BETWEEN col0 AND ( col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col1 * col0 + 14 * col1 FROM tab0
----
-1533
-81
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-7340
SELECT - COUNT( * ) * 57 FROM tab1 WHERE NOT ( NULL ) NOT BETWEEN + col2 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-7340
SELECT - COUNT ( * ) * 57 FROM tab1 WHERE NOT ( NULL ) NOT BETWEEN + col2 AND NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7341
SELECT CAST( col1 AS SIGNED ) + 83 FROM tab0 AS cor0
----
104
164
84

skipif mysql # not compatible
query I rowsort label-7341
SELECT CAST ( col1 AS INTEGER ) + 83 FROM tab0 AS cor0
----
104
164
84

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT NULL NOT BETWEEN - 8 * - col2 AND col2 * 70
----

query I rowsort
SELECT col0 * 52 + col1 FROM tab2 AS cor0
----
2443
3405
3967

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * col1 + - col0 * + col1 col2 FROM tab1 AS cor0
----
-450
-6486
-910

query I rowsort
SELECT + 55 * + col1 AS col2 FROM tab0 AS cor0
----
1155
4455
55

onlyif mysql # aggregate syntax: 
query I rowsort label-7346
SELECT ALL 94 * - COUNT( * ) FROM tab2 cor0
----
-282

skipif mysql # not compatible
query I rowsort label-7346
SELECT ALL 94 * - COUNT ( * ) FROM tab2 cor0
----
-282

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL <= ( - 56 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - ( col0 ) + + col1 >= NULL
----

query I rowsort
SELECT DISTINCT col1 AS col0 FROM tab2 WHERE NOT col0 - 54 / 18 < + ( 47 )
----
67
77

query I rowsort
SELECT - col2 - col0 * col2 FROM tab1 AS cor0
----
-4992
-5074
-6256

query I rowsort
SELECT DISTINCT col1 + - 8 * - 44 AS col1 FROM tab0 AS cor0
----
353
373
433

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( - col0 * - 51 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7353
SELECT ALL - + ( - SUM( DISTINCT - 68 ) ) * 17 + COUNT( * ) AS col0 FROM tab2 AS cor0
----
-1153

skipif mysql # not compatible
query I rowsort label-7353
SELECT ALL - + ( - SUM ( DISTINCT - 68 ) ) * 17 + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-1153

query I rowsort
SELECT DISTINCT + ( col2 ) - col2 FROM tab1 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7355
SELECT DISTINCT 12 + - CAST( - col0 AS SIGNED ) * 88 AS col2 FROM tab1 AS cor0
----
4500
7492
8020

skipif mysql # not compatible
query I rowsort label-7355
SELECT DISTINCT 12 + - CAST ( - col0 AS INTEGER ) * 88 AS col2 FROM tab1 AS cor0
----
4500
7492
8020

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) = - 65 * - col1
----

query I rowsort
SELECT + 40 AS col1 FROM tab2 WHERE ( + 84 ) >= ( - ( col1 ) ) * - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7358
SELECT MIN( + 78 ) + COUNT( * ) AS col2 FROM tab2
----
81

skipif mysql # not compatible
query I rowsort label-7358
SELECT MIN ( + 78 ) + COUNT ( * ) AS col2 FROM tab2
----
81

query I rowsort
SELECT ALL col0 - + col0 + - 97 FROM tab0
----
-97
-97
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-7360
SELECT ALL col2 DIV - + col2 AS col2 FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-7360
SELECT ALL col2 / - + col2 AS col2 FROM tab1
----
-1
-1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7361
SELECT 12 + 71 * - COUNT( * ) AS col0 FROM tab2
----
-201

skipif mysql # not compatible
query I rowsort label-7361
SELECT 12 + 71 * - COUNT ( * ) AS col0 FROM tab2
----
-201

onlyif mysql # aggregate syntax: 
query I rowsort label-7362
SELECT MAX( col2 ) * - MIN( + 51 + 42 ) FROM tab2
----
-5394

skipif mysql # not compatible
query I rowsort label-7362
SELECT MAX ( col2 ) * - MIN ( + 51 + 42 ) FROM tab2
----
-5394

onlyif mysql # aggregate syntax: 
query I rowsort label-7363
SELECT ALL + ( - MAX( col1 ) ) * - COUNT( * ) FROM tab1
----
141

skipif mysql # not compatible
query I rowsort label-7363
SELECT ALL + ( - MAX ( col1 ) ) * - COUNT ( * ) FROM tab1
----
141

query I rowsort
SELECT 79 FROM tab0 WHERE - col1 IS NOT NULL
----
79
79
79

query I rowsort
SELECT col1 AS col2 FROM tab0 WHERE col0 + - col0 * - col1 IN ( - col2 )
----

query I rowsort
SELECT 61 * + + col0 AS col0 FROM tab0
----
5307
5917
915

query I rowsort
SELECT ALL - 14 FROM tab2 WHERE NOT ( + col1 * - col0 ) NOT IN ( - ( + col2 ) ) OR col1 * + col0 <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7368
SELECT * FROM tab2 WHERE NOT + CAST( NULL AS SIGNED ) + col2 IS NULL
----

skipif mysql # not compatible
query III rowsort label-7368
SELECT * FROM tab2 WHERE NOT + CAST ( NULL AS INTEGER ) + col2 IS NULL
----

query I rowsort
SELECT - 89 - + col0 AS col2 FROM tab1 AS cor0 WHERE NOT ( col2 ) >= + 13
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7370
SELECT DISTINCT - COUNT( * ) * - 8 DIV 89 AS col2 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7370
SELECT DISTINCT - COUNT ( * ) * - 8 / 89 AS col2 FROM tab0 AS cor0
----
0

query I rowsort
SELECT ALL - - col2 * + + col2 FROM tab0 cor0
----
100
2209
9801

onlyif mysql # aggregate syntax: 
query I rowsort label-7372
SELECT DISTINCT - - ( ( + COUNT( * ) ) ) AS col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7372
SELECT DISTINCT - - ( ( + COUNT ( * ) ) ) AS col2 FROM tab0 AS cor0
----
3

query I rowsort
SELECT ALL - col2 * 59 AS col1 FROM tab0 AS cor0
----
-2773
-5841
-590

query I rowsort
SELECT - 39 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 504d14939d58aeb4a14f31c80de5b53e

query II rowsort
SELECT 25 AS col2, col1 FROM tab0
----
25
1
25
21
25
81

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( 33 ) = ( 23 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( + - 3 ) - col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7378
SELECT DISTINCT - + SUM( 78 ) AS col0 FROM tab2 cor0
----
-234

skipif mysql # not compatible
query I rowsort label-7378
SELECT DISTINCT - + SUM ( 78 ) AS col0 FROM tab2 cor0
----
-234

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 13 col2 FROM tab2 cor0 WHERE NOT col1 >= + 63
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-7380
SELECT DISTINCT MIN( - col0 ) * - - 25 FROM tab1 AS cor0
----
-2275

skipif mysql # not compatible
query I rowsort label-7380
SELECT DISTINCT MIN ( - col0 ) * - - 25 FROM tab1 AS cor0
----
-2275

query I rowsort
SELECT - + col0 AS col2 FROM tab0 AS cor0 WHERE NOT NULL <= col0
----

query II rowsort
SELECT col0, + 13 - - + col0 AS col0 FROM tab2 AS cor0
----
46
59
64
77
75
88

query I rowsort
SELECT - 59 * 80 AS col1 FROM tab1 AS cor0
----
-4720
-4720
-4720

query I rowsort
SELECT 46 FROM tab2 WHERE NOT NULL NOT BETWEEN + - 47 + col0 AND ( 23 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7385
SELECT MIN( DISTINCT + 66 ) AS col1 FROM tab2
----
66

skipif mysql # not compatible
query I rowsort label-7385
SELECT MIN ( DISTINCT + 66 ) AS col1 FROM tab2
----
66

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7386
SELECT DISTINCT * FROM tab1 WHERE NOT ( CAST( NULL AS DECIMAL ) * - ( - col1 ) * - 62 ) >= + 73
----

skipif mysql # not compatible
query III rowsort label-7386
SELECT DISTINCT * FROM tab1 WHERE NOT ( CAST ( NULL AS REAL ) * - ( - col1 ) * - 62 ) >= + 73
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7387
SELECT DISTINCT col1 DIV + 53 AS col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-7387
SELECT DISTINCT col1 / + 53 AS col0 FROM tab1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7388
SELECT DISTINCT + CAST( NULL AS SIGNED ) * col0 + 39 AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-7388
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * col0 + 39 AS col2 FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT col0 - col0 * + col2 AS col0 FROM tab2 WHERE + col2 NOT IN ( + 69 * - col2 )
----
-1012
-2496
-4275

query I rowsort
SELECT + ( + + col0 ) AS col2 FROM tab0
----
15
87
97

onlyif mysql # DIV for integer division: 
query I rowsort label-7391
SELECT ALL - col2 + col1 + - col1 + + col0 DIV 25 AS col1 FROM tab1
----
-56
-65
-94

skipif mysql # not compatible
query I rowsort label-7391
SELECT ALL - col2 + col1 + - col1 + + col0 / 25 AS col1 FROM tab1
----
-56
-65
-94

query I rowsort
SELECT col0 + + - col2 + - 11 * - 86 AS col2 FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7393
SELECT ALL col2 + + CAST( + col1 AS SIGNED ) AS col0 FROM tab1
----
110
115
64

skipif mysql # not compatible
query I rowsort label-7393
SELECT ALL col2 + + CAST ( + col1 AS INTEGER ) AS col0 FROM tab1
----
110
115
64

onlyif mysql # aggregate syntax: 
query I rowsort label-7394
SELECT ALL - - COUNT( * ) + + ( - COUNT( * ) ) AS col2 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7394
SELECT ALL - - COUNT ( * ) + + ( - COUNT ( * ) ) AS col2 FROM tab0 AS cor0
----
0

query I rowsort
SELECT DISTINCT - 44 + col2 FROM tab0 AS cor0
----
-34
3
55

query I rowsort
SELECT - 39 + - col1 * + - 19 FROM tab0 AS cor0
----
-20
1500
360

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( col2 * - col2 ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7398
SELECT col2 DIV - - ( col2 ) FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-7398
SELECT col2 / - - ( col2 ) FROM tab0 AS cor0
----
1
1
1

query I rowsort
SELECT ALL 72 FROM tab0 cor0 WHERE col0 / col0 NOT BETWEEN col2 * + col0 * 81 AND + col2 * + 45 - 17
----
72
72
72

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( - ( - 37 ) / + + 82 ) >= ( col1 )
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE col1 + - - 63 < - + col2 * + 73
----

query I rowsort
SELECT DISTINCT - col2 * + col1 + + col2 + + col2 * + - ( ( col1 ) ) * col0 - col2 - - col0 AS col1 FROM tab2 AS cor0
----
-200136
-295261
-55085

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7403
SELECT ALL - CAST( NULL AS SIGNED ) + COUNT( * ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7403
SELECT ALL - CAST ( NULL AS INTEGER ) + COUNT ( * ) FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE ( NULL ) >= col2 * + - 54 - + - 90 AND NOT + col0 * 44 = NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7405
SELECT COUNT( + col1 ) AS col1 FROM tab1 WHERE + + col1 BETWEEN ( CAST( col1 AS SIGNED ) ) AND - col0 * - 86 + col0 * 28
----
3

skipif mysql # not compatible
query I rowsort label-7405
SELECT COUNT ( + col1 ) AS col1 FROM tab1 WHERE + + col1 BETWEEN ( CAST ( col1 AS INTEGER ) ) AND - col0 * - 86 + col0 * 28
----
3

query III rowsort
SELECT * FROM tab2 WHERE - - ( col2 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( NULL BETWEEN ( - 69 / - 27 ) AND ( col2 ) / - col1 + col1 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7408
SELECT 68 DIV + COUNT( * ) AS col1 FROM tab1, tab2 AS cor0
----
7

skipif mysql # not compatible
query I rowsort label-7408
SELECT 68 / + COUNT ( * ) AS col1 FROM tab1, tab2 AS cor0
----
7

query I rowsort
SELECT ALL - col0 - - 44 AS col1 FROM tab1
----
-41
-47
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-7410
SELECT - ( - COUNT( * ) ) FROM tab0 WHERE NOT ( NOT NULL <> col0 )
----
0

skipif mysql # not compatible
query I rowsort label-7410
SELECT - ( - COUNT ( * ) ) FROM tab0 WHERE NOT ( NOT NULL <> col0 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7411
SELECT col0 * - - CAST( NULL AS SIGNED ) * - col2 * 38 AS col2, + 60 AS col1 FROM tab2 AS cor0
----
NULL
60
NULL
60
NULL
60

skipif mysql # not compatible
query II rowsort label-7411
SELECT col0 * - - CAST ( NULL AS INTEGER ) * - col2 * 38 AS col2, + 60 AS col1 FROM tab2 AS cor0
----
NULL
60
NULL
60
NULL
60

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col0 NOT BETWEEN NULL AND ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7413
SELECT ALL - + ( - col2 ) * CAST( NULL AS SIGNED ) * - + col1 / + ( + col0 ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7413
SELECT ALL - + ( - col2 ) * CAST ( NULL AS INTEGER ) * - + col1 / + ( + col0 ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL IN ( 55 * + col0, col2, - 54 )
----

query I rowsort
SELECT ALL + col1 * - 64 FROM tab2
----
-3264
-4288
-4928

onlyif mysql # aggregate syntax: 
query I rowsort label-7416
SELECT DISTINCT SUM( + col0 ) col0 FROM tab0
----
199

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7416
SELECT DISTINCT SUM ( + col0 ) col0 FROM tab0
----
199

onlyif mysql # DIV for integer division: 
query I rowsort label-7417
SELECT col1 * ( + col1 ) DIV 95 + 64 FROM tab1 AS cor0
----
64
66
87

skipif mysql # not compatible
query I rowsort label-7417
SELECT col1 * ( + col1 ) / 95 + 64 FROM tab1 AS cor0
----
64
66
87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7418
SELECT - MIN( ALL ( + - 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-7418
SELECT - MIN ( ALL ( + - CAST ( NULL AS INTEGER ) ) ) col1 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7419
SELECT ALL + COUNT( * ) FROM tab0 AS cor0 WHERE NOT ( NULL NOT BETWEEN NULL AND NULL )
----
0

skipif mysql # not compatible
query I rowsort label-7419
SELECT ALL + COUNT ( * ) FROM tab0 AS cor0 WHERE NOT ( NULL NOT BETWEEN NULL AND NULL )
----
0

query I rowsort
SELECT - + col2 AS col2 FROM tab0 AS cor0 WHERE NOT ( - col0 ) <= - + col2
----
-47
-99

query I rowsort
SELECT ALL + col0 + - - 70 FROM tab0 AS cor0
----
157
167
85

query I rowsort
SELECT DISTINCT - col0 * col2 + - - 77 FROM tab0 AS cor0
----
-628
-793
-9526

onlyif mysql # DIV for integer division: 
query I rowsort label-7423
SELECT DISTINCT col0 DIV - col1 + - - col2 FROM tab2 AS cor0
----
23
40
57

skipif mysql # not compatible
query I rowsort label-7423
SELECT DISTINCT col0 / - col1 + - - col2 FROM tab2 AS cor0
----
23
40
57

onlyif mysql # DIV for integer division: 
query II rowsort label-7424
SELECT + col2 DIV + col2 AS col2, col2 AS col1 FROM tab2 AS cor0
----
1
23
1
40
1
58

skipif mysql # not compatible
query II rowsort label-7424
SELECT + col2 / + col2 AS col2, col2 AS col1 FROM tab2 AS cor0
----
1
23
1
40
1
58

query II rowsort
SELECT ALL + 51 AS col0, 45 - + col0 AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT DISTINCT + col0 * col1 AS col1 FROM tab0 AS cor0 WHERE NOT ( - 10 ) IS NOT NULL
----

query I rowsort
SELECT ALL + 91 * col1 * - col1 AS col2 FROM tab0
----
-40131
-597051
-91

query III rowsort
SELECT * FROM tab1 WHERE - col1 - + col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ( - col1 ) * ( 89 ) + + 40 * ( - 10 ) + col0 AS col1 FROM tab1
----
-1595
-4492
-760

query II rowsort
SELECT ALL col1, + col2 FROM tab1
----
14
96
47
68
5
59

query I rowsort
SELECT - 15 + + + 21 FROM tab2
----
6
6
6

onlyif mysql # aggregate syntax: 
query I rowsort label-7432
SELECT DISTINCT MIN( - 48 ) AS col0 FROM tab2 WHERE col1 IN ( - + col2 * + ( 57 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7432
SELECT DISTINCT MIN ( - 48 ) AS col0 FROM tab2 WHERE col1 IN ( - + col2 * + ( 57 ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7433
SELECT 31 + - COUNT( * ) * - 53 AS col2 FROM tab2
----
190

skipif mysql # not compatible
query I rowsort label-7433
SELECT 31 + - COUNT ( * ) * - 53 AS col2 FROM tab2
----
190

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7434
SELECT DISTINCT col0 + + col2 * col0 * + 28 + col1 / + + CAST( NULL AS DECIMAL ) * col1 * + 20 * col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-7434
SELECT DISTINCT col0 + + col2 * col0 * + 28 + col1 / + + CAST ( NULL AS REAL ) * col1 * + 20 * col2 FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT + - col1 * + col1 * + 54 + + col2 + + col1 FROM tab0 cor0
----
-23783
-354166
46

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( + col0 + - - 60 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL > col0 * col0
----

query I rowsort
SELECT - 92 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 1af709a79a3e56281ffdce4d931d5965

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 10 col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7440
SELECT + CAST( + COUNT( ALL col1 ) AS SIGNED ) + 36 AS col0 FROM tab1 AS cor0
----
39

skipif mysql # not compatible
query I rowsort label-7440
SELECT + CAST ( + COUNT ( ALL col1 ) AS INTEGER ) + 36 AS col0 FROM tab1 AS cor0
----
39

query II rowsort
SELECT + 8 AS col1, - col0 AS col0 FROM tab1 AS cor0 WHERE - 25 / - 62 >= 9 / + col0 + + 13
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7442
SELECT DISTINCT + - 17 + MAX( + 81 ) AS col1 FROM tab2 AS cor0
----
64

skipif mysql # not compatible
query I rowsort label-7442
SELECT DISTINCT + - 17 + MAX ( + 81 ) AS col1 FROM tab2 AS cor0
----
64

query I rowsort
SELECT ALL - col2 FROM tab2 AS cor0 WHERE - col2 <= + + col2 * + col0
----
-23
-40
-58

query I rowsort
SELECT ALL col2 + 14 AS col0 FROM tab2 AS cor0
----
37
54
72

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT + col0 NOT IN ( - col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7446
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) NOT IN ( col0, ( col1 ) * CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-7446
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) NOT IN ( col0, ( col1 ) * CAST ( NULL AS INTEGER ) )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-7447
SELECT - + ( - ( - col2 ) ) + + + col1 + - 22 AS col0, 69 DIV + col1 AS col2 FROM tab1 AS cor0
----
-104
4
-43
1
-76
13

skipif mysql # not compatible
query II rowsort label-7447
SELECT - + ( - ( - col2 ) ) + + + col1 + - 22 AS col0, 69 / + col1 AS col2 FROM tab1 AS cor0
----
-104
4
-43
1
-76
13

query I rowsort
SELECT col0 AS col0 FROM tab0 cor0 WHERE - 67 IS NOT NULL
----
15
87
97

query I rowsort
SELECT ALL + + 24 AS col0 FROM tab2 AS cor0
----
24
24
24

query I rowsort
SELECT ALL ( - 51 ) AS col2 FROM tab1
----
-51
-51
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-7451
SELECT - MIN( - 8 ) AS col1 FROM tab1
----
8

skipif mysql # not compatible
query I rowsort label-7451
SELECT - MIN ( - 8 ) AS col1 FROM tab1
----
8

query I rowsort
SELECT 90 AS col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
90
90
90

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-7453
SELECT - CAST( NULL AS DECIMAL ), 71 * - + col2 col2 FROM tab0
----
NULL
-3337
NULL
-7029
NULL
-710

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7453
SELECT - CAST ( NULL AS REAL ), 71 * - + col2 col2 FROM tab0
----
NULL
-3337
NULL
-7029
NULL
-710

onlyif mysql # aggregate syntax: 
query I rowsort label-7454
SELECT + MIN( ALL - + col1 ) FROM tab2
----
-77

skipif mysql # not compatible
query I rowsort label-7454
SELECT + MIN ( ALL - + col1 ) FROM tab2
----
-77

query I rowsort
SELECT ALL + 0 AS col0 FROM tab0 WHERE NOT + - 95 NOT BETWEEN + - col1 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7456
SELECT DISTINCT ( - MIN( DISTINCT + col1 ) ) FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-7456
SELECT DISTINCT ( - MIN ( DISTINCT + col1 ) ) FROM tab0
----
-1

query I rowsort
SELECT - 20 * - col1 AS col2 FROM tab0
----
1620
20
420

query III rowsort
SELECT * FROM tab1 WHERE NOT + - 93 + col1 >= - col1 / - 69 * 43
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + - col2 col2, 50 FROM tab1 cor0
----
-59
50
-68
50
-96
50

onlyif mysql # aggregate syntax: 
query I rowsort label-7460
SELECT + COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) < - + col0 * + col2 - col0 + col0
----
0

skipif mysql # not compatible
query I rowsort label-7460
SELECT + COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) < - + col0 * + col2 - col0 + col0
----
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( + 50 + + col1 * + 4 ) = NULL
----

query I rowsort
SELECT DISTINCT - AVG ( ALL - col2 ) + 55 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7463
SELECT ALL ( - col1 ) * + + CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7463
SELECT ALL ( - col1 ) * + + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 39 col1 FROM tab0 cor0
----
-39
-39
-39

query I rowsort
SELECT + 97 AS col0 FROM tab2 WHERE NOT + col2 < - + col0 + col1 * - - col0
----

query I rowsort
SELECT ALL + col2 * - col2 * + col2 FROM tab1 cor0
----
-205379
-314432
-884736

onlyif mysql # aggregate syntax: 
query I rowsort label-7467
SELECT ALL - 27 + + COUNT( * ) + ( SUM( - - ( + 98 ) ) ) + 10 AS col2 FROM tab2 AS cor0 WHERE - col1 / 32 <> ( + + col0 )
----
280

skipif mysql # not compatible
query I rowsort label-7467
SELECT ALL - 27 + + COUNT ( * ) + ( SUM ( - - ( + 98 ) ) ) + 10 AS col2 FROM tab2 AS cor0 WHERE - col1 / 32 <> ( + + col0 )
----
280

query I rowsort
SELECT DISTINCT - col2 FROM tab1 AS cor0 WHERE NOT - 21 < NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - ( - col1 ) + - 44 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7470
SELECT - col0 DIV - 96 AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7470
SELECT - col0 / - 96 AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
0
0
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7471
SELECT DISTINCT + 99 DIV - + MIN( DISTINCT 82 ) AS col2 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-7471
SELECT DISTINCT + 99 / - + MIN ( DISTINCT 82 ) AS col2 FROM tab0 AS cor0
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-7472
SELECT - 40 + + + COUNT( * ) AS col1, + 99 AS col1 FROM tab1 AS cor0
----
-37
99

skipif mysql # not compatible
query II rowsort label-7472
SELECT - 40 + + + COUNT ( * ) AS col1, + 99 AS col1 FROM tab1 AS cor0
----
-37
99

onlyif mysql # aggregate syntax: 
query I rowsort label-7473
SELECT ALL + ( - SUM( + + col1 ) ) AS col0 FROM tab2 AS cor0
----
-195

skipif mysql # not compatible
query I rowsort label-7473
SELECT ALL + ( - SUM ( + + col1 ) ) AS col0 FROM tab2 AS cor0
----
-195

query I rowsort
SELECT DISTINCT col0 * + 87 + 9 * - + col1 * + 61 + + 89 FROM tab2 cor0
----
-23908
-30169
-36616

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 97 col2 FROM tab2 AS cor0
----
97
97
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col2, + col0 * - col0 col1 FROM tab1 AS cor0
----
59
-7225
68
-8281
96
-2601

onlyif mysql # aggregate syntax: 
query I rowsort label-7477
SELECT DISTINCT 78 * - + SUM( DISTINCT + col0 ) FROM tab0
----
-15522

skipif mysql # not compatible
query I rowsort label-7477
SELECT DISTINCT 78 * - + SUM ( DISTINCT + col0 ) FROM tab0
----
-15522

onlyif mysql # aggregate syntax: 
query I rowsort label-7478
SELECT + - COUNT( * ) + + 52 AS col1 FROM tab2 cor0
----
49

skipif mysql # not compatible
query I rowsort label-7478
SELECT + - COUNT ( * ) + + 52 AS col1 FROM tab2 cor0
----
49

query II rowsort
SELECT - - col0 * - 36 + - col0 - - 86 * + col1 * col2 + - col1 AS col0, col2 FROM tab0 AS cor0
----
14820
10
326766
47
4924
99

onlyif mysql # aggregate syntax: 
query I rowsort label-7480
SELECT DISTINCT - SUM( DISTINCT col0 ) AS col2 FROM tab1
----
-227

skipif mysql # not compatible
query I rowsort label-7480
SELECT DISTINCT - SUM ( DISTINCT col0 ) AS col2 FROM tab1
----
-227

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7481
SELECT - + CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-7481
SELECT - + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query II rowsort
SELECT ALL 80, 36 FROM tab2 WHERE NOT col2 * - 96 * + 57 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT ( + col2 * + col0 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + 24 FROM tab0 AS cor0 WHERE NULL IS NULL
----
24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7485
SELECT ALL + SUM( CAST( NULL AS SIGNED ) ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7485
SELECT ALL + SUM ( CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( + 8 * - + ( 84 ) + col1 <> - 50 )
----

query I rowsort
SELECT + 45 AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT + col0 AS col0, - col1 FROM tab0 cor0
----
15
-81
87
-21
97
-1

query I rowsort
SELECT + + 66 * - col0 * - 67 FROM tab1 AS cor0
----
225522
375870
402402

onlyif mysql # aggregate syntax: 
query I rowsort label-7490
SELECT + - COUNT( ALL col0 ) AS col2 FROM tab2 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7490
SELECT + - COUNT ( ALL col0 ) AS col2 FROM tab2 cor0
----
-3

query I rowsort
SELECT DISTINCT col1 * col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7492
SELECT + ( - COUNT( * ) ) AS col2 FROM tab2 WHERE NOT - - col1 <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-7492
SELECT + ( - COUNT ( * ) ) AS col2 FROM tab2 WHERE NOT - - col1 <= NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7493
SELECT - 16 + - COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-25

skipif mysql # not compatible
query I rowsort label-7493
SELECT - 16 + - COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-25

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7494
SELECT DISTINCT + col0 + - 3 - - CAST( NULL AS SIGNED ) * + col1 * + col1 AS col2, col0 AS col1 FROM tab0 AS cor0
----
NULL
15
NULL
87
NULL
97

skipif mysql # not compatible
query II rowsort label-7494
SELECT DISTINCT + col0 + - 3 - - CAST ( NULL AS INTEGER ) * + col1 * + col1 AS col2, col0 AS col1 FROM tab0 AS cor0
----
NULL
15
NULL
87
NULL
97

onlyif mysql # aggregate syntax: 
query I rowsort label-7495
SELECT ALL - + MAX( + + 86 ) AS col1 FROM tab2 AS cor0
----
-86

skipif mysql # not compatible
query I rowsort label-7495
SELECT ALL - + MAX ( + + 86 ) AS col1 FROM tab2 AS cor0
----
-86

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 81 + - col0 col1 FROM tab0 AS cor0
----
-16
-6
66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 col1, 67 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT + col0 + 5 FROM tab0 cor0
----
102
20
92

onlyif mysql # aggregate syntax: 
query I rowsort label-7499
SELECT ALL COUNT( ALL col1 ) FROM tab1 AS cor0 WHERE + col0 <> + col1
----
3

skipif mysql # not compatible
query I rowsort label-7499
SELECT ALL COUNT ( ALL col1 ) FROM tab1 AS cor0 WHERE + col0 <> + col1
----
3

query I rowsort
SELECT ALL + 58 + - 81 AS col2 FROM tab0 AS cor0
----
-23
-23
-23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7501
SELECT - ( - COUNT( * ) ) + - - COUNT( + CAST( - 22 AS SIGNED ) ) AS col2 FROM tab1 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-7501
SELECT - ( - COUNT ( * ) ) + - - COUNT ( + CAST ( - 22 AS INTEGER ) ) AS col2 FROM tab1 AS cor0
----
6

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + 56 + - + col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7503
SELECT DISTINCT + 98 AS col1, ( + - 30 ) * - MIN( ALL - col2 ) AS col1 FROM tab2
----
98
-1740

skipif mysql # not compatible
query II rowsort label-7503
SELECT DISTINCT + 98 AS col1, ( + - 30 ) * - MIN ( ALL - col2 ) AS col1 FROM tab2
----
98
-1740

query I rowsort
SELECT 64 + - 20 AS col2 FROM tab1
----
44
44
44

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + 70 / - col1 IS NOT NULL
----

query II rowsort
SELECT DISTINCT col0 * - + col0, 87 + col2 AS col1 FROM tab0
----
-225
134
-7569
97
-9409
186

query I rowsort
SELECT col1 + col2 * 89 * - col1 * + 15 FROM tab2
----
-1565904
-4111723
-5187743

query I rowsort
SELECT col1 + - - 89 AS col0 FROM tab0
----
110
170
90

query I rowsort
SELECT 95 + + 23 AS col2 FROM tab2
----
118
118
118

query I rowsort
SELECT col0 * - 68 * - + 70 * - 68 AS col1 FROM tab0
----
-28160160
-31396960
-4855200

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col2 <= - + col0 + col2
----

query I rowsort
SELECT ALL - 23 AS col2 FROM tab0 WHERE NULL > NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7513
SELECT DISTINCT 9 DIV + ( + 89 ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-7513
SELECT DISTINCT 9 / + ( + 89 ) FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7514
SELECT COUNT( * ) * + + 49 AS col1 FROM tab2
----
147

skipif mysql # not compatible
query I rowsort label-7514
SELECT COUNT ( * ) * + + 49 AS col1 FROM tab2
----
147

query I rowsort
SELECT ( + ( - 79 ) ) AS col1 FROM tab1
----
-79
-79
-79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 col1, - ( - - col2 ) * + col2 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT + col1 * - - col1, + 48 AS col2 FROM tab1 AS cor0
----
196
48
2209
48
25
48

onlyif mysql # DIV for integer division: 
query I rowsort label-7518
SELECT DISTINCT 32 DIV - - ( + - col0 ) AS col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7518
SELECT DISTINCT 32 / - - ( + - col0 ) AS col2 FROM tab2 AS cor0
----
0

query II rowsort
SELECT ALL ( - col0 ), + ( + - ( + + 66 ) ) AS col1 FROM tab1 AS cor0
----
-51
-66
-85
-66
-91
-66

query I rowsort
SELECT DISTINCT + - col0 * ( - 7 ) FROM tab2 AS cor0
----
322
448
525

onlyif mysql # aggregate syntax: 
query I rowsort label-7521
SELECT ALL MAX( ALL 83 ) AS col1 FROM tab2 AS cor0
----
83

skipif mysql # not compatible
query I rowsort label-7521
SELECT ALL MAX ( ALL 83 ) AS col1 FROM tab2 AS cor0
----
83

onlyif mysql # aggregate syntax: 
query II rowsort label-7522
SELECT COUNT( * ) AS col0, - 49 FROM tab1
----
3
-49

skipif mysql # not compatible
query II rowsort label-7522
SELECT COUNT ( * ) AS col0, - 49 FROM tab1
----
3
-49

query I rowsort
SELECT col2 * col0 * 45 FROM tab1
----
220320
225675
278460

query I rowsort
SELECT DISTINCT + 36 * 26 AS col1 FROM tab0
----
936

query I rowsort
SELECT col1 * - 44 * - + col2 * + 9 AS col1 FROM tab2
----
1219680
1538856
464508

onlyif mysql # DIV for integer division: 
query I rowsort label-7526
SELECT ALL col1 DIV - col1 col0 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7526
SELECT ALL col1 / - col1 col0 FROM tab2
----
-1
-1
-1

query II rowsort
SELECT DISTINCT 75 AS col1, - col2 FROM tab1
----
75
-59
75
-68
75
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-7528
SELECT + COUNT( + 2 ) AS col2 FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-7528
SELECT + COUNT ( + 2 ) AS col2 FROM tab2 cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 * - + col0 * - col2 AS col0, col0 + + col1 + - col2 col0 FROM tab0 AS cor0
----
10575
49
75690
98
931491
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7530
SELECT DISTINCT MAX( ALL + CAST( 81 AS SIGNED ) ) FROM tab1
----
81

skipif mysql # not compatible
query I rowsort label-7530
SELECT DISTINCT MAX ( ALL + CAST ( 81 AS INTEGER ) ) FROM tab1
----
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7531
SELECT + + 51 AS col0 FROM tab2 WHERE col2 + col0 * - col1 - - 52 * + 97 * - 37 NOT IN ( - - col1 / + CAST( - 76 AS SIGNED ), col1 * + col1 * + - col0, + col2 / - 28 )
----
51
51
51

skipif mysql # not compatible
query I rowsort label-7531
SELECT + + 51 AS col0 FROM tab2 WHERE col2 + col0 * - col1 - - 52 * + 97 * - 37 NOT IN ( - - col1 / + CAST ( - 76 AS INTEGER ), col1 * + col1 * + - col0, + col2 / - 28 )
----
51
51
51

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col0 * - + col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query II rowsort label-7533
SELECT DISTINCT COUNT( * ) AS col2, COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE ( NULL ) = col0
----
0
0

skipif mysql # not compatible
query II rowsort label-7533
SELECT DISTINCT COUNT ( * ) AS col2, COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE ( NULL ) = col0
----
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7534
SELECT + + SUM( + CAST( 11 AS SIGNED ) ) AS col0 FROM tab0 cor0
----
33

skipif mysql # not compatible
query I rowsort label-7534
SELECT + + SUM ( + CAST ( 11 AS INTEGER ) ) AS col0 FROM tab0 cor0
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-7535
SELECT ALL + ( + COUNT( * ) ) FROM tab1 cor0 WHERE NOT + col2 / 13 <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-7535
SELECT ALL + ( + COUNT ( * ) ) FROM tab1 cor0 WHERE NOT + col2 / 13 <= NULL
----
0

query I rowsort
SELECT DISTINCT - col2 + col0 * + col2 + col1 * - + 31 AS col0 FROM tab1 AS cor0
----
4366
4663
4801

onlyif mysql # aggregate syntax: 
query I rowsort label-7537
SELECT ALL SUM( 15 ) * - - 74 * 55 AS col2 FROM tab0 AS cor0
----
183150

skipif mysql # not compatible
query I rowsort label-7537
SELECT ALL SUM ( 15 ) * - - 74 * 55 AS col2 FROM tab0 AS cor0
----
183150

query I rowsort
SELECT + 78 * + 68 FROM tab1
----
5304
5304
5304

onlyif mysql # aggregate syntax: 
query II rowsort label-7539
SELECT DISTINCT ( + - SUM( col0 ) ) AS col0, - 52 + 56 AS col1 FROM tab2
----
-185
4

skipif mysql # not compatible
query II rowsort label-7539
SELECT DISTINCT ( + - SUM ( col0 ) ) AS col0, - 52 + 56 AS col1 FROM tab2
----
-185
4

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7540
SELECT 82 - + col0 - + col0 AS col0, + col2 + + CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
-100
NULL
-20
NULL
-88
NULL

skipif mysql # not compatible
query II rowsort label-7540
SELECT 82 - + col0 - + col0 AS col0, + col2 + + CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
-100
NULL
-20
NULL
-88
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7541
SELECT * FROM tab0 WHERE + + CAST( - col1 AS SIGNED ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-7541
SELECT * FROM tab0 WHERE + + CAST ( - col1 AS INTEGER ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7542
SELECT ALL CAST( NULL AS DECIMAL ) + + col1 - - - 32 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7542
SELECT ALL CAST ( NULL AS REAL ) + + col1 - - - 32 FROM tab2
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + - col1 + 21 * + 74 col2 FROM tab1
----
1439
1444
1490

onlyif mysql # aggregate syntax: 
query I rowsort label-7544
SELECT DISTINCT MIN( col2 ) - - + 76 AS col2 FROM tab0 AS cor0
----
86

skipif mysql # not compatible
query I rowsort label-7544
SELECT DISTINCT MIN ( col2 ) - - + 76 AS col2 FROM tab0 AS cor0
----
86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7545
SELECT ALL CAST( - col2 AS SIGNED ) * - col1 + + col0 + - + 81 FROM tab1 AS cor0 WHERE NULL IS NULL
----
1314
299
3206

skipif mysql # not compatible
query I rowsort label-7545
SELECT ALL CAST ( - col2 AS INTEGER ) * - col1 + + col0 + - + 81 FROM tab1 AS cor0 WHERE NULL IS NULL
----
1314
299
3206

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-7546
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE ( NULL ) BETWEEN + + 23 * - CAST( 42 AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query IIIIII rowsort label-7546
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE ( NULL ) BETWEEN + + 23 * - CAST ( 42 AS INTEGER ) AND NULL
----

query II rowsort
SELECT - 91 * - + 52 AS col1, 92 * - - 17 AS col0 FROM tab1 AS cor0
----
4732
1564
4732
1564
4732
1564

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7548
SELECT CAST( NULL AS SIGNED ) / - 93 * - col0 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7548
SELECT CAST ( NULL AS INTEGER ) / - 93 * - col0 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7549
SELECT MAX( ALL - 87 ) * + 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-7549
SELECT MAX ( ALL - 87 ) * + CAST ( NULL AS INTEGER ) col1 FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT NULL > col1
----

query II rowsort
SELECT col0, col1 * col2 AS col1 FROM tab2 AS cor0
----
46
1173
64
3080
75
3886

onlyif mysql # DIV for integer division: 
query II rowsort label-7552
SELECT DISTINCT - + col1 * - - 9 + + 75 DIV - 14 AS col2, + col1 FROM tab1 AS cor0
----
-131
14
-428
47
-50
5

skipif mysql # not compatible
query II rowsort label-7552
SELECT DISTINCT - + col1 * - - 9 + + 75 / - 14 AS col2, + col1 FROM tab1 AS cor0
----
-131
14
-428
47
-50
5

onlyif mysql # DIV for integer division: 
query I rowsort label-7553
SELECT DISTINCT + ( col2 ) DIV - col0 FROM tab0 AS cor0
----
-1
-3
0

skipif mysql # not compatible
query I rowsort label-7553
SELECT DISTINCT + ( col2 ) / - col0 FROM tab0 AS cor0
----
-1
-3
0

query I rowsort
SELECT ALL + col0 AS col2 FROM tab0 cor0 WHERE NOT - col1 * - col0 IS NOT NULL
----

query I rowsort
SELECT ALL - + col1 * - 77 + - col1 * - col0 FROM tab0 WHERE NULL NOT IN ( + col2, col0, col0 )
----

query I rowsort
SELECT ALL col0 * + 69 FROM tab1
----
3519
5865
6279

onlyif mysql # aggregate syntax: 
query II rowsort label-7557
SELECT 0, COUNT( * ) * - COUNT( * ) FROM tab0 WHERE NOT ( - ( col1 ) + ( + + 88 ) ) IS NOT NULL
----
0
0

skipif mysql # not compatible
query II rowsort label-7557
SELECT 0, COUNT ( * ) * - COUNT ( * ) FROM tab0 WHERE NOT ( - ( col1 ) + ( + + 88 ) ) IS NOT NULL
----
0
0

onlyif mysql # DIV for integer division: 
query II rowsort label-7558
SELECT DISTINCT col0 DIV - col2, - 18 col1 FROM tab0
----
-8
-18
0
-18

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7558
SELECT DISTINCT col0 / - col2, - 18 col1 FROM tab0
----
-8
-18
0
-18

query I rowsort
SELECT DISTINCT ( + col1 ) * - 12 + - col0 * - col1 FROM tab2
----
1734
4004
4221

query I rowsort
SELECT DISTINCT + 8 FROM tab1 WHERE NOT - col0 IS NULL
----
8

query I rowsort
SELECT - 22 + + col2 FROM tab2 AS cor0
----
1
18
36

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 89 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 col2 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7564
SELECT * FROM tab2 cor0 WHERE - col1 / + col1 + - col1 BETWEEN col2 AND + ( col1 ) + + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-7564
SELECT * FROM tab2 cor0 WHERE - col1 / + col1 + - col1 BETWEEN col2 AND + ( col1 ) + + CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7565
SELECT DISTINCT + COUNT( 5 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-7565
SELECT DISTINCT + COUNT ( 5 ) FROM tab2
----
3

query III rowsort
SELECT ALL * FROM tab0 WHERE - 55 NOT IN ( + col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 WHERE - 31 + 84 + col1 > col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-7568
SELECT - 95 col2, CAST( NULL AS DECIMAL ) AS col0 FROM tab1 cor0
----
-95
NULL
-95
NULL
-95
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7568
SELECT - 95 col2, CAST ( NULL AS REAL ) AS col0 FROM tab1 cor0
----
-95
NULL
-95
NULL
-95
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7569
SELECT + 58 - + 5 * - MIN( DISTINCT col0 ) + - 29 AS col1 FROM tab1 AS cor0
----
284

skipif mysql # not compatible
query I rowsort label-7569
SELECT + 58 - + 5 * - MIN ( DISTINCT col0 ) + - 29 AS col1 FROM tab1 AS cor0
----
284

query II rowsort
SELECT ALL + col0 AS col2, - col1 * - col1 FROM tab2 AS cor0
----
46
2601
64
5929
75
4489

query I rowsort
SELECT ALL - + col0 * col2 + + col0 + + ( - - col1 ) FROM tab2 AS cor0
----
-2419
-4208
-961

query I rowsort
SELECT col2 + + + col1 AS col0 FROM tab2 cor0
----
117
125
74

query I rowsort
SELECT col2 + 8 AS col2 FROM tab1 AS cor0
----
104
67
76

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7574
SELECT * FROM tab1 WHERE - + CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-7574
SELECT * FROM tab1 WHERE - + CAST ( NULL AS INTEGER ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7575
SELECT DISTINCT COUNT( ( + - col0 ) ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-7575
SELECT DISTINCT COUNT ( ( + - col0 ) ) FROM tab2
----
3

query III rowsort
SELECT * FROM tab0 WHERE ( NOT - 12 IS NOT NULL )
----

query I rowsort
SELECT + 61 * + col2 AS col1 FROM tab2
----
1403
2440
3538

query I rowsort
SELECT ALL - col0 + + 38 FROM tab2 AS cor0
----
-26
-37
-8

query II rowsort
SELECT DISTINCT 14 - col1 * col1 + col2 AS col0, col2 * + + 18 FROM tab2 AS cor0
----
-2564
414
-4417
1044
-5875
720

onlyif mysql # aggregate syntax: 
query I rowsort label-7580
SELECT ALL + SUM( DISTINCT - + col2 ) FROM tab1 AS cor0
----
-223

skipif mysql # not compatible
query I rowsort label-7580
SELECT ALL + SUM ( DISTINCT - + col2 ) FROM tab1 AS cor0
----
-223

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col2 * col0 BETWEEN + + col0 * - col1 + + col2 AND NULL
----

query I rowsort
SELECT - 77 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 3a24155cb91ceff1e67bb51c07b72107

onlyif mysql # aggregate syntax: 
query I rowsort label-7583
SELECT ALL + SUM( + 27 ) * - 2 FROM tab1 AS cor0
----
-162

skipif mysql # not compatible
query I rowsort label-7583
SELECT ALL + SUM ( + 27 ) * - 2 FROM tab1 AS cor0
----
-162

query I rowsort
SELECT - - col0 FROM tab1 AS cor0 WHERE NOT NULL > col0
----

query I rowsort
SELECT DISTINCT + col1 AS col2 FROM tab0 AS cor0 WHERE NOT NULL < NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 71 NOT BETWEEN - col2 AND + + 3
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7587
SELECT ALL - col2 DIV - col0 FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7587
SELECT ALL - col2 / - col0 FROM tab2 cor0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7588
SELECT DISTINCT + 60 DIV - + col0 + col2 FROM tab2 AS cor0
----
22
40
58

skipif mysql # not compatible
query I rowsort label-7588
SELECT DISTINCT + 60 / - + col0 + col2 FROM tab2 AS cor0
----
22
40
58

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-7589
SELECT ALL - - 50, MAX( DISTINCT - + CAST( NULL AS DECIMAL ) ) * 58 AS col1 FROM tab1 AS cor0
----
50
NULL

skipif mysql # not compatible
query II rowsort label-7589
SELECT ALL - - 50, MAX ( DISTINCT - + CAST ( NULL AS REAL ) ) * 58 AS col1 FROM tab1 AS cor0
----
50
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7590
SELECT ALL + CAST( 41 AS SIGNED ) * + col0 - 3 FROM tab1 AS cor0
----
2088
3482
3728

skipif mysql # not compatible
query I rowsort label-7590
SELECT ALL + CAST ( 41 AS INTEGER ) * + col0 - 3 FROM tab1 AS cor0
----
2088
3482
3728

query I rowsort
SELECT + - 68 FROM tab2 cor0
----
-68
-68
-68

query I rowsort
SELECT DISTINCT + 76 * - 64 + col2 AS col0 FROM tab1 cor0
----
-4768
-4796
-4805

query I rowsort
SELECT + + col0 * col0 * - col0 * + - col1 AS col1 FROM tab0 AS cor0
----
13828563
273375
912673

query II rowsort
SELECT + col1, 89 + + col1 AS col2 FROM tab1
----
14
103
47
136
5
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7595
SELECT DISTINCT - AVG ( DISTINCT + - 89 ) + CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7595
SELECT DISTINCT - AVG ( DISTINCT + - 89 ) + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7596
SELECT + MIN( DISTINCT + CAST( NULL AS SIGNED ) ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-7596
SELECT + MIN ( DISTINCT + CAST ( NULL AS INTEGER ) ) FROM tab2
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1, + col2 + - + col1 col0 FROM tab2
----
51
-28
67
-9
77
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-7598
SELECT DISTINCT COUNT( * ) + COUNT( * ) AS col2 FROM tab0
----
6

skipif mysql # not compatible
query I rowsort label-7598
SELECT DISTINCT COUNT ( * ) + COUNT ( * ) AS col2 FROM tab0
----
6

query I rowsort
SELECT ALL col2 * + col2 + + col1 FROM tab2
----
1677
3431
580

query I rowsort
SELECT DISTINCT - col1 * + 26 FROM tab1 AS cor0
----
-1222
-130
-364

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + 69 + 70 <= NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL BETWEEN col1 AND - - col2 + ( 18 )
----

query I rowsort
SELECT - col2 AS col2 FROM tab1 WHERE - col0 < 3 + 70
----
-59
-68
-96

query I rowsort
SELECT DISTINCT 28 AS col1 FROM tab0 AS cor0 WHERE col2 NOT BETWEEN NULL AND col0 * - 47 / - + col1
----
28

query I rowsort
SELECT ALL col1 * - 57 + - 49 AS col2 FROM tab2 AS cor0
----
-2956
-3868
-4438

query I rowsort
SELECT col1 * - + col0 * - col2 * + - col1 FROM tab2 AS cor0
----
-15178240
-19527150
-2751858

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7607
SELECT + AVG ( DISTINCT - col1 ) * - + CAST( NULL AS SIGNED ) * + + COUNT( * ) - COUNT( * ) + - COUNT( * ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7607
SELECT + AVG ( DISTINCT - col1 ) * - + CAST ( NULL AS INTEGER ) * + + COUNT ( * ) - COUNT ( * ) + - COUNT ( * ) FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7608
SELECT DISTINCT + - COUNT( * ) * 56 - COUNT( * ) AS col0 FROM tab0 AS cor0
----
-171

skipif mysql # not compatible
query I rowsort label-7608
SELECT DISTINCT + - COUNT ( * ) * 56 - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-171

query I rowsort
SELECT + + col0 FROM tab2 WHERE - col1 IS NOT NULL
----
46
64
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7610
SELECT ALL + col1 - CAST( NULL AS SIGNED ) * - - col2 * ( - 78 ) AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7610
SELECT ALL + col1 - CAST ( NULL AS INTEGER ) * - - col2 * ( - 78 ) AS col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7611
SELECT 37 * - col0 * - col2 * - CAST( NULL AS SIGNED ) - col0 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7611
SELECT 37 * - col0 * - col2 * - CAST ( NULL AS INTEGER ) - col0 AS col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7612
SELECT ALL MAX( DISTINCT CAST( NULL AS SIGNED ) ) col0 FROM tab1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7612
SELECT ALL MAX ( DISTINCT CAST ( NULL AS INTEGER ) ) col0 FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT 25 - + + col1 FROM tab1
----
-22
11
20

query I rowsort
SELECT ALL - col0 - - col0 * + - col0 + - 75 FROM tab0
----
-315
-7731
-9581

onlyif mysql # aggregate syntax: 
query I rowsort label-7615
SELECT ALL SUM( ALL 66 ) FROM tab0
----
198

skipif mysql # not compatible
query I rowsort label-7615
SELECT ALL SUM ( ALL 66 ) FROM tab0
----
198

onlyif mysql # aggregate syntax: 
query I rowsort label-7616
SELECT + + 95 * COUNT( * ) FROM tab1 AS cor0
----
285

skipif mysql # not compatible
query I rowsort label-7616
SELECT + + 95 * COUNT ( * ) FROM tab1 AS cor0
----
285

query II rowsort
SELECT - - col0 AS col1, 48 * - 26 * + + col2 * - + 97 FROM tab2 cor0
----
46
2784288
64
4842240
75
7021248

query I rowsort
SELECT - col1 AS col1 FROM tab2 cor0 WHERE NOT col1 IS NULL
----
-51
-67
-77

query IIIIII rowsort
SELECT * FROM tab0 cor0 CROSS JOIN tab2 AS cor1 WHERE 31 IS NULL
----

query I rowsort
SELECT col0 * - 88 FROM tab2
----
-4048
-5632
-6600

query I rowsort
SELECT DISTINCT 27 AS col2 FROM tab0 AS cor0 WHERE - col0 IS NOT NULL
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-7622
SELECT ALL SUM( ALL + col2 ) FROM tab0 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-7622
SELECT ALL SUM ( ALL + col2 ) FROM tab0 AS cor0
----
156

query I rowsort
SELECT - - 32 * + + col2 AS col0 FROM tab1 AS cor0
----
1888
2176
3072

onlyif mysql # aggregate syntax: 
query I rowsort label-7624
SELECT DISTINCT + COUNT( DISTINCT col1 ) * - + COUNT( * ) AS col1 FROM tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-7624
SELECT DISTINCT + COUNT ( DISTINCT col1 ) * - + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-9

query I rowsort
SELECT + col2 * + - 15 * - 26 - + 6 AS col2 FROM tab2 AS cor0
----
15594
22614
8964

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7626
SELECT ALL COUNT( * ) DIV COUNT( * ) AS col2 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-7626
SELECT ALL COUNT ( * ) / COUNT ( * ) AS col2 FROM tab1 AS cor0
----
1

query I rowsort
SELECT + 96 AS col1 FROM tab2 cor0
----
96
96
96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7628
SELECT COUNT( * ) DIV COUNT( col1 ) AS col1 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-7628
SELECT COUNT ( * ) / COUNT ( col1 ) AS col1 FROM tab0 AS cor0
----
1

query I rowsort
SELECT + + col2 * - + col1 AS col0 FROM tab2 AS cor0
----
-1173
-3080
-3886

onlyif mysql # aggregate syntax: 
query I rowsort label-7630
SELECT DISTINCT - + ( COUNT( DISTINCT - + 58 ) ) AS col2 FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-7630
SELECT DISTINCT - + ( COUNT ( DISTINCT - + 58 ) ) AS col2 FROM tab2 AS cor0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7631
SELECT DISTINCT + 46, col0 AS col0 FROM tab2 AS cor0 WHERE NOT - CAST( col1 AS SIGNED ) + col1 + + col0 > ( 93 * col2 / - col0 )
----

skipif mysql # not compatible
query II rowsort label-7631
SELECT DISTINCT + 46, col0 AS col0 FROM tab2 AS cor0 WHERE NOT - CAST ( col1 AS INTEGER ) + col1 + + col0 > ( 93 * col2 / - col0 )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT - col0 - col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + col1 + 96 AS col1 FROM tab0
----
117
177
97

query I rowsort
SELECT DISTINCT 43 * + + col0 FROM tab2
----
1978
2752
3225

query III rowsort
SELECT 84, col2 + - col1 AS col1, + 63 AS col0 FROM tab0 AS cor0
----
9 values hashing to 961d30cbc2661551067904f027d5720e

query I rowsort
SELECT DISTINCT + col0 + + 17 * 25 FROM tab1 AS cor0
----
476
510
516

query I rowsort
SELECT + 71 * + 5 FROM tab1 AS cor0
----
355
355
355

query I rowsort
SELECT ALL - - 3 FROM tab1 WHERE NOT - - col1 + - col1 IS NULL
----
3
3
3

query I rowsort
SELECT 8 - - col1 FROM tab2
----
59
75
85

query I rowsort
SELECT col2 - col1 + + 95 AS col1 FROM tab0
----
193
61
84

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7641
SELECT - col1 - + - col2 + - col2 * col1 + + CAST( + - 69 AS SIGNED ), - 51 AS col2 FROM tab2
----
-1270
-51
-3186
-51
-3964
-51

skipif mysql # not compatible
query II rowsort label-7641
SELECT - col1 - + - col2 + - col2 * col1 + + CAST ( + - 69 AS INTEGER ), - 51 AS col2 FROM tab2
----
-1270
-51
-3186
-51
-3964
-51

query I rowsort
SELECT ALL col0 * - - col1 * 19 FROM tab0
----
1843
23085
34713

onlyif mysql # aggregate syntax: 
query I rowsort label-7643
SELECT 82 + + COUNT( * ) FROM tab0 AS cor0
----
85

skipif mysql # not compatible
query I rowsort label-7643
SELECT 82 + + COUNT ( * ) FROM tab0 AS cor0
----
85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7644
SELECT - + CAST( - 82 AS SIGNED ) + 17 FROM tab2 AS cor0
----
99
99
99

skipif mysql # not compatible
query I rowsort label-7644
SELECT - + CAST ( - 82 AS INTEGER ) + 17 FROM tab2 AS cor0
----
99
99
99

query I rowsort
SELECT ALL col0 * + 68 + - 97 FROM tab1 AS cor0
----
3371
5683
6091

query I rowsort
SELECT + - 4 + + 67 - + + col1 FROM tab2 AS cor0
----
-14
-4
12

query I rowsort
SELECT DISTINCT - 64 - - col2 FROM tab2 cor0
----
-24
-41
-6

query I rowsort
SELECT ALL - - col1 * + 35 - + + 6 AS col0 FROM tab1 AS cor0
----
1639
169
484

query II rowsort
SELECT ALL 23 - - + 47, - col2 AS col2 FROM tab1 AS cor0
----
70
-59
70
-68
70
-96

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL NOT BETWEEN + 42 * - col0 AND NULL
----

query I rowsort
SELECT + + 72 + + col0 FROM tab2 WHERE NOT - col0 * + - col0 * - 69 - + - col1 = - 57
----
118
136
147

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7652
SELECT CAST( 2 AS SIGNED ) * + - CAST( NULL AS DECIMAL ) AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7652
SELECT CAST ( 2 AS INTEGER ) * + - CAST ( NULL AS REAL ) AS col2 FROM tab2
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 69 * - + 27 AS col0, + col1 col0 FROM tab1
----
-1863
14
-1863
47
-1863
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7654
SELECT DISTINCT + COUNT( * ) DIV + 17 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-7654
SELECT DISTINCT + COUNT ( * ) / + 17 FROM tab0
----
0

query I rowsort
SELECT ALL 20 AS col2 FROM tab1 WHERE NOT 89 * + col1 NOT IN ( + 96, ( + + ( - ( 25 ) ) ), - 92 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col2 NOT BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7657
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - CAST( + - 20 AS SIGNED ) * - 12 * - col1 * col1 NOT IN ( - col0 )
----

skipif mysql # not compatible
query III rowsort label-7657
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - CAST ( + - 20 AS INTEGER ) * - 12 * - col1 * col1 NOT IN ( - col0 )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - ( - col1 ) + - col0 < - - 92
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7659
SELECT DISTINCT + COUNT( * ) col0, COUNT( - - col0 ) DIV - COUNT( * ) AS col0 FROM tab1
----
3
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7659
SELECT DISTINCT + COUNT ( * ) col0, COUNT ( - - col0 ) / - COUNT ( * ) AS col0 FROM tab1
----
3
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7660
SELECT DISTINCT + + ( - + COUNT( * ) ) * CAST( NULL AS SIGNED ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-7660
SELECT DISTINCT + + ( - + COUNT ( * ) ) * CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col0 IN ( 69 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-7662
SELECT + COUNT( * ) - 26 AS col0 FROM tab0 cor0 WHERE NOT NULL IS NOT NULL
----
-23

skipif mysql # not compatible
query I rowsort label-7662
SELECT + COUNT ( * ) - 26 AS col0 FROM tab0 cor0 WHERE NOT NULL IS NOT NULL
----
-23

query I rowsort
SELECT DISTINCT col1 * col2 FROM tab2 AS cor0 WHERE NOT col2 <> NULL
----

query I rowsort
SELECT - ( - + col2 ) * col0 AS col1 FROM tab2 AS cor0 WHERE NOT ( + 88 * + - col1 / + + col1 ) IS NULL
----
1058
2560
4350

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 91 col1 FROM tab1 AS cor0
----
91

query II rowsort
SELECT ALL + 93 AS col2, col2 AS col0 FROM tab0 AS cor0
----
93
10
93
47
93
99

query I rowsort
SELECT - 93 * ( col0 ) FROM tab0
----
-1395
-8091
-9021

onlyif mysql # DIV for integer division: 
query I rowsort label-7668
SELECT + 41 * - col2 DIV + col2 AS col0 FROM tab1
----
-41
-41
-41

skipif mysql # not compatible
query I rowsort label-7668
SELECT + 41 * - col2 / + col2 AS col0 FROM tab1
----
-41
-41
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-7669
SELECT - COUNT( * ) * 48 * - - COUNT( * ) AS col1 FROM tab2
----
-432

skipif mysql # not compatible
query I rowsort label-7669
SELECT - COUNT ( * ) * 48 * - - COUNT ( * ) AS col1 FROM tab2
----
-432

query I rowsort
SELECT + col1 * + - 93 AS col0 FROM tab0
----
-1953
-7533
-93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 7 * - + 38, col0 + + col0 col1 FROM tab1
----
-266
102
-266
170
-266
182

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7672
SELECT ALL 39 + + CAST( NULL AS SIGNED ) + - col1 / - - 2 + + col1 * + col2 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7672
SELECT ALL 39 + + CAST ( NULL AS INTEGER ) + - col1 / - - 2 + + col1 * + col2 AS col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col1 + - ( - - 47 ) FROM tab2 WHERE + + 53 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7674
SELECT DISTINCT + COUNT( * ) + 10 AS col0 FROM tab2
----
13

skipif mysql # not compatible
query I rowsort label-7674
SELECT DISTINCT + COUNT ( * ) + 10 AS col0 FROM tab2
----
13

onlyif mysql # DIV for integer division: 
query I rowsort label-7675
SELECT ALL - col2 + col2 + - col1 DIV col1 FROM tab0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-7675
SELECT ALL - col2 + col2 + - col1 / col1 FROM tab0
----
-1
-1
-1

query III rowsort
SELECT * FROM tab0 WHERE + col2 * col1 IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7677
SELECT COUNT( col1 ) DIV - COUNT( * ) FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-7677
SELECT COUNT ( col1 ) / - COUNT ( * ) FROM tab0
----
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 col1 FROM tab0 WHERE - 7 * - 26 IN ( + 47 * - col1, 90 )
----

query II rowsort
SELECT DISTINCT - col0 + - - 21 AS col1, + col1 + col1 * - col0 FROM tab2 AS cor0
----
-25
-2295
-43
-4851
-54
-4958

query I rowsort
SELECT ALL + col0 - 73 AS col2 FROM tab0 AS cor0 WHERE - col0 * 29 IS NOT NULL
----
-58
14
24

query I rowsort
SELECT 64 / - col2 / col0 FROM tab0 AS cor0 WHERE 41 * + col0 < - 65
----

query I rowsort
SELECT - - 72 + - col0 * + col1 + + 85 + + col2 + - col1 * + + 39 * 80 * col1 + - ( - + col1 ) AS col1 FROM tab0 AS cor0
----
-1377559
-20471250
-2960

onlyif mysql # aggregate syntax: 
query I rowsort label-7683
SELECT DISTINCT + + COUNT( * ) + - MIN( DISTINCT - col1 ) AS col0 FROM tab2 AS cor0
----
80

skipif mysql # not compatible
query I rowsort label-7683
SELECT DISTINCT + + COUNT ( * ) + - MIN ( DISTINCT - col1 ) AS col0 FROM tab2 AS cor0
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-7684
SELECT + COUNT( - ( - col1 ) ) AS col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7684
SELECT + COUNT ( - ( - col1 ) ) AS col1 FROM tab0 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7685
SELECT DISTINCT - CAST( NULL AS SIGNED ) * + + 25 + 51 + - col0 + + - 79 / col2 + col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7685
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + + 25 + 51 + - col0 + + - 79 / col2 + col0 FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE + 70 / col2 * + + 84 * - + col2 >= NULL
----

query III rowsort
SELECT col1 AS col1, + col1, - col0 + - col1 FROM tab2
----
9 values hashing to 8b750cdcc37313dc17d33012f8fcd488

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * + + 58 col2 FROM tab1
----
2726
290
812

query I rowsort
SELECT ALL 12 * - col0 AS col0 FROM tab0
----
-1044
-1164
-180

query III rowsort
SELECT * FROM tab0 WHERE NOT ( col1 / - col2 IS NOT NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7691
SELECT DISTINCT - 48 DIV col1 * - col0 AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-7691
SELECT DISTINCT - 48 / col1 * - col0 AS col0 FROM tab2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7692
SELECT * FROM tab0 WHERE NOT - 4 * - 90 + 11 NOT BETWEEN - - CAST( NULL AS SIGNED ) AND col1 * + col2
----

skipif mysql # not compatible
query III rowsort label-7692
SELECT * FROM tab0 WHERE NOT - 4 * - 90 + 11 NOT BETWEEN - - CAST ( NULL AS INTEGER ) AND col1 * + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7693
SELECT COUNT( * ) * - - ( - 21 ) AS col0 FROM tab0
----
-63

skipif mysql # not compatible
query I rowsort label-7693
SELECT COUNT ( * ) * - - ( - 21 ) AS col0 FROM tab0
----
-63

query I rowsort
SELECT ( + ( - col2 ) ) AS col2 FROM tab0 WHERE NOT + - col0 IS NULL
----
-10
-47
-99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7695
SELECT CAST( SUM( + col1 ) AS SIGNED ) AS col0 FROM tab2
----
195

skipif mysql # not compatible
query I rowsort label-7695
SELECT CAST ( SUM ( + col1 ) AS INTEGER ) AS col0 FROM tab2
----
195

query I rowsort
SELECT DISTINCT - col1 + - col1 * - 90 FROM tab1 cor0
----
1246
4183
445

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + - col2 ) * col2 * - col0 col1 FROM tab1 cor0
----
295885
420784
470016

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 23 + + - col2 + + - 71 col1 FROM tab0 AS cor0
----
-104
-141
-193

onlyif mysql # aggregate syntax: 
query I rowsort label-7699
SELECT ALL - - COUNT( * ) * + + ( + 56 ) FROM tab1 AS cor0
----
168

skipif mysql # not compatible
query I rowsort label-7699
SELECT ALL - - COUNT ( * ) * + + ( + 56 ) FROM tab1 AS cor0
----
168

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL > - col1 * - col2
----

query I rowsort
SELECT 99 + + col0 + + 22 FROM tab0
----
136
208
218

onlyif mysql # aggregate syntax: 
query I rowsort label-7702
SELECT DISTINCT MIN( 28 ) col1 FROM tab1
----
28

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7702
SELECT DISTINCT MIN ( 28 ) col1 FROM tab1
----
28

query I rowsort
SELECT col1 + + 48 AS col1 FROM tab2
----
115
125
99

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL < + 94
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7705
SELECT DISTINCT COUNT( + + col0 ) AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-7705
SELECT DISTINCT COUNT ( + + col0 ) AS col1 FROM tab2
----
3

query I rowsort
SELECT col2 + + 41 FROM tab2
----
64
81
99

query I rowsort
SELECT 86 + - 42 + - col0 + + col0 + col0 FROM tab0
----
131
141
59

query I rowsort
SELECT - 2 + - - col1 FROM tab2
----
49
65
75

query I rowsort
SELECT DISTINCT + + col2 + col2 + col0 AS col0 FROM tab2 AS cor0
----
144
191
92

onlyif mysql # aggregate syntax: 
query II rowsort label-7710
SELECT - 72, - SUM( - 48 ) AS col2 FROM tab0 cor0
----
-72
144

skipif mysql # not compatible
query II rowsort label-7710
SELECT - 72, - SUM ( - 48 ) AS col2 FROM tab0 cor0
----
-72
144

query I rowsort
SELECT DISTINCT - 69 - 50 * + ( 15 ) FROM tab0 AS cor0
----
-819

query I rowsort
SELECT - ( + 62 ) - + - col1 + - col1 AS col2 FROM tab1
----
-62
-62
-62

query III rowsort
SELECT ALL * FROM tab0 WHERE ( - col1 * + + col1 IS NOT NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - + ( 10 ) FROM tab1 AS cor0
----
-10
-10
-10

query I rowsort
SELECT DISTINCT - - col2 * + + ( + col0 ) AS col0 FROM tab2 cor0
----
1058
2560
4350

onlyif mysql # DIV for integer division: 
query I rowsort label-7716
SELECT DISTINCT - + col2 DIV - + col0 + col0 FROM tab0 AS cor0
----
18
87
98

skipif mysql # not compatible
query I rowsort label-7716
SELECT DISTINCT - + col2 / - + col0 + col0 FROM tab0 AS cor0
----
18
87
98

query I rowsort
SELECT 28 + - col0 AS col1 FROM tab2 WHERE NOT + - col2 + col1 - - col1 <= NULL
----

query I rowsort
SELECT DISTINCT col0 * + 83 FROM tab2
----
3818
5312
6225

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7719
SELECT * FROM tab1 WHERE NOT - + ( - col1 ) NOT BETWEEN CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) AND + CAST( + - ( - col2 ) AS SIGNED ) * - 46
----

skipif mysql # not compatible
query III rowsort label-7719
SELECT * FROM tab1 WHERE NOT - + ( - col1 ) NOT BETWEEN CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) AND + CAST ( + - ( - col2 ) AS INTEGER ) * - 46
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7720
SELECT ALL - ( + - MAX( col2 ) ) AS col0 FROM tab1
----
96

skipif mysql # not compatible
query I rowsort label-7720
SELECT ALL - ( + - MAX ( col2 ) ) AS col0 FROM tab1
----
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0, col1 col1 FROM tab0
----
15
81
87
21
97
1

query I rowsort
SELECT col2 * - - 96 AS col1 FROM tab1
----
5664
6528
9216

onlyif mysql # aggregate syntax: 
query I rowsort label-7723
SELECT DISTINCT - + 21 * + ( - SUM( ALL + col2 ) ) AS col2 FROM tab0 cor0
----
3276

skipif mysql # not compatible
query I rowsort label-7723
SELECT DISTINCT - + 21 * + ( - SUM ( ALL + col2 ) ) AS col2 FROM tab0 cor0
----
3276

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7724
SELECT ALL - CAST( - - col1 AS SIGNED ) FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-7724
SELECT ALL - CAST ( - - col1 AS INTEGER ) FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT col1 * - + col0 * - - 40 * + - col0 FROM tab2 AS cor0
----
12615680
15075000
4316640

query I rowsort
SELECT - 26 AS col0 FROM tab1 cor0
----
-26
-26
-26

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 cor0 CROSS JOIN tab1 AS cor1 WHERE NULL NOT BETWEEN 32 AND NULL
----

query II rowsort
SELECT col1 AS col2, col0 * - col0 FROM tab0
----
1
-9409
21
-7569
81
-225

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7729
SELECT * FROM tab2 WHERE NOT - col2 / + CAST( - col2 AS SIGNED ) * - + 29 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-7729
SELECT * FROM tab2 WHERE NOT - col2 / + CAST ( - col2 AS INTEGER ) * - + 29 IS NOT NULL
----

query I rowsort
SELECT col1 + + 23 + - col1 FROM tab1
----
23
23
23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + 63 col0 FROM tab2
----
114
130
140

onlyif mysql # aggregate syntax: 
query I rowsort label-7732
SELECT ALL + + COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NOT 36 < + col2
----
1

skipif mysql # not compatible
query I rowsort label-7732
SELECT ALL + + COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NOT 36 < + col2
----
1

query II rowsort
SELECT DISTINCT - 69 * + ( + col0 ) + - col0, - ( + col2 ) + col2 AS col1 FROM tab1 AS cor0
----
-3570
0
-5950
0
-6370
0

query I rowsort
SELECT ALL - col2 + col1 + col1 AS col1 FROM tab1 AS cor0
----
-49
-68
26

query II rowsort
SELECT ALL col1, + 14 + + col2 + - col1 FROM tab0 AS cor0
----
1
112
21
3
81
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-7736
SELECT ( ( + 66 ) ) * COUNT( * ) FROM tab2 AS cor0
----
198

skipif mysql # not compatible
query I rowsort label-7736
SELECT ( ( + 66 ) ) * COUNT ( * ) FROM tab2 AS cor0
----
198

onlyif mysql # DIV for integer division: 
query I rowsort label-7737
SELECT - col2 * 61 DIV + col1 FROM tab2 AS cor0
----
-27
-31
-52

skipif mysql # not compatible
query I rowsort label-7737
SELECT - col2 * 61 / + col1 FROM tab2 AS cor0
----
-27
-31
-52

query I rowsort
SELECT + - col0 AS col2 FROM tab2 WHERE ( + 38 + + col0 <> NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7739
SELECT DISTINCT 82 + + col2 DIV col0 AS col0 FROM tab0 AS cor0
----
82
83
85

skipif mysql # not compatible
query I rowsort label-7739
SELECT DISTINCT 82 + + col2 / col0 AS col0 FROM tab0 AS cor0
----
82
83
85

query I rowsort
SELECT ALL - + 16 * col0 - - col2 + col1 FROM tab0 AS cor0
----
-112
-1361
-1452

query I rowsort
SELECT DISTINCT - + 86 - - + 31 AS col1 FROM tab1 AS cor0
----
-55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7742
SELECT ALL - ( + 53 ) * + - 8 * + col2 + + CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7742
SELECT ALL - ( + 53 ) * + - 8 * + col2 + + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col1 - 22 * + ( - 85 ) + + col1 AS col1 FROM tab0
----
1872
1912
2032

onlyif mysql # aggregate syntax: 
query I rowsort label-7744
SELECT MIN( - 46 ) AS col0 FROM tab1 cor0
----
-46

skipif mysql # not compatible
query I rowsort label-7744
SELECT MIN ( - 46 ) AS col0 FROM tab1 cor0
----
-46

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - - col1 col2, - col0 FROM tab1 AS cor0
----
14
-51
47
-91
5
-85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7746
SELECT DISTINCT - 92 * - + CAST( - + col1 AS SIGNED ) - + CAST( NULL AS SIGNED ) + col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7746
SELECT DISTINCT - 92 * - + CAST ( - + col1 AS INTEGER ) - + CAST ( NULL AS INTEGER ) + col2 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT - - col0 * + col2 + 18 AS col0 FROM tab1 AS cor0
----
4914
5033
6206

query I rowsort
SELECT DISTINCT + 42 * + + col0 FROM tab1 AS cor0
----
2142
3570
3822

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7749
SELECT 46 / - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7749
SELECT 46 / - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT + col2 AS col2, 67 AS col1 FROM tab0 AS cor0
----
10
67
47
67
99
67

query I rowsort
SELECT DISTINCT - 19 * + col2 FROM tab1 AS cor0
----
-1121
-1292
-1824

query II rowsort
SELECT ALL col2 AS col1, + col1 AS col1 FROM tab0 AS cor0
----
10
21
47
81
99
1

query III rowsort
SELECT * FROM tab0 WHERE NOT - 6 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col0 + - + col0 AS col0 FROM tab0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + 77 > - col0 * 8
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 82 >= + col0
----
85
5
59
91
47
68

onlyif mysql # aggregate syntax: 
query I rowsort label-7757
SELECT ALL + MIN( DISTINCT - - 90 ) * MIN( DISTINCT - + 78 ) FROM tab1 AS cor0
----
-7020

skipif mysql # not compatible
query I rowsort label-7757
SELECT ALL + MIN ( DISTINCT - - 90 ) * MIN ( DISTINCT - + 78 ) FROM tab1 AS cor0
----
-7020

query I rowsort
SELECT 65 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT 2 FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to 84dbfaf9bc17dd097f15bc36b4186261

query I rowsort
SELECT ALL + ( 54 ) FROM tab0
----
54
54
54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7761
SELECT CAST( NULL AS SIGNED ) / - - col1 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7761
SELECT CAST ( NULL AS INTEGER ) / - - col1 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 89 * col0 col2 FROM tab2
----
4094
5696
6675

query I rowsort
SELECT DISTINCT col0 + - + col1 AS col0 FROM tab0 AS cor0
----
-66
66
96

onlyif mysql # aggregate syntax: 
query I rowsort label-7764
SELECT - COUNT( * ) + + - 30 FROM tab1 AS cor0
----
-33

skipif mysql # not compatible
query I rowsort label-7764
SELECT - COUNT ( * ) + + - 30 FROM tab1 AS cor0
----
-33

query I rowsort
SELECT DISTINCT + - 51 * - col0 + - col0 FROM tab0 AS cor0
----
4350
4850
750

onlyif mysql # aggregate syntax: 
query I rowsort label-7766
SELECT DISTINCT COUNT( * ) + + 64 AS col2 FROM tab1
----
67

skipif mysql # not compatible
query I rowsort label-7766
SELECT DISTINCT COUNT ( * ) + + 64 AS col2 FROM tab1
----
67

query I rowsort
SELECT ALL - col1 FROM tab1 WHERE NOT NULL <= 65
----

query I rowsort
SELECT - + col1 + - 96 AS col2 FROM tab0 WHERE NULL <= 8 * - - 49 - + col1 + + col2
----

query II rowsort
SELECT DISTINCT col0, + col0 + - 14 + col2 AS col2 FROM tab0
----
15
48
87
83
97
182

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7770
SELECT - ( - CAST( - 54 AS SIGNED ) ) AS col1 FROM tab0
----
-54
-54
-54

skipif mysql # not compatible
query I rowsort label-7770
SELECT - ( - CAST ( - 54 AS INTEGER ) ) AS col1 FROM tab0
----
-54
-54
-54

query II rowsort
SELECT DISTINCT col2 AS col2, col0 AS col0 FROM tab1
----
59
85
68
91
96
51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7772
SELECT + 77 DIV - - COUNT( * ) AS col0 FROM tab1
----
25

skipif mysql # not compatible
query I rowsort label-7772
SELECT + 77 / - - COUNT ( * ) AS col0 FROM tab1
----
25

onlyif mysql # aggregate syntax: 
query II rowsort label-7773
SELECT DISTINCT + COUNT( * ) * + + 2 AS col0, - 21 FROM tab0 WHERE NOT NULL IS NOT NULL
----
6
-21

skipif mysql # not compatible
query II rowsort label-7773
SELECT DISTINCT + COUNT ( * ) * + + 2 AS col0, - 21 FROM tab0 WHERE NOT NULL IS NOT NULL
----
6
-21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7774
SELECT DISTINCT CAST( NULL AS SIGNED ) + - - col2 + - - 26 * + 92 AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-7774
SELECT DISTINCT CAST ( NULL AS INTEGER ) + - - col2 + - - 26 * + 92 AS col0 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7775
SELECT - MAX( ALL + - 54 ) DIV - 58 AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-7775
SELECT - MAX ( ALL + - 54 ) / - 58 AS col2 FROM tab1
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col2 + - + col0 col2 FROM tab1 AS cor0
----
-23
-26
45

onlyif mysql # DIV for integer division: 
query II rowsort label-7777
SELECT DISTINCT 83 DIV - - col1 AS col1, 42 FROM tab2
----
1
42

skipif mysql # not compatible
query II rowsort label-7777
SELECT DISTINCT 83 / - - col1 AS col1, 42 FROM tab2
----
1
42

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - + 2 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 50 * + col2 col2 FROM tab0
----
2350
4950
500

query I rowsort
SELECT DISTINCT col2 * - - 42 + - ( + 34 ) FROM tab2 AS cor0
----
1646
2402
932

onlyif mysql # DIV for integer division: 
query I rowsort label-7781
SELECT ALL col1 DIV - col1 AS col0 FROM tab2 AS cor0 WHERE NOT ( 3 * + - col1 ) IS NULL
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-7781
SELECT ALL col1 / - col1 AS col0 FROM tab2 AS cor0 WHERE NOT ( 3 * + - col1 ) IS NULL
----
-1
-1
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7782
SELECT DISTINCT + 2 - + - 41 * + - COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE NOT 79 DIV + 90 * - + 24 < - + col0
----
-121

skipif mysql # not compatible
query I rowsort label-7782
SELECT DISTINCT + 2 - + - 41 * + - COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE NOT 79 / + 90 * - + 24 < - + col0
----
-121

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - ( - 23 ) col0 FROM tab0 AS cor0
----
23
23
23

onlyif mysql # aggregate syntax: 
query I rowsort label-7784
SELECT ALL + COUNT( ALL - - 86 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-7784
SELECT ALL + COUNT ( ALL - - 86 ) FROM tab0
----
3

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - + 21 * col2 IS NULL
----

query II rowsort
SELECT DISTINCT - col0, + col1 FROM tab2
----
-46
51
-64
77
-75
67

query I rowsort
SELECT + col2 * + col1 * + + col2 * 93 * + col0 FROM tab0
----
16991100
249605955
88414821

query II rowsort
SELECT + col0, - col2 FROM tab1
----
51
-96
85
-59
91
-68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 50 col0, + col1 + - - 26 * - - col1 * col2 - col2 + + col1 * col1 FROM tab1
----
50
35058
50
7641
50
85284

query I rowsort
SELECT ALL 49 * - + col1 AS col2 FROM tab0
----
-1029
-3969
-49

query III rowsort
SELECT ALL * FROM tab0 WHERE 13 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7792
SELECT DISTINCT - ( - + CAST( NULL AS SIGNED ) ) + - 80 * 89 - - 38 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-7792
SELECT DISTINCT - ( - + CAST ( NULL AS INTEGER ) ) + - 80 * 89 - - 38 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7793
SELECT + 82 * + + MAX( DISTINCT - 47 ) * COUNT( * ) - - 59 col1 FROM tab2
----
-11503

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7793
SELECT + 82 * + + MAX ( DISTINCT - 47 ) * COUNT ( * ) - - 59 col1 FROM tab2
----
-11503

onlyif mysql # aggregate syntax: 
query I rowsort label-7794
SELECT - MAX( ALL + col2 ) col2 FROM tab0 AS cor0
----
-99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7794
SELECT - MAX ( ALL + col2 ) col2 FROM tab0 AS cor0
----
-99

query II rowsort
SELECT ALL - + col0, + col0 AS col2 FROM tab1 AS cor0
----
-51
51
-85
85
-91
91

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE + 32 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-7797
SELECT - COUNT( * ) + - MIN( ALL - - col0 ) AS col1 FROM tab0 cor0
----
-18

skipif mysql # not compatible
query I rowsort label-7797
SELECT - COUNT ( * ) + - MIN ( ALL - - col0 ) AS col1 FROM tab0 cor0
----
-18

query I rowsort
SELECT col1 * 46 AS col0 FROM tab2
----
2346
3082
3542

query III rowsort
SELECT ALL * FROM tab2 WHERE + 18 / + 81 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7800
SELECT ALL * FROM tab2 WHERE ( + CAST( col2 AS SIGNED ) ) >= - col0 / + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-7800
SELECT ALL * FROM tab2 WHERE ( + CAST ( col2 AS INTEGER ) ) >= - col0 / + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col0 * - 83 AS col1 FROM tab2
----
3818
5312
6225

query I rowsort
SELECT ALL 76 * + 6 - - col1 FROM tab1 WHERE ( NULL ) IS NULL
----
461
470
503

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - 45 col2 FROM tab1
----
-2295
-3825
-4095

onlyif mysql # aggregate syntax: 
query I rowsort label-7804
SELECT COUNT( ALL + col1 ) - 20 FROM tab2
----
-17

skipif mysql # not compatible
query I rowsort label-7804
SELECT COUNT ( ALL + col1 ) - 20 FROM tab2
----
-17

query I rowsort
SELECT + col2 - 78 FROM tab2
----
-20
-38
-55

query I rowsort
SELECT + col0 * + 3 FROM tab2
----
138
192
225

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( col0 ) IN ( col0 )
----

query I rowsort
SELECT ALL col2 * + 39 FROM tab2
----
1560
2262
897

onlyif mysql # aggregate syntax: 
query I rowsort label-7809
SELECT ALL MIN( DISTINCT col2 ) * COUNT( * ) AS col1 FROM tab1
----
177

skipif mysql # not compatible
query I rowsort label-7809
SELECT ALL MIN ( DISTINCT col2 ) * COUNT ( * ) AS col1 FROM tab1
----
177

onlyif mysql # aggregate syntax: 
query I rowsort label-7810
SELECT ALL 16 * - COUNT( * ) FROM tab1
----
-48

skipif mysql # not compatible
query I rowsort label-7810
SELECT ALL 16 * - COUNT ( * ) FROM tab1
----
-48

onlyif mysql # DIV for integer division: 
query I rowsort label-7811
SELECT ALL col0 DIV col1 col2 FROM tab0
----
0
4
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7811
SELECT ALL col0 / col1 col2 FROM tab0
----
0
4
97

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7812
SELECT * FROM tab1 WHERE NOT - col0 + CAST( NULL AS SIGNED ) NOT IN ( + col1 + + col2 )
----

skipif mysql # not compatible
query III rowsort label-7812
SELECT * FROM tab1 WHERE NOT - col0 + CAST ( NULL AS INTEGER ) NOT IN ( + col1 + + col2 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7813
SELECT DISTINCT + COUNT( * ) FROM tab1 WHERE NOT - col2 <= + CAST( NULL AS SIGNED ) + + CAST( NULL AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-7813
SELECT DISTINCT + COUNT ( * ) FROM tab1 WHERE NOT - col2 <= + CAST ( NULL AS INTEGER ) + + CAST ( NULL AS INTEGER )
----
0

query I rowsort
SELECT - 6 + col0 FROM tab2
----
40
58
69

query I rowsort
SELECT - 96 + - col2 * col2 AS col0 FROM tab2
----
-1696
-3460
-625

query I rowsort
SELECT ( - 50 ) FROM tab0
----
-50
-50
-50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7817
SELECT ALL - 95 AS col1 FROM tab2 WHERE CAST( NULL AS SIGNED ) = ( 12 )
----

skipif mysql # not compatible
query I rowsort label-7817
SELECT ALL - 95 AS col1 FROM tab2 WHERE CAST ( NULL AS INTEGER ) = ( 12 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7818
SELECT MAX( + col0 ) DIV 87 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-7818
SELECT MAX ( + col0 ) / 87 FROM tab1
----
1

query I rowsort
SELECT DISTINCT - col1 * col0 + col0 FROM tab2
----
-2300
-4864
-4950

query I rowsort
SELECT - col1 + + 86 FROM tab2
----
19
35
9

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL <= + col0
----

query I rowsort
SELECT DISTINCT col0 * 83 AS col1 FROM tab1 WHERE 41 + + ( + col1 ) NOT IN ( - 21 )
----
4233
7055
7553

onlyif mysql # aggregate syntax: 
query I rowsort label-7823
SELECT ALL + COUNT( * ) * ( 51 ) col2 FROM tab1
----
153

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7823
SELECT ALL + COUNT ( * ) * ( 51 ) col2 FROM tab1
----
153

query I rowsort
SELECT DISTINCT col1 * 82 + - col1 FROM tab0
----
1701
6561
81

query I rowsort
SELECT col0 AS col1 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 67 col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT col1 FROM tab2 AS cor0 WHERE ( 81 + col1 ) IS NULL
----

query I rowsort
SELECT ALL 40 + 37 FROM tab2 cor0
----
77
77
77

query I rowsort
SELECT 65 * 84 FROM tab1 AS cor0
----
5460
5460
5460

query I rowsort
SELECT col2 FROM tab0 AS cor0 WHERE NOT 50 + col1 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7831
SELECT col2 DIV 69 AS col2 FROM tab0 cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-7831
SELECT col2 / 69 AS col2 FROM tab0 cor0
----
0
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7832
SELECT + 73 * COUNT( * ) FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
219

skipif mysql # not compatible
query I rowsort label-7832
SELECT + 73 * COUNT ( * ) FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
219

onlyif mysql # aggregate syntax: 
query I rowsort label-7833
SELECT + COUNT( * ) + 39 AS col1 FROM tab1 WHERE NOT ( col0 * ( col1 ) + col0 * col1 ) IS NULL
----
42

skipif mysql # not compatible
query I rowsort label-7833
SELECT + COUNT ( * ) + 39 AS col1 FROM tab1 WHERE NOT ( col0 * ( col1 ) + col0 * col1 ) IS NULL
----
42

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( - 95 ) * - col0 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7835
SELECT + 92 DIV + col0 AS col0 FROM tab2 AS cor0
----
1
1
2

skipif mysql # not compatible
query I rowsort label-7835
SELECT + 92 / + col0 AS col0 FROM tab2 AS cor0
----
1
1
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 93 * - col0 col1 FROM tab0 cor0
----
-1395
-8091
-9021

onlyif mysql # aggregate syntax: 
query I rowsort label-7837
SELECT + + ( - MIN( 52 ) ) AS col0 FROM tab2 AS cor0
----
-52

skipif mysql # not compatible
query I rowsort label-7837
SELECT + + ( - MIN ( 52 ) ) AS col0 FROM tab2 AS cor0
----
-52

query I rowsort
SELECT ALL col0 + col1 * + col2 FROM tab0 AS cor0 WHERE NOT 70 IS NULL
----
196
297
3822

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NULL ) BETWEEN col1 + - 21 AND 14
----

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT ( NULL ) BETWEEN + 61 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7841
SELECT + + 69 DIV col0 FROM tab1 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-7841
SELECT + + 69 / col0 FROM tab1 AS cor0
----
0
0
1

onlyif mysql # DIV for integer division: 
query I rowsort label-7842
SELECT - + 99 DIV 7 AS col2 FROM tab1 cor0
----
-14
-14
-14

skipif mysql # not compatible
query I rowsort label-7842
SELECT - + 99 / 7 AS col2 FROM tab1 cor0
----
-14
-14
-14

query III rowsort
SELECT * FROM tab0 WHERE NOT - 54 + ( col2 ) / - col0 < + 94 * col1
----

query I rowsort
SELECT 99 * - 24 + col2 AS col0 FROM tab1
----
-2280
-2308
-2317

query I rowsort
SELECT col2 FROM tab0 WHERE NOT 16 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT ( col0 - + col0 ) NOT BETWEEN ( + col1 ) AND ( NULL )
----

query I rowsort
SELECT 30 + + - col0 * 85 AS col1 FROM tab2
----
-3880
-5410
-6345

query I rowsort
SELECT DISTINCT + 94 * - col2 FROM tab0 WHERE + col1 IS NOT NULL
----
-4418
-9306
-940

query I rowsort
SELECT ALL + ( col2 ) + 54 AS col1 FROM tab0
----
101
153
64

onlyif mysql # aggregate syntax: 
query I rowsort label-7850
SELECT - + 1 * + - MAX( + col1 ) + - 21 AS col2 FROM tab2 AS cor0
----
56

skipif mysql # not compatible
query I rowsort label-7850
SELECT - + 1 * + - MAX ( + col1 ) + - 21 AS col2 FROM tab2 AS cor0
----
56

query I rowsort
SELECT DISTINCT - col2 + col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-98
11
34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7852
SELECT 10 * CAST( ( COUNT( * ) ) AS SIGNED ) FROM tab0 WHERE NULL IN ( - col1 + col1 )
----
0

skipif mysql # not compatible
query I rowsort label-7852
SELECT 10 * CAST ( ( COUNT ( * ) ) AS INTEGER ) FROM tab0 WHERE NULL IN ( - col1 + col1 )
----
0

query I rowsort
SELECT col1 FROM tab2 WHERE ( + 78 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7854
SELECT - CAST( NULL AS SIGNED ) FROM tab0 WHERE ( NULL ) IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7854
SELECT - CAST ( NULL AS INTEGER ) FROM tab0 WHERE ( NULL ) IS NULL
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col2 * col2 + - col0 AS col1 FROM tab0
----
13
2194
9704

query I rowsort
SELECT + col1 + + ( - col1 ) FROM tab1 AS cor0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7857
SELECT ALL + - 35 + + 78 + + + col0 DIV ( - col0 ) DIV col1 AS col1 FROM tab0 AS cor0
----
42
43
43

skipif mysql # not compatible
query I rowsort label-7857
SELECT ALL + - 35 + + 78 + + + col0 / ( - col0 ) / col1 AS col1 FROM tab0 AS cor0
----
42
43
43

query I rowsort
SELECT ALL - - 38 * - + col2 * + + ( 58 ) * + col0 AS col1 FROM tab0 AS cor0
----
-1553820
-1917480
-21165012

query I rowsort
SELECT ALL - col1 * - + col0 FROM tab2 cor0 WHERE NULL BETWEEN NULL AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7860
SELECT DISTINCT - 41 DIV 92 + + col0 FROM tab2 AS cor0
----
46
64
75

skipif mysql # not compatible
query I rowsort label-7860
SELECT DISTINCT - 41 / 92 + + col0 FROM tab2 AS cor0
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-7861
SELECT DISTINCT + COUNT( * ) * + COUNT( * ) * COUNT( * ) + COUNT( * ) AS col1 FROM tab2 AS cor0
----
30

skipif mysql # not compatible
query I rowsort label-7861
SELECT DISTINCT + COUNT ( * ) * + COUNT ( * ) * COUNT ( * ) + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
30

onlyif mysql # DIV for integer division: 
query I rowsort label-7862
SELECT ALL + 1 DIV + - col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7862
SELECT ALL + 1 / + - col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT 3 * + col1 FROM tab0 WHERE - col2 NOT IN ( col1 )
----
243
3
63

query I rowsort
SELECT ALL 50 * 17 FROM tab0
----
850
850
850

query I rowsort
SELECT DISTINCT col0 + - 49 FROM tab2
----
-3
15
26

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND - 55 / + 87
----

query I rowsort
SELECT + col2 * - 12 AS col2 FROM tab2
----
-276
-480
-696

onlyif mysql # DIV for integer division: 
query I rowsort label-7868
SELECT DISTINCT - col2 DIV - 9 AS col2 FROM tab0
----
1
11
5

skipif mysql # not compatible
query I rowsort label-7868
SELECT DISTINCT - col2 / - 9 AS col2 FROM tab0
----
1
11
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7869
SELECT + 38 * + CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7869
SELECT + 38 * + CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-7870
SELECT 37 DIV 29 AS col2, - col2 FROM tab1
----
1
-59
1
-68
1
-96

skipif mysql # not compatible
query II rowsort label-7870
SELECT 37 / 29 AS col2, - col2 FROM tab1
----
1
-59
1
-68
1
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-7871
SELECT DISTINCT - COUNT( ALL - - col1 ) AS col1 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-7871
SELECT DISTINCT - COUNT ( ALL - - col1 ) AS col1 FROM tab2
----
-3

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL IN ( - - col2 * - col2 * col1 + 57 * col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7873
SELECT col2 DIV 95 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-7873
SELECT col2 / 95 FROM tab1
----
0
0
1

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7874
SELECT + CAST( - - col0 AS SIGNED ) DIV + col2 AS col2 FROM tab2 AS cor0
----
1
1
2

skipif mysql # not compatible
query I rowsort label-7874
SELECT + CAST ( - - col0 AS INTEGER ) / + col2 AS col2 FROM tab2 AS cor0
----
1
1
2

onlyif mysql # aggregate syntax: 
query I rowsort label-7875
SELECT - MIN( 72 ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE 35 IS NOT NULL
----
-72

skipif mysql # not compatible
query I rowsort label-7875
SELECT - MIN ( 72 ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE 35 IS NOT NULL
----
-72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7876
SELECT - col0 * CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7876
SELECT - col0 * CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT + + ( + - 44 ) FROM tab0 AS cor0
----
-44
-44
-44

onlyif mysql # aggregate syntax: 
query II rowsort label-7878
SELECT ALL + 43, COUNT( ALL + 47 ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN + col1 AND NULL
----
43
0

skipif mysql # not compatible
query II rowsort label-7878
SELECT ALL + 43, COUNT ( ALL + 47 ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN + col1 AND NULL
----
43
0

query I rowsort
SELECT DISTINCT col1 FROM tab1 AS cor0 WHERE NOT col0 NOT BETWEEN - col2 * - + col0 AND col0
----

query II rowsort
SELECT 59, col2 FROM tab2 AS cor0
----
59
23
59
40
59
58

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col2 BETWEEN ( - col1 ) AND 23 * col2 * + 58
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7882
SELECT 13 DIV - col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7882
SELECT 13 / - col0 FROM tab1
----
0
0
0

query I rowsort
SELECT 0 * col0 * + 30 * - col1 * - + col2 * - + col0 FROM tab0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7884
SELECT * FROM tab1 WHERE - col1 BETWEEN + 86 * - - 85 + - + ( + col0 ) + col2 * 29 AND CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-7884
SELECT * FROM tab1 WHERE - col1 BETWEEN + 86 * - - 85 + - + ( + col0 ) + col2 * 29 AND CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7885
SELECT + COUNT( ALL - - col1 ) * - - 34 FROM tab0 WHERE NULL IS NULL
----
102

skipif mysql # not compatible
query I rowsort label-7885
SELECT + COUNT ( ALL - - col1 ) * - - 34 FROM tab0 WHERE NULL IS NULL
----
102

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 20 col0, col1 FROM tab1
----
-20
14
-20
47
-20
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7887
SELECT DISTINCT - COUNT( * ) + 46 FROM tab0 WHERE NULL IN ( - CAST( ( + 91 ) AS SIGNED ) )
----
46

skipif mysql # not compatible
query I rowsort label-7887
SELECT DISTINCT - COUNT ( * ) + 46 FROM tab0 WHERE NULL IN ( - CAST ( ( + 91 ) AS INTEGER ) )
----
46

query I rowsort
SELECT ALL + 54 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col1 + - - col2 AS col2 FROM tab1 cor0 WHERE NOT - col1 + + + col1 IS NULL
----
110
115
64

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 99 - + 88 <= - + col2 + col0
----
87
21
10

query I rowsort
SELECT ALL + col0 * - col2 FROM tab0 WHERE NULL NOT BETWEEN 51 AND NULL
----

query I rowsort
SELECT + col2 + - 82 AS col1 FROM tab1
----
-14
-23
14

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col0 < 16 * - 79 + + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT ( + col1 ) AS col2, + 54 AS col1 FROM tab2 AS cor0
----
51
54
67
54
77
54

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + 34 + - col2 IS NULL
----

query I rowsort
SELECT DISTINCT - col1 AS col0 FROM tab2 AS cor0 WHERE ( NULL ) BETWEEN NULL AND + + col1
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 0 < - + col0 + 43
----
15
81
47

query I rowsort
SELECT DISTINCT + - col2 + - - col0 AS col1 FROM tab2 AS cor0
----
17
23
24

query I rowsort
SELECT col1 * + col0 - - 59 AS col2 FROM tab0 AS cor0
----
1274
156
1886

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7900
SELECT + ( + + 5 ) - - CAST( col1 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
56
72
82

skipif mysql # not compatible
query I rowsort label-7900
SELECT + ( + + 5 ) - - CAST ( col1 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
56
72
82

query II rowsort
SELECT - + col2 - + col0, col2 + + - 47 AS col0 FROM tab1 AS cor0
----
-144
12
-147
49
-159
21

onlyif mysql # aggregate syntax: 
query I rowsort label-7902
SELECT DISTINCT + ( - COUNT( * ) ) - - + 60 + - - COUNT( * ) * + + 35 AS col0 FROM tab0 AS cor0
----
162

skipif mysql # not compatible
query I rowsort label-7902
SELECT DISTINCT + ( - COUNT ( * ) ) - - + 60 + - - COUNT ( * ) * + + 35 AS col0 FROM tab0 AS cor0
----
162

query I rowsort
SELECT ALL - col1 - 34 - col0 FROM tab0
----
-130
-132
-142

query I rowsort
SELECT DISTINCT col2 * - 99 AS col2 FROM tab0
----
-4653
-9801
-990

query II rowsort
SELECT col1 AS col1, 21 - - ( + col1 ) + - col0 * 49 AS col1 FROM tab0
----
1
-4731
21
-4221
81
-633

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 65 col1 FROM tab1
----
65

query II rowsort
SELECT col2 AS col2, col1 FROM tab2 AS cor0
----
23
51
40
77
58
67

onlyif mysql # aggregate syntax: 
query I rowsort label-7908
SELECT - MAX( ALL 47 ) FROM tab2 cor0
----
-47

skipif mysql # not compatible
query I rowsort label-7908
SELECT - MAX ( ALL 47 ) FROM tab2 cor0
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-7909
SELECT ALL MIN( - col1 ) AS col2 FROM tab1 AS cor0
----
-47

skipif mysql # not compatible
query I rowsort label-7909
SELECT ALL MIN ( - col1 ) AS col2 FROM tab1 AS cor0
----
-47

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL NOT IN ( + - 99 - 83, col2 )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE + - col1 NOT IN ( col1 + col1 + - col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL <= col1 * - col2 * + 46
----

query I rowsort
SELECT DISTINCT col2 + - 52 AS col0 FROM tab0 AS cor0
----
-42
-5
47

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7914
SELECT DISTINCT + 48 DIV 36 DIV + COUNT( * ) AS col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7914
SELECT DISTINCT + 48 / 36 / + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7915
SELECT - MIN( - + 81 ) FROM tab2 cor0
----
81

skipif mysql # not compatible
query I rowsort label-7915
SELECT - MIN ( - + 81 ) FROM tab2 cor0
----
81

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col2 * - + 94 * - 81 + col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7917
SELECT ALL + - MIN( DISTINCT - col0 ) * - 3 AS col1 FROM tab0 AS cor0
----
-291

skipif mysql # not compatible
query I rowsort label-7917
SELECT ALL + - MIN ( DISTINCT - col0 ) * - 3 AS col1 FROM tab0 AS cor0
----
-291

query II rowsort
SELECT + 68 AS col1, col1 AS col0 FROM tab1 WHERE col2 + col1 * + + col1 * col1 * 89 IS NOT NULL
----
68
14
68
47
68
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7919
SELECT DISTINCT AVG ( DISTINCT CAST( NULL AS SIGNED ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7919
SELECT DISTINCT AVG ( DISTINCT CAST ( NULL AS INTEGER ) ) FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT col0 + + 34 AS col2 FROM tab0
----
121
131
49

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL IN ( col1 * - - ( + - col1 ) + - - 48 - - - col2 / + 34 + + col1 )
----

query II rowsort
SELECT DISTINCT - 53 + + col1 * + 25, col0 FROM tab1 AS cor0
----
1122
91
297
51
72
85

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 9 < + - 89
----

query I rowsort
SELECT ( + 24 ) FROM tab1 AS cor0 WHERE ( NULL ) = - col0 / - - col1
----

query I rowsort
SELECT DISTINCT - col0 FROM tab1 AS cor0 WHERE NOT ( ( NOT ( + 51 + - 80 ) BETWEEN col0 AND + 67 ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 2 col1 FROM tab1 AS cor0
----
2
2
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col0 col2, 64 AS col1 FROM tab0
----
-15
64
-87
64
-97
64

query I rowsort
SELECT - col1 * + col0 - + col1 AS col0 FROM tab0
----
-1296
-1848
-98

query I rowsort
SELECT - col2 + - - col2 - col2 FROM tab2
----
-23
-40
-58

query I rowsort
SELECT DISTINCT - col1 * - + ( 92 ) + - col2 * - col0 * + - col0 * 82 FROM tab2
----
-13427796
-26746336
-3986084

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7931
SELECT * FROM tab1 AS cor0 WHERE - CAST( NULL AS SIGNED ) <> + col2 + - + col0
----

skipif mysql # not compatible
query III rowsort label-7931
SELECT * FROM tab1 AS cor0 WHERE - CAST ( NULL AS INTEGER ) <> + col2 + - + col0
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - col1 + - + col0 * - - col2 < col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + 38 + + 15 * + 82 FROM tab2 cor0
----
1268
1268
1268

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col2 * + 48 + + 18 IS NOT NULL
----

query III rowsort
SELECT - 57 - + col2 + - 96, + col2, + - col0 + + + 18 FROM tab2 WHERE NOT col0 + + - col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7936
SELECT + SUM( ALL - 14 ) FROM tab2
----
-42

skipif mysql # not compatible
query I rowsort label-7936
SELECT + SUM ( ALL - 14 ) FROM tab2
----
-42

query I rowsort
SELECT col0 * 74 FROM tab0
----
1110
6438
7178

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7938
SELECT DISTINCT + 11 * ( + col0 ) + - CAST( - col0 AS SIGNED ) + 58 FROM tab2 AS cor0
----
610
826
958

skipif mysql # not compatible
query I rowsort label-7938
SELECT DISTINCT + 11 * ( + col0 ) + - CAST ( - col0 AS INTEGER ) + 58 FROM tab2 AS cor0
----
610
826
958

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7939
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + 63 < + + 1 - col1 * + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-7939
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + 63 < + + 1 - col1 * + CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT ALL col2 * col0 + + 5 FROM tab1 AS cor0
----
4901
5020
6193

query I rowsort
SELECT + col1 FROM tab0 cor0 WHERE NOT + 8 IN ( 30 + + col1 )
----
1
21
81

query II rowsort
SELECT ALL - - 63 * + 67 AS col2, - 30 FROM tab1 AS cor0
----
4221
-30
4221
-30
4221
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-7943
SELECT ALL - - COUNT( * ) * - - 13 FROM tab2 AS cor0
----
39

skipif mysql # not compatible
query I rowsort label-7943
SELECT ALL - - COUNT ( * ) * - - 13 FROM tab2 AS cor0
----
39

onlyif mysql # DIV for integer division: 
query I rowsort label-7944
SELECT DISTINCT - 11 DIV col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7944
SELECT DISTINCT - 11 / col0 FROM tab1 AS cor0
----
0

query I rowsort
SELECT ALL + + 24 FROM tab0 AS cor0 WHERE NOT ( col1 ) < col0 - col0 + + col0 + - - 81 + 38 / + - 15
----

query II rowsort
SELECT ALL - - 35 AS col1, - col1 * + 65 AS col2 FROM tab2 cor0
----
35
-3315
35
-4355
35
-5005

query I rowsort
SELECT + - col0 AS col2 FROM tab0 AS cor0 WHERE col1 IS NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col1 * + - col2 IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col0 * - col2 NOT IN ( - + col1, col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7950
SELECT DISTINCT - + COUNT( col0 ) AS col0 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7950
SELECT DISTINCT - + COUNT ( col0 ) AS col0 FROM tab2 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-7951
SELECT ALL - - SUM( - col2 ) AS col2 FROM tab1 AS cor0
----
-223

skipif mysql # not compatible
query I rowsort label-7951
SELECT ALL - - SUM ( - col2 ) AS col2 FROM tab1 AS cor0
----
-223

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7952
SELECT DISTINCT - CAST( NULL AS SIGNED ) * ( 58 ) col0 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7952
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * ( 58 ) col0 FROM tab0 cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7953
SELECT col1 DIV + 11 AS col2 FROM tab1
----
0
1
4

skipif mysql # not compatible
query I rowsort label-7953
SELECT col1 / + 11 AS col2 FROM tab1
----
0
1
4

onlyif mysql # aggregate syntax: 
query I rowsort label-7954
SELECT + COUNT( - 79 ) * + - COUNT( * ) FROM tab0
----
-9

skipif mysql # not compatible
query I rowsort label-7954
SELECT + COUNT ( - 79 ) * + - COUNT ( * ) FROM tab0
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7955
SELECT DISTINCT ( + CAST( + + 38 AS SIGNED ) ) * - - col2 + + col2 / - CAST( NULL AS SIGNED ) + 78 AS col0, + col0 * + col1 AS col0 FROM tab1
----
NULL
425
NULL
4277
NULL
714

skipif mysql # not compatible
query II rowsort label-7955
SELECT DISTINCT ( + CAST ( + + 38 AS INTEGER ) ) * - - col2 + + col2 / - CAST ( NULL AS INTEGER ) + 78 AS col0, + col0 * + col1 AS col0 FROM tab1
----
NULL
425
NULL
4277
NULL
714

query I rowsort
SELECT + col1 * + + ( + col2 ) AS col1 FROM tab0
----
210
3807
99

query I rowsort
SELECT DISTINCT - 55 * - col1 * - col1 FROM tab1
----
-10780
-121495
-1375

onlyif mysql # aggregate syntax: 
query I rowsort label-7958
SELECT ALL - + 2 * COUNT( * ) FROM tab0 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-7958
SELECT ALL - + 2 * COUNT ( * ) FROM tab0 AS cor0
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-7959
SELECT ALL + 98 + + - MAX( col1 ) AS col1 FROM tab1 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-7959
SELECT ALL + 98 + + - MAX ( col1 ) AS col1 FROM tab1 AS cor0
----
51

query I rowsort
SELECT ALL + 28 + + - ( - + col2 ) FROM tab0 AS cor0
----
127
38
75

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7961
SELECT ALL - col1 * - col0 + ( - 31 ) - - CAST( NULL AS SIGNED ) * + + col0 + - + col2 + CAST( - 18 AS DECIMAL ) * + 47 * + col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7961
SELECT ALL - col1 * - col0 + ( - 31 ) - - CAST ( NULL AS INTEGER ) * + + col0 + - + col2 + CAST ( - 18 AS REAL ) * + 47 * + col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7962
SELECT + + COUNT( * ) DIV - MAX( + - 8 ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
1

skipif mysql # not compatible
query I rowsort label-7962
SELECT + + COUNT ( * ) / - MAX ( + - 8 ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7963
SELECT DISTINCT MAX( - - col1 ) FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-7963
SELECT DISTINCT MAX ( - - col1 ) FROM tab1 AS cor0
----
47

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col0 + - - col0 * 2 NOT BETWEEN - 30 / - 5 AND 40
----
15
81
47

query I rowsort
SELECT - col1 AS col1 FROM tab1 AS cor0 WHERE NOT + 84 < 63
----
-14
-47
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-7966
SELECT 49 DIV - col1 + + + col2 FROM tab2 AS cor0
----
23
40
58

skipif mysql # not compatible
query I rowsort label-7966
SELECT 49 / - col1 + + + col2 FROM tab2 AS cor0
----
23
40
58

query I rowsort
SELECT 85 * - col1 AS col0 FROM tab0 AS cor0
----
-1785
-6885
-85

query II rowsort
SELECT - + col2, col0 FROM tab2 AS cor0
----
-23
46
-40
64
-58
75

query II rowsort
SELECT DISTINCT + col2 AS col1, + ( + 50 ) FROM tab2 AS cor0
----
23
50
40
50
58
50

query I rowsort
SELECT DISTINCT + + ( - + col2 ) FROM tab1 AS cor0
----
-59
-68
-96

onlyif mysql # DIV for integer division: 
query I rowsort label-7971
SELECT 0 DIV - + 24 AS col0 FROM tab0 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7971
SELECT 0 / - + 24 AS col0 FROM tab0 cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 1 col0 FROM tab2 cor0
----
-1
-1
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 71 col2 FROM tab0
----
71
71
71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7974
SELECT CAST( + 26 AS SIGNED ) AS col1 FROM tab1
----
26
26
26

skipif mysql # not compatible
query I rowsort label-7974
SELECT CAST ( + 26 AS INTEGER ) AS col1 FROM tab1
----
26
26
26

query I rowsort
SELECT ALL - + col2 * - 47 * - + 74 FROM tab1 AS cor0
----
-205202
-236504
-333888

query II rowsort
SELECT 96, 46 * - ( - - col2 ) AS col1 FROM tab1 AS cor0
----
96
-2714
96
-3128
96
-4416

query I rowsort
SELECT - col2 * + col0 * + + 1 FROM tab1 AS cor0
----
-4896
-5015
-6188

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 46 col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 31818c9d4d325eb248735c97cb1dce39

query I rowsort
SELECT DISTINCT + - ( - col1 ) + + col0 + + + col0 + - - col1 * - - col0 AS col0 FROM tab2 AS cor0
----
2489
5133
5242

query I rowsort
SELECT DISTINCT col0 + + 98 FROM tab2 AS cor0
----
144
162
173

query I rowsort
SELECT DISTINCT col0 * - col2 AS col2 FROM tab1 WHERE NOT + + col0 * - 43 NOT IN ( - - col1, col1, col1 - - + col1 )
----

query I rowsort
SELECT DISTINCT 57 - col0 AS col0 FROM tab1 WHERE NOT ( NULL IS NOT NULL )
----
-28
-34
6

query I rowsort
SELECT + 47 + + + col1 FROM tab0
----
128
48
68

onlyif mysql # aggregate syntax: 
query I rowsort label-7984
SELECT ALL + 61 - + COUNT( * ) FROM tab0, tab1 AS cor0
----
52

skipif mysql # not compatible
query I rowsort label-7984
SELECT ALL + 61 - + COUNT ( * ) FROM tab0, tab1 AS cor0
----
52

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7985
SELECT ALL + col0 AS col0, - col2 * - ( + CAST( NULL AS SIGNED ) ) AS col2 FROM tab0
----
15
NULL
87
NULL
97
NULL

skipif mysql # not compatible
query II rowsort label-7985
SELECT ALL + col0 AS col0, - col2 * - ( + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab0
----
15
NULL
87
NULL
97
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7986
SELECT DISTINCT + 57 * - + 46 + + + COUNT( * ) AS col2 FROM tab1
----
-2619

skipif mysql # not compatible
query I rowsort label-7986
SELECT DISTINCT + 57 * - + 46 + + + COUNT ( * ) AS col2 FROM tab1
----
-2619

query I rowsort
SELECT ALL - 35 + col0 + + col0 FROM tab2 WHERE NOT + col1 IS NULL
----
115
57
93

onlyif mysql # aggregate syntax: 
query I rowsort label-7988
SELECT COUNT( ALL - col2 ) AS col0 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-7988
SELECT COUNT ( ALL - col2 ) AS col0 FROM tab0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-7989
SELECT DISTINCT + - col0 DIV - 89 AS col1 FROM tab1 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-7989
SELECT DISTINCT + - col0 / - 89 AS col1 FROM tab1 AS cor0
----
0
1

query I rowsort
SELECT DISTINCT - - col0 * - ( - col0 ) - 45 FROM tab0 AS cor0
----
180
7524
9364

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7991
SELECT ALL * FROM tab1 WHERE + CAST( NULL AS SIGNED ) > + ( + col1 )
----

skipif mysql # not compatible
query III rowsort label-7991
SELECT ALL * FROM tab1 WHERE + CAST ( NULL AS INTEGER ) > + ( + col1 )
----

query I rowsort
SELECT DISTINCT - 65 * - - col2 FROM tab1 WHERE NULL NOT IN ( + 69 * - - ( col0 ), col2 )
----

query I rowsort
SELECT + col0 * + - col1 FROM tab1 AS cor0
----
-425
-4277
-714

onlyif mysql # DIV for integer division: 
query I rowsort label-7994
SELECT ALL 95 DIV + - 23 FROM tab1 AS cor0
----
-4
-4
-4

skipif mysql # not compatible
query I rowsort label-7994
SELECT ALL 95 / + - 23 FROM tab1 AS cor0
----
-4
-4
-4

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( 54 ) * 37 + - 57 / - col1 BETWEEN NULL AND - - col0
----

query I rowsort
SELECT - col0 * - col2 + - 61 FROM tab2 cor0
----
2499
4289
997

onlyif mysql # aggregate syntax: 
query I rowsort label-7997
SELECT ALL - - COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE NOT 39 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-7997
SELECT ALL - - COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE NOT 39 IS NULL
----
3

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN col1 + + - 58 AND + ( + + col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - ( - 87 ) col0 FROM tab1 AS cor0
----
87
87
87

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL BETWEEN ( + col2 ) AND ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8001
SELECT DISTINCT - CAST( NULL AS SIGNED ) / + 78 AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8001
SELECT DISTINCT - CAST ( NULL AS INTEGER ) / + 78 AS col1 FROM tab2
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 94 * + 52 col2 FROM tab0
----
-4888

query II rowsort
SELECT ALL - col0, col1 AS col2 FROM tab0
----
-15
81
-87
21
-97
1

query III rowsort
SELECT * FROM tab2 WHERE NOT + - 18 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8005
SELECT MAX( DISTINCT - 66 ) AS col1 FROM tab2
----
-66

skipif mysql # not compatible
query I rowsort label-8005
SELECT MAX ( DISTINCT - 66 ) AS col1 FROM tab2
----
-66

query II rowsort
SELECT DISTINCT ( - + col1 ) + 6 + + col0 * col1, col2 AS col1 FROM tab2 AS cor0
----
2301
23
4857
40
4964
58

onlyif mysql # DIV for integer division: 
query I rowsort label-8007
SELECT + ( - col1 ) * + col1 DIV - - col1 + + + ( col0 ) - col2 DIV - col2 FROM tab1 AS cor0
----
38
45
81

skipif mysql # not compatible
query I rowsort label-8007
SELECT + ( - col1 ) * + col1 / - - col1 + + + ( col0 ) - col2 / - col2 FROM tab1 AS cor0
----
38
45
81

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col1 * col1 * + 93 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8009
SELECT + SUM( + + ( + - 74 ) ) FROM tab2 AS cor0
----
-222

skipif mysql # not compatible
query I rowsort label-8009
SELECT + SUM ( + + ( + - 74 ) ) FROM tab2 AS cor0
----
-222

query I rowsort
SELECT DISTINCT + col1 AS col2 FROM tab0 AS cor0 WHERE 3 IS NOT NULL
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-8011
SELECT + - COUNT( - col0 ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8011
SELECT + - COUNT ( - col0 ) FROM tab2 AS cor0
----
-3

query I rowsort
SELECT col1 * - - 49 AS col1 FROM tab2 AS cor0
----
2499
3283
3773

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * + 66 col1 FROM tab0 AS cor0
----
-1386
-5346
-66

query II rowsort
SELECT + col1, - 71 FROM tab2 cor0
----
51
-71
67
-71
77
-71

query I rowsort
SELECT col1 * + ( col2 ) AS col1 FROM tab2
----
1173
3080
3886

onlyif mysql # aggregate syntax: 
query I rowsort label-8016
SELECT DISTINCT COUNT( * ) - - 18 + - 69 + - - 67 FROM tab2
----
19

skipif mysql # not compatible
query I rowsort label-8016
SELECT DISTINCT COUNT ( * ) - - 18 + - 69 + - - 67 FROM tab2
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-8017
SELECT COUNT( * ) - + 25 FROM tab0
----
-22

skipif mysql # not compatible
query I rowsort label-8017
SELECT COUNT ( * ) - + 25 FROM tab0
----
-22

query III rowsort
SELECT * FROM tab1 WHERE - - 33 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 22 * - 37 col0 FROM tab1
----
-814

query I rowsort
SELECT ALL col1 * - 46 AS col1 FROM tab0
----
-3726
-46
-966

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8021
SELECT ALL 10 + + + MAX( ALL + 55 ) - + CAST( + COUNT( * ) AS SIGNED ) FROM tab2
----
62

skipif mysql # not compatible
query I rowsort label-8021
SELECT ALL 10 + + + MAX ( ALL + 55 ) - + CAST ( + COUNT ( * ) AS INTEGER ) FROM tab2
----
62

query I rowsort
SELECT DISTINCT + col2 + - col0 + col2 AS col1 FROM tab1
----
141
33
45

onlyif mysql # aggregate syntax: 
query I rowsort label-8023
SELECT ALL - COUNT( + col1 ) + + - ( - 48 ) FROM tab2
----
45

skipif mysql # not compatible
query I rowsort label-8023
SELECT ALL - COUNT ( + col1 ) + + - ( - 48 ) FROM tab2
----
45

query I rowsort
SELECT - + col2 + + ( + col0 ) FROM tab2 AS cor0
----
17
23
24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8025
SELECT DISTINCT - + 12 - - + COUNT( ALL + + CAST( NULL AS SIGNED ) ) AS col0 FROM tab2 AS cor0
----
-12

skipif mysql # not compatible
query I rowsort label-8025
SELECT DISTINCT - + 12 - - + COUNT ( ALL + + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab2 AS cor0
----
-12

query I rowsort
SELECT DISTINCT col1 FROM tab2 AS cor0 WHERE - ( + - col1 ) >= NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL <> col2 + + col0
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8028
SELECT DISTINCT + COUNT( * ) DIV + + 60 AS col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-8028
SELECT DISTINCT + COUNT ( * ) / + + 60 AS col1 FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8029
SELECT + + 83, COUNT( * ) AS col1 FROM tab1 WHERE NOT + col2 IS NOT NULL
----
83
0

skipif mysql # not compatible
query II rowsort label-8029
SELECT + + 83, COUNT ( * ) AS col1 FROM tab1 WHERE NOT + col2 IS NOT NULL
----
83
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8030
SELECT + + SUM( - 2 ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-18

skipif mysql # not compatible
query I rowsort label-8030
SELECT + + SUM ( - 2 ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-18

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * - col1 - 18 col0 FROM tab2 AS cor0
----
-1191
-3098
-3904

query II rowsort
SELECT ALL + 48 * - ( - 30 ), col1 AS col0 FROM tab2 AS cor0
----
1440
51
1440
67
1440
77

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8033
SELECT DISTINCT - 9 AS col0, + CAST( NULL AS SIGNED ) FROM tab2 cor0
----
-9
NULL

skipif mysql # not compatible
query II rowsort label-8033
SELECT DISTINCT - 9 AS col0, + CAST ( NULL AS INTEGER ) FROM tab2 cor0
----
-9
NULL

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT - col0 > + + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + 48 * + + col1 AS col0 FROM tab0 cor0
----
1008
3888
48

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8036
SELECT DISTINCT * FROM tab2 WHERE + col1 + + CAST( + + col1 AS SIGNED ) + + col2 > NULL
----

skipif mysql # not compatible
query III rowsort label-8036
SELECT DISTINCT * FROM tab2 WHERE + col1 + + CAST ( + + col1 AS INTEGER ) + + col2 > NULL
----

query I rowsort
SELECT + 57 + + - col2 * + 91 FROM tab1 WHERE NOT - col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8038
SELECT MAX( ALL + - 32 ) + + COUNT( * ) FROM tab0
----
-29

skipif mysql # not compatible
query I rowsort label-8038
SELECT MAX ( ALL + - 32 ) + + COUNT ( * ) FROM tab0
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-8039
SELECT - 21 * + SUM( - 55 ) FROM tab0 AS cor0
----
3465

skipif mysql # not compatible
query I rowsort label-8039
SELECT - 21 * + SUM ( - 55 ) FROM tab0 AS cor0
----
3465

onlyif mysql # aggregate syntax: 
query I rowsort label-8040
SELECT - COUNT( + col1 ) col0 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8040
SELECT - COUNT ( + col1 ) col0 FROM tab1 AS cor0
----
-3

query I rowsort
SELECT DISTINCT col1 AS col1 FROM tab1 AS cor0 WHERE NOT - 12 IS NULL
----
14
47
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8042
SELECT DISTINCT + - CAST( + COUNT( * ) AS SIGNED ) + - 22 - 92 DIV 47 AS col1 FROM tab2 AS cor0
----
-26

skipif mysql # not compatible
query I rowsort label-8042
SELECT DISTINCT + - CAST ( + COUNT ( * ) AS INTEGER ) + - 22 - 92 / 47 AS col1 FROM tab2 AS cor0
----
-26

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8043
SELECT * FROM tab2 WHERE - col0 + + CAST( NULL AS SIGNED ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-8043
SELECT * FROM tab2 WHERE - col0 + + CAST ( NULL AS INTEGER ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - - ( 45 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8045
SELECT DISTINCT + SUM( ALL - + col2 ) + + 44 + + COUNT( * ) * ( - CAST( - 27 AS SIGNED ) ) * - COUNT( * ) AS col1 FROM tab2
----
-320

skipif mysql # not compatible
query I rowsort label-8045
SELECT DISTINCT + SUM ( ALL - + col2 ) + + 44 + + COUNT ( * ) * ( - CAST ( - 27 AS INTEGER ) ) * - COUNT ( * ) AS col1 FROM tab2
----
-320

query I rowsort
SELECT DISTINCT + 56 * col0 + + + col0 AS col0 FROM tab0 AS cor0
----
4959
5529
855

onlyif mysql # aggregate syntax: 
query I rowsort label-8047
SELECT ALL 40 - COUNT( * ) FROM tab0 AS cor0
----
37

skipif mysql # not compatible
query I rowsort label-8047
SELECT ALL 40 - COUNT ( * ) FROM tab0 AS cor0
----
37

query I rowsort
SELECT DISTINCT - col2 FROM tab1 AS cor0 WHERE NOT + col1 * ( + - col1 ) + + - col2 NOT BETWEEN NULL AND col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8049
SELECT ALL + 66 * CAST( NULL AS SIGNED ) * COUNT( * ) - + 83 + - COUNT( * ) * + + 32 AS col2, - 22 AS col0 FROM tab1
----
NULL
-22

skipif mysql # not compatible
query II rowsort label-8049
SELECT ALL + 66 * CAST ( NULL AS INTEGER ) * COUNT ( * ) - + 83 + - COUNT ( * ) * + + 32 AS col2, - 22 AS col0 FROM tab1
----
NULL
-22

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL IS NOT NULL OR NOT 78 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col2 FROM tab2 WHERE + col2 IS NOT NULL
----
-23
-40
-58

query I rowsort
SELECT DISTINCT 86 * 20 FROM tab0
----
1720

query II rowsort
SELECT ALL col1 AS col1, - 53 AS col1 FROM tab2
----
51
-53
67
-53
77
-53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8054
SELECT CAST( NULL AS SIGNED ) * - 28 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8054
SELECT CAST ( NULL AS INTEGER ) * - 28 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8055
SELECT 20 * COUNT( * ) FROM tab2
----
60

skipif mysql # not compatible
query I rowsort label-8055
SELECT 20 * COUNT ( * ) FROM tab2
----
60

query I rowsort
SELECT DISTINCT + col0 + + 1 AS col2 FROM tab0
----
16
88
98

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - 98 + 54 * - col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT - 85, + 51 AS col2 FROM tab0 AS cor0
----
-85
51
-85
51
-85
51

onlyif mysql # aggregate syntax: 
query I rowsort label-8059
SELECT DISTINCT + - SUM( + col0 ) AS col2 FROM tab2 AS cor0
----
-185

skipif mysql # not compatible
query I rowsort label-8059
SELECT DISTINCT + - SUM ( + col0 ) AS col2 FROM tab2 AS cor0
----
-185

onlyif mysql # aggregate syntax: 
query I rowsort label-8060
SELECT ALL + + MIN( - col0 ) FROM tab2 cor0
----
-75

skipif mysql # not compatible
query I rowsort label-8060
SELECT ALL + + MIN ( - col0 ) FROM tab2 cor0
----
-75

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 9 BETWEEN 2 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * + - col0 col0 FROM tab0 AS cor0
----
-225
-7569
-9409

query I rowsort
SELECT ALL + 80 * - 26 FROM tab2
----
-2080
-2080
-2080

onlyif mysql # aggregate syntax: 
query I rowsort label-8064
SELECT + COUNT( * ) AS col0 FROM ( tab1 AS cor0 CROSS JOIN tab1 cor1 )
----
9

skipif mysql # not compatible
query I rowsort label-8064
SELECT + COUNT ( * ) AS col0 FROM ( tab1 AS cor0 CROSS JOIN tab1 cor1 )
----
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8065
SELECT ALL COUNT( * ) + + + CAST( NULL AS SIGNED ) AS col2 FROM tab0 cor0 CROSS JOIN tab0 cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-8065
SELECT ALL COUNT ( * ) + + + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 cor0 CROSS JOIN tab0 cor1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8066
SELECT DISTINCT - MIN( ALL + col1 ) * COUNT( * ) + + - 16 FROM tab0
----
-19

skipif mysql # not compatible
query I rowsort label-8066
SELECT DISTINCT - MIN ( ALL + col1 ) * COUNT ( * ) + + - 16 FROM tab0
----
-19

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 58 col2 FROM tab0 AS cor0
----
58
58
58

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL < + 41
----

query I rowsort
SELECT + 89 FROM tab2 AS cor0 WHERE NOT 88 = NULL
----

query II rowsort
SELECT ALL 36 * - col2 AS col1, + 29 FROM tab0 AS cor0
----
-1692
29
-3564
29
-360
29

query I rowsort
SELECT + + col2 * 91 AS col1 FROM tab1 AS cor0
----
5369
6188
8736

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8072
SELECT ALL + ( col2 ) * ( - - CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8072
SELECT ALL + ( col2 ) * ( - - CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8073
SELECT MIN( + + col2 ) * 89 AS col2 FROM tab0
----
890

skipif mysql # not compatible
query I rowsort label-8073
SELECT MIN ( + + col2 ) * 89 AS col2 FROM tab0
----
890

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8074
SELECT + col1 * + 77 * + ( 82 ) * CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8074
SELECT + col1 * + 77 * + ( 82 ) * CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT + col1 + - + 66 + - - 31 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT + 79 AS col0, 33 FROM tab1
----
79
33
79
33
79
33

onlyif mysql # DIV for integer division: 
query II rowsort label-8077
SELECT + col1, + ( + 86 ) * + 98 - + - col2 DIV 24 + + col0 col0 FROM tab0
----
1
8529
21
8515
81
8444

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8077
SELECT + col1, + ( + 86 ) * + 98 - + - col2 / 24 + + col0 col0 FROM tab0
----
1
8529
21
8515
81
8444

onlyif mysql # aggregate syntax: 
query I rowsort label-8078
SELECT DISTINCT SUM( DISTINCT - ( + - col1 ) ) FROM tab1
----
66

skipif mysql # not compatible
query I rowsort label-8078
SELECT DISTINCT SUM ( DISTINCT - ( + - col1 ) ) FROM tab1
----
66

query I rowsort
SELECT DISTINCT col2 * + + 42 * - 17 + 66 FROM tab2
----
-16356
-28494
-41346

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8080
SELECT DISTINCT - CAST( - 13 AS SIGNED ) / 70 + + - 11 + CAST( NULL AS SIGNED ) * + col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8080
SELECT DISTINCT - CAST ( - 13 AS INTEGER ) / 70 + + - 11 + CAST ( NULL AS INTEGER ) * + col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + 98 + - 22 FROM tab0 AS cor0
----
76

query I rowsort
SELECT + 75 * + col2 * + 86 * col1 * + + col0 + col1 FROM tab1
----
161733755
1875892247
442108814

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col1 < - + 77
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8084
SELECT ALL + - COUNT( * ) DIV + + 18 col2 FROM tab1 cor0 WHERE col2 NOT IN ( + - col1, - col2 DIV 66 )
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8084
SELECT ALL + - COUNT ( * ) / + + 18 col2 FROM tab1 cor0 WHERE col2 NOT IN ( + - col1, - col2 / 66 )
----
0

query I rowsort
SELECT DISTINCT - col1 AS col1 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
-14
-47
-5

query I rowsort
SELECT ALL col1 + - + col0 + + + col2 * col2 * col1 * + col0 AS col0 FROM tab1 AS cor0
----
1479345
19776804
6580187

query I rowsort
SELECT ALL col1 * col1 - - col2 AS col2 FROM tab0 AS cor0
----
100
451
6608

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 28 - - - 50 col1 FROM tab0 AS cor0
----
-22
-22
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-8089
SELECT COUNT( * ) - - 77 FROM tab1
----
80

skipif mysql # not compatible
query I rowsort label-8089
SELECT COUNT ( * ) - - 77 FROM tab1
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-8090
SELECT 40 * - 20 * - MIN( col1 ) * - COUNT( * ) + - - 40 AS col0 FROM tab2 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8090
SELECT 40 * - 20 * - MIN ( col1 ) * - COUNT ( * ) + - - 40 AS col0 FROM tab2 WHERE NULL IS NOT NULL
----
NULL

query I rowsort
SELECT col0 - - - 57 FROM tab0
----
-42
30
40

query I rowsort
SELECT ALL + ( 91 ) AS col0 FROM tab2
----
91
91
91

query III rowsort
SELECT * FROM tab1 WHERE NOT + - 28 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8094
SELECT ALL - COUNT( * ) FROM tab1 WHERE ( - - 1 ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-8094
SELECT ALL - COUNT ( * ) FROM tab1 WHERE ( - - 1 ) IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8095
SELECT ALL COUNT( * ) * SUM( ALL + + col0 ) col0 FROM tab2
----
555

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8095
SELECT ALL COUNT ( * ) * SUM ( ALL + + col0 ) col0 FROM tab2
----
555

onlyif mysql # aggregate syntax: 
query I rowsort label-8096
SELECT ALL + - MIN( DISTINCT - col2 ) * + 11 AS col0 FROM tab2 AS cor0
----
638

skipif mysql # not compatible
query I rowsort label-8096
SELECT ALL + - MIN ( DISTINCT - col2 ) * + 11 AS col0 FROM tab2 AS cor0
----
638

onlyif mysql # aggregate syntax: 
query I rowsort label-8097
SELECT MIN( + - col0 ) AS col1 FROM tab0 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-8097
SELECT MIN ( + - col0 ) AS col1 FROM tab0 AS cor0
----
-97

query I rowsort
SELECT ALL + col2 + + 36 FROM tab1 AS cor0
----
104
132
95

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE 78 > + - 59
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - - col0 * - col1 + - 49 + + 36 AS col1 FROM tab1 AS cor0
----
-4290
-438
-727

query I rowsort
SELECT - ( - + 52 ) * - 82 AS col2 FROM tab0 AS cor0
----
-4264
-4264
-4264

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 13 * - - col2 * - col1 col2 FROM tab0 AS cor0
----
-1287
-2730
-49491

query I rowsort
SELECT - col0 FROM tab2 AS cor0 WHERE NOT col0 IS NULL
----
-46
-64
-75

query II rowsort
SELECT DISTINCT 97, col0 * - + col2 AS col1 FROM tab0 AS cor0 WHERE NOT ( + 47 = - col2 )
----
97
-705
97
-870
97
-9603

onlyif mysql # aggregate syntax: 
query II rowsort label-8105
SELECT + 5, + ( - COUNT( * ) ) + - + COUNT( * ) AS col0 FROM tab1 cor0
----
5
-6

skipif mysql # not compatible
query II rowsort label-8105
SELECT + 5, + ( - COUNT ( * ) ) + - + COUNT ( * ) AS col0 FROM tab1 cor0
----
5
-6

query I rowsort
SELECT ALL col2 FROM tab2 AS cor0 WHERE NOT ( col2 ) <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8107
SELECT DISTINCT + + COUNT( * ) * + 26 + COUNT( * ) * - + 36 AS col2 FROM tab2 cor0
----
-30

skipif mysql # not compatible
query I rowsort label-8107
SELECT DISTINCT + + COUNT ( * ) * + 26 + COUNT ( * ) * - + 36 AS col2 FROM tab2 cor0
----
-30

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + 64 - 94 * + col0 NOT BETWEEN - ( + + col2 ) / - col0 AND + + col0 + - - 50
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8109
SELECT * FROM tab0 WHERE ( ( - CAST( NULL AS SIGNED ) ) + col0 + col2 ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-8109
SELECT * FROM tab0 WHERE ( ( - CAST ( NULL AS INTEGER ) ) + col0 + col2 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT 50 FROM tab0 WHERE NOT NULL IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * col1 * 54 col1 FROM tab0
----
23814
354294
54

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8112
SELECT 62 + - + col2 AS col0, - col1 * + CAST( CAST( col2 AS SIGNED ) AS SIGNED ) AS col1 FROM tab1
----
-34
-1344
-6
-3196
3
-295

skipif mysql # not compatible
query II rowsort label-8112
SELECT 62 + - + col2 AS col0, - col1 * + CAST ( CAST ( col2 AS INTEGER ) AS INTEGER ) AS col1 FROM tab1
----
-34
-1344
-6
-3196
3
-295

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + ( + 27 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 WHERE + + 77 * + ( - col0 ) + + 65 = col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + 13 col0 FROM tab1
----
18
27
60

onlyif mysql # aggregate syntax: 
query II rowsort label-8116
SELECT 11 + COUNT( * ) AS col2, 3 col2 FROM tab2
----
14
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8116
SELECT 11 + COUNT ( * ) AS col2, 3 col2 FROM tab2
----
14
3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL >= 94
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8118
SELECT ALL col0 * col1 + - CAST( NULL AS SIGNED ) col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8118
SELECT ALL col0 * col1 + - CAST ( NULL AS INTEGER ) col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 29 * + - 80 + + 83 AS col2 FROM tab1 cor0
----
-2237

onlyif mysql # aggregate syntax: 
query I rowsort label-8120
SELECT DISTINCT - COUNT( * ) + + + 82 AS col1 FROM tab0
----
79

skipif mysql # not compatible
query I rowsort label-8120
SELECT DISTINCT - COUNT ( * ) + + + 82 AS col1 FROM tab0
----
79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8121
SELECT 73 * CAST( NULL AS SIGNED ) AS col0 FROM tab1 WHERE 40 * - col2 > NULL
----

skipif mysql # not compatible
query I rowsort label-8121
SELECT 73 * CAST ( NULL AS INTEGER ) AS col0 FROM tab1 WHERE 40 * - col2 > NULL
----

query I rowsort
SELECT DISTINCT - - col2 + - - col2 AS col1 FROM tab1 AS cor0
----
118
136
192

query I rowsort
SELECT - 99 + 2 AS col0 FROM tab0 cor0
----
-97
-97
-97

query I rowsort
SELECT DISTINCT - ( - col1 ) * - + ( + col1 ) - - 63 FROM tab2 AS cor0
----
-2538
-4426
-5866

query III rowsort
SELECT * FROM tab0 cor0 WHERE 80 BETWEEN NULL AND + 21
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8126
SELECT DISTINCT col2 - - - CAST( - 86 AS SIGNED ) - - col2 * 83 FROM tab0 AS cor0
----
4034
8402
926

skipif mysql # not compatible
query I rowsort label-8126
SELECT DISTINCT col2 - - - CAST ( - 86 AS INTEGER ) - - col2 * 83 FROM tab0 AS cor0
----
4034
8402
926

query I rowsort
SELECT ALL + + col2 + - + 66 FROM tab1 AS cor0
----
-7
2
30

query I rowsort
SELECT DISTINCT - col1 AS col2 FROM tab0 AS cor0 WHERE NOT - col1 < + + col0
----

query I rowsort
SELECT + col1 * + + 80 AS col0 FROM tab2
----
4080
5360
6160

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8130
SELECT - 27 * + - CAST( - + col2 AS SIGNED ) AS col1 FROM tab0
----
-1269
-2673
-270

skipif mysql # not compatible
query I rowsort label-8130
SELECT - 27 * + - CAST ( - + col2 AS INTEGER ) AS col1 FROM tab0
----
-1269
-2673
-270

query III rowsort
SELECT * FROM tab1 WHERE NOT - + 43 - 86 >= ( + col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col2 * + 91 FROM tab0
----
4277
9009
910

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8133
SELECT - ( + col2 ), CAST( col2 AS SIGNED ) col2 FROM tab2
----
-23
23
-40
40
-58
58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8133
SELECT - ( + col2 ), CAST ( col2 AS INTEGER ) col2 FROM tab2
----
-23
23
-40
40
-58
58

query I rowsort
SELECT DISTINCT + ( + 70 ) FROM tab0 AS cor0
----
70

query I rowsort
SELECT ALL - 13 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to e95f5f4bd0f480397cced5f5e8a23792

query I rowsort
SELECT col1 + + col0 AS col0 FROM tab1 WHERE NOT NULL <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8137
SELECT COUNT( * ) col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8137
SELECT COUNT ( * ) col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9

query I rowsort
SELECT ALL + 96 + - - 35 + + ( + + col2 ) + + - ( + + ( + col2 ) ) AS col1 FROM tab1
----
131
131
131

query II rowsort
SELECT ALL 74, col2 FROM tab2
----
74
23
74
40
74
58

query I rowsort
SELECT ALL + 22 + + col1 AS col1 FROM tab0 cor0
----
103
23
43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8141
SELECT + 95 + + SUM( ALL + CAST( NULL AS SIGNED ) ) FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8141
SELECT + 95 + + SUM ( ALL + CAST ( NULL AS INTEGER ) ) FROM tab1 cor0
----
NULL

query I rowsort
SELECT - col2 AS col1 FROM tab1 AS cor0 WHERE NOT col2 * - col2 NOT IN ( + ( - col1 ), - 55 )
----

query I rowsort
SELECT - col0 * col0 + col2 AS col2 FROM tab1 cor0
----
-2505
-7166
-8213

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8144
SELECT ALL - 84 FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( + 58 * - - col1, 42, - col0, - - 49, CAST( NULL AS SIGNED ), - - 23 )
----

skipif mysql # not compatible
query I rowsort label-8144
SELECT ALL - 84 FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( + 58 * - - col1, 42, - col0, - - 49, CAST ( NULL AS INTEGER ), - - 23 )
----

query I rowsort
SELECT - ( + 69 ) AS col2 FROM tab2 AS cor0
----
-69
-69
-69

query I rowsort
SELECT 85 * - + col2 FROM tab1
----
-5015
-5780
-8160

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 93 * - col2 col0 FROM tab2
----
-2139
-3720
-5394

query III rowsort
SELECT * FROM tab1 WHERE ( NOT col1 + - - 25 < + col0 )
----

query I rowsort
SELECT - col1 / + - col2 AS col0 FROM tab1 WHERE + 29 BETWEEN - 46 AND NULL
----

query I rowsort
SELECT DISTINCT + ( + 84 ) * col2 AS col1 FROM tab2
----
1932
3360
4872

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8151
SELECT DISTINCT + col1 + + + col1 AS col1, + CAST( + 26 AS SIGNED ) FROM tab1
----
10
26
28
26
94
26

skipif mysql # not compatible
query II rowsort label-8151
SELECT DISTINCT + col1 + + + col1 AS col1, + CAST ( + 26 AS INTEGER ) FROM tab1
----
10
26
28
26
94
26

query I rowsort
SELECT - 30 + - + col1 AS col1 FROM tab2
----
-107
-81
-97

query I rowsort
SELECT ALL col0 + + 5 AS col2 FROM tab2
----
51
69
80

onlyif mysql # aggregate syntax: 
query I rowsort label-8154
SELECT ALL + 49 - - MAX( ALL 74 ) AS col2 FROM tab1 AS cor0
----
123

skipif mysql # not compatible
query I rowsort label-8154
SELECT ALL + 49 - - MAX ( ALL 74 ) AS col2 FROM tab1 AS cor0
----
123

query I rowsort
SELECT + + col2 + - 25 AS col2 FROM tab2 AS cor0
----
-2
15
33

onlyif mysql # DIV for integer division: 
query I rowsort label-8156
SELECT + col1 + + col1 * ( col2 ) * 29 DIV col0 + + col0 * col1 AS col2 FROM tab1 AS cor0
----
1492
530
5342

skipif mysql # not compatible
query I rowsort label-8156
SELECT + col1 + + col1 * ( col2 ) * 29 / col0 + + col0 * col1 AS col2 FROM tab1 AS cor0
----
1492
530
5342

query I rowsort
SELECT ALL + col2 + - - col2 + + + 40 + - col1 FROM tab1 AS cor0
----
129
153
218

query II rowsort
SELECT DISTINCT + 51 - col0 AS col0, - col0 * 27 FROM tab0
----
-36
-2349
-46
-2619
36
-405

query I rowsort
SELECT 61 + + 52 + + - col2 AS col1 FROM tab1
----
17
45
54

query I rowsort
SELECT ALL - col0 * - + 20 FROM tab0
----
1740
1940
300

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8161
SELECT ALL col2 + col2 * - CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8161
SELECT ALL col2 + col2 * - CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL NOT IN ( 80 )
----

query I rowsort
SELECT DISTINCT - ( + 81 ) * - 27 + - + col2 FROM tab0
----
2088
2140
2177

query I rowsort
SELECT DISTINCT 37 * - + col1 AS col2 FROM tab0
----
-2997
-37
-777

onlyif mysql # DIV for integer division: 
query I rowsort label-8165
SELECT DISTINCT col0 DIV - - 89 AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-8165
SELECT DISTINCT col0 / - - 89 AS col2 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8166
SELECT DISTINCT - SUM( + col2 ) AS col0 FROM tab1
----
-223

skipif mysql # not compatible
query I rowsort label-8166
SELECT DISTINCT - SUM ( + col2 ) AS col0 FROM tab1
----
-223

onlyif mysql # aggregate syntax: 
query I rowsort label-8167
SELECT - + COUNT( ALL col2 ) AS col2 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8167
SELECT - + COUNT ( ALL col2 ) AS col2 FROM tab1 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8168
SELECT - MAX( - + col2 ) AS col2 FROM tab1 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-8168
SELECT - MAX ( - + col2 ) AS col2 FROM tab1 AS cor0
----
59

query IIIIII rowsort
SELECT * FROM tab0 cor0 CROSS JOIN tab1 AS cor1 WHERE ( NULL ) IS NULL
----
54 values hashing to 9cf5329ae50920f4c6e297c9f5b652fd

onlyif mysql # aggregate syntax: 
query I rowsort label-8170
SELECT DISTINCT COUNT( * ) * - 11 col0 FROM tab0 AS cor0 CROSS JOIN tab1 cor1 WHERE NULL < ( + 32 )
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8170
SELECT DISTINCT COUNT ( * ) * - 11 col0 FROM tab0 AS cor0 CROSS JOIN tab1 cor1 WHERE NULL < ( + 32 )
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col1 - - col2 / + + col0 + - + col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8172
SELECT - + ( CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8172
SELECT - + ( CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 21 col0 FROM tab2 AS cor0
----
-21
-21
-21

query I rowsort
SELECT - + 0 * col1 AS col1 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8175
SELECT + - CAST( NULL AS SIGNED ) FROM tab2 cor0 WHERE 38 * - col2 + + col1 + col0 * - 72 IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8175
SELECT + - CAST ( NULL AS INTEGER ) FROM tab2 cor0 WHERE 38 * - col2 + + col1 + col0 * - 72 IS NOT NULL
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + - 73 + col2 FROM tab2 AS cor0
----
-15
-33
-50

query II rowsort
SELECT ALL + col2 * + col0, - col2 + - - col0 + + col2 - ( col2 ) * + 40 AS col1 FROM tab1 AS cor0
----
4896
-3789
5015
-2275
6188
-2629

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8178
SELECT ALL + - col0 col2 FROM tab1 AS cor0 WHERE NOT + col0 + + col1 + + - col0 / + + col2 * + CAST( NULL AS SIGNED ) IS NOT NULL
----
-51
-85
-91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8178
SELECT ALL + - col0 col2 FROM tab1 AS cor0 WHERE NOT + col0 + + col1 + + - col0 / + + col2 * + CAST ( NULL AS INTEGER ) IS NOT NULL
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-8179
SELECT - - SUM( 74 ) + + 48 AS col0 FROM tab1 AS cor0
----
270

skipif mysql # not compatible
query I rowsort label-8179
SELECT - - SUM ( 74 ) + + 48 AS col0 FROM tab1 AS cor0
----
270

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8180
SELECT * FROM tab2 cor0 WHERE ( NULL ) > 83 - - 83 + - - CAST( + 40 AS SIGNED ) + - 45
----

skipif mysql # not compatible
query III rowsort label-8180
SELECT * FROM tab2 cor0 WHERE ( NULL ) > 83 - - 83 + - - CAST ( + 40 AS INTEGER ) + - 45
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 89 col0 FROM tab1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT - col2 + - + 85 AS col0 FROM tab1
----
-144
-153
-181

query I rowsort
SELECT DISTINCT 82 + - + col2 FROM tab0
----
-17
35
72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8184
SELECT - ( 86 ) * COUNT( * ) FROM tab1 AS cor0 WHERE ( NULL ) <= + CAST( + col2 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-8184
SELECT - ( 86 ) * COUNT ( * ) FROM tab1 AS cor0 WHERE ( NULL ) <= + CAST ( + col2 AS INTEGER )
----
0

query I rowsort
SELECT DISTINCT + 32 + + col1 FROM tab1 cor0
----
37
46
79

query I rowsort
SELECT ALL col1 FROM tab2 AS cor0 WHERE NULL <> ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8187
SELECT DISTINCT - CAST( NULL AS SIGNED ) - - 89 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8187
SELECT DISTINCT - CAST ( NULL AS INTEGER ) - - 89 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8188
SELECT ALL COUNT( - - col0 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-8188
SELECT ALL COUNT ( - - col0 ) FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-8189
SELECT DISTINCT + COUNT( * ) AS col1, COUNT( * ) FROM tab1 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-8189
SELECT DISTINCT + COUNT ( * ) AS col1, COUNT ( * ) FROM tab1 AS cor0
----
3
3

query I rowsort
SELECT - 86 * + - 6 AS col2 FROM tab2 cor0 WHERE NOT - col2 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 19 col1 FROM tab1 AS cor0
----
19
19
19

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8192
SELECT + - col2 DIV CAST( + + 9 AS SIGNED ) * - col1 FROM tab1 AS cor0
----
140
30
329

skipif mysql # not compatible
query I rowsort label-8192
SELECT + - col2 / CAST ( + + 9 AS INTEGER ) * - col1 FROM tab1 AS cor0
----
140
30
329

query I rowsort
SELECT DISTINCT + - ( - 93 ) FROM tab1 AS cor0 WHERE NOT ( + col0 ) + + 79 IS NULL
----
93

query II rowsort
SELECT ALL - col0, 44 AS col0 FROM tab1 cor0
----
-51
44
-85
44
-91
44

onlyif mysql # aggregate syntax: 
query I rowsort label-8195
SELECT ALL + MAX( DISTINCT col0 ) * - COUNT( * ) AS col0 FROM tab2
----
-225

skipif mysql # not compatible
query I rowsort label-8195
SELECT ALL + MAX ( DISTINCT col0 ) * - COUNT ( * ) AS col0 FROM tab2
----
-225

query I rowsort
SELECT ALL 94 + - + 87 FROM tab1, tab2 AS cor0
----
9 values hashing to 3362c0cb2b2c663037159d0699d46b76

onlyif mysql # aggregate syntax: 
query I rowsort label-8197
SELECT SUM( ALL - 60 ) AS col1 FROM tab1
----
-180

skipif mysql # not compatible
query I rowsort label-8197
SELECT SUM ( ALL - 60 ) AS col1 FROM tab1
----
-180

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8198
SELECT - CAST( SUM( + col1 ) AS SIGNED ) FROM tab2
----
-195

skipif mysql # not compatible
query I rowsort label-8198
SELECT - CAST ( SUM ( + col1 ) AS INTEGER ) FROM tab2
----
-195

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + - 21 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8200
SELECT 94 * - + COUNT( * ) AS col0 FROM tab1
----
-282

skipif mysql # not compatible
query I rowsort label-8200
SELECT 94 * - + COUNT ( * ) AS col0 FROM tab1
----
-282

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 94 / - - col0 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8202
SELECT ALL - 67 + 72 + + col2 * + ( col2 ) + + + col0 * - - col2 + + col2 DIV 48 * + + 11 FROM tab2 AS cor0
----
1592
4165
7730

skipif mysql # not compatible
query I rowsort label-8202
SELECT ALL - 67 + 72 + + col2 * + ( col2 ) + + + col0 * - - col2 + + col2 / 48 * + + 11 FROM tab2 AS cor0
----
1592
4165
7730

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col0 + - col1 * 2 = NULL
----

query I rowsort
SELECT + 46 * - col0 FROM tab1 AS cor0
----
-2346
-3910
-4186

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8205
SELECT ALL 21 + 87 * - CAST( - COUNT( * ) AS SIGNED ) col0 FROM tab0 cor0
----
282

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8205
SELECT ALL 21 + 87 * - CAST ( - COUNT ( * ) AS INTEGER ) col0 FROM tab0 cor0
----
282

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 55 - + col1 col0 FROM tab2 AS cor0
----
-106
-122
-132

onlyif mysql # aggregate syntax: 
query I rowsort label-8207
SELECT DISTINCT COUNT( ALL + - 73 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-8207
SELECT DISTINCT COUNT ( ALL + - 73 ) FROM tab1
----
3

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8208
SELECT COUNT( ALL - CAST( NULL AS DECIMAL ) ) - - 42 AS col2 FROM tab0
----
42

skipif mysql # not compatible
query I rowsort label-8208
SELECT COUNT ( ALL - CAST ( NULL AS REAL ) ) - - 42 AS col2 FROM tab0
----
42

query I rowsort
SELECT ALL 37 + + col2 AS col1 FROM tab2
----
60
77
95

onlyif mysql # aggregate syntax: 
query I rowsort label-8210
SELECT MAX( DISTINCT + - col1 ) - + COUNT( * ) FROM tab1
----
-8

skipif mysql # not compatible
query I rowsort label-8210
SELECT MAX ( DISTINCT + - col1 ) - + COUNT ( * ) FROM tab1
----
-8

query III rowsort
SELECT * FROM tab0 WHERE 35 / + 2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8212
SELECT DISTINCT - + MIN( - col1 ) AS col1 FROM tab1 WHERE NULL IN ( col2, col2 * + 50 * - - 83 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8212
SELECT DISTINCT - + MIN ( - col1 ) AS col1 FROM tab1 WHERE NULL IN ( col2, col2 * + 50 * - - 83 )
----
NULL

query I rowsort
SELECT DISTINCT + col1 + + 61 FROM tab0 AS cor0
----
142
62
82

onlyif mysql # aggregate syntax: 
query I rowsort label-8214
SELECT DISTINCT + + COUNT( * ) + - + COUNT( * ) AS col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8214
SELECT DISTINCT + + COUNT ( * ) + - + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
0

query I rowsort
SELECT 6 + 9 + - col0 FROM tab2 AS cor0
----
-31
-49
-60

query I rowsort
SELECT ALL + ( + ( + col1 ) ) - - col1 + col1 AS col0 FROM tab1 AS cor0
----
141
15
42

onlyif mysql # aggregate syntax: 
query I rowsort label-8217
SELECT + ( + MAX( + 45 ) ) * COUNT( * ) AS col0 FROM tab2
----
135

skipif mysql # not compatible
query I rowsort label-8217
SELECT + ( + MAX ( + 45 ) ) * COUNT ( * ) AS col0 FROM tab2
----
135

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8218
SELECT ALL CAST( NULL AS SIGNED ), COUNT( * ) * - COUNT( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL
-81

skipif mysql # not compatible
query II rowsort label-8218
SELECT ALL CAST ( NULL AS INTEGER ), COUNT ( * ) * - COUNT ( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL
-81

query I rowsort
SELECT col0 AS col2 FROM tab0 WHERE NOT - - col1 IS NOT NULL
----

query II rowsort
SELECT ALL + col2 AS col1, + 87 AS col0 FROM tab0 WHERE NOT NULL = 80 * + 44
----

query I rowsort
SELECT - 98 * + col2 * + 3 FROM tab2
----
-11760
-17052
-6762

query I rowsort
SELECT DISTINCT - 41 * 4 AS col0 FROM tab1
----
-164

query I rowsort
SELECT 58 FROM tab2 AS cor0 WHERE NOT + 22 <> + + 83
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8224
SELECT ALL + COUNT( * ) * 95 AS col2 FROM tab0 AS cor0
----
285

skipif mysql # not compatible
query I rowsort label-8224
SELECT ALL + COUNT ( * ) * 95 AS col2 FROM tab0 AS cor0
----
285

onlyif mysql # DIV for integer division: 
query II rowsort label-8225
SELECT + col0 DIV col1 DIV col2 * col1 * col0 * col2, col1 FROM tab2 AS cor0
----
0
51
0
67
0
77

skipif mysql # not compatible
query II rowsort label-8225
SELECT + col0 / col1 / col2 * col1 * col0 * col2, col1 FROM tab2 AS cor0
----
0
51
0
67
0
77

query I rowsort
SELECT 43 * 65 AS col1 FROM tab2 AS cor0
----
2795
2795
2795

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL = 5 / - - 46
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8228
SELECT MIN( - + col0 ) AS col1 FROM tab0 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-8228
SELECT MIN ( - + col0 ) AS col1 FROM tab0 AS cor0
----
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * + 33 col2 FROM tab2 AS cor0
----
1320
1914
759

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8230
SELECT 26 * - 17 * MIN( + 35 ) * - CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8230
SELECT 26 * - 17 * MIN ( + 35 ) * - CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL col0 * - 20 AS col0 FROM tab1
----
-1020
-1700
-1820

query I rowsort
SELECT DISTINCT - ( ( col2 ) ) AS col0 FROM tab0
----
-10
-47
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-8233
SELECT DISTINCT - 52 DIV + 32 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-8233
SELECT DISTINCT - 52 / + 32 FROM tab0
----
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 + - 71 - - 16 + - col0 col1, 36 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-72
36
-78
36
-79
36

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8235
SELECT ALL - 4 AS col1, CAST( + col2 AS SIGNED ) AS col1 FROM tab1
----
-4
59
-4
68
-4
96

skipif mysql # not compatible
query II rowsort label-8235
SELECT ALL - 4 AS col1, CAST ( + col2 AS INTEGER ) AS col1 FROM tab1
----
-4
59
-4
68
-4
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 16 col0, col2 FROM tab1
----
16
59
16
68
16
96

onlyif mysql # DIV for integer division: 
query I rowsort label-8237
SELECT + col2 DIV col0 + col0 AS col0 FROM tab1
----
52
85
91

skipif mysql # not compatible
query I rowsort label-8237
SELECT + col2 / col0 + col0 AS col0 FROM tab1
----
52
85
91

onlyif mysql # DIV for integer division: 
query I rowsort label-8238
SELECT - col0 + col2 DIV + col2 FROM tab2
----
-45
-63
-74

skipif mysql # not compatible
query I rowsort label-8238
SELECT - col0 + col2 / + col2 FROM tab2
----
-45
-63
-74

query I rowsort
SELECT - col2 + col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8240
SELECT - COUNT( * ) * - 87 FROM tab2 AS cor0
----
261

skipif mysql # not compatible
query I rowsort label-8240
SELECT - COUNT ( * ) * - 87 FROM tab2 AS cor0
----
261

onlyif mysql # DIV for integer division: 
query I rowsort label-8241
SELECT DISTINCT + + 9 DIV col1 AS col2 FROM tab1 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-8241
SELECT DISTINCT + + 9 / col1 AS col2 FROM tab1 AS cor0
----
0
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8242
SELECT DISTINCT 63 DIV - ( COUNT( * ) ) AS col2 FROM tab0 AS cor0
----
-21

skipif mysql # not compatible
query I rowsort label-8242
SELECT DISTINCT 63 / - ( COUNT ( * ) ) AS col2 FROM tab0 AS cor0
----
-21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8243
SELECT + CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8243
SELECT + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 1 + - + col1 AS col2 FROM tab2
----
-50
-66
-76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8245
SELECT + ( - + CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0 WHERE col1 BETWEEN col1 AND + - col2
----

skipif mysql # not compatible
query I rowsort label-8245
SELECT + ( - + CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0 WHERE col1 BETWEEN col1 AND + - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8246
SELECT ALL col1 + CAST( 29 AS SIGNED ) FROM tab2 AS cor0
----
106
80
96

skipif mysql # not compatible
query I rowsort label-8246
SELECT ALL col1 + CAST ( 29 AS INTEGER ) FROM tab2 AS cor0
----
106
80
96

query I rowsort
SELECT + 13 + - col2 + col2 FROM tab0 AS cor0
----
13
13
13

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 5 + + col2 + - + col2 col0 FROM tab0 AS cor0
----
5
5
5

onlyif mysql # DIV for integer division: 
query I rowsort label-8249
SELECT DISTINCT 95 - col1 DIV 33 FROM tab0 cor0
----
93
95

skipif mysql # not compatible
query I rowsort label-8249
SELECT DISTINCT 95 - col1 / 33 FROM tab0 cor0
----
93
95

query I rowsort
SELECT DISTINCT - - 12 AS col2 FROM tab2 AS cor0 WHERE NOT - col1 * - 17 / col0 * col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8251
SELECT ALL - MAX( - 77 ) AS col2 FROM tab1 WHERE NOT col1 * 63 + + 6 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8251
SELECT ALL - MAX ( - 77 ) AS col2 FROM tab1 WHERE NOT col1 * 63 + + 6 IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8252
SELECT ALL CAST( + 24 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
24
24
24

skipif mysql # not compatible
query I rowsort label-8252
SELECT ALL CAST ( + 24 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
24
24
24

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * + ( - col0 ) * 45 + + - col0 + + - col2 * - col1 col2 FROM tab1 AS cor0
----
-219027
-225465
-275355

onlyif mysql # aggregate syntax: 
query I rowsort label-8254
SELECT ( COUNT( * ) ) AS col1 FROM tab0 WHERE ( + col0 ) NOT IN ( + 94 )
----
3

skipif mysql # not compatible
query I rowsort label-8254
SELECT ( COUNT ( * ) ) AS col1 FROM tab0 WHERE ( + col0 ) NOT IN ( + 94 )
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8255
SELECT * FROM tab2 WHERE NOT - 64 BETWEEN NULL AND - 76 / - col2 + + CAST( + col2 - + col2 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-8255
SELECT * FROM tab2 WHERE NOT - 64 BETWEEN NULL AND - 76 / - col2 + + CAST ( + col2 - + col2 AS INTEGER )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8256
SELECT col0 DIV col1 + + 78 DIV - 54 AS col1 FROM tab0 WHERE NOT col1 NOT BETWEEN col2 AND 91 - - col2
----
-1
3

skipif mysql # not compatible
query I rowsort label-8256
SELECT col0 / col1 + + 78 / - 54 AS col1 FROM tab0 WHERE NOT col1 NOT BETWEEN col2 AND 91 - - col2
----
-1
3

query I rowsort
SELECT DISTINCT 61 * col0 + + 96 FROM tab2
----
2902
4000
4671

onlyif mysql # aggregate syntax: 
query I rowsort label-8258
SELECT - COUNT( * ) FROM tab0 WHERE NOT ( 12 ) IN ( - 81 )
----
-3

skipif mysql # not compatible
query I rowsort label-8258
SELECT - COUNT ( * ) FROM tab0 WHERE NOT ( 12 ) IN ( - 81 )
----
-3

query III rowsort
SELECT * FROM tab2 WHERE 16 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8260
SELECT + COUNT( * ) FROM tab0 WHERE NOT - col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-8260
SELECT + COUNT ( * ) FROM tab0 WHERE NOT - col0 IS NOT NULL
----
0

query I rowsort
SELECT - col2 FROM tab0 WHERE NOT - col0 + + 6 IS NULL
----
-10
-47
-99

query I rowsort
SELECT DISTINCT ( - ( - 58 ) ) AS col1 FROM tab2
----
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8263
SELECT ALL COUNT( * ) * + 62 AS col0 FROM tab0 WHERE NOT CAST( NULL AS SIGNED ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-8263
SELECT ALL COUNT ( * ) * + 62 AS col0 FROM tab0 WHERE NOT CAST ( NULL AS INTEGER ) IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8264
SELECT + COUNT( * ) * 81 + + 66 AS col2 FROM tab0
----
309

skipif mysql # not compatible
query I rowsort label-8264
SELECT + COUNT ( * ) * 81 + + 66 AS col2 FROM tab0
----
309

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8265
SELECT ALL CAST( NULL AS DECIMAL ) 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-8265
SELECT ALL CAST ( NULL AS REAL ) col2 FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8266
SELECT COUNT( * ) * + 34 + 92 AS col2 FROM tab2
----
194

skipif mysql # not compatible
query I rowsort label-8266
SELECT COUNT ( * ) * + 34 + 92 AS col2 FROM tab2
----
194

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8267
SELECT DISTINCT * FROM tab1 WHERE - 95 >= CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-8267
SELECT DISTINCT * FROM tab1 WHERE - 95 >= CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8268
SELECT - SUM( 96 ) col1 FROM tab0
----
-288

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8268
SELECT - SUM ( 96 ) col1 FROM tab0
----
-288

query III rowsort
SELECT * FROM tab1 WHERE col1 <> + col1
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col1 - col1 NOT BETWEEN ( NULL ) AND - 64 * 0 + + col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 col1 FROM tab0 WHERE - ( + 81 ) BETWEEN col1 * - col2 AND col2 * 70
----
-15
-87
-97

query III rowsort
SELECT ALL * FROM tab1 WHERE col1 BETWEEN col1 + + col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8273
SELECT ALL + COUNT( * ) + ( + 36 ) AS col2 FROM tab0
----
39

skipif mysql # not compatible
query I rowsort label-8273
SELECT ALL + COUNT ( * ) + ( + 36 ) AS col2 FROM tab0
----
39

query III rowsort
SELECT * FROM tab2 WHERE NOT ( + 31 ) = 24 * col1 - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col1 + 53 AS col0 FROM tab0
----
134
54
74

query I rowsort
SELECT DISTINCT - ( - col2 ) FROM tab1 WHERE NOT NULL <> ( NULL )
----

query I rowsort
SELECT ALL col1 * + 67 AS col2 FROM tab1
----
3149
335
938

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( NULL ) <> ( + col2 * - col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8279
SELECT DISTINCT CAST( NULL AS SIGNED ) + + 28 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8279
SELECT DISTINCT CAST ( NULL AS INTEGER ) + + 28 FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8280
SELECT CAST( NULL AS SIGNED ) AS col1 FROM tab2 cor0 WHERE NOT col2 = + col1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8280
SELECT CAST ( NULL AS INTEGER ) AS col1 FROM tab2 cor0 WHERE NOT col2 = + col1
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( - 24 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8282
SELECT ALL - SUM( - 56 ) FROM tab1 AS cor0
----
168

skipif mysql # not compatible
query I rowsort label-8282
SELECT ALL - SUM ( - 56 ) FROM tab1 AS cor0
----
168

query III rowsort
SELECT * FROM tab0 cor0 WHERE + col0 + - col1 * 94 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8284
SELECT ALL COUNT( * ) + 78 AS col2 FROM tab2
----
81

skipif mysql # not compatible
query I rowsort label-8284
SELECT ALL COUNT ( * ) + 78 AS col2 FROM tab2
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-8285
SELECT DISTINCT - + COUNT( col1 ) + 87 AS col0 FROM tab1 cor0
----
84

skipif mysql # not compatible
query I rowsort label-8285
SELECT DISTINCT - + COUNT ( col1 ) + 87 AS col0 FROM tab1 cor0
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-8286
SELECT - COUNT( ALL col1 ) AS col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-8286
SELECT - COUNT ( ALL col1 ) AS col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-3

query III rowsort
SELECT * FROM tab1 cor0 WHERE - col0 + col2 / col0 NOT IN ( + col2 - + 44 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-8288
SELECT DISTINCT 2 + - col0 DIV col1 AS col1 FROM tab1 AS cor0
----
-1
-15
1

skipif mysql # not compatible
query I rowsort label-8288
SELECT DISTINCT 2 + - col0 / col1 AS col1 FROM tab1 AS cor0
----
-1
-15
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8289
SELECT DISTINCT + - COUNT( DISTINCT - 38 ) FROM tab2 cor0
----
-1

skipif mysql # not compatible
query I rowsort label-8289
SELECT DISTINCT + - COUNT ( DISTINCT - 38 ) FROM tab2 cor0
----
-1

query I rowsort
SELECT - col1 * 57 AS col0 FROM tab0 AS cor0
----
-1197
-4617
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-8291
SELECT ALL - SUM( ALL + 48 ) + COUNT( DISTINCT 41 ) FROM tab2 AS cor0 WHERE NULL <= col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8291
SELECT ALL - SUM ( ALL + 48 ) + COUNT ( DISTINCT 41 ) FROM tab2 AS cor0 WHERE NULL <= col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8292
SELECT + SUM( DISTINCT 50 ) AS col1 FROM tab2 AS cor0
----
50

skipif mysql # not compatible
query I rowsort label-8292
SELECT + SUM ( DISTINCT 50 ) AS col1 FROM tab2 AS cor0
----
50

query I rowsort
SELECT ALL + + col0 - + col0 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8294
SELECT - COUNT( * ) * + 84 - + 12 FROM tab0 AS cor0
----
-264

skipif mysql # not compatible
query I rowsort label-8294
SELECT - COUNT ( * ) * + 84 - + 12 FROM tab0 AS cor0
----
-264

query I rowsort
SELECT ALL col0 + 88 AS col1 FROM tab1 WHERE - col1 <> NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL BETWEEN NULL AND - col1
----

query I rowsort
SELECT ALL 45 * col0 AS col0 FROM tab2
----
2070
2880
3375

query I rowsort
SELECT col2 - + 53 AS col1 FROM tab1
----
15
43
6

query I rowsort
SELECT ALL 84 - - col2 FROM tab0
----
131
183
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8300
SELECT col2 * + - CAST( NULL AS SIGNED ) - - col2 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8300
SELECT col2 * + - CAST ( NULL AS INTEGER ) - - col2 AS col2 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8301
SELECT ALL + COUNT( * ) AS col1 FROM tab1 WHERE NOT ( + col0 ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-8301
SELECT ALL + COUNT ( * ) AS col1 FROM tab1 WHERE NOT ( + col0 ) IS NOT NULL
----
0

query I rowsort
SELECT ALL col0 * col1 FROM tab1 WHERE NOT - 89 BETWEEN col2 AND NULL
----
425
4277
714

query I rowsort
SELECT ALL + 2 + + + col2 AS col0 FROM tab1
----
61
70
98

query I rowsort
SELECT DISTINCT 39 + col1 FROM tab1 WHERE NOT - col1 * col2 IS NOT NULL
----

query I rowsort
SELECT - 56 FROM tab0 WHERE ( NULL ) NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NULL <> ( 61 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( + ( 4 ) * - col0 ) BETWEEN 10 * - 74 AND ( - col2 + + 54 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8308
SELECT + SUM( ALL 41 ) FROM tab0 AS cor0
----
123

skipif mysql # not compatible
query I rowsort label-8308
SELECT + SUM ( ALL 41 ) FROM tab0 AS cor0
----
123

onlyif mysql # aggregate syntax: 
query I rowsort label-8309
SELECT - - SUM( col0 ) AS col1 FROM tab2 AS cor0
----
185

skipif mysql # not compatible
query I rowsort label-8309
SELECT - - SUM ( col0 ) AS col1 FROM tab2 AS cor0
----
185

onlyif mysql # aggregate syntax: 
query I rowsort label-8310
SELECT ALL + COUNT( * ) AS col0 FROM ( tab1 AS cor0 CROSS JOIN tab0 cor1 )
----
9

skipif mysql # not compatible
query I rowsort label-8310
SELECT ALL + COUNT ( * ) AS col0 FROM ( tab1 AS cor0 CROSS JOIN tab0 cor1 )
----
9

query II rowsort
SELECT ALL col2 AS col1, 31 - - col2 + col2 * - col1 FROM tab0 AS cor0
----
10
-169
47
-3729
99
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8312
SELECT DISTINCT - CAST( NULL AS SIGNED ), - MIN( ALL - 86 ) AS col1 FROM tab1 AS cor0
----
NULL
86

skipif mysql # not compatible
query II rowsort label-8312
SELECT DISTINCT - CAST ( NULL AS INTEGER ), - MIN ( ALL - 86 ) AS col1 FROM tab1 AS cor0
----
NULL
86

onlyif mysql # aggregate syntax: 
query I rowsort label-8313
SELECT - + ( + - MIN( DISTINCT + col0 ) ) AS col0 FROM tab0 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-8313
SELECT - + ( + - MIN ( DISTINCT + col0 ) ) AS col0 FROM tab0 AS cor0
----
15

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8314
SELECT + col0 DIV - col0 + + CAST( + 1 AS SIGNED ) * 57 col0 FROM tab1 AS cor0
----
56
56
56

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8314
SELECT + col0 / - col0 + + CAST ( + 1 AS INTEGER ) * 57 col0 FROM tab1 AS cor0
----
56
56
56

query II rowsort
SELECT - + col1 AS col0, - 71 * + col2 AS col1 FROM tab1 AS cor0
----
-14
-6816
-47
-4828
-5
-4189

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8316
SELECT ALL col0 * CAST( - col0 AS SIGNED ) FROM tab0 cor0 WHERE NOT + 78 + + + 78 = ( ( col2 ) - + col1 )
----
-225
-7569
-9409

skipif mysql # not compatible
query I rowsort label-8316
SELECT ALL col0 * CAST ( - col0 AS INTEGER ) FROM tab0 cor0 WHERE NOT + 78 + + + 78 = ( ( col2 ) - + col1 )
----
-225
-7569
-9409

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE 63 >= + + col0
----
46
51
23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 col1 FROM tab1 WHERE col0 IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL > ( 97 )
----

query I rowsort
SELECT col0 + col1 + - col0 AS col0 FROM tab2
----
51
67
77

query I rowsort
SELECT DISTINCT - 90 FROM tab1 WHERE ( + 85 ) * - col0 IS NOT NULL
----
-90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8322
SELECT ALL - CAST( NULL AS SIGNED ) * CAST( COUNT( * ) AS SIGNED ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8322
SELECT ALL - CAST ( NULL AS INTEGER ) * CAST ( COUNT ( * ) AS INTEGER ) AS col0 FROM tab0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8323
SELECT ALL col2 DIV - col1 AS col0 FROM tab2 WHERE + 57 + 84 IS NOT NULL
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8323
SELECT ALL col2 / - col1 AS col0 FROM tab2 WHERE + 57 + 84 IS NOT NULL
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 77 col0 FROM tab0 cor0
----
77
77
77

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8325
SELECT DISTINCT - + MAX( - col0 ), 73 DIV 76 AS col1 FROM tab1 AS cor0
----
51
0

skipif mysql # not compatible
query II rowsort label-8325
SELECT DISTINCT - + MAX ( - col0 ), 73 / 76 AS col1 FROM tab1 AS cor0
----
51
0

query I rowsort
SELECT col2 + - 36 FROM tab0
----
-26
11
63

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8327
SELECT DISTINCT + col1 * + 74 + + - col1 + col1 * - + CAST( NULL AS DECIMAL ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8327
SELECT DISTINCT + col1 * + 74 + + - col1 + col1 * - + CAST ( NULL AS REAL ) AS col2 FROM tab0 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + - ( + col2 ) + - col0 + + - col2 col2 FROM tab0 AS cor0
----
-28
-294
-86

query I rowsort
SELECT ALL + + 19 - - + 65 FROM tab0 AS cor0
----
84
84
84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8330
SELECT col1 * col0 * + col1 + + - col2 + - - CAST( NULL AS SIGNED ) * + 42 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8330
SELECT col1 * col0 * + col1 + + - col2 + - - CAST ( NULL AS INTEGER ) * + 42 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 51 * - col0 col0 FROM tab2 AS cor0
----
-2346
-3264
-3825

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ( + col0 ) col1, col1 FROM tab0
----
15
81
87
21
97
1

query I rowsort
SELECT DISTINCT + 41 * - 63 AS col0 FROM tab0
----
-2583

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8334
SELECT CAST( + col0 AS SIGNED ) * - - 5 AS col1 FROM tab0
----
435
485
75

skipif mysql # not compatible
query I rowsort label-8334
SELECT CAST ( + col0 AS INTEGER ) * - - 5 AS col1 FROM tab0
----
435
485
75

query II rowsort
SELECT DISTINCT - col1 AS col2, col0 FROM tab2
----
-51
46
-67
75
-77
64

onlyif mysql # DIV for integer division: 
query I rowsort label-8336
SELECT + 75 DIV - 69 FROM tab0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-8336
SELECT + 75 / - 69 FROM tab0
----
-1
-1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8337
SELECT ALL COUNT( - col2 ) AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-8337
SELECT ALL COUNT ( - col2 ) AS col2 FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8338
SELECT DISTINCT - COUNT( * ) + + COUNT( * ) FROM tab0 AS cor0 WHERE NOT + col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-8338
SELECT DISTINCT - COUNT ( * ) + + COUNT ( * ) FROM tab0 AS cor0 WHERE NOT + col1 IS NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col2 * - - col0 col2 FROM tab1 cor0
----
-4896
-5015
-6188

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8340
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT IN ( - col2 * CAST( NULL AS DECIMAL ) )
----

skipif mysql # not compatible
query III rowsort label-8340
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT IN ( - col2 * CAST ( NULL AS REAL ) )
----

query I rowsort
SELECT + + ( - 3 ) AS col1 FROM tab1 AS cor0
----
-3
-3
-3

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + col2 + + col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8343
SELECT COUNT( * ) * 12 FROM tab2 AS cor0 WHERE NOT ( NOT NULL BETWEEN - 53 + + - 77 AND - col2 )
----
0

skipif mysql # not compatible
query I rowsort label-8343
SELECT COUNT ( * ) * 12 FROM tab2 AS cor0 WHERE NOT ( NOT NULL BETWEEN - 53 + + - 77 AND - col2 )
----
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8344
SELECT - ( + 39 ) DIV - CAST( 64 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8344
SELECT - ( + 39 ) / - CAST ( 64 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL 10 AS col0 FROM tab2 AS cor0 WHERE NOT ( - 3 / + col0 + - col1 + + col2 / col2 NOT BETWEEN col1 AND - 71 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8346
SELECT DISTINCT - col1, CAST( NULL AS SIGNED ) / + - col2 + - col2 + - col0 - - + 55 * + CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-51
NULL
-67
NULL
-77
NULL

skipif mysql # not compatible
query II rowsort label-8346
SELECT DISTINCT - col1, CAST ( NULL AS INTEGER ) / + - col2 + - col2 + - col0 - - + 55 * + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-51
NULL
-67
NULL
-77
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8347
SELECT ALL SUM( ALL + 93 ) FROM tab1
----
279

skipif mysql # not compatible
query I rowsort label-8347
SELECT ALL SUM ( ALL + 93 ) FROM tab1
----
279

query II rowsort
SELECT DISTINCT + col0, + col0 * - col0 FROM tab0
----
15
-225
87
-7569
97
-9409

onlyif mysql # DIV for integer division: 
query I rowsort label-8349
SELECT - ( - col0 ) DIV col2 FROM tab1
----
0
1
1

skipif mysql # not compatible
query I rowsort label-8349
SELECT - ( - col0 ) / col2 FROM tab1
----
0
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8350
SELECT - 23 * - - 91 * CAST( col1 AS SIGNED ) + col0 * - col0 col1 FROM tab2 WHERE - col1 * + col2 * - col0 + - col2 IS NOT NULL
----
-108859
-145856
-165257

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8350
SELECT - 23 * - - 91 * CAST ( col1 AS INTEGER ) + col0 * - col0 col1 FROM tab2 WHERE - col1 * + col2 * - col0 + - col2 IS NOT NULL
----
-108859
-145856
-165257

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL = + 16
----

query III rowsort
SELECT ALL * FROM tab1 WHERE 71 >= - + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8353
SELECT - MIN( ALL + col0 ) AS col1 FROM tab1
----
-51

skipif mysql # not compatible
query I rowsort label-8353
SELECT - MIN ( ALL + col0 ) AS col1 FROM tab1
----
-51

query III rowsort
SELECT * FROM tab1 WHERE col0 BETWEEN col1 AND - col1
----

query I rowsort
SELECT ALL - col1 + - 75 FROM tab1 AS cor0
----
-122
-80
-89

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL IN ( + 54 + + 45 )
----

query III rowsort
SELECT * FROM tab1 WHERE - 9 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - - ( + 86 ) col1, col1 AS col2 FROM tab1 AS cor0
----
86
14
86
47
86
5

query I rowsort
SELECT ALL 57 + + - col0 FROM tab0 AS cor0
----
-30
-40
42

query I rowsort
SELECT DISTINCT - 54 + - col1 FROM tab1 cor0
----
-101
-59
-68

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8361
SELECT DISTINCT + col2 - CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8361
SELECT DISTINCT + col2 - CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8362
SELECT ALL + COUNT( * ) AS col2 FROM tab0 cor0 WHERE NOT NULL > - col0 + + - 2 + + - col2 - 63 * + - 94 + + 12 + col0 + - + col1 + 80 / + 55
----
0

skipif mysql # not compatible
query I rowsort label-8362
SELECT ALL + COUNT ( * ) AS col2 FROM tab0 cor0 WHERE NOT NULL > - col0 + + - 2 + + - col2 - 63 * + - 94 + + 12 + col0 + - + col1 + 80 / + 55
----
0

query I rowsort
SELECT - col2 FROM tab1 AS cor0 WHERE + col0 * + - col2 IS NOT NULL
----
-59
-68
-96

onlyif mysql # DIV for integer division: 
query I rowsort label-8364
SELECT - - col0 - + - col2 DIV + 76 AS col1 FROM tab2 AS cor0
----
46
64
75

skipif mysql # not compatible
query I rowsort label-8364
SELECT - - col0 - + - col2 / + 76 AS col1 FROM tab2 AS cor0
----
46
64
75

query II rowsort
SELECT ALL + 87 AS col0, 12 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT + 44 - - + 48 * + col1 FROM tab1 AS cor0
----
2300
284
716

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + - ( col2 ) * - 86 + + col1 col2, col1 col1 FROM tab2 AS cor0
----
2029
51
3517
77
5055
67

query I rowsort
SELECT DISTINCT + col2 AS col0 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8369
SELECT ALL col0 * 85 * + col0 + - 38 DIV + - col1 AS col1 FROM tab1 AS cor0
----
221087
614132
703885

skipif mysql # not compatible
query I rowsort label-8369
SELECT ALL col0 * 85 * + col0 + - 38 / + - col1 AS col1 FROM tab1 AS cor0
----
221087
614132
703885

query I rowsort
SELECT ALL - 41 * - col0 + - col0 AS col1 FROM tab0 AS cor0
----
3480
3880
600

onlyif mysql # aggregate syntax: 
query I rowsort label-8371
SELECT ( - MIN( DISTINCT - col1 ) ) AS col1 FROM tab1
----
47

skipif mysql # not compatible
query I rowsort label-8371
SELECT ( - MIN ( DISTINCT - col1 ) ) AS col1 FROM tab1
----
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * - 65 col2 FROM tab2
----
-2990
-4160
-4875

query I rowsort
SELECT ALL + 80 * + col1 FROM tab2
----
4080
5360
6160

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8374
SELECT DISTINCT CAST( - + col2 AS SIGNED ) FROM tab0
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-8374
SELECT DISTINCT CAST ( - + col2 AS INTEGER ) FROM tab0
----
-10
-47
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-8375
SELECT ALL - SUM( + col1 ) AS col0 FROM tab2 AS cor0
----
-195

skipif mysql # not compatible
query I rowsort label-8375
SELECT ALL - SUM ( + col1 ) AS col0 FROM tab2 AS cor0
----
-195

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8376
SELECT + SUM( CAST( NULL AS SIGNED ) ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8376
SELECT + SUM ( CAST ( NULL AS INTEGER ) ) AS col2 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8377
SELECT ALL - COUNT( + col2 ) * - 21 col1, COUNT( * ) FROM tab0 AS cor0
----
63
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8377
SELECT ALL - COUNT ( + col2 ) * - 21 col1, COUNT ( * ) FROM tab0 AS cor0
----
63
3

query I rowsort
SELECT DISTINCT col2 * col0 AS col1 FROM tab2 cor0 WHERE ( NOT + 66 + - col0 NOT IN ( + 20 - - col0 + col2 * col0 ) )
----

query I rowsort
SELECT - col0 * + col2 * + 48 * - col0 FROM tab1 AS cor0
----
11985408
20461200
27029184

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col0 > + 7
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + ( - + col1 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-8382
SELECT DISTINCT + COUNT( * ) col1, ( 64 ) AS col0 FROM tab1
----
3
64

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8382
SELECT DISTINCT + COUNT ( * ) col1, ( 64 ) AS col0 FROM tab1
----
3
64

query I rowsort
SELECT col0 AS col0 FROM tab0 AS cor0 WHERE NOT ( col0 ) >= ( - 70 )
----

query I rowsort
SELECT ( + 91 ) FROM tab0 AS cor0
----
91
91
91

query I rowsort
SELECT 14 * + ( 37 ) AS col1 FROM tab1 AS cor0
----
518
518
518

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8386
SELECT DISTINCT - - SUM( ALL CAST( + 61 AS SIGNED ) ) * + COUNT( * ) FROM tab1 AS cor0
----
549

skipif mysql # not compatible
query I rowsort label-8386
SELECT DISTINCT - - SUM ( ALL CAST ( + 61 AS INTEGER ) ) * + COUNT ( * ) FROM tab1 AS cor0
----
549

query I rowsort
SELECT ALL + col0 + + col1 * + col2 + col0 * - - 40 FROM tab1 AS cor0
----
3435
3780
6927

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8388
SELECT + CAST( NULL AS SIGNED ) * - - 81 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8388
SELECT + CAST ( NULL AS INTEGER ) * - - 81 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col2 * - + ( col1 ) FROM tab1 AS cor0
----
1344
295
3196

onlyif mysql # aggregate syntax: 
query I rowsort label-8390
SELECT + - 37 + - 83 - - ( - + COUNT( * ) ) AS col1 FROM tab1 AS cor0
----
-123

skipif mysql # not compatible
query I rowsort label-8390
SELECT + - 37 + - 83 - - ( - + COUNT ( * ) ) AS col1 FROM tab1 AS cor0
----
-123

onlyif mysql # DIV for integer division: 
query II rowsort label-8391
SELECT ALL + - col1 DIV col1, col1 col2 FROM tab0 AS cor0
----
-1
1
-1
21
-1
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8391
SELECT ALL + - col1 / col1, col1 col2 FROM tab0 AS cor0
----
-1
1
-1
21
-1
81

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8392
SELECT * FROM tab1 AS cor0 WHERE CAST( - ( col0 ) AS SIGNED ) <> - + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-8392
SELECT * FROM tab1 AS cor0 WHERE CAST ( - ( col0 ) AS INTEGER ) <> - + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8393
SELECT + + col0 * - col0 + col0 * - ( - CAST( - + col2 AS SIGNED ) ), col1 AS col0 FROM tab1 AS cor0
----
-12240
5
-14469
47
-7497
14

skipif mysql # not compatible
query II rowsort label-8393
SELECT + + col0 * - col0 + col0 * - ( - CAST ( - + col2 AS INTEGER ) ), col1 AS col0 FROM tab1 AS cor0
----
-12240
5
-14469
47
-7497
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8394
SELECT col0 FROM tab2 WHERE ( - col2 * + col1 * + 97 * + 48 NOT BETWEEN + col1 + + + col2 + - col0 / CAST( + col1 AS SIGNED ) * col2 * + col1 AND NULL )
----
46
64
75

skipif mysql # not compatible
query I rowsort label-8394
SELECT col0 FROM tab2 WHERE ( - col2 * + col1 * + 97 * + 48 NOT BETWEEN + col1 + + + col2 + - col0 / CAST ( + col1 AS INTEGER ) * col2 * + col1 AND NULL )
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-8395
SELECT DISTINCT + - COUNT( ALL + + 77 ) AS col1 FROM tab2, tab2 AS cor0 WHERE NOT - ( 25 ) <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-8395
SELECT DISTINCT + - COUNT ( ALL + + 77 ) AS col1 FROM tab2, tab2 AS cor0 WHERE NOT - ( 25 ) <= NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 + - + col2 col0, 83 FROM tab0
----
0
83
0
83
0
83

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + + col2 IN ( col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 78 * + + 60 FROM tab1
----
4680
4680
4680

query III rowsort
SELECT * FROM tab0 WHERE + - col0 * col0 + - + col2 <> ( - + 88 ) - + col0 + ( + col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - ( + 60 ) + col2, + col0 col2 FROM tab0 AS cor0
----
-13
15
-50
87
39
97

query I rowsort
SELECT + + 64 AS col2 FROM tab1 cor0
----
64
64
64

onlyif mysql # aggregate syntax: 
query I rowsort label-8402
SELECT - COUNT( * ) * - 60 * + + 36 FROM tab2 AS cor0
----
6480

skipif mysql # not compatible
query I rowsort label-8402
SELECT - COUNT ( * ) * - 60 * + + 36 FROM tab2 AS cor0
----
6480

onlyif mysql # DIV for integer division: 
query I rowsort label-8403
SELECT DISTINCT + + col0 DIV + col2 + + col1 FROM tab0 AS cor0
----
1
29
81

skipif mysql # not compatible
query I rowsort label-8403
SELECT DISTINCT + + col0 / + col2 + + col1 FROM tab0 AS cor0
----
1
29
81

query I rowsort
SELECT ALL - 36 * + ( - + 71 ) + + + col2 AS col1 FROM tab1 AS cor0
----
2615
2624
2652

query I rowsort
SELECT DISTINCT 4 + - 4 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
0

query I rowsort
SELECT ALL ( - 2 ) AS col2 FROM tab1
----
-2
-2
-2

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE col1 - + col1 + - col1 <= - ( - - col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - ( - + col1 ) FROM tab0 AS cor0
----
1
21
81

query I rowsort
SELECT DISTINCT + ( col0 ) / + 19 AS col1 FROM tab0 AS cor0 WHERE NULL <> ( - col0 )
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT - col2 <> NULL
----

query I rowsort
SELECT col1 AS col0 FROM tab0 cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL - + 2 / - + col2 AS col2 FROM tab0 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT + - col1 AS col0, + col1 AS col2 FROM tab2 WHERE NOT + col2 IS NULL
----
-51
51
-67
67
-77
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( - col1 ) col1 FROM tab2
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-8415
SELECT COUNT( * ) * 89 AS col2 FROM tab0
----
267

skipif mysql # not compatible
query I rowsort label-8415
SELECT COUNT ( * ) * 89 AS col2 FROM tab0
----
267

query I rowsort
SELECT + 54 * col0 AS col1 FROM tab2
----
2484
3456
4050

onlyif mysql # aggregate syntax: 
query I rowsort label-8417
SELECT ALL - COUNT( ALL 61 ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-8417
SELECT ALL - COUNT ( ALL 61 ) FROM tab1
----
-3

query I rowsort
SELECT ALL - col1 * - 51 AS col0 FROM tab2
----
2601
3417
3927

onlyif mysql # aggregate syntax: 
query I rowsort label-8419
SELECT ALL - SUM( ALL - 44 ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
396

skipif mysql # not compatible
query I rowsort label-8419
SELECT ALL - SUM ( ALL - 44 ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
396

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL NOT BETWEEN - col1 + + col2 AND NULL
----

query I rowsort
SELECT 95 * - 9 + + 73 AS col2 FROM tab2
----
-782
-782
-782

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 col1 FROM tab0 AS cor0 WHERE NOT + ( col1 ) < NULL
----

query I rowsort
SELECT DISTINCT - - 67 + - - 10 FROM tab1 AS cor0
----
77

query I rowsort
SELECT ALL 31 + + - 57 AS col0 FROM tab0 cor0
----
-26
-26
-26

onlyif mysql # DIV for integer division: 
query I rowsort label-8425
SELECT ALL - - col2 DIV col2 * col0 FROM tab2 AS cor0
----
46
64
75

skipif mysql # not compatible
query I rowsort label-8425
SELECT ALL - - col2 / col2 * col0 FROM tab2 AS cor0
----
46
64
75

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8426
SELECT 18 + + ( - + col0 ) * + CAST( NULL AS SIGNED ) * + 72 * col2 + + + col2 * 16 AS col2, - 58 AS col0 FROM tab2 AS cor0 WHERE - col0 IN ( - col2 )
----

skipif mysql # not compatible
query II rowsort label-8426
SELECT 18 + + ( - + col0 ) * + CAST ( NULL AS INTEGER ) * + 72 * col2 + + + col2 * 16 AS col2, - 58 AS col0 FROM tab2 AS cor0 WHERE - col0 IN ( - col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8427
SELECT - 21 DIV + 89 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8427
SELECT - 21 / + 89 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8428
SELECT DISTINCT + 11 DIV + COUNT( * ) AS col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8428
SELECT DISTINCT + 11 / + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-8429
SELECT + + 61 DIV + ( 82 ) * + + col0 FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8429
SELECT + + 61 / + ( 82 ) * + + col0 FROM tab2 cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8430
SELECT + COUNT( * ), MAX( DISTINCT + - col0 ) * - + 63 + + + COUNT( * ) col0 FROM tab1
----
3
3216

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8430
SELECT + COUNT ( * ), MAX ( DISTINCT + - col0 ) * - + 63 + + + COUNT ( * ) col0 FROM tab1
----
3
3216

query I rowsort
SELECT + ( + 94 ) AS col2 FROM tab2
----
94
94
94

onlyif mysql # aggregate syntax: 
query I rowsort label-8432
SELECT ALL COUNT( * ) * COUNT( * ) * - 32 AS col0 FROM tab2 WHERE NOT - col0 * col0 / - col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-8432
SELECT ALL COUNT ( * ) * COUNT ( * ) * - 32 AS col0 FROM tab2 WHERE NOT - col0 * col0 / - col0 IS NOT NULL
----
0

query I rowsort
SELECT ALL + ( 72 ) AS col1 FROM tab1
----
72
72
72

onlyif mysql # DIV for integer division: 
query II rowsort label-8434
SELECT col2 DIV - col2 - + - col0 - + + 28 col2, col0 AS col0 FROM tab1
----
22
51
56
85
62
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8434
SELECT col2 / - col2 - + - col0 - + + 28 col2, col0 AS col0 FROM tab1
----
22
51
56
85
62
91

query I rowsort
SELECT col1 + col0 * - + col0 FROM tab2
----
-2065
-4019
-5558

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) >= - col2 + col2 + col1 * + ( + 37 )
----

query I rowsort
SELECT DISTINCT - + 84 - - - col0 AS col0 FROM tab0 AS cor0
----
-171
-181
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-8438
SELECT DISTINCT + COUNT( * ) + - - 41 AS col2 FROM tab0 AS cor0
----
44

skipif mysql # not compatible
query I rowsort label-8438
SELECT DISTINCT + COUNT ( * ) + - - 41 AS col2 FROM tab0 AS cor0
----
44

query II rowsort
SELECT + - 45 * + col0 + - + col0 * 25, col2 AS col1 FROM tab2 AS cor0
----
-3220
23
-4480
40
-5250
58

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL IN ( col0 + + col1 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-8441
SELECT DISTINCT CAST( + col2 AS DECIMAL ) + - col2 AS col2, + 99 FROM tab2 AS cor0 WHERE NULL IN ( - col0 )
----

skipif mysql # not compatible
query II rowsort label-8441
SELECT DISTINCT CAST ( + col2 AS REAL ) + - col2 AS col2, + 99 FROM tab2 AS cor0 WHERE NULL IN ( - col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col0 BETWEEN - col2 AND col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8443
SELECT + MAX( ALL + 92 ) FROM tab1 AS cor0
----
92

skipif mysql # not compatible
query I rowsort label-8443
SELECT + MAX ( ALL + 92 ) FROM tab1 AS cor0
----
92

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8444
SELECT - + 2 DIV - MAX( - col0 ) FROM tab0 cor0
----
0

skipif mysql # not compatible
query I rowsort label-8444
SELECT - + 2 / - MAX ( - col0 ) FROM tab0 cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8445
SELECT - ( - 12 ) DIV + col2 * + col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8445
SELECT - ( - 12 ) / + col2 * + col0 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8446
SELECT ALL CAST( + col1 AS SIGNED ) AS col0 FROM tab1
----
14
47
5

skipif mysql # not compatible
query I rowsort label-8446
SELECT ALL CAST ( + col1 AS INTEGER ) AS col0 FROM tab1
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-8447
SELECT DISTINCT MAX( ALL - 2 ) FROM tab1 WHERE NULL = - - col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8447
SELECT DISTINCT MAX ( ALL - 2 ) FROM tab1 WHERE NULL = - - col0
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT - 66 * col0 < + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8449
SELECT COUNT( * ) * - + 1 AS col1 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-8449
SELECT COUNT ( * ) * - + 1 AS col1 FROM tab1
----
-3

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( NOT 14 / col2 IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8451
SELECT ( COUNT( * ) ) + + 66 FROM tab1 WHERE NOT NULL = NULL
----
66

skipif mysql # not compatible
query I rowsort label-8451
SELECT ( COUNT ( * ) ) + + 66 FROM tab1 WHERE NOT NULL = NULL
----
66

query I rowsort
SELECT DISTINCT + col1 * - - 91 FROM tab2
----
4641
6097
7007

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8453
SELECT DISTINCT - + ( CAST( NULL AS SIGNED ) ) * - 65 + + col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8453
SELECT DISTINCT - + ( CAST ( NULL AS INTEGER ) ) * - 65 + + col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT - 59 AS col2 FROM tab0 cor0
----
-59
-59
-59

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 65 + - - ( - ( - col0 ) ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8456
SELECT * FROM tab2 WHERE NOT - CAST( NULL AS SIGNED ) * col1 * - col1 < NULL
----

skipif mysql # not compatible
query III rowsort label-8456
SELECT * FROM tab2 WHERE NOT - CAST ( NULL AS INTEGER ) * col1 * - col1 < NULL
----

query I rowsort
SELECT ALL - ( - - 78 ) + - - 64 FROM tab0
----
-14
-14
-14

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8458
SELECT DISTINCT - CAST( NULL AS DECIMAL ) + + - MAX( + col1 ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8458
SELECT DISTINCT - CAST ( NULL AS REAL ) + + - MAX ( + col1 ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL - - 92 + + col2 AS col1 FROM tab1 cor0
----
151
160
188

onlyif mysql # aggregate syntax: 
query I rowsort label-8460
SELECT + MAX( ALL - 96 ) + COUNT( * ) FROM tab0 AS cor0
----
-93

skipif mysql # not compatible
query I rowsort label-8460
SELECT + MAX ( ALL - 96 ) + COUNT ( * ) FROM tab0 AS cor0
----
-93

query I rowsort
SELECT + + 52 + - - 94 * + col0 AS col1 FROM tab2 AS cor0
----
4376
6068
7102

query III rowsort
SELECT * FROM tab2 cor0 WHERE - 53 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col1 * - col1 * 67 + + col0 + + - ( 1 ) + - col1 FROM tab1 AS cor0
----
-13096
-147960
-1596

onlyif mysql # aggregate syntax: 
query I rowsort label-8464
SELECT ALL + + COUNT( * ) + COUNT( * ) FROM tab0 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-8464
SELECT ALL + + COUNT ( * ) + COUNT ( * ) FROM tab0 AS cor0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-8465
SELECT ALL SUM( - col1 ) + - 74 FROM tab2 AS cor0
----
-269

skipif mysql # not compatible
query I rowsort label-8465
SELECT ALL SUM ( - col1 ) + - 74 FROM tab2 AS cor0
----
-269

query I rowsort
SELECT + 24 + - col2 AS col1 FROM tab1 AS cor0 WHERE ( NOT NULL BETWEEN - ( - + col0 ) - - + 61 + - 24 AND NULL )
----

query III rowsort
SELECT * FROM tab1 WHERE - + col1 = NULL
----

query I rowsort
SELECT DISTINCT + 2 * + 91 AS col2 FROM tab0
----
182

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8469
SELECT CAST( NULL AS SIGNED ) / + 58 * + col1 * - 0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8469
SELECT CAST ( NULL AS INTEGER ) / + 58 * + col1 * - 0 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL NOT BETWEEN 45 / col2 * - 85 + - 24 AND + col1 OR 84 * + col2 >= - 45
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8471
SELECT - MIN( CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8471
SELECT - MIN ( CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8472
SELECT ALL - COUNT( - - 6 ) + + 15 col2 FROM tab0 AS cor0
----
12

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8472
SELECT ALL - COUNT ( - - 6 ) + + 15 col2 FROM tab0 AS cor0
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-8473
SELECT DISTINCT ( - ( - COUNT( * ) ) ) + + - COUNT( * ) AS col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8473
SELECT DISTINCT ( - ( - COUNT ( * ) ) ) + + - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
0

query I rowsort
SELECT ALL + col1 + - 83 AS col1 FROM tab2 AS cor0
----
-16
-32
-6

query I rowsort
SELECT ALL - 29 - - 26 AS col2 FROM tab0 AS cor0
----
-3
-3
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-8476
SELECT DISTINCT - col2 DIV + - ( 65 ) - - col0 FROM tab2 cor0
----
46
64
75

skipif mysql # not compatible
query I rowsort label-8476
SELECT DISTINCT - col2 / + - ( 65 ) - - col0 FROM tab2 cor0
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-8477
SELECT ALL + MIN( - 18 ) AS col2 FROM tab1
----
-18

skipif mysql # not compatible
query I rowsort label-8477
SELECT ALL + MIN ( - 18 ) AS col2 FROM tab1
----
-18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8478
SELECT col2 * 52 * + - CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8478
SELECT col2 * 52 * + - CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8479
SELECT ALL - - MIN( ALL ( - col2 ) ) AS col2 FROM tab1 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-8479
SELECT ALL - - MIN ( ALL ( - col2 ) ) AS col2 FROM tab1 AS cor0
----
-96

query II rowsort
SELECT ALL - 12, col0 AS col0 FROM tab1 cor0
----
-12
51
-12
85
-12
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8481
SELECT - 54 col2 FROM tab1 AS cor0 WHERE NOT col0 * + CAST( NULL AS SIGNED ) * - + CAST( 83 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8481
SELECT - 54 col2 FROM tab1 AS cor0 WHERE NOT col0 * + CAST ( NULL AS INTEGER ) * - + CAST ( 83 AS INTEGER ) IS NULL
----

query I rowsort
SELECT DISTINCT + + col0 FROM tab2 AS cor0 WHERE + col1 BETWEEN - col2 AND + 23 + + 73
----
46
64
75

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL BETWEEN + col2 AND ( NULL ) AND NULL BETWEEN col0 AND + col2
----

query I rowsort
SELECT ALL ( - col2 ) FROM tab0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT col0 AS col1 FROM tab1 WHERE NOT - col1 <> NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col1 NOT BETWEEN ( col0 ) AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + - + 0 * col2 col2 FROM tab2
----
-23
-40
-58

query II rowsort
SELECT ALL + col2 AS col1, + col1 + - + 62 FROM tab2
----
23
-11
40
15
58
5

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8489
SELECT ALL * FROM tab1 AS cor0 WHERE - ( - + col2 ) / + col1 - + col1 - + + CAST( NULL AS SIGNED ) BETWEEN + 58 AND col1
----

skipif mysql # not compatible
query III rowsort label-8489
SELECT ALL * FROM tab1 AS cor0 WHERE - ( - + col2 ) / + col1 - + col1 - + + CAST ( NULL AS INTEGER ) BETWEEN + 58 AND col1
----

query II rowsort
SELECT 11 AS col2, - 28 AS col1 FROM tab1 AS cor0
----
11
-28
11
-28
11
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-8491
SELECT DISTINCT + SUM( ALL - 9 ) * - 63 FROM tab2
----
1701

skipif mysql # not compatible
query I rowsort label-8491
SELECT DISTINCT + SUM ( ALL - 9 ) * - 63 FROM tab2
----
1701

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 50 - + col0 col1 FROM tab2
----
-14
-25
4

onlyif mysql # DIV for integer division: 
query I rowsort label-8493
SELECT DISTINCT - col1 DIV - - col0 FROM tab0
----
-5
0

skipif mysql # not compatible
query I rowsort label-8493
SELECT DISTINCT - col1 / - - col0 FROM tab0
----
-5
0

query I rowsort
SELECT - - col1 AS col1 FROM tab0 WHERE ( NOT + col2 * - col1 <= - col0 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8495
SELECT ALL - COUNT( * ) DIV 12 AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-8495
SELECT ALL - COUNT ( * ) / 12 AS col2 FROM tab2
----
0

query I rowsort
SELECT ALL + - 71 * - + 49 * - 25 * + col1 + + col1 AS col0 FROM tab2 AS cor0
----
-4435674
-5827258
-6696998

onlyif mysql # aggregate syntax: 
query I rowsort label-8497
SELECT DISTINCT + 20 + - COUNT( * ) AS col1 FROM tab1 cor0
----
17

skipif mysql # not compatible
query I rowsort label-8497
SELECT DISTINCT + 20 + - COUNT ( * ) AS col1 FROM tab1 cor0
----
17

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col2 NOT BETWEEN NULL AND - col0 + 59
----

query I rowsort
SELECT + col1 AS col1 FROM tab0 WHERE NOT - col0 IS NULL
----
1
21
81

onlyif mysql # DIV for integer division: 
query I rowsort label-8500
SELECT DISTINCT col1 DIV + + col1 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-8500
SELECT DISTINCT col1 / + + col1 FROM tab1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8501
SELECT DISTINCT + - COUNT( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-8501
SELECT DISTINCT + - COUNT ( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-8502
SELECT ALL 32 DIV 66 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8502
SELECT ALL 32 / 66 FROM tab0
----
0
0
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( col2 * col1 ) IS NOT NULL
----

query I rowsort
SELECT + 63 * - col0 * + - 84 * + + 81 FROM tab1 AS cor0
----
21861252
36435420
39007332

query I rowsort
SELECT - 79 FROM tab1 AS cor0 WHERE NOT col1 / + col1 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8506
SELECT CAST( + col2 AS SIGNED ) col0 FROM tab2 AS cor0 WHERE NOT NULL < col0
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8506
SELECT CAST ( + col2 AS INTEGER ) col0 FROM tab2 AS cor0 WHERE NOT NULL < col0
----

query I rowsort
SELECT col0 * - col1 * - 50 FROM tab2 AS cor0
----
117300
246400
251250

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8508
SELECT - COUNT( * ) FROM tab0 AS cor0 WHERE NOT ( NOT - + col1 < - CAST( NULL AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-8508
SELECT - COUNT ( * ) FROM tab0 AS cor0 WHERE NOT ( NOT - + col1 < - CAST ( NULL AS INTEGER ) )
----
0

query I rowsort
SELECT ALL 43 * 60 AS col0 FROM tab0 AS cor0
----
2580
2580
2580

onlyif mysql # DIV for integer division: 
query I rowsort label-8510
SELECT + col0 DIV - col0 + + - col2 FROM tab0 AS cor0
----
-100
-11
-48

skipif mysql # not compatible
query I rowsort label-8510
SELECT + col0 / - col0 + + - col2 FROM tab0 AS cor0
----
-100
-11
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-8511
SELECT ALL + + ( - COUNT( - - col0 ) ) * + COUNT( * ) FROM tab0 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-8511
SELECT ALL + + ( - COUNT ( - - col0 ) ) * + COUNT ( * ) FROM tab0 AS cor0
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8512
SELECT CAST( - col2 AS SIGNED ) * col2 AS col1 FROM tab0 AS cor0
----
-100
-2209
-9801

skipif mysql # not compatible
query I rowsort label-8512
SELECT CAST ( - col2 AS INTEGER ) * col2 AS col1 FROM tab0 AS cor0
----
-100
-2209
-9801

query I rowsort
SELECT ALL - col0 + + - col1 AS col0 FROM tab1 WHERE NOT col1 IS NULL
----
-138
-65
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-8514
SELECT DISTINCT + 11 + + - COUNT( * ) FROM tab0 WHERE col1 <= col1 / - 57 / + 10
----
11

skipif mysql # not compatible
query I rowsort label-8514
SELECT DISTINCT + 11 + + - COUNT ( * ) FROM tab0 WHERE col1 <= col1 / - 57 / + 10
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-8515
SELECT + MIN( ALL + 38 ) + 98 FROM tab1
----
136

skipif mysql # not compatible
query I rowsort label-8515
SELECT + MIN ( ALL + 38 ) + 98 FROM tab1
----
136

query III rowsort
SELECT * FROM tab2 WHERE NOT - - 62 + + col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8517
SELECT + 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-8517
SELECT + SUM ( + col2 ) col2 FROM tab1 AS cor0
----
223

query I rowsort
SELECT ALL - col1 * + ( - col2 ) AS col1 FROM tab0 AS cor0
----
210
3807
99

query I rowsort
SELECT DISTINCT + col2 * - col0 + - + 69 AS col1 FROM tab2 WHERE + col2 >= NULL
----

query I rowsort
SELECT ALL + 47 + 79 FROM tab1 AS cor0
----
126
126
126

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8521
SELECT DISTINCT - 97 + CAST( NULL AS DECIMAL ) + 46 * col0 * col1 AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8521
SELECT DISTINCT - 97 + CAST ( NULL AS REAL ) + 46 * col0 * col1 AS col1 FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8522
SELECT ALL * FROM tab2 AS cor0 WHERE + CAST( col1 AS DECIMAL ) + - + 90 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-8522
SELECT ALL * FROM tab2 AS cor0 WHERE + CAST ( col1 AS REAL ) + - + 90 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col2 * - col1 + - col1 FROM tab0 cor0
----
-100
-231
-3888

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE col1 NOT BETWEEN + 88 AND + + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + 51 * - - 85 FROM tab1 AS cor0 WHERE - col0 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 - + + col0 + 43 col1 FROM tab1 cor0
----
43

query I rowsort
SELECT + - 24 + - col2 FROM tab1 AS cor0
----
-120
-83
-92

query I rowsort
SELECT DISTINCT col1 * - - col2 AS col0 FROM tab0 AS cor0
----
210
3807
99

query III rowsort
SELECT * FROM tab2 WHERE - - 45 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + 44 * col1 AS col2 FROM tab2
----
2244
2948
3388

query I rowsort
SELECT DISTINCT + 7 - + 46 FROM tab2
----
-39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8532
SELECT ALL + CAST( + col1 AS SIGNED ) col1 FROM tab1
----
14
47
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8532
SELECT ALL + CAST ( + col1 AS INTEGER ) col1 FROM tab1
----
14
47
5

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + col0 BETWEEN NULL AND + 22 * + 30 * - 18
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 93 col2, + col1 AS col0 FROM tab1
----
93
14
93
47
93
5

query I rowsort
SELECT + col2 * + 89 - + 87 FROM tab0
----
4096
803
8724

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8536
SELECT ALL - - CAST( NULL AS SIGNED ) * + - col0 * - + 30 + + col2 + col1 / - + col1 * - col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8536
SELECT ALL - - CAST ( NULL AS INTEGER ) * + - col0 * - + 30 + + col2 + col1 / - + col1 * - col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN + col1 * - col2 * col1 AND col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8538
SELECT DISTINCT + + COUNT( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9

skipif mysql # not compatible
query I rowsort label-8538
SELECT DISTINCT + + COUNT ( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - 66 > - - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - + col1 * - 66 * + col1 AS col1 FROM tab2 AS cor0
----
171666
296274
391314

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 64 = - ( + col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query II rowsort label-8542
SELECT DISTINCT + MIN( DISTINCT - col0 ), 57 AS col2 FROM tab2 AS cor0
----
-75
57

skipif mysql # not compatible
query II rowsort label-8542
SELECT DISTINCT + MIN ( DISTINCT - col0 ), 57 AS col2 FROM tab2 AS cor0
----
-75
57

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8543
SELECT DISTINCT + col2 * - CAST( NULL AS DECIMAL ) + - - 64 + - 71 AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8543
SELECT DISTINCT + col2 * - CAST ( NULL AS REAL ) + - - 64 + - 71 AS col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL col1 * + 80 AS col2 FROM tab1 cor0
----
1120
3760
400

onlyif mysql # DIV for integer division: 
query I rowsort label-8545
SELECT ALL 17 DIV + - 72 AS col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8545
SELECT ALL 17 / + - 72 AS col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + + col2 * - - col0 FROM tab1 AS cor0
----
4896
5015
6188

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8547
SELECT ALL + col2 / + - col1 + - + 79 * + - CAST( NULL AS SIGNED ) * + col1 * 2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8547
SELECT ALL + col2 / + - col1 + - + 79 * + - CAST ( NULL AS INTEGER ) * + col1 * 2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT + ( - col0 ) * col1 AS col2, col0 FROM tab0 AS cor0 WHERE NOT - col2 NOT BETWEEN + - col2 AND col2 * - + ( col2 )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT - col0 + col0 NOT BETWEEN + col0 AND + col1
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8550
SELECT 73, - COUNT( * ) AS col1 FROM tab2
----
73
-3

skipif mysql # not compatible
query II rowsort label-8550
SELECT 73, - COUNT ( * ) AS col1 FROM tab2
----
73
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8551
SELECT DISTINCT MAX( 59 ) FROM tab2
----
59

skipif mysql # not compatible
query I rowsort label-8551
SELECT DISTINCT MAX ( 59 ) FROM tab2
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-8552
SELECT ALL - COUNT( * ) - - + COUNT( * ) FROM tab2 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-8552
SELECT ALL - COUNT ( * ) - - + COUNT ( * ) FROM tab2 WHERE NOT NULL IS NULL
----
0

query I rowsort
SELECT - ( - + 55 ) AS col1 FROM tab2
----
55
55
55

query I rowsort
SELECT - col2 * + + col1 * + + col2 AS col2 FROM tab0 WHERE - col1 + col0 <= - - col2 / + col1
----
-178929
-9801

onlyif mysql # aggregate syntax: 
query I rowsort label-8555
SELECT DISTINCT COUNT( DISTINCT + - 19 ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-8555
SELECT DISTINCT COUNT ( DISTINCT + - 19 ) FROM tab0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8556
SELECT DISTINCT 48 + + + COUNT( * ) FROM tab1
----
51

skipif mysql # not compatible
query I rowsort label-8556
SELECT DISTINCT 48 + + + COUNT ( * ) FROM tab1
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-8557
SELECT + + 81 + - COUNT( * ) col1 FROM tab1 AS cor0
----
78

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8557
SELECT + + 81 + - COUNT ( * ) col1 FROM tab1 AS cor0
----
78

query I rowsort
SELECT + 67 + + + col1 FROM tab0 AS cor0
----
148
68
88

onlyif mysql # aggregate syntax: 
query I rowsort label-8559
SELECT DISTINCT SUM( ALL + + col0 ) AS col2 FROM tab0
----
199

skipif mysql # not compatible
query I rowsort label-8559
SELECT DISTINCT SUM ( ALL + + col0 ) AS col2 FROM tab0
----
199

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NOT + 3 IS NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - + 71 + + col2 FROM tab2 AS cor0 WHERE col0 * col0 IN ( col1, 88 + - col2 * + + 5 * - + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8562
SELECT + MAX( - + col2 ) FROM tab2 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-8562
SELECT + MAX ( - + col2 ) FROM tab2 AS cor0
----
-23

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8563
SELECT * FROM tab0 AS cor0 WHERE NULL <> + CAST( + 32 AS SIGNED ) + - - 89
----

skipif mysql # not compatible
query III rowsort label-8563
SELECT * FROM tab0 AS cor0 WHERE NULL <> + CAST ( + 32 AS INTEGER ) + - - 89
----

query I rowsort
SELECT ALL + col0 * - + 93 - col1 FROM tab1 AS cor0
----
-4757
-7910
-8510

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + 8 col0 FROM tab1 AS cor0
----
59
93
99

query I rowsort
SELECT DISTINCT + col1 - + 87 + + col2 FROM tab0 AS cor0
----
-56
13
41

query I rowsort
SELECT ALL - 3 * + col0 + + col0 * + col1 + col2 AS col1 FROM tab0 AS cor0
----
-95
1217
1576

query II rowsort
SELECT - + col0 * - + 74 - col1 + - col0 AS col2, - col0 FROM tab1 AS cor0
----
3709
-51
6200
-85
6596
-91

query I rowsort
SELECT DISTINCT + col2 FROM tab0 AS cor0 WHERE ( - col1 + 89 + - col2 * - + col0 + - - col0 <> + col1 )
----
10
47
99

query I rowsort
SELECT + col1 - - - 39 FROM tab1 AS cor0
----
-25
-34
8

query I rowsort
SELECT DISTINCT + 37 - col1 AS col2 FROM tab2 AS cor0
----
-14
-30
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-8572
SELECT ALL + + COUNT( * ) FROM tab1 AS cor0 WHERE col0 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-8572
SELECT ALL + + COUNT ( * ) FROM tab1 AS cor0 WHERE col0 IS NOT NULL
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8573
SELECT ALL CAST( NULL AS SIGNED ) - + 74 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8573
SELECT ALL CAST ( NULL AS INTEGER ) - + 74 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8574
SELECT COUNT( * ) + - 53 AS col1, ( - ( + 74 ) ) col2 FROM tab1
----
-50
-74

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8574
SELECT COUNT ( * ) + - 53 AS col1, ( - ( + 74 ) ) col2 FROM tab1
----
-50
-74

query I rowsort
SELECT 73 + + ( + 95 ) + - col0 FROM tab1
----
117
77
83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col2 col1 FROM tab0 WHERE NOT - col2 IS NULL
----
-10
-47
-99

query I rowsort
SELECT DISTINCT - 70 FROM tab1 WHERE NOT + 3 * + col0 * - + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8578
SELECT MAX( DISTINCT + col1 ) AS col2, - 73 FROM tab0 AS cor0
----
81
-73

skipif mysql # not compatible
query II rowsort label-8578
SELECT MAX ( DISTINCT + col1 ) AS col2, - 73 FROM tab0 AS cor0
----
81
-73

query I rowsort
SELECT ALL + - ( 70 ) + + 21 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 01b1fa22fee872a7ba64f90d6046ffae

query III rowsort
SELECT * FROM tab0 WHERE NOT - + col1 * - 63 = NULL
----

query II rowsort
SELECT + col0, 71 AS col1 FROM tab0 AS cor0
----
15
71
87
71
97
71

query I rowsort
SELECT col0 * + col0 - + 44 FROM tab2 cor0
----
2072
4052
5581

query I rowsort
SELECT - + col0 * + + col1 FROM tab1 AS cor0
----
-425
-4277
-714

query I rowsort
SELECT ALL - 62 * - col0 FROM tab0 AS cor0
----
5394
6014
930

query I rowsort
SELECT + - col1 * - ( - ( + col0 ) ) AS col0 FROM tab2 AS cor0
----
-2346
-4928
-5025

query I rowsort
SELECT + 97 + - col1 FROM tab1 AS cor0
----
50
83
92

onlyif mysql # aggregate syntax: 
query I rowsort label-8587
SELECT + 33 + + + COUNT( * ) FROM tab0
----
36

skipif mysql # not compatible
query I rowsort label-8587
SELECT + 33 + + + COUNT ( * ) FROM tab0
----
36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8588
SELECT ALL + + CAST( NULL AS SIGNED ) + col0 + - col0 FROM tab0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-8588
SELECT ALL + + CAST ( NULL AS INTEGER ) + col0 + - col0 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8589
SELECT ALL + COUNT( + CAST( NULL AS SIGNED ) ) AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-8589
SELECT ALL + COUNT ( + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab1
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-8590
SELECT col1 + - CAST( NULL AS DECIMAL ) / - col2 AS col1, + col2 FROM tab2
----
NULL
23
NULL
40
NULL
58

skipif mysql # not compatible
query II rowsort label-8590
SELECT col1 + - CAST ( NULL AS REAL ) / - col2 AS col1, + col2 FROM tab2
----
NULL
23
NULL
40
NULL
58

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - - 6 * + col2 + 49 = col0 * + 12
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8592
SELECT + + COUNT( * ) + + - COUNT( * ) AS col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8592
SELECT + + COUNT ( * ) + + - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 58 + + col0 col0 FROM tab1 AS cor0
----
-7
27
33

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8594
SELECT DISTINCT + - col1 + CAST( NULL AS SIGNED ) - + col1 AS col0, col0 FROM tab0 AS cor0
----
NULL
15
NULL
87
NULL
97

skipif mysql # not compatible
query II rowsort label-8594
SELECT DISTINCT + - col1 + CAST ( NULL AS INTEGER ) - + col1 AS col0, col0 FROM tab0 AS cor0
----
NULL
15
NULL
87
NULL
97

onlyif mysql # aggregate syntax: 
query I rowsort label-8595
SELECT - 99 + + COUNT( + col1 ) AS col1 FROM tab2 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-8595
SELECT - 99 + + COUNT ( + col1 ) AS col1 FROM tab2 AS cor0
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-8596
SELECT + COUNT( col0 ) + - + 28 FROM tab0 AS cor0
----
-25

skipif mysql # not compatible
query I rowsort label-8596
SELECT + COUNT ( col0 ) + - + 28 FROM tab0 AS cor0
----
-25

query I rowsort
SELECT ALL - col0 + + 47 FROM tab2 AS cor0
----
-17
-28
1

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN NULL AND + col2 / - 98
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8599
SELECT + CAST( NULL AS SIGNED ) + + - CAST( - CAST( - + col2 AS SIGNED ) AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8599
SELECT + CAST ( NULL AS INTEGER ) + + - CAST ( - CAST ( - + col2 AS INTEGER ) AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8600
SELECT ALL + - SUM( ALL + 42 ) + + 42 + + + COUNT( * ) AS col1 FROM tab2 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-8600
SELECT ALL + - SUM ( ALL + 42 ) + + 42 + + + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-81

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col0 + - 83 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8602
SELECT DISTINCT COUNT( * ), 8 col0 FROM tab2
----
3
8

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8602
SELECT DISTINCT COUNT ( * ), 8 col0 FROM tab2
----
3
8

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - ( - col0 ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT 46 * 82 < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8605
SELECT 60, AVG ( - - CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) ) AS col0 FROM tab0
----
60
NULL

skipif mysql # not compatible
query II rowsort label-8605
SELECT 60, AVG ( - - CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) ) AS col0 FROM tab0
----
60
NULL

query III rowsort
SELECT * FROM tab2 WHERE NOT + col0 + + 74 * - + col0 BETWEEN NULL AND - col2
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8607
SELECT + ( COUNT( * ) ) DIV 48 * + 85 DIV - MIN( ALL - - col1 ) AS col0, + 31 * + 67 FROM tab1
----
0
2077

skipif mysql # not compatible
query II rowsort label-8607
SELECT + ( COUNT ( * ) ) / 48 * + 85 / - MIN ( ALL - - col1 ) AS col0, + 31 * + 67 FROM tab1
----
0
2077

query I rowsort
SELECT - ( + col2 ) * - - 2 FROM tab2 AS cor0
----
-116
-46
-80

query I rowsort
SELECT col2 * + col1 + - 21 FROM tab0 cor0
----
189
3786
78

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col2 + + col2 + + - 21 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8611
SELECT DISTINCT - + MIN( - + col2 ) FROM tab2 WHERE col2 + 46 + - - col0 - + 76 * - col2 IS NOT NULL
----
58

skipif mysql # not compatible
query I rowsort label-8611
SELECT DISTINCT - + MIN ( - + col2 ) FROM tab2 WHERE col2 + 46 + - - col0 - + 76 * - col2 IS NOT NULL
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-8612
SELECT DISTINCT COUNT( * ) + - 50 FROM tab0 AS cor0
----
-47

skipif mysql # not compatible
query I rowsort label-8612
SELECT DISTINCT COUNT ( * ) + - 50 FROM tab0 AS cor0
----
-47

query I rowsort
SELECT - - ( + + col2 ) * - col2 AS col2 FROM tab2 AS cor0
----
-1600
-3364
-529

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 38 * + col0 >= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + col1 * col0 * ( + col1 ) * col0 - col2 IS NOT NULL
----

query I rowsort
SELECT col2 FROM tab0 cor0 WHERE col0 IS NOT NULL
----
10
47
99

query I rowsort
SELECT + - col0 FROM tab1 AS cor0 WHERE - 66 * col2 IS NOT NULL
----
-51
-85
-91

query I rowsort
SELECT DISTINCT - 72 AS col1 FROM tab2 cor0
----
-72

query I rowsort
SELECT - col2 * + - 29 FROM tab0
----
1363
2871
290

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8620
SELECT - + 71 + + CAST( 54 AS SIGNED ) * - 50 / 90 + col1 FROM tab1 WHERE NULL < + col1
----

skipif mysql # not compatible
query I rowsort label-8620
SELECT - + 71 + + CAST ( 54 AS INTEGER ) * - 50 / 90 + col1 FROM tab1 WHERE NULL < + col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 AS col1, + col1 * ( + - 43 ) col0 FROM tab0
----
-1
-43
-21
-903
-81
-3483

onlyif mysql # aggregate syntax: 
query I rowsort label-8622
SELECT + COUNT( DISTINCT col2 ) * + - 96 FROM tab1
----
-288

skipif mysql # not compatible
query I rowsort label-8622
SELECT + COUNT ( DISTINCT col2 ) * + - 96 FROM tab1
----
-288

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * - - col2 col2 FROM tab0
----
705
870
9603

query II rowsort
SELECT - col2 * - - col0 * + 17 AS col2, + ( 22 ) FROM tab0
----
-11985
22
-14790
22
-163251
22

onlyif mysql # aggregate syntax: 
query I rowsort label-8625
SELECT MAX( - - 13 ) FROM tab1
----
13

skipif mysql # not compatible
query I rowsort label-8625
SELECT MAX ( - - 13 ) FROM tab1
----
13

query II rowsort
SELECT ALL - ( col1 ) * - col0 AS col0, col1 AS col2 FROM tab0
----
1215
81
1827
21
97
1

query I rowsort
SELECT ALL col2 * - + 86 FROM tab2
----
-1978
-3440
-4988

query I rowsort
SELECT ALL 17 + + 18 FROM tab0 AS cor0
----
35
35
35

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL NOT IN ( + col2 + + col0, col1 * - - col1, - col0 / + col0 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col0 * - + col1 IS NULL
----

query I rowsort
SELECT DISTINCT - - col2 - + ( + - 3 ) - 94 + + + col1 AS col2 FROM tab1 AS cor0
----
-27
19
24

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8632
SELECT DISTINCT * FROM tab1 AS cor0 WHERE CAST( NULL AS SIGNED ) * - col2 + - + col1 < - col1
----

skipif mysql # not compatible
query III rowsort label-8632
SELECT DISTINCT * FROM tab1 AS cor0 WHERE CAST ( NULL AS INTEGER ) * - col2 + - + col1 < - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8633
SELECT DISTINCT - col0 FROM tab1 AS cor0 WHERE NULL > CAST( col2 AS SIGNED ) / + - 5
----

skipif mysql # not compatible
query I rowsort label-8633
SELECT DISTINCT - col0 FROM tab1 AS cor0 WHERE NULL > CAST ( col2 AS INTEGER ) / + - 5
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8634
SELECT - ( 62 ) AS col2, + COUNT( * ) AS col2 FROM tab2 cor0
----
-62
3

skipif mysql # not compatible
query II rowsort label-8634
SELECT - ( 62 ) AS col2, + COUNT ( * ) AS col2 FROM tab2 cor0
----
-62
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8635
SELECT DISTINCT - CAST( + col0 AS SIGNED ) + + 96 / + col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-8635
SELECT DISTINCT - CAST ( + col0 AS INTEGER ) + + 96 / + col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8636
SELECT DISTINCT MIN( - ( + col1 ) ) AS col2 FROM tab2 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-8636
SELECT DISTINCT MIN ( - ( + col1 ) ) AS col2 FROM tab2 AS cor0
----
-77

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col2 * 19 + col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8638
SELECT - - CAST( - - 31 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
31
31
31

skipif mysql # not compatible
query I rowsort label-8638
SELECT - - CAST ( - - 31 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
31
31
31

query I rowsort
SELECT ( - - 49 ) FROM tab1 cor0
----
49
49
49

query I rowsort
SELECT col0 * - - 38 FROM tab0
----
3306
3686
570

query I rowsort
SELECT ALL ( 65 ) FROM tab2
----
65
65
65

query II rowsort
SELECT DISTINCT col1 AS col0, 12 + - - col1 FROM tab1 AS cor0
----
14
26
47
59
5
17

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8643
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( - - CAST( NULL AS SIGNED ) ) NOT BETWEEN NULL AND ( NULL )
----

skipif mysql # not compatible
query III rowsort label-8643
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( - - CAST ( NULL AS INTEGER ) ) NOT BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT - 60 FROM tab0 cor0 WHERE NOT + col2 + - 39 IS NOT NULL
----

query I rowsort
SELECT ALL - 95 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 1c7934db0632c123332c43f17b661d6c

onlyif mysql # aggregate syntax: 
query I rowsort label-8646
SELECT COUNT( - col1 ) FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-8646
SELECT COUNT ( - col1 ) FROM tab2 cor0
----
3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col0 + + + col2 IS NULL
----

query II rowsort
SELECT ALL - col2 + + 53 + + - col1 * - 79 AS col0, col0 FROM tab0 AS cor0
----
1702
87
33
97
6405
15

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col0 col2, - col1 AS col0 FROM tab2 AS cor0
----
-46
-51
-64
-77
-75
-67

onlyif mysql # DIV for integer division: 
query II rowsort label-8650
SELECT DISTINCT - + col2 col2, + 22 DIV 46 AS col2 FROM tab1 AS cor0
----
-59
0
-68
0
-96
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8650
SELECT DISTINCT - + col2 col2, + 22 / 46 AS col2 FROM tab1 AS cor0
----
-59
0
-68
0
-96
0

query I rowsort
SELECT + col2 + - + ( - 99 ) AS col1 FROM tab2 cor0
----
122
139
157

query I rowsort
SELECT DISTINCT + 35 + - 22 AS col2 FROM tab1 AS cor0
----
13

query I rowsort
SELECT col2 + + col0 + + 26 FROM tab0
----
123
222
88

query II rowsort
SELECT ALL + 71 * - col1 * + col2, col0 FROM tab2
----
-218680
64
-275906
75
-83283
46

query II rowsort
SELECT DISTINCT - col1 * + - col0 AS col1, + col2 AS col1 FROM tab1
----
425
59
4277
68
714
96

query III rowsort
SELECT ALL * FROM tab0 WHERE ( col0 ) + col0 + + + 24 BETWEEN + - col1 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8657
SELECT - 37 DIV - col0 AS col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8657
SELECT - 37 / - col0 AS col0 FROM tab2
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8658
SELECT - 94 DIV - + col1 FROM tab2 AS cor0 WHERE + col1 DIV - col0 IS NOT NULL
----
1
1
1

skipif mysql # not compatible
query I rowsort label-8658
SELECT - 94 / - + col1 FROM tab2 AS cor0 WHERE + col1 / - col0 IS NOT NULL
----
1
1
1

onlyif mysql # DIV for integer division: 
query I rowsort label-8659
SELECT + - col1 - 88 DIV + + 49 + + col1 FROM tab0 cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-8659
SELECT + - col1 - 88 / + + 49 + + col1 FROM tab0 cor0
----
-1
-1
-1

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 99 BETWEEN col2 AND NULL
----

query I rowsort
SELECT ALL - 54 AS col1 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN + 41 AND NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL <> 79 / - col0 + + col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8663
SELECT ALL - CAST( NULL AS SIGNED ), MAX( - 86 ) * 56 AS col0 FROM tab0
----
NULL
-4816

skipif mysql # not compatible
query II rowsort label-8663
SELECT ALL - CAST ( NULL AS INTEGER ), MAX ( - 86 ) * 56 AS col0 FROM tab0
----
NULL
-4816

query II rowsort
SELECT DISTINCT + - col1, col2 FROM tab2 AS cor0
----
-51
23
-67
58
-77
40

query I rowsort
SELECT ALL + col1 FROM tab1 cor0 WHERE 92 BETWEEN - col1 AND + col0
----

query I rowsort
SELECT ALL - + ( + 22 ) FROM tab1 AS cor0
----
-22
-22
-22

query II rowsort
SELECT DISTINCT - col0 AS col1, 75 FROM tab1 AS cor0
----
-51
75
-85
75
-91
75

query I rowsort
SELECT ALL + - 62 * + col2 + - 59 + + col0 * - col2 FROM tab0 AS cor0
----
-1549
-15800
-3678

onlyif mysql # DIV for integer division: 
query I rowsort label-8669
SELECT ALL col0 DIV + - ( - 52 ) col2 FROM tab1
----
0
1
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8669
SELECT ALL col0 / + - ( - 52 ) col2 FROM tab1
----
0
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8670
SELECT + col1 * CAST( + col2 AS SIGNED ) * + - col0 AS col2, + col2 AS col1 FROM tab1
----
-25075
59
-290836
68
-68544
96

skipif mysql # not compatible
query II rowsort label-8670
SELECT + col1 * CAST ( + col2 AS INTEGER ) * + - col0 AS col2, + col2 AS col1 FROM tab1
----
-25075
59
-290836
68
-68544
96

query II rowsort
SELECT DISTINCT 9 * col1 AS col0, col1 AS col1 FROM tab0
----
189
21
729
81
9
1

query I rowsort
SELECT + col1 * - 81 FROM tab2
----
-4131
-5427
-6237

query III rowsort
SELECT * FROM tab2 WHERE NOT - col0 + col2 NOT IN ( - ( col0 ) + + col2 * - col2 + - - 67, + col1 + + - col2, + 92, + + 13 + + 22, - col0 * + - ( + col0 ), col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + col2 * + - 6 * col2 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8675
SELECT - COUNT( * ) * + ( - COUNT( * ) ) FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-8675
SELECT - COUNT ( * ) * + ( - COUNT ( * ) ) FROM tab2
----
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 22 col0 FROM tab1 cor0
----
22
22
22

query I rowsort
SELECT col2 AS col1 FROM tab0 AS cor0 WHERE NOT col0 IS NULL
----
10
47
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col0 * 31 col0 FROM tab1 AS cor0
----
-1581
-2635
-2821

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8679
SELECT - COUNT( * ) DIV + 17 AS col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8679
SELECT - COUNT ( * ) / + 17 AS col1 FROM tab2 AS cor0
----
0

query I rowsort
SELECT ALL col0 * - + col0 AS col2 FROM tab0 AS cor0
----
-225
-7569
-9409

query II rowsort
SELECT DISTINCT - 87, col1 FROM tab2
----
-87
51
-87
67
-87
77

query I rowsort
SELECT ALL - 59 + - 79 AS col0 FROM tab1
----
-138
-138
-138

onlyif mysql # aggregate syntax: 
query II rowsort label-8683
SELECT ALL - 28, - COUNT( * ) AS col0 FROM tab1
----
-28
-3

skipif mysql # not compatible
query II rowsort label-8683
SELECT ALL - 28, - COUNT ( * ) AS col0 FROM tab1
----
-28
-3

query IIIIII rowsort
SELECT ALL * FROM tab0, tab2 cor0 WHERE NOT NULL >= NULL
----

query I rowsort
SELECT ALL + col0 + ( + + 62 ) AS col1 FROM tab2 AS cor0
----
108
126
137

query I rowsort
SELECT ALL + col2 + - 28 AS col1 FROM tab2 AS cor0
----
-5
12
30

query I rowsort
SELECT 96 * - 18 + + 5 FROM tab2 AS cor0 WHERE - col1 + - ( col2 ) * col2 < - - 1
----
-1723
-1723
-1723

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8688
SELECT ALL + CAST( + - col1 AS SIGNED ) FROM tab2 AS cor0
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-8688
SELECT ALL + CAST ( + - col1 AS INTEGER ) FROM tab2 AS cor0
----
-51
-67
-77

query I rowsort
SELECT col1 AS col1 FROM tab1 AS cor0 WHERE - 49 NOT BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8690
SELECT ALL - ( AVG ( CAST( NULL AS SIGNED ) ) ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8690
SELECT ALL - ( AVG ( CAST ( NULL AS INTEGER ) ) ) AS col2 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL ( - 9 ) + - col2 FROM tab2
----
-32
-49
-67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8692
SELECT col0 * + col2 - - CAST( 74 AS SIGNED ) - + + col0 * 83 AS col2 FROM tab1
----
-1291
-1966
737

skipif mysql # not compatible
query I rowsort label-8692
SELECT col0 * + col2 - - CAST ( 74 AS INTEGER ) - + + col0 * 83 AS col2 FROM tab1
----
-1291
-1966
737

query II rowsort
SELECT ALL 84, 26 AS col2 FROM tab2
----
84
26
84
26
84
26

onlyif mysql # aggregate syntax: 
query I rowsort label-8694
SELECT + 96 + COUNT( * ) FROM tab2
----
99

skipif mysql # not compatible
query I rowsort label-8694
SELECT + 96 + COUNT ( * ) FROM tab2
----
99

query III rowsort
SELECT * FROM tab0 WHERE - - 88 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8696
SELECT ALL ( + - 53 ) + + + CAST( NULL AS SIGNED ) + - col0 AS col1, ( col0 ) + 9 AS col0 FROM tab0
----
NULL
106
NULL
24
NULL
96

skipif mysql # not compatible
query II rowsort label-8696
SELECT ALL ( + - 53 ) + + + CAST ( NULL AS INTEGER ) + - col0 AS col1, ( col0 ) + 9 AS col0 FROM tab0
----
NULL
106
NULL
24
NULL
96

query I rowsort
SELECT ALL col1 + - col1 - - + col1 FROM tab2 cor0
----
51
67
77

query I rowsort
SELECT ALL + 6 * col2 - + + 93 - col1 FROM tab0 cor0
----
-54
108
500

query II rowsort
SELECT - 50 AS col2, col0 AS col1 FROM tab2 AS cor0
----
-50
46
-50
64
-50
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 37 col2 FROM tab2 AS cor0
----
-37
-37
-37

query I rowsort
SELECT ALL + + col2 * col2 * + col1 + col1 FROM tab2 AS cor0
----
123277
225455
27030

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 6 AS col1, - col1 col1 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT col2 * - col2 * - col2 + + 67 AS col1 FROM tab1 AS cor0
----
205446
314499
884803

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) <= + col1 * + + 73
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8705
SELECT - + col0 DIV + col0 + - 20 * + 50 * - col0 + - col0 AS col2 FROM tab1 AS cor0
----
50948
84914
90908

skipif mysql # not compatible
query I rowsort label-8705
SELECT - + col0 / + col0 + - 20 * + 50 * - col0 + - col0 AS col2 FROM tab1 AS cor0
----
50948
84914
90908

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * + 37 + - ( - + col1 ) col2 FROM tab1 AS cor0
----
1786
190
532

query II rowsort
SELECT DISTINCT + col2, 6 + 73 AS col1 FROM tab2
----
23
79
40
79
58
79

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8708
SELECT ALL - 77 DIV - + MAX( - col0 ) AS col2 FROM tab0
----
-5

skipif mysql # not compatible
query I rowsort label-8708
SELECT ALL - 77 / - + MAX ( - col0 ) AS col2 FROM tab0
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-8709
SELECT + SUM( ALL + col0 ) col2 FROM tab2
----
185

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8709
SELECT + SUM ( ALL + col0 ) col2 FROM tab2
----
185

onlyif mysql # DIV for integer division: 
query I rowsort label-8710
SELECT col1 DIV + col1 + - + col2 * col2 AS col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-1599
-3363
-528

skipif mysql # not compatible
query I rowsort label-8710
SELECT col1 / + col1 + - + col2 * col2 AS col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-1599
-3363
-528

onlyif mysql # aggregate syntax: 
query I rowsort label-8711
SELECT DISTINCT + COUNT( - + col0 ) AS col0 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-8711
SELECT DISTINCT + COUNT ( - + col0 ) AS col0 FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8712
SELECT - COUNT( * ) * 83 AS col2 FROM tab0
----
-249

skipif mysql # not compatible
query I rowsort label-8712
SELECT - COUNT ( * ) * 83 AS col2 FROM tab0
----
-249

query I rowsort
SELECT + 42 * - - col0 FROM tab2
----
1932
2688
3150

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8714
SELECT DISTINCT * FROM tab2 WHERE NOT NULL = - CAST( NULL AS SIGNED ) * - 43
----

skipif mysql # not compatible
query III rowsort label-8714
SELECT DISTINCT * FROM tab2 WHERE NOT NULL = - CAST ( NULL AS INTEGER ) * - 43
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8715
SELECT DISTINCT - 29 * col1 DIV - 96 AS col2 FROM tab2 AS cor0
----
15
20
23

skipif mysql # not compatible
query I rowsort label-8715
SELECT DISTINCT - 29 * col1 / - 96 AS col2 FROM tab2 AS cor0
----
15
20
23

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8716
SELECT DISTINCT + COUNT( * ) DIV + 72 + - 34 FROM tab2 AS cor0
----
-34

skipif mysql # not compatible
query I rowsort label-8716
SELECT DISTINCT + COUNT ( * ) / + 72 + - 34 FROM tab2 AS cor0
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-8717
SELECT MIN( ALL - col0 ) AS col2 FROM tab2
----
-75

skipif mysql # not compatible
query I rowsort label-8717
SELECT MIN ( ALL - col0 ) AS col2 FROM tab2
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-8718
SELECT ALL COUNT( DISTINCT col2 ) AS col1 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-8718
SELECT ALL COUNT ( DISTINCT col2 ) AS col1 FROM tab0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 68 col2 FROM tab0 WHERE NOT col2 * 91 IS NULL
----
68

query I rowsort
SELECT ALL + col2 AS col1 FROM tab0 WHERE NOT 96 IS NULL
----
10
47
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + - ( + col0 ) col0 FROM tab2 WHERE NOT col1 * col1 - col0 * - col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + 33 * 40 AS col0 FROM tab1
----
1320

query I rowsort
SELECT + 38 - + 11 * col1 FROM tab2
----
-523
-699
-809

query I rowsort
SELECT ALL - 97 * - 26 FROM tab1
----
2522
2522
2522

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8725
SELECT * FROM tab1 WHERE NOT NULL BETWEEN col1 + ( col1 ) AND ( CAST( + 33 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-8725
SELECT * FROM tab1 WHERE NOT NULL BETWEEN col1 + ( col1 ) AND ( CAST ( + 33 AS INTEGER ) )
----

query I rowsort
SELECT ALL col1 * 98 - - 62 * + col0 FROM tab2
----
11216
11514
7850

query I rowsort
SELECT col1 * 1 FROM tab0
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-8728
SELECT + COUNT( ALL col1 ) * COUNT( * ) FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-8728
SELECT + COUNT ( ALL col1 ) * COUNT ( * ) FROM tab0
----
9

query III rowsort
SELECT ALL * FROM tab2 WHERE - col1 <> ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8730
SELECT ALL CAST( NULL AS SIGNED ) * col0 + 70 col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8730
SELECT ALL CAST ( NULL AS INTEGER ) * col0 + 70 col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT 54 * 57 AS col2 FROM tab2
----
3078
3078
3078

query I rowsort
SELECT - ( - 63 ) FROM tab0 WHERE NOT NULL IS NOT NULL
----
63
63
63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8733
SELECT 60 * + CAST( - 37 AS SIGNED ) FROM tab1
----
-2220
-2220
-2220

skipif mysql # not compatible
query I rowsort label-8733
SELECT 60 * + CAST ( - 37 AS INTEGER ) FROM tab1
----
-2220
-2220
-2220

query III rowsort
SELECT * FROM tab2 WHERE NOT - 11 * - col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8735
SELECT COUNT( - col0 ) * + 6 FROM tab2
----
18

skipif mysql # not compatible
query I rowsort label-8735
SELECT COUNT ( - col0 ) * + 6 FROM tab2
----
18

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + col1 NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8737
SELECT + COUNT( * ) * COUNT( + 79 ) FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-8737
SELECT + COUNT ( * ) * COUNT ( + 79 ) FROM tab2
----
9

query I rowsort
SELECT + 6 * + col0 + 32 AS col0 FROM tab2
----
308
416
482

query I rowsort
SELECT - ( col2 ) + col1 AS col0 FROM tab1
----
-21
-54
-82

onlyif mysql # DIV for integer division: 
query I rowsort label-8740
SELECT ALL + col1 DIV + ( 98 ) FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8740
SELECT ALL + col1 / + ( 98 ) FROM tab2
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8741
SELECT ALL CAST( col0 AS SIGNED ) DIV col1 FROM tab2
----
0
0
1

skipif mysql # not compatible
query I rowsort label-8741
SELECT ALL CAST ( col0 AS INTEGER ) / col1 FROM tab2
----
0
0
1

query I rowsort
SELECT + 74 FROM tab2 WHERE NOT ( NULL ) IS NOT NULL
----
74
74
74

query I rowsort
SELECT DISTINCT col2 AS col2 FROM tab1 WHERE NOT - col1 IN ( - col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL <= - ( + col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8745
SELECT DISTINCT * FROM tab0 WHERE NOT ( - CAST( NULL AS SIGNED ) ) >= 99 * 92
----

skipif mysql # not compatible
query III rowsort label-8745
SELECT DISTINCT * FROM tab0 WHERE NOT ( - CAST ( NULL AS INTEGER ) ) >= 99 * 92
----

query I rowsort
SELECT ( 51 ) * - col2 FROM tab1 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT col2 - + 6 FROM tab2 WHERE NOT NULL IS NOT NULL
----
17
34
52

onlyif mysql # aggregate syntax: 
query I rowsort label-8748
SELECT - COUNT( DISTINCT - col0 ) AS col1 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-8748
SELECT - COUNT ( DISTINCT - col0 ) AS col1 FROM tab0
----
-3

query I rowsort
SELECT ALL 73 * col0 AS col2 FROM tab1
----
3723
6205
6643

onlyif mysql # DIV for integer division: 
query I rowsort label-8750
SELECT 38 DIV + 94 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8750
SELECT 38 / + 94 FROM tab2
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL IN ( 16 )
----

query I rowsort
SELECT ALL - ( col1 ) FROM tab0 AS cor0 WHERE ( col0 ) IS NOT NULL
----
-1
-21
-81

query III rowsort
SELECT ALL * FROM tab0 WHERE - col2 / + 55 + col0 >= - 97 + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 92 FROM tab1 AS cor0 CROSS JOIN tab0
----
9 values hashing to 516fa45c8b06f9f67d6e500bfd435c1a

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col2 + col2 * 8 NOT BETWEEN - 6 AND - col2
----

query I rowsort
SELECT col1 + - col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL + col0 FROM tab1 AS cor0 WHERE NOT - 77 + - col1 * + col0 BETWEEN ( NULL ) AND ( - 65 * 55 )
----
51
85

query I rowsort
SELECT ALL - ( 38 ) * + col2 AS col2 FROM tab0 AS cor0
----
-1786
-3762
-380

query I rowsort
SELECT ALL 23 * col2 FROM tab1 AS cor0 WHERE NOT NULL > + col0 / 38
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL >= ( - 53 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( + col2 + + col0 ) >= ( 71 )
----
46
51
23

query I rowsort
SELECT col0 AS col1 FROM tab1 AS cor0 WHERE NOT + col0 + col0 / - col0 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col0 <= + 87
----

query III rowsort
SELECT ALL * FROM tab1 WHERE ( NULL ) BETWEEN NULL AND + 94 * - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8765
SELECT ALL COUNT( * ) AS col0 FROM tab1 WHERE NOT ( NULL ) >= col1 + col1
----
0

skipif mysql # not compatible
query I rowsort label-8765
SELECT ALL COUNT ( * ) AS col0 FROM tab1 WHERE NOT ( NULL ) >= col1 + col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8766
SELECT MAX( DISTINCT + 28 ) FROM tab2
----
28

skipif mysql # not compatible
query I rowsort label-8766
SELECT MAX ( DISTINCT + 28 ) FROM tab2
----
28

query I rowsort
SELECT ALL 86 - 56 FROM tab0 WHERE NOT NULL NOT BETWEEN ( + col1 * col0 + col0 ) AND ( + col1 )
----

query I rowsort
SELECT DISTINCT col0 + 43 / + 85 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8769
SELECT DISTINCT + 55 * + + COUNT( * ) * COUNT( * ) + - COUNT( * ) AS col0 FROM tab1
----
492

skipif mysql # not compatible
query I rowsort label-8769
SELECT DISTINCT + 55 * + + COUNT ( * ) * COUNT ( * ) + - COUNT ( * ) AS col0 FROM tab1
----
492

query I rowsort
SELECT 48 * - ( 92 * 97 ) + + col1 FROM tab2 WHERE NOT NULL = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8771
SELECT COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NOT + col0 NOT IN ( - col0 )
----
0

skipif mysql # not compatible
query I rowsort label-8771
SELECT COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NOT + col0 NOT IN ( - col0 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8772
SELECT DISTINCT + COUNT( * ) + - + 86 * SUM( - col1 + col1 * 18 ) AS col0 FROM tab0 AS cor0
----
-150583

skipif mysql # not compatible
query I rowsort label-8772
SELECT DISTINCT + COUNT ( * ) + - + 86 * SUM ( - col1 + col1 * 18 ) AS col0 FROM tab0 AS cor0
----
-150583

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8773
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( 89 ) NOT BETWEEN CAST( col2 AS SIGNED ) * 7 AND NULL
----

skipif mysql # not compatible
query III rowsort label-8773
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( 89 ) NOT BETWEEN CAST ( col2 AS INTEGER ) * 7 AND NULL
----

query I rowsort
SELECT ALL - - 69 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 85d9b90a03b9def161891b13085271f7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8775
SELECT ALL col1 * col2 + - - CAST( + col2 AS SIGNED ) + col1 AS col1 FROM tab1 AS cor0
----
1454
3311
359

skipif mysql # not compatible
query I rowsort label-8775
SELECT ALL col1 * col2 + - - CAST ( + col2 AS INTEGER ) + col1 AS col1 FROM tab1 AS cor0
----
1454
3311
359

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL >= + col2
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col2 NOT IN ( col2 * 49 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8778
SELECT - SUM( 42 ) AS col2 FROM tab0 AS cor0
----
-126

skipif mysql # not compatible
query I rowsort label-8778
SELECT - SUM ( 42 ) AS col2 FROM tab0 AS cor0
----
-126

query I rowsort
SELECT + col1 - - - 24 FROM tab1 AS cor0
----
-10
-19
23

query I rowsort
SELECT DISTINCT + - col0 - - col0 * - col1 FROM tab1 AS cor0
----
-4368
-510
-765

query I rowsort
SELECT + 55 - - 27 AS col1 FROM tab0
----
82
82
82

onlyif mysql # aggregate syntax: 
query I rowsort label-8782
SELECT + ( + - COUNT( * ) ) - + 28 + + 36 AS col1 FROM tab2
----
5

skipif mysql # not compatible
query I rowsort label-8782
SELECT + ( + - COUNT ( * ) ) - + 28 + + 36 AS col1 FROM tab2
----
5

query I rowsort
SELECT ( col1 ) * col1 + - + col2 * ( + col0 ) FROM tab2
----
139
1543
3369

onlyif mysql # aggregate syntax: 
query I rowsort label-8784
SELECT DISTINCT ( - SUM( DISTINCT - - col0 ) ) - - 50 FROM tab0
----
-149

skipif mysql # not compatible
query I rowsort label-8784
SELECT DISTINCT ( - SUM ( DISTINCT - - col0 ) ) - - 50 FROM tab0
----
-149

query III rowsort
SELECT * FROM tab1 WHERE - - 62 * 37 = NULL
----

query III rowsort
SELECT * FROM tab0 WHERE ( + col1 * + col0 ) >= ( NULL )
----

query I rowsort
SELECT + col1 AS col2 FROM tab1 WHERE NULL >= + col2
----

query I rowsort
SELECT + ( - + col0 ) + - col2 AS col0 FROM tab1
----
-144
-147
-159

query I rowsort
SELECT - col1 * col2 AS col1 FROM tab2 WHERE NULL NOT IN ( 48 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8790
SELECT COUNT( * ) AS col0 FROM tab2 WHERE NULL NOT IN ( col0 )
----
0

skipif mysql # not compatible
query I rowsort label-8790
SELECT COUNT ( * ) AS col0 FROM tab2 WHERE NULL NOT IN ( col0 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8791
SELECT ( 58 ) + ( - COUNT( * ) ) - COUNT( * ) * - COUNT( * ) FROM tab0
----
64

skipif mysql # not compatible
query I rowsort label-8791
SELECT ( 58 ) + ( - COUNT ( * ) ) - COUNT ( * ) * - COUNT ( * ) FROM tab0
----
64

query I rowsort
SELECT - 57 AS col1 FROM tab2 WHERE NOT ( - 95 ) NOT BETWEEN - 22 AND 54 * col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8793
SELECT DISTINCT + COUNT( - - col2 ) AS col0 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-8793
SELECT DISTINCT + COUNT ( - - col2 ) AS col0 FROM tab0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8794
SELECT + + CAST( + - 70 AS SIGNED ) col0, - 64 AS col1 FROM tab1 AS cor0
----
-70
-64
-70
-64
-70
-64

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8794
SELECT + + CAST ( + - 70 AS INTEGER ) col0, - 64 AS col1 FROM tab1 AS cor0
----
-70
-64
-70
-64
-70
-64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8795
SELECT + - CAST( + col0 AS SIGNED ) FROM tab0 cor0
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-8795
SELECT + - CAST ( + col0 AS INTEGER ) FROM tab0 cor0
----
-15
-87
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-8796
SELECT DISTINCT - - ( - + MIN( DISTINCT ( - 85 ) ) ) FROM tab0 AS cor0
----
85

skipif mysql # not compatible
query I rowsort label-8796
SELECT DISTINCT - - ( - + MIN ( DISTINCT ( - 85 ) ) ) FROM tab0 AS cor0
----
85

query I rowsort
SELECT 51 AS col1 FROM tab2 AS cor0 WHERE NOT ( NOT - - 70 IN ( 27 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8798
SELECT - SUM( ALL + 97 ) FROM tab2
----
-291

skipif mysql # not compatible
query I rowsort label-8798
SELECT - SUM ( ALL + 97 ) FROM tab2
----
-291

query III rowsort
SELECT * FROM tab0 WHERE NOT + - col1 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8800
SELECT DISTINCT + MIN( + col2 ) FROM tab1
----
59

skipif mysql # not compatible
query I rowsort label-8800
SELECT DISTINCT + MIN ( + col2 ) FROM tab1
----
59

query III rowsort
SELECT * FROM tab2 WHERE NOT col0 NOT BETWEEN + col2 AND - + ( col1 )
----

query I rowsort
SELECT - + 73 * + col1 AS col2 FROM tab0 AS cor0
----
-1533
-5913
-73

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT + col1 NOT BETWEEN + col0 AND + - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8804
SELECT * FROM tab2 AS cor0 WHERE NOT - col2 + + col2 + + + CAST( - + col2 AS SIGNED ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-8804
SELECT * FROM tab2 AS cor0 WHERE NOT - col2 + + col2 + + + CAST ( - + col2 AS INTEGER ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-8805
SELECT + col2 DIV + ( + col2 ) col1 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8805
SELECT + col2 / + ( + col2 ) col1 FROM tab2 AS cor0
----
1
1
1

query I rowsort
SELECT + + col0 * + 49 + 71 AS col0 FROM tab1 AS cor0
----
2570
4236
4530

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 52 col2 FROM tab2 AS cor0
----
52

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8808
SELECT - CAST( CAST( NULL AS DECIMAL ) AS SIGNED ) AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-8808
SELECT - CAST ( CAST ( NULL AS REAL ) AS INTEGER ) AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT DISTINCT 15 + + + 71 FROM tab2
----
86

query II rowsort
SELECT col0 AS col0, + col1 AS col2 FROM tab1
----
51
14
85
5
91
47

query III rowsort
SELECT * FROM tab1 WHERE + + ( + + col0 ) * - col2 < ( + col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8812
SELECT ALL col0 + CAST( - - col0 AS SIGNED ) + - col0 FROM tab1 AS cor0
----
51
85
91

skipif mysql # not compatible
query I rowsort label-8812
SELECT ALL col0 + CAST ( - - col0 AS INTEGER ) + - col0 FROM tab1 AS cor0
----
51
85
91

query I rowsort
SELECT - ( - - 52 ) * + - col1 FROM tab2 AS cor0
----
2652
3484
4004

query I rowsort
SELECT ALL col1 + - 94 FROM tab2 AS cor0
----
-17
-27
-43

onlyif mysql # DIV for integer division: 
query I rowsort label-8815
SELECT DISTINCT - col0 + col2 DIV - col2 - - - col2 * + col1 AS col2 FROM tab1 cor0
----
-1396
-3288
-381

skipif mysql # not compatible
query I rowsort label-8815
SELECT DISTINCT - col0 + col2 / - col2 - - - col2 * + col1 AS col2 FROM tab1 cor0
----
-1396
-3288
-381

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8816
SELECT ALL * FROM tab1 WHERE NOT CAST( NULL AS SIGNED ) >= ( col1 )
----

skipif mysql # not compatible
query III rowsort label-8816
SELECT ALL * FROM tab1 WHERE NOT CAST ( NULL AS INTEGER ) >= ( col1 )
----

query I rowsort
SELECT - ( - - 99 ) - - col2 + col2 AS col2 FROM tab2
----
-19
-53
17

query I rowsort
SELECT - col2 + col1 * - 62 AS col1 FROM tab0
----
-1312
-161
-5069

query III rowsort
SELECT * FROM tab1 WHERE 4 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8820
SELECT - 61 + - ( + ( + MAX( DISTINCT - col1 ) ) ) FROM tab1 AS cor0
----
-56

skipif mysql # not compatible
query I rowsort label-8820
SELECT - 61 + - ( + ( + MAX ( DISTINCT - col1 ) ) ) FROM tab1 AS cor0
----
-56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8821
SELECT ALL + CAST( - 9 AS SIGNED ) + + col2 * col2 FROM tab1 AS cor0
----
3472
4615
9207

skipif mysql # not compatible
query I rowsort label-8821
SELECT ALL + CAST ( - 9 AS INTEGER ) + + col2 * col2 FROM tab1 AS cor0
----
3472
4615
9207

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8822
SELECT ( col1 ) / - + 38 - + CAST( NULL AS SIGNED ) + col0 * - 8 FROM tab0 AS cor0 WHERE + CAST( - col0 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-8822
SELECT ( col1 ) / - + 38 - + CAST ( NULL AS INTEGER ) + col0 * - 8 FROM tab0 AS cor0 WHERE + CAST ( - col0 AS INTEGER ) IS NULL
----

query I rowsort
SELECT ALL - 80 + + 78 FROM tab0 AS cor0
----
-2
-2
-2

query I rowsort
SELECT DISTINCT 85 * + - col2 AS col0 FROM tab1
----
-5015
-5780
-8160

onlyif mysql # DIV for integer division: 
query I rowsort label-8825
SELECT ALL - 66 DIV + 90 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8825
SELECT ALL - 66 / + 90 FROM tab0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8826
SELECT - col2 * 48 DIV col2 AS col0 FROM tab1
----
-48
-48
-48

skipif mysql # not compatible
query I rowsort label-8826
SELECT - col2 * 48 / col2 AS col0 FROM tab1
----
-48
-48
-48

query I rowsort
SELECT DISTINCT + col2 * 25 AS col0 FROM tab1
----
1475
1700
2400

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8828
SELECT MAX( ALL + col1 ) * - COUNT( * ) * + + COUNT( * ) + + - 70 - + MAX( - col2 ) * + COUNT( * ) + MIN( DISTINCT col1 + CAST( NULL AS SIGNED ) ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8828
SELECT MAX ( ALL + col1 ) * - COUNT ( * ) * + + COUNT ( * ) + + - 70 - + MAX ( - col2 ) * + COUNT ( * ) + MIN ( DISTINCT col1 + CAST ( NULL AS INTEGER ) ) FROM tab2
----
NULL

query II rowsort
SELECT + + 45, col2 AS col0 FROM tab1 WHERE NOT NULL IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 col1, 62 col2 FROM tab1
----
51
62
85
62
91
62

query I rowsort
SELECT DISTINCT ( ( - col2 ) ) * - 75 FROM tab1
----
4425
5100
7200

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col2 col1, - col2 AS col0 FROM tab0 cor0 WHERE NOT ( NULL ) IS NOT NULL
----
10
-10
47
-47
99
-99

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8833
SELECT * FROM tab2 WHERE NOT - ( col0 ) BETWEEN NULL AND + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-8833
SELECT * FROM tab2 WHERE NOT - ( col0 ) BETWEEN NULL AND + CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT + - col2 * - col1 + + col2 FROM tab2 AS cor0
----
1196
3120
3944

query II rowsort
SELECT - col1 - + + col2 AS col2, 8 FROM tab2 AS cor0 WHERE NOT 36 IS NULL
----
-117
8
-125
8
-74
8

query I rowsort
SELECT DISTINCT + col2 + ( + col2 ) AS col0 FROM tab1 AS cor0
----
118
136
192

query I rowsort
SELECT DISTINCT ( 0 ) AS col1 FROM tab0 cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8838
SELECT + MIN( + col0 ) FROM tab0 cor0
----
15

skipif mysql # not compatible
query I rowsort label-8838
SELECT + MIN ( + col0 ) FROM tab0 cor0
----
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8839
SELECT ALL + + CAST( COUNT( DISTINCT + ( - 13 ) ) AS SIGNED ), + 33 AS col2 FROM tab1 cor0
----
1
33

skipif mysql # not compatible
query II rowsort label-8839
SELECT ALL + + CAST ( COUNT ( DISTINCT + ( - 13 ) ) AS INTEGER ), + 33 AS col2 FROM tab1 cor0
----
1
33

onlyif mysql # DIV for integer division: 
query I rowsort label-8840
SELECT col0 DIV 68 AS col2 FROM tab2
----
0
0
1

skipif mysql # not compatible
query I rowsort label-8840
SELECT col0 / 68 AS col2 FROM tab2
----
0
0
1

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8841
SELECT DISTINCT * FROM tab1 WHERE col1 * + - CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-8841
SELECT DISTINCT * FROM tab1 WHERE col1 * + - CAST ( NULL AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT ALL - col2 * + 60 AS col0 FROM tab2
----
-1380
-2400
-3480

query I rowsort
SELECT DISTINCT - 64 + - col1 AS col2 FROM tab0
----
-145
-65
-85

query II rowsort
SELECT col0 AS col1, + col0 - - + 41 AS col2 FROM tab2
----
46
87
64
105
75
116

query I rowsort
SELECT ALL + 37 + - 10 * + - col0 FROM tab1 AS cor0
----
547
887
947

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col2 * - col0 IS NULL
----

query II rowsort
SELECT DISTINCT + - 98 + + 11 - + col2 - + 28 + + - col1 * - col0 * 52 * - col2 * + col1, col2 FROM tab0 cor0
----
-19950965
10
-240526422
47
-499570
99

onlyif mysql # aggregate syntax: 
query I rowsort label-8848
SELECT DISTINCT ( - + MAX( DISTINCT + 46 ) ) - MIN( + + col0 ) FROM tab2 cor0
----
-92

skipif mysql # not compatible
query I rowsort label-8848
SELECT DISTINCT ( - + MAX ( DISTINCT + 46 ) ) - MIN ( + + col0 ) FROM tab2 cor0
----
-92

query I rowsort
SELECT ALL + col1 + + 1 FROM tab2 cor0
----
52
68
78

onlyif mysql # aggregate syntax: 
query I rowsort label-8850
SELECT COUNT( * ) - + - MAX( col2 ) * + 17 * + 80 * + - ( - - MIN( ALL - + col0 ) ) * + 98 AS col1 FROM tab1 AS cor0
----
1164334083

skipif mysql # not compatible
query I rowsort label-8850
SELECT COUNT ( * ) - + - MAX ( col2 ) * + 17 * + 80 * + - ( - - MIN ( ALL - + col0 ) ) * + 98 AS col1 FROM tab1 AS cor0
----
1164334083

query II rowsort
SELECT - 49, col1 FROM tab0 AS cor0
----
-49
1
-49
21
-49
81

onlyif mysql # aggregate syntax: 
query I rowsort label-8852
SELECT DISTINCT 24 * + - COUNT( * ) AS col1 FROM tab0 AS cor0
----
-72

skipif mysql # not compatible
query I rowsort label-8852
SELECT DISTINCT 24 * + - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-72

query I rowsort
SELECT ALL + + 73 * - col0 FROM tab0 AS cor0
----
-1095
-6351
-7081

query I rowsort
SELECT DISTINCT - 64 * - col0 FROM tab2 AS cor0
----
2944
4096
4800

query I rowsort
SELECT DISTINCT col2 * - col1 * - + 3 AS col1 FROM tab2
----
11658
3519
9240

query I rowsort
SELECT DISTINCT - col0 + + col2 FROM tab2 WHERE ( NOT ( ( NOT ( - col2 ) <> NULL ) ) )
----

query I rowsort
SELECT + col2 AS col0 FROM tab2 WHERE NOT col2 IS NOT NULL
----

query I rowsort
SELECT + 83 AS col0 FROM tab2 WHERE NOT - 20 + - 56 IS NULL
----
83
83
83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8859
SELECT ALL + CAST( - - SUM( ALL + + col0 ) AS SIGNED ) AS col2 FROM tab0
----
199

skipif mysql # not compatible
query I rowsort label-8859
SELECT ALL + CAST ( - - SUM ( ALL + + col0 ) AS INTEGER ) AS col2 FROM tab0
----
199

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8860
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - 44 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8860
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - 44 FROM tab1
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NOT NULL IN ( col1, col1, + col2 * - + 69 * + 89 * + - 4 * ( - col0 ) ) )
----

query I rowsort
SELECT + + col2 AS col2 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8863
SELECT - 75 DIV + col1 FROM tab2 cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-8863
SELECT - 75 / + col1 FROM tab2 cor0
----
-1
-1
0

query I rowsort
SELECT DISTINCT col1 FROM tab0 AS cor0 WHERE NOT col0 * + col0 + - 93 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8865
SELECT DISTINCT + col2 * - - col2 DIV + col2 FROM tab0 AS cor0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-8865
SELECT DISTINCT + col2 * - - col2 / + col2 FROM tab0 AS cor0
----
10
47
99

query I rowsort
SELECT ALL + + 29 AS col0 FROM tab2 AS cor0 WHERE NOT 24 IS NOT NULL
----

query I rowsort
SELECT - col2 * + 99 FROM tab1 AS cor0
----
-5841
-6732
-9504

onlyif mysql # aggregate syntax: 
query I rowsort label-8868
SELECT ALL + - ( + + COUNT( * ) ) FROM tab1 AS cor0 WHERE NOT col2 > - col0
----
0

skipif mysql # not compatible
query I rowsort label-8868
SELECT ALL + - ( + + COUNT ( * ) ) FROM tab1 AS cor0 WHERE NOT col2 > - col0
----
0

query III rowsort
SELECT * FROM tab2 WHERE NOT col0 NOT IN ( - 38 * - + col1 * - col1 )
----

query I rowsort
SELECT DISTINCT + + 14 + - col0 FROM tab2 AS cor0
----
-32
-50
-61

onlyif mysql # DIV for integer division: 
query I rowsort label-8871
SELECT ALL col1 * 26 DIV + + col2 AS col2 FROM tab1 AS cor0
----
17
2
3

skipif mysql # not compatible
query I rowsort label-8871
SELECT ALL col1 * 26 / + + col2 AS col2 FROM tab1 AS cor0
----
17
2
3

query I rowsort
SELECT - - 29 * + col0 AS col1 FROM tab0 AS cor0
----
2523
2813
435

query I rowsort
SELECT - - 0 + + col2 FROM tab1 AS cor0
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-8874
SELECT - ( + - 78 ) + + COUNT( * ) FROM tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-8874
SELECT - ( + - 78 ) + + COUNT ( * ) FROM tab0 AS cor0
----
81

query II rowsort
SELECT ALL col0 + - 0 - 88, - col1 AS col2 FROM tab0 AS cor0
----
-1
-21
-73
-81
9
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8876
SELECT ALL 36 + - MIN( 4 ) AS col1 FROM tab0 AS cor0 WHERE NOT ( col1 ) <= ( + 19 + 12 )
----
32

skipif mysql # not compatible
query I rowsort label-8876
SELECT ALL 36 + - MIN ( 4 ) AS col1 FROM tab0 AS cor0 WHERE NOT ( col1 ) <= ( + 19 + 12 )
----
32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8877
SELECT 10 + + 8 * - COUNT( * ) * + - CAST( - 29 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-686

skipif mysql # not compatible
query I rowsort label-8877
SELECT 10 + + 8 * - COUNT ( * ) * + - CAST ( - 29 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-686

query II rowsort
SELECT ALL - 56 AS col2, - col1 FROM tab1 AS cor0
----
-56
-14
-56
-47
-56
-5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 25 col0 FROM tab2 WHERE + col2 IS NOT NULL
----
25
25
25

query I rowsort
SELECT ALL 8 + col2 + - col2 * - + col2 FROM tab1
----
3548
4700
9320

query I rowsort
SELECT DISTINCT ( + 21 ) + + 80 AS col1 FROM tab1
----
101

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - + col0 + + 64, 55 + + col1 + + col0 * + col0 col0 FROM tab0 AS cor0
----
-23
7645
-33
9465
49
361

query II rowsort
SELECT + ( col1 ), + col0 AS col0 FROM tab2 AS cor0
----
51
46
67
75
77
64

query II rowsort
SELECT ALL 59, - 81 AS col1 FROM tab1
----
59
-81
59
-81
59
-81

query I rowsort
SELECT DISTINCT - 27 AS col2 FROM tab1, tab0 AS cor0
----
-27

query III rowsort
SELECT * FROM tab1 WHERE ( NOT - 5 + - - col0 IS NOT NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + 85 >= + - col0 * - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 38 + col2 - - col1 col1 FROM tab2
----
112
155
163

onlyif mysql # aggregate syntax: 
query I rowsort label-8889
SELECT ALL - COUNT( * ) AS col2 FROM tab2 WHERE NOT - col0 < ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-8889
SELECT ALL - COUNT ( * ) AS col2 FROM tab2 WHERE NOT - col0 < ( NULL )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8890
SELECT + - CAST( NULL AS SIGNED ) + + col0 / + - col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8890
SELECT + - CAST ( NULL AS INTEGER ) + + col0 / + - col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 84 * - 45 col0 FROM tab2 AS cor0
----
-3780
-3780
-3780

query II rowsort
SELECT + - 85, col1 FROM tab0 cor0
----
-85
1
-85
21
-85
81

onlyif mysql # aggregate syntax: 
query I rowsort label-8893
SELECT + SUM( ALL 69 ) AS col1 FROM tab2 cor0
----
207

skipif mysql # not compatible
query I rowsort label-8893
SELECT + SUM ( ALL 69 ) AS col1 FROM tab2 cor0
----
207

query I rowsort
SELECT - col1 AS col1 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN ( col0 ) AND NULL
----

query I rowsort
SELECT ALL + + 84 * - + col1 FROM tab0 AS cor0
----
-1764
-6804
-84

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL <> + col2 * - 4
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8897
SELECT DISTINCT + + COUNT( DISTINCT - 36 ) FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-8897
SELECT DISTINCT + + COUNT ( DISTINCT - 36 ) FROM tab0 AS cor0
----
1

query I rowsort
SELECT ALL + col0 * - 4 * + col1 * + col1 AS col2 FROM tab2 AS cor0
----
-1346700
-1517824
-478584

onlyif mysql # aggregate syntax: 
query I rowsort label-8899
SELECT ALL 83 * + + 60 + COUNT( * ) AS col1 FROM tab2 AS cor0
----
4983

skipif mysql # not compatible
query I rowsort label-8899
SELECT ALL 83 * + + 60 + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
4983

onlyif mysql # aggregate syntax: 
query I rowsort label-8900
SELECT DISTINCT - - MAX( 47 ) * 56 FROM tab2 cor0
----
2632

skipif mysql # not compatible
query I rowsort label-8900
SELECT DISTINCT - - MAX ( 47 ) * 56 FROM tab2 cor0
----
2632

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN col2 + - + ( - 37 ) AND + - col2 * + col1 + - - col0
----

query I rowsort
SELECT col2 * - col0 FROM tab2 cor0 WHERE NOT - col1 * + 27 * + + 59 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL NOT BETWEEN + col1 AND ( + + col2 * + 96 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8904
SELECT DISTINCT SUM( + col0 ) AS col2 FROM tab0
----
199

skipif mysql # not compatible
query I rowsort label-8904
SELECT DISTINCT SUM ( + col0 ) AS col2 FROM tab0
----
199

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 83, col1 col0 FROM tab0
----
83
1
83
21
83
81

query I rowsort
SELECT ALL 26 * + + col1 AS col0 FROM tab0
----
2106
26
546

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 84 * - + col0 col1 FROM tab1
----
-4284
-7140
-7644

query I rowsort
SELECT DISTINCT + col1 + + 5 AS col0 FROM tab2 WHERE NOT NULL < + col0
----

query II rowsort
SELECT - - 42 AS col1, - ( + + 96 ) AS col0 FROM tab0 AS cor0
----
42
-96
42
-96
42
-96

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND - 45
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8911
SELECT DISTINCT - ( - + MAX( col1 ) ) FROM tab1 cor0
----
47

skipif mysql # not compatible
query I rowsort label-8911
SELECT DISTINCT - ( - + MAX ( col1 ) ) FROM tab1 cor0
----
47

query I rowsort
SELECT - col1 / - col2 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT ALL col2 AS col1, - 34 + col2 AS col0 FROM tab2 cor0
----
23
-11
40
6
58
24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8914
SELECT + CAST( NULL AS SIGNED ) / + COUNT( * ) * - ( - 22 ) * - - CAST( NULL AS DECIMAL ) * + ( + - MAX( DISTINCT + 12 ) ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8914
SELECT + CAST ( NULL AS INTEGER ) / + COUNT ( * ) * - ( - 22 ) * - - CAST ( NULL AS REAL ) * + ( + - MAX ( DISTINCT + 12 ) ) AS col2 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8915
SELECT - MIN( DISTINCT col1 ) + - 47 AS col1 FROM tab2
----
-98

skipif mysql # not compatible
query I rowsort label-8915
SELECT - MIN ( DISTINCT col1 ) + - 47 AS col1 FROM tab2
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-8916
SELECT 86 * + COUNT( * ) + 86 FROM tab2
----
344

skipif mysql # not compatible
query I rowsort label-8916
SELECT 86 * + COUNT ( * ) + 86 FROM tab2
----
344

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8917
SELECT ALL col2 * 30 + CAST( col1 AS SIGNED ) FROM tab1
----
1775
2087
2894

skipif mysql # not compatible
query I rowsort label-8917
SELECT ALL col2 * 30 + CAST ( col1 AS INTEGER ) FROM tab1
----
1775
2087
2894

query III rowsort
SELECT * FROM tab1 WHERE NOT - 17 * - col2 + col2 = 82 + col0 + - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT ALL col2 + + 14 * col0 AS col1, col2 FROM tab1
----
1249
59
1342
68
810
96

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL < 96 * + + 85
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8921
SELECT ALL + CAST( NULL AS SIGNED ) / 16 + + col0 * - col2 + - + col2 + - ( - col1 ) + + col0 + + col2 / + 6 + + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8921
SELECT ALL + CAST ( NULL AS INTEGER ) / 16 + + col0 * - col2 + - + col2 + - ( - col1 ) + + col0 + + col2 / + 6 + + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8922
SELECT DISTINCT col0 / - - ( - - CAST( NULL AS DECIMAL ) ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8922
SELECT DISTINCT col0 / - - ( - - CAST ( NULL AS REAL ) ) AS col0 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL + 42 + - 14 * ( - col2 ) AS col1 FROM tab2 cor0
----
364
602
854

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col0 + + 3 IS NULL
----

query II rowsort
SELECT DISTINCT col2 + col2 AS col0, col0 FROM tab1 AS cor0
----
118
85
136
91
192
51

onlyif mysql # aggregate syntax: 
query I rowsort label-8926
SELECT + COUNT( * ) * - 65 FROM tab2
----
-195

skipif mysql # not compatible
query I rowsort label-8926
SELECT + COUNT ( * ) * - 65 FROM tab2
----
-195

query I rowsort
SELECT col2 FROM tab1 WHERE ( NULL IS NULL )
----
59
68
96

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-8928
SELECT CAST( NULL AS DECIMAL ) * COUNT( * ) - - COUNT( * ) AS col0, - MAX( DISTINCT - col1 ) AS col0 FROM tab1
----
NULL
5

skipif mysql # not compatible
query II rowsort label-8928
SELECT CAST ( NULL AS REAL ) * COUNT ( * ) - - COUNT ( * ) AS col0, - MAX ( DISTINCT - col1 ) AS col0 FROM tab1
----
NULL
5

onlyif mysql # DIV for integer division: 
query I rowsort label-8929
SELECT - col0 DIV - col1 - + col0 + - col2 + + + 70 * - col0 + + col0 AS col1 FROM tab2
----
-3243
-4520
-5307

skipif mysql # not compatible
query I rowsort label-8929
SELECT - col0 / - col1 - + col0 + - col2 + + + 70 * - col0 + + col0 AS col1 FROM tab2
----
-3243
-4520
-5307

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8930
SELECT ALL - CAST( NULL AS SIGNED ) * + + 9 + COUNT( * ) AS col0 FROM tab0 WHERE 34 * col1 <> NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8930
SELECT ALL - CAST ( NULL AS INTEGER ) * + + 9 + COUNT ( * ) AS col0 FROM tab0 WHERE 34 * col1 <> NULL
----
NULL

query I rowsort
SELECT - col0 FROM tab2 WHERE ( - col0 IS NULL )
----

query I rowsort
SELECT + 95 + + col0 FROM tab1
----
146
180
186

query III rowsort
SELECT * FROM tab1 WHERE - + 82 BETWEEN + - col1 AND + col1
----

query I rowsort
SELECT DISTINCT + 61 + + - col2 FROM tab1
----
-35
-7
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8935
SELECT ALL - 18 + col2 - CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8935
SELECT ALL - 18 + col2 - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col0 - - - col2 + 56 AS col1 FROM tab2 cor0
----
73
79
80

query I rowsort
SELECT ALL - 78 - - + col1 AS col2 FROM tab2 AS cor0
----
-1
-11
-27

query II rowsort
SELECT DISTINCT + col0 + + col1 AS col0, - col1 * col0 + col1 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
141
-4851
142
-4958
97
-2295

query II rowsort
SELECT col2 AS col2, col1 FROM tab0 AS cor0
----
10
21
47
81
99
1

query I rowsort
SELECT ALL + 9 - - + 44 AS col0 FROM tab1 AS cor0
----
53
53
53

onlyif mysql # aggregate syntax: 
query I rowsort label-8941
SELECT + 64 * COUNT( ALL 84 ) FROM tab2
----
192

skipif mysql # not compatible
query I rowsort label-8941
SELECT + 64 * COUNT ( ALL 84 ) FROM tab2
----
192

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8942
SELECT - + COUNT( * ) FROM tab1 AS cor0 WHERE NOT - CAST( NULL AS SIGNED ) / + - 44 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-8942
SELECT - + COUNT ( * ) FROM tab1 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) / + - 44 IS NOT NULL
----
-3

query I rowsort
SELECT + + 19 * 82 * + - col2 AS col1 FROM tab1 AS cor0
----
-105944
-149568
-91922

onlyif mysql # DIV for integer division: 
query II rowsort label-8944
SELECT ALL + - ( - 45 ) AS col2, + ( col1 ) DIV col2 FROM tab0 AS cor0
----
45
0
45
1
45
2

skipif mysql # not compatible
query II rowsort label-8944
SELECT ALL + - ( - 45 ) AS col2, + ( col1 ) / col2 FROM tab0 AS cor0
----
45
0
45
1
45
2

query I rowsort
SELECT DISTINCT - col0 * ( + col1 ) FROM tab1 AS cor0
----
-425
-4277
-714

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 88 col2 FROM tab0 AS cor0
----
-88

query I rowsort
SELECT + ( + 82 ) AS col2 FROM tab2
----
82
82
82

onlyif mysql # aggregate syntax: 
query I rowsort label-8948
SELECT ALL - MIN( ALL - 98 ) FROM tab0
----
98

skipif mysql # not compatible
query I rowsort label-8948
SELECT ALL - MIN ( ALL - 98 ) FROM tab0
----
98

query III rowsort
SELECT ALL * FROM tab2 WHERE 96 IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + 30 > NULL
----

query I rowsort
SELECT - - col1 AS col0 FROM tab2 WHERE NOT NULL <= NULL
----

query II rowsort
SELECT ALL - 5 * + - 9 * + col2, col1 AS col2 FROM tab2 AS cor0
----
1035
51
1800
77
2610
67

query I rowsort
SELECT + - ( - ( + col1 ) ) FROM tab2 cor0
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-8954
SELECT DISTINCT + MAX( + + 96 ) FROM tab1 WHERE NULL IS NULL
----
96

skipif mysql # not compatible
query I rowsort label-8954
SELECT DISTINCT + MAX ( + + 96 ) FROM tab1 WHERE NULL IS NULL
----
96

query I rowsort
SELECT col0 + - - col1 * + col0 AS col2 FROM tab0 AS cor0
----
1230
1914
194

onlyif mysql # aggregate syntax: 
query I rowsort label-8956
SELECT ALL - SUM( col2 ) AS col1 FROM tab2 AS cor0
----
-121

skipif mysql # not compatible
query I rowsort label-8956
SELECT ALL - SUM ( col2 ) AS col1 FROM tab2 AS cor0
----
-121

query I rowsort
SELECT - - col1 * - + col0 * - - col0 - col0 + - + col2 FROM tab1 AS cor0
----
-36269
-36561
-389366

query I rowsort
SELECT ALL + + col0 + - col0 + - 94 * col1 + - 61 * 59 * + col1 * - + col0 FROM tab0 AS cor0
----
349009
4365171
6573399

query I rowsort
SELECT - - 91 + col2 FROM tab2 AS cor0
----
114
131
149

query I rowsort
SELECT ( - col0 ) * + - 60 AS col2 FROM tab1 WHERE - + col2 < ( NULL )
----

query III rowsort
SELECT * FROM tab0 WHERE - col0 NOT BETWEEN + + col1 * - col1 AND NULL
----
97
1
99

onlyif mysql # DIV for integer division: 
query I rowsort label-8962
SELECT - 81 DIV + - col0 AS col2 FROM tab0
----
0
0
5

skipif mysql # not compatible
query I rowsort label-8962
SELECT - 81 / + - col0 AS col2 FROM tab0
----
0
0
5

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + ( + col0 ) * + - col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - ( 12 ) * + + col2 FROM tab2
----
-276
-480
-696

query III rowsort
SELECT * FROM tab0 WHERE NULL >= - 80 + - - 90
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8966
SELECT ( - COUNT( + 98 ) ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-8966
SELECT ( - COUNT ( + 98 ) ) FROM tab0
----
-3

query I rowsort
SELECT DISTINCT col0 + - + 46 AS col0 FROM tab0
----
-31
41
51

query III rowsort
SELECT * FROM tab2 WHERE - 98 + - col0 <> NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8969
SELECT SUM( DISTINCT + col2 ) col1, - COUNT( * ) DIV - 65 FROM tab0
----
156
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8969
SELECT SUM ( DISTINCT + col2 ) col1, - COUNT ( * ) / - 65 FROM tab0
----
156
0

query I rowsort
SELECT ALL + 0 + + col0 + + col2 FROM tab2 AS cor0
----
104
133
69

query I rowsort
SELECT + 46 * + + col2 FROM tab1
----
2714
3128
4416

query I rowsort
SELECT + ( 54 ) AS col2 FROM tab0 AS cor0
----
54
54
54

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + ( + col2 ) * - + col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query II rowsort label-8974
SELECT ALL + - col2, 36 DIV - col0 AS col2 FROM tab1 AS cor0
----
-59
0
-68
0
-96
0

skipif mysql # not compatible
query II rowsort label-8974
SELECT ALL + - col2, 36 / - col0 AS col2 FROM tab1 AS cor0
----
-59
0
-68
0
-96
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8975
SELECT DISTINCT + COUNT( DISTINCT col1 ) AS col1 FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-8975
SELECT DISTINCT + COUNT ( DISTINCT col1 ) AS col1 FROM tab1 cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col0 + + ( + 14 ) col0, col0 AS col0 FROM tab0 AS cor0 WHERE NOT + 33 + + col2 > + col0 + + col0
----
-73
87
-83
97

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8977
SELECT ALL * FROM tab2 WHERE NULL NOT BETWEEN + + col1 * - CAST( NULL AS SIGNED ) + - col0 + - col2 + - col0 AND NULL
----

skipif mysql # not compatible
query III rowsort label-8977
SELECT ALL * FROM tab2 WHERE NULL NOT BETWEEN + + col1 * - CAST ( NULL AS INTEGER ) + - col0 + - col2 + - col0 AND NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT - + col1 <> col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8979
SELECT ALL - col0 * + col1 + - col2 - + ( CAST( NULL AS SIGNED ) ) * 3 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8979
SELECT ALL - col0 * + col1 + - col2 - + ( CAST ( NULL AS INTEGER ) ) * 3 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 45 + + + col2 - - col0 AS col2 FROM tab0 WHERE ( NULL <> ( + col2 ) )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8981
SELECT CAST( COUNT( * ) AS SIGNED ) AS col2, 85 FROM tab2
----
3
85

skipif mysql # not compatible
query II rowsort label-8981
SELECT CAST ( COUNT ( * ) AS INTEGER ) AS col2, 85 FROM tab2
----
3
85

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8982
SELECT DISTINCT + ( CAST( NULL AS SIGNED ) ), col1 FROM tab0 cor0
----
NULL
1
NULL
21
NULL
81

skipif mysql # not compatible
query II rowsort label-8982
SELECT DISTINCT + ( CAST ( NULL AS INTEGER ) ), col1 FROM tab0 cor0
----
NULL
1
NULL
21
NULL
81

onlyif mysql # aggregate syntax: 
query I rowsort label-8983
SELECT ALL + + SUM( DISTINCT + 44 ) FROM tab2 AS cor0
----
44

skipif mysql # not compatible
query I rowsort label-8983
SELECT ALL + + SUM ( DISTINCT + 44 ) FROM tab2 AS cor0
----
44

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 40 + - - col0 + - 5 >= + col0
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL <> - col0 * - col2 * + + col2 * col1 / - 62 + - - 92 + - - col0
----

query I rowsort
SELECT col2 * + + ( 57 ) + col0 AS col1 FROM tab1
----
3448
3967
5523

query I rowsort
SELECT DISTINCT - + col2 + col1 * ( + - col0 ) FROM tab0 AS cor0
----
-1262
-1837
-196

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 59 - 67 IS NULL
----

query I rowsort
SELECT ALL 43 - col2 * col2 * - + 27 AS col2 FROM tab1 cor0
----
124891
248875
94030

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 60 + col1 + - - col1 / - col2 + - col1 <= col0 + - col1
----
15
81
47

query I rowsort
SELECT DISTINCT - ( 19 ) FROM tab0 AS cor0
----
-19

query I rowsort
SELECT 23 - + - 55 AS col0 FROM tab2 AS cor0
----
78
78
78

query II rowsort
SELECT ALL + col1 * + - col0 * 10 AS col1, col2 FROM tab2 AS cor0
----
-23460
23
-49280
40
-50250
58

query I rowsort
SELECT - col1 - 20 - 84 * + + col1 + + col2 + - col0 AS col2 FROM tab2 AS cor0
----
-4378
-5732
-6589

onlyif mysql # aggregate syntax: 
query I rowsort label-8995
SELECT DISTINCT - SUM( ALL col2 ) * 81 + 92 FROM tab1
----
-17971

skipif mysql # not compatible
query I rowsort label-8995
SELECT DISTINCT - SUM ( ALL col2 ) * 81 + 92 FROM tab1
----
-17971

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8996
SELECT - col1 * ( + CAST( + 72 AS SIGNED ) ) DIV col2 - - 75 + - - col2 FROM tab0
----
-2
-66
174

skipif mysql # not compatible
query I rowsort label-8996
SELECT - col1 * ( + CAST ( + 72 AS INTEGER ) ) / col2 - - 75 + - - col2 FROM tab0
----
-2
-66
174

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 98 + + col1 col1, col1 FROM tab0
----
119
21
179
81
99
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8998
SELECT DISTINCT - 93 * + - COUNT( * ) col1 FROM tab2
----
279

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8998
SELECT DISTINCT - 93 * + - COUNT ( * ) col1 FROM tab2
----
279

query II rowsort
SELECT ALL + col2 + col1 AS col2, col1 * ( - col0 ) FROM tab0 AS cor0
----
100
-97
128
-1215
31
-1827

query II rowsort
SELECT ALL - col2 AS col0, - 42 AS col2 FROM tab2 AS cor0
----
-23
-42
-40
-42
-58
-42

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT - col2 < + + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9002
SELECT - ( + + CAST( NULL AS SIGNED ) ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9002
SELECT - ( + + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 35 AS col2 FROM ( tab2 AS cor0 CROSS JOIN tab2 cor1 ) WHERE 25 IS NOT NULL
----
35

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 82 col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to f318fd9dac2de7af4b82cc7574bbca2c

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9005
SELECT - - 79 * CAST( 67 AS SIGNED ), col0 AS col1 FROM tab2 AS cor0
----
5293
46
5293
64
5293
75

skipif mysql # not compatible
query II rowsort label-9005
SELECT - - 79 * CAST ( 67 AS INTEGER ), col0 AS col1 FROM tab2 AS cor0
----
5293
46
5293
64
5293
75

onlyif mysql # aggregate syntax: 
query I rowsort label-9006
SELECT DISTINCT COUNT( * ) * - 59 FROM tab0 AS cor0
----
-177

skipif mysql # not compatible
query I rowsort label-9006
SELECT DISTINCT COUNT ( * ) * - 59 FROM tab0 AS cor0
----
-177

onlyif mysql # aggregate syntax: 
query I rowsort label-9007
SELECT - MIN( DISTINCT - 27 ) * - + 15 FROM tab0 AS cor0
----
-405

skipif mysql # not compatible
query I rowsort label-9007
SELECT - MIN ( DISTINCT - 27 ) * - + 15 FROM tab0 AS cor0
----
-405

onlyif mysql # aggregate syntax: 
query I rowsort label-9008
SELECT + AVG ( DISTINCT + col0 ) * COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE NOT ( - col1 IS NOT NULL ) OR NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9008
SELECT + AVG ( DISTINCT + col0 ) * COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE NOT ( - col1 IS NOT NULL ) OR NOT NULL IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9009
SELECT - - 56 * - COUNT( * ) FROM tab0 AS cor0
----
-168

skipif mysql # not compatible
query I rowsort label-9009
SELECT - - 56 * - COUNT ( * ) FROM tab0 AS cor0
----
-168

onlyif mysql # aggregate syntax: 
query I rowsort label-9010
SELECT ALL - SUM( DISTINCT - 1 ) * + 75 AS col1 FROM tab0
----
75

skipif mysql # not compatible
query I rowsort label-9010
SELECT ALL - SUM ( DISTINCT - 1 ) * + 75 AS col1 FROM tab0
----
75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9011
SELECT DISTINCT + MIN( + 71 ) DIV + 76 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-9011
SELECT DISTINCT + MIN ( + 71 ) / + 76 FROM tab2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9012
SELECT ALL col2 DIV - - col0 AS col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9012
SELECT ALL col2 / - - col0 AS col0 FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT - + col0 AS col1 FROM tab1 WHERE - ( + 22 ) BETWEEN NULL AND NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE 52 * + - ( col2 ) NOT BETWEEN - col0 AND NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + col0 + + ( + col1 ) AS col0 FROM tab0 AS cor0
----
108
96
98

query I rowsort
SELECT ALL - col2 + + 41 AS col1 FROM tab2 AS cor0
----
-17
1
18

query II rowsort
SELECT DISTINCT + col1, col2 + + + col0 AS col2 FROM tab2 AS cor0
----
51
69
67
133
77
104

query I rowsort
SELECT + + 69 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 85d9b90a03b9def161891b13085271f7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9019
SELECT 76 + + - CAST( - 87 AS SIGNED ) + 51 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 6ce9e5326d8071d6a7b38c071b05a120

skipif mysql # not compatible
query I rowsort label-9019
SELECT 76 + + - CAST ( - 87 AS INTEGER ) + 51 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 6ce9e5326d8071d6a7b38c071b05a120

onlyif mysql # aggregate syntax: 
query II rowsort label-9020
SELECT - COUNT( * ) - + + 30 * - COUNT( * ) * + 15 col2, ( - COUNT( * ) ) AS col1 FROM tab1
----
1347
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9020
SELECT - COUNT ( * ) - + + 30 * - COUNT ( * ) * + 15 col2, ( - COUNT ( * ) ) AS col1 FROM tab1
----
1347
-3

query I rowsort
SELECT + - col1 * col0 - + col1 + - - col2 AS col0 FROM tab1 cor0
----
-371
-4256
-632

query I rowsort
SELECT + col0 + - col2 * col0 FROM tab1 AS cor0
----
-4845
-4930
-6097

query I rowsort
SELECT - - 20 + + 55 + col0 FROM tab0 AS cor0
----
162
172
90

query I rowsort
SELECT DISTINCT col1 AS col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT 12 - - + col1 FROM tab2 AS cor0
----
63
79
89

onlyif mysql # aggregate syntax: 
query I rowsort label-9026
SELECT + SUM( ALL - 35 ) AS col0 FROM tab1 cor0
----
-105

skipif mysql # not compatible
query I rowsort label-9026
SELECT + SUM ( ALL - 35 ) AS col0 FROM tab1 cor0
----
-105

onlyif mysql # aggregate syntax: 
query I rowsort label-9027
SELECT DISTINCT - + 79 + + COUNT( * ) FROM tab1 AS cor0
----
-76

skipif mysql # not compatible
query I rowsort label-9027
SELECT DISTINCT - + 79 + + COUNT ( * ) FROM tab1 AS cor0
----
-76

query I rowsort
SELECT - - col2 FROM tab1 AS cor0 WHERE NULL BETWEEN - col2 * + col2 - 92 AND NULL
----

query I rowsort
SELECT ALL - + 82 - 34 FROM tab1 AS cor0
----
-116
-116
-116

query I rowsort
SELECT ALL - col0 FROM tab2 WHERE ( - col0 >= NULL )
----

query I rowsort
SELECT + col2 + - col2 FROM tab2 WHERE NULL IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - col0 * 69 col0 FROM tab0
----
-48645
-60030
-662607

query III rowsort
SELECT * FROM tab2 WHERE + - col2 * + - col2 + col2 + - col1 + - - 35 NOT BETWEEN 35 AND col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 95 - - col1 * - 90 FROM tab1
----
-1165
-355
-4135

query I rowsort
SELECT - - col2 AS col2 FROM tab0 WHERE NOT col2 IS NULL
----
10
47
99

onlyif mysql # aggregate syntax: 
query II rowsort label-9036
SELECT ALL - 18 AS col0, COUNT( * ) AS col0 FROM tab0
----
-18
3

skipif mysql # not compatible
query II rowsort label-9036
SELECT ALL - 18 AS col0, COUNT ( * ) AS col0 FROM tab0
----
-18
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9037
SELECT 36 * COUNT( * ) AS col1 FROM tab1
----
108

skipif mysql # not compatible
query I rowsort label-9037
SELECT 36 * COUNT ( * ) AS col1 FROM tab1
----
108

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( col2 ) col2 FROM tab0 cor0
----
10
47
99

query I rowsort
SELECT DISTINCT 56 / - + ( - - col1 ) AS col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT DISTINCT col0, 57 FROM tab1
----
51
57
85
57
91
57

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NULL ) >= col1
----

query I rowsort
SELECT ALL 13 * 87 AS col2 FROM tab1 cor0
----
1131
1131
1131

query I rowsort
SELECT - 31 + + col2 AS col1 FROM tab0 AS cor0 WHERE NOT col2 NOT BETWEEN NULL AND + col2
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9044
SELECT ALL - + MAX( - CAST( NULL AS SIGNED ) ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9044
SELECT ALL - + MAX ( - CAST ( NULL AS INTEGER ) ) AS col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT ( - 85 ) + 18 FROM tab2
----
-67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9046
SELECT ALL SUM( ALL col2 ) col0, CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
156
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9046
SELECT ALL SUM ( ALL col2 ) col0, CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
156
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9047
SELECT ALL 40 + + COUNT( * ) * - + COUNT( * ) FROM tab1
----
31

skipif mysql # not compatible
query I rowsort label-9047
SELECT ALL 40 + + COUNT ( * ) * - + COUNT ( * ) FROM tab1
----
31

query I rowsort
SELECT ALL 7 + col1 AS col2 FROM tab1
----
12
21
54

query III rowsort
SELECT * FROM tab2 WHERE NULL = - 4 + + 47 + - - 87
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 > col0
----

query I rowsort
SELECT DISTINCT 42 + + col1 FROM tab1 AS cor0
----
47
56
89

query I rowsort
SELECT - 26 * - - col1 AS col2 FROM tab2
----
-1326
-1742
-2002

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9053
SELECT - SUM( + 11 ) / - CAST( NULL AS SIGNED ) * - 57 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9053
SELECT - SUM ( + 11 ) / - CAST ( NULL AS INTEGER ) * - 57 FROM tab1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9054
SELECT ALL * FROM tab0 AS cor0 WHERE CAST( NULL AS SIGNED ) * 88 / + 72 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-9054
SELECT ALL * FROM tab0 AS cor0 WHERE CAST ( NULL AS INTEGER ) * 88 / + 72 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query II rowsort label-9055
SELECT ALL - col2 + - - col0 DIV + 92, - col0 col1 FROM tab1 AS cor0
----
-59
-85
-68
-91
-96
-51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9055
SELECT ALL - col2 + - - col0 / + 92, - col0 col1 FROM tab1 AS cor0
----
-59
-85
-68
-91
-96
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-9056
SELECT DISTINCT SUM( DISTINCT + - col0 ) + + COUNT( * ) FROM tab0 AS cor0
----
-196

skipif mysql # not compatible
query I rowsort label-9056
SELECT DISTINCT SUM ( DISTINCT + - col0 ) + + COUNT ( * ) FROM tab0 AS cor0
----
-196

query II rowsort
SELECT DISTINCT col0 + + col1 + + col0, 75 AS col2 FROM tab0 AS cor0
----
111
75
195
75

onlyif mysql # aggregate syntax: 
query I rowsort label-9058
SELECT MIN( ALL col2 ) - + MIN( DISTINCT - ( col2 ) ) FROM tab2 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-9058
SELECT MIN ( ALL col2 ) - + MIN ( DISTINCT - ( col2 ) ) FROM tab2 AS cor0
----
81

query I rowsort
SELECT + ( + col1 ) * - - col1 FROM tab2
----
2601
4489
5929

onlyif mysql # aggregate syntax: 
query I rowsort label-9060
SELECT COUNT( * ) * - 86 AS col2 FROM tab2
----
-258

skipif mysql # not compatible
query I rowsort label-9060
SELECT COUNT ( * ) * - 86 AS col2 FROM tab2
----
-258

query II rowsort
SELECT - col2 * + 29, + col2 AS col0 FROM tab2 AS cor0
----
-1160
40
-1682
58
-667
23

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NOT NULL > NULL )
----

query I rowsort
SELECT - col0 * + 7 FROM tab0 AS cor0
----
-105
-609
-679

query I rowsort
SELECT - ( + - col1 ) + - + 52 * - ( 22 ) AS col0 FROM tab0 WHERE NOT col0 + - col1 + - + col1 / 86 IS NULL OR col2 * col0 IS NOT NULL
----
1145
1165
1225

query I rowsort
SELECT ( - col2 ) * - 22 AS col1 FROM tab2 AS cor0
----
1276
506
880

query I rowsort
SELECT + col0 * + + 31 FROM tab2 AS cor0
----
1426
1984
2325

onlyif mysql # DIV for integer division: 
query I rowsort label-9067
SELECT ALL ( + 60 ) DIV - col1 + - col1 FROM tab0 AS cor0
----
-23
-61
-81

skipif mysql # not compatible
query I rowsort label-9067
SELECT ALL ( + 60 ) / - col1 + - col1 FROM tab0 AS cor0
----
-23
-61
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-9068
SELECT DISTINCT - SUM( - col1 ) * 15 FROM tab2 AS cor0
----
2925

skipif mysql # not compatible
query I rowsort label-9068
SELECT DISTINCT - SUM ( - col1 ) * 15 FROM tab2 AS cor0
----
2925

query I rowsort
SELECT + 55 + col0 FROM tab2 AS cor0
----
101
119
130

query I rowsort
SELECT ALL + - ( + - col0 ) AS col0 FROM tab0 AS cor0
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-9071
SELECT - MIN( - 31 ) + 8 AS col0 FROM tab1
----
39

skipif mysql # not compatible
query I rowsort label-9071
SELECT - MIN ( - 31 ) + 8 AS col0 FROM tab1
----
39

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - + 78 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9073
SELECT ALL - COUNT( * ), 96 * + 20 AS col1 FROM tab1
----
-3
1920

skipif mysql # not compatible
query II rowsort label-9073
SELECT ALL - COUNT ( * ), 96 * + 20 AS col1 FROM tab1
----
-3
1920

query III rowsort
SELECT ALL * FROM tab0 WHERE - 59 + + 47 <= - + col0
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9075
SELECT - 72 AS col1, - COUNT( * ) FROM tab1
----
-72
-3

skipif mysql # not compatible
query II rowsort label-9075
SELECT - 72 AS col1, - COUNT ( * ) FROM tab1
----
-72
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9076
SELECT CAST( + 65 AS SIGNED ) * - COUNT( * ) + - - 93 * - COUNT( * ) FROM tab2 AS cor0
----
-474

skipif mysql # not compatible
query I rowsort label-9076
SELECT CAST ( + 65 AS INTEGER ) * - COUNT ( * ) + - - 93 * - COUNT ( * ) FROM tab2 AS cor0
----
-474

query II rowsort
SELECT col1 AS col1, - col2 AS col0 FROM tab2 cor0
----
51
-23
67
-58
77
-40

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9078
SELECT - - col0 + - + CAST( NULL AS DECIMAL ) AS col0 FROM tab1 AS cor0 WHERE 51 / + col0 IS NULL
----

skipif mysql # not compatible
query I rowsort label-9078
SELECT - - col0 + - + CAST ( NULL AS REAL ) AS col0 FROM tab1 AS cor0 WHERE 51 / + col0 IS NULL
----

query II rowsort
SELECT - - col2 * col1, - col2 AS col2 FROM tab2 AS cor0
----
1173
-23
3080
-40
3886
-58

query I rowsort
SELECT ALL - ( + - col0 ) - ( 14 ) FROM tab2 AS cor0
----
32
50
61

query II rowsort
SELECT ALL - col0 AS col2, + ( col0 ) AS col0 FROM tab2 AS cor0
----
-46
46
-64
64
-75
75

query II rowsort
SELECT DISTINCT + 97, - 92 AS col2 FROM tab1 AS cor0 WHERE NOT + col0 >= - 83
----

query II rowsort
SELECT 65 + + 84 * - col0, col1 FROM tab1
----
-4219
14
-7075
5
-7579
47

query I rowsort
SELECT col1 AS col1 FROM tab2 WHERE NULL <= - col2 + + 56 * + col2
----

query I rowsort
SELECT ALL + col2 * 53 + 65 AS col1 FROM tab2 AS cor0
----
1284
2185
3139

query I rowsort
SELECT + 10 * + ( + 31 ) FROM tab0 AS cor0 WHERE ( NULL IS NULL )
----
310
310
310

query I rowsort
SELECT - 66 + - col0 AS col2 FROM tab1 AS cor0
----
-117
-151
-157

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( NULL ) >= col2 - - - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9089
SELECT DISTINCT ( - MIN( - col2 ) ) FROM tab0 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-9089
SELECT DISTINCT ( - MIN ( - col2 ) ) FROM tab0 AS cor0
----
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9090
SELECT + col2 AS col2 FROM tab0 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) + + col1 + + col2 IS NULL
----

skipif mysql # not compatible
query I rowsort label-9090
SELECT + col2 AS col2 FROM tab0 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) + + col1 + + col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9091
SELECT col0 * - 98 + - CAST( NULL AS SIGNED ) + + 0 AS col2 FROM tab1 AS cor0 WHERE NOT - col2 IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9091
SELECT col0 * - 98 + - CAST ( NULL AS INTEGER ) + + 0 AS col2 FROM tab1 AS cor0 WHERE NOT - col2 IS NULL
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col0 * - + col2 FROM tab2 AS cor0 WHERE ( NULL ) <> - 86
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9093
SELECT SUM( ALL + CAST( + + 97 AS SIGNED ) ) FROM tab1
----
291

skipif mysql # not compatible
query I rowsort label-9093
SELECT SUM ( ALL + CAST ( + + 97 AS INTEGER ) ) FROM tab1
----
291

query III rowsort
SELECT * FROM tab2 WHERE NOT - - col1 > - 44 + + - col0 * - col0 * - 39
----

query II rowsort
SELECT ALL col0, - 11 + - 23 FROM tab1
----
51
-34
85
-34
91
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-9096
SELECT DISTINCT + + COUNT( ALL col0 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9096
SELECT DISTINCT + + COUNT ( ALL col0 ) FROM tab0 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9097
SELECT DISTINCT + + AVG ( + + CAST( NULL AS SIGNED ) ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-9097
SELECT DISTINCT + + AVG ( + + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

query I rowsort
SELECT + + 58 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to ef6e63aeed2581a168f07646d258f666

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9099
SELECT CAST( - 38 AS SIGNED ) AS col0, - COUNT( * ) - COUNT( * ) FROM tab1 AS cor0
----
-38
-6

skipif mysql # not compatible
query II rowsort label-9099
SELECT CAST ( - 38 AS INTEGER ) AS col0, - COUNT ( * ) - COUNT ( * ) FROM tab1 AS cor0
----
-38
-6

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 * + 58 IN ( - ( - + col2 ), 16, + - col2, - 81 )
----

query I rowsort
SELECT col1 - + 40 AS col0 FROM tab2 cor0 WHERE NULL IS NULL
----
11
27
37

query II rowsort
SELECT - ( + col1 ) AS col0, - 57 AS col0 FROM tab2 AS cor0
----
-51
-57
-67
-57
-77
-57

query I rowsort
SELECT + col2 * col2 * - 61 AS col2 FROM tab1 AS cor0
----
-212341
-282064
-562176

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9104
SELECT - CAST( - + 31 AS SIGNED ) FROM tab0
----
31
31
31

skipif mysql # not compatible
query I rowsort label-9104
SELECT - CAST ( - + 31 AS INTEGER ) FROM tab0
----
31
31
31

onlyif mysql # aggregate syntax: 
query I rowsort label-9105
SELECT DISTINCT + MIN( DISTINCT 70 ) AS col0 FROM tab1
----
70

skipif mysql # not compatible
query I rowsort label-9105
SELECT DISTINCT + MIN ( DISTINCT 70 ) AS col0 FROM tab1
----
70

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL > + col2 + - 78
----

query I rowsort
SELECT - 13 + - col1 FROM tab1
----
-18
-27
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-9108
SELECT DISTINCT MAX( DISTINCT 99 ) * + COUNT( * ) FROM tab2
----
297

skipif mysql # not compatible
query I rowsort label-9108
SELECT DISTINCT MAX ( DISTINCT 99 ) * + COUNT ( * ) FROM tab2
----
297

onlyif mysql # aggregate syntax: 
query I rowsort label-9109
SELECT - 31 + + + COUNT( * ) + + COUNT( * ) AS col1 FROM tab1
----
-25

skipif mysql # not compatible
query I rowsort label-9109
SELECT - 31 + + + COUNT ( * ) + + COUNT ( * ) AS col1 FROM tab1
----
-25

onlyif mysql # aggregate syntax: 
query II rowsort label-9110
SELECT - MIN( + col1 ) + + 64 AS col0, COUNT( * ) * + - COUNT( * ) FROM tab1
----
59
-9

skipif mysql # not compatible
query II rowsort label-9110
SELECT - MIN ( + col1 ) + + 64 AS col0, COUNT ( * ) * + - COUNT ( * ) FROM tab1
----
59
-9

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col1 <> NULL AND NULL IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 4 + 99 col1 FROM tab0 AS cor0
----
95
95
95

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9113
SELECT DISTINCT col0 * CAST( + col0 AS SIGNED ) * + col2 + 89 DIV + + 23, col2 col1 FROM tab1
----
249699
96
426278
59
563111
68

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9113
SELECT DISTINCT col0 * CAST ( + col0 AS INTEGER ) * + col2 + 89 / + + 23, col2 col1 FROM tab1
----
249699
96
426278
59
563111
68

query I rowsort
SELECT ALL 57 * + 33 - 22 FROM tab0
----
1859
1859
1859

onlyif mysql # aggregate syntax: 
query I rowsort label-9115
SELECT ALL - COUNT( * ) col0 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9115
SELECT ALL - COUNT ( * ) col0 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9116
SELECT * FROM tab2 AS cor0 WHERE NOT - CAST( + 91 AS SIGNED ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-9116
SELECT * FROM tab2 AS cor0 WHERE NOT - CAST ( + 91 AS INTEGER ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 36 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9118
SELECT - + ( + COUNT( DISTINCT - col2 ) ) DIV + - 70 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9118
SELECT - + ( + COUNT ( DISTINCT - col2 ) ) / + - 70 FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9119
SELECT + MIN( DISTINCT - + col2 ) AS col1, COUNT( * ) FROM tab1 AS cor0
----
-96
3

skipif mysql # not compatible
query II rowsort label-9119
SELECT + MIN ( DISTINCT - + col2 ) AS col1, COUNT ( * ) FROM tab1 AS cor0
----
-96
3

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col1 * + col0 * + col0 + 0 <> - col0
----

query II rowsort
SELECT DISTINCT 54, + ( + 49 ) AS col1 FROM tab1 AS cor0
----
54
49

onlyif mysql # aggregate syntax: 
query I rowsort label-9122
SELECT DISTINCT - MAX( - 56 ) col0 FROM tab0 AS cor0
----
56

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9122
SELECT DISTINCT - MAX ( - 56 ) col0 FROM tab0 AS cor0
----
56

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9123
SELECT CAST( 12 AS SIGNED ) AS col0, 38 AS col2 FROM tab1
----
12
38
12
38
12
38

skipif mysql # not compatible
query II rowsort label-9123
SELECT CAST ( 12 AS INTEGER ) AS col0, 38 AS col2 FROM tab1
----
12
38
12
38
12
38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT ALL - col1 col1, + col0 + - col0, + 31 AS col2 FROM tab0 WHERE NULL < NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT 13 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9126
SELECT * FROM tab0 WHERE NOT NULL NOT BETWEEN 62 AND CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-9126
SELECT * FROM tab0 WHERE NOT NULL NOT BETWEEN 62 AND CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9127
SELECT - + MAX( DISTINCT + 59 ) AS col0 FROM tab2 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-9127
SELECT - + MAX ( DISTINCT + 59 ) AS col0 FROM tab2 AS cor0
----
-59

query I rowsort
SELECT DISTINCT + col0 AS col0 FROM tab2 AS cor0 WHERE NOT col0 = NULL
----

query II rowsort
SELECT DISTINCT + 56 + + col1 * - - 50, col2 AS col2 FROM tab0 AS cor0
----
106
99
1106
10
4106
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9130
SELECT + 36 + CAST( col1 AS SIGNED ) * + col0 - - ( - + col2 ) FROM tab2 AS cor0
----
2359
4924
5003

skipif mysql # not compatible
query I rowsort label-9130
SELECT + 36 + CAST ( col1 AS INTEGER ) * + col0 - - ( - + col2 ) FROM tab2 AS cor0
----
2359
4924
5003

query I rowsort
SELECT + col1 * col0 + + - 21 + - col1 + + 12 FROM tab0 AS cor0
----
1125
1797
87

onlyif mysql # aggregate syntax: 
query I rowsort label-9132
SELECT 66 * - + MIN( ALL - col1 ) + + - 74 FROM tab1 AS cor0
----
3028

skipif mysql # not compatible
query I rowsort label-9132
SELECT 66 * - + MIN ( ALL - col1 ) + + - 74 FROM tab1 AS cor0
----
3028

query I rowsort
SELECT - 11 + col2 * + 27 FROM tab1 cor0
----
1582
1825
2581

query I rowsort
SELECT + + col2 + - 12 AS col2 FROM tab2 AS cor0
----
11
28
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9135
SELECT ALL - COUNT( * ) * - 64 - + COUNT( * ) - CAST( NULL AS SIGNED ) + + COUNT( * ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9135
SELECT ALL - COUNT ( * ) * - 64 - + COUNT ( * ) - CAST ( NULL AS INTEGER ) + + COUNT ( * ) FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9136
SELECT ALL MIN( DISTINCT + + 79 ) col1 FROM tab1 AS cor0
----
79

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9136
SELECT ALL MIN ( DISTINCT + + 79 ) col1 FROM tab1 AS cor0
----
79

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 89 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9138
SELECT - SUM( DISTINCT + + col1 ) + + 26 FROM tab0 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-9138
SELECT - SUM ( DISTINCT + + col1 ) + + 26 FROM tab0 AS cor0
----
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9139
SELECT DISTINCT - + col2 FROM tab2 WHERE NOT ( - + col2 ) > + col1 * CAST( - 88 AS SIGNED ) * - - col0 + col1
----

skipif mysql # not compatible
query I rowsort label-9139
SELECT DISTINCT - + col2 FROM tab2 WHERE NOT ( - + col2 ) > + col1 * CAST ( - 88 AS INTEGER ) * - - col0 + col1
----

query I rowsort
SELECT ALL - col0 * + + 69 FROM tab0
----
-1035
-6003
-6693

onlyif mysql # aggregate syntax: 
query I rowsort label-9141
SELECT DISTINCT + ( MAX( 62 ) ) + + MIN( DISTINCT + - 55 ) AS col2 FROM tab2
----
7

skipif mysql # not compatible
query I rowsort label-9141
SELECT DISTINCT + ( MAX ( 62 ) ) + + MIN ( DISTINCT + - 55 ) AS col2 FROM tab2
----
7

query I rowsort
SELECT DISTINCT 30 * + col2 FROM tab2
----
1200
1740
690

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col0 - + ( col0 ) + - ( + 18 ) + - - 54 + col1 col1 FROM tab1 AS cor0
----
41
50
83

onlyif mysql # aggregate syntax: 
query I rowsort label-9144
SELECT ALL COUNT( * ) * - 65 AS col2 FROM tab0
----
-195

skipif mysql # not compatible
query I rowsort label-9144
SELECT ALL COUNT ( * ) * - 65 AS col2 FROM tab0
----
-195

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NOT col1 * 24 <> ( col1 * - col1 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col2 AS col0 FROM tab0 WHERE NOT - - col0 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query III rowsort label-9147
SELECT - col1 col1, + col1 DIV + + col0, - 68 AS col0 FROM tab1 AS cor0
----
9 values hashing to a9a1478e213bb0d607fe439fa508033d

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort label-9147
SELECT - col1 col1, + col1 / + + col0, - 68 AS col0 FROM tab1 AS cor0
----
9 values hashing to a9a1478e213bb0d607fe439fa508033d

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9148
SELECT - - col1 * CAST( + + ( + col0 ) AS SIGNED ) + + - 45 * col0 AS col0 FROM tab1 cor0
----
-1581
-3400
182

skipif mysql # not compatible
query I rowsort label-9148
SELECT - - col1 * CAST ( + + ( + col0 ) AS INTEGER ) + + - 45 * col0 AS col0 FROM tab1 cor0
----
-1581
-3400
182

onlyif mysql # aggregate syntax: 
query I rowsort label-9149
SELECT + + SUM( DISTINCT - + 89 ) AS col0 FROM tab2 AS cor0
----
-89

skipif mysql # not compatible
query I rowsort label-9149
SELECT + + SUM ( DISTINCT - + 89 ) AS col0 FROM tab2 AS cor0
----
-89

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( + col1 ) >= + + 9 - + - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - col0 * + col2 + + 45 * + 58 FROM tab0 AS cor0
----
-6993
1740
1905

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col0 NOT BETWEEN - col0 AND - col1
----

query III rowsort
SELECT * FROM tab2 WHERE NOT - + col2 + - col1 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - + 92 * + col1 col1 FROM tab0
----
-111780
-168084
-8924

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9155
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + - col0 * + - col2 AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9155
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + - col0 * + - col2 AS col1 FROM tab0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9156
SELECT DISTINCT + CAST( NULL AS SIGNED ), + COUNT( * ) AS col2 FROM tab2 AS cor0
----
NULL
3

skipif mysql # not compatible
query II rowsort label-9156
SELECT DISTINCT + CAST ( NULL AS INTEGER ), + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
NULL
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 54 AS col0, + 86 col2 FROM tab1 AS cor0
----
54
86
54
86
54
86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9158
SELECT + 40 + - CAST( - COUNT( * ) AS SIGNED ) AS col0 FROM tab1 AS cor0
----
43

skipif mysql # not compatible
query I rowsort label-9158
SELECT + 40 + - CAST ( - COUNT ( * ) AS INTEGER ) AS col0 FROM tab1 AS cor0
----
43

query I rowsort
SELECT DISTINCT - 57 + - col2 FROM tab2
----
-115
-80
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-9160
SELECT ALL MAX( - 98 ) AS col1 FROM tab0
----
-98

skipif mysql # not compatible
query I rowsort label-9160
SELECT ALL MAX ( - 98 ) AS col1 FROM tab0
----
-98

query I rowsort
SELECT ALL + col0 + - 36 * + 41 AS col0 FROM tab1 AS cor0
----
-1385
-1391
-1425

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9162
SELECT DISTINCT - CAST( 57 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-57

skipif mysql # not compatible
query I rowsort label-9162
SELECT DISTINCT - CAST ( 57 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-57

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9163
SELECT ALL + + col2 * + - CAST( NULL AS SIGNED ), - 38 AS col0 FROM tab1 AS cor0
----
NULL
-38
NULL
-38
NULL
-38

skipif mysql # not compatible
query II rowsort label-9163
SELECT ALL + + col2 * + - CAST ( NULL AS INTEGER ), - 38 AS col0 FROM tab1 AS cor0
----
NULL
-38
NULL
-38
NULL
-38

query III rowsort
SELECT * FROM tab2 WHERE col2 - - 82 NOT IN ( - 4 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col0 - + 97 AS col1 FROM tab1
----
-148
-182
-188

query I rowsort
SELECT 91 - - col1 AS col0 FROM tab0
----
112
172
92

onlyif mysql # aggregate syntax: 
query I rowsort label-9167
SELECT DISTINCT MAX( ALL - ( + col2 ) ) FROM tab2
----
-23

skipif mysql # not compatible
query I rowsort label-9167
SELECT DISTINCT MAX ( ALL - ( + col2 ) ) FROM tab2
----
-23

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9168
SELECT - + COUNT( * ) FROM tab1 WHERE + 79 * + + CAST( NULL AS DECIMAL ) + - col1 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-9168
SELECT - + COUNT ( * ) FROM tab1 WHERE + 79 * + + CAST ( NULL AS REAL ) + - col1 IS NOT NULL
----
0

query II rowsort
SELECT DISTINCT + col0 AS col1, 6 AS col2 FROM tab2
----
46
6
64
6
75
6

query I rowsort
SELECT 32 + + + 25 FROM tab0
----
57
57
57

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL <> col2 + - col0
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col2 * + col1 NOT BETWEEN - col2 AND + - 15 * ( + 99 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) = + ( + col0 ) + + col1
----

query I rowsort
SELECT col0 - ( - 4 ) * col2 AS col1 FROM tab2 WHERE NOT ( + col2 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9175
SELECT 68 AS col1 FROM tab2 WHERE + col2 * - 87 IN ( + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-9175
SELECT 68 AS col1 FROM tab2 WHERE + col2 * - 87 IN ( + CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT col0 AS col2 FROM tab2 WHERE ( + ( - col1 ) * col1 ) IS NULL
----

query I rowsort
SELECT DISTINCT col2 - - col1 AS col0 FROM tab2 WHERE NULL NOT IN ( 30 )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE - 14 * col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + 9 + - 78 / - col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9180
SELECT MIN( 68 ) * COUNT( * ) FROM tab0 WHERE - ( - col1 ) IS NOT NULL
----
204

skipif mysql # not compatible
query I rowsort label-9180
SELECT MIN ( 68 ) * COUNT ( * ) FROM tab0 WHERE - ( - col1 ) IS NOT NULL
----
204

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( - col2 ) NOT BETWEEN ( - col1 ) AND NULL
----

query I rowsort
SELECT DISTINCT + col2 AS col0 FROM tab0 WHERE NOT ( + 99 ) IN ( + col1 + col0 )
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-9183
SELECT + COUNT( * ) * - COUNT( * ) AS col1 FROM tab0 WHERE NULL >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-9183
SELECT + COUNT ( * ) * - COUNT ( * ) AS col1 FROM tab0 WHERE NULL >= NULL
----
0

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - col2 * col1 NOT IN ( - 13 )
----

query I rowsort
SELECT 39 + ( + ( col2 ) ) AS col0 FROM tab0
----
138
49
86

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + col0 + + col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + col2 - 83 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL NOT BETWEEN - col1 - col0 * + col0 AND col0
----

query I rowsort
SELECT 51 * 70 FROM tab2
----
3570
3570
3570

query III rowsort
SELECT * FROM tab0 WHERE ( + col2 * col1 ) > ( NULL )
----

query I rowsort
SELECT DISTINCT col1 - + 26 * + col0 AS col2 FROM tab0
----
-2241
-2521
-309

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NULL ) NOT BETWEEN - 3 / 88 AND ( col0 )
----

query I rowsort
SELECT col2 FROM tab0 WHERE + ( col1 ) * col1 NOT BETWEEN 72 AND col2
----
10
47
99

query I rowsort
SELECT DISTINCT - 20 + 38 FROM tab1
----
18

query I rowsort
SELECT ALL + col2 * + 80 + - 11 FROM tab1 AS cor0
----
4709
5429
7669

onlyif mysql # aggregate syntax: 
query I rowsort label-9196
SELECT DISTINCT 48 * - COUNT( * ) + - COUNT( * ) * - 35 FROM tab1 AS cor0 WHERE - ( + col0 ) IS NOT NULL
----
-39

skipif mysql # not compatible
query I rowsort label-9196
SELECT DISTINCT 48 * - COUNT ( * ) + - COUNT ( * ) * - 35 FROM tab1 AS cor0 WHERE - ( + col0 ) IS NOT NULL
----
-39

query I rowsort
SELECT - 3 * col2 + + col2 FROM tab0 AS cor0 WHERE NOT - col2 BETWEEN + ( 61 ) + col1 AND 50
----
-198
-20
-94

query I rowsort
SELECT DISTINCT ( ( col1 ) ) + + 72 FROM tab1 AS cor0
----
119
77
86

onlyif mysql # aggregate syntax: 
query I rowsort label-9199
SELECT ALL - 83 * COUNT( - col0 * col2 ) AS col1 FROM tab2 AS cor0
----
-249

skipif mysql # not compatible
query I rowsort label-9199
SELECT ALL - 83 * COUNT ( - col0 * col2 ) AS col1 FROM tab2 AS cor0
----
-249

query I rowsort
SELECT + col1 * col0 AS col2 FROM tab1 AS cor0 WHERE NULL IN ( - ( + col0 ) )
----

query I rowsort
SELECT ( 6 ) FROM tab1 AS cor0
----
6
6
6

query I rowsort
SELECT col1 * - col0 AS col1 FROM tab0 cor0
----
-1215
-1827
-97

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( 43 * - 53 + + col1 / - col0 ) IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9204
SELECT + col2 DIV - col2 AS col0 FROM tab2 cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-9204
SELECT + col2 / - col2 AS col0 FROM tab2 cor0
----
-1
-1
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-9205
SELECT ALL + 56 DIV col1 AS col0 FROM tab1 AS cor0
----
1
11
4

skipif mysql # not compatible
query I rowsort label-9205
SELECT ALL + 56 / col1 AS col0 FROM tab1 AS cor0
----
1
11
4

query I rowsort
SELECT + col1 + ( - col0 - - col2 * 15 ) AS col1 FROM tab2
----
350
613
862

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9207
SELECT ALL - col2 * CAST( NULL AS SIGNED ) AS col1 FROM tab2 WHERE NOT ( NULL ) BETWEEN NULL AND ( NULL )
----

skipif mysql # not compatible
query I rowsort label-9207
SELECT ALL - col2 * CAST ( NULL AS INTEGER ) AS col1 FROM tab2 WHERE NOT ( NULL ) BETWEEN NULL AND ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( + col2 ) IS NOT NULL
----

query I rowsort
SELECT ALL - col0 + 91 AS col2 FROM tab0
----
-6
4
76

query I rowsort
SELECT + col2 + - col2 * 84 FROM tab2 AS cor0
----
-1909
-3320
-4814

query I rowsort
SELECT DISTINCT + col0 * 12 + col0 * col2 AS col0 FROM tab2 AS cor0
----
1610
3328
5250

query I rowsort
SELECT DISTINCT - - col0 + + 8 FROM tab2 AS cor0
----
54
72
83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9213
SELECT ALL 73 AS col1 FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN col1 * - col2 AND 13 + ( + CAST( CAST( - col2 AS SIGNED ) AS SIGNED ) + + col2 )
----

skipif mysql # not compatible
query I rowsort label-9213
SELECT ALL 73 AS col1 FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN col1 * - col2 AND 13 + ( + CAST ( CAST ( - col2 AS INTEGER ) AS INTEGER ) + + col2 )
----

query I rowsort
SELECT DISTINCT + col1 + - 95 AS col1 FROM tab2 AS cor0
----
-18
-28
-44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9215
SELECT - col1 + + CAST( 87 + + 27 AS SIGNED ) FROM tab1 cor0
----
100
109
67

skipif mysql # not compatible
query I rowsort label-9215
SELECT - col1 + + CAST ( 87 + + 27 AS INTEGER ) FROM tab1 cor0
----
100
109
67

query I rowsort
SELECT ALL + col1 * col1 + col0 AS col1 FROM tab1 AS cor0
----
110
2300
247

query I rowsort
SELECT + 85 + + col2 AS col0 FROM tab1 AS cor0
----
144
153
181

onlyif mysql # aggregate syntax: 
query I rowsort label-9218
SELECT DISTINCT - MAX( col0 ) * + 59 - ( - 42 ) FROM tab0 AS cor0
----
-5681

skipif mysql # not compatible
query I rowsort label-9218
SELECT DISTINCT - MAX ( col0 ) * + 59 - ( - 42 ) FROM tab0 AS cor0
----
-5681

onlyif mysql # aggregate syntax: 
query I rowsort label-9219
SELECT COUNT( - 82 ) + COUNT( * ) AS col1 FROM tab0 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-9219
SELECT COUNT ( - 82 ) + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
6

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 83 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9221
SELECT ALL - + 66 DIV col1 AS col0 FROM tab2 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-9221
SELECT ALL - + 66 / col1 AS col0 FROM tab2 AS cor0
----
-1
0
0

query I rowsort
SELECT ALL 47 FROM tab1 AS cor0 WHERE NOT col0 BETWEEN + col0 * ( col0 * - col0 ) AND ( 22 )
----
47
47
47

query I rowsort
SELECT ALL col0 * - col2 - + ( + col1 ) * 37 AS col1 FROM tab2
----
-2945
-5409
-6829

query I rowsort
SELECT DISTINCT + 92 + col1 FROM tab0 WHERE NOT + col0 NOT BETWEEN col2 AND ( + ( + col2 ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * col1 col2 FROM tab1 WHERE + 65 IS NOT NULL
----
-1344
-295
-3196

onlyif mysql # aggregate syntax: 
query I rowsort label-9226
SELECT 1 * + + 87 * + MAX( + col0 ) AS col1 FROM tab0
----
8439

skipif mysql # not compatible
query I rowsort label-9226
SELECT 1 * + + 87 * + MAX ( + col0 ) AS col1 FROM tab0
----
8439

query III rowsort
SELECT * FROM tab1 WHERE NULL <> ( 86 / col0 )
----

query I rowsort
SELECT ALL ( - - 19 ) AS col0 FROM tab2
----
19
19
19

query I rowsort
SELECT ALL + 24 + - 61 FROM tab1
----
-37
-37
-37

query I rowsort
SELECT - col2 - 60 AS col1 FROM tab0 AS cor0
----
-107
-159
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-9231
SELECT + 17 * ( + COUNT( * ) ) FROM tab1 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-9231
SELECT + 17 * ( + COUNT ( * ) ) FROM tab1 AS cor0
----
51

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT ( NULL ) > ( - col1 )
----

query I rowsort
SELECT - ( - ( + 84 ) ) * col1 FROM tab1 AS cor0
----
1176
3948
420

onlyif mysql # aggregate syntax: 
query I rowsort label-9234
SELECT DISTINCT - - SUM( ALL - - col0 ) FROM tab1 AS cor0
----
227

skipif mysql # not compatible
query I rowsort label-9234
SELECT DISTINCT - - SUM ( ALL - - col0 ) FROM tab1 AS cor0
----
227

query I rowsort
SELECT ALL + col2 * + col2 AS col1 FROM tab1 cor0 WHERE col1 IS NOT NULL
----
3481
4624
9216

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 8 / + col0 < col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9237
SELECT ALL + SUM( DISTINCT - - 85 ) * + 79 col0 FROM tab0 AS cor0
----
6715

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9237
SELECT ALL + SUM ( DISTINCT - - 85 ) * + 79 col0 FROM tab0 AS cor0
----
6715

query I rowsort
SELECT + ( - ( - 76 ) ) AS col2 FROM tab1
----
76
76
76

query I rowsort
SELECT + col1 * - 22 * col0 * + 39 FROM tab0
----
-1042470
-1567566
-83226

query I rowsort
SELECT DISTINCT - - 62 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-9241
SELECT COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL <= ( + col1 )
----
0

skipif mysql # not compatible
query I rowsort label-9241
SELECT COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL <= ( + col1 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9242
SELECT SUM( + ( + 18 ) ) FROM tab0 AS cor0
----
54

skipif mysql # not compatible
query I rowsort label-9242
SELECT SUM ( + ( + 18 ) ) FROM tab0 AS cor0
----
54

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT ( NULL ) >= + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9244
SELECT DISTINCT + SUM( - col0 ) * + + 69 AS col2 FROM tab0 cor0
----
-13731

skipif mysql # not compatible
query I rowsort label-9244
SELECT DISTINCT + SUM ( - col0 ) * + + 69 AS col2 FROM tab0 cor0
----
-13731

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 28 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9246
SELECT DISTINCT + CAST( + + col2 AS SIGNED ) FROM tab0 AS cor0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-9246
SELECT DISTINCT + CAST ( + + col2 AS INTEGER ) FROM tab0 AS cor0
----
10
47
99

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 19 * - - col1 / col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9248
SELECT + COUNT( ALL + + 60 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-9248
SELECT + COUNT ( ALL + + 60 ) FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9249
SELECT ALL COUNT( * ) AS col1 FROM tab0 WHERE ( NULL ) IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-9249
SELECT ALL COUNT ( * ) AS col1 FROM tab0 WHERE ( NULL ) IS NULL
----
3

query III rowsort
SELECT * FROM tab0 WHERE NOT - ( col0 ) + 76 = ( - col2 * col2 + - 24 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 col0 FROM tab1 WHERE NOT - col2 NOT BETWEEN - + 53 - 32 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9252
SELECT ALL MIN( 87 ) AS col0 FROM tab1
----
87

skipif mysql # not compatible
query I rowsort label-9252
SELECT ALL MIN ( 87 ) AS col0 FROM tab1
----
87

query III rowsort
SELECT * FROM tab1 WHERE - col1 * - col1 <= col2
----
85
5
59

onlyif mysql # aggregate syntax: 
query I rowsort label-9254
SELECT + SUM( DISTINCT + + col2 ) AS col1 FROM tab0 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-9254
SELECT + SUM ( DISTINCT + + col2 ) AS col1 FROM tab0 AS cor0
----
156

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9255
SELECT ALL + - CAST( NULL AS SIGNED ) + COUNT( * ) + + 28 AS col1 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9255
SELECT ALL + - CAST ( NULL AS INTEGER ) + COUNT ( * ) + + 28 AS col1 FROM tab1 cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9256
SELECT ALL COUNT( 28 ) col0 FROM tab0 AS cor0 WHERE NOT NULL > - col1 + + ( ( + ( 61 ) ) ) / - ( col0 / + col2 + col2 )
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9256
SELECT ALL COUNT ( 28 ) col0 FROM tab0 AS cor0 WHERE NOT NULL > - col1 + + ( ( + ( 61 ) ) ) / - ( col0 / + col2 + col2 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9257
SELECT DISTINCT + CAST( NULL AS SIGNED ) * - AVG ( DISTINCT col0 ) FROM tab0 WHERE NOT - - 79 * + col0 - - col0 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9257
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - AVG ( DISTINCT col0 ) FROM tab0 WHERE NOT - - 79 * + col0 - - col0 IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9258
SELECT + MIN( DISTINCT + col0 ) FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-9258
SELECT + MIN ( DISTINCT + col0 ) FROM tab0
----
15

query I rowsort
SELECT DISTINCT - col1 AS col1 FROM tab1 WHERE NOT col0 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9260
SELECT ALL 74 + + + 41 + + col1 * - CAST( col0 AS SIGNED ) - 86 DIV - col1 FROM tab0 AS cor0
----
-1099
-1708
104

skipif mysql # not compatible
query I rowsort label-9260
SELECT ALL 74 + + + 41 + + col1 * - CAST ( col0 AS INTEGER ) - 86 / - col1 FROM tab0 AS cor0
----
-1099
-1708
104

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col2 + - + col0 NOT IN ( - + 5 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9262
SELECT ALL - - MIN( - ( col0 ) ) + + - 67 FROM tab1 AS cor0
----
-158

skipif mysql # not compatible
query I rowsort label-9262
SELECT ALL - - MIN ( - ( col0 ) ) + + - 67 FROM tab1 AS cor0
----
-158

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9263
SELECT - - CAST( NULL AS SIGNED ) / + 7 - + 31 - - - COUNT( * ) * - - MIN( - col1 ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9263
SELECT - - CAST ( NULL AS INTEGER ) / + 7 - + 31 - - - COUNT ( * ) * - - MIN ( - col1 ) FROM tab0 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 col0, col0 * + col1 FROM tab1
----
14
714
47
4277
5
425

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9265
SELECT DISTINCT CAST( + COUNT( * ) AS SIGNED ) AS col0 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-9265
SELECT DISTINCT CAST ( + COUNT ( * ) AS INTEGER ) AS col0 FROM tab0
----
3

query III rowsort
SELECT * FROM tab2 WHERE NOT - 68 <> ( + 4 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9267
SELECT ALL + ( COUNT( * ) ) FROM tab0 WHERE NULL = + + col1 * col0
----
0

skipif mysql # not compatible
query I rowsort label-9267
SELECT ALL + ( COUNT ( * ) ) FROM tab0 WHERE NULL = + + col1 * col0
----
0

query I rowsort
SELECT ALL ( + 65 ) FROM tab1
----
65
65
65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9269
SELECT ALL + COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE ( - CAST( + + 91 AS SIGNED ) ) NOT BETWEEN - col0 * - col0 AND ( - col1 )
----
3

skipif mysql # not compatible
query I rowsort label-9269
SELECT ALL + COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE ( - CAST ( + + 91 AS INTEGER ) ) NOT BETWEEN - col0 * - col0 AND ( - col1 )
----
3

query I rowsort
SELECT ALL - 70 * - col1 AS col2 FROM tab0 AS cor0
----
1470
5670
70

query I rowsort
SELECT - - 25 AS col2 FROM tab0 cor0
----
25
25
25

onlyif mysql # DIV for integer division: 
query II rowsort label-9272
SELECT + col2 DIV + + 35 AS col1, + col0 FROM tab1 AS cor0
----
1
85
1
91
2
51

skipif mysql # not compatible
query II rowsort label-9272
SELECT + col2 / + + 35 AS col1, + col0 FROM tab1 AS cor0
----
1
85
1
91
2
51

query I rowsort
SELECT ALL - 47 * - + 24 + - ( - 3 ) AS col2 FROM tab1 AS cor0
----
1131
1131
1131

query I rowsort
SELECT ALL 61 + + - col1 AS col1 FROM tab2 AS cor0 WHERE - 33 <> + 54
----
-16
-6
10

query III rowsort
SELECT * FROM tab2 WHERE - + 44 IS NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col0 / + col2 - + col0 IN ( + + col2 / 70 + - col1 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9277
SELECT - COUNT( ALL + - ( CAST( - + col2 AS SIGNED ) ) ) AS col2 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9277
SELECT - COUNT ( ALL + - ( CAST ( - + col2 AS INTEGER ) ) ) AS col2 FROM tab0 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9278
SELECT + - COUNT( * ) * - 40 AS col1 FROM tab1 AS cor0
----
120

skipif mysql # not compatible
query I rowsort label-9278
SELECT + - COUNT ( * ) * - 40 AS col1 FROM tab1 AS cor0
----
120

query II rowsort
SELECT DISTINCT - col1, - 14 AS col1 FROM tab1 AS cor0
----
-14
-14
-47
-14
-5
-14

query I rowsort
SELECT DISTINCT 68 + - - 70 AS col2 FROM tab2 AS cor0
----
138

onlyif mysql # aggregate syntax: 
query I rowsort label-9281
SELECT ALL - + 57 * - COUNT( * ) AS col0 FROM tab0 AS cor0
----
171

skipif mysql # not compatible
query I rowsort label-9281
SELECT ALL - + 57 * - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
171

onlyif mysql # aggregate syntax: 
query I rowsort label-9282
SELECT COUNT( + col2 ) + + ( 96 ) FROM tab2
----
99

skipif mysql # not compatible
query I rowsort label-9282
SELECT COUNT ( + col2 ) + + ( 96 ) FROM tab2
----
99

query I rowsort
SELECT DISTINCT - col2 * 14 + 35 FROM tab2
----
-287
-525
-777

onlyif mysql # aggregate syntax: 
query I rowsort label-9284
SELECT ALL 25 + MAX( + 1 ) AS col2 FROM tab1
----
26

skipif mysql # not compatible
query I rowsort label-9284
SELECT ALL 25 + MAX ( + 1 ) AS col2 FROM tab1
----
26

query I rowsort
SELECT - 95 * + col1 * + - 14 + + col1 FROM tab0 AS cor0
----
107811
1331
27951

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9286
SELECT ALL 8 - - 28 FROM tab1 AS cor0 WHERE + CAST( NULL AS SIGNED ) > - col0 * + 20 - CAST( + + col0 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-9286
SELECT ALL 8 - - 28 FROM tab1 AS cor0 WHERE + CAST ( NULL AS INTEGER ) > - col0 * + 20 - CAST ( + + col0 AS INTEGER )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9287
SELECT + 33 + - - COUNT( * ) DIV + + COUNT( * ) FROM tab2 AS cor0
----
34

skipif mysql # not compatible
query I rowsort label-9287
SELECT + 33 + - - COUNT ( * ) / + + COUNT ( * ) FROM tab2 AS cor0
----
34

query I rowsort
SELECT ALL col0 + - - 62 FROM tab1 AS cor0
----
113
147
153

query I rowsort
SELECT ( + + col1 ) AS col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
51
67
77

query I rowsort
SELECT DISTINCT - col1 * - - col1 + - 29 FROM tab0 AS cor0
----
-30
-470
-6590

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN + col2 AND 43
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9292
SELECT ALL 86 * + MIN( ALL + col2 ) FROM tab1 AS cor0 WHERE NULL IN ( col1 + - col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9292
SELECT ALL 86 * + MIN ( ALL + col2 ) FROM tab1 AS cor0 WHERE NULL IN ( col1 + - col2 )
----
NULL

query I rowsort
SELECT ALL - - col2 * + + 41 - - col1 AS col1 FROM tab1 AS cor0
----
2424
2835
3950

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - - col2 - - col0 = col1
----

query I rowsort
SELECT + col1 * ( col0 ) AS col2 FROM tab2
----
2346
4928
5025

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9296
SELECT CAST( - col2 AS SIGNED ) col1 FROM tab1
----
-59
-68
-96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9296
SELECT CAST ( - col2 AS INTEGER ) col1 FROM tab1
----
-59
-68
-96

query I rowsort
SELECT ALL - 56 * + + col1 AS col0 FROM tab2
----
-2856
-3752
-4312

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9298
SELECT AVG ( + ( - + col2 ) ) / + + CAST( NULL AS SIGNED ) * - 4 / - 89 AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9298
SELECT AVG ( + ( - + col2 ) ) / + + CAST ( NULL AS INTEGER ) * - 4 / - 89 AS col2 FROM tab0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9299
SELECT DISTINCT + CAST( NULL AS SIGNED ) / + CAST( - col2 AS SIGNED ) * 13 col1 FROM tab1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9299
SELECT DISTINCT + CAST ( NULL AS INTEGER ) / + CAST ( - col2 AS INTEGER ) * 13 col1 FROM tab1
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9300
SELECT CAST( NULL AS DECIMAL ) * + ( col0 ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9300
SELECT CAST ( NULL AS REAL ) * + ( col0 ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9301
SELECT ALL + 29 / + + CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9301
SELECT ALL + 29 / + + CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9302
SELECT ALL - MAX( + + col2 ) FROM tab2 AS cor0
----
-58

skipif mysql # not compatible
query I rowsort label-9302
SELECT ALL - MAX ( + + col2 ) FROM tab2 AS cor0
----
-58

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9303
SELECT ALL COUNT( * ), SUM( DISTINCT + - 65 ) DIV MAX( - col1 ) AS col2 FROM tab0
----
3
65

skipif mysql # not compatible
query II rowsort label-9303
SELECT ALL COUNT ( * ), SUM ( DISTINCT + - 65 ) / MAX ( - col1 ) AS col2 FROM tab0
----
3
65

onlyif mysql # aggregate syntax: 
query I rowsort label-9304
SELECT DISTINCT - SUM( DISTINCT col2 ) AS col2 FROM tab0
----
-156

skipif mysql # not compatible
query I rowsort label-9304
SELECT DISTINCT - SUM ( DISTINCT col2 ) AS col2 FROM tab0
----
-156

query I rowsort
SELECT ALL col1 FROM tab2 WHERE - col1 < - col1
----

query IIIIII rowsort
SELECT * FROM tab2 cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL NOT BETWEEN + 20 AND ( - 79 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9307
SELECT ALL + + COUNT( * ) FROM tab1 AS cor0 WHERE NOT col2 / col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-9307
SELECT ALL + + COUNT ( * ) FROM tab1 AS cor0 WHERE NOT col2 / col0 IS NOT NULL
----
0

query I rowsort
SELECT ALL - 6 + - + AVG ( ( - 73 ) ) AS col2 FROM tab0 AS cor0 WHERE NULL < NULL
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9309
SELECT ALL + COUNT( * ), SUM( + - col2 ) AS col2 FROM tab0 cor0
----
3
-156

skipif mysql # not compatible
query II rowsort label-9309
SELECT ALL + COUNT ( * ), SUM ( + - col2 ) AS col2 FROM tab0 cor0
----
3
-156

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 28 + - col1 IS NOT NULL
----

query II rowsort
SELECT ALL + + col0, + ( col0 ) FROM tab1 cor0
----
51
51
85
85
91
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + 79 col0, - col2 FROM tab2 AS cor0
----
79
-23
79
-40
79
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-9313
SELECT ALL - SUM( DISTINCT col0 ) AS col1 FROM tab1 AS cor0
----
-227

skipif mysql # not compatible
query I rowsort label-9313
SELECT ALL - SUM ( DISTINCT col0 ) AS col1 FROM tab1 AS cor0
----
-227

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + - col1 col1, - col0 FROM tab0 AS cor0
----
-1
-97
-21
-87
-81
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-9315
SELECT + - COUNT( DISTINCT + col1 ) FROM tab0 WHERE NULL = + 27
----
0

skipif mysql # not compatible
query I rowsort label-9315
SELECT + - COUNT ( DISTINCT + col1 ) FROM tab0 WHERE NULL = + 27
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9316
SELECT COUNT( ALL + + 50 ), + 93 * + 91 AS col0 FROM tab1
----
3
8463

skipif mysql # not compatible
query II rowsort label-9316
SELECT COUNT ( ALL + + 50 ), + 93 * + 91 AS col0 FROM tab1
----
3
8463

query II rowsort
SELECT - col2 * ( - col1 ), col2 AS col0 FROM tab2
----
1173
23
3080
40
3886
58

onlyif mysql # aggregate syntax: 
query I rowsort label-9318
SELECT + MAX( col2 ) + - COUNT( ALL - col1 ) FROM tab2
----
55

skipif mysql # not compatible
query I rowsort label-9318
SELECT + MAX ( col2 ) + - COUNT ( ALL - col1 ) FROM tab2
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-9319
SELECT + 70 + + COUNT( * ) FROM tab0 AS cor0
----
73

skipif mysql # not compatible
query I rowsort label-9319
SELECT + 70 + + COUNT ( * ) FROM tab0 AS cor0
----
73

onlyif mysql # DIV for integer division: 
query I rowsort label-9320
SELECT + 33 DIV col0 + col0 FROM tab2 AS cor0
----
46
64
75

skipif mysql # not compatible
query I rowsort label-9320
SELECT + 33 / col0 + col0 FROM tab2 AS cor0
----
46
64
75

query I rowsort
SELECT DISTINCT 46 - + col0 AS col1 FROM tab2 AS cor0
----
-18
-29
0

query II rowsort
SELECT col1, 9 FROM tab2
----
51
9
67
9
77
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9323
SELECT DISTINCT col1 * - col0 * col0 * + + CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9323
SELECT DISTINCT col1 * - col0 * col0 * + + CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9324
SELECT * FROM tab2 WHERE col2 * CAST( 73 AS DECIMAL ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-9324
SELECT * FROM tab2 WHERE col2 * CAST ( 73 AS REAL ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9325
SELECT DISTINCT SUM( DISTINCT + col0 ) AS col1 FROM tab0 AS cor0
----
199

skipif mysql # not compatible
query I rowsort label-9325
SELECT DISTINCT SUM ( DISTINCT + col0 ) AS col1 FROM tab0 AS cor0
----
199

query I rowsort
SELECT DISTINCT - col0 FROM tab0 AS cor0 WHERE NOT + 69 IS NOT NULL
----

query I rowsort
SELECT + - col1 - + 81 FROM tab2 AS cor0
----
-132
-148
-158

query II rowsort
SELECT col2, - ( + col2 ) FROM tab1 AS cor0
----
59
-59
68
-68
96
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * - col0 - + 69 col2 FROM tab0 AS cor0 WHERE col0 IS NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-9330
SELECT - 1, + col0 * col1 DIV - 93 AS col2 FROM tab1 AS cor0
----
-1
-4
-1
-45
-1
-7

skipif mysql # not compatible
query II rowsort label-9330
SELECT - 1, + col0 * col1 / - 93 AS col2 FROM tab1 AS cor0
----
-1
-4
-1
-45
-1
-7

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9331
SELECT DISTINCT * FROM tab2 WHERE - col1 - + + CAST( 89 AS DECIMAL ) * + col1 IS NULL
----

skipif mysql # not compatible
query III rowsort label-9331
SELECT DISTINCT * FROM tab2 WHERE - col1 - + + CAST ( 89 AS REAL ) * + col1 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9332
SELECT DISTINCT - 3 DIV col0 FROM tab0 WHERE NOT 85 * + 64 IN ( + + col0 + - col2, + 92, - col1 DIV + ( - col1 ) * col2 + - ( - + 16 ) - + col1 )
----
0

skipif mysql # not compatible
query I rowsort label-9332
SELECT DISTINCT - 3 / col0 FROM tab0 WHERE NOT 85 * + 64 IN ( + + col0 + - col2, + 92, - col1 / + ( - col1 ) * col2 + - ( - + 16 ) - + col1 )
----
0

query I rowsort
SELECT - 20 * - col1 FROM tab2
----
1020
1340
1540

onlyif mysql # DIV for integer division: 
query I rowsort label-9334
SELECT DISTINCT col0 DIV - 71 FROM tab0
----
-1
0

skipif mysql # not compatible
query I rowsort label-9334
SELECT DISTINCT col0 / - 71 FROM tab0
----
-1
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - col2 ) col2 FROM tab2 WHERE NOT NULL IN ( + - col0 * col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9336
SELECT MAX( col1 ) * COUNT( * ) * + 99 FROM tab2 AS cor0
----
22869

skipif mysql # not compatible
query I rowsort label-9336
SELECT MAX ( col1 ) * COUNT ( * ) * + 99 FROM tab2 AS cor0
----
22869

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9337
SELECT 32 / - 32 - - CAST( NULL AS SIGNED ) AS col2 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9337
SELECT 32 / - 32 - - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9338
SELECT ALL * FROM tab2 WHERE NOT + col2 * - CAST( NULL AS DECIMAL ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-9338
SELECT ALL * FROM tab2 WHERE NOT + col2 * - CAST ( NULL AS REAL ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * col2 * - + col0 + - 73 col0 FROM tab1 AS cor0
----
-295958
-420857
-470089

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9340
SELECT ALL + col1 AS col1 FROM tab0 cor0 WHERE NOT CAST( + + col0 AS SIGNED ) <> col0 + + col0
----

skipif mysql # not compatible
query I rowsort label-9340
SELECT ALL + col1 AS col1 FROM tab0 cor0 WHERE NOT CAST ( + + col0 AS INTEGER ) <> col0 + + col0
----

query I rowsort
SELECT DISTINCT - 54 AS col0 FROM tab1 AS cor0 WHERE NOT - 78 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9342
SELECT DISTINCT COUNT( * ) + + - 19 col0 FROM tab2
----
-16

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9342
SELECT DISTINCT COUNT ( * ) + + - 19 col0 FROM tab2
----
-16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-9343
SELECT DISTINCT - 95 AS col1, COUNT( * ) AS col0, - - 36 + - CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
-95
3
NULL

skipif mysql # not compatible
query III rowsort label-9343
SELECT DISTINCT - 95 AS col1, COUNT ( * ) AS col0, - - 36 + - CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
-95
3
NULL

query I rowsort
SELECT ALL + + col2 FROM tab2 WHERE NOT - col1 - - col0 < NULL
----

query I rowsort
SELECT ALL - - col0 AS col0 FROM tab1 WHERE + + 23 > - col2
----
51
85
91

query I rowsort
SELECT DISTINCT - 85 + 17 AS col0 FROM tab1
----
-68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9347
SELECT - CAST( - - ( + + CAST( - 96 AS SIGNED ) ) AS SIGNED ) AS col0 FROM tab2
----
96
96
96

skipif mysql # not compatible
query I rowsort label-9347
SELECT - CAST ( - - ( + + CAST ( - 96 AS INTEGER ) ) AS INTEGER ) AS col0 FROM tab2
----
96
96
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 col2, col0 FROM tab1 AS cor0
----
59
85
68
91
96
51

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9349
SELECT * FROM tab2 AS cor0 WHERE col1 NOT IN ( col1 * + CAST( ( + col2 ) AS SIGNED ) + - col0, + ( + - col2 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-9349
SELECT * FROM tab2 AS cor0 WHERE col1 NOT IN ( col1 * + CAST ( ( + col2 ) AS INTEGER ) + - col0, + ( + - col2 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col1 + - + col0 FROM tab1 AS cor0
----
-37
-44
-80

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9351
SELECT DISTINCT * FROM tab0 WHERE NOT NULL IN ( + 0 - - - CAST( + col2 AS SIGNED ) * + + col1 )
----

skipif mysql # not compatible
query III rowsort label-9351
SELECT DISTINCT * FROM tab0 WHERE NOT NULL IN ( + 0 - - - CAST ( + col2 AS INTEGER ) * + + col1 )
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col1 / col0 * - ( - col0 ) = NULL
----

query I rowsort
SELECT DISTINCT - col0 * - + 42 AS col2 FROM tab2 AS cor0
----
1932
2688
3150

query I rowsort
SELECT + ( - 52 ) * col0 * - + ( col2 ) FROM tab1 AS cor0
----
254592
260780
321776

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9355
SELECT DISTINCT COUNT( * ) * + COUNT( - 25 ) DIV - - MAX( ALL + col0 ) AS col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9355
SELECT DISTINCT COUNT ( * ) * + COUNT ( - 25 ) / - - MAX ( ALL + col0 ) AS col0 FROM tab2 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 19 col0 FROM tab1 cor0
----
19

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - 79 >= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9358
SELECT ALL 30 DIV + col0 col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9358
SELECT ALL 30 / + col0 col2 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9359
SELECT - 16 col2, MAX( - + 89 ) FROM tab2
----
-16
-89

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9359
SELECT - 16 col2, MAX ( - + 89 ) FROM tab2
----
-16
-89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9360
SELECT + MIN( + - ( + - 13 ) ) * + CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9360
SELECT + MIN ( + - ( + - 13 ) ) * + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT NULL NOT BETWEEN 33 AND NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col2 * - + col1 NOT BETWEEN - col0 AND col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9363
SELECT DISTINCT - + COUNT( * ) + - 47 FROM tab2 WHERE NULL IS NOT NULL
----
-47

skipif mysql # not compatible
query I rowsort label-9363
SELECT DISTINCT - + COUNT ( * ) + - 47 FROM tab2 WHERE NULL IS NOT NULL
----
-47

query I rowsort
SELECT - ( - ( - 66 ) ) AS col0 FROM tab0
----
-66
-66
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-9365
SELECT ALL + - COUNT( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-9365
SELECT ALL + - COUNT ( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-9366
SELECT ALL col1 DIV 72 * - 59 AS col1 FROM tab2 AS cor0
----
-59
0
0

skipif mysql # not compatible
query I rowsort label-9366
SELECT ALL col1 / 72 * - 59 AS col1 FROM tab2 AS cor0
----
-59
0
0

query I rowsort
SELECT ALL - + ( col2 ) + + ( - col2 ) - - - col2 FROM tab0 cor0
----
-141
-297
-30

query I rowsort
SELECT ALL - - 72 + - col0 AS col1 FROM tab1 cor0
----
-13
-19
21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9369
SELECT ALL - col0 - col1 AS col0 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN + 8 AND + ( - CAST( col0 AS SIGNED ) ) / 17
----

skipif mysql # not compatible
query I rowsort label-9369
SELECT ALL - col0 - col1 AS col0 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN + 8 AND + ( - CAST ( col0 AS INTEGER ) ) / 17
----

query I rowsort
SELECT 74 - - col2 FROM tab0
----
121
173
84

query I rowsort
SELECT ALL col2 - + - col2 FROM tab0
----
198
20
94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 - + - col1 col2 FROM tab0
----
162
2
42

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + - col1 * col1 + ( - col0 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 66 * col0 + 89 AS col2 FROM tab1
----
3455
5699
6095

onlyif mysql # DIV for integer division: 
query II rowsort label-9375
SELECT col0 DIV + 84 + - col1, col2 FROM tab0
----
-20
10
-81
47
0
99

skipif mysql # not compatible
query II rowsort label-9375
SELECT col0 / + 84 + - col1, col2 FROM tab0
----
-20
10
-81
47
0
99

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - 33 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL 48 AS col1 FROM tab0 WHERE NOT NULL NOT BETWEEN - + 10 AND NULL
----

query I rowsort
SELECT 23 + - 28 + - - col2 AS col2 FROM tab1
----
54
63
91

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-9379
SELECT + ( col1 ) AS col0, col0 AS col1 FROM tab0 WHERE 65 >= - + CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query II rowsort label-9379
SELECT + ( col1 ) AS col0, col0 AS col1 FROM tab0 WHERE 65 >= - + CAST ( NULL AS REAL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 col2 FROM tab0 WHERE NULL = NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - ( - 73 ) <= col2 / 22 - + ( - col1 ) * - 67 * + col2 * - col2 + 76
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 33 > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9383
SELECT + CAST( - 17 AS SIGNED ) FROM tab2 cor0
----
-17
-17
-17

skipif mysql # not compatible
query I rowsort label-9383
SELECT + CAST ( - 17 AS INTEGER ) FROM tab2 cor0
----
-17
-17
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-9384
SELECT DISTINCT COUNT( col2 ) - 4 AS col0 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-9384
SELECT DISTINCT COUNT ( col2 ) - 4 AS col0 FROM tab0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9385
SELECT ALL + CAST( NULL AS SIGNED ) FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-9385
SELECT ALL + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT DISTINCT + col0 + 12 AS col0 FROM tab2 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT + 81 * - col1 AS col0 FROM tab1 cor0
----
-1134
-3807
-405

onlyif mysql # aggregate syntax: 
query I rowsort label-9388
SELECT ( - COUNT( * ) ) * - 12 FROM tab1 cor0
----
36

skipif mysql # not compatible
query I rowsort label-9388
SELECT ( - COUNT ( * ) ) * - 12 FROM tab1 cor0
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-9389
SELECT - COUNT( * ) * + 61 + - COUNT( * ) FROM tab1 AS cor0
----
-186

skipif mysql # not compatible
query I rowsort label-9389
SELECT - COUNT ( * ) * + 61 + - COUNT ( * ) FROM tab1 AS cor0
----
-186

onlyif mysql # DIV for integer division: 
query I rowsort label-9390
SELECT - + ( + + col0 ) DIV + col0 AS col0 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-9390
SELECT - + ( + + col0 ) / + col0 AS col0 FROM tab1 AS cor0
----
-1
-1
-1

query I rowsort
SELECT + - ( - - col0 ) AS col0 FROM tab0 AS cor0
----
-15
-87
-97

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL IS NULL OR NULL IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL BETWEEN col0 AND + 2 / + col1 * col1 + + 5 - + 31 + ( col2 )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE + 50 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9395
SELECT - MIN( DISTINCT + col0 ) AS col0, + CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) + - - COUNT( - 70 ) FROM tab2
----
-46
NULL

skipif mysql # not compatible
query II rowsort label-9395
SELECT - MIN ( DISTINCT + col0 ) AS col0, + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) + - - COUNT ( - 70 ) FROM tab2
----
-46
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9396
SELECT DISTINCT - SUM( + - col0 ) FROM tab0
----
199

skipif mysql # not compatible
query I rowsort label-9396
SELECT DISTINCT - SUM ( + - col0 ) FROM tab0
----
199

query I rowsort
SELECT ALL + col0 AS col0 FROM tab2 WHERE ( - col0 ) IS NOT NULL
----
46
64
75

query I rowsort
SELECT DISTINCT + col2 FROM tab1 WHERE NOT ( + ( + + col0 ) ) NOT BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9399
SELECT ALL ( MAX( + CAST( NULL AS DECIMAL ) ) ) FROM tab1 WHERE + - col1 + 39 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9399
SELECT ALL ( MAX ( + CAST ( NULL AS REAL ) ) ) FROM tab1 WHERE + - col1 + 39 IS NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9400
SELECT DISTINCT - col2 DIV - 82 FROM tab0 cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-9400
SELECT DISTINCT - col2 / - 82 FROM tab0 cor0
----
0
1

query III rowsort
SELECT * FROM tab2 WHERE 33 > ( NULL )
----

query II rowsort
SELECT - col1, + ( + 11 ) * + col1 AS col1 FROM tab1
----
-14
154
-47
517
-5
55

query I rowsort
SELECT 90 + - + 43 + - + col0 * + - ( - col2 ) AS col2 FROM tab1
----
-4849
-4968
-6141

query I rowsort
SELECT DISTINCT + - 31 + - col2 AS col0 FROM tab1 AS cor0
----
-127
-90
-99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 + + + col1 - - col0, + col0 col1 FROM tab1 cor0
----
149
85
161
51
206
91

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9406
SELECT DISTINCT CAST( + col0 AS SIGNED ) + + CAST( NULL AS DECIMAL ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9406
SELECT DISTINCT CAST ( + col0 AS INTEGER ) + + CAST ( NULL AS REAL ) AS col1 FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9407
SELECT col1 + - + 80 + ( CAST( NULL AS SIGNED ) ), + 24 AS col1 FROM tab2 AS cor0
----
NULL
24
NULL
24
NULL
24

skipif mysql # not compatible
query II rowsort label-9407
SELECT col1 + - + 80 + ( CAST ( NULL AS INTEGER ) ), + 24 AS col1 FROM tab2 AS cor0
----
NULL
24
NULL
24
NULL
24

onlyif mysql # aggregate syntax: 
query I rowsort label-9408
SELECT ALL + + COUNT( * ) * - COUNT( * ) - - SUM( - col0 ) FROM tab2 AS cor0
----
-194

skipif mysql # not compatible
query I rowsort label-9408
SELECT ALL + + COUNT ( * ) * - COUNT ( * ) - - SUM ( - col0 ) FROM tab2 AS cor0
----
-194

query I rowsort
SELECT ALL + 53 AS col0 FROM tab2 AS cor0 WHERE NOT - 75 <> - col2
----

query I rowsort
SELECT DISTINCT col2 + + - 78 AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) >= NULL
----

query I rowsort
SELECT DISTINCT + col1 - 99 FROM tab1 AS cor0
----
-52
-85
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-9412
SELECT + MAX( DISTINCT + + 49 ) AS col2 FROM tab1 cor0
----
49

skipif mysql # not compatible
query I rowsort label-9412
SELECT + MAX ( DISTINCT + + 49 ) AS col2 FROM tab1 cor0
----
49

query I rowsort
SELECT col0 FROM tab0 WHERE ( NOT NULL = 8 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9414
SELECT ALL + SUM( ALL 88 ) FROM tab2
----
264

skipif mysql # not compatible
query I rowsort label-9414
SELECT ALL + SUM ( ALL 88 ) FROM tab2
----
264

onlyif mysql # aggregate syntax: 
query I rowsort label-9415
SELECT 12 * ( + COUNT( * ) ) FROM tab1
----
36

skipif mysql # not compatible
query I rowsort label-9415
SELECT 12 * ( + COUNT ( * ) ) FROM tab1
----
36

query I rowsort
SELECT ALL col0 AS col1 FROM tab1 WHERE NOT - 90 IS NOT NULL
----

query I rowsort
SELECT + 71 * + - col1 FROM tab0
----
-1491
-5751
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-9418
SELECT MIN( ( - 87 ) ) AS col0 FROM tab0
----
-87

skipif mysql # not compatible
query I rowsort label-9418
SELECT MIN ( ( - 87 ) ) AS col0 FROM tab0
----
-87

query I rowsort
SELECT ALL + 90 * - col0 AS col0 FROM tab0
----
-1350
-7830
-8730

onlyif mysql # DIV for integer division: 
query I rowsort label-9420
SELECT DISTINCT - col2 + - col1 DIV - col1 FROM tab2 AS cor0
----
-22
-39
-57

skipif mysql # not compatible
query I rowsort label-9420
SELECT DISTINCT - col2 + - col1 / - col1 FROM tab2 AS cor0
----
-22
-39
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-9421
SELECT DISTINCT + ( + - COUNT( * ) ) - COUNT( * ) + - COUNT( * ) FROM tab0 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-9421
SELECT DISTINCT + ( + - COUNT ( * ) ) - COUNT ( * ) + - COUNT ( * ) FROM tab0 AS cor0
----
-9

query I rowsort
SELECT ALL + col0 * + + col0 * - col2 FROM tab1 AS cor0
----
-249696
-426275
-563108

onlyif mysql # aggregate syntax: 
query II rowsort label-9423
SELECT - COUNT( * ) * + - MIN( 3 ) AS col2, ( + + COUNT( * ) ) col2 FROM tab1 AS cor0
----
9
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9423
SELECT - COUNT ( * ) * + - MIN ( 3 ) AS col2, ( + + COUNT ( * ) ) col2 FROM tab1 AS cor0
----
9
3

query II rowsort
SELECT + col0 * - col1 * col2 AS col0, col0 AS col0 FROM tab1 AS cor0
----
-25075
85
-290836
91
-68544
51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + + 32 AS col1, 97 - - + col2 + - 13 col2 FROM tab0 AS cor0
----
32
131
32
183
32
94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 0 col1 FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9427
SELECT - COUNT( * ), COUNT( * ) col0 FROM tab2
----
-3
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9427
SELECT - COUNT ( * ), COUNT ( * ) col0 FROM tab2
----
-3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9428
SELECT DISTINCT MAX( 94 ) AS col1 FROM tab2
----
94

skipif mysql # not compatible
query I rowsort label-9428
SELECT DISTINCT MAX ( 94 ) AS col1 FROM tab2
----
94

onlyif mysql # aggregate syntax: 
query II rowsort label-9429
SELECT ALL COUNT( * ), MIN( ALL col0 ) AS col2 FROM tab0
----
3
15

skipif mysql # not compatible
query II rowsort label-9429
SELECT ALL COUNT ( * ), MIN ( ALL col0 ) AS col2 FROM tab0
----
3
15

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 56 BETWEEN - 43 AND NULL
----

query I rowsort
SELECT DISTINCT - 32 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-32

query I rowsort
SELECT - 96 + - 72 FROM tab0
----
-168
-168
-168

query II rowsort
SELECT - col2 + - - 0, + col2 FROM tab0
----
-10
10
-47
47
-99
99

query I rowsort
SELECT ALL + col0 * + + 80 FROM tab2
----
3680
5120
6000

query I rowsort
SELECT DISTINCT - 78 + 82 * - col2 * + col1 * - 82 FROM tab2
----
20709842
26129386
7887174

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col0 <= NULL
----

query I rowsort
SELECT DISTINCT - 26 FROM tab2 AS cor0 WHERE col2 NOT BETWEEN col2 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9438
SELECT - + 65 * + + CAST( - 38 AS SIGNED ) AS col0 FROM tab2 cor0 WHERE - col1 IS NULL
----

skipif mysql # not compatible
query I rowsort label-9438
SELECT - + 65 * + + CAST ( - 38 AS INTEGER ) AS col0 FROM tab2 cor0 WHERE - col1 IS NULL
----

query I rowsort
SELECT DISTINCT + - 25 + + col2 AS col2 FROM tab0 AS cor0
----
-15
22
74

query I rowsort
SELECT DISTINCT col0 - - 49 AS col2 FROM tab1
----
100
134
140

query I rowsort
SELECT + col1 + + 50 * + ( - + col2 ) FROM tab0
----
-2269
-479
-4949

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9442
SELECT ALL + 59 * + CAST( 68 AS SIGNED ) AS col0 FROM tab1
----
4012
4012
4012

skipif mysql # not compatible
query I rowsort label-9442
SELECT ALL + 59 * + CAST ( 68 AS INTEGER ) AS col0 FROM tab1
----
4012
4012
4012

onlyif mysql # aggregate syntax: 
query I rowsort label-9443
SELECT DISTINCT + MIN( + col0 ) * - COUNT( * ) AS col1 FROM tab0
----
-45

skipif mysql # not compatible
query I rowsort label-9443
SELECT DISTINCT + MIN ( + col0 ) * - COUNT ( * ) AS col1 FROM tab0
----
-45

query I rowsort
SELECT ALL col2 + + 63 AS col1 FROM tab2
----
103
121
86

query I rowsort
SELECT DISTINCT 1 + - col0 - + col0 * col1 - col1 FROM tab1
----
-4414
-514
-778

onlyif mysql # aggregate syntax: 
query I rowsort label-9446
SELECT + SUM( + ( - col1 ) ) + - 6 + - 46 AS col0 FROM tab1
----
-118

skipif mysql # not compatible
query I rowsort label-9446
SELECT + SUM ( + ( - col1 ) ) + - 6 + - 46 AS col0 FROM tab1
----
-118

onlyif mysql # aggregate syntax: 
query I rowsort label-9447
SELECT - 28 + + COUNT( * ) FROM tab2
----
-25

skipif mysql # not compatible
query I rowsort label-9447
SELECT - 28 + + COUNT ( * ) FROM tab2
----
-25

onlyif mysql # aggregate syntax: 
query II rowsort label-9448
SELECT DISTINCT + SUM( ALL + + col1 ) + + + 8 AS col1, 42 AS col2 FROM tab0
----
111
42

skipif mysql # not compatible
query II rowsort label-9448
SELECT DISTINCT + SUM ( ALL + + col1 ) + + + 8 AS col1, 42 AS col2 FROM tab0
----
111
42

onlyif mysql # aggregate syntax: 
query I rowsort label-9449
SELECT DISTINCT + COUNT( * ) + - + COUNT( + col1 ) + + - 77 FROM tab2 AS cor0 WHERE ( NULL ) BETWEEN - col1 + - col2 + - col0 AND 7
----
-77

skipif mysql # not compatible
query I rowsort label-9449
SELECT DISTINCT + COUNT ( * ) + - + COUNT ( + col1 ) + + - 77 FROM tab2 AS cor0 WHERE ( NULL ) BETWEEN - col1 + - col2 + - col0 AND 7
----
-77

query II rowsort
SELECT - col0, col0 AS col1 FROM tab2 AS cor0
----
-46
46
-64
64
-75
75

query I rowsort
SELECT DISTINCT 44 AS col1 FROM tab1 AS cor0 WHERE NULL IS NULL
----
44

query I rowsort
SELECT + - 88 AS col2 FROM tab2 AS cor0
----
-88
-88
-88

query I rowsort
SELECT DISTINCT 47 FROM tab2 AS cor0 WHERE ( ( NOT - 94 IS NULL ) )
----
47

onlyif mysql # DIV for integer division: 
query I rowsort label-9454
SELECT - 45 DIV col2 AS col2 FROM tab2 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-9454
SELECT - 45 / col2 AS col2 FROM tab2 AS cor0
----
-1
-1
0

query II rowsort
SELECT 39 AS col1, - col2 * col1 AS col1 FROM tab0 AS cor0
----
39
-210
39
-3807
39
-99

query I rowsort
SELECT + - 66 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to a408108d423d7784b7d610cb779e515a

query I rowsort
SELECT 94 * 86 * - col1 + - 64 FROM tab0 AS cor0
----
-169828
-654868
-8148

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 22 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9459
SELECT 45 * + COUNT( + 73 ) AS col2 FROM tab1 AS cor0
----
135

skipif mysql # not compatible
query I rowsort label-9459
SELECT 45 * + COUNT ( + 73 ) AS col2 FROM tab1 AS cor0
----
135

query I rowsort
SELECT DISTINCT 20 * + 65 FROM tab0
----
1300

onlyif mysql # aggregate syntax: 
query I rowsort label-9461
SELECT - COUNT( * ) + MIN( + - 30 ) + - + 85 AS col0 FROM tab1
----
-118

skipif mysql # not compatible
query I rowsort label-9461
SELECT - COUNT ( * ) + MIN ( + - 30 ) + - + 85 AS col0 FROM tab1
----
-118

query I rowsort
SELECT DISTINCT + 23 * + col2 AS col0 FROM tab0
----
1081
2277
230

query I rowsort
SELECT + - 6 - + col2 AS col2 FROM tab2 WHERE NOT - col1 NOT BETWEEN + + col2 AND - - col0 * - 31
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + col1 NOT BETWEEN - 0 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 26 col2 FROM tab1
----
-26

query II rowsort
SELECT DISTINCT col1, + col1 AS col1 FROM tab2
----
51
51
67
67
77
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 74 + + 63, 5 col2 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9468
SELECT - 32 * - COUNT( * ) + + - COUNT( * ) AS col2 FROM tab0 AS cor0
----
93

skipif mysql # not compatible
query I rowsort label-9468
SELECT - 32 * - COUNT ( * ) + + - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
93

query I rowsort
SELECT ALL - col1 + - + 81 AS col2 FROM tab0 AS cor0
----
-102
-162
-82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9470
SELECT DISTINCT + 28 - col0 + ( col0 ) * - + 30 + + 75 - - - ( - CAST( + col0 AS SIGNED ) ) * - 64 FROM tab2 AS cor0
----
-4267
-5977
-7022

skipif mysql # not compatible
query I rowsort label-9470
SELECT DISTINCT + 28 - col0 + ( col0 ) * - + 30 + + 75 - - - ( - CAST ( + col0 AS INTEGER ) ) * - 64 FROM tab2 AS cor0
----
-4267
-5977
-7022

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + - ( - - col2 ) col1 FROM tab2 AS cor0
----
17
23
24

query I rowsort
SELECT ALL + col1 * + - col1 - - 22 FROM tab1 AS cor0
----
-174
-2187
-3

query I rowsort
SELECT ALL + col1 - col1 + + 4 AS col2 FROM tab1 AS cor0
----
4
4
4

query I rowsort
SELECT DISTINCT + col2 * - + col1 - - col0 FROM tab0 AS cor0
----
-123
-2
-3792

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col0 + - + 51 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT + 55 - - col2 + - col0 AS col1 FROM tab0 cor0
----
-22
57
87

onlyif mysql # aggregate syntax: 
query I rowsort label-9477
SELECT DISTINCT - COUNT( * ) - + - 66 AS col0 FROM tab0
----
63

skipif mysql # not compatible
query I rowsort label-9477
SELECT DISTINCT - COUNT ( * ) - + - 66 AS col0 FROM tab0
----
63

query I rowsort
SELECT - col2 - - + col2 AS col0 FROM tab1
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9479
SELECT col2 * + col2 AS col0, CAST( NULL AS SIGNED ) FROM tab2
----
1600
NULL
3364
NULL
529
NULL

skipif mysql # not compatible
query II rowsort label-9479
SELECT col2 * + col2 AS col0, CAST ( NULL AS INTEGER ) FROM tab2
----
1600
NULL
3364
NULL
529
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9480
SELECT ALL COUNT( + 53 ) AS col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-9480
SELECT ALL COUNT ( + 53 ) AS col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
3

onlyif mysql # DIV for integer division: 
query II rowsort label-9481
SELECT + col1 DIV 86 AS col0, + col1 * col0 AS col2 FROM tab1
----
0
425
0
4277
0
714

skipif mysql # not compatible
query II rowsort label-9481
SELECT + col1 / 86 AS col0, + col1 * col0 AS col2 FROM tab1
----
0
425
0
4277
0
714

query I rowsort
SELECT ALL col2 + - col1 FROM tab0 AS cor0 WHERE - col1 + col2 * - + 4 * + - col2 * col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9483
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - CAST( + - col0 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-9483
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - CAST ( + - col0 AS INTEGER ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9484
SELECT - COUNT( * ) + - COUNT( * ) FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
-18

skipif mysql # not compatible
query I rowsort label-9484
SELECT - COUNT ( * ) + - COUNT ( * ) FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-9485
SELECT - SUM( DISTINCT + col1 ) AS col0 FROM tab2
----
-195

skipif mysql # not compatible
query I rowsort label-9485
SELECT - SUM ( DISTINCT + col1 ) AS col0 FROM tab2
----
-195

query I rowsort
SELECT - 44 * + - col2 AS col2 FROM tab2
----
1012
1760
2552

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9487
SELECT ALL - - col2 * - 8 * + + col2 * + - col2 AS col0, 8 + CAST( + col1 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
1560896
75
512000
85
97336
59

skipif mysql # not compatible
query II rowsort label-9487
SELECT ALL - - col2 * - 8 * + + col2 * + - col2 AS col0, 8 + CAST ( + col1 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
1560896
75
512000
85
97336
59

query I rowsort
SELECT - 98 * 76 + + 46 * + col0 * col2 FROM tab2 AS cor0
----
110312
192652
41220

query II rowsort
SELECT ALL 22 AS col2, + col0 FROM tab1 AS cor0
----
22
51
22
85
22
91

query I rowsort
SELECT DISTINCT - 31 AS col2 FROM tab0 cor0
----
-31

query I rowsort
SELECT ALL - - col1 * - + col1 FROM tab2 cor0
----
-2601
-4489
-5929

onlyif mysql # aggregate syntax: 
query I rowsort label-9492
SELECT SUM( ALL 25 ) AS col1 FROM tab1
----
75

skipif mysql # not compatible
query I rowsort label-9492
SELECT SUM ( ALL 25 ) AS col1 FROM tab1
----
75

query I rowsort
SELECT DISTINCT 17 * - col0 * col0 FROM tab2
----
-35972
-69632
-95625

onlyif mysql # DIV for integer division: 
query I rowsort label-9494
SELECT ( 42 ) DIV + col0 + col0 DIV - 29 FROM tab2
----
-1
-2
-2

skipif mysql # not compatible
query I rowsort label-9494
SELECT ( 42 ) / + col0 + col0 / - 29 FROM tab2
----
-1
-2
-2

query I rowsort
SELECT DISTINCT col0 + col2 * 33 AS col2 FROM tab2
----
1384
1989
805

onlyif mysql # aggregate syntax: 
query I rowsort label-9496
SELECT + MIN( DISTINCT + col1 ) AS col1 FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-9496
SELECT + MIN ( DISTINCT + col1 ) AS col1 FROM tab2
----
51

query I rowsort
SELECT DISTINCT + ( + col1 ) + 85 AS col2 FROM tab2
----
136
152
162

query I rowsort
SELECT - col0 * + col2 + - + ( 47 ) AS col2 FROM tab1
----
-4943
-5062
-6235

query I rowsort
SELECT ALL + 20 + + col2 FROM tab1
----
116
79
88

query II rowsort
SELECT ALL col1 + + + ( - - 0 ) - - col1 AS col1, - ( + ( - + col0 ) ) FROM tab0 cor0
----
162
15
2
97
42
87

query I rowsort
SELECT col2 + - 69 FROM tab2 AS cor0
----
-11
-29
-46

query II rowsort
SELECT 57 + + - col2 - col1 + col0, col0 AS col2 FROM tab2 AS cor0
----
29
46
4
64
7
75

query III rowsort
SELECT * FROM tab1 WHERE 75 + - + col1 - - col0 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9504
SELECT + ( + CAST( NULL AS SIGNED ) ) AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9504
SELECT + ( + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9505
SELECT ALL ( + COUNT( DISTINCT 61 ) ) + + 71 AS col2 FROM tab1
----
72

skipif mysql # not compatible
query I rowsort label-9505
SELECT ALL ( + COUNT ( DISTINCT 61 ) ) + + 71 AS col2 FROM tab1
----
72

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9506
SELECT * FROM tab0 AS cor0 WHERE - CAST( + 82 AS SIGNED ) * col0 > + col1
----

skipif mysql # not compatible
query III rowsort label-9506
SELECT * FROM tab0 AS cor0 WHERE - CAST ( + 82 AS INTEGER ) * col0 > + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9507
SELECT DISTINCT + COUNT( * ) + + - 12 col1 FROM tab0 cor0
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9507
SELECT DISTINCT + COUNT ( * ) + + - 12 col1 FROM tab0 cor0
----
-9

query I rowsort
SELECT DISTINCT + - 67 - - 67 AS col0 FROM tab2 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9509
SELECT - col0 - - col0 * + CAST( + col1 AS SIGNED ) FROM tab1 AS cor0
----
340
4186
663

skipif mysql # not compatible
query I rowsort label-9509
SELECT - col0 - - col0 * + CAST ( + col1 AS INTEGER ) FROM tab1 AS cor0
----
340
4186
663

query I rowsort
SELECT + col0 * + col2 + + 36 AS col1 FROM tab1 AS cor0
----
4932
5051
6224

query II rowsort
SELECT DISTINCT 0 AS col1, 69 FROM tab0
----
0
69

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 AS col1, + 81 * - 13 col1 FROM tab1
----
51
-1053
85
-1053
91
-1053

query I rowsort
SELECT ALL col0 * - 10 FROM tab0
----
-150
-870
-970

query II rowsort
SELECT DISTINCT - col2, - 64 AS col0 FROM tab0
----
-10
-64
-47
-64
-99
-64

query II rowsort
SELECT col1 AS col2, - col2 + - + col2 AS col2 FROM tab1
----
14
-192
47
-136
5
-118

onlyif mysql # aggregate syntax: 
query I rowsort label-9516
SELECT DISTINCT + SUM( DISTINCT + + 97 ) FROM tab1
----
97

skipif mysql # not compatible
query I rowsort label-9516
SELECT DISTINCT + SUM ( DISTINCT + + 97 ) FROM tab1
----
97

query II rowsort
SELECT DISTINCT col1 AS col2, + col2 AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) < + + col0
----

query I rowsort
SELECT DISTINCT - 47 * 33 * col0 AS col2 FROM tab1 AS cor0
----
-131835
-141141
-79101

query I rowsort
SELECT ( 16 ) * col1 - 66 * col0 AS col2 FROM tab1 AS cor0
----
-3142
-5254
-5530

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9520
SELECT ALL - CAST( NULL AS SIGNED ) / - col1 AS col1 FROM tab0 AS cor0 WHERE ( NULL ) BETWEEN - col1 AND - 28
----

skipif mysql # not compatible
query I rowsort label-9520
SELECT ALL - CAST ( NULL AS INTEGER ) / - col1 AS col1 FROM tab0 AS cor0 WHERE ( NULL ) BETWEEN - col1 AND - 28
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9521
SELECT - ( - ( - MAX( - + 4 ) ) ) AS col0 FROM tab2 AS cor0
----
4

skipif mysql # not compatible
query I rowsort label-9521
SELECT - ( - ( - MAX ( - + 4 ) ) ) AS col0 FROM tab2 AS cor0
----
4

query II rowsort
SELECT + col0 * - - col1 AS col1, + col0 AS col1 FROM tab0 AS cor0 WHERE NOT - col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9523
SELECT - + MAX( - + 3 ) DIV + - 61 AS col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9523
SELECT - + MAX ( - + 3 ) / + - 61 AS col2 FROM tab2 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 24 col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to b0d834ef9e4346801b6aaa0e74b2c8ef

onlyif mysql # aggregate syntax: 
query I rowsort label-9525
SELECT ALL - ( - + MAX( DISTINCT - - 17 ) ) FROM tab0
----
17

skipif mysql # not compatible
query I rowsort label-9525
SELECT ALL - ( - + MAX ( DISTINCT - - 17 ) ) FROM tab0
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-9526
SELECT DISTINCT ( SUM( - col1 ) ) FROM tab0
----
-103

skipif mysql # not compatible
query I rowsort label-9526
SELECT DISTINCT ( SUM ( - col1 ) ) FROM tab0
----
-103

query I rowsort
SELECT + + 87 * + col2 FROM tab1 AS cor0
----
5133
5916
8352

onlyif mysql # DIV for integer division: 
query I rowsort label-9528
SELECT ALL ( + col0 ) DIV - col2 + + 35 FROM tab2 AS cor0
----
33
34
34

skipif mysql # not compatible
query I rowsort label-9528
SELECT ALL ( + col0 ) / - col2 + + 35 FROM tab2 AS cor0
----
33
34
34

query I rowsort
SELECT + 67 * - col2 * col2 - - + 63 FROM tab0 AS cor0
----
-147940
-656604
-6637

query I rowsort
SELECT - col2 + - ( 78 ) FROM tab2 AS cor0
----
-101
-118
-136

query I rowsort
SELECT col1 AS col2 FROM tab2 AS cor0 WHERE NOT + 42 * col2 > - ( - 91 )
----

query I rowsort
SELECT ALL + - 82 * + col0 FROM tab1 AS cor0
----
-4182
-6970
-7462

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NOT - col1 = 93 / ( - ( - + col2 ) ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col0 + - + 18 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9535
SELECT ALL col2 / col0 * - ( + - CAST( NULL AS SIGNED ) ) + + - 31 * - col2 + - - col1 + - 14 - - col2 + 65 + col1 / + col1 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9535
SELECT ALL col2 / col0 * - ( + - CAST ( NULL AS INTEGER ) ) + + - 31 * - col2 + - - col1 + - 14 - - col2 + 65 + col1 / + col1 AS col2 FROM tab0
----
NULL
NULL
NULL

query II rowsort
SELECT col2 AS col1, 23 * - 78 + + col0 AS col1 FROM tab1
----
59
-1709
68
-1703
96
-1743

query III rowsort
SELECT * FROM tab0 cor0 WHERE ( - col0 ) * - col0 + col1 BETWEEN NULL AND - 11
----

query I rowsort
SELECT DISTINCT + - col2 + - 94 * col0 * + + col1 + - col2 * - 21 FROM tab0 AS cor0
----
-113270
-171538
-7138

query II rowsort
SELECT col0 AS col0, + col0 * + 48 * + col1 FROM tab1 AS cor0
----
51
34272
85
20400
91
205296

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( - + col2 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL >= 92
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9542
SELECT + 2 - + ( ( - + CAST( - - col1 AS SIGNED ) ) ) FROM tab1 AS cor0
----
16
49
7

skipif mysql # not compatible
query I rowsort label-9542
SELECT + 2 - + ( ( - + CAST ( - - col1 AS INTEGER ) ) ) FROM tab1 AS cor0
----
16
49
7

query II rowsort
SELECT ALL + - col1 AS col0, + col1 + + 59 FROM tab1 AS cor0
----
-14
73
-47
106
-5
64

query I rowsort
SELECT ALL - 12 AS col2 FROM tab1 cor0
----
-12
-12
-12

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - 35 < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9546
SELECT ALL - col1 + - col1 * 59 * - CAST( NULL AS SIGNED ) - col1 + - col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9546
SELECT ALL - col1 + - col1 * 59 * - CAST ( NULL AS INTEGER ) - col1 + - col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col2 FROM tab2 AS cor0 WHERE + 72 NOT BETWEEN - - col0 * - col1 AND NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL <> + - col0 + + - col2 * + col2
----

query I rowsort
SELECT 43 * + col2 FROM tab0
----
2021
4257
430

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col2, + col0 + - col2 * 40 col0 FROM tab1
----
-59
-2275
-68
-2629
-96
-3789

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( ( NOT ( - col2 = NULL ) ) )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NOT NULL NOT BETWEEN - 78 AND NULL )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL > - ( + ( + col2 ) )
----

query I rowsort
SELECT ALL + 5 + + - col2 FROM tab1 AS cor0
----
-54
-63
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9555
SELECT DISTINCT col2 * + 34 * - - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9555
SELECT DISTINCT col2 * + 34 * - - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT IN ( 85 * + col1 )
----

query I rowsort
SELECT - 38 * + col2 AS col0 FROM tab0 AS cor0
----
-1786
-3762
-380

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN col1 AND + + col0 * - + col0 * - col0 + + col1
----

query II rowsort
SELECT DISTINCT + col1 AS col0, 24 AS col1 FROM tab2 AS cor0
----
51
24
67
24
77
24

query I rowsort
SELECT - col0 + - - col2 AS col0 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT - col2 * - + col0 FROM tab1 AS cor0 WHERE + col0 IS NOT NULL
----
4896
5015
6188

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9562
SELECT CAST( NULL AS DECIMAL ) * + MAX( col0 ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9562
SELECT CAST ( NULL AS REAL ) * + MAX ( col0 ) FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9563
SELECT DISTINCT COUNT( ALL - col1 ) col0 FROM tab2 cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9563
SELECT DISTINCT COUNT ( ALL - col1 ) col0 FROM tab2 cor0
----
3

query II rowsort
SELECT DISTINCT - - col2 AS col0, + 62 + + + 86 AS col1 FROM tab1 AS cor0
----
59
148
68
148
96
148

query I rowsort
SELECT DISTINCT col0 * 41 FROM tab0
----
3567
3977
615

onlyif mysql # aggregate syntax: 
query I rowsort label-9566
SELECT - 10 + - - COUNT( * ) AS col0 FROM tab0
----
-7

skipif mysql # not compatible
query I rowsort label-9566
SELECT - 10 + - - COUNT ( * ) AS col0 FROM tab0
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-9567
SELECT + 3 + + MIN( ALL - ( + col2 ) ) AS col1 FROM tab1
----
-93

skipif mysql # not compatible
query I rowsort label-9567
SELECT + 3 + + MIN ( ALL - ( + col2 ) ) AS col1 FROM tab1
----
-93

query I rowsort
SELECT ALL + col0 + + + col0 * + - 49 FROM tab0
----
-4176
-4656
-720

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9569
SELECT col0 + col0 + + + CAST( + col1 AS SIGNED ) - - - col2 * - 82 FROM tab0
----
1015
3965
8313

skipif mysql # not compatible
query I rowsort label-9569
SELECT col0 + col0 + + + CAST ( + col1 AS INTEGER ) - - - col2 * - 82 FROM tab0
----
1015
3965
8313

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col0 + col1 + + - col0 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9571
SELECT - col1 * + col1 + + col0 DIV + col1 FROM tab1 AS cor0
----
-193
-2208
-8

skipif mysql # not compatible
query I rowsort label-9571
SELECT - col1 * + col1 + + col0 / + col1 FROM tab1 AS cor0
----
-193
-2208
-8

onlyif mysql # aggregate syntax: 
query II rowsort label-9572
SELECT - SUM( col0 ) * + 20 AS col0, - COUNT( * ) AS col2 FROM tab2
----
-3700
-3

skipif mysql # not compatible
query II rowsort label-9572
SELECT - SUM ( col0 ) * + 20 AS col0, - COUNT ( * ) AS col2 FROM tab2
----
-3700
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-9573
SELECT DISTINCT - - col1 * col0 * 7 - col1 DIV 89 col1 FROM tab1 cor0
----
2975
29939
4998

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9573
SELECT DISTINCT - - col1 * col0 * 7 - col1 / 89 col1 FROM tab1 cor0
----
2975
29939
4998

query II rowsort
SELECT DISTINCT + + 51 AS col2, - col2 AS col0 FROM tab0 AS cor0 WHERE col2 IS NULL
----

query I rowsort
SELECT col0 FROM tab0 AS cor0 WHERE NOT ( NULL NOT IN ( + + 8, - col1 + - - col1 * + - col1 ) )
----

query I rowsort
SELECT + col0 FROM tab2 AS cor0 WHERE NOT - col2 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9577
SELECT - - CAST( + - 99 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-99
-99
-99

skipif mysql # not compatible
query I rowsort label-9577
SELECT - - CAST ( + - 99 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-99
-99
-99

query II rowsort
SELECT ALL - col0 AS col1, - col0 AS col2 FROM tab1 AS cor0
----
-51
-51
-85
-85
-91
-91

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 77 NOT BETWEEN NULL AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - - 20 AS col2, + 56 col0 FROM tab2 AS cor0
----
20
56

onlyif mysql # DIV for integer division: 
query I rowsort label-9581
SELECT + col2 DIV - - col1 FROM tab1 AS cor0
----
1
11
6

skipif mysql # not compatible
query I rowsort label-9581
SELECT + col2 / - - col1 FROM tab1 AS cor0
----
1
11
6

onlyif mysql # aggregate syntax: 
query I rowsort label-9582
SELECT ALL + MIN( DISTINCT - + 69 ) col2 FROM tab0
----
-69

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9582
SELECT ALL + MIN ( DISTINCT - + 69 ) col2 FROM tab0
----
-69

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + - col1 <= NULL
----

query I rowsort
SELECT ALL 28 * + col2 AS col1 FROM tab2
----
1120
1624
644

query I rowsort
SELECT col0 AS col0 FROM tab2 WHERE NOT - col2 > - + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9586
SELECT ALL + SUM( DISTINCT - 80 ) FROM tab1
----
-80

skipif mysql # not compatible
query I rowsort label-9586
SELECT ALL + SUM ( DISTINCT - 80 ) FROM tab1
----
-80

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + 94 BETWEEN + + 26 AND col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9588
SELECT ALL + MIN( DISTINCT - - col1 ) AS col1 FROM tab2 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-9588
SELECT ALL + MIN ( DISTINCT - - col1 ) AS col1 FROM tab2 AS cor0
----
51

onlyif mysql # aggregate syntax: 
query II rowsort label-9589
SELECT + - COUNT( * ) * - - ( + + ( 42 ) ), - MIN( DISTINCT 26 ) AS col0 FROM tab1 AS cor0
----
-126
-26

skipif mysql # not compatible
query II rowsort label-9589
SELECT + - COUNT ( * ) * - - ( + + ( 42 ) ), - MIN ( DISTINCT 26 ) AS col0 FROM tab1 AS cor0
----
-126
-26

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9590
SELECT + ( 83 ) + CAST( NULL AS SIGNED ) AS col2, + 56 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
18 values hashing to b0c6ce54c29a97c0bd9c289ec2c438e9

skipif mysql # not compatible
query II rowsort label-9590
SELECT + ( 83 ) + CAST ( NULL AS INTEGER ) AS col2, + 56 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
18 values hashing to b0c6ce54c29a97c0bd9c289ec2c438e9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 77 * + 39 col2 FROM tab1, tab2 AS cor0
----
9 values hashing to d91930d3e593f3fc6c168f79fe639910

query II rowsort
SELECT DISTINCT + 30 AS col0, - 3 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
30
-3

query I rowsort
SELECT ALL - - 15 + - col1 + - 43 FROM tab0 cor0
----
-109
-29
-49

query I rowsort
SELECT - ( - col0 ) + - col2 * - + col1 AS col1 FROM tab2 AS cor0
----
1219
3144
3961

query I rowsort
SELECT ALL - 28 + 70 AS col2 FROM tab2 AS cor0
----
42
42
42

query I rowsort
SELECT + + 21 AS col1 FROM tab0 AS cor0 WHERE col0 IS NOT NULL
----
21
21
21

query I rowsort
SELECT col1 * + col1 + + col0 + + - col0 FROM tab1 AS cor0
----
196
2209
25

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE - 47 IS NULL
----

query I rowsort
SELECT + - 59 + col0 AS col1 FROM tab0 cor0
----
-44
28
38

query II rowsort
SELECT - col0 + col1 - + + col0, - col2 AS col2 FROM tab1 AS cor0
----
-135
-68
-165
-59
-88
-96

onlyif mysql # DIV for integer division: 
query I rowsort label-9601
SELECT ALL 40 DIV - - col2 - - 75 + - - col2 FROM tab0 AS cor0
----
122
174
89

skipif mysql # not compatible
query I rowsort label-9601
SELECT ALL 40 / - - col2 - - 75 + - - col2 FROM tab0 AS cor0
----
122
174
89

query I rowsort
SELECT DISTINCT + 85 * col2 * - 26 * - + 33 FROM tab0
----
3427710
7220070
729300

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9603
SELECT DISTINCT CAST( NULL AS DECIMAL ) * - - 23 AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9603
SELECT DISTINCT CAST ( NULL AS REAL ) * - - 23 AS col0 FROM tab2
----
NULL

query I rowsort
SELECT ALL - 9 * - 10 * - - 37 + - col2 FROM tab2
----
3272
3290
3307

onlyif mysql # DIV for integer division: 
query I rowsort label-9605
SELECT ALL - col2 DIV + - 74 + + + col0 * - col1 + + 49 + - 91 FROM tab0 AS cor0
----
-1257
-138
-1869

skipif mysql # not compatible
query I rowsort label-9605
SELECT ALL - col2 / + - 74 + + + col0 * - col1 + + 49 + - 91 FROM tab0 AS cor0
----
-1257
-138
-1869

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9606
SELECT DISTINCT - MAX( + + 27 ) DIV - + ( - + COUNT( * ) ) FROM tab1 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-9606
SELECT DISTINCT - MAX ( + + 27 ) / - + ( - + COUNT ( * ) ) FROM tab1 AS cor0
----
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-9607
SELECT + + 16 * 77 DIV col1 - + 83 FROM tab0 AS cor0
----
-25
-68
1149

skipif mysql # not compatible
query I rowsort label-9607
SELECT + + 16 * 77 / col1 - + 83 FROM tab0 AS cor0
----
-25
-68
1149

query I rowsort
SELECT DISTINCT 63 + 70 FROM tab2 AS cor0
----
133

query I rowsort
SELECT DISTINCT + ( + col2 ) - + col2 AS col1 FROM tab0 AS cor0
----
0

query I rowsort
SELECT ALL - + col2 + col2 * col1 FROM tab1 cor0
----
1248
236
3128

query I rowsort
SELECT ALL col0 * - 32 AS col2 FROM tab2
----
-1472
-2048
-2400

query I rowsort
SELECT 64 * - - 50 FROM tab1
----
3200
3200
3200

query I rowsort
SELECT 28 AS col1 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to aad32232c428b3ecb5ada63f7e9b0a97

query II rowsort
SELECT col1 * - col0 AS col0, 94 + + col0 * + col1 FROM tab2
----
-2346
2440
-4928
5022
-5025
5119

onlyif mysql # aggregate syntax: 
query I rowsort label-9615
SELECT COUNT( * ) * SUM( ALL col2 ) FROM tab2
----
363

skipif mysql # not compatible
query I rowsort label-9615
SELECT COUNT ( * ) * SUM ( ALL col2 ) FROM tab2
----
363

query I rowsort
SELECT 12 * + 61 * + 38 FROM tab0
----
27816
27816
27816

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT + 81 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-9618
SELECT - - col0 DIV + ( - 94 ) FROM tab0 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-9618
SELECT - - col0 / + ( - 94 ) FROM tab0 AS cor0
----
-1
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9619
SELECT ALL + MAX( + col1 ) AS col2 FROM tab2 AS cor0 WHERE col0 * - col1 * - + col0 IS NOT NULL
----
77

skipif mysql # not compatible
query I rowsort label-9619
SELECT ALL + MAX ( + col1 ) AS col2 FROM tab2 AS cor0 WHERE col0 * - col1 * - + col0 IS NOT NULL
----
77

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL < + col1 * - 68 * col0 * + - col0
----

query I rowsort
SELECT + - col0 * - col2 + - + 70 FROM tab2 AS cor0
----
2490
4280
988

query II rowsort
SELECT DISTINCT col1 + + 26 AS col0, 43 * - col1 * - 73 FROM tab1 AS cor0 WHERE - col0 / 35 IS NOT NULL
----
31
15695
40
43946
73
147533

query I rowsort
SELECT ALL 92 * + 81 AS col0 FROM tab1
----
7452
7452
7452

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 col0 FROM tab0 WHERE NOT + 72 - col2 >= col1
----
-1
-81

onlyif mysql # DIV for integer division: 
query I rowsort label-9625
SELECT ALL + 52 DIV - col1 AS col0 FROM tab2
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-9625
SELECT ALL + 52 / - col1 AS col0 FROM tab2
----
-1
0
0

query II rowsort
SELECT ALL col0, 27 * col1 AS col1 FROM tab2
----
46
1377
64
2079
75
1809

query II rowsort
SELECT - - 71 AS col1, - col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
71
-51
71
-85
71
-91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9628
SELECT DISTINCT COUNT( DISTINCT - col1 ) FROM tab1 WHERE NULL IN ( - col1, CAST( + + CAST( NULL AS SIGNED ) AS DECIMAL ), - - col0 )
----
0

skipif mysql # not compatible
query I rowsort label-9628
SELECT DISTINCT COUNT ( DISTINCT - col1 ) FROM tab1 WHERE NULL IN ( - col1, CAST ( + + CAST ( NULL AS INTEGER ) AS REAL ), - - col0 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9629
SELECT DISTINCT CAST( NULL AS SIGNED ) + - - 98 col1 FROM tab1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9629
SELECT DISTINCT CAST ( NULL AS INTEGER ) + - - 98 col1 FROM tab1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9630
SELECT * FROM tab1 WHERE NOT CAST( - col1 AS SIGNED ) * - col0 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-9630
SELECT * FROM tab1 WHERE NOT CAST ( - col1 AS INTEGER ) * - col0 IS NOT NULL
----

query II rowsort
SELECT DISTINCT + col0, col2 AS col1 FROM tab0 AS cor0
----
15
47
87
10
97
99

onlyif mysql # aggregate syntax: 
query I rowsort label-9632
SELECT DISTINCT + 20 + COUNT( * ) AS col1 FROM tab2 cor0
----
23

skipif mysql # not compatible
query I rowsort label-9632
SELECT DISTINCT + 20 + COUNT ( * ) AS col1 FROM tab2 cor0
----
23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 56 * - + col0 col0 FROM tab0 AS cor0
----
4872
5432
840

onlyif mysql # DIV for integer division: 
query I rowsort label-9634
SELECT DISTINCT col2 + col1 DIV - 60 FROM tab2
----
23
39
57

skipif mysql # not compatible
query I rowsort label-9634
SELECT DISTINCT col2 + col1 / - 60 FROM tab2
----
23
39
57

query I rowsort
SELECT ALL - col0 * + col2 FROM tab2 WHERE ( - col0 ) + 87 * col2 IN ( 40 )
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9636
SELECT CAST( - col1 AS SIGNED ) DIV col0 - + ( ( - col1 ) + - col2 ) * - col1 col2 FROM tab1
----
-1540
-320
-5405

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9636
SELECT CAST ( - col1 AS INTEGER ) / col0 - + ( ( - col1 ) + - col2 ) * - col1 col2 FROM tab1
----
-1540
-320
-5405

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL = 22 + - ( col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( 49 - col2 ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 3 col0 FROM tab2
----
3
3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9640
SELECT COUNT( - 88 ) AS col1 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-9640
SELECT COUNT ( - 88 ) AS col1 FROM tab0
----
3

query I rowsort
SELECT + 20 + 97 FROM tab0 WHERE NOT col0 NOT BETWEEN NULL AND ( + ( + col1 ) )
----

query I rowsort
SELECT DISTINCT ( 50 ) * col0 FROM tab0
----
4350
4850
750

onlyif mysql # aggregate syntax: 
query I rowsort label-9643
SELECT ALL + MAX( DISTINCT col1 ) * + COUNT( * ) AS col1 FROM tab1
----
141

skipif mysql # not compatible
query I rowsort label-9643
SELECT ALL + MAX ( DISTINCT col1 ) * + COUNT ( * ) AS col1 FROM tab1
----
141

query I rowsort
SELECT DISTINCT - 42 * col1 AS col0 FROM tab2
----
-2142
-2814
-3234

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9645
SELECT ALL COUNT( + CAST( col1 AS SIGNED ) ) * COUNT( * ) FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-9645
SELECT ALL COUNT ( + CAST ( col1 AS INTEGER ) ) * COUNT ( * ) FROM tab2
----
9

query I rowsort
SELECT DISTINCT - col1 AS col1 FROM tab1 WHERE + col1 IS NOT NULL
----
-14
-47
-5

query III rowsort
SELECT * FROM tab1 WHERE NOT + 17 - - col1 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9648
SELECT + ( col2 ) DIV - col0 AS col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9648
SELECT + ( col2 ) / - col0 AS col2 FROM tab2
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL NOT BETWEEN ( ( - 56 ) ) AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - col0 BETWEEN ( col0 ) AND - 44 * - 60 + col0
----

query I rowsort
SELECT 8 * + col2 + - ( col2 + - 74 ) AS col0 FROM tab2
----
235
354
480

query I rowsort
SELECT 57 * col2 + + ( + 47 ) FROM tab1
----
3410
3923
5519

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9653
SELECT DISTINCT * FROM tab0 WHERE 95 >= + col1 + - col2 * CAST( ( - col0 ) * + CAST( NULL AS SIGNED ) AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-9653
SELECT DISTINCT * FROM tab0 WHERE 95 >= + col1 + - col2 * CAST ( ( - col0 ) * + CAST ( NULL AS INTEGER ) AS INTEGER )
----

query I rowsort
SELECT ALL - 13 AS col0 FROM tab1 WHERE ( + 69 / 99 ) IS NOT NULL
----
-13
-13
-13

query I rowsort
SELECT ALL 13 * 9 AS col1 FROM tab2
----
117
117
117

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9656
SELECT ALL CAST( col2 AS SIGNED ) FROM tab2 WHERE NOT + CAST( NULL AS SIGNED ) * + col2 BETWEEN + ( - col0 ) / col2 + col2 AND ( - CAST( NULL AS DECIMAL ) / 33 )
----

skipif mysql # not compatible
query I rowsort label-9656
SELECT ALL CAST ( col2 AS INTEGER ) FROM tab2 WHERE NOT + CAST ( NULL AS INTEGER ) * + col2 BETWEEN + ( - col0 ) / col2 + col2 AND ( - CAST ( NULL AS REAL ) / 33 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9657
SELECT - COUNT( * ) DIV MIN( DISTINCT + col2 ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9657
SELECT - COUNT ( * ) / MIN ( DISTINCT + col2 ) FROM tab2 AS cor0
----
0

query I rowsort
SELECT ALL col2 + 7 FROM tab1 AS cor0
----
103
66
75

query III rowsort
SELECT * FROM tab0 cor0 WHERE 59 >= - 87
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - col0 col0 FROM tab1 AS cor0 WHERE col2 + + col2 * - 24 BETWEEN 14 AND 44
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9661
SELECT DISTINCT COUNT( * ) * + SUM( - col0 ) AS col2 FROM tab2 AS cor0
----
-555

skipif mysql # not compatible
query I rowsort label-9661
SELECT DISTINCT COUNT ( * ) * + SUM ( - col0 ) AS col2 FROM tab2 AS cor0
----
-555

query I rowsort
SELECT + col2 * col0 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN ( NULL ) AND + 78
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9663
SELECT ALL SUM( DISTINCT - 12 ) DIV + 65 FROM tab0 AS cor0 CROSS JOIN tab0
----
0

skipif mysql # not compatible
query I rowsort label-9663
SELECT ALL SUM ( DISTINCT - 12 ) / + 65 FROM tab0 AS cor0 CROSS JOIN tab0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * - col0 col0 FROM tab0
----
-1215
-1827
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-9665
SELECT DISTINCT MIN( DISTINCT - col2 ) FROM tab0 AS cor0 WHERE NOT - col0 * col2 > NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9665
SELECT DISTINCT MIN ( DISTINCT - col2 ) FROM tab0 AS cor0 WHERE NOT - col0 * col2 > NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9666
SELECT - + 48 DIV 39 col1 FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9666
SELECT - + 48 / 39 col1 FROM tab0 AS cor0
----
-1
-1
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9667
SELECT DISTINCT + CAST( ( + CAST( NULL AS SIGNED ) ) AS SIGNED ) / SUM( CAST( NULL AS SIGNED ) ) AS col1 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9667
SELECT DISTINCT + CAST ( ( + CAST ( NULL AS INTEGER ) ) AS INTEGER ) / SUM ( CAST ( NULL AS INTEGER ) ) AS col1 FROM tab1 cor0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9668
SELECT ALL + - ( COUNT( DISTINCT CAST( NULL AS SIGNED ) ) ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9668
SELECT ALL + - ( COUNT ( DISTINCT CAST ( NULL AS INTEGER ) ) ) FROM tab1 AS cor0
----
0

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT ( col2 * - 12 ) NOT BETWEEN 0 AND col2 * - ( - 63 )
----

query I rowsort
SELECT - + col0 * + 37 FROM tab1 AS cor0
----
-1887
-3145
-3367

onlyif mysql # aggregate syntax: 
query I rowsort label-9671
SELECT DISTINCT - ( - 36 ) * - COUNT( * ) FROM tab0 AS cor0
----
-108

skipif mysql # not compatible
query I rowsort label-9671
SELECT DISTINCT - ( - 36 ) * - COUNT ( * ) FROM tab0 AS cor0
----
-108

onlyif mysql # aggregate syntax: 
query I rowsort label-9672
SELECT ALL - - 79 * - COUNT( * ) col2 FROM tab2 AS cor0
----
-237

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9672
SELECT ALL - - 79 * - COUNT ( * ) col2 FROM tab2 AS cor0
----
-237

onlyif mysql # aggregate syntax: 
query I rowsort label-9673
SELECT ALL SUM( + - col0 ) col2 FROM tab1
----
-227

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9673
SELECT ALL SUM ( + - col0 ) col2 FROM tab1
----
-227

onlyif mysql # DIV for integer division: 
query I rowsort label-9674
SELECT DISTINCT + 92 DIV - + col0 FROM tab2
----
-1
-2

skipif mysql # not compatible
query I rowsort label-9674
SELECT DISTINCT + 92 / - + col0 FROM tab2
----
-1
-2

query I rowsort
SELECT ALL + ( + ( - 26 ) ) AS col0 FROM tab1
----
-26
-26
-26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9676
SELECT col1 * + CAST( NULL AS SIGNED ) + 0 FROM tab0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-9676
SELECT col1 * + CAST ( NULL AS INTEGER ) + 0 FROM tab0 WHERE NOT NULL IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * + col0 col2 FROM tab2 WHERE NOT - col1 * + 73 IS NULL
----
-2346
-4928
-5025

onlyif mysql # aggregate syntax: 
query I rowsort label-9678
SELECT DISTINCT - + COUNT( DISTINCT + - col0 ) + + COUNT( * ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9678
SELECT DISTINCT - + COUNT ( DISTINCT + - col0 ) + + COUNT ( * ) FROM tab0 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9679
SELECT + + SUM( - col1 ) * - 98 AS col1 FROM tab1 AS cor0
----
6468

skipif mysql # not compatible
query I rowsort label-9679
SELECT + + SUM ( - col1 ) * - 98 AS col1 FROM tab1 AS cor0
----
6468

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE 7 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9681
SELECT - col0 * + ( - col0 ) AS col2 FROM tab2 WHERE + CAST( NULL AS SIGNED ) * + col1 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-9681
SELECT - col0 * + ( - col0 ) AS col2 FROM tab2 WHERE + CAST ( NULL AS INTEGER ) * + col1 IS NOT NULL
----

query I rowsort
SELECT ALL - 28 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to c3e7fa3d059fc708f03c60e9cef0c115

query I rowsort
SELECT - col2 FROM tab1 WHERE ( + col0 + - col1 IS NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9684
SELECT DISTINCT + + CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-9684
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
NULL

query I rowsort
SELECT col0 + - + col2 - col2 * 67 AS col2 FROM tab1 AS cor0
----
-3927
-4533
-6477

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9686
SELECT ALL + - SUM( col2 ) + + CAST( - COUNT( * ) AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-124

skipif mysql # not compatible
query I rowsort label-9686
SELECT ALL + - SUM ( col2 ) + + CAST ( - COUNT ( * ) AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-124

query I rowsort
SELECT - col0 + + + 27 FROM tab1 AS cor0
----
-24
-58
-64

query I rowsort
SELECT DISTINCT col2 AS col0 FROM tab1 AS cor0 WHERE - 90 NOT IN ( 27 )
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-9689
SELECT ALL 72 * - 90 + + - MIN( 11 ) + COUNT( * ) FROM tab1 AS cor0
----
-6488

skipif mysql # not compatible
query I rowsort label-9689
SELECT ALL 72 * - 90 + + - MIN ( 11 ) + COUNT ( * ) FROM tab1 AS cor0
----
-6488

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9690
SELECT ALL CAST( 34 AS SIGNED ) - - + col1 FROM tab0 AS cor0
----
115
35
55

skipif mysql # not compatible
query I rowsort label-9690
SELECT ALL CAST ( 34 AS INTEGER ) - - + col1 FROM tab0 AS cor0
----
115
35
55

query I rowsort
SELECT col2 / + col0 AS col2 FROM tab0 AS cor0 WHERE ( - col1 ) > ( NULL )
----

query I rowsort
SELECT + + 20 + - + col1 FROM tab1 AS cor0
----
-27
15
6

query I rowsort
SELECT ALL - + col0 AS col1 FROM tab2 AS cor0 WHERE NOT + 30 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9694
SELECT ALL COUNT( DISTINCT - 88 ) AS col0 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-9694
SELECT ALL COUNT ( DISTINCT - 88 ) AS col0 FROM tab2 AS cor0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9695
SELECT ALL COUNT( * ) + + CAST( NULL AS SIGNED ) AS col1 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9695
SELECT ALL COUNT ( * ) + + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 cor0
----
NULL

query I rowsort
SELECT DISTINCT - col0 - - 65 AS col1 FROM tab2 AS cor0
----
-10
1
19

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN NULL AND ( + col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9698
SELECT ALL * FROM tab1 WHERE NULL >= ( - + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-9698
SELECT ALL * FROM tab1 WHERE NULL >= ( - + CAST ( NULL AS INTEGER ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9699
SELECT ALL * FROM tab0 WHERE NOT + - col1 + + 98 NOT BETWEEN ( - col0 * 33 + col1 ) AND ( CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-9699
SELECT ALL * FROM tab0 WHERE NOT + - col1 + + 98 NOT BETWEEN ( - col0 * 33 + col1 ) AND ( CAST ( NULL AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9700
SELECT - ( ( MAX( col2 ) ) ) AS col1 FROM tab2
----
-58

skipif mysql # not compatible
query I rowsort label-9700
SELECT - ( ( MAX ( col2 ) ) ) AS col1 FROM tab2
----
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9701
SELECT DISTINCT - ( + col2 ) AS col1 FROM tab2 WHERE NOT + CAST( - - col2 AS SIGNED ) IS NULL
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-9701
SELECT DISTINCT - ( + col2 ) AS col1 FROM tab2 WHERE NOT + CAST ( - - col2 AS INTEGER ) IS NULL
----
-23
-40
-58

query I rowsort
SELECT 60 FROM tab0 WHERE NOT ( NULL ) IS NULL AND NOT NULL IS NOT NULL
----

query I rowsort
SELECT ALL - ( + - 12 ) FROM tab2
----
12
12
12

onlyif mysql # aggregate syntax: 
query I rowsort label-9704
SELECT COUNT( * ) * - 83 - ( + 21 ) FROM tab2
----
-270

skipif mysql # not compatible
query I rowsort label-9704
SELECT COUNT ( * ) * - 83 - ( + 21 ) FROM tab2
----
-270

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 - - - col2 * + - col1 col0 FROM tab0
----
100
231
3888

onlyif mysql # DIV for integer division: 
query I rowsort label-9706
SELECT col1 - + + col2 DIV - ( - + col0 ) AS col2 FROM tab2
----
51
67
77

skipif mysql # not compatible
query I rowsort label-9706
SELECT col1 - + + col2 / - ( - + col0 ) AS col2 FROM tab2
----
51
67
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9707
SELECT - col1 FROM tab2 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) NOT BETWEEN - col2 * ( 11 ) AND col0
----

skipif mysql # not compatible
query I rowsort label-9707
SELECT - col1 FROM tab2 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) NOT BETWEEN - col2 * ( 11 ) AND col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9708
SELECT DISTINCT 4 * 46 * 21 * COUNT( * ) AS col0 FROM tab1 cor0
----
11592

skipif mysql # not compatible
query I rowsort label-9708
SELECT DISTINCT 4 * 46 * 21 * COUNT ( * ) AS col0 FROM tab1 cor0
----
11592

query I rowsort
SELECT ALL - col2 * + 21 FROM tab0 AS cor0
----
-2079
-210
-987

query I rowsort
SELECT ALL ( - ( 83 ) ) FROM tab2
----
-83
-83
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-9711
SELECT DISTINCT COUNT( * ) AS col1 FROM tab1 WHERE NULL BETWEEN - 88 AND ( + col1 )
----
0

skipif mysql # not compatible
query I rowsort label-9711
SELECT DISTINCT COUNT ( * ) AS col1 FROM tab1 WHERE NULL BETWEEN - 88 AND ( + col1 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9712
SELECT COUNT( - ( col1 ) ) * - - 83 FROM tab2 AS cor0
----
249

skipif mysql # not compatible
query I rowsort label-9712
SELECT COUNT ( - ( col1 ) ) * - - 83 FROM tab2 AS cor0
----
249

onlyif mysql # aggregate syntax: 
query I rowsort label-9713
SELECT ALL - MAX( DISTINCT 46 ) FROM tab0 cor0
----
-46

skipif mysql # not compatible
query I rowsort label-9713
SELECT ALL - MAX ( DISTINCT 46 ) FROM tab0 cor0
----
-46

query I rowsort
SELECT + 7 FROM tab2 AS cor0 WHERE NOT NULL >= NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL BETWEEN + 91 AND NULL
----

query II rowsort
SELECT DISTINCT - + col2, col0 * - + col0 AS col0 FROM tab0 AS cor0
----
-10
-7569
-47
-225
-99
-9409

query I rowsort
SELECT DISTINCT ( 89 ) * + 74 * col2 AS col2 FROM tab2 AS cor0
----
151478
263440
381988

query I rowsort
SELECT ALL col0 AS col0 FROM tab1 AS cor0 WHERE NOT + col1 * + - 60 * + + 6 / + ( + 17 ) - + col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9719
SELECT ALL + 88 * COUNT( * ) FROM tab1 cor0
----
264

skipif mysql # not compatible
query I rowsort label-9719
SELECT ALL + 88 * COUNT ( * ) FROM tab1 cor0
----
264

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 AS col0, + col1 col1 FROM tab0
----
15
81
87
21
97
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9721
SELECT DISTINCT - COUNT( ALL + 11 ) AS col0 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-9721
SELECT DISTINCT - COUNT ( ALL + 11 ) AS col0 FROM tab1
----
-3

query I rowsort
SELECT DISTINCT + col2 + 12 + - col0 FROM tab0
----
-65
14
44

onlyif mysql # aggregate syntax: 
query I rowsort label-9723
SELECT DISTINCT MIN( DISTINCT - col2 ) * COUNT( DISTINCT + col2 ) + - 38 FROM tab2
----
-212

skipif mysql # not compatible
query I rowsort label-9723
SELECT DISTINCT MIN ( DISTINCT - col2 ) * COUNT ( DISTINCT + col2 ) + - 38 FROM tab2
----
-212

query III rowsort
SELECT * FROM tab2 WHERE - - 70 = + + col0
----

query II rowsort
SELECT + col2, 5 + col0 * 77 * + col2 AS col0 FROM tab2
----
23
81471
40
197125
58
334955

query II rowsort
SELECT col2, 58 FROM tab1
----
59
58
68
58
96
58

query III rowsort
SELECT * FROM tab1 WHERE NULL NOT BETWEEN - + col2 AND + col2 * - + 73
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9728
SELECT ALL - COUNT( * ) + ( 96 ) FROM tab0 cor0
----
93

skipif mysql # not compatible
query I rowsort label-9728
SELECT ALL - COUNT ( * ) + ( 96 ) FROM tab0 cor0
----
93

query I rowsort
SELECT - - col0 - - col1 FROM tab1 cor0
----
138
65
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9730
SELECT DISTINCT + CAST( NULL AS SIGNED ) + col0 / col0 AS col2 FROM tab1 AS cor0 WHERE ( NOT ( NOT col1 * + CAST( NULL AS SIGNED ) IS NULL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9730
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + col0 / col0 AS col2 FROM tab1 AS cor0 WHERE ( NOT ( NOT col1 * + CAST ( NULL AS INTEGER ) IS NULL ) )
----
NULL

query I rowsort
SELECT DISTINCT - + col1 * + col1 + col1 AS col0 FROM tab1 AS cor0
----
-182
-20
-2162

onlyif mysql # aggregate syntax: 
query I rowsort label-9732
SELECT - - 24 * - MIN( 55 ) + - MIN( ALL + - 87 ) + - ( + + 11 ) * - 1 FROM tab2 AS cor0
----
-1222

skipif mysql # not compatible
query I rowsort label-9732
SELECT - - 24 * - MIN ( 55 ) + - MIN ( ALL + - 87 ) + - ( + + 11 ) * - 1 FROM tab2 AS cor0
----
-1222

query I rowsort
SELECT - 27 + + 88 FROM tab1 cor0
----
61
61
61

query I rowsort
SELECT col2 + + 50 + + 3 - + - 5 + + col0 FROM tab1
----
202
205
217

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL NOT BETWEEN NULL AND + 90 * col0 + - 73
----

query I rowsort
SELECT DISTINCT - 74 * + + col1 AS col0 FROM tab0
----
-1554
-5994
-74

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9737
SELECT DISTINCT * FROM tab2 WHERE NOT - col1 + - CAST( NULL AS SIGNED ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-9737
SELECT DISTINCT * FROM tab2 WHERE NOT - col1 + - CAST ( NULL AS INTEGER ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9738
SELECT ALL + CAST( NULL AS SIGNED ) * + COUNT( * ) col0 FROM tab0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9738
SELECT ALL + CAST ( NULL AS INTEGER ) * + COUNT ( * ) col0 FROM tab0
----
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 44 BETWEEN col1 * col2 * - + col0 AND NULL
----

query I rowsort
SELECT ALL - + ( + 69 ) FROM tab0 AS cor0
----
-69
-69
-69

onlyif mysql # aggregate syntax: 
query II rowsort label-9741
SELECT DISTINCT - - COUNT( * ) AS col2, - 68 FROM tab1 AS cor0
----
3
-68

skipif mysql # not compatible
query II rowsort label-9741
SELECT DISTINCT - - COUNT ( * ) AS col2, - 68 FROM tab1 AS cor0
----
3
-68

onlyif mysql # aggregate syntax: 
query II rowsort label-9742
SELECT ALL SUM( - + col1 ) AS col2, - 92 AS col2 FROM tab2
----
-195
-92

skipif mysql # not compatible
query II rowsort label-9742
SELECT ALL SUM ( - + col1 ) AS col2, - 92 AS col2 FROM tab2
----
-195
-92

query IIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab0 cor1 WHERE NOT NULL <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9744
SELECT ALL COUNT( * ) * - COUNT( - col2 ) FROM tab0
----
-9

skipif mysql # not compatible
query I rowsort label-9744
SELECT ALL COUNT ( * ) * - COUNT ( - col2 ) FROM tab0
----
-9

query I rowsort
SELECT + + col0 AS col1 FROM tab2 WHERE NOT NULL BETWEEN + 22 * + + 11 AND 93 - col1
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col0 IN ( col2 + - + col0 * ( + - col2 ) - + + 75, 45 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-9747
SELECT 89 DIV col1 + + col1 FROM tab2 AS cor0
----
52
68
78

skipif mysql # not compatible
query I rowsort label-9747
SELECT 89 / col1 + + col1 FROM tab2 AS cor0
----
52
68
78

query I rowsort
SELECT DISTINCT ( - col0 ) AS col2 FROM tab0 AS cor0 WHERE NOT ( col2 ) IS NULL
----
-15
-87
-97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9749
SELECT + CAST( NULL AS SIGNED ) * + 36 + COUNT( ALL + - col1 ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9749
SELECT + CAST ( NULL AS INTEGER ) * + 36 + COUNT ( ALL + - col1 ) FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9750
SELECT DISTINCT COUNT( ALL col2 ) AS col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9750
SELECT DISTINCT COUNT ( ALL col2 ) AS col1 FROM tab2 AS cor0
----
3

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - + col1 * - col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9752
SELECT MIN( ALL + col1 ) + - 52 AS col0 FROM tab1
----
-47

skipif mysql # not compatible
query I rowsort label-9752
SELECT MIN ( ALL + col1 ) + - 52 AS col0 FROM tab1
----
-47

query I rowsort
SELECT ALL col2 + - - col0 * 45 FROM tab1
----
2391
3884
4163

onlyif mysql # aggregate syntax: 
query I rowsort label-9754
SELECT ALL - COUNT( * ) * - 86 FROM tab1
----
258

skipif mysql # not compatible
query I rowsort label-9754
SELECT ALL - COUNT ( * ) * - 86 FROM tab1
----
258

query I rowsort
SELECT DISTINCT - 91 * + 73 AS col2 FROM tab0
----
-6643

query I rowsort
SELECT DISTINCT - col1 + + + 25 FROM tab1 AS cor0
----
-22
11
20

query I rowsort
SELECT DISTINCT + 10 * + 8 * + col0 + col2 + - col1 AS col2 FROM tab2 AS cor0 WHERE 63 < + col2 + - - col2
----
5083
5991

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col2 - + col1 col2 FROM tab1 AS cor0
----
-110
-115
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-9759
SELECT ALL + + COUNT( DISTINCT + 24 ) FROM tab1 cor0
----
1

skipif mysql # not compatible
query I rowsort label-9759
SELECT ALL + + COUNT ( DISTINCT + 24 ) FROM tab1 cor0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9760
SELECT * FROM tab2 WHERE NOT + col0 <= + col2 * CAST( NULL AS SIGNED ) * + col0 - + col2
----

skipif mysql # not compatible
query III rowsort label-9760
SELECT * FROM tab2 WHERE NOT + col0 <= + col2 * CAST ( NULL AS INTEGER ) * + col0 - + col2
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + 12 NOT IN ( + col0 / - - col2 * - 25 + - - col1 )
----

query II rowsort
SELECT ( - col1 ) AS col1, col2 FROM tab2
----
-51
23
-67
58
-77
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9763
SELECT CAST( NULL AS SIGNED ) * + 44 FROM tab1 WHERE NOT ( NOT NULL <= 88 )
----

skipif mysql # not compatible
query I rowsort label-9763
SELECT CAST ( NULL AS INTEGER ) * + 44 FROM tab1 WHERE NOT ( NOT NULL <= 88 )
----

query I rowsort
SELECT - col0 * + col1 * + + 46 FROM tab2
----
-107916
-226688
-231150

query I rowsort
SELECT ALL 82 + + + 20 FROM tab1 cor0 WHERE NOT + 86 IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9766
SELECT DISTINCT 7 AS col2 FROM tab0 AS cor0 WHERE NOT CAST( + + 37 AS DECIMAL ) IS NULL
----
7

skipif mysql # not compatible
query I rowsort label-9766
SELECT DISTINCT 7 AS col2 FROM tab0 AS cor0 WHERE NOT CAST ( + + 37 AS REAL ) IS NULL
----
7

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + col1 * - col0 / col2 >= col1 + - ( - col2 )
----

query IIIIII rowsort
SELECT ALL * FROM tab2 cor0 CROSS JOIN tab0 cor1 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9769
SELECT DISTINCT - 8 + - + COUNT( * ) FROM tab1
----
-11

skipif mysql # not compatible
query I rowsort label-9769
SELECT DISTINCT - 8 + - + COUNT ( * ) FROM tab1
----
-11

query I rowsort
SELECT + 95 * - 2 * + ( 38 ) FROM tab0 AS cor0 WHERE NOT ( - col0 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9771
SELECT * FROM tab1 cor0 WHERE NOT ( 35 / - - col1 * - col1 ) IN ( - col1, - CAST( - 40 AS SIGNED ) * - + 36 * + ( - col2 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-9771
SELECT * FROM tab1 cor0 WHERE NOT ( 35 / - - col1 * - col1 ) IN ( - col1, - CAST ( - 40 AS INTEGER ) * - + 36 * + ( - col2 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9772
SELECT ALL CAST( - + col2 AS SIGNED ) FROM tab0 AS cor0
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-9772
SELECT ALL CAST ( - + col2 AS INTEGER ) FROM tab0 AS cor0
----
-10
-47
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-9773
SELECT DISTINCT + MAX( ALL + col2 ) AS col1 FROM tab1 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-9773
SELECT DISTINCT + MAX ( ALL + col2 ) AS col1 FROM tab1 AS cor0
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-9774
SELECT DISTINCT + ( + COUNT( + 72 ) ) AS col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9774
SELECT DISTINCT + ( + COUNT ( + 72 ) ) AS col2 FROM tab0 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 58 col0 FROM tab1 cor0
----
-58
-58
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-9776
SELECT ALL MAX( DISTINCT + col2 ) AS col1 FROM tab2
----
58

skipif mysql # not compatible
query I rowsort label-9776
SELECT ALL MAX ( DISTINCT + col2 ) AS col1 FROM tab2
----
58

query I rowsort
SELECT - col1 + + + col0 AS col2 FROM tab0
----
-66
66
96

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9778
SELECT - 53 + + CAST( NULL AS SIGNED ) AS col2, - col1 FROM tab2
----
NULL
-51
NULL
-67
NULL
-77

skipif mysql # not compatible
query II rowsort label-9778
SELECT - 53 + + CAST ( NULL AS INTEGER ) AS col2, - col1 FROM tab2
----
NULL
-51
NULL
-67
NULL
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-9779
SELECT MIN( DISTINCT - col2 ) + + 79 AS col0 FROM tab0
----
-20

skipif mysql # not compatible
query I rowsort label-9779
SELECT MIN ( DISTINCT - col2 ) + + 79 AS col0 FROM tab0
----
-20

query I rowsort
SELECT col0 * - + col0 * + col2 + + col1 - col1 FROM tab2
----
-163840
-326250
-48668

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9781
SELECT DISTINCT CAST( 43 AS SIGNED ) * + col1 AS col2 FROM tab0
----
3483
43
903

skipif mysql # not compatible
query I rowsort label-9781
SELECT DISTINCT CAST ( 43 AS INTEGER ) * + col1 AS col2 FROM tab0
----
3483
43
903

onlyif mysql # aggregate syntax: 
query II rowsort label-9782
SELECT ALL COUNT( * ) * - 38, + COUNT( * ) AS col2 FROM tab2
----
-114
3

skipif mysql # not compatible
query II rowsort label-9782
SELECT ALL COUNT ( * ) * - 38, + COUNT ( * ) AS col2 FROM tab2
----
-114
3

query I rowsort
SELECT + col1 * - + 67 * + col0 + col1 AS col2 FROM tab2
----
-157131
-330099
-336608

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9784
SELECT ALL * FROM tab2 AS cor0 WHERE NULL NOT IN ( + ( + col2 ), - ( - ( - col0 ) ) * - col0 * + CAST( 12 AS SIGNED ) + - col0 + + 75 + + - 63 + - col1 )
----

skipif mysql # not compatible
query III rowsort label-9784
SELECT ALL * FROM tab2 AS cor0 WHERE NULL NOT IN ( + ( + col2 ), - ( - ( - col0 ) ) * - col0 * + CAST ( 12 AS INTEGER ) + - col0 + + 75 + + - 63 + - col1 )
----

query I rowsort
SELECT ALL + + 30 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to da5de0c411a2c0f445400f1b63ea9f89

onlyif mysql # DIV for integer division: 
query I rowsort label-9786
SELECT DISTINCT - col2 DIV 56 AS col2 FROM tab2
----
-1
0

skipif mysql # not compatible
query I rowsort label-9786
SELECT DISTINCT - col2 / 56 AS col2 FROM tab2
----
-1
0

query I rowsort
SELECT 75 * + col0 FROM tab0
----
1125
6525
7275

query I rowsort
SELECT DISTINCT - - 91 AS col1 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
91

query I rowsort
SELECT + 40 FROM tab0 AS cor0 WHERE NOT - col1 * col2 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9790
SELECT + + SUM( col0 ) AS col2 FROM tab2 AS cor0
----
185

skipif mysql # not compatible
query I rowsort label-9790
SELECT + + SUM ( col0 ) AS col2 FROM tab2 AS cor0
----
185

onlyif mysql # aggregate syntax: 
query I rowsort label-9791
SELECT DISTINCT + 53 * + COUNT( * ) FROM tab1
----
159

skipif mysql # not compatible
query I rowsort label-9791
SELECT DISTINCT + 53 * + COUNT ( * ) FROM tab1
----
159

onlyif mysql # DIV for integer division: 
query I rowsort label-9792
SELECT DISTINCT col1 DIV 41 AS col1 FROM tab0
----
0
1

skipif mysql # not compatible
query I rowsort label-9792
SELECT DISTINCT col1 / 41 AS col1 FROM tab0
----
0
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9793
SELECT DISTINCT ( 14 ) DIV + SUM( DISTINCT - col1 ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-9793
SELECT DISTINCT ( 14 ) / + SUM ( DISTINCT - col1 ) FROM tab0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9794
SELECT ALL * FROM tab2 WHERE NOT - 82 + - 99 * ( + + col0 ) = - CAST( - - 91 AS SIGNED ) + - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-9794
SELECT ALL * FROM tab2 WHERE NOT - 82 + - 99 * ( + + col0 ) = - CAST ( - - 91 AS INTEGER ) + - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9795
SELECT DISTINCT * FROM tab1 WHERE NOT - ( - - 45 ) NOT IN ( + 29 / + 13 * + col0 + - ( + CAST( + col1 AS SIGNED ) ) )
----

skipif mysql # not compatible
query III rowsort label-9795
SELECT DISTINCT * FROM tab1 WHERE NOT - ( - - 45 ) NOT IN ( + 29 / + 13 * + col0 + - ( + CAST ( + col1 AS INTEGER ) ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9796
SELECT ALL 27 * + + MAX( + 29 ) FROM tab1 AS cor0
----
783

skipif mysql # not compatible
query I rowsort label-9796
SELECT ALL 27 * + + MAX ( + 29 ) FROM tab1 AS cor0
----
783

onlyif mysql # DIV for integer division: 
query I rowsort label-9797
SELECT + col2 DIV + 44 FROM tab2 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-9797
SELECT + col2 / + 44 FROM tab2 AS cor0
----
0
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9798
SELECT ALL + COUNT( * ) FROM tab1 cor0 WHERE NOT 89 * - col1 / + 16 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-9798
SELECT ALL + COUNT ( * ) FROM tab1 cor0 WHERE NOT 89 * - col1 / + 16 IS NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9799
SELECT 61 * COUNT( * ) FROM tab2 AS cor0
----
183

skipif mysql # not compatible
query I rowsort label-9799
SELECT 61 * COUNT ( * ) FROM tab2 AS cor0
----
183

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9800
SELECT - CAST( NULL AS SIGNED ) * + ( col2 ) * - 68, + col2 * - + 64 AS col0 FROM tab1 AS cor0
----
NULL
-3776
NULL
-4352
NULL
-6144

skipif mysql # not compatible
query II rowsort label-9800
SELECT - CAST ( NULL AS INTEGER ) * + ( col2 ) * - 68, + col2 * - + 64 AS col0 FROM tab1 AS cor0
----
NULL
-3776
NULL
-4352
NULL
-6144

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - ( - col0 ) <> + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9802
SELECT ALL + 54 + SUM( ALL + col1 ) AS col1 FROM tab2 AS cor0
----
249

skipif mysql # not compatible
query I rowsort label-9802
SELECT ALL + 54 + SUM ( ALL + col1 ) AS col1 FROM tab2 AS cor0
----
249

query I rowsort
SELECT DISTINCT 27 AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
27

onlyif mysql # DIV for integer division: 
query II rowsort label-9804
SELECT - col2 + 19 AS col2, col1 DIV col2 DIV + 51 + - ( 67 ) FROM tab2 AS cor0
----
-21
-67
-39
-67
-4
-67

skipif mysql # not compatible
query II rowsort label-9804
SELECT - col2 + 19 AS col2, col1 / col2 / + 51 + - ( 67 ) FROM tab2 AS cor0
----
-21
-67
-39
-67
-4
-67

query I rowsort
SELECT ALL - - 52 * + ( + ( col2 ) ) + - + col0 + - + 95 AS col2 FROM tab0 AS cor0
----
2334
338
4956

query I rowsort
SELECT - + col2 + + ( - + 76 ) FROM tab0 AS cor0
----
-123
-175
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-9807
SELECT - COUNT( * ) + + 92 FROM tab0 AS cor0
----
89

skipif mysql # not compatible
query I rowsort label-9807
SELECT - COUNT ( * ) + + 92 FROM tab0 AS cor0
----
89

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9808
SELECT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN CAST( NULL AS SIGNED ) AND + - col1
----

skipif mysql # not compatible
query III rowsort label-9808
SELECT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN CAST ( NULL AS INTEGER ) AND + - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9809
SELECT CAST( NULL AS SIGNED ), - col0 AS col1 FROM tab0 WHERE - - col1 IS NULL
----

skipif mysql # not compatible
query II rowsort label-9809
SELECT CAST ( NULL AS INTEGER ), - col0 AS col1 FROM tab0 WHERE - - col1 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL >= ( + col1 )
----

query I rowsort
SELECT ALL 0 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

onlyif mysql # aggregate syntax: 
query I rowsort label-9812
SELECT ALL MIN( ALL + 86 ) AS col1 FROM tab1
----
86

skipif mysql # not compatible
query I rowsort label-9812
SELECT ALL MIN ( ALL + 86 ) AS col1 FROM tab1
----
86

query I rowsort
SELECT DISTINCT 34 + 49 FROM tab2
----
83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 20 AS col0, col1 col0 FROM tab2 AS cor0
----
20
51
20
67
20
77

query I rowsort
SELECT DISTINCT - col1 * - col1 - ( - + col1 ) AS col1 FROM tab1 AS cor0
----
210
2256
30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9816
SELECT + col0 + - CAST( NULL AS SIGNED ) - + - CAST( col2 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9816
SELECT + col0 + - CAST ( NULL AS INTEGER ) - + - CAST ( col2 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - + 3 * - col1 - 79 FROM tab0 cor0
----
-16
-76
164

query I rowsort
SELECT col2 * col1 * col1 * + - col2 FROM tab1
----
-10214416
-1806336
-87025

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT + 37 IS NOT NULL
----

query II rowsort
SELECT + 64 * + col1 AS col0, 19 AS col1 FROM tab0 cor0
----
1344
19
5184
19
64
19

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9821
SELECT * FROM tab2 AS cor0 WHERE NOT ( + CAST( col0 AS SIGNED ) / - col2 ) < - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-9821
SELECT * FROM tab2 AS cor0 WHERE NOT ( + CAST ( col0 AS INTEGER ) / - col2 ) < - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9822
SELECT + + CAST( + col2 AS SIGNED ) * 44 AS col2 FROM tab0 AS cor0
----
2068
4356
440

skipif mysql # not compatible
query I rowsort label-9822
SELECT + + CAST ( + col2 AS INTEGER ) * 44 AS col2 FROM tab0 AS cor0
----
2068
4356
440

query II rowsort
SELECT DISTINCT + + col2 * col1 + - 12 + + col1 AS col0, col1 FROM tab0 AS cor0
----
219
21
3876
81
88
1

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL <> 32 * + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9825
SELECT + 3 / col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT IN ( col1, CAST( - col0 AS SIGNED ), - 17 / + col1, - - 35 + - - col1 )
----

skipif mysql # not compatible
query I rowsort label-9825
SELECT + 3 / col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT IN ( col1, CAST ( - col0 AS INTEGER ), - 17 / + col1, - - 35 + - - col1 )
----

query II rowsort
SELECT DISTINCT 58 AS col0, col1 AS col2 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT 42 FROM tab0 WHERE NOT ( - col1 ) NOT IN ( col0 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9828
SELECT DISTINCT COUNT( * ) DIV + + 23 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-9828
SELECT DISTINCT COUNT ( * ) / + + 23 FROM tab1
----
0

query I rowsort
SELECT + ( + ( + col1 ) ) AS col2 FROM tab0
----
1
21
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9830
SELECT DISTINCT - CAST( - ( 18 ) AS SIGNED ) FROM tab0
----
18

skipif mysql # not compatible
query I rowsort label-9830
SELECT DISTINCT - CAST ( - ( 18 ) AS INTEGER ) FROM tab0
----
18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9831
SELECT col2 * + + CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9831
SELECT col2 * + + CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9832
SELECT ALL - SUM( - ( + - col2 ) ), + 39 AS col2 FROM tab2
----
-121
39

skipif mysql # not compatible
query II rowsort label-9832
SELECT ALL - SUM ( - ( + - col2 ) ), + 39 AS col2 FROM tab2
----
-121
39

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col1 * + col1 col2 FROM tab1 AS cor0
----
196
2209
25

query I rowsort
SELECT col1 + col1 + - - 27 AS col0 FROM tab2 AS cor0
----
129
161
181

query II rowsort
SELECT ALL - col0, - col0 AS col2 FROM tab0
----
-15
-15
-87
-87
-97
-97

query I rowsort
SELECT - col1 + + col1 FROM tab1 WHERE NULL <> + + 61
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9837
SELECT DISTINCT + 2 * COUNT( * ) FROM tab1 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-9837
SELECT DISTINCT + 2 * COUNT ( * ) FROM tab1 AS cor0
----
6

query I rowsort
SELECT ALL col1 * - + col0 + col0 + - - col1 FROM tab1 AS cor0
----
-335
-4139
-649

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9839
SELECT - 43 - - - 15 / + + col2 FROM tab0 AS cor0 WHERE + CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-9839
SELECT - 43 - - - 15 / + + col2 FROM tab0 AS cor0 WHERE + CAST ( NULL AS INTEGER ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + - col2 col2 FROM tab2 AS cor0 WHERE NOT col2 IS NULL
----
17
23
24

onlyif mysql # aggregate syntax: 
query I rowsort label-9841
SELECT + SUM( ALL + - ( - col1 ) ) AS col2 FROM tab1 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-9841
SELECT + SUM ( ALL + - ( - col1 ) ) AS col2 FROM tab1 AS cor0
----
66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 col0, col0 FROM tab1 WHERE + col0 + + - 0 IS NULL
----

query I rowsort
SELECT - col2 + + 2 FROM tab1
----
-57
-66
-94

query I rowsort
SELECT + 8 * - + col2 * - col1 + 42 AS col2 FROM tab1
----
10794
2402
25610

query I rowsort
SELECT ALL col1 + + col0 AS col2 FROM tab2 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT 68 AS col1 FROM tab0 WHERE - col0 / - col2 <= 13 + col1
----
68
68
68

onlyif mysql # aggregate syntax: 
query I rowsort label-9847
SELECT - COUNT( * ) + + 33 col0 FROM tab1
----
30

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9847
SELECT - COUNT ( * ) + + 33 col0 FROM tab1
----
30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9848
SELECT ALL - - COUNT( * ) + + CAST( NULL AS SIGNED ) FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9848
SELECT ALL - - COUNT ( * ) + + CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
NULL

query I rowsort
SELECT ALL + 94 FROM tab1 AS cor0 WHERE 31 >= + col1
----
94
94

query I rowsort
SELECT ALL - + col0 + - + 88 FROM tab1 AS cor0
----
-139
-173
-179

onlyif mysql # aggregate syntax: 
query I rowsort label-9851
SELECT ALL + COUNT( 88 ) col2 FROM tab0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9851
SELECT ALL + COUNT ( 88 ) col2 FROM tab0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 46 col1 FROM tab2 AS cor0
----
46
46
46

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT col1 * + - col2 > + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL ( - 16 ) AS col1 FROM tab0 AS cor0
----
-16
-16
-16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9855
SELECT DISTINCT - 5 / - + SUM( + 5 ) AS col2 FROM tab0 cor0 WHERE NOT 10 + col1 + - - col0 + CAST( NULL AS SIGNED ) - col0 * + - col1 NOT BETWEEN ( 0 ) AND + 51
----
NULL

skipif mysql # not compatible
query I rowsort label-9855
SELECT DISTINCT - 5 / - + SUM ( + 5 ) AS col2 FROM tab0 cor0 WHERE NOT 10 + col1 + - - col0 + CAST ( NULL AS INTEGER ) - col0 * + - col1 NOT BETWEEN ( 0 ) AND + 51
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9856
SELECT DISTINCT MIN( DISTINCT - + 20 ) AS col1 FROM tab2 AS cor0
----
-20

skipif mysql # not compatible
query I rowsort label-9856
SELECT DISTINCT MIN ( DISTINCT - + 20 ) AS col1 FROM tab2 AS cor0
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-9857
SELECT ALL + COUNT( ALL col2 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9857
SELECT ALL + COUNT ( ALL col2 ) FROM tab1 AS cor0
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9858
SELECT + - CAST( + - COUNT( * ) AS SIGNED ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9858
SELECT + - CAST ( + - COUNT ( * ) AS INTEGER ) FROM tab0 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9859
SELECT * FROM tab1 AS cor0 WHERE NOT + CAST( 43 AS SIGNED ) - + + 28 * + col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-9859
SELECT * FROM tab1 AS cor0 WHERE NOT + CAST ( 43 AS INTEGER ) - + + 28 * + col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col0 * + col2 col2 FROM tab2 AS cor0
----
-1058
-2560
-4350

query I rowsort
SELECT ALL col0 FROM tab0 WHERE col0 * - col2 * - + col1 IS NULL
----

query II rowsort
SELECT ALL 43 * - col1, - col0 AS col2 FROM tab2 WHERE NULL IS NULL
----
-2193
-46
-2881
-75
-3311
-64

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL > + col1 + + 60 + 54
----

query I rowsort
SELECT ALL col1 * - - col2 FROM tab0 WHERE NOT col2 IS NULL
----
210
3807
99

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - ( 69 ) + + col2 / - col1 + col2 + + col1 * col1 IN ( 32 * col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + - col1 * - - col0 * - - col0 * + col0 FROM tab1 AS cor0
----
-1857114
-3070625
-35417837

query I rowsort
SELECT - 99 AS col0 FROM tab1 cor0 WHERE NOT ( NULL ) BETWEEN + 89 * + col0 * + + 22 + + 28 AND NULL
----

query I rowsort
SELECT DISTINCT - col2 * col0 * + col1 FROM tab2
----
-197120
-291450
-53958

onlyif mysql # aggregate syntax: 
query I rowsort label-9869
SELECT 40 + + MAX( col2 ) FROM tab0 AS cor0
----
139

skipif mysql # not compatible
query I rowsort label-9869
SELECT 40 + + MAX ( col2 ) FROM tab0 AS cor0
----
139

onlyif mysql # aggregate syntax: 
query I rowsort label-9870
SELECT - COUNT( * ) + 48 * + COUNT( * ) AS col0 FROM tab1 AS cor0
----
141

skipif mysql # not compatible
query I rowsort label-9870
SELECT - COUNT ( * ) + 48 * + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
141

onlyif mysql # aggregate syntax: 
query I rowsort label-9871
SELECT ALL + COUNT( * ) + + + COUNT( * ) AS col2 FROM tab0 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-9871
SELECT ALL + COUNT ( * ) + + + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
6

query I rowsort
SELECT + col1 + - 35 AS col0 FROM tab0 AS cor0
----
-14
-34
46

onlyif mysql # aggregate syntax: 
query I rowsort label-9873
SELECT ( + COUNT( * ) ) + + 20 + - - COUNT( * ) FROM tab1 AS cor0
----
26

skipif mysql # not compatible
query I rowsort label-9873
SELECT ( + COUNT ( * ) ) + + 20 + - - COUNT ( * ) FROM tab1 AS cor0
----
26

onlyif mysql # DIV for integer division: 
query II rowsort label-9874
SELECT DISTINCT + + 35 * col1 - - col2, + col1 DIV - col1 AS col2 FROM tab1 AS cor0
----
1713
-1
234
-1
586
-1

skipif mysql # not compatible
query II rowsort label-9874
SELECT DISTINCT + + 35 * col1 - - col2, + col1 / - col1 AS col2 FROM tab1 AS cor0
----
1713
-1
234
-1
586
-1

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( ( NOT ( col0 ) IS NOT NULL ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9876
SELECT ALL + + ( - ( - COUNT( * ) ) ) AS col2 FROM tab0 AS cor0 WHERE NOT - 8 >= - col1
----
1

skipif mysql # not compatible
query I rowsort label-9876
SELECT ALL + + ( - ( - COUNT ( * ) ) ) AS col2 FROM tab0 AS cor0 WHERE NOT - 8 >= - col1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9877
SELECT + ( - CAST( NULL AS SIGNED ) ) AS col2 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9877
SELECT + ( - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab2 cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 68 col0 FROM tab2 WHERE 94 <= + 24 / + col1 * - 86 / + - col2
----

query II rowsort
SELECT ALL - 96 AS col0, + 52 FROM tab1 WHERE NOT col2 * - 31 BETWEEN ( - col1 ) AND NULL
----
-96
52
-96
52
-96
52

query I rowsort
SELECT DISTINCT ( + col1 ) AS col1 FROM tab1 WHERE NOT - - col1 IS NOT NULL
----

query I rowsort
SELECT ALL col0 * 47 * + + ( + col1 ) FROM tab0
----
4559
57105
85869

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9882
SELECT * FROM tab1 WHERE - col1 > CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-9882
SELECT * FROM tab1 WHERE - col1 > CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT col0 - + 80 + - 39 AS col1 FROM tab1
----
-28
-34
-68

query II rowsort
SELECT - col1 AS col2, + 74 AS col2 FROM tab0 WHERE NULL NOT BETWEEN - + ( + 41 ) AND col1
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9885
SELECT + CAST( NULL AS DECIMAL ) - - col2 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9885
SELECT + CAST ( NULL AS REAL ) - - col2 AS col1 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9886
SELECT + 78 - - COUNT( * ) FROM tab1 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-9886
SELECT + 78 - - COUNT ( * ) FROM tab1 AS cor0
----
81

query I rowsort
SELECT DISTINCT + + col1 - - + col1 FROM tab0 AS cor0
----
162
2
42

query I rowsort
SELECT DISTINCT ( - 41 ) AS col2 FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 )
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-9889
SELECT ALL ( 93 ) * COUNT( * ) FROM tab1
----
279

skipif mysql # not compatible
query I rowsort label-9889
SELECT ALL ( 93 ) * COUNT ( * ) FROM tab1
----
279

onlyif mysql # DIV for integer division: 
query II rowsort label-9890
SELECT - 32, + col0 DIV + col2 col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-32
1
-32
1
-32
2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9890
SELECT - 32, + col0 / + col2 col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-32
1
-32
1
-32
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9891
SELECT DISTINCT col2 * - - col2 + - col1 FROM tab0 AS cor0 WHERE NOT 34 - + col1 BETWEEN + ( + col1 ) AND + CAST( NULL AS SIGNED ) * + + 83 * + col1 * - col2 * + ( 52 ) * - CAST( NULL AS SIGNED )
----
2128
79

skipif mysql # not compatible
query I rowsort label-9891
SELECT DISTINCT col2 * - - col2 + - col1 FROM tab0 AS cor0 WHERE NOT 34 - + col1 BETWEEN + ( + col1 ) AND + CAST ( NULL AS INTEGER ) * + + 83 * + col1 * - col2 * + ( 52 ) * - CAST ( NULL AS INTEGER )
----
2128
79

query I rowsort
SELECT col1 FROM tab1 cor0 WHERE NOT col2 IS NULL
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-9893
SELECT ALL - + ( 96 ) * - MAX( DISTINCT col1 ) FROM tab1 AS cor0
----
4512

skipif mysql # not compatible
query I rowsort label-9893
SELECT ALL - + ( 96 ) * - MAX ( DISTINCT col1 ) FROM tab1 AS cor0
----
4512

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( - ( - + col2 ) ) col2 FROM tab0 cor0
----
-10
-47
-99

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL > + ( + col2 )
----

query I rowsort
SELECT + - col0 FROM tab0 AS cor0 WHERE NOT col0 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + - col0 + + col1 + + col2 * 25 FROM tab1 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT DISTINCT 21 AS col1, + 80 AS col0 FROM tab1
----
21
80

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9899
SELECT * FROM tab0 WHERE NOT + - ( - col1 ) > + - col2 + + + 48 * + col1 * - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-9899
SELECT * FROM tab0 WHERE NOT + - ( - col1 ) > + - col2 + + + 48 * + col1 * - CAST ( NULL AS INTEGER )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9900
SELECT DISTINCT CAST( SUM( DISTINCT + 45 ) AS SIGNED ) FROM tab2
----
45

skipif mysql # not compatible
query I rowsort label-9900
SELECT DISTINCT CAST ( SUM ( DISTINCT + 45 ) AS INTEGER ) FROM tab2
----
45

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 AS col2, 33 col0 FROM tab2
----
46
33
64
33
75
33

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL < ( + - col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9903
SELECT * FROM tab0 cor0 WHERE NOT CAST( + ( + + 4 ) AS SIGNED ) NOT BETWEEN + + col1 AND - col0
----

skipif mysql # not compatible
query III rowsort label-9903
SELECT * FROM tab0 cor0 WHERE NOT CAST ( + ( + + 4 ) AS INTEGER ) NOT BETWEEN + + col1 AND - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9904
SELECT DISTINCT COUNT( ALL col1 ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9904
SELECT DISTINCT COUNT ( ALL col1 ) AS col1 FROM tab1 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9905
SELECT ALL col0 col2 FROM tab1 AS cor0 WHERE col2 + CAST( - - CAST( NULL AS SIGNED ) AS SIGNED ) NOT BETWEEN NULL AND NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9905
SELECT ALL col0 col2 FROM tab1 AS cor0 WHERE col2 + CAST ( - - CAST ( NULL AS INTEGER ) AS INTEGER ) NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT 49 FROM tab0 cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9907
SELECT DISTINCT 11 - ( - col2 ) DIV + col1 - - + col2 AS col2 FROM tab0 AS cor0
----
209
21
58

skipif mysql # not compatible
query I rowsort label-9907
SELECT DISTINCT 11 - ( - col2 ) / + col1 - - + col2 AS col2 FROM tab0 AS cor0
----
209
21
58

query I rowsort
SELECT ALL - + 88 + - col0 FROM tab0 AS cor0
----
-103
-175
-185

query II rowsort
SELECT ALL + col2 * - - 94, ( col1 ) AS col1 FROM tab2 AS cor0
----
2162
51
3760
77
5452
67

query II rowsort
SELECT DISTINCT col1 + + col0 AS col0, + ( + - 94 ) - + - col2 AS col1 FROM tab0 AS cor0
----
108
-84
96
-47
98
5

query I rowsort
SELECT ALL - 14 - col2 FROM tab1
----
-110
-73
-82

query I rowsort
SELECT DISTINCT col2 * - + col2 AS col2 FROM tab2
----
-1600
-3364
-529

query I rowsort
SELECT 73 + + - 28 AS col2 FROM tab2
----
45
45
45

query I rowsort
SELECT DISTINCT + col0 * - col1 * + - 51 AS col0 FROM tab2
----
119646
251328
256275

onlyif mysql # DIV for integer division: 
query I rowsort label-9915
SELECT DISTINCT + col1 DIV + + col2 AS col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-9915
SELECT DISTINCT + col1 / + + col2 AS col0 FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9916
SELECT DISTINCT ( + COUNT( * ) ) * 22 FROM tab2
----
66

skipif mysql # not compatible
query I rowsort label-9916
SELECT DISTINCT ( + COUNT ( * ) ) * 22 FROM tab2
----
66

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( NOT 98 IS NOT NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL IN ( + 7 * col1 / col1 * + col1, - 98 / col1 - - 54, - 63 )
----

query I rowsort
SELECT ( - 70 ) * - - col0 AS col2 FROM tab1
----
-3570
-5950
-6370

query II rowsort
SELECT + 68 AS col2, 81 AS col2 FROM tab0 AS cor0
----
68
81
68
81
68
81

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9921
SELECT ALL - col1 AS col0, CAST( - - col0 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-51
46
-67
75
-77
64

skipif mysql # not compatible
query II rowsort label-9921
SELECT ALL - col1 AS col0, CAST ( - - col0 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-51
46
-67
75
-77
64

query I rowsort
SELECT + 88 AS col1 FROM tab2 cor0
----
88
88
88

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NULL ) <= col0
----

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-9924
SELECT ALL col1 col2, - CAST( ( - col0 ) AS DECIMAL ) col2 FROM tab0 WHERE NOT + col2 - - - 12 NOT IN ( col0 / col0 + 39 + - col1 )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9924
SELECT ALL col1 col2, - CAST ( ( - col0 ) AS REAL ) col2 FROM tab0 WHERE NOT + col2 - - - 12 NOT IN ( col0 / col0 + 39 + - col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN col2 - + col0 AND - + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9926
SELECT DISTINCT MAX( col2 ) AS col1 FROM tab1 cor0
----
96

skipif mysql # not compatible
query I rowsort label-9926
SELECT DISTINCT MAX ( col2 ) AS col1 FROM tab1 cor0
----
96

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9927
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) - 82 + col2 IS NULL
----

skipif mysql # not compatible
query III rowsort label-9927
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) - 82 + col2 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9928
SELECT + 88 DIV - 81 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-9928
SELECT + 88 / - 81 FROM tab2 AS cor0
----
-1
-1
-1

query II rowsort
SELECT DISTINCT col1 AS col0, 19 + col2 AS col0 FROM tab2 AS cor0
----
51
42
67
77
77
59

query I rowsort
SELECT - ( + + col2 ) * - ( - ( col2 ) ) + 96 AS col0 FROM tab0 AS cor0
----
-2113
-4
-9705

query I rowsort
SELECT - col0 + - 88 + - col1 * - col1 + col2 AS col2 FROM tab2 cor0
----
2490
4384
5817

query I rowsort
SELECT + 26 * - col1 + + + col2 FROM tab0
----
-2059
-536
73

onlyif mysql # aggregate syntax: 
query I rowsort label-9933
SELECT ALL COUNT( * ) + - + 69 FROM tab1
----
-66

skipif mysql # not compatible
query I rowsort label-9933
SELECT ALL COUNT ( * ) + - + 69 FROM tab1
----
-66

query III rowsort
SELECT * FROM tab2 WHERE NOT + col1 * - 56 NOT BETWEEN - col0 * - - col2 AND - col1
----
75
67
58

query I rowsort
SELECT DISTINCT + + 52 FROM tab0 cor0
----
52

query I rowsort
SELECT - col2 AS col0 FROM tab2 AS cor0 WHERE + col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9937
SELECT + 28 * + COUNT( * ) + COUNT( * ) FROM tab0 AS cor0
----
87

skipif mysql # not compatible
query I rowsort label-9937
SELECT + 28 * + COUNT ( * ) + COUNT ( * ) FROM tab0 AS cor0
----
87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 13 col0 FROM tab2, tab0 AS cor0
----
13

query I rowsort
SELECT + col1 FROM tab2 WHERE + col1 * - 64 IS NOT NULL
----
51
67
77

onlyif mysql # DIV for integer division: 
query I rowsort label-9940
SELECT - + col0 DIV + - 38 + col2 + - + col0 + - - col1 * - 28 AS col2 FROM tab1 AS cor0
----
-1337
-164
-346

skipif mysql # not compatible
query I rowsort label-9940
SELECT - + col0 / + - 38 + col2 + - + col0 + - - col1 * - 28 AS col2 FROM tab1 AS cor0
----
-1337
-164
-346

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9941
SELECT + CAST( NULL AS SIGNED ) + - - col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9941
SELECT + CAST ( NULL AS INTEGER ) + - - col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - - col0 + - - col0 FROM tab1 cor0 WHERE col1 IS NULL
----

query I rowsort
SELECT + ( + - col2 ) AS col2 FROM tab2 AS cor0
----
-23
-40
-58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 81 col2, + col2 AS col1 FROM tab0 cor0
----
81
10
81
47
81
99

query I rowsort
SELECT ALL col2 - col1 + - 62 AS col2 FROM tab2
----
-71
-90
-99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9946
SELECT DISTINCT - MIN( DISTINCT - 65 ) * ( - - ( - CAST( NULL AS SIGNED ) ) ) - COUNT( * ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9946
SELECT DISTINCT - MIN ( DISTINCT - 65 ) * ( - - ( - CAST ( NULL AS INTEGER ) ) ) - COUNT ( * ) AS col1 FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT + 88 - - col2 + + ( + ( + - 77 ) ) FROM tab2
----
34
51
69

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9948
SELECT ALL - col1 - - ( - + CAST( + col2 AS SIGNED ) ) DIV col2 - + + col1 FROM tab1
----
-11
-29
-95

skipif mysql # not compatible
query I rowsort label-9948
SELECT ALL - col1 - - ( - + CAST ( + col2 AS INTEGER ) ) / col2 - + + col1 FROM tab1
----
-11
-29
-95

query III rowsort
SELECT * FROM tab2 WHERE NOT + - 36 * 95 + col0 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9950
SELECT - ( + - CAST( + SUM( DISTINCT ( + 44 ) ) AS SIGNED ) ) * + 17 FROM tab2
----
748

skipif mysql # not compatible
query I rowsort label-9950
SELECT - ( + - CAST ( + SUM ( DISTINCT ( + 44 ) ) AS INTEGER ) ) * + 17 FROM tab2
----
748

query I rowsort
SELECT col2 * + col1 + ( + - ( - col0 ) ) AS col1 FROM tab2 AS cor0
----
1219
3144
3961

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9952
SELECT DISTINCT CAST( NULL AS SIGNED ) * - COUNT( * ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9952
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - COUNT ( * ) FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9953
SELECT DISTINCT - COUNT( ALL - col2 ) * + + 80 AS col1 FROM tab2
----
-240

skipif mysql # not compatible
query I rowsort label-9953
SELECT DISTINCT - COUNT ( ALL - col2 ) * + + 80 AS col1 FROM tab2
----
-240

onlyif mysql # aggregate syntax: 
query I rowsort label-9954
SELECT + SUM( DISTINCT - + 47 ) FROM tab2
----
-47

skipif mysql # not compatible
query I rowsort label-9954
SELECT + SUM ( DISTINCT - + 47 ) FROM tab2
----
-47

onlyif mysql # DIV for integer division: 
query I rowsort label-9955
SELECT ALL + col2 DIV - - col0 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-9955
SELECT ALL + col2 / - - col0 FROM tab1
----
0
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9956
SELECT DISTINCT + + COUNT( * ) AS col1 FROM tab2 WHERE NOT NULL <> col2
----
0

skipif mysql # not compatible
query I rowsort label-9956
SELECT DISTINCT + + COUNT ( * ) AS col1 FROM tab2 WHERE NOT NULL <> col2
----
0

query I rowsort
SELECT 44 * - col1 FROM tab2
----
-2244
-2948
-3388

onlyif mysql # aggregate syntax: 
query I rowsort label-9958
SELECT - 50 * - COUNT( DISTINCT - - col1 ) AS col0 FROM tab0 AS cor0
----
150

skipif mysql # not compatible
query I rowsort label-9958
SELECT - 50 * - COUNT ( DISTINCT - - col1 ) AS col0 FROM tab0 AS cor0
----
150

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 86 * - 33 * + col1 <= NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9960
SELECT ALL 59 AS col1, COUNT( - col1 ) FROM tab1
----
59
3

skipif mysql # not compatible
query II rowsort label-9960
SELECT ALL 59 AS col1, COUNT ( - col1 ) FROM tab1
----
59
3

query I rowsort
SELECT ALL col0 - col1 * - col0 / ( + col2 ) FROM tab0 WHERE NOT ( - col2 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9962
SELECT 25 * 7 + - + COUNT( * ) AS col0 FROM tab1
----
172

skipif mysql # not compatible
query I rowsort label-9962
SELECT 25 * 7 + - + COUNT ( * ) AS col0 FROM tab1
----
172

query II rowsort
SELECT DISTINCT - 64 AS col2, + col1 FROM tab2
----
-64
51
-64
67
-64
77

onlyif mysql # DIV for integer division: 
query I rowsort label-9964
SELECT DISTINCT + col0 DIV + 21 + - 45 * 69 * + col1 FROM tab1
----
-145931
-15521
-43468

skipif mysql # not compatible
query I rowsort label-9964
SELECT DISTINCT + col0 / + 21 + - 45 * 69 * + col1 FROM tab1
----
-145931
-15521
-43468

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9965
SELECT ALL - MAX( ALL - col1 ) + + CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9965
SELECT ALL - MAX ( ALL - col1 ) + + CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT + 30 IS NULL
----
54 values hashing to eaa394f1627c8d5e53406d9ca3b09469

query I rowsort
SELECT - - 15 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to d1d280d38bf9c2d5d5ec90dd43aeaffd

onlyif mysql # DIV for integer division: 
query I rowsort label-9968
SELECT + col1 DIV 75 * + col2 - - 16 + col2 FROM tab2
----
39
74
96

skipif mysql # not compatible
query I rowsort label-9968
SELECT + col1 / 75 * + col2 - - 16 + col2 FROM tab2
----
39
74
96

onlyif mysql # DIV for integer division: 
query I rowsort label-9969
SELECT ALL 48 - - - col1 DIV + col0 AS col2 FROM tab2 AS cor0
----
47
47
48

skipif mysql # not compatible
query I rowsort label-9969
SELECT ALL 48 - - - col1 / + col0 AS col2 FROM tab2 AS cor0
----
47
47
48

onlyif mysql # aggregate syntax: 
query II rowsort label-9970
SELECT DISTINCT + + 90 + + + 19 AS col2, COUNT( * ) AS col1 FROM tab2 AS cor0
----
109
3

skipif mysql # not compatible
query II rowsort label-9970
SELECT DISTINCT + + 90 + + + 19 AS col2, COUNT ( * ) AS col1 FROM tab2 AS cor0
----
109
3

query I rowsort
SELECT + col1 AS col1 FROM tab0 AS cor0 WHERE NOT - col1 IS NULL
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-9972
SELECT ALL + MIN( DISTINCT - 11 ) FROM tab2
----
-11

skipif mysql # not compatible
query I rowsort label-9972
SELECT ALL + MIN ( DISTINCT - 11 ) FROM tab2
----
-11

query II rowsort
SELECT 11 AS col2, + col1 FROM tab0
----
11
1
11
21
11
81

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col1 BETWEEN NULL AND + - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 60 * - col2 FROM tab0
----
-2820
-5940
-600

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( NULL ) NOT IN ( + col2 * col0 / col0, col2 / - col0, 48 )
----

query I rowsort
SELECT - 26 * - 70 FROM tab0
----
1820
1820
1820

query I rowsort
SELECT ALL - col2 * + + 30 AS col0 FROM tab0 AS cor0
----
-1410
-2970
-300

query I rowsort
SELECT - 8 FROM tab2, tab1 AS cor0
----
9 values hashing to 47f43f23dcd23959d97d8e3b0aab692e

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) > - col2
----

query I rowsort
SELECT - col1 + - + col2 + col1 FROM tab2 AS cor0
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-9982
SELECT DISTINCT + + MAX( DISTINCT + + col2 ) FROM tab2 AS cor0 WHERE NOT 79 + col0 + col1 / - 62 * + - col0 / - + col2 IS NULL
----
58

skipif mysql # not compatible
query I rowsort label-9982
SELECT DISTINCT + + MAX ( DISTINCT + + col2 ) FROM tab2 AS cor0 WHERE NOT 79 + col0 + col1 / - 62 * + - col0 / - + col2 IS NULL
----
58

query I rowsort
SELECT ALL + + col1 * 27 * - 23 AS col2 FROM tab1 cor0
----
-29187
-3105
-8694

onlyif mysql # aggregate syntax: 
query I rowsort label-9984
SELECT + - MIN( ALL - col2 ) + + - COUNT( * ) AS col2 FROM tab0 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-9984
SELECT + - MIN ( ALL - col2 ) + + - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
96

query I rowsort
SELECT ALL + 6 + + 83 FROM tab2 AS cor0
----
89
89
89

query I rowsort
SELECT + 27 + 0 AS col1 FROM tab2 AS cor0
----
27
27
27

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col1 * col2 > col0 * col1
----
87
21
10

onlyif mysql # aggregate syntax: 
query I rowsort label-9988
SELECT + MIN( 23 ) FROM tab0
----
23

skipif mysql # not compatible
query I rowsort label-9988
SELECT + MIN ( 23 ) FROM tab0
----
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9989
SELECT ALL - CAST( col0 AS SIGNED ) + col0 AS col1 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9989
SELECT ALL - CAST ( col0 AS INTEGER ) + col0 AS col1 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # DIV for integer division: 
query II rowsort label-9990
SELECT col0 AS col2, + col1 * col0 DIV - col1 FROM tab1 cor0
----
51
-51
85
-85
91
-91

skipif mysql # not compatible
query II rowsort label-9990
SELECT col0 AS col2, + col1 * col0 / - col1 FROM tab1 cor0
----
51
-51
85
-85
91
-91

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9991
SELECT - ( + + 33 ) DIV + 25 + + + COUNT( * ) + - 3, - COUNT( * ) AS col1 FROM tab2 AS cor0
----
-1
-3

skipif mysql # not compatible
query II rowsort label-9991
SELECT - ( + + 33 ) / + 25 + + + COUNT ( * ) + - 3, - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-1
-3

query I rowsort
SELECT DISTINCT - + ( + col2 ) * - col1 AS col0 FROM tab1 AS cor0 WHERE ( NULL <> NULL )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9993
SELECT + 16 col0, - COUNT( * ) FROM tab2
----
16
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9993
SELECT + 16 col0, - COUNT ( * ) FROM tab2
----
16
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-9994
SELECT ALL 98 DIV + - col2 + + col1 FROM tab2 AS cor0
----
47
66
75

skipif mysql # not compatible
query I rowsort label-9994
SELECT ALL 98 / + - col2 + + col1 FROM tab2 AS cor0
----
47
66
75

query II rowsort
SELECT + + 8, col1 FROM tab0 AS cor0
----
8
1
8
21
8
81

onlyif mysql # aggregate syntax: 
query I rowsort label-9996
SELECT DISTINCT + - MAX( DISTINCT 49 ) AS col1 FROM tab2 AS cor0 WHERE NULL = ( col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9996
SELECT DISTINCT + - MAX ( DISTINCT 49 ) AS col1 FROM tab2 AS cor0 WHERE NULL = ( col1 )
----
NULL

query I rowsort
SELECT ALL ( 1 ) * - + col0 * 56 AS col2 FROM tab2 AS cor0
----
-2576
-3584
-4200

query II rowsort
SELECT ALL col0 AS col0, col1 FROM tab1 AS cor0
----
51
14
85
5
91
47

query III rowsort
SELECT * FROM tab0 WHERE NOT col2 > + 90
----
15
81
47
87
21
10

