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 # aggregate syntax: DIV for integer division: 
query II rowsort label-0
SELECT ALL - COUNT( * ) * + COUNT( * ), - 62 DIV 56 AS col0 FROM tab1
----
-9
-1

skipif mysql # not compatible
query II rowsort label-0
SELECT ALL - COUNT ( * ) * + COUNT ( * ), - 62 / 56 AS col0 FROM tab1
----
-9
-1

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) >= + + col1 * 37 / col0
----

query III rowsort
SELECT * FROM tab1 WHERE - 15 * + 78 > NULL
----

query I rowsort
SELECT ALL - col0 - - + 45 FROM tab2
----
-1
-19
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-5
SELECT DISTINCT + ( + COUNT( * ) ) * + 94 AS col0 FROM tab1
----
282

skipif mysql # not compatible
query I rowsort label-5
SELECT DISTINCT + ( + COUNT ( * ) ) * + 94 AS col0 FROM tab1
----
282

query I rowsort
SELECT DISTINCT col0 * - - col1 FROM tab0
----
1215
1827
97

onlyif mysql # DIV for integer division: 
query I rowsort label-7
SELECT ALL + 45 DIV - + col1 FROM tab0
----
-2
-45
0

skipif mysql # not compatible
query I rowsort label-7
SELECT ALL + 45 / - + col1 FROM tab0
----
-2
-45
0

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col1 col1, col2 col1 FROM tab1 AS cor0
----
-14
96
-47
68
-5
59

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

onlyif mysql # aggregate syntax: 
query I rowsort label-11
SELECT - + COUNT( * ) * + - 8 AS col2 FROM tab1 cor0
----
24

skipif mysql # not compatible
query I rowsort label-11
SELECT - + COUNT ( * ) * + - 8 AS col2 FROM tab1 cor0
----
24

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

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

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

query I rowsort
SELECT - + col2 * + + 29 * col2 FROM tab1 AS cor0
----
-100949
-134096
-267264

query I rowsort
SELECT ALL + col2 * - ( - 16 ) AS col1 FROM tab1 AS cor0
----
1088
1536
944

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-17
SELECT * FROM tab2 WHERE NOT 20 BETWEEN - CAST( + col0 AS SIGNED ) / 4 AND + + col1
----

skipif mysql # not compatible
query III rowsort label-17
SELECT * FROM tab2 WHERE NOT 20 BETWEEN - CAST ( + col0 AS INTEGER ) / 4 AND + + col1
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-19
SELECT DISTINCT - 18 DIV + 50 AS col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-19
SELECT DISTINCT - 18 / + 50 AS col1 FROM tab0
----
0

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

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

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

query I rowsort
SELECT - col2 AS col0 FROM tab2 WHERE NOT col1 / + col0 * + - 68 + - 35 - col0 IS NOT NULL
----

query I rowsort
SELECT DISTINCT 2 * + col0 AS col2 FROM tab2
----
128
150
92

query II rowsort
SELECT DISTINCT + 42 AS col1, + col0 FROM tab1
----
42
51
42
85
42
91

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

query II rowsort
SELECT - 48, + col2 + 58 AS col0 FROM tab2 AS cor0
----
-48
116
-48
81
-48
98

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-31
SELECT DISTINCT + 52 * + - AVG ( DISTINCT + CAST ( NULL AS INTEGER ) ) + AVG ( - col1 ) FROM tab0
----
NULL

query II rowsort
SELECT ALL ( - col1 ) AS col1, col2 * - 29 + - col0 AS col0 FROM tab1 AS cor0
----
-14
-2835
-47
-2063
-5
-1796

query I rowsort
SELECT + + col1 * + - col2 + 88 FROM tab0 AS cor0
----
-11
-122
-3719

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

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

query I rowsort
SELECT DISTINCT - + col0 * + + col0 - - + col2 + col0 FROM tab2 AS cor0
----
-2047
-3992
-5492

onlyif mysql # DIV for integer division: 
query II rowsort label-36
SELECT col0 DIV + col0 + + col1 AS col2, col2 AS col2 FROM tab0 AS cor0
----
2
99
22
10
82
47

skipif mysql # not compatible
query II rowsort label-36
SELECT col0 / + col0 + + col1 AS col2, col2 AS col2 FROM tab0 AS cor0
----
2
99
22
10
82
47

query II rowsort
SELECT + + ( - 80 ) + + 96 AS col0, 92 AS col0 FROM tab1 AS cor0
----
16
92
16
92
16
92

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-38
SELECT DISTINCT + 84 DIV - ( + 87 ) + - 76 + + - COUNT( * ) col0 FROM tab2 AS cor0
----
-79

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-38
SELECT DISTINCT + 84 / - ( + 87 ) + - 76 + + - COUNT ( * ) col0 FROM tab2 AS cor0
----
-79

query I rowsort
SELECT ALL col0 * col0 + + 91 FROM tab1 AS cor0 WHERE col1 * + 84 > + ( 39 ) * col0 + + 71 / + - 27
----
8372

query II rowsort
SELECT + 12 + - col1 * + - col2 AS col2, col1 + col2 + ( - col0 ) * - - col0 FROM tab0 cor0
----
111
-9309
222
-7538
3819
-97

query II rowsort
SELECT DISTINCT ( - ( - - col1 ) ) AS col0, - col2 AS col2 FROM tab0 AS cor0
----
-1
-99
-21
-10
-81
-47

query II rowsort
SELECT DISTINCT + 42 AS col0, + 6 AS col2 FROM tab1 cor0 WHERE 51 + + - 50 + ( + 27 ) * - + ( + + 3 ) IS NOT NULL
----
42
6

query III rowsort
SELECT * FROM tab2 WHERE + 86 * 85 <= NULL
----

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

query I rowsort
SELECT 8 * + col2 AS col1 FROM tab2
----
184
320
464

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

onlyif mysql # aggregate syntax: 
query I rowsort label-47
SELECT + 13 * COUNT( * ) - - COUNT( * ) * - 9 AS col1 FROM tab1
----
12

skipif mysql # not compatible
query I rowsort label-47
SELECT + 13 * COUNT ( * ) - - COUNT ( * ) * - 9 AS col1 FROM tab1
----
12

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-48
SELECT col2 FROM tab1 AS cor0 WHERE ( - CAST( - 17 AS SIGNED ) - - + CAST( NULL AS DECIMAL ) ) NOT BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query I rowsort label-48
SELECT col2 FROM tab1 AS cor0 WHERE ( - CAST ( - 17 AS INTEGER ) - - + CAST ( NULL AS REAL ) ) NOT BETWEEN NULL AND NULL
----

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-51
SELECT DISTINCT - col1 * CAST( + ( col1 ) * col2 AS SIGNED ) + col0 AS col1 FROM tab0
----
-2
-308352
-4323

skipif mysql # not compatible
query I rowsort label-51
SELECT DISTINCT - col1 * CAST ( + ( col1 ) * col2 AS INTEGER ) + col0 AS col1 FROM tab0
----
-2
-308352
-4323

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-54
SELECT ALL - CAST( MIN( - col0 ) AS SIGNED ) + - 43 FROM tab2 WHERE NOT - col0 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-54
SELECT ALL - CAST ( MIN ( - col0 ) AS INTEGER ) + - 43 FROM tab2 WHERE NOT - col0 IS NOT NULL
----
NULL

query I rowsort
SELECT + col1 AS col2 FROM tab1 WHERE col1 IS NOT NULL
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-56
SELECT - MAX( ALL + col1 ) / 17 FROM tab2 WHERE NULL IN ( - col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-56
SELECT - MAX ( ALL + col1 ) / 17 FROM tab2 WHERE NULL IN ( - col2 )
----
NULL

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

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

query I rowsort
SELECT - col2 AS col2 FROM tab2 WHERE NOT ( NULL ) NOT IN ( 85 )
----

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

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

query I rowsort
SELECT ALL - 48 / 45 - col1 FROM tab1 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT ALL ( - ( 75 ) ) AS col0 FROM tab0
----
-75
-75
-75

query I rowsort
SELECT + 51 AS col2 FROM tab0 WHERE NULL IS NULL
----
51
51
51

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

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

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

query III rowsort
SELECT * FROM tab1 WHERE NOT 80 <> - col1
----

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-70
SELECT ( COUNT( * ) ) col2 FROM tab0
----
3

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-72
SELECT ALL ( - COUNT( * ) ) + - 87 FROM tab2 AS cor0
----
-90

skipif mysql # not compatible
query I rowsort label-72
SELECT ALL ( - COUNT ( * ) ) + - 87 FROM tab2 AS cor0
----
-90

onlyif mysql # DIV for integer division: 
query I rowsort label-73
SELECT - 19 DIV - ( - col0 * 84 ) AS col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-73
SELECT - 19 / - ( - col0 * 84 ) AS col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT 31 * + col0 AS col2 FROM tab2 AS cor0 WHERE ( NULL ) NOT IN ( 98 )
----

query I rowsort
SELECT DISTINCT 46 * 12 + - col2 AS col1 FROM tab1 AS cor0
----
456
484
493

query I rowsort
SELECT DISTINCT - 30 / col2 AS col0 FROM tab1 AS cor0 WHERE ( NULL ) IN ( - col0 )
----

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

query I rowsort
SELECT ALL - - 50 + col1 * + col1 FROM tab0 AS cor0
----
491
51
6611

query I rowsort
SELECT DISTINCT 99 - col2 AS col2 FROM tab2 AS cor0 WHERE ( - col0 ) BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT ALL + - col1 + - 16 AS col1 FROM tab0 cor0
----
-17
-37
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + + ( col2 + col1 * + col1 ) * col0 col0 FROM tab2 AS cor0
----
120653
340958
381939

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-84
SELECT DISTINCT - COUNT( * ) - 3 FROM tab0
----
-6

skipif mysql # not compatible
query I rowsort label-84
SELECT DISTINCT - COUNT ( * ) - 3 FROM tab0
----
-6

query I rowsort
SELECT + col2 * 72 + + col1 AS col2 FROM tab2
----
1707
2957
4243

query I rowsort
SELECT col1 FROM tab2 WHERE - 16 IS NOT NULL
----
51
67
77

onlyif mysql # DIV for integer division: 
query I rowsort label-87
SELECT + col1 DIV + - 29 + - col2 AS col0 FROM tab1
----
-59
-69
-96

skipif mysql # not compatible
query I rowsort label-87
SELECT + col1 / + - 29 + - col2 AS col0 FROM tab1
----
-59
-69
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-88
SELECT SUM( DISTINCT + col0 ) * 2 FROM tab1
----
454

skipif mysql # not compatible
query I rowsort label-88
SELECT SUM ( DISTINCT + col0 ) * 2 FROM tab1
----
454

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-91
SELECT DISTINCT SUM( + 2 ) FROM tab1 AS cor0 WHERE NOT ( NULL ) = ( + 67 )
----
NULL

skipif mysql # not compatible
query I rowsort label-91
SELECT DISTINCT SUM ( + 2 ) FROM tab1 AS cor0 WHERE NOT ( NULL ) = ( + 67 )
----
NULL

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

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

query I rowsort
SELECT ALL + - 66 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to a408108d423d7784b7d610cb779e515a

onlyif mysql # DIV for integer division: 
query I rowsort label-94
SELECT ALL + 91 * 84 DIV - + col2 + - 11 * 12 AS col1 FROM tab0 AS cor0
----
-209
-294
-896

skipif mysql # not compatible
query I rowsort label-94
SELECT ALL + 91 * 84 / - + col2 + - 11 * 12 AS col1 FROM tab0 AS cor0
----
-209
-294
-896

query I rowsort
SELECT 52 + + 7 AS col2 FROM tab2 AS cor0 WHERE NOT + col1 NOT BETWEEN ( col0 ) AND NULL
----

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-98
SELECT + 99 * COUNT( * ) AS col1 FROM tab0 cor0 WHERE NOT NULL < ( - 34 )
----
0

skipif mysql # not compatible
query I rowsort label-98
SELECT + 99 * COUNT ( * ) AS col1 FROM tab0 cor0 WHERE NOT NULL < ( - 34 )
----
0

query I rowsort
SELECT ALL col1 * + 23 FROM tab0 AS cor0
----
1863
23
483

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-100
SELECT COUNT( * ) * MAX( col1 ) FROM tab0 AS cor0 WHERE NOT CAST( - col1 AS SIGNED ) NOT IN ( col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-100
SELECT COUNT ( * ) * MAX ( col1 ) FROM tab0 AS cor0 WHERE NOT CAST ( - col1 AS INTEGER ) NOT IN ( col2 )
----
NULL

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

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

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

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

query I rowsort
SELECT ALL - 33 + - col0 FROM tab1 AS cor0 WHERE NOT NULL = NULL OR - col2 * - 98 IN ( col2 )
----

query I rowsort
SELECT 61 * - col0 FROM tab0 cor0
----
-5307
-5917
-915

onlyif mysql # aggregate syntax: 
query I rowsort label-105
SELECT + - MAX( ALL + col0 ) * + COUNT( * ) * MIN( DISTINCT col1 ) AS col1 FROM tab0 AS cor0
----
-291

skipif mysql # not compatible
query I rowsort label-105
SELECT + - MAX ( ALL + col0 ) * + COUNT ( * ) * MIN ( DISTINCT col1 ) AS col1 FROM tab0 AS cor0
----
-291

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 51 * + 92 * - 98 - - col2 NOT IN ( - 58 )
----

query I rowsort
SELECT 99 AS col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
99
99
99

query I rowsort
SELECT 47 * col1 + - 89 + - col1 * 21 FROM tab0
----
-63
2017
457

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

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

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

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

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

query I rowsort
SELECT 97 FROM tab0 WHERE NOT NULL < 3
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col2 * - + 90 + col2 - col1 BETWEEN col0 AND col2 / col0 + col2
----

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

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL <= - 56 * col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-117
SELECT ALL + col0 AS col2 FROM tab2 WHERE ( NULL ) > + CAST( NULL AS SIGNED ) * - 8 + 12
----

skipif mysql # not compatible
query I rowsort label-117
SELECT ALL + col0 AS col2 FROM tab2 WHERE ( NULL ) > + CAST ( NULL AS INTEGER ) * - 8 + 12
----

query I rowsort
SELECT ALL col1 * - col1 + - - col2 * + col2 * + 67 FROM tab2
----
101271
220899
32842

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-119
SELECT ALL * FROM tab1 WHERE + col2 <> - - 38 * - CAST( ( col0 ) AS SIGNED )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-119
SELECT ALL * FROM tab1 WHERE + col2 <> - - 38 * - CAST ( ( col0 ) AS INTEGER )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-120
SELECT DISTINCT + + col0 / - col2 col0 FROM tab1 AS cor0
----
-1
0

query I rowsort
SELECT 14 AS col1 FROM tab2 cor0 WHERE ( - col2 ) IN ( ( + 49 ) )
----

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-124
SELECT MAX( ALL col2 ) AS col0, SUM( + 85 ) AS col1 FROM tab1 AS cor0
----
96
255

skipif mysql # not compatible
query II rowsort label-124
SELECT MAX ( ALL col2 ) AS col0, SUM ( + 85 ) AS col1 FROM tab1 AS cor0
----
96
255

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

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NULL = col1
----

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

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

query I rowsort
SELECT DISTINCT - ( col2 ) * - col0 AS col2 FROM tab2 WHERE NOT NULL NOT BETWEEN + 99 AND ( + 69 / + + col0 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-129
SELECT - - 78 DIV - COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
-8

skipif mysql # not compatible
query I rowsort label-129
SELECT - - 78 / - COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
-8

query I rowsort
SELECT + 43 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 199105619049271147956de52e7f5ed4

onlyif mysql # aggregate syntax: 
query I rowsort label-131
SELECT DISTINCT + ( + + COUNT( * ) ) + - COUNT( col0 ) + - COUNT( ( 94 ) ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-131
SELECT DISTINCT + ( + + COUNT ( * ) ) + - COUNT ( col0 ) + - COUNT ( ( 94 ) ) FROM tab0
----
-3

query I rowsort
SELECT DISTINCT + 17 * + - col0 AS col1 FROM tab1
----
-1445
-1547
-867

onlyif mysql # aggregate syntax: 
query I rowsort label-133
SELECT + SUM( ALL + 10 ) + COUNT( * ) AS col0 FROM tab0 AS cor0
----
33

skipif mysql # not compatible
query I rowsort label-133
SELECT + SUM ( ALL + 10 ) + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
33

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

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 73 BETWEEN col1 / - ( - 33 ) AND + col2
----
97
1
99

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-137
SELECT ALL + 29 DIV - + COUNT( ALL - col1 ) FROM tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-137
SELECT ALL + 29 / - + COUNT ( ALL - col1 ) FROM tab2 AS cor0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-138
SELECT ALL 77 * MIN( 46 ) + - SUM( + - 57 ) FROM tab1 AS cor0
----
3713

skipif mysql # not compatible
query I rowsort label-138
SELECT ALL 77 * MIN ( 46 ) + - SUM ( + - 57 ) FROM tab1 AS cor0
----
3713

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 col2, 27 + + col1 AS col0 FROM tab0
----
1
28
21
48
81
108

onlyif mysql # aggregate syntax: 
query I rowsort label-143
SELECT DISTINCT MIN( DISTINCT + + 92 ) FROM tab1
----
92

skipif mysql # not compatible
query I rowsort label-143
SELECT DISTINCT MIN ( DISTINCT + + 92 ) FROM tab1
----
92

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

query I rowsort
SELECT DISTINCT - col0 * + - 77 - - col0 AS col2 FROM tab0 WHERE + col1 IS NOT NULL
----
1170
6786
7566

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NOT NULL NOT BETWEEN ( + 36 * 67 ) AND + 29 )
----

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + ( col0 ) + + 70 col0 FROM tab0 cor0
----
157
167
85

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

query II rowsort
SELECT - 93 AS col0, col1 FROM tab0
----
-93
1
-93
21
-93
81

onlyif mysql # aggregate syntax: 
query I rowsort label-151
SELECT ALL - 73 * MAX( + 24 ) col1 FROM tab2
----
-1752

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-151
SELECT ALL - 73 * MAX ( + 24 ) col1 FROM tab2
----
-1752

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + col1 col0 FROM tab1
----
10
28
94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 80 * + - 83 col2 FROM tab1
----
6640

query I rowsort
SELECT col0 * + col0 FROM tab0 WHERE ( + ( col2 ) * - col2 * col2 + col0 ) IS NOT NULL
----
225
7569
9409

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

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

query II rowsort
SELECT - col1 + + col0 * + - col1, + col1 AS col2 FROM tab1 AS cor0
----
-430
5
-4324
47
-728
14

query I rowsort
SELECT ALL 14 AS col0 FROM tab0 AS cor0 WHERE ( - col0 ) NOT IN ( 36 )
----
14
14
14

query I rowsort
SELECT + col2 FROM tab1 AS cor0 WHERE + 82 * + 35 >= col2
----
59
68
96

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

query I rowsort
SELECT + 45 * + + col2 AS col0 FROM tab2
----
1035
1800
2610

onlyif mysql # aggregate syntax: 
query I rowsort label-161
SELECT ALL + 6 * - COUNT( * ) FROM tab2
----
-18

skipif mysql # not compatible
query I rowsort label-161
SELECT ALL + 6 * - COUNT ( * ) FROM tab2
----
-18

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

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

query II rowsort
SELECT col1 - col0 AS col1, col0 FROM tab1
----
-37
51
-44
91
-80
85

query I rowsort
SELECT + col1 * + 64 FROM tab1 AS cor0 WHERE - 72 IS NOT NULL
----
3008
320
896

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

skipif mysql # not compatible
query I rowsort label-165
SELECT ALL + + COUNT ( * ) FROM tab0 AS cor0 WHERE NOT NULL BETWEEN + col0 AND + col1 * + 98
----
0

query I rowsort
SELECT ALL - + 0 + ( - + ( - + 37 ) ) AS col0 FROM tab0 AS cor0
----
37
37
37

onlyif mysql # aggregate syntax: 
query I rowsort label-167
SELECT ALL COUNT( * ) * + COUNT( * ) * + 87 AS col0 FROM tab0 cor0
----
783

skipif mysql # not compatible
query I rowsort label-167
SELECT ALL COUNT ( * ) * + COUNT ( * ) * + 87 AS col0 FROM tab0 cor0
----
783

query I rowsort
SELECT ALL 40 + col2 AS col0 FROM tab2 cor0
----
63
80
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + + col2 ) + 43 col2 FROM tab2 cor0
----
101
66
83

onlyif mysql # aggregate syntax: 
query I rowsort label-170
SELECT + 18 + 47 + - COUNT( + ( - 43 ) ) AS col0 FROM tab0 cor0
----
62

skipif mysql # not compatible
query I rowsort label-170
SELECT + 18 + 47 + - COUNT ( + ( - 43 ) ) AS col0 FROM tab0 cor0
----
62

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 8 * + + col2 + - col0 + + 61 - 5 col1 FROM tab0 AS cor0
----
417
49
751

onlyif mysql # DIV for integer division: 
query I rowsort label-173
SELECT ALL col1 DIV col0 + + col2 AS col0 FROM tab0
----
10
52
99

skipif mysql # not compatible
query I rowsort label-173
SELECT ALL col1 / col0 + + col2 AS col0 FROM tab0
----
10
52
99

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

skipif mysql # not compatible
query I rowsort label-174
SELECT DISTINCT - col2 / - + col1 FROM tab2
----
0

query I rowsort
SELECT ALL - 46 * + col1 AS col1 FROM tab2
----
-2346
-3082
-3542

query I rowsort
SELECT DISTINCT - col2 * - 86 * 51 FROM tab1
----
258774
298248
421056

onlyif mysql # aggregate syntax: 
query I rowsort label-177
SELECT DISTINCT MIN( + 55 ) col2 FROM tab0
----
55

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-177
SELECT DISTINCT MIN ( + 55 ) col2 FROM tab0
----
55

query I rowsort
SELECT + - col2 * - col1 * - ( - ( col2 ) ) + + col0 FROM tab1 AS cor0
----
129075
17490
217419

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

skipif mysql # not compatible
query I rowsort label-179
SELECT + SUM ( DISTINCT + - 8 ) AS col0 FROM tab2 AS cor0
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-180
SELECT - - COUNT( * ) * SUM( DISTINCT + col0 ) AS col2 FROM tab1 AS cor0
----
681

skipif mysql # not compatible
query I rowsort label-180
SELECT - - COUNT ( * ) * SUM ( DISTINCT + col0 ) AS col2 FROM tab1 AS cor0
----
681

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 70 col1 FROM tab1 AS cor0 WHERE NOT ( - col0 * col2 - 36 NOT BETWEEN ( - 30 ) AND - + col0 )
----

query I rowsort
SELECT 96 AS col1 FROM tab0 cor0
----
96
96
96

onlyif mysql # aggregate syntax: 
query I rowsort label-183
SELECT MIN( DISTINCT + 81 ) AS col0 FROM tab2
----
81

skipif mysql # not compatible
query I rowsort label-183
SELECT MIN ( DISTINCT + 81 ) AS col0 FROM tab2
----
81

query I rowsort
SELECT 90 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 96f7a90428db93f472e0d219bab64853

query III rowsort
SELECT ALL * FROM tab0 WHERE col0 * - col2 * 31 - 0 IN ( + col1 )
----

query I rowsort
SELECT + 16 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 3fdb08ec2e3d4b642dd4594778cca8b3

query I rowsort
SELECT DISTINCT + col1 * col2 * col1 + - col1 - + - 89 FROM tab2 AS cor0 WHERE NULL BETWEEN col0 AND - 48
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-188
SELECT DISTINCT - + MIN( - CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-189
SELECT DISTINCT - 43 * + SUM( + col0 ) FROM tab1 AS cor0
----
-9761

skipif mysql # not compatible
query I rowsort label-189
SELECT DISTINCT - 43 * + SUM ( + col0 ) FROM tab1 AS cor0
----
-9761

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

query I rowsort
SELECT ALL - 5 + + col0 FROM tab1 cor0 WHERE NOT NULL BETWEEN + ( + 96 ) * + 78 + - + 93 + + 47 AND col2 + + col0
----

query I rowsort
SELECT + col1 + + 33 AS col0 FROM tab0 AS cor0
----
114
34
54

query I rowsort
SELECT DISTINCT col1 + 49 FROM tab0 AS cor0
----
130
50
70

query I rowsort
SELECT ALL + 63 * - + col1 AS col2 FROM tab0
----
-1323
-5103
-63

query I rowsort
SELECT - 63 - - col0 * - 95 AS col2 FROM tab0 AS cor0
----
-1488
-8328
-9278

query II rowsort
SELECT DISTINCT - col0 / + 71 + + col2 * - col2 * ( - + col0 ) AS col1, + col0 + + 29 + - col0 * + - 89 * col0 * col1 + - col1 FROM tab2 WHERE NULL <> NULL
----

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

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

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

query I rowsort
SELECT 62 + + col1 FROM tab1
----
109
67
76

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - 49 < NULL
----

query I rowsort
SELECT DISTINCT + 91 AS col0 FROM tab0 AS cor0 WHERE NOT col0 BETWEEN - + 33 * - + col0 AND + ( - 23 ) * - col2 * - - col1
----
91

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 col1, - col2 AS col1 FROM tab0 AS cor0
----
15
-47
87
-10
97
-99

onlyif mysql # DIV for integer division: 
query II rowsort label-204
SELECT ALL ( - col1 ) + col2 AS col0, ( col1 ) DIV + 54 AS col2 FROM tab1 AS cor0
----
21
0
54
0
82
0

skipif mysql # not compatible
query II rowsort label-204
SELECT ALL ( - col1 ) + col2 AS col0, ( col1 ) / + 54 AS col2 FROM tab1 AS cor0
----
21
0
54
0
82
0

onlyif mysql # aggregate syntax: 
query I rowsort label-205
SELECT MAX( DISTINCT col0 ) * + SUM( - ( + 57 ) ) FROM tab2 AS cor0
----
-12825

skipif mysql # not compatible
query I rowsort label-205
SELECT MAX ( DISTINCT col0 ) * + SUM ( - ( + 57 ) ) FROM tab2 AS cor0
----
-12825

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

onlyif mysql # aggregate syntax: 
query I rowsort label-207
SELECT - + MAX( ALL - + col0 ) FROM tab1 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-207
SELECT - + MAX ( ALL - + col0 ) FROM tab1 AS cor0
----
51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 79, 17 col2 FROM tab0 AS cor0
----
-79
17

query I rowsort
SELECT DISTINCT - + col2 * - 1 FROM tab2 cor0
----
23
40
58

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + ( + 17 ) * + 28 col0 FROM tab0 AS cor0
----
476
476
476

query I rowsort
SELECT DISTINCT - col1 * - 90 FROM tab2 AS cor0
----
4590
6030
6930

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 13 * + 79 col0 FROM tab1
----
-1027
-1027
-1027

query I rowsort
SELECT DISTINCT - 55 FROM tab2 WHERE NOT + 91 * 59 + - 20 <> col1
----

query I rowsort
SELECT ALL col0 * - - 45 FROM tab2
----
2070
2880
3375

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col0 BETWEEN NULL AND + - ( + - 90 )
----

query I rowsort
SELECT col2 * - 94 * col1 FROM tab2 AS cor0
----
-110262
-289520
-365284

query I rowsort
SELECT - ( + - 64 ) * col1 AS col2 FROM tab1 AS cor0
----
3008
320
896

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-223
SELECT ALL + 86 DIV ( + COUNT( * ) ) AS col0 FROM tab2 AS cor0
----
28

skipif mysql # not compatible
query I rowsort label-223
SELECT ALL + 86 / ( + COUNT ( * ) ) AS col0 FROM tab2 AS cor0
----
28

onlyif mysql # DIV for integer division: 
query I rowsort label-224
SELECT ALL - 90 DIV - col1 + - + col2 * + 31 FROM tab1 AS cor0
----
-1811
-2107
-2970

skipif mysql # not compatible
query I rowsort label-224
SELECT ALL - 90 / - col1 + - + col2 * + 31 FROM tab1 AS cor0
----
-1811
-2107
-2970

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

onlyif mysql # aggregate syntax: 
query I rowsort label-226
SELECT ALL ( - SUM( 78 ) ) FROM tab0
----
-234

skipif mysql # not compatible
query I rowsort label-226
SELECT ALL ( - SUM ( 78 ) ) FROM tab0
----
-234

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

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

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

query I rowsort
SELECT 29 + 17 AS col1 FROM tab2
----
46
46
46

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-230
SELECT DISTINCT * FROM tab0 WHERE NOT NULL BETWEEN 51 + + ( 92 ) AND - CAST( + col1 AS DECIMAL ) AND NULL BETWEEN NULL AND - 24
----

skipif mysql # not compatible
query III rowsort label-230
SELECT DISTINCT * FROM tab0 WHERE NOT NULL BETWEEN 51 + + ( 92 ) AND - CAST ( + col1 AS REAL ) AND NULL BETWEEN NULL AND - 24
----

onlyif mysql # aggregate syntax: 
query I rowsort label-231
SELECT COUNT( * ) * - 67 + ( + + 48 ) * 48 AS col1 FROM tab1
----
2103

skipif mysql # not compatible
query I rowsort label-231
SELECT COUNT ( * ) * - 67 + ( + + 48 ) * 48 AS col1 FROM tab1
----
2103

query I rowsort
SELECT - 71 * col1 + + + col2 AS col2 FROM tab0
----
-1481
-5704
28

query I rowsort
SELECT + col1 + + 73 FROM tab1
----
120
78
87

query II rowsort
SELECT col0 + + - col2, + col0 AS col2 FROM tab1
----
-45
51
23
91
26
85

query I rowsort
SELECT ALL col0 + + 12 FROM tab2 AS cor0
----
58
76
87

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-236
SELECT DISTINCT + 6 - - col0, - col0 * + CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
57
NULL
91
NULL
97
NULL

skipif mysql # not compatible
query II rowsort label-236
SELECT DISTINCT + 6 - - col0, - col0 * + CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
57
NULL
91
NULL
97
NULL

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

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

skipif mysql # not compatible
query I rowsort label-238
SELECT + CAST ( NULL AS INTEGER ) * - 28 * - + col2 + + col1 * + ( + 32 ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-241
SELECT + col1, + col0 + - CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
51
NULL
67
NULL
77
NULL

skipif mysql # not compatible
query II rowsort label-241
SELECT + col1, + col0 + - CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
51
NULL
67
NULL
77
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col0 AS col1, - col1 * - col1 col0 FROM tab0
----
-15
6561
-87
441
-97
1

query I rowsort
SELECT - 25 - - 91 AS col1 FROM tab2 WHERE NOT - col0 IS NULL
----
66
66
66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-244
SELECT - + col0 FROM tab2 WHERE NOT + CAST( 88 AS SIGNED ) < - + 16
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-244
SELECT - + col0 FROM tab2 WHERE NOT + CAST ( 88 AS INTEGER ) < - + 16
----
-46
-64
-75

query I rowsort
SELECT - col2 FROM tab2 AS cor0 WHERE NOT ( - col1 ) >= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-246
SELECT ALL col2 DIV - - col0 FROM tab0 cor0
----
0
1
3

skipif mysql # not compatible
query I rowsort label-246
SELECT ALL col2 / - - col0 FROM tab0 cor0
----
0
1
3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col1 <= + - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 90 * + ( + - col1 ) + - - col0 FROM tab0 AS cor0
----
-1803
-7275
7

query I rowsort
SELECT - + 91 AS col1 FROM tab2 cor0
----
-91
-91
-91

query I rowsort
SELECT DISTINCT - 58 * + - col0 AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
5046
5626
870

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-252
SELECT ALL col1 - - col2 FROM tab0 WHERE NOT ( + CAST( - - col2 AS SIGNED ) ) IS NULL
----
100
128
31

skipif mysql # not compatible
query I rowsort label-252
SELECT ALL col1 - - col2 FROM tab0 WHERE NOT ( + CAST ( - - col2 AS INTEGER ) ) IS NULL
----
100
128
31

query I rowsort
SELECT + col0 AS col0 FROM tab1 WHERE + col2 / col0 <= - + col0
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 > - 41 * 35
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-255
SELECT col1 + CAST( + col2 AS SIGNED ) + - - col0 * - + ( - 95 ) FROM tab0 AS cor0
----
1553
8296
9315

skipif mysql # not compatible
query I rowsort label-255
SELECT col1 + CAST ( + col2 AS INTEGER ) + - - col0 * - + ( - 95 ) FROM tab0 AS cor0
----
1553
8296
9315

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-256
SELECT - CAST( + 50 AS SIGNED ) * col2 AS col1 FROM tab0 AS cor0
----
-2350
-4950
-500

skipif mysql # not compatible
query I rowsort label-256
SELECT - CAST ( + 50 AS INTEGER ) * col2 AS col1 FROM tab0 AS cor0
----
-2350
-4950
-500

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

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

query I rowsort
SELECT ( + 18 ) * 75 FROM tab1
----
1350
1350
1350

query I rowsort
SELECT DISTINCT col0 + + 46 * + col1 * + + col1 AS col2 FROM tab2
----
119692
206569
272798

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

query I rowsort
SELECT ALL - 50 - + 17 AS col1 FROM tab1
----
-67
-67
-67

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

query II rowsort
SELECT ALL 41 AS col1, col0 * - col0 FROM tab0
----
41
-225
41
-7569
41
-9409

onlyif mysql # DIV for integer division: 
query II rowsort label-264
SELECT col0 + col2 DIV - 11 + col1 AS col1, + col2 * - 60 * 16 AS col2 FROM tab1 WHERE col2 <> 94
----
132
-65280
57
-92160
85
-56640

skipif mysql # not compatible
query II rowsort label-264
SELECT col0 + col2 / - 11 + col1 AS col1, + col2 * - 60 * 16 AS col2 FROM tab1 WHERE col2 <> 94
----
132
-65280
57
-92160
85
-56640

query II rowsort
SELECT ALL ( 56 ) + 23, + col0 FROM tab0 AS cor0
----
79
15
79
87
79
97

query I rowsort
SELECT 64 - - + col0 AS col0 FROM tab2 cor0
----
110
128
139

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

query I rowsort
SELECT ALL - + col0 * + 68 * - col1 FROM tab2 AS cor0
----
159528
335104
341700

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-269
SELECT + 49 - + CAST( col2 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-50
2
39

skipif mysql # not compatible
query I rowsort label-269
SELECT + 49 - + CAST ( col2 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-50
2
39

query I rowsort
SELECT - - 25 + col1 AS col2 FROM tab1 cor0
----
30
39
72

query I rowsort
SELECT ALL + + col1 - 60 AS col2 FROM tab0 AS cor0
----
-39
-59
21

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

onlyif mysql # aggregate syntax: 
query I rowsort label-273
SELECT ALL + SUM( - 53 ) AS col2 FROM tab0 cor0 CROSS JOIN tab0 cor1
----
-477

skipif mysql # not compatible
query I rowsort label-273
SELECT ALL + SUM ( - 53 ) AS col2 FROM tab0 cor0 CROSS JOIN tab0 cor1
----
-477

query I rowsort
SELECT + 60 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to a97561e17ecaa618227c75a57b268f33

onlyif mysql # DIV for integer division: 
query I rowsort label-275
SELECT - - col2 * - col2 + col2 + 0 DIV col0 AS col2 FROM tab1 AS cor0
----
-3422
-4556
-9120

skipif mysql # not compatible
query I rowsort label-275
SELECT - - col2 * - col2 + col2 + 0 / col0 AS col2 FROM tab1 AS cor0
----
-3422
-4556
-9120

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

query I rowsort
SELECT ALL col2 AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
59
68
96

onlyif mysql # DIV for integer division: 
query I rowsort label-278
SELECT 58 DIV + col1 AS col0 FROM tab1 AS cor0
----
1
11
4

skipif mysql # not compatible
query I rowsort label-278
SELECT 58 / + col1 AS col0 FROM tab1 AS cor0
----
1
11
4

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

query I rowsort
SELECT ALL + col1 * - col1 * + col2 FROM tab0 AS cor0
----
-308367
-4410
-99

query III rowsort
SELECT + col1, 15, col1 AS col1 FROM tab0 AS cor0
----
9 values hashing to 81893c5a270faf429c63f494dcfbdc99

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

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

query II rowsort
SELECT + 10 AS col2, ( col1 ) FROM tab1 AS cor0
----
10
14
10
47
10
5

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

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

query II rowsort
SELECT ALL - - col1 AS col0, + 47 * - + col0 + + col0 AS col1 FROM tab1 AS cor0
----
14
-2346
47
-4186
5
-3910

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

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

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

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

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-289
SELECT - SUM ( + col2 ) col2 FROM tab1
----
-223

onlyif mysql # aggregate syntax: 
query II rowsort label-290
SELECT 80 * COUNT( * ), - 31 AS col1 FROM tab2 AS cor0
----
240
-31

skipif mysql # not compatible
query II rowsort label-290
SELECT 80 * COUNT ( * ), - 31 AS col1 FROM tab2 AS cor0
----
240
-31

onlyif mysql # DIV for integer division: 
query I rowsort label-291
SELECT col1 * + - col0 * col2 DIV + col2 AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-425
-4277
-714

skipif mysql # not compatible
query I rowsort label-291
SELECT col1 * + - col0 * col2 / + col2 AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-425
-4277
-714

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - 61 * - 71 * + 4 * + + col0 < 98
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-293
SELECT DISTINCT MAX ( ALL col0 ) col0 FROM tab0 AS cor0
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-294
SELECT DISTINCT - COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE NOT col1 / - + col2 + + + ( 25 ) >= - - col1 * col2 + - col1
----
-3

skipif mysql # not compatible
query I rowsort label-294
SELECT DISTINCT - COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NOT col1 / - + col2 + + + ( 25 ) >= - - col1 * col2 + - col1
----
-3

query II rowsort
SELECT col1, 58 + - + col1 + 39 FROM tab0
----
1
96
21
76
81
16

query II rowsort
SELECT - col1 * + - 25 * + + 78 AS col1, - col0 AS col1 FROM tab0
----
157950
-15
1950
-97
40950
-87

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

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

query I rowsort
SELECT ALL - col2 + - 40 * - - 88 + + col0 AS col0 FROM tab0 AS cor0
----
-3443
-3522
-3552

query I rowsort
SELECT DISTINCT + col1 + - - col0 * + ( - + col0 ) FROM tab2 AS cor0
----
-2065
-4019
-5558

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

onlyif mysql # DIV for integer division: 
query I rowsort label-301
SELECT DISTINCT + 79 DIV + - 90 + - col0 FROM tab2
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-301
SELECT DISTINCT + 79 / + - 90 + - col0 FROM tab2
----
-46
-64
-75

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

skipif mysql # not compatible
query I rowsort label-302
SELECT DISTINCT - COUNT ( * ) * - + 15 FROM tab1
----
45

onlyif mysql # DIV for integer division: 
query I rowsort label-303
SELECT col1 + + col2 + - - 0 - + col2 DIV ( + 45 ) AS col1 FROM tab2
----
117
124
74

skipif mysql # not compatible
query I rowsort label-303
SELECT col1 + + col2 + - - 0 - + col2 / ( + 45 ) AS col1 FROM tab2
----
117
124
74

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL <= - 34 + - - 63
----

query I rowsort
SELECT ALL + 7 - - col2 + - col2 FROM tab2
----
7
7
7

onlyif mysql # aggregate syntax: 
query I rowsort label-306
SELECT ALL + COUNT( * ) * + 9 FROM tab1
----
27

skipif mysql # not compatible
query I rowsort label-306
SELECT ALL + COUNT ( * ) * + 9 FROM tab1
----
27

query III rowsort
SELECT * FROM tab2 WHERE col1 > col1
----

query I rowsort
SELECT + col1 + + ( - + 9 ) AS col1 FROM tab2
----
42
58
68

query III rowsort
SELECT * FROM tab2 WHERE + 24 > NULL
----

query II rowsort
SELECT DISTINCT 21 * + 83, - col2 AS col0 FROM tab2
----
1743
-23
1743
-40
1743
-58

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-313
SELECT DISTINCT + MAX( ALL - - 34 ) col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
34

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-313
SELECT DISTINCT + MAX ( ALL - - 34 ) col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
34

query I rowsort
SELECT - - 4 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 6fec965b60b9885c4af73e85422cfd9b

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

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col0 + - + 36 BETWEEN + + ( + 29 ) * - - col1 AND - - 87
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-319
SELECT - - COUNT( * ) AS col0, + COUNT( * ) * - 65 FROM tab1 AS cor0 WHERE NOT NULL <> CAST( + col0 AS DECIMAL ) * + 19
----
0
0

skipif mysql # not compatible
query II rowsort label-319
SELECT - - COUNT ( * ) AS col0, + COUNT ( * ) * - 65 FROM tab1 AS cor0 WHERE NOT NULL <> CAST ( + col0 AS REAL ) * + 19
----
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-320
SELECT CAST( + - COUNT( * ) AS SIGNED ) * - - 37 FROM tab1
----
-111

skipif mysql # not compatible
query I rowsort label-320
SELECT CAST ( + - COUNT ( * ) AS INTEGER ) * - - 37 FROM tab1
----
-111

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2 col2, 5 * + + col2 FROM tab0
----
10
50
47
235
99
495

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

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

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-329
SELECT ALL CAST( NULL AS DECIMAL ) AS col2, + SUM( + 0 ) AS col0 FROM tab2 AS cor0
----
NULL
0

skipif mysql # not compatible
query II rowsort label-329
SELECT ALL CAST ( NULL AS REAL ) AS col2, + SUM ( + 0 ) AS col0 FROM tab2 AS cor0
----
NULL
0

query I rowsort
SELECT ( - 8 ) AS col2 FROM tab2 AS cor0
----
-8
-8
-8

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

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

query I rowsort
SELECT - col1 + + + 34 FROM tab0 AS cor0
----
-47
13
33

query II rowsort
SELECT ALL - + col0 * 11 AS col0, + col1 FROM tab2 AS cor0
----
-506
51
-704
77
-825
67

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

onlyif mysql # DIV for integer division: 
query I rowsort label-336
SELECT + 62 DIV - 4 + + 94 FROM tab1 AS cor0
----
79
79
79

skipif mysql # not compatible
query I rowsort label-336
SELECT + 62 / - 4 + + 94 FROM tab1 AS cor0
----
79
79
79

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

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

query I rowsort
SELECT col0 + + + 21 FROM tab2 AS cor0
----
67
85
96

query I rowsort
SELECT DISTINCT - - col2 - + 99 AS col2 FROM tab1 AS cor0
----
-3
-31
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-340
SELECT ALL - 91 * - 10 + COUNT( * ) FROM tab1 AS cor0
----
913

skipif mysql # not compatible
query I rowsort label-340
SELECT ALL - 91 * - 10 + COUNT ( * ) FROM tab1 AS cor0
----
913

onlyif mysql # aggregate syntax: 
query I rowsort label-341
SELECT DISTINCT ( + COUNT( col2 ) ) * 91 AS col0 FROM tab0 AS cor0
----
273

skipif mysql # not compatible
query I rowsort label-341
SELECT DISTINCT ( + COUNT ( col2 ) ) * 91 AS col0 FROM tab0 AS cor0
----
273

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 23 * + + col2 col2 FROM tab1 AS cor0
----
1357
1564
2208

onlyif mysql # DIV for integer division: 
query I rowsort label-343
SELECT ALL - 21 - + col2 DIV col1 AS col2 FROM tab1 AS cor0
----
-22
-27
-32

skipif mysql # not compatible
query I rowsort label-343
SELECT ALL - 21 - + col2 / col1 AS col2 FROM tab1 AS cor0
----
-22
-27
-32

query II rowsort
SELECT - 57 AS col1, + col2 + - 91 AS col1 FROM tab2
----
-57
-33
-57
-51
-57
-68

query I rowsort
SELECT ALL 17 + - 81 AS col0 FROM tab0
----
-64
-64
-64

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-347
SELECT ALL - 73 * + COUNT( + - 19 ) * - 27 AS col1, - COUNT( * ) FROM tab2
----
5913
-3

skipif mysql # not compatible
query II rowsort label-347
SELECT ALL - 73 * + COUNT ( + - 19 ) * - 27 AS col1, - COUNT ( * ) FROM tab2
----
5913
-3

query I rowsort
SELECT + 36 - + 3 * ( col0 ) FROM tab2
----
-102
-156
-189

query III rowsort
SELECT ALL * FROM tab1 WHERE ( NULL ) <= NULL AND NOT 86 NOT IN ( 54 / - + 93 + - 42, 42 )
----

query I rowsort
SELECT - col0 AS col2 FROM tab2 WHERE - 96 * + 91 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-351
SELECT DISTINCT CAST( - - COUNT( * ) AS SIGNED ) * - - 55 FROM tab1
----
165

skipif mysql # not compatible
query I rowsort label-351
SELECT DISTINCT CAST ( - - COUNT ( * ) AS INTEGER ) * - - 55 FROM tab1
----
165

query III rowsort
SELECT * FROM tab0 WHERE - 43 NOT BETWEEN NULL AND - col1
----
15
81
47

onlyif mysql # aggregate syntax: 
query I rowsort label-353
SELECT + 38 - + 48 - - - COUNT( ALL + 12 ) AS col2 FROM tab2
----
-13

skipif mysql # not compatible
query I rowsort label-353
SELECT + 38 - + 48 - - - COUNT ( ALL + 12 ) AS col2 FROM tab2
----
-13

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT + ( + + col1 ) <= + col0
----
46
51
23
64
77
40

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

skipif mysql # not compatible
query I rowsort label-355
SELECT ALL - MAX ( + col2 ) * + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-174

query III rowsort
SELECT * FROM tab1 WHERE NOT - 64 * + col2 < - col0
----

query I rowsort
SELECT 87 * + + col2 * + 75 AS col1 FROM tab0
----
306675
645975
65250

query I rowsort
SELECT + 16 * - col1 AS col2 FROM tab1 cor0
----
-224
-752
-80

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

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

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

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

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT ( NULL ) < + 33 + - 78
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 30 * + + 91 * + + col2 >= - ( + col0 ) / - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-363
SELECT + 43 DIV + 67 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-363
SELECT + 43 / + 67 FROM tab1
----
0
0
0

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL < + 26 + - + 0 + - - col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-365
SELECT ALL - 39 DIV col1 FROM tab1
----
-2
-7
0

skipif mysql # not compatible
query I rowsort label-365
SELECT ALL - 39 / col1 FROM tab1
----
-2
-7
0

onlyif mysql # aggregate syntax: 
query I rowsort label-366
SELECT + ( - MAX( ALL col0 ) ) AS col2 FROM tab1
----
-91

skipif mysql # not compatible
query I rowsort label-366
SELECT + ( - MAX ( ALL col0 ) ) AS col2 FROM tab1
----
-91

onlyif mysql # DIV for integer division: 
query I rowsort label-367
SELECT col1 DIV + col0 + ( + 18 ) * - - 56 AS col2 FROM tab2
----
1008
1009
1009

skipif mysql # not compatible
query I rowsort label-367
SELECT col1 / + col0 + ( + 18 ) * - - 56 AS col2 FROM tab2
----
1008
1009
1009

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

query I rowsort
SELECT DISTINCT ( 90 ) + - ( - 75 ) FROM tab1 AS cor0
----
165

query I rowsort
SELECT ALL - col0 + - - 67 FROM tab2 cor0
----
-8
21
3

query I rowsort
SELECT ALL - col2 + - + col0 * - col0 AS col0 FROM tab0 cor0
----
178
7559
9310

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

query I rowsort
SELECT - ( - 51 ) FROM tab0
----
51
51
51

query I rowsort
SELECT DISTINCT 60 AS col1 FROM tab2 WHERE NULL IS NULL
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-375
SELECT ( + - MAX( - col1 ) ) AS col1 FROM tab1
----
5

skipif mysql # not compatible
query I rowsort label-375
SELECT ( + - MAX ( - col1 ) ) AS col1 FROM tab1
----
5

onlyif mysql # aggregate syntax: 
query II rowsort label-376
SELECT + ( - COUNT( * ) ) AS col0, - 91 AS col0 FROM tab1
----
-3
-91

skipif mysql # not compatible
query II rowsort label-376
SELECT + ( - COUNT ( * ) ) AS col0, - 91 AS col0 FROM tab1
----
-3
-91

query I rowsort
SELECT DISTINCT + col1 * + - col0 FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT - 62 * + - col2 FROM tab0 AS cor0
----
2914
6138
620

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

query I rowsort
SELECT DISTINCT - 80 FROM tab2 WHERE 87 > - 85
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-381
SELECT ALL + MIN( ALL + - col1 ) AS col2 FROM tab1 AS cor0
----
-47

skipif mysql # not compatible
query I rowsort label-381
SELECT ALL + MIN ( ALL + - col1 ) AS col2 FROM tab1 AS cor0
----
-47

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

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

query II rowsort
SELECT ALL col0 + + 72, 6 * col2 AS col0 FROM tab1 AS cor0 WHERE NULL < NULL
----

query I rowsort
SELECT DISTINCT - 69 * col2 AS col2 FROM tab1 AS cor0
----
-4071
-4692
-6624

onlyif mysql # aggregate syntax: 
query I rowsort label-385
SELECT ALL + COUNT( * ) * + + 81 AS col0 FROM tab0 AS cor0
----
243

skipif mysql # not compatible
query I rowsort label-385
SELECT ALL + COUNT ( * ) * + + 81 AS col0 FROM tab0 AS cor0
----
243

query I rowsort
SELECT + - 50 + + col0 + col0 * - + col0 FROM tab0 AS cor0
----
-260
-7532
-9362

onlyif mysql # DIV for integer division: 
query I rowsort label-387
SELECT DISTINCT 78 DIV 41 + - - 35 AS col0 FROM tab1 AS cor0
----
36

skipif mysql # not compatible
query I rowsort label-387
SELECT DISTINCT 78 / 41 + - - 35 AS col0 FROM tab1 AS cor0
----
36

query I rowsort
SELECT - + 80 + - - 81 AS col2 FROM tab0 AS cor0
----
1
1
1

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

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

query I rowsort
SELECT - col1 + + col2 + + 55 * + col2 AS col0 FROM tab0
----
2551
539
5543

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-391
SELECT - CAST( NULL AS SIGNED ) / 47, COUNT( + - col2 ) AS col0 FROM tab0
----
NULL
3

skipif mysql # not compatible
query II rowsort label-391
SELECT - CAST ( NULL AS INTEGER ) / 47, COUNT ( + - col2 ) AS col0 FROM tab0
----
NULL
3

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

query III rowsort
SELECT * FROM tab1 WHERE 74 IN ( col0, + col2, + 80 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-394
SELECT - CAST( - + col2 AS SIGNED ) / + 38 FROM tab1 WHERE + - col2 IS NULL
----

skipif mysql # not compatible
query I rowsort label-394
SELECT - CAST ( - + col2 AS INTEGER ) / + 38 FROM tab1 WHERE + - col2 IS NULL
----

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-398
SELECT ALL - MIN( col2 ) + - - COUNT( * ) FROM tab1
----
-56

skipif mysql # not compatible
query I rowsort label-398
SELECT ALL - MIN ( col2 ) + - - COUNT ( * ) FROM tab1
----
-56

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

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

query I rowsort
SELECT DISTINCT - col0 + - - col0 FROM tab0 AS cor0
----
0

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

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

query I rowsort
SELECT DISTINCT - + col0 * col0 + - col0 + - 43 FROM tab0 AS cor0
----
-283
-7699
-9549

query I rowsort
SELECT ALL + + 15 - - col1 FROM tab1 AS cor0
----
20
29
62

query I rowsort
SELECT DISTINCT 74 + - + 11 - + + col2 FROM tab2 AS cor0
----
23
40
5

query I rowsort
SELECT - col1 * - - col0 + - col2 + - col1 FROM tab2 AS cor0
----
-2420
-5045
-5150

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

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

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

query I rowsort
SELECT ALL + 82 - 86 AS col1 FROM tab0 AS cor0
----
-4
-4
-4

query I rowsort
SELECT DISTINCT - 24 * 4 + + - 47 + col1 * + col0 FROM tab0 AS cor0
----
-46
1072
1684

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-410
SELECT ALL * FROM tab2 AS cor0 WHERE NULL <= col2 + CAST( - col0 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-410
SELECT ALL * FROM tab2 AS cor0 WHERE NULL <= col2 + CAST ( - col0 AS INTEGER )
----

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

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL <> - 29 * + - 97 * col0 * - 17
----

query I rowsort
SELECT ALL col1 * + 99 AS col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
1386
4653
495

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

onlyif mysql # DIV for integer division: 
query II rowsort label-415
SELECT 83 DIV - col1 + + - col1 AS col2, - col1 AS col2 FROM tab0
----
-24
-21
-82
-81
-84
-1

skipif mysql # not compatible
query II rowsort label-415
SELECT 83 / - col1 + + - col1 AS col2, - col1 AS col2 FROM tab0
----
-24
-21
-82
-81
-84
-1

query I rowsort
SELECT + 15 * + - col1 + - col1 AS col1 FROM tab1
----
-224
-752
-80

query I rowsort
SELECT col0 + + 64 * - col2 * + col2 + - col1 FROM tab2
----
-102413
-215288
-33861

query I rowsort
SELECT 63 + - + 93 FROM tab2
----
-30
-30
-30

onlyif mysql # DIV for integer division: 
query I rowsort label-419
SELECT - col1 DIV ( - col0 ) + col0 + + col2 FROM tab2
----
105
133
70

skipif mysql # not compatible
query I rowsort label-419
SELECT - col1 / ( - col0 ) + col0 + + col2 FROM tab2
----
105
133
70

query I rowsort
SELECT col1 + - col0 * + ( col1 ) * - col0 FROM tab2
----
107967
315469
376942

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

query I rowsort
SELECT ALL + 18 + - col2 FROM tab2 AS cor0
----
-22
-40
-5

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-423
SELECT DISTINCT col2 * - + col1 + - 88 DIV - 61 + col2 - + - CAST( - - col2 AS SIGNED ) * - 23 + ( - col1 ) FROM tab0
----
-2277
-450
-4921

skipif mysql # not compatible
query I rowsort label-423
SELECT DISTINCT col2 * - + col1 + - 88 / - 61 + col2 - + - CAST ( - - col2 AS INTEGER ) * - 23 + ( - col1 ) FROM tab0
----
-2277
-450
-4921

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab0 cor1 WHERE NOT ( NULL ) IS NOT NULL
----
54 values hashing to 38882227cfc7c3bf621ed1f30345739c

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-425
SELECT - 56 - + col2 + + 84 / 54 + - CAST( NULL AS SIGNED ) / + col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-425
SELECT - 56 - + col2 + + 84 / 54 + - CAST ( NULL AS INTEGER ) / + col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

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

onlyif mysql # DIV for integer division: 
query I rowsort label-427
SELECT ALL + col2 DIV + col1 + + col1 FROM tab0 AS cor0
----
100
21
81

skipif mysql # not compatible
query I rowsort label-427
SELECT ALL + col2 / + col1 + + col1 FROM tab0 AS cor0
----
100
21
81

query II rowsort
SELECT - ( + 56 ) AS col0, + col1 AS col2 FROM tab1 AS cor0
----
-56
14
-56
47
-56
5

query II rowsort
SELECT - 50, col1 FROM tab1
----
-50
14
-50
47
-50
5

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

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-434
SELECT DISTINCT COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN - ( - CAST( NULL AS DECIMAL ) ) AND col2
----
0

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

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

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

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

query I rowsort
SELECT DISTINCT col2 * + + 3 FROM tab1 AS cor0
----
177
204
288

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-438
SELECT ALL - CAST( NULL AS SIGNED ) AS col1, + 76 + - + col0 FROM tab1 AS cor0
----
NULL
-15
NULL
-9
NULL
25

skipif mysql # not compatible
query II rowsort label-438
SELECT ALL - CAST ( NULL AS INTEGER ) AS col1, + 76 + - + col0 FROM tab1 AS cor0
----
NULL
-15
NULL
-9
NULL
25

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT - col0 * - col0 / - col0 * col0 <> + col0
----

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

query I rowsort
SELECT col1 * - col1 * + + col0 AS col1 FROM tab0
----
-38367
-97
-98415

query I rowsort
SELECT 32 * ( - col0 ) AS col1 FROM tab1
----
-1632
-2720
-2912

onlyif mysql # aggregate syntax: 
query I rowsort label-443
SELECT DISTINCT + SUM( - - 19 ) AS col0 FROM tab2
----
57

skipif mysql # not compatible
query I rowsort label-443
SELECT DISTINCT + SUM ( - - 19 ) AS col0 FROM tab2
----
57

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-444
SELECT * FROM tab1 WHERE ( col0 + - + col2 * + CAST( NULL AS SIGNED ) IS NOT NULL )
----

skipif mysql # not compatible
query III rowsort label-444
SELECT * FROM tab1 WHERE ( col0 + - + col2 * + CAST ( NULL AS INTEGER ) IS NOT NULL )
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-446
SELECT DISTINCT SUM( col2 ) * - 26 AS col2 FROM tab2 AS cor0
----
-3146

skipif mysql # not compatible
query I rowsort label-446
SELECT DISTINCT SUM ( col2 ) * - 26 AS col2 FROM tab2 AS cor0
----
-3146

query I rowsort
SELECT DISTINCT - col2 FROM tab0 cor0 WHERE NULL NOT BETWEEN + col2 AND NULL
----

query II rowsort
SELECT - 74 + - + 79 AS col0, 39 FROM tab1 AS cor0
----
-153
39
-153
39
-153
39

onlyif mysql # DIV for integer division: 
query I rowsort label-449
SELECT + col1 DIV - 65 AS col2 FROM tab2
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-449
SELECT + col1 / - 65 AS col2 FROM tab2
----
-1
-1
0

query II rowsort
SELECT DISTINCT + 7, col2 FROM tab2 AS cor0
----
7
23
7
40
7
58

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col2 + - - 85 >= 20
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + 49 AS col2 FROM tab2
----
49

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 56 * col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-457
SELECT DISTINCT 86 + + COUNT( * ) col2 FROM tab0 AS cor0
----
89

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

query I rowsort
SELECT + - 8 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 47f43f23dcd23959d97d8e3b0aab692e

onlyif mysql # aggregate syntax: 
query I rowsort label-459
SELECT ALL - 82 + - 66 + + 14 * COUNT( * ) + - 12 FROM tab1 AS cor0
----
-118

skipif mysql # not compatible
query I rowsort label-459
SELECT ALL - 82 + - 66 + + 14 * COUNT ( * ) + - 12 FROM tab1 AS cor0
----
-118

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

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col2 - + + 92 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-462
SELECT DISTINCT - + MAX( DISTINCT - col0 ) + 19 FROM tab2 cor0
----
65

skipif mysql # not compatible
query I rowsort label-462
SELECT DISTINCT - + MAX ( DISTINCT - col0 ) + 19 FROM tab2 cor0
----
65

query I rowsort
SELECT DISTINCT 88 * - col0 + + col1 + + col0 FROM tab1 AS cor0
----
-4423
-7390
-7870

onlyif mysql # aggregate syntax: 
query I rowsort label-464
SELECT DISTINCT + 76 * - COUNT( * ) AS col2 FROM tab1
----
-228

skipif mysql # not compatible
query I rowsort label-464
SELECT DISTINCT + 76 * - COUNT ( * ) AS col2 FROM tab1
----
-228

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-466
SELECT DISTINCT - 12 AS col2, COUNT( * ) * + + COUNT( * ) FROM tab2
----
-12
9

skipif mysql # not compatible
query II rowsort label-466
SELECT DISTINCT - 12 AS col2, COUNT ( * ) * + + COUNT ( * ) FROM tab2
----
-12
9

onlyif mysql # aggregate syntax: 
query I rowsort label-467
SELECT - 35 + + MIN( col0 ) col1 FROM tab1
----
16

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-467
SELECT - 35 + + MIN ( col0 ) col1 FROM tab1
----
16

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-469
SELECT ALL MIN( ALL 32 ) * - 43 AS col2 FROM tab1
----
-1376

skipif mysql # not compatible
query I rowsort label-469
SELECT ALL MIN ( ALL 32 ) * - 43 AS col2 FROM tab1
----
-1376

query I rowsort
SELECT ALL col2 + - col2 - + col2 AS col1 FROM tab0
----
-10
-47
-99

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

onlyif mysql # aggregate syntax: 
query I rowsort label-472
SELECT ALL - 28 * + COUNT( * ) + + SUM( + col2 ) AS col1 FROM tab0 AS cor0
----
72

skipif mysql # not compatible
query I rowsort label-472
SELECT ALL - 28 * + COUNT ( * ) + + SUM ( + col2 ) AS col1 FROM tab0 AS cor0
----
72

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-476
SELECT - 13 * COUNT( + col2 ) + + COUNT( * ) FROM tab0 AS cor0
----
-36

skipif mysql # not compatible
query I rowsort label-476
SELECT - 13 * COUNT ( + col2 ) + + COUNT ( * ) FROM tab0 AS cor0
----
-36

query I rowsort
SELECT + col2 FROM tab1 cor0 WHERE NOT col2 < - col1
----
59
68
96

query I rowsort
SELECT DISTINCT 93 * col2 AS col1 FROM tab0
----
4371
9207
930

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-479
SELECT DISTINCT + COUNT( * ) DIV - - 88 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-479
SELECT DISTINCT + COUNT ( * ) / - - 88 FROM tab2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-480
SELECT ALL COUNT( * ) * - COUNT( * ) * + - 74 col1, CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
666
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-481
SELECT ALL + SUM( DISTINCT - 28 ) col2 FROM tab0, tab2 AS cor0
----
-28

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-481
SELECT ALL + SUM ( DISTINCT - 28 ) col2 FROM tab0, tab2 AS cor0
----
-28

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-483
SELECT ALL col0 DIV + ( + 98 ) col2 FROM tab0
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-483
SELECT ALL col0 / + ( + 98 ) col2 FROM tab0
----
0
0
0

query I rowsort
SELECT ALL - 85 * + + 95 + 39 FROM tab2 AS cor0
----
-8036
-8036
-8036

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL BETWEEN - 14 AND 28
----

onlyif mysql # aggregate syntax: 
query I rowsort label-487
SELECT ALL COUNT( * ) + + 35 FROM tab1
----
38

skipif mysql # not compatible
query I rowsort label-487
SELECT ALL COUNT ( * ) + + 35 FROM tab1
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-488
SELECT COUNT( * ) * 73 AS col0 FROM tab1
----
219

skipif mysql # not compatible
query I rowsort label-488
SELECT COUNT ( * ) * 73 AS col0 FROM tab1
----
219

onlyif mysql # DIV for integer division: 
query I rowsort label-489
SELECT DISTINCT + col1 DIV - col2 + col0 AS col2 FROM tab2
----
44
63
74

skipif mysql # not compatible
query I rowsort label-489
SELECT DISTINCT + col1 / - col2 + col0 AS col2 FROM tab2
----
44
63
74

query I rowsort
SELECT DISTINCT col2 AS col1 FROM tab1 WHERE + col2 * col2 IN ( + col1 / 58 + 3 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-491
SELECT ALL SUM( ALL + col0 ) - SUM( col2 ) AS col2 FROM tab0
----
43

skipif mysql # not compatible
query I rowsort label-491
SELECT ALL SUM ( ALL + col0 ) - SUM ( col2 ) AS col2 FROM tab0
----
43

query I rowsort
SELECT 42 + col0 AS col1 FROM tab0 WHERE + col1 >= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col1 >= ( col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-494
SELECT * FROM tab2 WHERE ( NULL ) BETWEEN CAST( - col1 AS SIGNED ) AND ( + col2 / 11 + col1 / - col0 )
----

skipif mysql # not compatible
query III rowsort label-494
SELECT * FROM tab2 WHERE ( NULL ) BETWEEN CAST ( - col1 AS INTEGER ) AND ( + col2 / 11 + col1 / - col0 )
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-496
SELECT 26 * MAX( DISTINCT 45 ) AS col2 FROM tab2 WHERE ( NULL ) < + 61 + - col2
----
NULL

skipif mysql # not compatible
query I rowsort label-496
SELECT 26 * MAX ( DISTINCT 45 ) AS col2 FROM tab2 WHERE ( NULL ) < + 61 + - col2
----
NULL

query I rowsort
SELECT 54 * + col0 AS col2 FROM tab0
----
4698
5238
810

query I rowsort
SELECT - 43 * 34 FROM tab0
----
-1462
-1462
-1462

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

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

query III rowsort
SELECT * FROM tab1 WHERE + col0 NOT BETWEEN 6 * 37 AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col2 * 23 + - col1 * - col0 AS col0 FROM tab1
----
1782
2922
5841

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + 92 ) + + 22 * - col0 col0 FROM tab1
----
-1030
-1778
-1910

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - 91 / - col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-504
SELECT ALL + COUNT( * ) DIV + 43 AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-504
SELECT ALL + COUNT ( * ) / + 43 AS col2 FROM tab2
----
0

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

skipif mysql # not compatible
query III rowsort label-505
SELECT DISTINCT * FROM tab2 WHERE NOT CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) > - col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-506
SELECT ALL - col1 DIV + 44 FROM tab1
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-506
SELECT ALL - col1 / + 44 FROM tab1
----
-1
0
0

query I rowsort
SELECT DISTINCT + 83 AS col0 FROM tab1
----
83

onlyif mysql # DIV for integer division: 
query I rowsort label-508
SELECT DISTINCT + col0 DIV + 60 FROM tab1
----
0
1

skipif mysql # not compatible
query I rowsort label-508
SELECT DISTINCT + col0 / + 60 FROM tab1
----
0
1

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

onlyif mysql # DIV for integer division: 
query I rowsort label-510
SELECT DISTINCT + col1 DIV + col0 col2 FROM tab0
----
0
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-510
SELECT DISTINCT + col1 / + col0 col2 FROM tab0
----
0
5

onlyif mysql # aggregate syntax: 
query I rowsort label-511
SELECT DISTINCT COUNT( * ) AS col2 FROM tab1 WHERE + 88 IN ( + col0 )
----
0

skipif mysql # not compatible
query I rowsort label-511
SELECT DISTINCT COUNT ( * ) AS col2 FROM tab1 WHERE + 88 IN ( + col0 )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-512
SELECT - 26 DIV - 29 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-512
SELECT - 26 / - 29 FROM tab2
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-513
SELECT 32 DIV + col1 + 6 FROM tab1
----
12
6
8

skipif mysql # not compatible
query I rowsort label-513
SELECT 32 / + col1 + 6 FROM tab1
----
12
6
8

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

query I rowsort
SELECT DISTINCT ( + 43 ) - + col2 * 50 AS col0 FROM tab1
----
-2907
-3357
-4757

query I rowsort
SELECT DISTINCT - 19 / + col1 + - 96 FROM tab0 AS cor0 WHERE + col0 IS NULL
----

query I rowsort
SELECT ALL 18 - col1 AS col2 FROM tab1 AS cor0
----
-29
13
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * col0 + + col1 col2 FROM tab1 AS cor0
----
-2587
-7220
-8234

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-520
SELECT DISTINCT * FROM tab0 WHERE NOT ( CAST( - 43 AS SIGNED ) ) NOT BETWEEN NULL AND col0
----

skipif mysql # not compatible
query III rowsort label-520
SELECT DISTINCT * FROM tab0 WHERE NOT ( CAST ( - 43 AS INTEGER ) ) NOT BETWEEN NULL AND col0
----

query I rowsort
SELECT - 8 * - 73 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2
----
9 values hashing to b5b3ec254da70c5b2e1cbeaee88e353a

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

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

query I rowsort
SELECT DISTINCT col1 * + 40 AS col0 FROM tab1 AS cor0
----
1880
200
560

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 40 + 69 >= NULL
----

query I rowsort
SELECT - + 32 * - col0 FROM tab2 AS cor0
----
1472
2048
2400

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

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

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

skipif mysql # not compatible
query I rowsort label-527
SELECT - AVG ( DISTINCT + CAST ( NULL AS INTEGER ) ) * - 47 AS col2 FROM tab1 cor0
----
NULL

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

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( 69 ) > ( NULL )
----

query I rowsort
SELECT ALL 23 AS col2 FROM tab0 WHERE - 8 NOT BETWEEN ( col1 + + col2 ) AND NULL
----
23
23
23

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-533
SELECT + SUM( - 27 ) FROM tab0
----
-81

skipif mysql # not compatible
query I rowsort label-533
SELECT + SUM ( - 27 ) FROM tab0
----
-81

query I rowsort
SELECT ALL col0 + - 35 + + col1 * ( + col2 ) AS col1 FROM tab1
----
1360
3252
345

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-535
SELECT DISTINCT COUNT( DISTINCT col0 ) * 81 FROM tab2 AS cor0 WHERE NOT col2 BETWEEN CAST( NULL AS DECIMAL ) * - col2 - ( + col0 ) * + col2 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-535
SELECT DISTINCT COUNT ( DISTINCT col0 ) * 81 FROM tab2 AS cor0 WHERE NOT col2 BETWEEN CAST ( NULL AS REAL ) * - col2 - ( + col0 ) * + col2 AND NULL
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-536
SELECT DISTINCT + CAST( + AVG ( ALL + col1 ) AS SIGNED ) + + 18 * - COUNT( ALL - CAST( 67 AS SIGNED ) ) AS col1 FROM tab2 AS cor0
----
11

skipif mysql # not compatible
query I rowsort label-536
SELECT DISTINCT + CAST ( + AVG ( ALL + col1 ) AS INTEGER ) + + 18 * - COUNT ( ALL - CAST ( 67 AS INTEGER ) ) AS col1 FROM tab2 AS cor0
----
11

query I rowsort
SELECT - - col1 * + col1 + - 2 AS col2 FROM tab2 AS cor0
----
2599
4487
5927

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-538
SELECT - CAST( col0 AS SIGNED ) DIV - col1 + 51 * col0 FROM tab2 AS cor0 WHERE - 99 NOT BETWEEN col0 AND ( NULL )
----
2346
3264
3826

skipif mysql # not compatible
query I rowsort label-538
SELECT - CAST ( col0 AS INTEGER ) / - col1 + 51 * col0 FROM tab2 AS cor0 WHERE - 99 NOT BETWEEN col0 AND ( NULL )
----
2346
3264
3826

onlyif mysql # aggregate syntax: 
query I rowsort label-539
SELECT ALL - 5 * + MAX( + col2 ) + 17 FROM tab1 AS cor0
----
-463

skipif mysql # not compatible
query I rowsort label-539
SELECT ALL - 5 * + MAX ( + col2 ) + 17 FROM tab1 AS cor0
----
-463

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

query I rowsort
SELECT col1 * - col1 * + 60 AS col2 FROM tab0
----
-26460
-393660
-60

query I rowsort
SELECT ALL + + 92 AS col1 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 516fa45c8b06f9f67d6e500bfd435c1a

query I rowsort
SELECT DISTINCT - col1 - 34 AS col0 FROM tab2 WHERE NOT ( NOT NULL NOT BETWEEN - col2 AND NULL )
----

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

query I rowsort
SELECT col2 * + + 10 FROM tab2
----
230
400
580

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - - col2 + 48 <> + 10
----

query I rowsort
SELECT DISTINCT 73 * + 91 + + 57 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
6700

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 70 IN ( - col0 + - col0 )
----

query I rowsort
SELECT DISTINCT - + col0 + - 94 FROM tab0 AS cor0
----
-109
-181
-191

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

query I rowsort
SELECT ALL - + col0 * - 47 + - col2 + col1 * + col2 AS col0 FROM tab0 AS cor0
----
4289
4465
4559

query I rowsort
SELECT DISTINCT + col0 * + col1 * - 45 + col0 * 76 FROM tab0 AS cor0
----
-53535
-75603
3007

query I rowsort
SELECT - - col2 - + + col0 * col1 + + 98 FROM tab0 AS cor0
----
-1070
-1719
100

query I rowsort
SELECT ALL col0 + 67 AS col0 FROM tab0 cor0
----
154
164
82

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - 2 NOT BETWEEN - - 88 + - col0 AND col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL col2 * col2 + - col0 + - ( col0 + + col2 ) FROM tab1 AS cor0
----
3252
4374
9018

query I rowsort
SELECT + col1 AS col1 FROM tab0 cor0 WHERE NULL IS NULL
----
1
21
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-558
SELECT DISTINCT - 93 * - COUNT( ALL + 40 ) - - CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-558
SELECT DISTINCT - 93 * - COUNT ( ALL + 40 ) - - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 53 * + 27 col0 FROM tab1 AS cor0 WHERE 1 NOT BETWEEN NULL AND + col0 * - col2 OR NOT ( col1 / col1 ) BETWEEN ( - col2 ) AND ( NULL )
----
1431
1431
1431

onlyif mysql # DIV for integer division: 
query I rowsort label-560
SELECT - col1 + - 56 DIV - + 85 * - 19 AS col1 FROM tab0 AS cor0
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-560
SELECT - col1 + - 56 / - + 85 * - 19 AS col1 FROM tab0 AS cor0
----
-1
-21
-81

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

query I rowsort
SELECT + + 8 * - + col2 * 30 FROM tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-563
SELECT 86 * - COUNT( * ) FROM tab2
----
-258

skipif mysql # not compatible
query I rowsort label-563
SELECT 86 * - COUNT ( * ) FROM tab2
----
-258

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-565
SELECT col1 * CAST( NULL AS SIGNED ) / + 9 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-565
SELECT col1 * CAST ( NULL AS INTEGER ) / + 9 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-566
SELECT * FROM tab1 AS cor0 WHERE NOT + 62 + + - 9 * + col0 <= CAST( - col2 AS SIGNED ) / + col2
----

skipif mysql # not compatible
query III rowsort label-566
SELECT * FROM tab1 AS cor0 WHERE NOT + 62 + + - 9 * + col0 <= CAST ( - col2 AS INTEGER ) / + col2
----

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

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

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

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

query III rowsort
SELECT ALL * FROM tab0 WHERE ( 73 * - 3 + + 18 + - col0 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + col2 / + - 32 + - 88 FROM tab1 WHERE + col2 IS NULL
----

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

query I rowsort
SELECT + - col0 * - 95 FROM tab1 AS cor0
----
4845
8075
8645

onlyif mysql # aggregate syntax: 
query I rowsort label-574
SELECT + COUNT( * ) * + - 58 FROM tab2 AS cor0
----
-174

skipif mysql # not compatible
query I rowsort label-574
SELECT + COUNT ( * ) * + - 58 FROM tab2 AS cor0
----
-174

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

skipif mysql # not compatible
query I rowsort label-575
SELECT + COUNT ( * ) + + + 76 FROM tab0 cor0
----
79

query II rowsort
SELECT + - 17 * col2 + + 21 AS col2, 66 AS col0 FROM tab2 AS cor0
----
-370
66
-659
66
-965
66

query I rowsort
SELECT + col1 / + + col1 + + 49 AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

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

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

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

query II rowsort
SELECT + col0, + col2 AS col1 FROM tab2
----
46
23
64
40
75
58

query I rowsort
SELECT DISTINCT ( 78 ) AS col2 FROM tab0
----
78

query I rowsort
SELECT col1 - col0 FROM tab2 WHERE NOT ( col0 + - col2 ) <= + col1
----

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

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

skipif mysql # not compatible
query I rowsort label-584
SELECT - ( - MAX ( DISTINCT - col0 ) ) AS col0 FROM tab2 WHERE NULL >= + col2 + + - col0
----
NULL

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

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

query II rowsort
SELECT 34 AS col1, col2 * + col2 * + col2 FROM tab2 AS cor0
----
34
12167
34
195112
34
64000

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

query I rowsort
SELECT col2 * + 92 FROM tab2 AS cor0
----
2116
3680
5336

query I rowsort
SELECT DISTINCT 99 + 63 AS col2 FROM tab2 AS cor0
----
162

onlyif mysql # aggregate syntax: 
query I rowsort label-590
SELECT ALL - - MAX( DISTINCT - 93 ) AS col1 FROM tab0 AS cor0
----
-93

skipif mysql # not compatible
query I rowsort label-590
SELECT ALL - - MAX ( DISTINCT - 93 ) AS col1 FROM tab0 AS cor0
----
-93

query I rowsort
SELECT + 26 + col0 + + + col1 * - + 74 * - 98 AS col1 FROM tab1
----
101605
340961
36371

query I rowsort
SELECT col2 * + - col2 + + 18 FROM tab1
----
-3463
-4606
-9198

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 50 + + col0 col1 FROM tab2 AS cor0
----
114
125
96

query I rowsort
SELECT DISTINCT col2 FROM tab1 AS cor0 WHERE NOT NULL > col0 / + + ( + ( 81 ) )
----

query I rowsort
SELECT - col0 * + 24 FROM tab1 AS cor0 WHERE + 51 >= col2 * - col0 * 63 + - col0 - 92 + + 17 * + col1
----
-1224
-2040
-2184

query I rowsort
SELECT 69 + + col1 AS col0 FROM tab2 cor0 WHERE NULL IS NOT NULL
----

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

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

query I rowsort
SELECT 44 AS col0 FROM tab1 cor0
----
44
44
44

onlyif mysql # aggregate syntax: 
query I rowsort label-599
SELECT DISTINCT - + 4 + + ( + - COUNT( * ) ) AS col1 FROM tab1 AS cor0
----
-7

skipif mysql # not compatible
query I rowsort label-599
SELECT DISTINCT - + 4 + + ( + - COUNT ( * ) ) AS col1 FROM tab1 AS cor0
----
-7

query I rowsort
SELECT - col2 FROM tab1 AS cor0 WHERE ( NULL ) IN ( - 77 )
----

query I rowsort
SELECT DISTINCT 20 FROM tab2 AS cor0 WHERE 54 NOT IN ( 51 + + col2 )
----
20

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 IN ( - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-603
SELECT DISTINCT + 70 + - - ( ( - 38 ) ) - - + COUNT( * ) * 46 AS col2 FROM tab1
----
170

skipif mysql # not compatible
query I rowsort label-603
SELECT DISTINCT + 70 + - - ( ( - 38 ) ) - - + COUNT ( * ) * 46 AS col2 FROM tab1
----
170

query I rowsort
SELECT ALL 7 * 53 FROM tab1
----
371
371
371

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 44 * - 64 col1, 76 AS col0 FROM tab0
----
-2816
76
-2816
76
-2816
76

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

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

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

query I rowsort
SELECT DISTINCT + 45 * col2 FROM tab0 cor0 WHERE ( NULL ) IS NULL
----
2115
4455
450

query II rowsort
SELECT + col2 * - 25, 53 AS col0 FROM tab1 AS cor0
----
-1475
53
-1700
53
-2400
53

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-615
SELECT DISTINCT MAX( ALL + 59 ) AS col2 FROM tab0
----
59

skipif mysql # not compatible
query I rowsort label-615
SELECT DISTINCT MAX ( ALL + 59 ) AS col2 FROM tab0
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-616
SELECT DISTINCT + 31 * - SUM( 79 ) * - + 8 AS col2 FROM tab2
----
58776

skipif mysql # not compatible
query I rowsort label-616
SELECT DISTINCT + 31 * - SUM ( 79 ) * - + 8 AS col2 FROM tab2
----
58776

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * + - col0 col1 FROM tab2
----
-2116
-4096
-5625

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

onlyif mysql # aggregate syntax: 
query I rowsort label-619
SELECT MIN( - + col2 ) + + + COUNT( * ) AS col2 FROM tab0
----
-96

skipif mysql # not compatible
query I rowsort label-619
SELECT MIN ( - + col2 ) + + + COUNT ( * ) AS col2 FROM tab0
----
-96

query II rowsort
SELECT DISTINCT 77 AS col0, col1 FROM tab1
----
77
14
77
47
77
5

query I rowsort
SELECT ALL - col0 FROM tab0 WHERE - 66 IS NOT NULL
----
-15
-87
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-622
SELECT + - 46 + - 69 FROM tab0 WHERE 49 * - CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-622
SELECT + - 46 + - 69 FROM tab0 WHERE 49 * - CAST ( NULL AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT + - col0 + col1 + + 80 FROM tab0 AS cor0
----
-16
14
146

query I rowsort
SELECT ALL - + 94 * - 20 * + col1 + - 93 * - col1 * + + col2 FROM tab2 AS cor0
----
204969
431200
487358

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

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

query I rowsort
SELECT - + 85 * - + col0 AS col1 FROM tab0 AS cor0
----
1275
7395
8245

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 31 * + 19 * + col2 + - + col2 col1 FROM tab2 AS cor0
----
-13570
-23600
-34220

query I rowsort
SELECT ALL col2 * + + col2 - + 32 FROM tab2
----
1568
3332
497

query I rowsort
SELECT DISTINCT - ( - 49 ) * - col2 AS col0 FROM tab0
----
-2303
-4851
-490

query I rowsort
SELECT ALL 16 * - - col2 * + col0 FROM tab2
----
16928
40960
69600

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-631
SELECT * FROM tab2 cor0 WHERE col2 * - - CAST( NULL AS DECIMAL ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-631
SELECT * FROM tab2 cor0 WHERE col2 * - - CAST ( NULL AS REAL ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

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

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-635
SELECT ( + col2 ), - col2 DIV + 48 FROM tab1
----
59
-1
68
-1
96
-2

skipif mysql # not compatible
query II rowsort label-635
SELECT ( + col2 ), - col2 / + 48 FROM tab1
----
59
-1
68
-1
96
-2

query I rowsort
SELECT ALL col0 * - col2 * col0 FROM tab1
----
-249696
-426275
-563108

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-637
SELECT ALL - 35 * - + CAST ( NULL AS INTEGER ) col1, - col0 * + 1 FROM tab1
----
NULL
-51
NULL
-85
NULL
-91

onlyif mysql # DIV for integer division: 
query I rowsort label-638
SELECT DISTINCT - 30 DIV + col0 AS col2 FROM tab0
----
-2
0

skipif mysql # not compatible
query I rowsort label-638
SELECT DISTINCT - 30 / + col0 AS col2 FROM tab0
----
-2
0

query I rowsort
SELECT 53 * col2 AS col0 FROM tab2
----
1219
2120
3074

query I rowsort
SELECT col0 * col2 * - + col2 FROM tab1
----
-295885
-420784
-470016

onlyif mysql # DIV for integer division: 
query I rowsort label-641
SELECT DISTINCT 89 DIV + col0 FROM tab0
----
0
1
5

skipif mysql # not compatible
query I rowsort label-641
SELECT DISTINCT 89 / + col0 FROM tab0
----
0
1
5

query II rowsort
SELECT ( + - 80 ) * + col2, col0 AS col2 FROM tab2
----
-1840
46
-3200
64
-4640
75

query I rowsort
SELECT - col0 FROM tab1 WHERE NOT + 34 + + col0 + - 84 - - + 64 - - 51 / + + 8 IS NULL
----
-51
-85
-91

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-645
SELECT 54, CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) + CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0 WHERE NOT ( col0 ) IS NULL
----
54
NULL
54
NULL
54
NULL

skipif mysql # not compatible
query II rowsort label-645
SELECT 54, CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0 WHERE NOT ( col0 ) IS NULL
----
54
NULL
54
NULL
54
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-646
SELECT ALL - COUNT( * ) + + + SUM( + - col2 ) AS col2 FROM tab1 AS cor0
----
-226

skipif mysql # not compatible
query I rowsort label-646
SELECT ALL - COUNT ( * ) + + + SUM ( + - col2 ) AS col2 FROM tab1 AS cor0
----
-226

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

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

query I rowsort
SELECT ALL col2 * - + col2 * + - 67 + - + col0 + col1 + col0 AS col0 FROM tab1 AS cor0
----
233232
309855
617486

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

query I rowsort
SELECT col0 + - + 5 AS col2 FROM tab1 AS cor0
----
46
80
86

query II rowsort
SELECT ALL col1 - + 61 AS col0, 31 + - 53 FROM tab0 cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-653
SELECT - + 54 * COUNT( * ) + + 77 AS col1 FROM tab2 cor0
----
-85

skipif mysql # not compatible
query I rowsort label-653
SELECT - + 54 * COUNT ( * ) + + 77 AS col1 FROM tab2 cor0
----
-85

query I rowsort
SELECT - 85 + + col1 AS col1 FROM tab2 AS cor0
----
-18
-34
-8

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

onlyif mysql # DIV for integer division: 
query I rowsort label-656
SELECT + + 32 DIV + 59 AS col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-656
SELECT + + 32 / + 59 AS col0 FROM tab2 AS cor0
----
0
0
0

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

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

query I rowsort
SELECT DISTINCT + 19 * + col2 + - col1 + ( - col0 ) AS col2 FROM tab2
----
340
619
960

query I rowsort
SELECT ( + - 69 ) * - - col0 AS col1 FROM tab0
----
-1035
-6003
-6693

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

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

query II rowsort
SELECT DISTINCT + 75 * - ( - - col0 ) * col0 AS col0, + col0 AS col2 FROM tab2
----
-158700
46
-307200
64
-421875
75

query I rowsort
SELECT + ( - col0 ) * + col2 - - col1 AS col0 FROM tab0 AS cor0
----
-624
-849
-9602

onlyif mysql # aggregate syntax: 
query I rowsort label-664
SELECT ALL - COUNT( * ) + + - 20 * - + SUM( - col2 ) AS col0 FROM tab0 cor0
----
-3123

skipif mysql # not compatible
query I rowsort label-664
SELECT ALL - COUNT ( * ) + + - 20 * - + SUM ( - col2 ) AS col0 FROM tab0 cor0
----
-3123

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-665
SELECT col2 * 47 - - CAST( - col0 AS SIGNED ) FROM tab1 AS cor0
----
2688
3105
4461

skipif mysql # not compatible
query I rowsort label-665
SELECT col2 * 47 - - CAST ( - col0 AS INTEGER ) FROM tab1 AS cor0
----
2688
3105
4461

query II rowsort
SELECT ALL - 2 + 3, col2 AS col1 FROM tab2 AS cor0
----
1
23
1
40
1
58

query III rowsort
SELECT * FROM tab1 WHERE NULL NOT IN ( + 18 - 6 + - + 17, col0 + 41, - col0 + - - col1 )
----

query I rowsort
SELECT - 23 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to ce60bf4b0647d0fcb18a0562e351c52d

query I rowsort
SELECT ALL - 2 AS col1 FROM tab0
----
-2
-2
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-670
SELECT DISTINCT COUNT( * ) * MAX( DISTINCT + 80 ) FROM tab0
----
240

skipif mysql # not compatible
query I rowsort label-670
SELECT DISTINCT COUNT ( * ) * MAX ( DISTINCT + 80 ) FROM tab0
----
240

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + ( - - col1 ) col0 FROM tab2 AS cor0
----
51
67
77

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

onlyif mysql # aggregate syntax: 
query I rowsort label-674
SELECT - 0 * - - COUNT( * ) FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-674
SELECT - 0 * - - COUNT ( * ) FROM tab1 cor0
----
0

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * 66 col1 FROM tab2 AS cor0
----
-3036
-4224
-4950

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-678
SELECT DISTINCT - SUM( DISTINCT 81 ) FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-678
SELECT DISTINCT - SUM ( DISTINCT 81 ) FROM tab0 AS cor0
----
-81

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

skipif mysql # not compatible
query I rowsort label-679
SELECT + COUNT ( * ) / + - 6 + + AVG ( ALL CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL col2 * 26 FROM tab1 AS cor0
----
1534
1768
2496

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * 99 * - col0 col0 FROM tab2
----
-209484
-405504
-556875

onlyif mysql # DIV for integer division: 
query I rowsort label-685
SELECT DISTINCT col0 DIV - 57 AS col1 FROM tab1
----
-1
0

skipif mysql # not compatible
query I rowsort label-685
SELECT DISTINCT col0 / - 57 AS col1 FROM tab1
----
-1
0

onlyif mysql # aggregate syntax: 
query II rowsort label-686
SELECT DISTINCT COUNT( * ) col0, 89 * - 85 FROM tab0
----
3
-7565

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-686
SELECT DISTINCT COUNT ( * ) col0, 89 * - 85 FROM tab0
----
3
-7565

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-687
SELECT + col2 * - CAST( 58 AS SIGNED ) AS col0 FROM tab2
----
-1334
-2320
-3364

skipif mysql # not compatible
query I rowsort label-687
SELECT + col2 * - CAST ( 58 AS INTEGER ) AS col0 FROM tab2
----
-1334
-2320
-3364

query II rowsort
SELECT col2 * - - 3 AS col0, - col1 FROM tab2
----
120
-77
174
-67
69
-51

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + col2 col2, + ( - - col2 ) + + col1 - ( - col1 ) * - + ( + col2 ) * ( - 8 ) AS col2 FROM tab1 AS cor0
----
59
2424
68
25683
96
10862

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-691
SELECT ALL - MAX( ( col0 ) ) DIV - MAX( - col2 ) AS col2 FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-691
SELECT ALL - MAX ( ( col0 ) ) / - MAX ( - col2 ) AS col2 FROM tab1 AS cor0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-692
SELECT + + MAX( 57 ) AS col1 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
57

skipif mysql # not compatible
query I rowsort label-692
SELECT + + MAX ( 57 ) AS col1 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
57

onlyif mysql # aggregate syntax: 
query II rowsort label-693
SELECT ALL + MIN( - col1 ) AS col1, + COUNT( * ) AS col2 FROM tab2
----
-77
3

skipif mysql # not compatible
query II rowsort label-693
SELECT ALL + MIN ( - col1 ) AS col1, + COUNT ( * ) AS col2 FROM tab2
----
-77
3

query I rowsort
SELECT ALL - col0 * + col2 * - col2 + col2 * + col2 AS col2 FROM tab2 cor0
----
104000
24863
255664

onlyif mysql # aggregate syntax: 
query I rowsort label-695
SELECT ALL + MAX( - col2 ) FROM tab1 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-695
SELECT ALL + MAX ( - col2 ) FROM tab1 AS cor0
----
-59

onlyif mysql # DIV for integer division: 
query I rowsort label-696
SELECT DISTINCT 46 DIV + + 86 AS col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-696
SELECT DISTINCT 46 / + + 86 AS col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
0

query II rowsort
SELECT ALL 99 * + col1 + + col0 AS col2, - 3 FROM tab2
----
5095
-3
6708
-3
7687
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-698
SELECT DISTINCT 48 AS col1, + MIN( - - 80 ) AS col2 FROM tab2
----
48
80

skipif mysql # not compatible
query II rowsort label-698
SELECT DISTINCT 48 AS col1, + MIN ( - - 80 ) AS col2 FROM tab2
----
48
80

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

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

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

query I rowsort
SELECT 36 + ( 59 ) - - col1 AS col1 FROM tab1
----
100
109
142

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

onlyif mysql # aggregate syntax: 
query I rowsort label-703
SELECT ( 53 ) + - - COUNT( * ) * - 0 FROM tab2
----
53

skipif mysql # not compatible
query I rowsort label-703
SELECT ( 53 ) + - - COUNT ( * ) * - 0 FROM tab2
----
53

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

query I rowsort
SELECT - col0 + 94 FROM tab1
----
3
43
9

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE - 17 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + col0 < + - 74 * col1
----

query I rowsort
SELECT - 36 + - + col2 FROM tab2 AS cor0
----
-59
-76
-94

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-710
SELECT - col2 * - + 3 + - CAST( - col1 AS SIGNED ) FROM tab0 cor0
----
222
298
51

skipif mysql # not compatible
query I rowsort label-710
SELECT - col2 * - + 3 + - CAST ( - col1 AS INTEGER ) FROM tab0 cor0
----
222
298
51

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

query I rowsort
SELECT ALL col0 - + + col0 * - - col0 AS col2 FROM tab1 AS cor0
----
-2550
-7140
-8190

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

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

query I rowsort
SELECT + col1 - 55 + - col1 * - col0 FROM tab1
----
375
4269
673

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

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

query I rowsort
SELECT + col0 FROM tab2 AS cor0 WHERE NOT 64 = col2
----
46
64
75

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-719
SELECT + col1 FROM tab1 AS cor0 WHERE NOT col0 > - + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-719
SELECT + col1 FROM tab1 AS cor0 WHERE NOT col0 > - + CAST ( NULL AS INTEGER )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-720
SELECT + - CAST( 48 AS SIGNED ) DIV - + COUNT( * ) col0 FROM tab1 AS cor0
----
16

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-720
SELECT + - CAST ( 48 AS INTEGER ) / - + COUNT ( * ) col0 FROM tab1 AS cor0
----
16

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

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

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

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

query II rowsort
SELECT + 73 AS col1, - col0 AS col1 FROM tab0
----
73
-15
73
-87
73
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-725
SELECT ALL - COUNT( * ) * + 8 AS col2 FROM tab1
----
-24

skipif mysql # not compatible
query I rowsort label-725
SELECT ALL - COUNT ( * ) * + 8 AS col2 FROM tab1
----
-24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-726
SELECT COUNT( * ) DIV 2 AS col0 FROM tab2 WHERE NOT + - col1 <> - + CAST( - 84 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-726
SELECT COUNT ( * ) / 2 AS col0 FROM tab2 WHERE NOT + - col1 <> - + CAST ( - 84 AS INTEGER )
----
0

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-727
SELECT ALL - + 39 / - ( + col2 ) col0 FROM tab0 AS cor0
----
0
0
3

query I rowsort
SELECT DISTINCT col2 * 55 * + col0 FROM tab1 AS cor0
----
269280
275825
340340

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-729
SELECT DISTINCT 84, - COUNT( * ) DIV + 11 + COUNT( * ) col1 FROM tab1
----
84
3

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

onlyif mysql # aggregate syntax: 
query II rowsort label-730
SELECT DISTINCT 74 col2, MIN( ( + 68 ) ) AS col2 FROM tab0
----
74
68

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-730
SELECT DISTINCT 74 col2, MIN ( ( + 68 ) ) AS col2 FROM tab0
----
74
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-731
SELECT + CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-731
SELECT + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL + col1 FROM tab1 AS cor0 WHERE NULL IS NULL
----
14
47
5

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

onlyif mysql # aggregate syntax: 
query I rowsort label-734
SELECT MAX( ALL - 55 ) + - COUNT( * ) AS col2 FROM tab0 cor0
----
-58

skipif mysql # not compatible
query I rowsort label-734
SELECT MAX ( ALL - 55 ) + - COUNT ( * ) AS col2 FROM tab0 cor0
----
-58

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

query I rowsort
SELECT ALL col0 + + + 25 FROM tab0 cor0
----
112
122
40

onlyif mysql # aggregate syntax: 
query I rowsort label-737
SELECT - 69 + + MIN( - + ( + col0 ) ) AS col2 FROM tab1 AS cor0
----
-160

skipif mysql # not compatible
query I rowsort label-737
SELECT - 69 + + MIN ( - + ( + col0 ) ) AS col2 FROM tab1 AS cor0
----
-160

query I rowsort
SELECT + col1 + + - col0 FROM tab2 AS cor0
----
-8
13
5

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-741
SELECT DISTINCT 51 + + - 70 DIV - COUNT( * ) + + COUNT( * ) + + - 28 FROM tab2 AS cor0
----
49

skipif mysql # not compatible
query I rowsort label-741
SELECT DISTINCT 51 + + - 70 / - COUNT ( * ) + + COUNT ( * ) + + - 28 FROM tab2 AS cor0
----
49

query I rowsort
SELECT 27 * - + col0 FROM tab2 AS cor0
----
-1242
-1728
-2025

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-745
SELECT ALL + col0 + - - 48 DIV - 15 FROM tab1
----
48
82
88

skipif mysql # not compatible
query I rowsort label-745
SELECT ALL + col0 + - - 48 / - 15 FROM tab1
----
48
82
88

query I rowsort
SELECT + col0 - + - col1 + - 84 * - + col0 AS col2 FROM tab1
----
4349
7230
7782

query I rowsort
SELECT ALL + - 83 + - col0 + - 39 * - ( + + col2 ) * - 0 AS col1 FROM tab2 AS cor0
----
-129
-147
-158

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-750
SELECT ALL - 98 + + col0 DIV + - col1 AS col0 FROM tab1 AS cor0
----
-101
-115
-99

skipif mysql # not compatible
query I rowsort label-750
SELECT ALL - 98 + + col0 / + - col1 AS col0 FROM tab1 AS cor0
----
-101
-115
-99

query I rowsort
SELECT DISTINCT - ( - + ( - 75 ) ) - - col0 FROM tab2 AS cor0
----
-11
-29
0

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

query I rowsort
SELECT - col1 * - col1 + - + 35 AS col1 FROM tab1
----
-10
161
2174

onlyif mysql # aggregate syntax: 
query I rowsort label-754
SELECT + - COUNT( * ) * - COUNT( * ) FROM tab1 WHERE NOT NULL IS NOT NULL
----
9

skipif mysql # not compatible
query I rowsort label-754
SELECT + - COUNT ( * ) * - COUNT ( * ) FROM tab1 WHERE NOT NULL IS NOT NULL
----
9

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT 40 * col1 IS NOT NULL
----

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

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

query I rowsort
SELECT 50 * + - col0 FROM tab2
----
-2300
-3200
-3750

query II rowsort
SELECT + 64, col2 * + ( - - col1 ) + col1 AS col1 FROM tab0
----
64
100
64
231
64
3888

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

query II rowsort
SELECT + col2 AS col2, 4 * - col2 FROM tab1 AS cor0
----
59
-236
68
-272
96
-384

onlyif mysql # aggregate syntax: 
query I rowsort label-761
SELECT ALL + - COUNT( ALL col0 ) * + 44 FROM tab0 AS cor0
----
-132

skipif mysql # not compatible
query I rowsort label-761
SELECT ALL + - COUNT ( ALL col0 ) * + 44 FROM tab0 AS cor0
----
-132

query I rowsort
SELECT + ( - - 77 ) AS col1 FROM tab1 cor0
----
77
77
77

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

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

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

skipif mysql # not compatible
query I rowsort label-764
SELECT - CAST ( + - col0 AS INTEGER ) AS col1 FROM tab0
----
15
87
97

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-765
SELECT - col2 * CAST( NULL AS SIGNED ) AS col2, 25 FROM tab1
----
NULL
25
NULL
25
NULL
25

skipif mysql # not compatible
query II rowsort label-765
SELECT - col2 * CAST ( NULL AS INTEGER ) AS col2, 25 FROM tab1
----
NULL
25
NULL
25
NULL
25

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

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

query I rowsort
SELECT ALL - + 30 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 56fa25f9fb8040460fe3c894000ea8fb

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-768
SELECT COUNT( * ) AS col0 FROM tab0 WHERE - col2 * - + col2 > col0 * - - CAST( NULL AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-768
SELECT COUNT ( * ) AS col0 FROM tab0 WHERE - col2 * - + col2 > col0 * - - CAST ( NULL AS INTEGER )
----
0

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

skipif mysql # not compatible
query I rowsort label-769
SELECT DISTINCT COUNT ( * ) * - CAST ( - COUNT ( * ) AS INTEGER ) AS col0 FROM tab1
----
9

query I rowsort
SELECT DISTINCT + 33 + + col2 FROM tab0 AS cor0
----
132
43
80

query I rowsort
SELECT - + 84 * - + col0 * + col1 FROM tab0 AS cor0
----
102060
153468
8148

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-773
SELECT DISTINCT - col0 * 14 * - col2 / + col2 + col0 + col1 * + col2 * - col1 + + 26 * - - CAST( NULL AS SIGNED ) AS col2, col2 AS col2, + - 73 * - - 41 AS col2 FROM tab1 AS cor0
----
9 values hashing to e7eac5da675577c17cdd4bcec7409442

skipif mysql # not compatible
query III rowsort label-773
SELECT DISTINCT - col0 * 14 * - col2 / + col2 + col0 + col1 * + col2 * - col1 + + 26 * - - CAST ( NULL AS INTEGER ) AS col2, col2 AS col2, + - 73 * - - 41 AS col2 FROM tab1 AS cor0
----
9 values hashing to e7eac5da675577c17cdd4bcec7409442

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

query I rowsort
SELECT - col1 + - + col0 AS col0 FROM tab0 AS cor0
----
-108
-96
-98

query II rowsort
SELECT DISTINCT + col1, - ( col0 ) FROM tab1
----
14
-51
47
-91
5
-85

query I rowsort
SELECT DISTINCT + 58 * - col0 AS col2 FROM tab2
----
-2668
-3712
-4350

query I rowsort
SELECT - 52 AS col0 FROM tab0 WHERE NULL <= NULL
----

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

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

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

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

query I rowsort
SELECT DISTINCT + col2 * + col1 * + col0 AS col2 FROM tab2
----
197120
291450
53958

query II rowsort
SELECT col2 AS col1, col1 AS col0 FROM tab0 WHERE NULL = + col2
----

query I rowsort
SELECT DISTINCT + + 86 FROM tab1 AS cor0 WHERE NOT col1 BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT + 35 AS col0 FROM tab1 AS cor0 WHERE NULL >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-785
SELECT DISTINCT - COUNT( * ) AS col1 FROM tab2 cor0 CROSS JOIN tab0 cor1 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-785
SELECT DISTINCT - COUNT ( * ) AS col1 FROM tab2 cor0 CROSS JOIN tab0 cor1 WHERE NOT NULL IS NULL
----
0

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + col1 * + - col0 * + col2 col2 FROM tab1 AS cor0
----
-1479425
-19776848
-6580224

onlyif mysql # aggregate syntax: 
query I rowsort label-791
SELECT DISTINCT - - SUM( ALL + 92 ) FROM tab2 AS cor0
----
276

skipif mysql # not compatible
query I rowsort label-791
SELECT DISTINCT - - SUM ( ALL + 92 ) FROM tab2 AS cor0
----
276

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-792
SELECT ALL + 73 / - col0 AS col0 FROM tab2 AS cor0 WHERE NOT + col1 <> + 93 * CAST( + col0 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-792
SELECT ALL + 73 / - col0 AS col0 FROM tab2 AS cor0 WHERE NOT + col1 <> + 93 * CAST ( + col0 AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-793
SELECT SUM( DISTINCT + col1 ) * + + 25 AS col0 FROM tab0
----
2575

skipif mysql # not compatible
query I rowsort label-793
SELECT SUM ( DISTINCT + col1 ) * + + 25 AS col0 FROM tab0
----
2575

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

onlyif mysql # aggregate syntax: 
query I rowsort label-795
SELECT COUNT( * ) * + - 8 AS col1 FROM tab0
----
-24

skipif mysql # not compatible
query I rowsort label-795
SELECT COUNT ( * ) * + - 8 AS col1 FROM tab0
----
-24

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-796
SELECT DISTINCT + 42 AS col0, - 59 * CAST( NULL AS DECIMAL ) + + col2 - - + col0 * col2 * + - CAST( + 42 AS SIGNED ) FROM tab1
----
42
NULL

skipif mysql # not compatible
query II rowsort label-796
SELECT DISTINCT + 42 AS col0, - 59 * CAST ( NULL AS REAL ) + + col2 - - + col0 * col2 * + - CAST ( + 42 AS INTEGER ) FROM tab1
----
42
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-797
SELECT DISTINCT + COUNT( * ) + + 52 + 29 AS col2 FROM tab0
----
84

skipif mysql # not compatible
query I rowsort label-797
SELECT DISTINCT + COUNT ( * ) + + 52 + 29 AS col2 FROM tab0
----
84

onlyif mysql # DIV for integer division: 
query I rowsort label-798
SELECT ALL - + col2 + - ( + col0 ) DIV + col2 AS col2 FROM tab2 AS cor0
----
-25
-41
-59

skipif mysql # not compatible
query I rowsort label-798
SELECT ALL - + col2 + - ( + col0 ) / + col2 AS col2 FROM tab2 AS cor0
----
-25
-41
-59

query II rowsort
SELECT col0, + col2 * - col1 AS col1 FROM tab1 AS cor0
----
51
-1344
85
-295
91
-3196

query I rowsort
SELECT - col1 * + + 5 FROM tab2 AS cor0
----
-255
-335
-385

query I rowsort
SELECT ALL - col2 FROM tab2 WHERE NOT NULL BETWEEN col1 AND + 72 + - 32 + + - 84
----

query III rowsort
SELECT * FROM tab0 WHERE + - ( col1 ) >= - col1 + - col2 * - - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

onlyif mysql # DIV for integer division: 
query I rowsort label-804
SELECT 31 + - + col2 DIV - col2 + - col2 * col0 + - 58 AS col0 FROM tab1 cor0 WHERE NULL IS NULL
----
-4922
-5041
-6214

skipif mysql # not compatible
query I rowsort label-804
SELECT 31 + - + col2 / - col2 + - col2 * col0 + - 58 AS col0 FROM tab1 cor0 WHERE NULL IS NULL
----
-4922
-5041
-6214

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

query II rowsort
SELECT ALL + 92 + + 98 AS col2, col2 * - col2 FROM tab0 AS cor0
----
190
-100
190
-2209
190
-9801

query I rowsort
SELECT ALL + col1 * - col0 + - col1 + + col0 * 43 + - 91 * + - col2 + + col0 AS col0 FROM tab2 AS cor0
----
1451
1720
3486

query II rowsort
SELECT - + ( - col0 ) AS col2, col1 * - + col1 AS col0 FROM tab0 AS cor0
----
15
-6561
87
-441
97
-1

onlyif mysql # DIV for integer division: 
query II rowsort label-809
SELECT ALL - 53 + + col1 + + ( + - 31 ), col1 * col2 * col1 + col2 DIV col2 + + - col2 + ( - col1 ) + + - col2 AS col1 FROM tab2 AS cor0
----
-17
260180
-33
59727
-7
237004

skipif mysql # not compatible
query II rowsort label-809
SELECT ALL - 53 + + col1 + + ( + - 31 ), col1 * col2 * col1 + col2 / col2 + + - col2 + ( - col1 ) + + - col2 AS col1 FROM tab2 AS cor0
----
-17
260180
-33
59727
-7
237004

query I rowsort
SELECT DISTINCT - - 40 FROM tab1 AS cor0 WHERE NULL BETWEEN col0 AND NULL
----

query I rowsort
SELECT DISTINCT + + 44 - col0 + 98 AS col1 FROM tab1 AS cor0
----
51
57
91

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

query III rowsort
SELECT * FROM tab0 WHERE NULL BETWEEN 49 AND NULL
----

query I rowsort
SELECT DISTINCT + 49 * col2 - - - col1 FROM tab2
----
1076
1883
2775

query I rowsort
SELECT - + col0 FROM tab2 WHERE NULL < NULL
----

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

query I rowsort
SELECT DISTINCT 94 * + col0 AS col0 FROM tab1
----
4794
7990
8554

onlyif mysql # DIV for integer division: 
query I rowsort label-818
SELECT ALL + col0 DIV - + col0 FROM tab0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-818
SELECT ALL + col0 / - + col0 FROM tab0
----
-1
-1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-819
SELECT DISTINCT - COUNT( * ) * - - 55 FROM tab0
----
-165

skipif mysql # not compatible
query I rowsort label-819
SELECT DISTINCT - COUNT ( * ) * - - 55 FROM tab0
----
-165

query I rowsort
SELECT ALL 40 + col2 AS col1 FROM tab2
----
63
80
98

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

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

query I rowsort
SELECT - col1 * 94 + + + col0 * + - col1 FROM tab1
----
-2030
-8695
-895

query II rowsort
SELECT DISTINCT + 85, 53 AS col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
85
53

query I rowsort
SELECT + col1 * - col2 + + + 50 + 90 AS col1 FROM tab2 AS cor0
----
-1033
-2940
-3746

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - col0 ) col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
51
85
91

query I rowsort
SELECT - col1 FROM tab0 AS cor0 WHERE NOT 36 IS NOT NULL
----

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

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

query II rowsort
SELECT - 51 * col1 + + col2 AS col0, - 56 + - col0 AS col2 FROM tab0 cor0
----
-1061
-143
-4084
-71
48
-153

query I rowsort
SELECT - ( ( + - ( col1 ) ) ) * + 38 AS col1 FROM tab1 AS cor0
----
1786
190
532

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

onlyif mysql # aggregate syntax: 
query II rowsort label-832
SELECT + 32 AS col1, COUNT( * ) FROM tab1 AS cor0
----
32
3

skipif mysql # not compatible
query II rowsort label-832
SELECT + 32 AS col1, COUNT ( * ) FROM tab1 AS cor0
----
32
3

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-834
SELECT ALL col2 DIV + 46 AS col2 FROM tab0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-834
SELECT ALL col2 / + 46 AS col2 FROM tab0
----
0
1
2

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

onlyif mysql # DIV for integer division: 
query I rowsort label-836
SELECT ALL - 88 DIV - 86 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-836
SELECT ALL - 88 / - 86 FROM tab0 AS cor0
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 60 col0, 80 * + col1 FROM tab0 AS cor0
----
-60
1680
-60
6480
-60
80

query II rowsort
SELECT ALL + - 2, - 7 AS col1 FROM tab1 AS cor0
----
-2
-7
-2
-7
-2
-7

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

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

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

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

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

query I rowsort
SELECT ALL - + 83 FROM tab1 AS cor0 WHERE NOT col1 * - - 0 * - + 15 * - + 23 IS NOT NULL
----

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

query I rowsort
SELECT ALL 55 AS col0 FROM tab0 cor0
----
55
55
55

onlyif mysql # DIV for integer division: 
query II rowsort label-845
SELECT col1 DIV col1 AS col2, + 57 FROM tab2
----
1
57
1
57
1
57

skipif mysql # not compatible
query II rowsort label-845
SELECT col1 / col1 AS col2, + 57 FROM tab2
----
1
57
1
57
1
57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-846
SELECT ALL + MIN( DISTINCT - 83 ) DIV + MIN( ALL ( + CAST( 2 AS SIGNED ) ) ) AS col0 FROM tab1
----
-41

skipif mysql # not compatible
query I rowsort label-846
SELECT ALL + MIN ( DISTINCT - 83 ) / + MIN ( ALL ( + CAST ( 2 AS INTEGER ) ) ) AS col0 FROM tab1
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-847
SELECT MAX( - 76 ) * + 25 AS col1 FROM tab1
----
-1900

skipif mysql # not compatible
query I rowsort label-847
SELECT MAX ( - 76 ) * + 25 AS col1 FROM tab1
----
-1900

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 56 col2 FROM tab0 WHERE - col2 NOT BETWEEN NULL AND NULL
----

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + - + 66 * + 97 * - 82 col1 FROM tab1
----
524969
524978
525011

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

onlyif mysql # aggregate syntax: 
query I rowsort label-852
SELECT ALL + ( - COUNT( * ) ) FROM tab2 AS cor0 WHERE - 40 + col1 BETWEEN col0 AND + col1 + - col1 - + 81
----
0

skipif mysql # not compatible
query I rowsort label-852
SELECT ALL + ( - COUNT ( * ) ) FROM tab2 AS cor0 WHERE - 40 + col1 BETWEEN col0 AND + col1 + - col1 - + 81
----
0

query I rowsort
SELECT ALL col1 + col2 * col2 AS col0 FROM tab1 AS cor0
----
3486
4671
9230

query I rowsort
SELECT 26 * 56 FROM tab0
----
1456
1456
1456

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

query I rowsort
SELECT DISTINCT col0 + - + 6 * - 74 FROM tab0 AS cor0
----
459
531
541

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

query II rowsort
SELECT DISTINCT - col2 - + col2 AS col1, col0 AS col1 FROM tab1
----
-118
85
-136
91
-192
51

query III rowsort
SELECT * FROM tab2 WHERE - 97 / ( - 70 ) - + + 54 NOT BETWEEN + col0 AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-860
SELECT ALL + 70 + + + 33 AS col0, 67 - + + COUNT( * ) + + 29 FROM tab1
----
103
93

skipif mysql # not compatible
query II rowsort label-860
SELECT ALL + 70 + + + 33 AS col0, 67 - + + COUNT ( * ) + + 29 FROM tab1
----
103
93

onlyif mysql # DIV for integer division: 
query II rowsort label-861
SELECT - col0 + - 55, + col2 DIV + 62 AS col2 FROM tab2
----
-101
0
-119
0
-130
0

skipif mysql # not compatible
query II rowsort label-861
SELECT - col0 + - 55, + col2 / + 62 AS col2 FROM tab2
----
-101
0
-119
0
-130
0

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

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

query I rowsort
SELECT ALL + ( - + 15 ) FROM tab2
----
-15
-15
-15

query I rowsort
SELECT ALL ( + 32 ) - + col1 FROM tab0
----
-49
11
31

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

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

query I rowsort
SELECT DISTINCT + col1 * + 95 FROM tab1 AS cor0
----
1330
4465
475

query I rowsort
SELECT DISTINCT - + ( 5 ) * - - col1 FROM tab1 AS cor0
----
-235
-25
-70

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-870
SELECT DISTINCT + CAST( + col2 AS SIGNED ) * 39 FROM tab1 WHERE NULL IS NULL
----
2301
2652
3744

skipif mysql # not compatible
query I rowsort label-870
SELECT DISTINCT + CAST ( + col2 AS INTEGER ) * 39 FROM tab1 WHERE NULL IS NULL
----
2301
2652
3744

onlyif mysql # aggregate syntax: 
query I rowsort label-871
SELECT DISTINCT + COUNT( 58 ) * 19 - 17 FROM tab2
----
40

skipif mysql # not compatible
query I rowsort label-871
SELECT DISTINCT + COUNT ( 58 ) * 19 - 17 FROM tab2
----
40

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

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

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

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

query II rowsort
SELECT DISTINCT + col2 + + - ( + 90 ) AS col0, 66 FROM tab0 AS cor0
----
-43
66
-80
66
9
66

query I rowsort
SELECT ALL + 12 + - col2 FROM tab2 AS cor0 WHERE NOT + 87 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-876
SELECT + 46 + + col0 + + 70 DIV + col2 FROM tab1 AS cor0
----
132
138
97

skipif mysql # not compatible
query I rowsort label-876
SELECT + 46 + + col0 + + 70 / + col2 FROM tab1 AS cor0
----
132
138
97

query I rowsort
SELECT + 42 + 62 + + + col1 / - 16 AS col2 FROM tab2 AS cor0 WHERE NOT + col0 * ( - 98 ) + - col0 = NULL
----

query I rowsort
SELECT ALL - col2 + + + ( col0 ) FROM tab2 AS cor0
----
17
23
24

query I rowsort
SELECT ALL + col0 * + + col2 - + col2 FROM tab1 AS cor0
----
4800
4956
6120

onlyif mysql # DIV for integer division: 
query I rowsort label-880
SELECT 9 DIV - col1 AS col1 FROM tab1
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-880
SELECT 9 / - col1 AS col1 FROM tab1
----
-1
0
0

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 * 66 AS col2, col2 col2 FROM tab1
----
3894
59
4488
68
6336
96

query I rowsort
SELECT + col0 + - col0 * - col1 + col2 + - 86 * col1 * + ( + col2 ) FROM tab1 AS cor0
----
-114723
-24801
-270420

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

query I rowsort
SELECT ALL - - 23 FROM tab1 WHERE NULL IS NULL
----
23
23
23

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-886
SELECT * FROM tab0 WHERE + col2 + + col1 * col2 = + CAST( + 7 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-886
SELECT * FROM tab0 WHERE + col2 + + col1 * col2 = + CAST ( + 7 AS INTEGER )
----

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-888
SELECT + - MAX( + 27 ) DIV + COUNT( * ) AS col0 FROM tab1 cor0
----
-9

skipif mysql # not compatible
query I rowsort label-888
SELECT + - MAX ( + 27 ) / + COUNT ( * ) AS col0 FROM tab1 cor0
----
-9

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

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

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

query I rowsort
SELECT DISTINCT 78 * col1 + + 23 FROM tab0 cor0
----
101
1661
6341

onlyif mysql # DIV for integer division: 
query I rowsort label-892
SELECT - - ( + 80 ) DIV - + col0 + + col1 FROM tab2 AS cor0
----
50
66
76

skipif mysql # not compatible
query I rowsort label-892
SELECT - - ( + 80 ) / - + col0 + + col1 FROM tab2 AS cor0
----
50
66
76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-893
SELECT CAST( - 82 AS SIGNED ) * col2 AS col2 FROM tab0 AS cor0
----
-3854
-8118
-820

skipif mysql # not compatible
query I rowsort label-893
SELECT CAST ( - 82 AS INTEGER ) * col2 AS col2 FROM tab0 AS cor0
----
-3854
-8118
-820

query I rowsort
SELECT - col0 * - col0 * - + 63 FROM tab0 AS cor0
----
-14175
-476847
-592767

query I rowsort
SELECT ALL AVG ( DISTINCT + + col1 ) FROM tab1 AS cor0 WHERE col1 IS NULL
----
NULL

query I rowsort
SELECT + col0 - + - 45 AS col1 FROM tab1 AS cor0
----
130
136
96

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

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

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

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

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

query I rowsort
SELECT DISTINCT 29 FROM tab2 WHERE NOT NULL = + col2
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-904
SELECT ALL - - 42 * + SUM( ALL col0 ) FROM tab2 AS cor0
----
7770

skipif mysql # not compatible
query I rowsort label-904
SELECT ALL - - 42 * + SUM ( ALL col0 ) FROM tab2 AS cor0
----
7770

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

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

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

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

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

query I rowsort
SELECT ALL + 79 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 40a2261caa2c5cdbfd80965d7df1231f

query I rowsort
SELECT ALL - ( - 98 ) + col1 AS col1 FROM tab2 AS cor0
----
149
165
175

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

query I rowsort
SELECT ALL col1 + + 88 AS col1 FROM tab1 AS cor0
----
102
135
93

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

onlyif mysql # DIV for integer division: 
query II rowsort label-913
SELECT DISTINCT 51 DIV - col1 + - col2 + + col0 col0, 78 DIV col2 + - col2 + col2 FROM tab2 AS cor0
----
17
1
22
3
24
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-913
SELECT DISTINCT 51 / - col1 + - col2 + + col0 col0, 78 / col2 + - col2 + col2 FROM tab2 AS cor0
----
17
1
22
3
24
1

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

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

query I rowsort
SELECT 78 + + 1 * + col2 FROM tab2
----
101
118
136

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-916
SELECT col1 * CAST( + 13 AS SIGNED ) + - - col1 AS col0 FROM tab2
----
1078
714
938

skipif mysql # not compatible
query I rowsort label-916
SELECT col1 * CAST ( + 13 AS INTEGER ) + - - col1 AS col0 FROM tab2
----
1078
714
938

query I rowsort
SELECT 26 + + - col1 * - - col2 FROM tab0
----
-184
-3781
-73

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

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

query I rowsort
SELECT ALL 69 + 6 FROM tab1 AS cor0
----
75
75
75

query I rowsort
SELECT DISTINCT + col1 FROM tab0 WHERE NOT + 57 / + 86 IS NOT NULL
----

query I rowsort
SELECT 33 + 34 AS col0 FROM tab1 AS cor0
----
67
67
67

onlyif mysql # aggregate syntax: 
query I rowsort label-922
SELECT DISTINCT - + 51 * + MIN( 68 ) AS col2 FROM tab1 cor0
----
-3468

skipif mysql # not compatible
query I rowsort label-922
SELECT DISTINCT - + 51 * + MIN ( 68 ) AS col2 FROM tab1 cor0
----
-3468

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

query II rowsort
SELECT - - 52 AS col2, - col1 * + + col0 FROM tab2 AS cor0
----
52
-2346
52
-4928
52
-5025

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

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

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

skipif mysql # not compatible
query I rowsort label-926
SELECT - CAST ( - 18 AS INTEGER ) AS col0 FROM tab2
----
18
18
18

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

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

query I rowsort
SELECT DISTINCT col0 AS col2 FROM tab2 WHERE + col0 IS NOT NULL
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-929
SELECT ALL + MAX( DISTINCT - 46 ) FROM tab0, tab0 cor0
----
-46

skipif mysql # not compatible
query I rowsort label-929
SELECT ALL + MAX ( DISTINCT - 46 ) FROM tab0, tab0 cor0
----
-46

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN + col0 * col0 * + 58 AND 66
----

onlyif mysql # aggregate syntax: 
query I rowsort label-931
SELECT MIN( DISTINCT 9 ) AS col2 FROM tab0 cor0
----
9

skipif mysql # not compatible
query I rowsort label-931
SELECT MIN ( DISTINCT 9 ) AS col2 FROM tab0 cor0
----
9

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-936
SELECT - 14 * - - 85 + COUNT( * ) FROM tab2 AS cor0
----
-1187

skipif mysql # not compatible
query I rowsort label-936
SELECT - 14 * - - 85 + COUNT ( * ) FROM tab2 AS cor0
----
-1187

query I rowsort
SELECT DISTINCT + 95 + 74 * - + col1 * col1 FROM tab2 AS cor0 WHERE - col0 > - col0 / + col0
----

query I rowsort
SELECT col2 + 63 AS col2 FROM tab1 AS cor0
----
122
131
159

query I rowsort
SELECT - col1 * + 39 FROM tab2 AS cor0
----
-1989
-2613
-3003

query I rowsort
SELECT DISTINCT + - col0 + - col0 + col2 * 0 + + col1 FROM tab1 AS cor0
----
-135
-165
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-941
SELECT MAX( 68 ) AS col2 FROM tab2 AS cor0
----
68

skipif mysql # not compatible
query I rowsort label-941
SELECT MAX ( 68 ) AS col2 FROM tab2 AS cor0
----
68

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

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

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

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

query I rowsort
SELECT ALL + 95 FROM tab2 WHERE NOT - col2 = - col0 * - col2 * + 57 + ( 81 )
----
95
95
95

query I rowsort
SELECT ALL + 0 + 86 AS col0 FROM tab0
----
86
86
86

query I rowsort
SELECT ALL + 94 * col1 FROM tab2
----
4794
6298
7238

query I rowsort
SELECT + col1 * 11 FROM tab2
----
561
737
847

query II rowsort
SELECT - + col1, + col2 AS col0 FROM tab0 WHERE NULL <= + col2
----

query I rowsort
SELECT ALL col0 * - 54 AS col2 FROM tab2
----
-2484
-3456
-4050

query I rowsort
SELECT ALL col2 + - col2 + - - col0 FROM tab1
----
51
85
91

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-952
SELECT * FROM tab1 WHERE col1 * col2 + + - col1 * - 39 IN ( + col2, + ( col1 ), 43 - + 80 + - col0 * - CAST( NULL AS DECIMAL ) )
----

skipif mysql # not compatible
query III rowsort label-952
SELECT * FROM tab1 WHERE col1 * col2 + + - col1 * - 39 IN ( + col2, + ( col1 ), 43 - + 80 + - col0 * - CAST ( NULL AS REAL ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-953
SELECT DISTINCT + 99 * MIN( ALL 95 ) AS col1 FROM tab2
----
9405

skipif mysql # not compatible
query I rowsort label-953
SELECT DISTINCT + 99 * MIN ( ALL 95 ) AS col1 FROM tab2
----
9405

query I rowsort
SELECT + + col1 - - 8 AS col2 FROM tab0 AS cor0
----
29
89
9

onlyif mysql # DIV for integer division: 
query I rowsort label-955
SELECT ALL + col2 DIV + col1 - col2 AS col1 FROM tab1 AS cor0
----
-48
-67
-90

skipif mysql # not compatible
query I rowsort label-955
SELECT ALL + col2 / + col1 - col2 AS col1 FROM tab1 AS cor0
----
-48
-67
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-956
SELECT DISTINCT + + COUNT( * ) + + COUNT( DISTINCT 50 ) AS col1 FROM tab2 AS cor0
----
4

skipif mysql # not compatible
query I rowsort label-956
SELECT DISTINCT + + COUNT ( * ) + + COUNT ( DISTINCT 50 ) AS col1 FROM tab2 AS cor0
----
4

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

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

query I rowsort
SELECT DISTINCT - 19 * + col2 + 9 AS col2 FROM tab1 AS cor0
----
-1112
-1283
-1815

query I rowsort
SELECT + + 81 AS col1 FROM tab2 AS cor0 WHERE NOT + ( + 30 ) IS NULL
----
81
81
81

onlyif mysql # DIV for integer division: 
query I rowsort label-961
SELECT col0 DIV + col1 + 13 AS col2 FROM tab1 AS cor0
----
14
16
30

skipif mysql # not compatible
query I rowsort label-961
SELECT col0 / + col1 + 13 AS col2 FROM tab1 AS cor0
----
14
16
30

onlyif mysql # aggregate syntax: 
query I rowsort label-962
SELECT DISTINCT + + MIN( DISTINCT + ( + + col0 ) ) * + COUNT( * ) AS col1 FROM tab2 cor0
----
138

skipif mysql # not compatible
query I rowsort label-962
SELECT DISTINCT + + MIN ( DISTINCT + ( + + col0 ) ) * + COUNT ( * ) AS col1 FROM tab2 cor0
----
138

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

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

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

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

query III rowsort
SELECT - + col1, - col0 * col2 AS col2, - + ( - col1 ) AS col0 FROM tab1 AS cor0
----
9 values hashing to 846dbc9d1043ad10a9fbfaede5744f09

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

onlyif mysql # DIV for integer division: 
query I rowsort label-967
SELECT DISTINCT + 98 * col0 DIV - col0 FROM tab1
----
-98

skipif mysql # not compatible
query I rowsort label-967
SELECT DISTINCT + 98 * col0 / - col0 FROM tab1
----
-98

query I rowsort
SELECT ALL 19 FROM tab2 WHERE - col1 >= - col1
----
19
19
19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-969
SELECT DISTINCT CAST( - - 60 AS SIGNED ) AS col2 FROM tab2
----
60

skipif mysql # not compatible
query I rowsort label-969
SELECT DISTINCT CAST ( - - 60 AS INTEGER ) AS col2 FROM tab2
----
60

query II rowsort
SELECT DISTINCT - col1 AS col1, col0 + + 69 FROM tab2
----
-51
115
-67
144
-77
133

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 22 col0, + col0 + + + ( 2 ) FROM tab2
----
22
48
22
66
22
77

query I rowsort
SELECT + 70 * + 68 AS col1 FROM tab0 AS cor0
----
4760
4760
4760

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + 49 * - col1 = NULL
----

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

query I rowsort
SELECT col0 * col2 + - 32 FROM tab0 AS cor0
----
673
838
9571

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-978
SELECT + COUNT( DISTINCT 34 ) FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 ) WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-978
SELECT + COUNT ( DISTINCT 34 ) FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 ) WHERE NOT NULL IS NULL
----
0

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

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

query III rowsort
SELECT * FROM tab1 WHERE 68 IS NULL
----

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

query I rowsort
SELECT DISTINCT + - 46 + ( - - ( - col2 ) ) FROM tab0 AS cor0
----
-145
-56
-93

query I rowsort
SELECT - 6 + - - col2 + - ( - - col1 ) * col1 AS col1 FROM tab1 AS cor0
----
-106
-2147
28

query II rowsort
SELECT ALL - + col1 + + col2, col0 AS col1 FROM tab0 AS cor0
----
-11
87
-34
15
98
97

query I rowsort
SELECT ALL + 46 + + - col1 * + ( col1 ) AS col0 FROM tab2 cor0
----
-2555
-4443
-5883

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-986
SELECT DISTINCT - CAST( + - ( + - 5 ) AS SIGNED ) + 77 AS col0 FROM tab2 cor0
----
72

skipif mysql # not compatible
query I rowsort label-986
SELECT DISTINCT - CAST ( + - ( + - 5 ) AS INTEGER ) + 77 AS col0 FROM tab2 cor0
----
72

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

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

query I rowsort
SELECT DISTINCT + + col1 * ( + 59 ) AS col0 FROM tab1 AS cor0
----
2773
295
826

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-989
SELECT ALL 84 + + col1 * + CAST( - - col0 AS SIGNED ) * + - col2 AS col2 FROM tab2 AS cor0
----
-197036
-291366
-53874

skipif mysql # not compatible
query I rowsort label-989
SELECT ALL 84 + + col1 * + CAST ( - - col0 AS INTEGER ) * + - col2 AS col2 FROM tab2 AS cor0
----
-197036
-291366
-53874

query I rowsort
SELECT DISTINCT - + 93 FROM tab1 cor0
----
-93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-991
SELECT ALL - CAST( 31 AS SIGNED ) FROM tab0
----
-31
-31
-31

skipif mysql # not compatible
query I rowsort label-991
SELECT ALL - CAST ( 31 AS INTEGER ) FROM tab0
----
-31
-31
-31

query I rowsort
SELECT 70 + + - col1 FROM tab1
----
23
56
65

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-993
SELECT * FROM tab1 WHERE NULL <= + 86 * - - CAST( NULL AS DECIMAL ) * col0
----

skipif mysql # not compatible
query III rowsort label-993
SELECT * FROM tab1 WHERE NULL <= + 86 * - - CAST ( NULL AS REAL ) * col0
----

query I rowsort
SELECT 78 + - 64 + 44 AS col2 FROM tab2
----
58
58
58

query I rowsort
SELECT 11 + + - 1 AS col0 FROM tab1
----
10
10
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-996
SELECT ALL - 38 * - 42 * + CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-996
SELECT ALL - 38 * - 42 * + CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-997
SELECT - - COUNT( * ) + 3 * 31 FROM tab2 AS cor0 WHERE + col1 > col2 * - col0
----
96

skipif mysql # not compatible
query I rowsort label-997
SELECT - - COUNT ( * ) + 3 * 31 FROM tab2 AS cor0 WHERE + col1 > col2 * - col0
----
96

onlyif mysql # DIV for integer division: 
query I rowsort label-998
SELECT col2 DIV 49 AS col1 FROM tab0
----
0
0
2

skipif mysql # not compatible
query I rowsort label-998
SELECT col2 / 49 AS col1 FROM tab0
----
0
0
2

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

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

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

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

query I rowsort
SELECT + 43 * col2 AS col2 FROM tab0 WHERE + ( col1 ) - 50 < NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT 45 * 28 IS NOT NULL
----

query I rowsort
SELECT - col0 FROM tab1 WHERE 83 >= ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1005
SELECT DISTINCT COUNT( * ) * COUNT( * ) AS col1 FROM tab0 WHERE NOT NULL BETWEEN col0 + 13 AND col2 + + 58
----
0

skipif mysql # not compatible
query I rowsort label-1005
SELECT DISTINCT COUNT ( * ) * COUNT ( * ) AS col1 FROM tab0 WHERE NOT NULL BETWEEN col0 + 13 AND col2 + + 58
----
0

query I rowsort
SELECT DISTINCT + col1 + + col2 * 45 FROM tab0
----
2196
4456
471

query I rowsort
SELECT col0 + 62 AS col0 FROM tab0
----
149
159
77

query I rowsort
SELECT ALL col1 * + ( 83 ) - 46 FROM tab1
----
1116
369
3855

query I rowsort
SELECT - 5 * + col2 + - col0 FROM tab2
----
-161
-264
-365

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1011
SELECT col1 FROM tab0 WHERE NOT + CAST( + col2 AS SIGNED ) >= NULL
----

skipif mysql # not compatible
query I rowsort label-1011
SELECT col1 FROM tab0 WHERE NOT + CAST ( + col2 AS INTEGER ) >= NULL
----

query I rowsort
SELECT ALL col2 * - col2 AS col2 FROM tab1 WHERE col2 / - col0 IS NULL
----

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1014
SELECT ALL - COUNT( * ) * - MAX( - col0 DIV col1 ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-1014
SELECT ALL - COUNT ( * ) * - MAX ( - col0 / col1 ) FROM tab2
----
0

query I rowsort
SELECT - col0 + 25 AS col0 FROM tab0
----
-62
-72
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1016
SELECT CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) col0 FROM tab0 WHERE NOT NULL = - col1
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1016
SELECT CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) col0 FROM tab0 WHERE NOT NULL = - col1
----

query I rowsort
SELECT + col1 + 31 * col1 AS col0 FROM tab2
----
1632
2144
2464

query I rowsort
SELECT DISTINCT + ( col0 ) + - col0 AS col0 FROM tab1 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1019
SELECT - col0 * + CAST( 73 AS SIGNED ) FROM tab2 AS cor0
----
-3358
-4672
-5475

skipif mysql # not compatible
query I rowsort label-1019
SELECT - col0 * + CAST ( 73 AS INTEGER ) FROM tab2 AS cor0
----
-3358
-4672
-5475

onlyif mysql # aggregate syntax: 
query I rowsort label-1020
SELECT + COUNT( * ) AS col1 FROM ( tab2 AS cor0 CROSS JOIN tab1 ) WHERE NOT ( NULL ) < + 59
----
0

skipif mysql # not compatible
query I rowsort label-1020
SELECT + COUNT ( * ) AS col1 FROM ( tab2 AS cor0 CROSS JOIN tab1 ) WHERE NOT ( NULL ) < + 59
----
0

query III rowsort
SELECT * FROM tab0 WHERE 11 - - 10 = 46 * 34
----

query I rowsort
SELECT 25 - + 87 * col0 FROM tab2 WHERE col2 BETWEEN ( 1 * 33 ) AND NULL
----

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2 WHERE NULL IS NULL
----
54 values hashing to c419dc2a653bccd84f7a2da103315187

query IIIIII rowsort
SELECT ALL * FROM tab2 cor0 CROSS JOIN tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1025
SELECT DISTINCT MIN( - 41 ) AS col1 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1025
SELECT DISTINCT MIN ( - 41 ) AS col1 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
NULL

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

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

query I rowsort
SELECT ALL - + 27 + + col2 AS col0 FROM tab1 AS cor0
----
32
41
69

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL < ( col2 - col1 )
----

query I rowsort
SELECT ALL + - col1 * - 48 + 31 AS col2 FROM tab0 AS cor0
----
1039
3919
79

query I rowsort
SELECT DISTINCT + 5 - - col1 AS col0 FROM tab2 AS cor0
----
56
72
82

onlyif mysql # aggregate syntax: 
query I rowsort label-1031
SELECT ALL + 55 * COUNT( * ) FROM tab1 WHERE ( col2 + + col2 ) BETWEEN col2 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-1031
SELECT ALL + 55 * COUNT ( * ) FROM tab1 WHERE ( col2 + + col2 ) BETWEEN col2 AND NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 - + - ( - ( + 42 ) ) col2 FROM tab1
----
17
26
54

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL >= + 60 / + col1 OR NOT col2 - - col1 <= ( NULL )
----

query I rowsort
SELECT 39 - + 77 * + 98 FROM tab1
----
-7507
-7507
-7507

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - 23 + + 26 >= ( 82 ) / - col0 + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1037
SELECT ALL + CAST( + ( + col0 ) AS SIGNED ) DIV - col0 FROM tab2
----
-1
-1
-1

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

query I rowsort
SELECT ALL - col0 + col1 FROM tab0 WHERE NOT ( - 48 ) <> NULL
----

query I rowsort
SELECT - - col2 * col1 + col0 AS col1 FROM tab0 AS cor0
----
196
297
3822

query I rowsort
SELECT 57 + - col1 AS col1 FROM tab2 AS cor0
----
-10
-20
6

onlyif mysql # aggregate syntax: 
query I rowsort label-1041
SELECT DISTINCT SUM( + 32 ) * + 53 FROM tab1 AS cor0
----
5088

skipif mysql # not compatible
query I rowsort label-1041
SELECT DISTINCT SUM ( + 32 ) * + 53 FROM tab1 AS cor0
----
5088

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1043
SELECT ALL + MIN( + + 42 ) * + 15 FROM tab0 AS cor0
----
630

skipif mysql # not compatible
query I rowsort label-1043
SELECT ALL + MIN ( + + 42 ) * + 15 FROM tab0 AS cor0
----
630

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 43 * + col2 + 81 col0 FROM tab2 WHERE NOT + - col2 IS NOT NULL
----

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1047
SELECT - 22 * COUNT( * ) FROM tab0, tab1 AS cor0
----
-198

skipif mysql # not compatible
query I rowsort label-1047
SELECT - 22 * COUNT ( * ) FROM tab0, tab1 AS cor0
----
-198

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

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

query I rowsort
SELECT ALL - 0 FROM tab0, tab1 cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

onlyif mysql # aggregate syntax: 
query I rowsort label-1050
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-1050
SELECT - ( - MIN ( DISTINCT + + ( col0 ) ) ) col0 FROM tab0
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-1051
SELECT ALL + - COUNT( * ) * - 37 - 55 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
278

skipif mysql # not compatible
query I rowsort label-1051
SELECT ALL + - COUNT ( * ) * - 37 - 55 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
278

query I rowsort
SELECT 45 * + 79 FROM tab2 AS cor0
----
3555
3555
3555

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1054
SELECT + COUNT( * ) * COUNT( * ) col2 FROM tab2 cor0
----
9

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

query I rowsort
SELECT DISTINCT - col0 * - 29 FROM tab0 AS cor0
----
2523
2813
435

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1056
SELECT DISTINCT - - COUNT( * ) DIV COUNT( * ) * - - MAX( DISTINCT col1 ) FROM tab2 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-1056
SELECT DISTINCT - - COUNT ( * ) / COUNT ( * ) * - - MAX ( DISTINCT col1 ) FROM tab2 AS cor0
----
77

query I rowsort
SELECT 96 * + col2 * + - col0 * + 70 + - col0 * 4 AS col0 FROM tab0 AS cor0
----
-4737660
-5846748
-64532548

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

query I rowsort
SELECT ALL + col1 * + - 55 * - ( 20 ) FROM tab1 AS cor0
----
15400
51700
5500

query I rowsort
SELECT ALL + col1 FROM tab1 AS cor0 WHERE NOT - col0 * col2 IN ( - 27 + - col2 )
----
14
47
5

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

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

query I rowsort
SELECT DISTINCT - ( col2 ) + col1 FROM tab1 WHERE NULL NOT BETWEEN - - col2 * + 88 AND + 28 / 22 + + 96
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1064
SELECT DISTINCT + 15 + + + col2 + col0 DIV 83 DIV + col2 FROM tab0
----
114
25
62

skipif mysql # not compatible
query I rowsort label-1064
SELECT DISTINCT + 15 + + + col2 + col0 / 83 / + col2 FROM tab0
----
114
25
62

query I rowsort
SELECT - col0 + + 5 + - 33 FROM tab1
----
-113
-119
-79

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

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

query I rowsort
SELECT + - col1 + + + col0 + - - col0 FROM tab2 AS cor0
----
41
51
83

query I rowsort
SELECT + + col1 + col2 - col1 - - 99 AS col0 FROM tab1 AS cor0
----
158
167
195

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1070
SELECT ALL - + 87 DIV + 2 FROM tab1 cor0
----
-43
-43
-43

skipif mysql # not compatible
query I rowsort label-1070
SELECT ALL - + 87 / + 2 FROM tab1 cor0
----
-43
-43
-43

query I rowsort
SELECT + col1 FROM tab1 AS cor0 WHERE - ( col0 ) > + ( - 58 ) + - 13
----
14

query I rowsort
SELECT DISTINCT - col2 AS col1 FROM tab1 AS cor0 WHERE ( - 14 * + 75 * - 19 ) <= + col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1073
SELECT DISTINCT col2 + col1 DIV + col0 FROM tab1 AS cor0
----
59
68
96

skipif mysql # not compatible
query I rowsort label-1073
SELECT DISTINCT col2 + col1 / + col0 FROM tab1 AS cor0
----
59
68
96

query I rowsort
SELECT col2 AS col2 FROM tab2 cor0 WHERE ( col2 ) < + 78
----
23
40
58

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

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

query I rowsort
SELECT DISTINCT - 53 * 98 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-5194

query I rowsort
SELECT - col2 - - - 65 FROM tab1 cor0
----
-124
-133
-161

query I rowsort
SELECT DISTINCT 47 + + 42 FROM tab2 AS cor0 WHERE - - col2 + + 47 >= - col2 AND + col2 IS NULL
----

query I rowsort
SELECT 40 - - - 39 * col0 AS col0 FROM tab0 AS cor0
----
-3353
-3743
-545

query I rowsort
SELECT ALL 90 + + 69 AS col2 FROM tab1 AS cor0 WHERE ( NULL ) NOT IN ( 39 ) AND - col2 = ( 83 )
----

query I rowsort
SELECT 60 + + col1 AS col1 FROM tab1 AS cor0
----
107
65
74

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

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

query I rowsort
SELECT + col2 * - - 26 FROM tab1
----
1534
1768
2496

query I rowsort
SELECT DISTINCT ( - 81 ) AS col1 FROM tab0
----
-81

query II rowsort
SELECT ALL + 67 AS col2, - col0 FROM tab2
----
67
-46
67
-64
67
-75

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

query I rowsort
SELECT - + col1 - - col2 AS col1 FROM tab2 AS cor0 WHERE NOT + 84 + - - col2 * 71 <= 3
----
-28
-37
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-1089
SELECT + MAX( ALL ( - ( - col0 ) ) ) + + COUNT( * ) FROM tab0 AS cor0 WHERE NOT ( col0 ) NOT IN ( col2, + ( - 67 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1089
SELECT + MAX ( ALL ( - ( - col0 ) ) ) + + COUNT ( * ) FROM tab0 AS cor0 WHERE NOT ( col0 ) NOT IN ( col2, + ( - 67 ) )
----
NULL

query I rowsort
SELECT - col2 - - ( - 63 ) AS col0 FROM tab0 WHERE NOT NULL NOT BETWEEN NULL AND - col1
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1091
SELECT ALL + COUNT( * ) FROM tab2 AS cor0 WHERE NOT - CAST( - col0 AS SIGNED ) > col2
----
0

skipif mysql # not compatible
query I rowsort label-1091
SELECT ALL + COUNT ( * ) FROM tab2 AS cor0 WHERE NOT - CAST ( - col0 AS INTEGER ) > col2
----
0

query I rowsort
SELECT ALL + ( + - 20 ) FROM tab2 cor0
----
-20
-20
-20

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

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

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

query I rowsort
SELECT DISTINCT + + 15 * + 14 AS col0 FROM tab0 cor0
----
210

query I rowsort
SELECT col2 * - + col2 * - + col0 * + - 47 FROM tab2 AS cor0
----
-1143698
-11858100
-4812800

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

query II rowsort
SELECT + col1 * - col2 AS col2, - ( - 37 ) AS col0 FROM tab1 AS cor0
----
-1344
37
-295
37
-3196
37

onlyif mysql # aggregate syntax: 
query I rowsort label-1099
SELECT ALL SUM( - - 56 ) FROM tab1
----
168

skipif mysql # not compatible
query I rowsort label-1099
SELECT ALL SUM ( - - 56 ) FROM tab1
----
168

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1100
SELECT DISTINCT col2 / 54 col0 FROM tab2
----
0
1

query I rowsort
SELECT DISTINCT + 40 AS col2 FROM tab0 WHERE NULL IS NOT NULL
----

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

skipif mysql # not compatible
query I rowsort label-1102
SELECT - col1 / + col0 * - + 70 FROM tab1
----
0
0
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1104
SELECT ALL MAX( DISTINCT - col0 ) FROM tab2
----
-46

skipif mysql # not compatible
query I rowsort label-1104
SELECT ALL MAX ( DISTINCT - col0 ) FROM tab2
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-1105
SELECT ALL COUNT( - col0 ) + SUM( 19 ) AS col1 FROM tab1
----
60

skipif mysql # not compatible
query I rowsort label-1105
SELECT ALL COUNT ( - col0 ) + SUM ( 19 ) AS col1 FROM tab1
----
60

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

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

query I rowsort
SELECT ALL + ( + col1 ) * - 3 + + - col1 AS col0 FROM tab0
----
-324
-4
-84

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE ( NOT ( NOT ( 65 ) IS NOT NULL ) )
----
54 values hashing to 33a0493e77bf8151676c948b0676d6b9

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1111
SELECT ALL + 36 * 88 / + SUM( + ( + 68 ) ) col0 FROM tab1 AS cor0 WHERE NULL <= NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1111
SELECT ALL + 36 * 88 / + SUM ( + ( + 68 ) ) col0 FROM tab1 AS cor0 WHERE NULL <= NULL
----
NULL

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

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

query I rowsort
SELECT ALL col2 * + col0 + - ( + col0 ) AS col2 FROM tab0 AS cor0
----
690
783
9506

onlyif mysql # aggregate syntax: 
query I rowsort label-1115
SELECT - 11 * COUNT( * ) col1 FROM tab0 cor0
----
-33

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1115
SELECT - 11 * COUNT ( * ) col1 FROM tab0 cor0
----
-33

onlyif mysql # DIV for integer division: 
query I rowsort label-1116
SELECT ALL + col2 * - col0 + - ( + - 47 ) DIV + col1 + - col0 FROM tab2 AS cor0
----
-1104
-2624
-4425

skipif mysql # not compatible
query I rowsort label-1116
SELECT ALL + col2 * - col0 + - ( + - 47 ) / + col1 + - col0 FROM tab2 AS cor0
----
-1104
-2624
-4425

query I rowsort
SELECT ALL + + 85 - + + 1 * col2 + - 85 FROM tab0 AS cor0
----
-10
-47
-99

query I rowsort
SELECT - ( col2 ) - + 92 - ( - - col2 ) AS col1 FROM tab1
----
-210
-228
-284

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + col2 / - col0 * - 26 <> - 94 + col0 AND NOT NULL IS NOT NULL
----

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

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1124
SELECT DISTINCT CAST( NULL AS SIGNED ), - 34 AS col0 FROM tab1
----
NULL
-34

skipif mysql # not compatible
query II rowsort label-1124
SELECT DISTINCT CAST ( NULL AS INTEGER ), - 34 AS col0 FROM tab1
----
NULL
-34

onlyif mysql # DIV for integer division: 
query I rowsort label-1125
SELECT - + col1 * 84 DIV + + ( - 66 ) AS col1 FROM tab1 AS cor0
----
17
59
6

skipif mysql # not compatible
query I rowsort label-1125
SELECT - + col1 * 84 / + + ( - 66 ) AS col1 FROM tab1 AS cor0
----
17
59
6

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

query I rowsort
SELECT + col1 * - 46 AS col2 FROM tab1 AS cor0
----
-2162
-230
-644

onlyif mysql # aggregate syntax: 
query I rowsort label-1128
SELECT - + 60 * + COUNT( * ) AS col1 FROM tab2 cor0
----
-180

skipif mysql # not compatible
query I rowsort label-1128
SELECT - + 60 * + COUNT ( * ) AS col1 FROM tab2 cor0
----
-180

query I rowsort
SELECT DISTINCT + - 72 AS col0 FROM tab0 AS cor0
----
-72

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

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

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

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

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

query II rowsort
SELECT col2 AS col0, col0 AS col2 FROM tab2
----
23
46
40
64
58
75

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

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

query I rowsort
SELECT + + col2 * + 41 AS col0 FROM tab2 cor0
----
1640
2378
943

query I rowsort
SELECT DISTINCT - 85 + - col0 FROM tab0 AS cor0
----
-100
-172
-182

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

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

query I rowsort
SELECT + - ( + 67 ) * + 95 * - + col1 * + - 89 * + - col2 + + col0 AS col0 FROM tab1 cor0
----
167113160
1810486151
761355891

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

query I rowsort
SELECT + 40 + - col0 FROM tab1
----
-11
-45
-51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - ( - col0 ), 46 col0 FROM tab2
----
46
46
64
46
75
46

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

query I rowsort
SELECT DISTINCT 8 * - 68 FROM tab0
----
-544

query II rowsort
SELECT col0 + col1, 95 AS col0 FROM tab1
----
138
95
65
95
90
95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1146
SELECT DISTINCT - MAX( DISTINCT + + 75 ) + - CAST( + 27 AS SIGNED ) FROM tab2 AS cor0
----
-102

skipif mysql # not compatible
query I rowsort label-1146
SELECT DISTINCT - MAX ( DISTINCT + + 75 ) + - CAST ( + 27 AS INTEGER ) FROM tab2 AS cor0
----
-102

query I rowsort
SELECT 21 FROM tab2 AS cor0 WHERE NULL IS NULL
----
21
21
21

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

skipif mysql # not compatible
query III rowsort label-1148
SELECT ALL * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN CAST ( - + col0 AS REAL ) + - + col1 - + + col2 - + col1 - - col2 * col0 / - col0 AND ( col1 )
----

query I rowsort
SELECT 99 * - col2 FROM tab2
----
-2277
-3960
-5742

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1150
SELECT DISTINCT col0 * - CAST( NULL AS DECIMAL ) * - col0 AS col2, col2 FROM tab2
----
NULL
23
NULL
40
NULL
58

skipif mysql # not compatible
query II rowsort label-1150
SELECT DISTINCT col0 * - CAST ( NULL AS REAL ) * - col0 AS col2, col2 FROM tab2
----
NULL
23
NULL
40
NULL
58

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

query I rowsort
SELECT DISTINCT - 21 * + col2 AS col1 FROM tab1
----
-1239
-1428
-2016

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1153
SELECT ALL + CAST( + - col1 AS SIGNED ) * col2 col2, 78 col0 FROM tab0
----
-210
78
-3807
78
-99
78

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1153
SELECT ALL + CAST ( + - col1 AS INTEGER ) * col2 col2, 78 col0 FROM tab0
----
-210
78
-3807
78
-99
78

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1155
SELECT ALL - 42 + - col2 DIV - col0, col2 * col1 AS col2 FROM tab2 AS cor0
----
-42
1173
-42
3080
-42
3886

skipif mysql # not compatible
query II rowsort label-1155
SELECT ALL - 42 + - col2 / - col0, col2 * col1 AS col2 FROM tab2 AS cor0
----
-42
1173
-42
3080
-42
3886

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1157
SELECT ALL col2 DIV col0 + col0 FROM tab1 AS cor0
----
52
85
91

skipif mysql # not compatible
query I rowsort label-1157
SELECT ALL col2 / col0 + col0 FROM tab1 AS cor0
----
52
85
91

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

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

query I rowsort
SELECT ALL - col2 * + 67 * - col0 + + 78 AS col2 FROM tab0 cor0
----
47313
58368
643479

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT - col0 * ( 26 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1161
SELECT + ( 23 ) AS col1, + col0 + 79 + CAST( - col2 AS SIGNED ) FROM tab2
----
23
102
23
103
23
96

skipif mysql # not compatible
query II rowsort label-1161
SELECT + ( 23 ) AS col1, + col0 + 79 + CAST ( - col2 AS INTEGER ) FROM tab2
----
23
102
23
103
23
96

query II rowsort
SELECT ALL + 93 * + col1, col1 AS col2 FROM tab1
----
1302
14
4371
47
465
5

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

skipif mysql # not compatible
query I rowsort label-1163
SELECT - COUNT ( * ) * 97 FROM tab2
----
-291

query I rowsort
SELECT ALL col2 * + 58 AS col1 FROM tab0
----
2726
5742
580

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1166
SELECT + ( 41 ) * - COUNT( * ) FROM tab2
----
-123

skipif mysql # not compatible
query I rowsort label-1166
SELECT + ( 41 ) * - COUNT ( * ) FROM tab2
----
-123

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1167
SELECT CAST( 71 AS SIGNED ) FROM tab0
----
71
71
71

skipif mysql # not compatible
query I rowsort label-1167
SELECT CAST ( 71 AS INTEGER ) FROM tab0
----
71
71
71

query III rowsort
SELECT * FROM tab0 WHERE NOT - col0 * + 82 NOT BETWEEN + col2 AND + col0
----

query I rowsort
SELECT 23 * - 72 FROM tab1
----
-1656
-1656
-1656

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - ( - 38 ) col0, ( 84 ) col2 FROM tab1
----
38
84

query I rowsort
SELECT DISTINCT - col1 FROM tab1 AS cor0 WHERE NOT 56 IS NULL
----
-14
-47
-5

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

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

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

query I rowsort
SELECT - col0 * 70 AS col2 FROM tab2
----
-3220
-4480
-5250

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL <> NULL
----

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

query I rowsort
SELECT - 1 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 60fdd6924bb763d6aca00ba74935ef4b

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 57 * + 91 col2, col0 AS col0 FROM tab2 WHERE NOT col2 IS NOT NULL
----

query I rowsort
SELECT - + 4 FROM tab0 AS cor0 WHERE NOT ( NULL ) IN ( - col2 * + 1 * - + col0 / + col0, - 98 * + col2 )
----

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

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

query I rowsort
SELECT - col1 * 17 + - col2 - + - col0 * col2 + + - col2 - + col1 AS col0 FROM tab1 AS cor0
----
4452
4807
5206

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1183
SELECT MIN ( - - col0 ) col0 FROM tab2
----
46

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 78 * - - col0 col1 FROM tab2
----
-3588
-4992
-5850

query I rowsort
SELECT DISTINCT + - 4 AS col1 FROM tab1 WHERE NULL >= + ( + 62 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1188
SELECT - SUM( DISTINCT + - 20 ) + - + SUM( DISTINCT col0 ) FROM tab1 WHERE - col2 / col2 IS NOT NULL
----
-207

skipif mysql # not compatible
query I rowsort label-1188
SELECT - SUM ( DISTINCT + - 20 ) + - + SUM ( DISTINCT col0 ) FROM tab1 WHERE - col2 / col2 IS NOT NULL
----
-207

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

skipif mysql # not compatible
query I rowsort label-1189
SELECT col2 - + + CAST ( NULL AS INTEGER ) / + + ( - 90 ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1190
SELECT + COUNT( * ) + 55 - + CAST( - 97 AS SIGNED ) FROM tab1 AS cor0
----
155

skipif mysql # not compatible
query I rowsort label-1190
SELECT + COUNT ( * ) + 55 - + CAST ( - 97 AS INTEGER ) FROM tab1 AS cor0
----
155

query I rowsort
SELECT ALL + col1 + - 20 FROM tab1 AS cor0
----
-15
-6
27

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 23 * col1 + - col1 col2 FROM tab2 AS cor0
----
-1224
-1608
-1848

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 71 col2 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to e72f95c346714d3065a96d67a6fd5062

query I rowsort
SELECT DISTINCT + 90 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
90

onlyif mysql # DIV for integer division: 
query I rowsort label-1195
SELECT col2 DIV - col1 + - ( - col0 ) * + + 39 col0 FROM tab2 AS cor0 WHERE NULL IS NULL
----
1794
2496
2925

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1195
SELECT col2 / - col1 + - ( - col0 ) * + + 39 col0 FROM tab2 AS cor0 WHERE NULL IS NULL
----
1794
2496
2925

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1196
SELECT DISTINCT + 24 DIV SUM( DISTINCT - col1 ) DIV - MAX( ALL - 22 ) AS col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1196
SELECT DISTINCT + 24 / SUM ( DISTINCT - col1 ) / - MAX ( ALL - 22 ) AS col1 FROM tab1 AS cor0
----
0

query I rowsort
SELECT DISTINCT 88 + - col1 FROM tab0 AS cor0
----
67
7
87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + + col2 * + col2 * - col0 col2 FROM tab2 AS cor0
----
-1119364
-18922500
-6553600

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1200
SELECT + col0 DIV - col2 AS col2, + ( + 62 ) * - + col0 FROM tab2 AS cor0
----
-1
-3968
-1
-4650
-2
-2852

skipif mysql # not compatible
query II rowsort label-1200
SELECT + col0 / - col2 AS col2, + ( + 62 ) * - + col0 FROM tab2 AS cor0
----
-1
-3968
-1
-4650
-2
-2852

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - ( - col1 ) IS NULL
----

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

query I rowsort
SELECT ALL 36 * 99 AS col1 FROM tab2
----
3564
3564
3564

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

query I rowsort
SELECT 19 FROM tab1 WHERE NOT - + 78 IS NULL
----
19
19
19

query I rowsort
SELECT DISTINCT + col0 * + - 42 FROM tab0 AS cor0
----
-3654
-4074
-630

onlyif mysql # aggregate syntax: 
query I rowsort label-1207
SELECT ALL - MIN( - + 80 ) AS col0 FROM tab2
----
80

skipif mysql # not compatible
query I rowsort label-1207
SELECT ALL - MIN ( - + 80 ) AS col0 FROM tab2
----
80

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1208
SELECT ALL + CAST( - col1 AS SIGNED ) col2, col2 FROM tab1
----
-14
96
-47
68
-5
59

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1208
SELECT ALL + CAST ( - col1 AS INTEGER ) col2, col2 FROM tab1
----
-14
96
-47
68
-5
59

onlyif mysql # aggregate syntax: 
query I rowsort label-1209
SELECT + ( - MAX( - - 3 ) ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-1209
SELECT + ( - MAX ( - - 3 ) ) FROM tab0
----
-3

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

skipif mysql # not compatible
query I rowsort label-1210
SELECT ALL + - COUNT ( CAST ( col1 AS INTEGER ) ) + - - COUNT ( + col1 ) AS col1 FROM tab2 AS cor0
----
0

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

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

query II rowsort
SELECT DISTINCT - - 80 + - col1 AS col2, 78 * - + col1 FROM tab2 cor0
----
13
-5226
29
-3978
3
-6006

query I rowsort
SELECT DISTINCT + - 33 + - col2 * 68 FROM tab1 cor0
----
-4045
-4657
-6561

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1214
SELECT - - 20 + + - ( - - CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0 WHERE ( NOT ( 93 * - col1 * ( + 16 ) IS NULL ) )
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1214
SELECT - - 20 + + - ( - - CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0 WHERE ( NOT ( 93 * - col1 * ( + 16 ) IS NULL ) )
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1215
SELECT ALL + COUNT( * ) + ( + 50 ) AS col1 FROM tab1 AS cor0
----
53

skipif mysql # not compatible
query I rowsort label-1215
SELECT ALL + COUNT ( * ) + ( + 50 ) AS col1 FROM tab1 AS cor0
----
53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1216
SELECT + - COUNT( * ) * - SUM( DISTINCT col0 ) AS col1 FROM tab1 AS cor0 WHERE CAST( NULL AS SIGNED ) NOT BETWEEN NULL AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1216
SELECT + - COUNT ( * ) * - SUM ( DISTINCT col0 ) AS col1 FROM tab1 AS cor0 WHERE CAST ( NULL AS INTEGER ) NOT BETWEEN NULL AND NULL
----
NULL

query I rowsort
SELECT DISTINCT + col0 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN 24 * - col0 / 66 * + + 67 AND + - ( + 53 )
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1219
SELECT DISTINCT + MIN( + 19 ) FROM tab1
----
19

skipif mysql # not compatible
query I rowsort label-1219
SELECT DISTINCT + MIN ( + 19 ) FROM tab1
----
19

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1220
SELECT DISTINCT * FROM tab1 WHERE NOT ( + + col2 * + col2 ) NOT IN ( + 76, 94 - + - CAST( col1 AS SIGNED ) / + - 33, + - col2 )
----

skipif mysql # not compatible
query III rowsort label-1220
SELECT DISTINCT * FROM tab1 WHERE NOT ( + + col2 * + col2 ) NOT IN ( + 76, 94 - + - CAST ( col1 AS INTEGER ) / + - 33, + - col2 )
----

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

skipif mysql # not compatible
query I rowsort label-1221
SELECT CAST ( + COUNT ( * ) AS INTEGER ) + + MAX ( DISTINCT - col2 ) FROM tab2
----
-20

query I rowsort
SELECT DISTINCT 93 * - - col2 + + col2 FROM tab1
----
5546
6392
9024

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1224
SELECT - 42 DIV + + 46 FROM tab0 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1224
SELECT - 42 / + + 46 FROM tab0 cor0
----
0
0
0

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

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

query I rowsort
SELECT ALL ( + + 66 ) - + col1 AS col0 FROM tab0 AS cor0
----
-15
45
65

query I rowsort
SELECT DISTINCT - - 43 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
43

onlyif mysql # DIV for integer division: 
query II rowsort label-1228
SELECT + col2 AS col2, + col2 DIV - col2 AS col0 FROM tab0 AS cor0
----
10
-1
47
-1
99
-1

skipif mysql # not compatible
query II rowsort label-1228
SELECT + col2 AS col2, + col2 / - col2 AS col0 FROM tab0 AS cor0
----
10
-1
47
-1
99
-1

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

query II rowsort
SELECT ALL - - col0, ( 4 ) AS col1 FROM tab1 AS cor0
----
51
4
85
4
91
4

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

skipif mysql # not compatible
query I rowsort label-1231
SELECT ALL + 4 / - + CAST ( - + col1 AS INTEGER ) + col2 FROM tab0 AS cor0 WHERE NOT col0 = NULL
----

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

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 48 > ( - col0 + - col1 )
----

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

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

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

skipif mysql # not compatible
query II rowsort label-1235
SELECT DISTINCT - COUNT ( * ) * + - COUNT ( * ), COUNT ( * ) AS col1 FROM tab1
----
9
3

query II rowsort
SELECT - - col2 AS col1, + col0 AS col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
10
87
47
15
99
97

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1237
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) <> NULL
----

skipif mysql # not compatible
query III rowsort label-1237
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) <> NULL
----

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1240
SELECT ALL + COUNT( * ) DIV + - MAX( 78 ) * - COUNT( * ) AS col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1240
SELECT ALL + COUNT ( * ) / + - MAX ( 78 ) * - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
0

query I rowsort
SELECT ALL + col2 * + 20 * col2 * - col2 + + 77 * col0 FROM tab2 AS cor0
----
-1275072
-239798
-3896465

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col2 <= + 77
----
97
1
99

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1246
SELECT DISTINCT + MIN( DISTINCT - - CAST( + col2 AS SIGNED ) ) AS col0 FROM tab0
----
10

skipif mysql # not compatible
query I rowsort label-1246
SELECT DISTINCT + MIN ( DISTINCT - - CAST ( + col2 AS INTEGER ) ) AS col0 FROM tab0
----
10

query I rowsort
SELECT DISTINCT 58 * - col0 + - 4 AS col0 FROM tab2
----
-2672
-3716
-4354

query I rowsort
SELECT - col0 - 84 AS col1 FROM tab0 AS cor0
----
-171
-181
-99

query I rowsort
SELECT + 77 + col0 FROM tab2 cor0
----
123
141
152

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1250
SELECT 58 + 61 - - CAST( NULL AS SIGNED ) + 71 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1250
SELECT 58 + 61 - - CAST ( NULL AS INTEGER ) + 71 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 24 FROM tab1 WHERE NOT NULL IS NOT NULL
----
24

query II rowsort
SELECT DISTINCT 30 AS col0, col0 FROM tab1 AS cor0
----
30
51
30
85
30
91

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

query I rowsort
SELECT ALL - + col1 FROM tab0 AS cor0 WHERE 20 + - - col2 IS NULL
----

query I rowsort
SELECT + - col1 * + - 10 AS col1 FROM tab2 AS cor0
----
510
670
770

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT col2 NOT BETWEEN + 81 AND - col1
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1257
SELECT COUNT( * ) DIV 15 AS col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1257
SELECT COUNT ( * ) / 15 AS col0 FROM tab1 AS cor0
----
0

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1259
SELECT + COUNT( * ) DIV - COUNT( * ) - + 27 + + - COUNT( * ) AS col2 FROM tab1 cor0
----
-31

skipif mysql # not compatible
query I rowsort label-1259
SELECT + COUNT ( * ) / - COUNT ( * ) - + 27 + + - COUNT ( * ) AS col2 FROM tab1 cor0
----
-31

query I rowsort
SELECT - col1 AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-14
-47
-5

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

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

query I rowsort
SELECT ALL + col1 * col2 * - + col0 * + 44 + + col0 AS col2 FROM tab1 WHERE col1 IS NOT NULL
----
-1103215
-12796693
-3015885

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1263
SELECT ALL + 39 AS col2, - CAST( NULL AS DECIMAL ) AS col0 FROM tab0
----
39
NULL
39
NULL
39
NULL

skipif mysql # not compatible
query II rowsort label-1263
SELECT ALL + 39 AS col2, - CAST ( NULL AS REAL ) AS col0 FROM tab0
----
39
NULL
39
NULL
39
NULL

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

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

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

query II rowsort
SELECT DISTINCT - col0 + + col0 * + 44 AS col2, + 77 FROM tab2 WHERE NULL NOT IN ( - col2 * + - col0, + col2 + + 87 * 6 - + - col0, col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1267
SELECT DISTINCT + 22 + - 1 + - + col1 * - + 91 + - - CAST( + 96 AS SIGNED ) * + + col2 AS col1 FROM tab2
----
10868
11686
6870

skipif mysql # not compatible
query I rowsort label-1267
SELECT DISTINCT + 22 + - 1 + - + col1 * - + 91 + - - CAST ( + 96 AS INTEGER ) * + + col2 AS col1 FROM tab2
----
10868
11686
6870

query I rowsort
SELECT - col1 FROM tab0 WHERE NOT - col1 * + + 7 * + + col0 + + 82 * - - 52 IS NOT NULL OR NOT + col1 IS NOT NULL
----

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1270
SELECT DISTINCT - col0 DIV 42 + + - col0 FROM tab0 AS cor0
----
-15
-89
-99

skipif mysql # not compatible
query I rowsort label-1270
SELECT DISTINCT - col0 / 42 + + - col0 FROM tab0 AS cor0
----
-15
-89
-99

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

query I rowsort
SELECT ALL - 69 FROM tab0 cor0 WHERE NULL <= - 34
----

query I rowsort
SELECT ALL + 18 AS col0 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to b95bafa733666df39c5d3f94760d010f

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1274
SELECT ALL CAST( - 29 AS SIGNED ) col1 FROM tab1, tab2 AS cor0
----
9 values hashing to 0cc9ddad93fc783055518ae4b6be054b

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1274
SELECT ALL CAST ( - 29 AS INTEGER ) col1 FROM tab1, tab2 AS cor0
----
9 values hashing to 0cc9ddad93fc783055518ae4b6be054b

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1275
SELECT * FROM tab2 WHERE NULL <= + - ( + CAST( 72 AS SIGNED ) ) * - col0
----

skipif mysql # not compatible
query III rowsort label-1275
SELECT * FROM tab2 WHERE NULL <= + - ( + CAST ( 72 AS INTEGER ) ) * - col0
----

query I rowsort
SELECT ALL + col2 * + 79 FROM tab0 AS cor0
----
3713
7821
790

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

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

query I rowsort
SELECT ALL + 42 + ( + col1 ) FROM tab2 AS cor0
----
109
119
93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1279
SELECT DISTINCT - ( + ( - ( + MIN( DISTINCT + col0 ) ) ) ) / + COUNT( * ) * - + CAST( NULL AS SIGNED ) - - SUM( DISTINCT - col0 ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1279
SELECT DISTINCT - ( + ( - ( + MIN ( DISTINCT + col0 ) ) ) ) / + COUNT ( * ) * - + CAST ( NULL AS INTEGER ) - - SUM ( DISTINCT - col0 ) FROM tab0 AS cor0
----
NULL

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1281
SELECT DISTINCT + - CAST( NULL AS DECIMAL ) * + col2 * - 28 + - 81 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1281
SELECT DISTINCT + - CAST ( NULL AS REAL ) * + col2 * - 28 + - 81 FROM tab2 cor0
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1283
SELECT DISTINCT - COUNT( * ) * - ( - 60 ) AS col1 FROM tab2
----
-180

skipif mysql # not compatible
query I rowsort label-1283
SELECT DISTINCT - COUNT ( * ) * - ( - 60 ) AS col1 FROM tab2
----
-180

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1284
SELECT CAST( NULL AS SIGNED ) + + + 54 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1284
SELECT CAST ( NULL AS INTEGER ) + + + 54 AS col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1285
SELECT DISTINCT 22 * - + MAX( ALL + col1 ) FROM tab2
----
-1694

skipif mysql # not compatible
query I rowsort label-1285
SELECT DISTINCT 22 * - + MAX ( ALL + col1 ) FROM tab2
----
-1694

onlyif mysql # DIV for integer division: 
query I rowsort label-1286
SELECT + col2 DIV ( + col1 ) AS col2 FROM tab1
----
1
11
6

skipif mysql # not compatible
query I rowsort label-1286
SELECT + col2 / ( + col1 ) AS col2 FROM tab1
----
1
11
6

query III rowsort
SELECT * FROM tab1 WHERE - 35 > + col0 * + + col1
----

query I rowsort
SELECT ALL - ( col2 ) + 71 * 52 AS col1 FROM tab0
----
3593
3645
3682

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

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

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

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col1 <= 76
----

query I rowsort
SELECT + 14 FROM tab1 AS cor0 WHERE NOT - 5 * + 23 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-1296
SELECT + + MAX( ALL + col0 ) AS col2, - COUNT( * ) * + COUNT( * ) AS col1 FROM tab2 cor0
----
75
-9

skipif mysql # not compatible
query II rowsort label-1296
SELECT + + MAX ( ALL + col0 ) AS col2, - COUNT ( * ) * + COUNT ( * ) AS col1 FROM tab2 cor0
----
75
-9

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

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

query I rowsort
SELECT ( + - 41 ) FROM tab1
----
-41
-41
-41

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1301
SELECT DISTINCT col2 * + col1 + - col1 * - col0 DIV + col0 FROM tab0
----
100
231
3888

skipif mysql # not compatible
query I rowsort label-1301
SELECT DISTINCT col2 * + col1 + - col1 * - col0 / + col0 FROM tab0
----
100
231
3888

query I rowsort
SELECT + 44 FROM tab2 WHERE NOT NULL > NULL
----

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1304
SELECT + 7, - COUNT( * ) - - - 87 col1 FROM tab2 AS cor0
----
7
-90

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1304
SELECT + 7, - COUNT ( * ) - - - 87 col1 FROM tab2 AS cor0
----
7
-90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 col1, col2 * + 2 AS col2 FROM tab0 cor0
----
10
20
47
94
99
198

onlyif mysql # aggregate syntax: 
query I rowsort label-1306
SELECT - - COUNT( * ) * + 89 FROM tab0 AS cor0
----
267

skipif mysql # not compatible
query I rowsort label-1306
SELECT - - COUNT ( * ) * + 89 FROM tab0 AS cor0
----
267

query I rowsort
SELECT + + col1 + - 91 FROM tab1 AS cor0
----
-44
-77
-86

query I rowsort
SELECT ALL + 24 * - col2 AS col0 FROM tab0
----
-1128
-2376
-240

query I rowsort
SELECT col0 + - col1 * col2 AS col2 FROM tab1
----
-1293
-210
-3105

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

query II rowsort
SELECT - col2 AS col2, - 87 * + col1 FROM tab1 AS cor0
----
-59
-435
-68
-4089
-96
-1218

query I rowsort
SELECT + ( + + 3 ) AS col2 FROM tab0 cor0
----
3
3
3

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

skipif mysql # not compatible
query I rowsort label-1313
SELECT ALL COUNT ( * ) + - + 24 FROM tab2 AS cor0
----
-21

query I rowsort
SELECT ALL - + col0 - + + col0 - - col2 FROM tab1 AS cor0
----
-111
-114
-6

query I rowsort
SELECT DISTINCT - 76 + + 92 AS col0 FROM tab1 AS cor0
----
16

query I rowsort
SELECT col2 * - + col1 * - ( + col2 ) FROM tab0 AS cor0
----
178929
2100
9801

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1318
SELECT DISTINCT CAST( + col2 AS SIGNED ) * - 66 + + ( 55 ) * + 53 + - 78 * - + col0 AS col2 FROM tab1
----
5525
557
5651

skipif mysql # not compatible
query I rowsort label-1318
SELECT DISTINCT CAST ( + col2 AS INTEGER ) * - 66 + + ( 55 ) * + 53 + - 78 * - + col0 AS col2 FROM tab1
----
5525
557
5651

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + col2 AS col1, col0 col1 FROM tab1 WHERE col2 <= + col0
----
59
85
68
91

query I rowsort
SELECT DISTINCT + col0 * - + 45 * - 2 - + - 46 AS col0 FROM tab1
----
4636
7696
8236

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1324
SELECT ALL - SUM( ALL + + 46 ) + - - 38 col1 FROM tab1 AS cor0 WHERE 47 >= + 82
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1324
SELECT ALL - SUM ( ALL + + 46 ) + - - 38 col1 FROM tab1 AS cor0 WHERE 47 >= + 82
----
NULL

query IIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE ( NULL ) IS NULL
----
54 values hashing to 058438fde5fb838f23bcbdd39266ddcf

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1326
SELECT DISTINCT - SUM ( - col2 ) col2 FROM tab2 AS cor0
----
121

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

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

query II rowsort
SELECT ALL 80, - col2 AS col0 FROM tab0 AS cor0
----
80
-10
80
-47
80
-99

query I rowsort
SELECT DISTINCT col0 * - 87 AS col0 FROM tab0 AS cor0
----
-1305
-7569
-8439

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

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

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

query I rowsort
SELECT ALL + + 29 * - 18 AS col1 FROM tab2 cor0
----
-522
-522
-522

query III rowsort
SELECT ALL * FROM tab1 WHERE - - col1 + - - ( col0 ) + - col0 / + 8 < - col0 + 95 * - 49
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1334
SELECT * FROM tab0 WHERE NOT + col0 / col1 * - col0 < - CAST( col2 AS SIGNED ) + + 48 * col0
----

skipif mysql # not compatible
query III rowsort label-1334
SELECT * FROM tab0 WHERE NOT + col0 / col1 * - col0 < - CAST ( col2 AS INTEGER ) + + 48 * col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1335
SELECT + COUNT( * ) * + COUNT( - - col2 ) col2 FROM tab1
----
9

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

query I rowsort
SELECT - col2 * - 3 + + + col1 FROM tab2
----
120
197
241

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + 37 * 34 + - col1 IS NULL
----

query I rowsort
SELECT DISTINCT 37 * + col1 AS col1 FROM tab2
----
1887
2479
2849

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1339
SELECT + CAST( NULL AS DECIMAL ) * - col2 + 95 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1339
SELECT + CAST ( NULL AS REAL ) * - col2 + 95 AS col2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1340
SELECT + COUNT( * ) * - ( - - COUNT( * ) ) + - 84 FROM tab1
----
-93

skipif mysql # not compatible
query I rowsort label-1340
SELECT + COUNT ( * ) * - ( - - COUNT ( * ) ) + - 84 FROM tab1
----
-93

query I rowsort
SELECT DISTINCT 35 * - 16 + + + col1 FROM tab1
----
-513
-546
-555

onlyif mysql # DIV for integer division: 
query I rowsort label-1342
SELECT + + col1 DIV + col2 + + - col2 AS col1 FROM tab0 AS cor0
----
-46
-8
-99

skipif mysql # not compatible
query I rowsort label-1342
SELECT + + col1 / + col2 + + - col2 AS col1 FROM tab0 AS cor0
----
-46
-8
-99

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

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

query I rowsort
SELECT DISTINCT + col2 FROM tab2 cor0 WHERE 29 IS NOT NULL
----
23
40
58

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

query III rowsort
SELECT * FROM tab2 WHERE - col2 IN ( col2 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1347
SELECT 34 * - CAST( NULL AS DECIMAL ) - + - ( + 62 ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1347
SELECT 34 * - CAST ( NULL AS REAL ) - + - ( + 62 ) FROM tab1
----
NULL
NULL
NULL

query II rowsort
SELECT ALL + col2 + - col1 + col2 AS col0, col2 + - 1 AS col0 FROM tab1 cor0
----
113
58
178
95
89
67

query I rowsort
SELECT ALL + 10 * + - col0 + + col1 AS col1 FROM tab1 AS cor0
----
-496
-845
-863

onlyif mysql # aggregate syntax: 
query I rowsort label-1350
SELECT ALL - + MIN( - 6 ) FROM tab1 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-1350
SELECT ALL - + MIN ( - 6 ) FROM tab1 AS cor0
----
6

query I rowsort
SELECT ALL + + col0 * col0 * col2 + + 96 AS col1 FROM tab2 AS cor0
----
163936
326346
48764

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

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 86 - col0 >= + col2 + + 80
----

query I rowsort
SELECT col2 + + + 61 FROM tab0 AS cor0
----
108
160
71

query I rowsort
SELECT ( - 52 ) AS col0 FROM tab2
----
-52
-52
-52

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1357
SELECT DISTINCT + ( - MAX( + + 21 ) ) AS col1 FROM tab1
----
-21

skipif mysql # not compatible
query I rowsort label-1357
SELECT DISTINCT + ( - MAX ( + + 21 ) ) AS col1 FROM tab1
----
-21

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1358
SELECT + CAST ( - 39 AS INTEGER ) col2 FROM tab1
----
-39
-39
-39

query I rowsort
SELECT DISTINCT col1 * + 86 AS col2 FROM tab0 AS cor0
----
1806
6966
86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1360
SELECT DISTINCT - CAST( - + CAST( NULL AS SIGNED ) AS SIGNED ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-1360
SELECT DISTINCT - CAST ( - + CAST ( NULL AS INTEGER ) AS INTEGER ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL NOT IN ( col1, - col2 )
----

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

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

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

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

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL <> - col0 * + col0 * + col2
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1368
SELECT ALL CAST( + 14 AS SIGNED ) + + 88 AS col1 FROM tab2 AS cor0
----
102
102
102

skipif mysql # not compatible
query I rowsort label-1368
SELECT ALL CAST ( + 14 AS INTEGER ) + + 88 AS col1 FROM tab2 AS cor0
----
102
102
102

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1369
SELECT - COUNT( * ) DIV 73 * ( 88 ) + - + SUM( ALL ( col0 ) ) FROM tab2 cor0
----
-185

skipif mysql # not compatible
query I rowsort label-1369
SELECT - COUNT ( * ) / 73 * ( 88 ) + - + SUM ( ALL ( col0 ) ) FROM tab2 cor0
----
-185

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

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

query I rowsort
SELECT - 0 * + 17 FROM tab0
----
0
0
0

query II rowsort
SELECT DISTINCT 25 * - col2 + - 87 AS col2, + col0 * + 10 AS col1 FROM tab2
----
-1087
640
-1537
750
-662
460

onlyif mysql # aggregate syntax: 
query I rowsort label-1373
SELECT DISTINCT - 87 * + SUM( + 62 ) + + + MAX( + col2 ) + + 36 * - - COUNT( * ) AS col2 FROM tab0 AS cor0
----
-15975

skipif mysql # not compatible
query I rowsort label-1373
SELECT DISTINCT - 87 * + SUM ( + 62 ) + + + MAX ( + col2 ) + + 36 * - - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-15975

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1375
SELECT ALL + + MAX( DISTINCT 88 ) + + COUNT( * ) FROM tab2 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-1375
SELECT ALL + + MAX ( DISTINCT 88 ) + + COUNT ( * ) FROM tab2 AS cor0
----
91

query I rowsort
SELECT DISTINCT - col0 - col0 * + col2 + 66 + - col0 AS col0 FROM tab2 AS cor0
----
-1084
-2622
-4434

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

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

query I rowsort
SELECT ALL col1 + 56 AS col0 FROM tab1 AS cor0
----
103
61
70

onlyif mysql # aggregate syntax: 
query I rowsort label-1380
SELECT + - COUNT( * ) - 76 AS col1 FROM tab2 AS cor0
----
-79

skipif mysql # not compatible
query I rowsort label-1380
SELECT + - COUNT ( * ) - 76 AS col1 FROM tab2 AS cor0
----
-79

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

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

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

query I rowsort
SELECT ALL - + col0 FROM tab2 cor0 WHERE NULL NOT BETWEEN col0 AND NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1385
SELECT ALL - COUNT( - col2 ) AS col0 FROM tab0 WHERE - - ( - col2 ) <= + 22
----
-3

skipif mysql # not compatible
query I rowsort label-1385
SELECT ALL - COUNT ( - col2 ) AS col0 FROM tab0 WHERE - - ( - col2 ) <= + 22
----
-3

query II rowsort
SELECT - - 93, + col1 AS col1 FROM tab2 AS cor0
----
93
51
93
67
93
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1387
SELECT - col1 * CAST( + CAST( col0 AS SIGNED ) AS SIGNED ) FROM tab2 AS cor0
----
-2346
-4928
-5025

skipif mysql # not compatible
query I rowsort label-1387
SELECT - col1 * CAST ( + CAST ( col0 AS INTEGER ) AS INTEGER ) FROM tab2 AS cor0
----
-2346
-4928
-5025

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1390
SELECT ALL SUM( DISTINCT + - col1 ) AS col0 FROM tab2
----
-195

skipif mysql # not compatible
query I rowsort label-1390
SELECT ALL SUM ( DISTINCT + - col1 ) AS col0 FROM tab2
----
-195

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

skipif mysql # not compatible
query I rowsort label-1391
SELECT DISTINCT - COUNT ( - - col0 ) FROM tab1
----
-3

onlyif mysql # aggregate syntax: 
query III rowsort label-1392
SELECT ALL - COUNT( * ) AS col0, + COUNT( * ), - COUNT( * ) AS col2 FROM tab0
----
-3
3
-3

skipif mysql # not compatible
query III rowsort label-1392
SELECT ALL - COUNT ( * ) AS col0, + COUNT ( * ), - COUNT ( * ) AS col2 FROM tab0
----
-3
3
-3

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1394
SELECT DISTINCT - MIN( ALL - col1 ) + SUM( + 77 ) AS col0 FROM tab2 AS cor0
----
308

skipif mysql # not compatible
query I rowsort label-1394
SELECT DISTINCT - MIN ( ALL - col1 ) + SUM ( + 77 ) AS col0 FROM tab2 AS cor0
----
308

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1395
SELECT DISTINCT CAST( 38 AS SIGNED ) * COUNT( * ) AS col1 FROM tab0 AS cor0
----
114

skipif mysql # not compatible
query I rowsort label-1395
SELECT DISTINCT CAST ( 38 AS INTEGER ) * COUNT ( * ) AS col1 FROM tab0 AS cor0
----
114

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1396
SELECT ALL + CAST( NULL AS SIGNED ) + - + 25 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1397
SELECT - - 32 AS col2, - col2 * + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
32
NULL
32
NULL
32
NULL

skipif mysql # not compatible
query II rowsort label-1397
SELECT - - 32 AS col2, - col2 * + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
32
NULL
32
NULL
32
NULL

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

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

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE 35 > + 19
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1402
SELECT ALL col1 DIV + - 75 + + 64 + - - col1 AS col2 FROM tab1 cor0
----
111
69
78

skipif mysql # not compatible
query I rowsort label-1402
SELECT ALL col1 / + - 75 + + 64 + - - col1 AS col2 FROM tab1 cor0
----
111
69
78

onlyif mysql # aggregate syntax: 
query I rowsort label-1403
SELECT ALL - MIN( ALL - ( - 10 ) ) FROM tab0, tab1 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-1403
SELECT ALL - MIN ( ALL - ( - 10 ) ) FROM tab0, tab1 AS cor0
----
-10

query I rowsort
SELECT ALL + 47 + + col2 AS col1 FROM tab0 WHERE NOT + + col2 * - + 47 IS NULL
----
146
57
94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1405
SELECT DISTINCT MIN( DISTINCT + col1 ) + CAST( NULL AS SIGNED ) FROM tab0
----
NULL

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

query I rowsort
SELECT + col1 + - ( + - col0 ) FROM tab2
----
141
142
97

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-1407
SELECT * FROM tab0, tab0 cor0 WHERE CAST( NULL AS SIGNED ) IS NULL
----
54 values hashing to 42daa03e48aa6755defd0a3206e51d8e

skipif mysql # not compatible
query IIIIII rowsort label-1407
SELECT * FROM tab0, tab0 cor0 WHERE CAST ( NULL AS INTEGER ) IS NULL
----
54 values hashing to 42daa03e48aa6755defd0a3206e51d8e

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - - col2 ) col2 FROM tab1 AS cor0
----
59
68
96

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1410
SELECT - COUNT( * ) - 58 FROM tab0
----
-61

skipif mysql # not compatible
query I rowsort label-1410
SELECT - COUNT ( * ) - 58 FROM tab0
----
-61

query I rowsort
SELECT col1 - 41 AS col1 FROM tab0
----
-20
-40
40

query I rowsort
SELECT ALL + 72 + - col1 FROM tab1
----
25
58
67

onlyif mysql # aggregate syntax: 
query I rowsort label-1413
SELECT + SUM( col1 ) + - MAX( DISTINCT + - col0 ) FROM tab2
----
241

skipif mysql # not compatible
query I rowsort label-1413
SELECT + SUM ( col1 ) + - MAX ( DISTINCT + - col0 ) FROM tab2
----
241

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1415
SELECT COUNT( * ) * - 43 * - - CAST( NULL AS SIGNED ) AS col0 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1415
SELECT COUNT ( * ) * - 43 * - - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 cor0
----
NULL

query I rowsort
SELECT DISTINCT col2 FROM tab2 AS cor0 WHERE NOT ( + - col2 * col0 = NULL )
----

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

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

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

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

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

query II rowsort
SELECT col1 + - - col2, 26 AS col2 FROM tab0 cor0 WHERE NOT NULL IS NULL
----

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

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

query I rowsort
SELECT 9 * - + 8 FROM tab2
----
-72
-72
-72

onlyif mysql # DIV for integer division: 
query I rowsort label-1423
SELECT DISTINCT + col2 * ( + - 26 ) * col2 DIV + + col0 AS col2 FROM tab2
----
-1166
-299
-650

skipif mysql # not compatible
query I rowsort label-1423
SELECT DISTINCT + col2 * ( + - 26 ) * col2 / + + col0 AS col2 FROM tab2
----
-1166
-299
-650

query I rowsort
SELECT DISTINCT ( + - 46 ) FROM tab2
----
-46

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

query I rowsort
SELECT DISTINCT + 74 * + col1 + - + col2 FROM tab0 AS cor0 WHERE NOT + 98 * + + 66 - - col1 + + + col1 > - 45
----

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

query I rowsort
SELECT col2 + col1 + + + col0 * + 98 AS col1 FROM tab0 AS cor0
----
1598
8557
9606

query I rowsort
SELECT + col1 * - col2 * + + 40 * - col1 AS col1 FROM tab0 cor0
----
12334680
176400
3960

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1433
SELECT ALL - 51 * + COUNT( * ) FROM tab0
----
-153

skipif mysql # not compatible
query I rowsort label-1433
SELECT ALL - 51 * + COUNT ( * ) FROM tab0
----
-153

onlyif mysql # DIV for integer division: 
query I rowsort label-1434
SELECT ALL 94 * - col1 DIV col1 FROM tab0
----
-94
-94
-94

skipif mysql # not compatible
query I rowsort label-1434
SELECT ALL 94 * - col1 / col1 FROM tab0
----
-94
-94
-94

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

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

query I rowsort
SELECT ALL - 32 + ( + 75 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 199105619049271147956de52e7f5ed4

query IIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE + 20 / - 76 IS NULL
----

query I rowsort
SELECT + 78 AS col2 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 2aff42d3e015022a738905090a20dfd4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * col2 + + col0 col1 FROM tab1 AS cor0
----
1395
3287
380

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

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

query I rowsort
SELECT - 2 * ( + + col2 ) * - col1 FROM tab1 AS cor0
----
2688
590
6392

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 col0 FROM tab2 AS cor0 WHERE NOT 62 IS NOT NULL AND NOT + 81 * - + 22 NOT BETWEEN 88 AND + + col2
----

query I rowsort
SELECT DISTINCT 30 * - 73 FROM tab0
----
-2190

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1445
SELECT ALL + CAST( + + 37 AS SIGNED ) col0 FROM tab0
----
37
37
37

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

query I rowsort
SELECT 23 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to d94fadcc1c8cc4fc51b78b83e04795f2

query I rowsort
SELECT + col1 + + ( col1 ) AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
10
28
94

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

query I rowsort
SELECT DISTINCT 13 + 57 FROM tab1
----
70

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT 65 <= ( col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

query I rowsort
SELECT DISTINCT 62 FROM tab2 WHERE NOT ( col1 * col2 ) BETWEEN col0 AND + 88
----
62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1454
SELECT DISTINCT MIN( ALL + CAST( col2 AS SIGNED ) ) FROM tab0
----
10

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

query I rowsort
SELECT - 83 AS col1 FROM tab2
----
-83
-83
-83

query I rowsort
SELECT DISTINCT - col2 * ( 54 * 43 ) AS col1 FROM tab0
----
-109134
-229878
-23220

query I rowsort
SELECT - col0 AS col1 FROM tab1 WHERE col1 * + col0 = col0 * + 89
----

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

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

query III rowsort
SELECT * FROM tab1 WHERE NOT ( - col2 ) BETWEEN ( NULL ) AND ( 69 )
----

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

query I rowsort
SELECT ALL + col0 + - 50 * col0 FROM tab1
----
-2499
-4165
-4459

onlyif mysql # aggregate syntax: 
query I rowsort label-1463
SELECT + 17 * - COUNT( * ) AS col2 FROM tab1
----
-51

skipif mysql # not compatible
query I rowsort label-1463
SELECT + 17 * - COUNT ( * ) AS col2 FROM tab1
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-1464
SELECT - 7 * COUNT( ALL + col1 ) AS col1 FROM tab0
----
-21

skipif mysql # not compatible
query I rowsort label-1464
SELECT - 7 * COUNT ( ALL + col1 ) AS col1 FROM tab0
----
-21

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

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

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

skipif mysql # not compatible
query I rowsort label-1467
SELECT DISTINCT MAX ( DISTINCT - ( + col2 ) ) FROM tab1
----
-59

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1468
SELECT DISTINCT * FROM tab1 WHERE - col2 + CAST( col0 + ( - col0 ) AS SIGNED ) IN ( ( + 92 ) * 13 )
----

skipif mysql # not compatible
query III rowsort label-1468
SELECT DISTINCT * FROM tab1 WHERE - col2 + CAST ( col0 + ( - col0 ) AS INTEGER ) IN ( ( + 92 ) * 13 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + 46 col1 FROM tab0
----
127
47
67

query III rowsort
SELECT * FROM tab1 WHERE + 80 IN ( - col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1471
SELECT CAST( + col2 AS SIGNED ) * col0 AS col1 FROM tab0
----
705
870
9603

skipif mysql # not compatible
query I rowsort label-1471
SELECT CAST ( + col2 AS INTEGER ) * col0 AS col1 FROM tab0
----
705
870
9603

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1472
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col2 FROM tab2 WHERE ( col0 ) < col2 + + col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1472
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col2 FROM tab2 WHERE ( col0 ) < col2 + + col1
----
NULL

query I rowsort
SELECT DISTINCT + 43 + col1 * col1 FROM tab1
----
2252
239
68

onlyif mysql # aggregate syntax: 
query I rowsort label-1474
SELECT ALL COUNT( * ) FROM tab1 WHERE NOT + 46 BETWEEN ( col0 ) AND NULL
----
3

skipif mysql # not compatible
query I rowsort label-1474
SELECT ALL COUNT ( * ) FROM tab1 WHERE NOT + 46 BETWEEN ( col0 ) AND NULL
----
3

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( 95 ) * 11 col1 FROM tab0 WHERE NOT - col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1478
SELECT DISTINCT COUNT( * ) * + 7 col0 FROM tab2
----
21

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1479
SELECT DISTINCT + 13 - 53 * + COUNT( * ) col0 FROM tab2 AS cor0
----
-146

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1479
SELECT DISTINCT + 13 - 53 * + COUNT ( * ) col0 FROM tab2 AS cor0
----
-146

onlyif mysql # DIV for integer division: 
query I rowsort label-1480
SELECT - col1 DIV col1 - col0 DIV - 33 AS col1 FROM tab1 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-1480
SELECT - col1 / col1 - col0 / - 33 AS col1 FROM tab1 AS cor0
----
0
1
1

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

query I rowsort
SELECT 87 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1
----
9 values hashing to fa0cdd86483844cda3bb806e032d5c64

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1484
SELECT 16 + + COUNT( * ) FROM tab2 AS cor0 WHERE NOT + 16 - - col1 * col0 IS NULL
----
19

skipif mysql # not compatible
query I rowsort label-1484
SELECT 16 + + COUNT ( * ) FROM tab2 AS cor0 WHERE NOT + 16 - - col1 * col0 IS NULL
----
19

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( 19 ) IS NOT NULL
----

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

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

query I rowsort
SELECT ALL + + 95 AS col2 FROM tab0 AS cor0
----
95
95
95

onlyif mysql # aggregate syntax: 
query I rowsort label-1488
SELECT DISTINCT + MIN( ALL - 90 ) AS col1 FROM tab1 AS cor0
----
-90

skipif mysql # not compatible
query I rowsort label-1488
SELECT DISTINCT + MIN ( ALL - 90 ) AS col1 FROM tab1 AS cor0
----
-90

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

query I rowsort
SELECT ALL - + 38 * - 18 AS col2 FROM tab2 AS cor0
----
684
684
684

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 39 * col0 col1 FROM tab2 cor0
----
-1794
-2496
-2925

query I rowsort
SELECT DISTINCT 56 * 66 AS col2 FROM tab0 AS cor0
----
3696

query I rowsort
SELECT col2 * - ( 52 ) FROM tab0
----
-2444
-5148
-520

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1496
SELECT COUNT( * ) * + COUNT( * ) AS col0 FROM tab2 WHERE NOT + 49 * + 47 + col0 >= col1
----
0

skipif mysql # not compatible
query I rowsort label-1496
SELECT COUNT ( * ) * + COUNT ( * ) AS col0 FROM tab2 WHERE NOT + 49 * + 47 + col0 >= col1
----
0

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

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

query I rowsort
SELECT - col0 AS col2 FROM tab1 WHERE NOT col1 BETWEEN - col2 AND ( - 67 * + col2 + + 51 )
----
-51
-85
-91

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1500
SELECT DISTINCT COUNT( * ) DIV + 82 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-1500
SELECT DISTINCT COUNT ( * ) / + 82 FROM tab2
----
0

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1502
SELECT - CAST( - 55 AS SIGNED ) FROM tab1
----
55
55
55

skipif mysql # not compatible
query I rowsort label-1502
SELECT - CAST ( - 55 AS INTEGER ) FROM tab1
----
55
55
55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1503
SELECT ALL - + ( CAST( NULL AS SIGNED ) ) / + 54 FROM tab2 cor0
----
NULL
NULL
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1504
SELECT ALL + - 40 + + - 9 * COUNT( * ) AS col2 FROM tab2 AS cor0
----
-67

skipif mysql # not compatible
query I rowsort label-1504
SELECT ALL + - 40 + + - 9 * COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-67

query I rowsort
SELECT - - ( 7 ) * col0 FROM tab2 cor0
----
322
448
525

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1506
SELECT ALL 38 * col0 FROM tab2 WHERE NOT ( - CAST( NULL AS SIGNED ) ) IS NOT NULL
----
1748
2432
2850

skipif mysql # not compatible
query I rowsort label-1506
SELECT ALL 38 * col0 FROM tab2 WHERE NOT ( - CAST ( NULL AS INTEGER ) ) IS NOT NULL
----
1748
2432
2850

onlyif mysql # aggregate syntax: 
query I rowsort label-1507
SELECT + SUM( + 82 ) AS col2 FROM tab0 cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1507
SELECT + SUM ( + 82 ) AS col2 FROM tab0 cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL IS NULL
----
NULL

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

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

query I rowsort
SELECT - ( 80 ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 4dde3bd5652d30396b9cadd0e2cfb680

query I rowsort
SELECT ALL - 2 + col0 AS col0 FROM tab2
----
44
62
73

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

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

query I rowsort
SELECT + 87 - col1 AS col1 FROM tab1 AS cor0 WHERE NULL <= col2 * + col2 * - 54 - - 72
----

query I rowsort
SELECT ALL + 86 - ( + 91 ) AS col2 FROM tab0 AS cor0
----
-5
-5
-5

query I rowsort
SELECT DISTINCT col1 AS col1 FROM tab2 AS cor0 WHERE NOT NULL IN ( col0 * + - 36 / col2 )
----

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

query I rowsort
SELECT ALL col0 + + 99 FROM tab0 AS cor0
----
114
186
196

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

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

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

query I rowsort
SELECT ALL - col2 - - 83 AS col0 FROM tab2 AS cor0
----
25
43
60

query I rowsort
SELECT DISTINCT 80 FROM tab2 AS cor0 WHERE NULL IS NULL
----
80

query I rowsort
SELECT DISTINCT + col2 * 62 FROM tab1 AS cor0
----
3658
4216
5952

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

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

query I rowsort
SELECT col1 * - 47 AS col2 FROM tab0 WHERE + 78 IN ( + 11 )
----

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

query III rowsort
SELECT * FROM tab1 WHERE + - ( + 61 ) IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT 19 IN ( 75 ) AND ( 45 * + col2 ) >= ( + 36 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

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

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

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

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

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

query II rowsort
SELECT ALL + col2 * - col1 AS col0, 97 AS col0 FROM tab0 AS cor0
----
-210
97
-3807
97
-99
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1532
SELECT DISTINCT 86 * + CAST( COUNT( * ) AS SIGNED ) FROM tab1
----
258

skipif mysql # not compatible
query I rowsort label-1532
SELECT DISTINCT 86 * + CAST ( COUNT ( * ) AS INTEGER ) FROM tab1
----
258

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1533
SELECT * FROM tab1 WHERE NOT col0 BETWEEN + col1 - - col2 - 94 AND ( + col2 ) + 97 / CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-1533
SELECT * FROM tab1 WHERE NOT col0 BETWEEN + col1 - - col2 - 94 AND ( + col2 ) + 97 / CAST ( NULL AS REAL )
----

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

skipif mysql # not compatible
query I rowsort label-1534
SELECT DISTINCT + 57 * + COUNT ( * ) / + COUNT ( * ) AS col1 FROM tab1
----
57

query II rowsort
SELECT DISTINCT col2 AS col2, - 60 * col2 AS col1 FROM tab2
----
23
-1380
40
-2400
58
-3480

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1536
SELECT - 54 DIV + COUNT( * ) FROM tab2 AS cor0
----
-18

skipif mysql # not compatible
query I rowsort label-1536
SELECT - 54 / + COUNT ( * ) FROM tab2 AS cor0
----
-18

query I rowsort
SELECT DISTINCT - - 93 * + + 81 + - 98 * 77 FROM tab0 AS cor0
----
-13

query I rowsort
SELECT ALL - col1 * 33 AS col1 FROM tab0 AS cor0
----
-2673
-33
-693

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

query I rowsort
SELECT - 43 * + col0 AS col2 FROM tab2 AS cor0
----
-1978
-2752
-3225

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1541
SELECT + col0 AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) >= + CAST( NULL AS SIGNED ) + col2
----

skipif mysql # not compatible
query I rowsort label-1541
SELECT + col0 AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) >= + CAST ( NULL AS INTEGER ) + col2
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL <> - 44
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1543
SELECT ALL - 44 DIV - col0 col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1543
SELECT ALL - 44 / - col0 col0 FROM tab1 AS cor0
----
0
0
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1545
SELECT ALL MAX( col0 ) FROM tab1 WHERE NULL = ( - 54 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1545
SELECT ALL MAX ( col0 ) FROM tab1 WHERE NULL = ( - 54 )
----
NULL

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1547
SELECT ALL - col2 DIV + - col2 AS col2 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-1547
SELECT ALL - col2 / + - col2 AS col2 FROM tab1
----
1
1
1

query I rowsort
SELECT + 26 + 71 AS col1 FROM tab0
----
97
97
97

query I rowsort
SELECT ( - 47 ) + + col0 FROM tab2
----
-1
17
28

query I rowsort
SELECT 27 + - col2 AS col2 FROM tab0
----
-20
-72
17

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

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

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

query II rowsort
SELECT 40 AS col2, 58 * - + col0 FROM tab1 AS cor0
----
40
-2958
40
-4930
40
-5278

query I rowsort
SELECT DISTINCT + col2 + - ( + + ( + 51 ) ) AS col2 FROM tab2 AS cor0
----
-11
-28
7

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

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

query I rowsort
SELECT 83 * + 59 AS col1 FROM tab1
----
4897
4897
4897

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + + 17 col2 FROM tab1 WHERE NOT 15 BETWEEN ( - - 19 / - col2 ) AND col0 * - 8 * - col1
----

query I rowsort
SELECT ALL - 92 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 1af709a79a3e56281ffdce4d931d5965

onlyif mysql # aggregate syntax: 
query I rowsort label-1559
SELECT + 81 * - COUNT( * ) - + + 75 FROM tab2
----
-318

skipif mysql # not compatible
query I rowsort label-1559
SELECT + 81 * - COUNT ( * ) - + + 75 FROM tab2
----
-318

onlyif mysql # aggregate syntax: 
query I rowsort label-1560
SELECT ALL 6 * - 20 + - 66 + + COUNT( * ) * + 71 * + + 19 AS col2 FROM tab2 AS cor0
----
3861

skipif mysql # not compatible
query I rowsort label-1560
SELECT ALL 6 * - 20 + - 66 + + COUNT ( * ) * + 71 * + + 19 AS col2 FROM tab2 AS cor0
----
3861

query I rowsort
SELECT + 59 + - + col2 AS col0 FROM tab1 AS cor0
----
-37
-9
0

query I rowsort
SELECT + col0 * - - col1 + + + col2 + col1 FROM tab2 AS cor0
----
2420
5045
5150

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

query I rowsort
SELECT ALL + col1 + + 64 FROM tab2 AS cor0
----
115
131
141

query I rowsort
SELECT - col0 + - col0 * - + col1 AS col0 FROM tab0 AS cor0
----
0
1200
1740

query I rowsort
SELECT + col2 AS col1 FROM tab1 AS cor0 WHERE - col0 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1567
SELECT ALL MIN( + + 87 ) + SUM( 26 ) AS col1 FROM tab0 AS cor0
----
165

skipif mysql # not compatible
query I rowsort label-1567
SELECT ALL MIN ( + + 87 ) + SUM ( 26 ) AS col1 FROM tab0 AS cor0
----
165

query II rowsort
SELECT DISTINCT - col0 - - col2, + col0 AS col2 FROM tab0 cor0
----
-77
87
2
97
32
15

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 + - col2, + 26 col0 FROM tab0 AS cor0
----
-100
26
-128
26
-31
26

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 14 - col2 col2 FROM tab2
----
-26
-44
-9

query I rowsort
SELECT + col0 + - 53 FROM tab2
----
-7
11
22

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1576
SELECT + SUM( DISTINCT - - col0 ) FROM tab2 WHERE + col1 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1576
SELECT + SUM ( DISTINCT - - col0 ) FROM tab2 WHERE + col1 IS NULL
----
NULL

query I rowsort
SELECT - col0 * + - col1 * + + 16 FROM tab1
----
11424
6800
68432

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * + - 47 col2 FROM tab2
----
-1081
-1880
-2726

query I rowsort
SELECT DISTINCT ( - 51 ) FROM tab2
----
-51

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

query I rowsort
SELECT ALL + - col0 * + col2 + - col0 + + + 14 FROM tab0 AS cor0
----
-706
-943
-9686

query I rowsort
SELECT ALL col1 * - col0 * - col0 * col2 AS col2 FROM tab0 cor0
----
1589490
856575
931491

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

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

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

query III rowsort
SELECT * FROM tab2 WHERE NOT 71 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL NOT BETWEEN 45 AND NULL
----

query IIIIII rowsort
SELECT DISTINCT * FROM tab1, tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

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

query I rowsort
SELECT DISTINCT - 26 * - + col2 FROM tab0 cor0
----
1222
2574
260

onlyif mysql # aggregate syntax: 
query I rowsort label-1592
SELECT COUNT( + 2 ) FROM tab2 AS cor0 WHERE NOT ( + + col1 ) IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-1592
SELECT COUNT ( + 2 ) FROM tab2 AS cor0 WHERE NOT ( + + col1 ) IS NULL
----
3

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1594
SELECT col0 DIV CAST( + col0 AS SIGNED ) FROM tab2
----
1
1
1

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

query I rowsort
SELECT - 2 * col0 FROM tab0
----
-174
-194
-30

onlyif mysql # DIV for integer division: 
query I rowsort label-1596
SELECT DISTINCT + 85 + + + 4 DIV col0 FROM tab1
----
85

skipif mysql # not compatible
query I rowsort label-1596
SELECT DISTINCT + 85 + + + 4 / col0 FROM tab1
----
85

query I rowsort
SELECT ALL - + col2 + + - col2 AS col1 FROM tab0 AS cor0
----
-198
-20
-94

query I rowsort
SELECT 95 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1599
SELECT DISTINCT - COUNT( * ) - + 25 * ( 92 ) FROM tab0 AS cor0
----
-2303

skipif mysql # not compatible
query I rowsort label-1599
SELECT DISTINCT - COUNT ( * ) - + 25 * ( 92 ) FROM tab0 AS cor0
----
-2303

onlyif mysql # aggregate syntax: 
query I rowsort label-1600
SELECT ALL SUM( ALL + - 83 ) FROM tab0
----
-249

skipif mysql # not compatible
query I rowsort label-1600
SELECT ALL SUM ( ALL + - 83 ) FROM tab0
----
-249

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + + + ( - + 91 ) col0 FROM tab1 cor0
----
-150
-159
-187

query I rowsort
SELECT - col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-59
-68
-96

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

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

query I rowsort
SELECT + col2 - + - col1 FROM tab0 AS cor0
----
100
128
31

query I rowsort
SELECT DISTINCT col1 + col1 + + 31 AS col1 FROM tab0 AS cor0
----
193
33
73

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

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

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

query I rowsort
SELECT 45 - + - col2 + + 18 FROM tab0 AS cor0
----
110
162
73

onlyif mysql # aggregate syntax: 
query I rowsort label-1611
SELECT - + COUNT( * ) - + + 28 FROM tab1 AS cor0
----
-31

skipif mysql # not compatible
query I rowsort label-1611
SELECT - + COUNT ( * ) - + + 28 FROM tab1 AS cor0
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-1612
SELECT ( - + MIN( - + 87 ) ) - - 17 + + - MIN( ALL - col1 ) + + 36 FROM tab2
----
217

skipif mysql # not compatible
query I rowsort label-1612
SELECT ( - + MIN ( - + 87 ) ) - - 17 + + - MIN ( ALL - col1 ) + + 36 FROM tab2
----
217

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

query I rowsort
SELECT ALL + + col1 AS col2 FROM tab1 WHERE NULL IS NULL
----
14
47
5

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1615
SELECT COUNT ( ALL col2 ) col1 FROM tab2
----
3

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

query II rowsort
SELECT DISTINCT ( col0 ) AS col0, col2 AS col2 FROM tab2 AS cor0
----
46
23
64
40
75
58

onlyif mysql # DIV for integer division: 
query I rowsort label-1618
SELECT + col2 DIV + + col1 AS col1 FROM tab1
----
1
11
6

skipif mysql # not compatible
query I rowsort label-1618
SELECT + col2 / + + col1 AS col1 FROM tab1
----
1
11
6

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

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

query II rowsort
SELECT ALL col0, + 5 * col0 - - col0 AS col2 FROM tab0
----
15
90
87
522
97
582

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL BETWEEN - - 88 * - 31 * col0 AND + col1 * - col0
----

query I rowsort
SELECT ALL 72 FROM tab1 AS cor0 WHERE NULL IS NULL
----
72
72
72

query I rowsort
SELECT DISTINCT ( - col1 ) + 6 FROM tab0 AS cor0
----
-15
-75
5

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1625
SELECT - + CAST( NULL AS SIGNED ) col1, col0 - - col1 FROM tab2 AS cor0
----
NULL
141
NULL
142
NULL
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1625
SELECT - + CAST ( NULL AS INTEGER ) col1, col0 - - col1 FROM tab2 AS cor0
----
NULL
141
NULL
142
NULL
97

onlyif mysql # aggregate syntax: 
query I rowsort label-1626
SELECT ALL + SUM( + 46 ) AS col0 FROM tab1 AS cor0
----
138

skipif mysql # not compatible
query I rowsort label-1626
SELECT ALL + SUM ( + 46 ) AS col0 FROM tab1 AS cor0
----
138

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1627
SELECT DISTINCT - - col0 + + - col2 + CAST ( NULL AS INTEGER ) AS col0, + 9 col0 FROM tab2 AS cor0
----
NULL
9

query II rowsort
SELECT DISTINCT + 22 AS col1, ( 36 ) FROM tab1 AS cor0
----
22
36

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1630
SELECT + + COUNT( * ) * SUM( + + col0 ) AS col2 FROM tab1 cor0
----
681

skipif mysql # not compatible
query I rowsort label-1630
SELECT + + COUNT ( * ) * SUM ( + + col0 ) AS col2 FROM tab1 cor0
----
681

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( - col0, - 21 )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL IN ( - + col1, + 38, + + ( + ( - - col1 ) ) * - ( col0 ) * - - 58 )
----

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1634
SELECT ALL col0 DIV + 20 + + 5 + + 7 - col1 FROM tab0
----
-5
-69
15

skipif mysql # not compatible
query I rowsort label-1634
SELECT ALL col0 / + 20 + + 5 + + 7 - col1 FROM tab0
----
-5
-69
15

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + + ( + col2 ) + + col2 col2 FROM tab0 WHERE NOT NULL <= + + 11
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1637
SELECT ALL + 3 * + + COUNT( * ) + + - 60 * + - 90 FROM tab1
----
5409

skipif mysql # not compatible
query I rowsort label-1637
SELECT ALL + 3 * + + COUNT ( * ) + + - 60 * + - 90 FROM tab1
----
5409

query I rowsort
SELECT 26 + + col1 AS col1 FROM tab1
----
31
40
73

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

query I rowsort
SELECT ALL col1 * col2 - + 1 * + - col2 FROM tab2 AS cor0
----
1196
3120
3944

onlyif mysql # aggregate syntax: 
query I rowsort label-1641
SELECT + COUNT( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 cor1 WHERE NOT NULL IS NOT NULL
----
9

skipif mysql # not compatible
query I rowsort label-1641
SELECT + COUNT ( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 cor1 WHERE NOT NULL IS NOT NULL
----
9

query I rowsort
SELECT ALL - - col1 * - - 9 * col2 FROM tab0 AS cor0
----
1890
34263
891

query I rowsort
SELECT DISTINCT - col1 + + + col0 FROM tab2 AS cor0
----
-13
-5
8

query I rowsort
SELECT col2 + - + 28 + + col2 * + - col1 FROM tab2 AS cor0
----
-1178
-3068
-3856

query II rowsort
SELECT + + col2, - col1 FROM tab0 AS cor0 WHERE + 71 IS NULL
----

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

query I rowsort
SELECT DISTINCT - + col0 * + - 78 + - col2 + + - col0 FROM tab2 AS cor0
----
3519
4888
5717

onlyif mysql # aggregate syntax: 
query I rowsort label-1648
SELECT + ( + ( - + ( - + MAX( + col0 ) ) ) ) + - COUNT( * ) FROM tab2 AS cor0
----
72

skipif mysql # not compatible
query I rowsort label-1648
SELECT + ( + ( - + ( - + MAX ( + col0 ) ) ) ) + - COUNT ( * ) FROM tab2 AS cor0
----
72

query II rowsort
SELECT ALL - col2 AS col0, col1 AS col0 FROM tab0 cor0
----
-10
21
-47
81
-99
1

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

skipif mysql # not compatible
query I rowsort label-1650
SELECT col0 / col0 / col0 AS col2 FROM tab1
----
0
0
0

query I rowsort
SELECT DISTINCT - 18 * col2 AS col0 FROM tab1
----
-1062
-1224
-1728

query I rowsort
SELECT 59 * + col2 AS col1 FROM tab0
----
2773
5841
590

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

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

query II rowsort
SELECT + col0 AS col2, col2 AS col0 FROM tab2
----
46
23
64
40
75
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1655
SELECT ALL - CAST( - + 40 AS SIGNED ) AS col2 FROM tab0
----
40
40
40

skipif mysql # not compatible
query I rowsort label-1655
SELECT ALL - CAST ( - + 40 AS INTEGER ) AS col2 FROM tab0
----
40
40
40

onlyif mysql # DIV for integer division: 
query II rowsort label-1656
SELECT 70, ( col1 ) DIV - + col2 + - 43 * 34 AS col1 FROM tab0
----
70
-1462
70
-1463
70
-1464

skipif mysql # not compatible
query II rowsort label-1656
SELECT 70, ( col1 ) / - + col2 + - 43 * 34 AS col1 FROM tab0
----
70
-1462
70
-1463
70
-1464

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1659
SELECT ALL MAX( ALL + + col0 ) AS col1 FROM tab2
----
75

skipif mysql # not compatible
query I rowsort label-1659
SELECT ALL MAX ( ALL + + col0 ) AS col1 FROM tab2
----
75

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

skipif mysql # not compatible
query I rowsort label-1660
SELECT DISTINCT - COUNT ( * ) AS col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-3

query I rowsort
SELECT ALL - 23 * - col0 FROM tab1
----
1173
1955
2093

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1662
SELECT DISTINCT 41 DIV - CAST( + + COUNT( DISTINCT - 55 ) AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-41

skipif mysql # not compatible
query I rowsort label-1662
SELECT DISTINCT 41 / - CAST ( + + COUNT ( DISTINCT - 55 ) AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-41

onlyif mysql # aggregate syntax: 
query II rowsort label-1663
SELECT DISTINCT - 51 AS col2, 72 * + COUNT( * ) FROM tab2 cor0
----
-51
216

skipif mysql # not compatible
query II rowsort label-1663
SELECT DISTINCT - 51 AS col2, 72 * + COUNT ( * ) FROM tab2 cor0
----
-51
216

query I rowsort
SELECT col0 * - col2 + + 61 FROM tab0 AS cor0
----
-644
-809
-9542

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1666
SELECT ALL + MAX( DISTINCT + 40 ) AS col2 FROM tab0
----
40

skipif mysql # not compatible
query I rowsort label-1666
SELECT ALL + MAX ( DISTINCT + 40 ) AS col2 FROM tab0
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-1667
SELECT ALL ( SUM( + - 65 ) ) FROM tab1 AS cor0
----
-195

skipif mysql # not compatible
query I rowsort label-1667
SELECT ALL ( SUM ( + - 65 ) ) FROM tab1 AS cor0
----
-195

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1669
SELECT + - col1 DIV col0 + + ( + col0 ) AS col1 FROM tab2 cor0
----
45
63
75

skipif mysql # not compatible
query I rowsort label-1669
SELECT + - col1 / col0 + + ( + col0 ) AS col1 FROM tab2 cor0
----
45
63
75

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

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

query III rowsort
SELECT * FROM tab0 WHERE ( + ( + col2 ) <= + col1 + col0 )
----
15
81
47
87
21
10

query I rowsort
SELECT - 73 FROM tab0 WHERE + col1 IS NOT NULL
----
-73
-73
-73

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1674
SELECT ALL + col0 + col1 * + col0 + + - 75 AS col2, + col2 + col1 DIV + 92 AS col2 FROM tab2 AS cor0
----
2317
23
4917
40
5025
58

skipif mysql # not compatible
query II rowsort label-1674
SELECT ALL + col0 + col1 * + col0 + + - 75 AS col2, + col2 + col1 / + 92 AS col2 FROM tab2 AS cor0
----
2317
23
4917
40
5025
58

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1676
SELECT ALL CAST( NULL AS SIGNED ) * MAX( DISTINCT col0 ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1676
SELECT ALL CAST ( NULL AS INTEGER ) * MAX ( DISTINCT col0 ) AS col2 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + 27 + + 44 FROM tab1 AS cor0
----
71

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 2 + + col2 + - col0 * col1 * - + ( + 88 ) col1 FROM tab0 AS cor0
----
106965
160784
8633

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1679
SELECT ALL + CAST( NULL AS SIGNED ) - + - 70, col2 FROM tab2
----
NULL
23
NULL
40
NULL
58

skipif mysql # not compatible
query II rowsort label-1679
SELECT ALL + CAST ( NULL AS INTEGER ) - + - 70, col2 FROM tab2
----
NULL
23
NULL
40
NULL
58

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1681
SELECT ALL + ( ( + + MAX( DISTINCT - ( - - 61 ) ) ) ) AS col1, COUNT( * ) AS col2 FROM tab2 cor0
----
-61
3

skipif mysql # not compatible
query II rowsort label-1681
SELECT ALL + ( ( + + MAX ( DISTINCT - ( - - 61 ) ) ) ) AS col1, COUNT ( * ) AS col2 FROM tab2 cor0
----
-61
3

onlyif mysql # aggregate syntax: 
query II rowsort label-1682
SELECT ALL - MAX( 11 ), - ( MAX( col0 ) ) AS col0 FROM tab0 AS cor0
----
-11
-97

skipif mysql # not compatible
query II rowsort label-1682
SELECT ALL - MAX ( 11 ), - ( MAX ( col0 ) ) AS col0 FROM tab0 AS cor0
----
-11
-97

query I rowsort
SELECT ALL - ( 28 ) AS col1 FROM tab2 AS cor0
----
-28
-28
-28

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

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

query I rowsort
SELECT - + col0 * + ( + col0 ) + + 27 + - 81 FROM tab2 AS cor0
----
-2170
-4150
-5679

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1688
SELECT DISTINCT - COUNT( * ) * - - 99 col1 FROM tab0 AS cor0
----
-297

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1688
SELECT DISTINCT - COUNT ( * ) * - - 99 col1 FROM tab0 AS cor0
----
-297

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1689
SELECT ALL COUNT( * ) DIV - - MIN( - col1 ) AS col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-1689
SELECT ALL COUNT ( * ) / - - MIN ( - col1 ) AS col1 FROM tab2
----
0

query I rowsort
SELECT DISTINCT 1 * 87 AS col1 FROM tab1
----
87

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1691
SELECT - CAST( NULL AS SIGNED ) AS col0, - col0 * - col2 col0 FROM tab0
----
NULL
705
NULL
870
NULL
9603

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1691
SELECT - CAST ( NULL AS INTEGER ) AS col0, - col0 * - col2 col0 FROM tab0
----
NULL
705
NULL
870
NULL
9603

onlyif mysql # aggregate syntax: 
query I rowsort label-1692
SELECT ALL - 90 * + COUNT( * ) FROM tab0
----
-270

skipif mysql # not compatible
query I rowsort label-1692
SELECT ALL - 90 * + COUNT ( * ) FROM tab0
----
-270

onlyif mysql # DIV for integer division: 
query I rowsort label-1693
SELECT ALL 28 DIV - col1 FROM tab0
----
-1
-28
0

skipif mysql # not compatible
query I rowsort label-1693
SELECT ALL 28 / - col1 FROM tab0
----
-1
-28
0

query I rowsort
SELECT DISTINCT ( col0 ) FROM tab2 WHERE NULL IS NULL
----
46
64
75

query I rowsort
SELECT ( - + 83 ) AS col1 FROM tab1
----
-83
-83
-83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1696
SELECT + 79 AS col2 FROM tab1 AS cor0 WHERE NOT - CAST( NULL AS SIGNED ) IS NOT NULL
----
79
79
79

skipif mysql # not compatible
query I rowsort label-1696
SELECT + 79 AS col2 FROM tab1 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) IS NOT NULL
----
79
79
79

onlyif mysql # aggregate syntax: 
query I rowsort label-1697
SELECT ALL MAX( + col0 ) * - 53 FROM tab0 AS cor0
----
-5141

skipif mysql # not compatible
query I rowsort label-1697
SELECT ALL MAX ( + col0 ) * - 53 FROM tab0 AS cor0
----
-5141

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

query II rowsort
SELECT + 94 * + 97 + col0 + 78 * - col2 AS col1, + col0 FROM tab1 AS cor0
----
1681
51
3905
91
4601
85

onlyif mysql # aggregate syntax: 
query II rowsort label-1700
SELECT DISTINCT + - COUNT( * ) AS col0, + COUNT( * ) * + - 62 FROM tab1 AS cor0 WHERE NOT ( NULL ) <> - 71 * - + col1 * - col0
----
0
0

skipif mysql # not compatible
query II rowsort label-1700
SELECT DISTINCT + - COUNT ( * ) AS col0, + COUNT ( * ) * + - 62 FROM tab1 AS cor0 WHERE NOT ( NULL ) <> - 71 * - + col1 * - col0
----
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1701
SELECT + 11 DIV col0 * - col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1701
SELECT + 11 / col0 * - col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT - + 74 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 5a567947d14593676e3825756f8e6130

onlyif mysql # DIV for integer division: 
query I rowsort label-1703
SELECT + + 87 DIV + 41 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 84dbfaf9bc17dd097f15bc36b4186261

skipif mysql # not compatible
query I rowsort label-1703
SELECT + + 87 / + 41 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 84dbfaf9bc17dd097f15bc36b4186261

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

skipif mysql # not compatible
query I rowsort label-1704
SELECT DISTINCT - 47 + + COUNT ( * ) FROM tab1
----
-44

query I rowsort
SELECT - ( - - 48 ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 31c94943c073954e4ca20b170ab61f8c

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1706
SELECT 33 FROM tab0 WHERE NOT - CAST( 5 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-1706
SELECT 33 FROM tab0 WHERE NOT - CAST ( 5 AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT - - 71 / col1 FROM tab1 WHERE + + 71 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1708
SELECT 55 * - MAX( - 47 ) AS col0 FROM tab1
----
2585

skipif mysql # not compatible
query I rowsort label-1708
SELECT 55 * - MAX ( - 47 ) AS col0 FROM tab1
----
2585

onlyif mysql # aggregate syntax: 
query I rowsort label-1709
SELECT DISTINCT - COUNT( * ) + - 79 * + - COUNT( * ) AS col1 FROM tab2 AS cor0
----
234

skipif mysql # not compatible
query I rowsort label-1709
SELECT DISTINCT - COUNT ( * ) + - 79 * + - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
234

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1711
SELECT ALL + - CAST( + col2 AS SIGNED ) * - col0 AS col2 FROM tab2 cor0 WHERE + ( + 46 ) NOT IN ( col2, + col0 / - 34 )
----
1058
2560
4350

skipif mysql # not compatible
query I rowsort label-1711
SELECT ALL + - CAST ( + col2 AS INTEGER ) * - col0 AS col2 FROM tab2 cor0 WHERE + ( + 46 ) NOT IN ( col2, + col0 / - 34 )
----
1058
2560
4350

query I rowsort
SELECT DISTINCT + - ( - col1 ) + + 86 AS col1 FROM tab2 AS cor0
----
137
153
163

onlyif mysql # aggregate syntax: 
query I rowsort label-1713
SELECT + - 35 + + MIN( + 5 ) FROM tab2 AS cor0
----
-30

skipif mysql # not compatible
query I rowsort label-1713
SELECT + - 35 + + MIN ( + 5 ) FROM tab2 AS cor0
----
-30

query I rowsort
SELECT col1 * + - col0 + ( - col2 ) FROM tab1
----
-4345
-484
-810

query I rowsort
SELECT - 91 + - 53 AS col1 FROM tab1
----
-144
-144
-144

onlyif mysql # aggregate syntax: 
query I rowsort label-1716
SELECT DISTINCT MIN( DISTINCT + 63 ) FROM tab1 WHERE NOT - + 20 + col1 BETWEEN NULL AND + 72
----
NULL

skipif mysql # not compatible
query I rowsort label-1716
SELECT DISTINCT MIN ( DISTINCT + 63 ) FROM tab1 WHERE NOT - + 20 + col1 BETWEEN NULL AND + 72
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1717
SELECT DISTINCT + MAX( col1 ) * - 23 FROM tab1
----
-1081

skipif mysql # not compatible
query I rowsort label-1717
SELECT DISTINCT + MAX ( col1 ) * - 23 FROM tab1
----
-1081

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

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

query I rowsort
SELECT col1 + + 47 - - 52 + + 0 FROM tab1
----
104
113
146

query I rowsort
SELECT col0 * 52 * + + 15 AS col0 FROM tab2
----
35880
49920
58500

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1721
SELECT - CAST( NULL AS SIGNED ) / COUNT( * ) AS col2, 92 + - ( + + 16 ) AS col2 FROM tab1
----
NULL
76

skipif mysql # not compatible
query II rowsort label-1721
SELECT - CAST ( NULL AS INTEGER ) / COUNT ( * ) AS col2, 92 + - ( + + 16 ) AS col2 FROM tab1
----
NULL
76

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1724
SELECT col2, + CAST( NULL AS SIGNED ) FROM tab0 AS cor0 WHERE NULL <> col1
----

skipif mysql # not compatible
query II rowsort label-1724
SELECT col2, + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE NULL <> col1
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1725
SELECT + col2 - + CAST( + col1 AS SIGNED ) col0, - col0 * CAST( - - col2 AS SIGNED ) DIV 29 + + 34 AS col1 FROM tab0
----
-11
4
-34
10
98
-297

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1725
SELECT + col2 - + CAST ( + col1 AS INTEGER ) col0, - col0 * CAST ( - - col2 AS INTEGER ) / 29 + + 34 AS col1 FROM tab0
----
-11
4
-34
10
98
-297

onlyif mysql # aggregate syntax: 
query I rowsort label-1726
SELECT ALL + COUNT( * ) * 11 * - 3 AS col1 FROM tab0
----
-99

skipif mysql # not compatible
query I rowsort label-1726
SELECT ALL + COUNT ( * ) * 11 * - 3 AS col1 FROM tab0
----
-99

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

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

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT + 67 * col0 + + 34 <> NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1730
SELECT DISTINCT 24 * MAX( - + col2 ) FROM tab1
----
-1416

skipif mysql # not compatible
query I rowsort label-1730
SELECT DISTINCT 24 * MAX ( - + col2 ) FROM tab1
----
-1416

onlyif mysql # DIV for integer division: 
query I rowsort label-1731
SELECT ( + col0 ) DIV 88 AS col1 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-1731
SELECT ( + col0 ) / 88 AS col1 FROM tab1
----
0
0
1

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1733
SELECT MAX( ALL - - ( 61 ) ) AS col2 FROM tab0
----
61

skipif mysql # not compatible
query I rowsort label-1733
SELECT MAX ( ALL - - ( 61 ) ) AS col2 FROM tab0
----
61

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( - col1 ) col0 FROM tab2 cor0
----
51
67
77

query I rowsort
SELECT - col2 * - ( - col2 ) * - 70 + + + 34 AS col0 FROM tab0 AS cor0
----
154664
686104
7034

query I rowsort
SELECT ALL col1 * 86 FROM tab2 AS cor0
----
4386
5762
6622

query IIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 LEFT JOIN tab0 AS cor1 ON - - 5 IS NULL
----
18 values hashing to 18b19f89ce73392082a69acc4aed78f1

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

skipif mysql # not compatible
query I rowsort label-1739
SELECT DISTINCT COUNT ( * ) + - 22 FROM tab1
----
-19

onlyif mysql # DIV for integer division: 
query I rowsort label-1740
SELECT + 65 DIV + + col2 + 82 + + 32 FROM tab0 cor0
----
114
115
120

skipif mysql # not compatible
query I rowsort label-1740
SELECT + 65 / + + col2 + 82 + + 32 FROM tab0 cor0
----
114
115
120

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1741
SELECT 83 AS col1, + 92 + - + AVG ( ALL CAST( NULL AS DECIMAL ) ) AS col2 FROM tab0 AS cor0
----
83
NULL

skipif mysql # not compatible
query II rowsort label-1741
SELECT 83 AS col1, + 92 + - + AVG ( ALL CAST ( NULL AS REAL ) ) AS col2 FROM tab0 AS cor0
----
83
NULL

query II rowsort
SELECT + 25 AS col0, col2 FROM tab0 AS cor0
----
25
10
25
47
25
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 13 + - 69 col0 FROM tab2 AS cor0
----
-56

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

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

query I rowsort
SELECT ALL 26 - 90 AS col0 FROM tab0 AS cor0
----
-64
-64
-64

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1747
SELECT * FROM tab1 WHERE ( 65 + + - col1 - + col2 * + CAST( NULL AS SIGNED ) * - 86 + - + col2 * - col0 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-1747
SELECT * FROM tab1 WHERE ( 65 + + - col1 - + col2 * + CAST ( NULL AS INTEGER ) * - 86 + - + col2 * - col0 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query II rowsort label-1748
SELECT ALL COUNT( * ), 17 AS col2 FROM tab1
----
3
17

skipif mysql # not compatible
query II rowsort label-1748
SELECT ALL COUNT ( * ), 17 AS col2 FROM tab1
----
3
17

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1751
SELECT DISTINCT COUNT( * ) AS col0, MIN( - col1 ) FROM tab1
----
3
-47

skipif mysql # not compatible
query II rowsort label-1751
SELECT DISTINCT COUNT ( * ) AS col0, MIN ( - col1 ) FROM tab1
----
3
-47

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1753
SELECT + 74 + - 79 * COUNT( * ) AS col1 FROM tab2 AS cor0
----
-163

skipif mysql # not compatible
query I rowsort label-1753
SELECT + 74 + - 79 * COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-163

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL BETWEEN NULL AND - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1755
SELECT DISTINCT SUM( DISTINCT - 42 ) + COUNT( * ) FROM tab0 AS cor0
----
-39

skipif mysql # not compatible
query I rowsort label-1755
SELECT DISTINCT SUM ( DISTINCT - 42 ) + COUNT ( * ) FROM tab0 AS cor0
----
-39

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1757
SELECT - COUNT( * ) + + CAST( NULL AS SIGNED ) * - 31 * - 17 + - - 42 * + 47 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1757
SELECT - COUNT ( * ) + + CAST ( NULL AS INTEGER ) * - 31 * - 17 + - - 42 * + 47 FROM tab2 AS cor0
----
NULL

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

skipif mysql # not compatible
query I rowsort label-1758
SELECT ALL + CAST ( + 97 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
97
97
97

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + - 60 col2 FROM tab0
----
-5220
-5820
-900

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1762
SELECT + COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL <= col1 + + col0 * - col1 * 81
----
0

skipif mysql # not compatible
query I rowsort label-1762
SELECT + COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL <= col1 + + col0 * - col1 * 81
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-1763
SELECT - col1 DIV + col2 col2, col0 AS col0 FROM tab2 AS cor0
----
-1
64
-1
75
-2
46

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1763
SELECT - col1 / + col2 col2, col0 AS col0 FROM tab2 AS cor0
----
-1
64
-1
75
-2
46

query I rowsort
SELECT + col2 * col1 + + 85 AS col0 FROM tab1 AS cor0
----
1429
3281
380

query I rowsort
SELECT ALL col1 * - 27 AS col2 FROM tab1 AS cor0
----
-1269
-135
-378

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1767
SELECT DISTINCT - 19 * + ( + + COUNT( - col1 ) ) AS col0 FROM tab0 AS cor0
----
-57

skipif mysql # not compatible
query I rowsort label-1767
SELECT DISTINCT - 19 * + ( + + COUNT ( - col1 ) ) AS col0 FROM tab0 AS cor0
----
-57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1768
SELECT + COUNT( ( - col2 ) ) AS col1, + ( + CAST( NULL AS SIGNED ) ) AS col0 FROM tab0 AS cor0
----
3
NULL

skipif mysql # not compatible
query II rowsort label-1768
SELECT + COUNT ( ( - col2 ) ) AS col1, + ( + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0 AS cor0
----
3
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col0 <= - col0
----

query I rowsort
SELECT ALL + 13 * - + col0 FROM tab2
----
-598
-832
-975

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

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

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

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

query I rowsort
SELECT + col2 AS col2 FROM tab1 WHERE NOT NULL > + col1 + - + col1 / - col1 * + - col2 + - + col0
----

query II rowsort
SELECT col1, - 12 * 21 FROM tab1
----
14
-252
47
-252
5
-252

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1775
SELECT DISTINCT ( - COUNT( * ) ) DIV + 35 AS col2 FROM tab1 WHERE 73 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-1775
SELECT DISTINCT ( - COUNT ( * ) ) / + 35 AS col2 FROM tab1 WHERE 73 IS NULL
----
0

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1777
SELECT 61 + - 87 DIV - 52 + COUNT( * ) FROM tab0
----
65

skipif mysql # not compatible
query I rowsort label-1777
SELECT 61 + - 87 / - 52 + COUNT ( * ) FROM tab0
----
65

query I rowsort
SELECT ALL + 78 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 2aff42d3e015022a738905090a20dfd4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + ( col2 ) col2 FROM tab1 AS cor0
----
118
136
192

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + + 81 * + + col0 col2 FROM tab0 AS cor0
----
1230
7134
7954

onlyif mysql # aggregate syntax: 
query I rowsort label-1781
SELECT DISTINCT + - 86 * - COUNT( * ) + + MAX( - 51 ) AS col2 FROM tab1 AS cor0
----
207

skipif mysql # not compatible
query I rowsort label-1781
SELECT DISTINCT + - 86 * - COUNT ( * ) + + MAX ( - 51 ) AS col2 FROM tab1 AS cor0
----
207

query I rowsort
SELECT DISTINCT 14 * - 29 FROM tab2
----
-406

query I rowsort
SELECT 59 * - col0 FROM tab1
----
-3009
-5015
-5369

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1784
SELECT + 37, 6 + + + col2 FROM tab2 WHERE NULL > + - CAST( + - col0 AS SIGNED )
----

skipif mysql # not compatible
query II rowsort label-1784
SELECT + 37, 6 + + + col2 FROM tab2 WHERE NULL > + - CAST ( + - col0 AS INTEGER )
----

query I rowsort
SELECT ALL 14 * + col1 + + - col2 FROM tab0
----
-85
1087
284

onlyif mysql # aggregate syntax: 
query I rowsort label-1786
SELECT ALL COUNT( * ) * + 20 AS col0 FROM tab0 AS cor0
----
60

skipif mysql # not compatible
query I rowsort label-1786
SELECT ALL COUNT ( * ) * + 20 AS col0 FROM tab0 AS cor0
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-1787
SELECT DISTINCT + - SUM( DISTINCT 85 ) * + + COUNT( DISTINCT + + 37 ) * COUNT( * ) * COUNT( * ) col0 FROM tab1 AS cor0 WHERE + col1 IS NOT NULL
----
-765

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1787
SELECT DISTINCT + - SUM ( DISTINCT 85 ) * + + COUNT ( DISTINCT + + 37 ) * COUNT ( * ) * COUNT ( * ) col0 FROM tab1 AS cor0 WHERE + col1 IS NOT NULL
----
-765

query I rowsort
SELECT DISTINCT col0 AS col2 FROM tab1 AS cor0 WHERE col0 = + 66
----

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1790
SELECT + CAST( NULL AS DECIMAL ) * - - 63 * - 48 col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1790
SELECT + CAST ( NULL AS REAL ) * - - 63 * - 48 col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1791
SELECT DISTINCT - MIN( ALL + col0 ) col0 FROM tab1
----
-51

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

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

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

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

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

query I rowsort
SELECT ALL - + col0 * - + 16 * + - 76 AS col2 FROM tab0 AS cor0
----
-105792
-117952
-18240

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

query I rowsort
SELECT - col0 FROM tab0 AS cor0 WHERE NOT col0 * - 46 NOT IN ( - col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col0 col0, + col0 AS col0 FROM tab1 AS cor0
----
-51
51
-85
85
-91
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1798
SELECT - + CAST( - + 52 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
52
52
52

skipif mysql # not compatible
query I rowsort label-1798
SELECT - + CAST ( - + 52 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
52
52
52

onlyif mysql # DIV for integer division: 
query I rowsort label-1799
SELECT - 70 DIV - col0 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-1799
SELECT - 70 / - col0 FROM tab1
----
0
0
1

query I rowsort
SELECT ALL - - ( + col1 ) + + col1 FROM tab1 WHERE - + 30 IS NOT NULL
----
10
28
94

onlyif mysql # aggregate syntax: 
query I rowsort label-1801
SELECT ALL COUNT( DISTINCT + + col0 ) AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-1801
SELECT ALL COUNT ( DISTINCT + + col0 ) AS col0 FROM tab2
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1802
SELECT AVG ( - - CAST( NULL AS SIGNED ) ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-1802
SELECT AVG ( - - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab2
----
NULL

query II rowsort
SELECT DISTINCT col1 + 95 AS col1, col2 AS col2 FROM tab2
----
146
23
162
58
172
40

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( ( - col1 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1805
SELECT ALL + COUNT( + 53 ) AS col0 FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-1805
SELECT ALL + COUNT ( + 53 ) AS col0 FROM tab2 cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1806
SELECT ALL - COUNT( * ) * + COUNT( * ) AS col0 FROM tab1
----
-9

skipif mysql # not compatible
query I rowsort label-1806
SELECT ALL - COUNT ( * ) * + COUNT ( * ) AS col0 FROM tab1
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1807
SELECT DISTINCT + CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-1807
SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1808
SELECT COUNT( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9

skipif mysql # not compatible
query I rowsort label-1808
SELECT COUNT ( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9

query I rowsort
SELECT DISTINCT - - 25 - - + 69 AS col2 FROM tab1 AS cor0
----
94

query I rowsort
SELECT DISTINCT - - col2 * - col0 + - ( - col0 ) * - + 72 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
-11135
-12740
-8568

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + - col2 col1, col2 + + col0 FROM tab2 AS cor0
----
-23
69
-40
104
-58
133

query I rowsort
SELECT - + 39 * 57 + + col2 - col2 * + col1 AS col2 FROM tab1 AS cor0
----
-2459
-3471
-5351

query II rowsort
SELECT col0 - + - col2 * - col1 AS col1, 43 + - + col1 FROM tab0 AS cor0
----
-123
22
-2
42
-3792
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-1814
SELECT DISTINCT + 14 - + COUNT( * ) AS col0 FROM tab2 AS cor0
----
11

skipif mysql # not compatible
query I rowsort label-1814
SELECT DISTINCT + 14 - + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
11

query I rowsort
SELECT col2 * - - col2 - ( + - col0 ) AS col2 FROM tab0
----
187
2224
9898

query I rowsort
SELECT DISTINCT 5 * + col2 - col2 * + col2 FROM tab2
----
-1400
-3074
-414

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1817
SELECT ALL + col0 - + col0 * - CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1817
SELECT ALL + col0 - + col0 * - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1818
SELECT ALL + ( + col1 ) DIV + 31 FROM tab0
----
0
0
2

skipif mysql # not compatible
query I rowsort label-1818
SELECT ALL + ( + col1 ) / + 31 FROM tab0
----
0
0
2

onlyif mysql # aggregate syntax: 
query I rowsort label-1819
SELECT ALL + COUNT( * ) * - 30 FROM tab2
----
-90

skipif mysql # not compatible
query I rowsort label-1819
SELECT ALL + COUNT ( * ) * - 30 FROM tab2
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-1820
SELECT - 9 * - - COUNT( * ) * + COUNT( * ) FROM tab2
----
-81

skipif mysql # not compatible
query I rowsort label-1820
SELECT - 9 * - - COUNT ( * ) * + COUNT ( * ) FROM tab2
----
-81

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1821
SELECT ALL * FROM tab2 cor0 WHERE - CAST( NULL AS SIGNED ) NOT BETWEEN + + 41 + + 41 AND - col0
----

skipif mysql # not compatible
query III rowsort label-1821
SELECT ALL * FROM tab2 cor0 WHERE - CAST ( NULL AS INTEGER ) NOT BETWEEN + + 41 + + 41 AND - col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 18 * - 10 * + 12 + - col2 col2 FROM tab1 AS cor0
----
2064
2092
2101

onlyif mysql # aggregate syntax: 
query I rowsort label-1823
SELECT DISTINCT + COUNT( + 78 ) AS col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-1823
SELECT DISTINCT + COUNT ( + 78 ) AS col1 FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1824
SELECT ALL + MAX( col1 ) AS col1 FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-1824
SELECT ALL + MAX ( col1 ) AS col1 FROM tab1 AS cor0
----
47

query I rowsort
SELECT + - 48 AS col1 FROM tab2 AS cor0
----
-48
-48
-48

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col2 AS col1, - col2 col2 FROM tab1 AS cor0
----
-59
-59
-68
-68
-96
-96

query I rowsort
SELECT + col1 FROM tab0 AS cor0 WHERE NOT - 1 IS NULL
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-1828
SELECT DISTINCT - COUNT( DISTINCT - + col1 ) AS col0 FROM tab2 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-1828
SELECT DISTINCT - COUNT ( DISTINCT - + col1 ) AS col0 FROM tab2 cor0
----
-3

query I rowsort
SELECT 35 * + - 6 * + col0 AS col2 FROM tab1 AS cor0
----
-10710
-17850
-19110

onlyif mysql # aggregate syntax: 
query I rowsort label-1830
SELECT DISTINCT 3 - + ( + SUM( - 44 ) ) FROM tab1 WHERE NOT + col0 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1830
SELECT DISTINCT 3 - + ( + SUM ( - 44 ) ) FROM tab1 WHERE NOT + col0 IS NOT NULL
----
NULL

query II rowsort
SELECT DISTINCT col0, - 25 + + col1 FROM tab0
----
15
56
87
-4
97
-24

query I rowsort
SELECT AVG ( - 22 ) FROM tab0 WHERE ( NOT NULL IS NULL )
----
NULL

query I rowsort
SELECT ( - col2 ) + + + col2 AS col0 FROM tab1
----
0
0
0

query I rowsort
SELECT col1 * - col0 + + 54 * - - col1 AS col0 FROM tab1
----
-155
-1739
42

onlyif mysql # DIV for integer division: 
query I rowsort label-1835
SELECT DISTINCT - 20 + + col2 DIV + col1 AS col1 FROM tab2 AS cor0
----
-20

skipif mysql # not compatible
query I rowsort label-1835
SELECT DISTINCT - 20 + + col2 / + col1 AS col1 FROM tab2 AS cor0
----
-20

query I rowsort
SELECT ALL - 79 FROM tab1 AS cor0 WHERE + 16 IS NOT NULL
----
-79
-79
-79

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - + col0 >= ( - col2 + - col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col1 - + - col0 FROM tab0
----
108
96
98

query I rowsort
SELECT col1 * - 36 - - + col2 FROM tab2
----
-1813
-2354
-2732

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1840
SELECT DISTINCT col0 * + + 90, CAST( - - col2 AS SIGNED ) DIV - + ( 77 ) AS col2 FROM tab2
----
4140
0
5760
0
6750
0

skipif mysql # not compatible
query II rowsort label-1840
SELECT DISTINCT col0 * + + 90, CAST ( - - col2 AS INTEGER ) / - + ( 77 ) AS col2 FROM tab2
----
4140
0
5760
0
6750
0

query I rowsort
SELECT DISTINCT - col1 + + + col0 FROM tab0 AS cor0 WHERE + col2 * col0 + - 39 / + + col0 IS NULL
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE - 94 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-1843
SELECT ALL + 37 DIV - col2 col0 FROM tab2
----
-1
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1843
SELECT ALL + 37 / - col2 col0 FROM tab2
----
-1
0
0

query I rowsort
SELECT DISTINCT + ( + + 92 ) * + col1 FROM tab0
----
1932
7452
92

onlyif mysql # DIV for integer division: 
query II rowsort label-1845
SELECT ALL col0 DIV + + ( + col1 ) AS col1, ( + + 25 ) col1 FROM tab2
----
0
25
0
25
1
25

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1845
SELECT ALL col0 / + + ( + col1 ) AS col1, ( + + 25 ) col1 FROM tab2
----
0
25
0
25
1
25

query III rowsort
SELECT * FROM tab2 WHERE NOT - 60 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT 34 * - 66 FROM tab1
----
-2244

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( + col2 ) col2 FROM tab0
----
10
47
99

query II rowsort
SELECT ALL + col2, 29 FROM tab0
----
10
29
47
29
99
29

onlyif mysql # aggregate syntax: 
query I rowsort label-1850
SELECT + - 2 * + COUNT( * ) AS col1 FROM tab2 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-1850
SELECT + - 2 * + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 33 * col2 col0 FROM tab1 AS cor0
----
1947
2244
3168

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab0 cor1 WHERE ( - 47 ) <= NULL
----

query II rowsort
SELECT + col2 * + col2, col1 AS col2 FROM tab0 cor0 WHERE NOT + col0 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col0 IN ( - col0, + col2 * - + col0, - 58 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-1855
SELECT DISTINCT - + COUNT( * ) * - COUNT( + col0 ) AS col0 FROM tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-1855
SELECT DISTINCT - + COUNT ( * ) * - COUNT ( + col0 ) AS col0 FROM tab2 AS cor0
----
9

query II rowsort
SELECT DISTINCT - col0 * col0 + - 77 + col0, + 87 AS col2 FROM tab0 cor0
----
-287
87
-7559
87
-9389
87

onlyif mysql # DIV for integer division: 
query I rowsort label-1857
SELECT + col2 DIV col1 * 54 AS col1 FROM tab0 cor0
----
0
0
5346

skipif mysql # not compatible
query I rowsort label-1857
SELECT + col2 / col1 * 54 AS col1 FROM tab0 cor0
----
0
0
5346

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 38 col0 FROM tab0 cor0
----
38
38
38

query III rowsort
SELECT * FROM tab2 cor0 WHERE - col0 + col2 >= + - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-1860
SELECT + MIN( + 23 ) FROM tab0 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-1860
SELECT + MIN ( + 23 ) FROM tab0 AS cor0
----
23

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1861
SELECT DISTINCT * FROM tab2 WHERE NOT 8 + + - col0 NOT BETWEEN CAST( NULL AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-1861
SELECT DISTINCT * FROM tab2 WHERE NOT 8 + + - col0 NOT BETWEEN CAST ( NULL AS INTEGER ) AND NULL
----

query I rowsort
SELECT - col1 * + 54 FROM tab0
----
-1134
-4374
-54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1863
SELECT col1 / CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1863
SELECT col1 / CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1864
SELECT DISTINCT + COUNT( * ) DIV + 45 AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-1864
SELECT DISTINCT + COUNT ( * ) / + 45 AS col1 FROM tab1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1865
SELECT * FROM tab0 WHERE - col0 + 14 NOT BETWEEN ( col2 + + col1 * 88 ) AND CAST( NULL AS SIGNED )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-1865
SELECT * FROM tab0 WHERE - col0 + 14 NOT BETWEEN ( col2 + + col1 * 88 ) AND CAST ( NULL AS INTEGER )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 WHERE + 55 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - + col1 >= ( NULL )
----

query I rowsort
SELECT ALL ( + - col1 ) + - - 82 FROM tab1
----
35
68
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1869
SELECT - 64 + - CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1869
SELECT - 64 + - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL <> + col0 * - col2 + + - col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1871
SELECT DISTINCT + col2 + col1 * col1 DIV - + 76 AS col0 FROM tab2 AS cor0
----
-1
-11
-38

skipif mysql # not compatible
query I rowsort label-1871
SELECT DISTINCT + col2 + col1 * col1 / - + 76 AS col0 FROM tab2 AS cor0
----
-1
-11
-38

query III rowsort
SELECT * FROM tab0 WHERE + + 25 * - col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1873
SELECT - + COUNT( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-1873
SELECT - + COUNT ( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

query II rowsort
SELECT ALL 19 AS col2, - col1 + + col1 AS col0 FROM tab0
----
19
0
19
0
19
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1875
SELECT ALL - 28 + - COUNT( * ) FROM tab2 AS cor0
----
-31

skipif mysql # not compatible
query I rowsort label-1875
SELECT ALL - 28 + - COUNT ( * ) FROM tab2 AS cor0
----
-31

query I rowsort
SELECT ALL - 58 + 23 * - col1 - col1 * + col0 AS col0 FROM tab1 cor0
----
-1094
-5416
-598

query II rowsort
SELECT + 48, - 63 * + col0 AS col0 FROM tab2 AS cor0
----
48
-2898
48
-4032
48
-4725

query I rowsort
SELECT DISTINCT - col2 * + - col2 AS col0 FROM tab2 AS cor0
----
1600
3364
529

onlyif mysql # DIV for integer division: 
query I rowsort label-1879
SELECT DISTINCT - 58 DIV - + col1 + - 58 FROM tab2 cor0 WHERE ( NULL ) IS NULL
----
-57
-58

skipif mysql # not compatible
query I rowsort label-1879
SELECT DISTINCT - 58 / - + col1 + - 58 FROM tab2 cor0 WHERE ( NULL ) IS NULL
----
-57
-58

query I rowsort
SELECT ALL - col2 AS col1 FROM tab2 AS cor0 WHERE NULL <> ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + - 25 ) col1 FROM tab0 AS cor0
----
-25
-25
-25

onlyif mysql # DIV for integer division: 
query I rowsort label-1882
SELECT - 96 * col2 DIV col1 AS col0 FROM tab2
----
-43
-49
-83

skipif mysql # not compatible
query I rowsort label-1882
SELECT - 96 * col2 / col1 AS col0 FROM tab2
----
-43
-49
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-1883
SELECT ALL MIN( DISTINCT + 79 ) AS col0 FROM tab0
----
79

skipif mysql # not compatible
query I rowsort label-1883
SELECT ALL MIN ( DISTINCT + 79 ) AS col0 FROM tab0
----
79

query IIIIII rowsort
SELECT DISTINCT * FROM tab0, tab1 AS cor0 WHERE NOT - 81 + + 3 <> + 27
----

query I rowsort
SELECT ALL col1 * 63 FROM tab0
----
1323
5103
63

query I rowsort
SELECT DISTINCT ( col2 ) AS col0 FROM tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1887
SELECT DISTINCT + 43 * - + CAST( + COUNT( * ) AS SIGNED ) AS col1 FROM tab0
----
-129

skipif mysql # not compatible
query I rowsort label-1887
SELECT DISTINCT + 43 * - + CAST ( + COUNT ( * ) AS INTEGER ) AS col1 FROM tab0
----
-129

query I rowsort
SELECT ALL - col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT - + ( + 84 ) FROM tab2 AS cor0
----
-84
-84
-84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1890
SELECT + - CAST( NULL AS SIGNED ) col2 FROM tab1 AS cor0 WHERE NOT col0 < - col2
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1890
SELECT + - CAST ( NULL AS INTEGER ) col2 FROM tab1 AS cor0 WHERE NOT col0 < - col2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 48 FROM tab2 AS cor0 WHERE NOT NULL IN ( col2, 25 )
----

query I rowsort
SELECT ALL - - 19 AS col2 FROM tab1 cor0
----
19
19
19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1893
SELECT + - CAST( NULL AS SIGNED ) + + 93 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1893
SELECT + - CAST ( NULL AS INTEGER ) + + 93 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 97 * + + col2 + 60 FROM tab1 WHERE - 34 IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1895
SELECT DISTINCT COUNT( * ) DIV - COUNT( * ) AS col1 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-1895
SELECT DISTINCT COUNT ( * ) / - COUNT ( * ) AS col1 FROM tab0
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-1896
SELECT DISTINCT MAX( ALL - col0 ) AS col2, - 12 AS col2 FROM tab2
----
-46
-12

skipif mysql # not compatible
query II rowsort label-1896
SELECT DISTINCT MAX ( ALL - col0 ) AS col2, - 12 AS col2 FROM tab2
----
-46
-12

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + - + 12 col1 FROM tab1
----
47
56
84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 78 + - 54 col1 FROM tab1 WHERE 63 IS NOT NULL
----
24
24
24

query I rowsort
SELECT + col1 + - + col2 AS col2 FROM tab1
----
-21
-54
-82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1900
SELECT - CAST( NULL AS SIGNED ) * - - col2 + - + col1 * + 47 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1900
SELECT - CAST ( NULL AS INTEGER ) * - - col2 + - + col1 * + 47 AS col2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1901
SELECT ( + - COUNT( * ) ) AS col0 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-1901
SELECT ( + - COUNT ( * ) ) AS col0 FROM tab2
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-1902
SELECT + COUNT( - ( + col0 ) ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-1902
SELECT + COUNT ( - ( + col0 ) ) FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1903
SELECT MAX( DISTINCT + + ( + col2 ) ) FROM tab1 cor0
----
96

skipif mysql # not compatible
query I rowsort label-1903
SELECT MAX ( DISTINCT + + ( + col2 ) ) FROM tab1 cor0
----
96

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1904
SELECT * FROM tab0 cor0 WHERE NOT NULL IN ( col2 * 67 + + col1, - 17 + + CAST( + col2 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-1904
SELECT * FROM tab0 cor0 WHERE NOT NULL IN ( col2 * 67 + + col1, - 17 + + CAST ( + col2 AS INTEGER ) )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 11 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT ALL 42 AS col0, col0 FROM tab2
----
42
46
42
64
42
75

onlyif mysql # aggregate syntax: 
query I rowsort label-1907
SELECT ALL SUM( ALL - - col1 ) FROM tab2
----
195

skipif mysql # not compatible
query I rowsort label-1907
SELECT ALL SUM ( ALL - - col1 ) FROM tab2
----
195

query II rowsort
SELECT DISTINCT - ( col0 ), + col1 FROM tab0
----
-15
81
-87
21
-97
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1909
SELECT CAST( + - col0 AS SIGNED ) FROM tab1
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-1909
SELECT CAST ( + - col0 AS INTEGER ) FROM tab1
----
-51
-85
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1910
SELECT - 40 - - CAST( - + col0 AS SIGNED ) / CAST( + + col1 AS SIGNED ) AS col1 FROM tab1 AS cor0 WHERE NOT ( 42 * - col2 ) <> ( NULL )
----

skipif mysql # not compatible
query I rowsort label-1910
SELECT - 40 - - CAST ( - + col0 AS INTEGER ) / CAST ( + + col1 AS INTEGER ) AS col1 FROM tab1 AS cor0 WHERE NOT ( 42 * - col2 ) <> ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1911
SELECT col0 * col2 DIV + 36 AS col2 FROM tab1 AS cor0
----
136
139
171

skipif mysql # not compatible
query I rowsort label-1911
SELECT col0 * col2 / + 36 AS col2 FROM tab1 AS cor0
----
136
139
171

onlyif mysql # aggregate syntax: 
query I rowsort label-1912
SELECT ALL + + ( - COUNT( DISTINCT + col1 ) ) col0 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1912
SELECT ALL + + ( - COUNT ( DISTINCT + col1 ) ) col0 FROM tab1 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-1913
SELECT - MIN( ALL col1 ) FROM tab1
----
-5

skipif mysql # not compatible
query I rowsort label-1913
SELECT - MIN ( ALL col1 ) FROM tab1
----
-5

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1914
SELECT DISTINCT + CAST( NULL AS DECIMAL ) * + MIN( col2 ) FROM tab1 WHERE + - col1 - col1 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1914
SELECT DISTINCT + CAST ( NULL AS REAL ) * + MIN ( col2 ) FROM tab1 WHERE + - col1 - col1 IS NULL
----
NULL

query I rowsort
SELECT DISTINCT - col0 + col2 + col1 AS col2 FROM tab2
----
28
50
53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1916
SELECT + + 69 / - col2 AS col0 FROM tab1 cor0 WHERE col1 * + CAST( NULL AS SIGNED ) - + col1 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-1916
SELECT + + 69 / - col2 AS col0 FROM tab1 cor0 WHERE col1 * + CAST ( NULL AS INTEGER ) - + col1 IS NOT NULL
----

query I rowsort
SELECT 20 AS col1 FROM tab0 AS cor0 WHERE col1 IS NOT NULL
----
20
20
20

query I rowsort
SELECT + col0 * - col1 - + - 23 + + 9 FROM tab2 AS cor0
----
-2314
-4896
-4993

query I rowsort
SELECT - 29 FROM tab1 WHERE + - col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1920
SELECT ( - col0 ) * CAST( - col2 AS SIGNED ) AS col0, col2 + 46 FROM tab2
----
1058
69
2560
86
4350
104

skipif mysql # not compatible
query II rowsort label-1920
SELECT ( - col0 ) * CAST ( - col2 AS INTEGER ) AS col0, col2 + 46 FROM tab2
----
1058
69
2560
86
4350
104

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1921
SELECT DISTINCT col2 * 36 - + CAST( col1 AS SIGNED ) * - 45 * - + 75 * ( + - CAST( NULL AS SIGNED ) ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-1921
SELECT DISTINCT col2 * 36 - + CAST ( col1 AS INTEGER ) * - 45 * - + 75 * ( + - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1922
SELECT DISTINCT - 9 * + - COUNT( * ) FROM tab0
----
27

skipif mysql # not compatible
query I rowsort label-1922
SELECT DISTINCT - 9 * + - COUNT ( * ) FROM tab0
----
27

onlyif mysql # DIV for integer division: 
query I rowsort label-1923
SELECT 55 - + 1 - - + 66 DIV - + col0 AS col0 FROM tab0
----
50
54
54

skipif mysql # not compatible
query I rowsort label-1923
SELECT 55 - + 1 - - + 66 / - + col0 AS col0 FROM tab0
----
50
54
54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1924
SELECT DISTINCT - col1 * + 73 + + CAST( + 58 AS SIGNED ) FROM tab2 WHERE NOT NULL IS NOT NULL
----
-3665
-4833
-5563

skipif mysql # not compatible
query I rowsort label-1924
SELECT DISTINCT - col1 * + 73 + + CAST ( + 58 AS INTEGER ) FROM tab2 WHERE NOT NULL IS NOT NULL
----
-3665
-4833
-5563

query I rowsort
SELECT ALL - + col0 + - - 59 AS col0 FROM tab0 AS cor0
----
-28
-38
44

query I rowsort
SELECT + 48 + - col1 FROM tab1 AS cor0
----
1
34
43

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1927
SELECT ALL * FROM tab2 AS cor0 WHERE - col1 - CAST( NULL AS DECIMAL ) <> NULL
----

skipif mysql # not compatible
query III rowsort label-1927
SELECT ALL * FROM tab2 AS cor0 WHERE - col1 - CAST ( NULL AS REAL ) <> NULL
----

query I rowsort
SELECT ALL + 87 * - - col0 - 89 * + - col1 AS col2 FROM tab1 AS cor0
----
12100
5683
7840

onlyif mysql # aggregate syntax: 
query I rowsort label-1929
SELECT ALL + - COUNT( * ) + + + 43 col2 FROM tab2 AS cor0
----
40

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1929
SELECT ALL + - COUNT ( * ) + + + 43 col2 FROM tab2 AS cor0
----
40

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col2 + col1 BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1931
SELECT DISTINCT - 59 - - CAST( NULL AS SIGNED ) * col0 AS col1 FROM tab2 WHERE NOT - 40 BETWEEN 97 AND + ( col0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1931
SELECT DISTINCT - 59 - - CAST ( NULL AS INTEGER ) * col0 AS col1 FROM tab2 WHERE NOT - 40 BETWEEN 97 AND + ( col0 )
----
NULL

query I rowsort
SELECT - col0 FROM tab2 WHERE NOT ( 0 ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE 8 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1934
SELECT ALL * FROM tab2 WHERE ( CAST( - ( - 60 ) AS SIGNED ) ) <= 35
----

skipif mysql # not compatible
query III rowsort label-1934
SELECT ALL * FROM tab2 WHERE ( CAST ( - ( - 60 ) AS INTEGER ) ) <= 35
----

query I rowsort
SELECT ALL + col2 * 85 + + 85 AS col2 FROM tab2
----
2040
3485
5015

query III rowsort
SELECT ALL * FROM tab0 WHERE col2 IN ( col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1937
SELECT ALL COUNT( * ) DIV 45 + - 45 AS col1 FROM tab0
----
-45

skipif mysql # not compatible
query I rowsort label-1937
SELECT ALL COUNT ( * ) / 45 + - 45 AS col1 FROM tab0
----
-45

query III rowsort
SELECT ALL * FROM tab2 WHERE - col0 IN ( col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1939
SELECT DISTINCT + MAX( ALL - col0 ) AS col0 FROM tab1 WHERE NOT - 0 / - col2 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1939
SELECT DISTINCT + MAX ( ALL - col0 ) AS col0 FROM tab1 WHERE NOT - 0 / - col2 IS NOT NULL
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( - 49 ) BETWEEN col0 + - 35 / col0 AND + col0 + - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col0 FROM tab0 WHERE NOT NULL BETWEEN NULL AND col2 + + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1942
SELECT ( COUNT( * ) ) + + COUNT( * ) AS col0 FROM tab1
----
6

skipif mysql # not compatible
query I rowsort label-1942
SELECT ( COUNT ( * ) ) + + COUNT ( * ) AS col0 FROM tab1
----
6

query I rowsort
SELECT 85 + - col1 AS col2 FROM tab0
----
4
64
84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1944
SELECT ALL - COUNT( * ) FROM tab1 WHERE NOT - col0 NOT IN ( CAST( - col2 AS SIGNED ) + + col1 )
----
0

skipif mysql # not compatible
query I rowsort label-1944
SELECT ALL - COUNT ( * ) FROM tab1 WHERE NOT - col0 NOT IN ( CAST ( - col2 AS INTEGER ) + + col1 )
----
0

query III rowsort
SELECT * FROM tab1 WHERE NULL BETWEEN NULL AND col1 + col2
----

query I rowsort
SELECT - col1 FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( ( col2 ) - col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * col0 + - col2 col0 FROM tab1 AS cor0
----
4800
4956
6120

onlyif mysql # aggregate syntax: 
query I rowsort label-1948
SELECT COUNT( * ) * + 94 AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-1948
SELECT COUNT ( * ) * + 94 AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
0

query I rowsort
SELECT ALL 76 + - col0 FROM tab1 WHERE NOT ( NULL ) = col2 * col2 + 93 * 27
----

query I rowsort
SELECT DISTINCT 28 FROM tab2 AS cor0 CROSS JOIN tab1
----
28

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( - 64 ) IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE + ( - 11 ) IN ( + col1 + + col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( - col2 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1954
SELECT ALL + 60 + - 71 * CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1954
SELECT ALL + 60 + - 71 * CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1955
SELECT ALL + 20 + col2 DIV - 37 FROM tab0 AS cor0
----
18
19
20

skipif mysql # not compatible
query I rowsort label-1955
SELECT ALL + 20 + col2 / - 37 FROM tab0 AS cor0
----
18
19
20

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - 54 BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1957
SELECT ALL - MAX( - col1 ) FROM tab2 cor0 WHERE ( col1 / 88 ) IS NOT NULL
----
51

skipif mysql # not compatible
query I rowsort label-1957
SELECT ALL - MAX ( - col1 ) FROM tab2 cor0 WHERE ( col1 / 88 ) IS NOT NULL
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-1958
SELECT ( COUNT( 38 ) ) FROM tab1 AS cor0 WHERE col1 NOT IN ( + col2 )
----
3

skipif mysql # not compatible
query I rowsort label-1958
SELECT ( COUNT ( 38 ) ) FROM tab1 AS cor0 WHERE col1 NOT IN ( + col2 )
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1959
SELECT - 78 + + COUNT( DISTINCT 4 + col2 * - 80 ) * - COUNT( * ) AS col2 FROM tab2 AS cor0
----
-87

skipif mysql # not compatible
query I rowsort label-1959
SELECT - 78 + + COUNT ( DISTINCT 4 + col2 * - 80 ) * - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-87

query I rowsort
SELECT + ( - col2 ) FROM tab0 AS cor0 WHERE NULL = ( - col0 )
----

query I rowsort
SELECT ALL + 57 - - 60 AS col1 FROM tab0 AS cor0
----
117
117
117

query I rowsort
SELECT 76 + col2 + + ( + 80 ) * col1 AS col0 FROM tab0
----
1766
255
6603

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1963
SELECT DISTINCT CAST( + col0 AS SIGNED ) + col2 * - 27 AS col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-1508
-1745
-2541

skipif mysql # not compatible
query I rowsort label-1963
SELECT DISTINCT CAST ( + col0 AS INTEGER ) + col2 * - 27 AS col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-1508
-1745
-2541

query I rowsort
SELECT 17 * - 19 FROM tab2
----
-323
-323
-323

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1965
SELECT DISTINCT ( CAST( NULL AS SIGNED ) ) * - 69 AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-1965
SELECT DISTINCT ( CAST ( NULL AS INTEGER ) ) * - 69 AS col2 FROM tab1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1966
SELECT - CAST( + + col2 AS SIGNED ) DIV + col2 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-1966
SELECT - CAST ( + + col2 AS INTEGER ) / + col2 FROM tab2
----
-1
-1
-1

query I rowsort
SELECT 25 * - - 19 FROM tab1
----
475
475
475

query I rowsort
SELECT ( - - 86 ) AS col0 FROM tab2
----
86
86
86

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1969
SELECT DISTINCT + COUNT( ALL + col1 ) + - 64 DIV + 33 AS col0 FROM tab2
----
2

skipif mysql # not compatible
query I rowsort label-1969
SELECT DISTINCT + COUNT ( ALL + col1 ) + - 64 / + 33 AS col0 FROM tab2
----
2

query I rowsort
SELECT DISTINCT + 53 * + col2 AS col2 FROM tab0
----
2491
5247
530

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1971
SELECT ALL col1 * - col2 + CAST( + 37 AS SIGNED ) DIV col2 FROM tab1
----
-1344
-295
-3196

skipif mysql # not compatible
query I rowsort label-1971
SELECT ALL col1 * - col2 + CAST ( + 37 AS INTEGER ) / col2 FROM tab1
----
-1344
-295
-3196

query I rowsort
SELECT 66 * - - col0 FROM tab1
----
3366
5610
6006

query I rowsort
SELECT DISTINCT - 7 + 51 AS col0 FROM tab0 cor0
----
44

query I rowsort
SELECT DISTINCT - - col0 * col0 - 6 FROM tab2 AS cor0
----
2110
4090
5619

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1975
SELECT ALL + col2 * + col2 * col2 - + CAST( - col2 AS SIGNED ) * + col0 FROM tab1 AS cor0
----
210394
320620
889632

skipif mysql # not compatible
query I rowsort label-1975
SELECT ALL + col2 * + col2 * col2 - + CAST ( - col2 AS INTEGER ) * + col0 FROM tab1 AS cor0
----
210394
320620
889632

query I rowsort
SELECT ALL ( - col0 ) AS col2 FROM tab2 AS cor0 WHERE ( + col1 - + col2 ) NOT BETWEEN NULL AND + col2
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-1977
SELECT COUNT( * ) * + - COUNT( * ) FROM tab1
----
-9

skipif mysql # not compatible
query I rowsort label-1977
SELECT COUNT ( * ) * + - COUNT ( * ) FROM tab1
----
-9

query I rowsort
SELECT + 67 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to b56f8a4f1fcebc9802481256df61e97c

onlyif mysql # aggregate syntax: 
query I rowsort label-1979
SELECT DISTINCT - MIN( + 17 ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-17

skipif mysql # not compatible
query I rowsort label-1979
SELECT DISTINCT - MIN ( + 17 ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-17

query I rowsort
SELECT ALL + 19 AS col2 FROM tab2 WHERE NOT + col2 * + 50 IS NULL
----
19
19
19

query I rowsort
SELECT + + col0 AS col0 FROM tab0 AS cor0 WHERE NOT 91 IS NULL
----
15
87
97

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 57 * + + col1 + col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 37 * ( + 17 ) AS col0 FROM tab2 AS cor0 WHERE NOT ( + ( - col0 ) + - col2 * + col0 ) IS NULL
----
629
629
629

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1984
SELECT DISTINCT ( - ( COUNT( * ) ) ) DIV COUNT( * ) AS col1 FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-1984
SELECT DISTINCT ( - ( COUNT ( * ) ) ) / COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-1

query I rowsort
SELECT ALL - - 97 * + col1 AS col1 FROM tab0 AS cor0
----
2037
7857
97

onlyif mysql # aggregate syntax: 
query I rowsort label-1986
SELECT - MAX( ALL - 91 ) FROM tab2 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-1986
SELECT - MAX ( ALL - 91 ) FROM tab2 AS cor0
----
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0, - col2 col0 FROM tab2 AS cor0
----
46
-23
64
-40
75
-58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 52 * col0 col0 FROM tab0 AS cor0 WHERE NOT + col2 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col1 + + 48 + + col2 * ( col0 ) >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1990
SELECT MIN( ALL - col0 ) AS col0 FROM tab2
----
-75

skipif mysql # not compatible
query I rowsort label-1990
SELECT MIN ( ALL - col0 ) AS col0 FROM tab2
----
-75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1991
SELECT + CAST( + 90 AS SIGNED ) DIV - ( - - COUNT( col2 ) ) FROM tab2
----
-30

skipif mysql # not compatible
query I rowsort label-1991
SELECT + CAST ( + 90 AS INTEGER ) / - ( - - COUNT ( col2 ) ) FROM tab2
----
-30

onlyif mysql # DIV for integer division: 
query II rowsort label-1992
SELECT ALL col0 DIV - - col1 AS col1, 68 DIV + col0 FROM tab0
----
0
4
4
0
97
0

skipif mysql # not compatible
query II rowsort label-1992
SELECT ALL col0 / - - col1 AS col1, 68 / + col0 FROM tab0
----
0
4
4
0
97
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 56 col2 FROM tab2 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col1 FROM tab1 WHERE NOT ( + col2 * - 57 ) < NULL
----

query I rowsort
SELECT DISTINCT + 70 + + col1 + + col1 * + col1 * - col1 FROM tab1
----
-103706
-2660
-50

query I rowsort
SELECT - + col0 * + - 1 AS col2 FROM tab1 AS cor0
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-1997
SELECT ALL + + 65 + - COUNT( * ) FROM tab1 AS cor0
----
62

skipif mysql # not compatible
query I rowsort label-1997
SELECT ALL + + 65 + - COUNT ( * ) FROM tab1 AS cor0
----
62

query III rowsort
SELECT * FROM tab2 WHERE + col0 NOT BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1999
SELECT DISTINCT - 16 * + + col0 * - CAST( - - ( - 24 ) AS SIGNED ) AS col2 FROM tab0
----
-33408
-37248
-5760

skipif mysql # not compatible
query I rowsort label-1999
SELECT DISTINCT - 16 * + + col0 * - CAST ( - - ( - 24 ) AS INTEGER ) AS col2 FROM tab0
----
-33408
-37248
-5760

query I rowsort
SELECT DISTINCT + col0 + - 40 FROM tab1 AS cor0
----
11
45
51

query II rowsort
SELECT ALL + ( - + col0 ) + 69 AS col2, + 68 FROM tab1 AS cor0
----
-16
68
-22
68
18
68

onlyif mysql # aggregate syntax: 
query I rowsort label-2002
SELECT DISTINCT - 49 + + + COUNT( * ) FROM tab1 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-2002
SELECT DISTINCT - 49 + + + COUNT ( * ) FROM tab1 AS cor0
----
-46

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2003
SELECT DISTINCT + 70 DIV - + 48 - - COUNT( * ) FROM tab0 AS cor0 WHERE + 27 - col2 = NULL
----
-1

skipif mysql # not compatible
query I rowsort label-2003
SELECT DISTINCT + 70 / - + 48 - - COUNT ( * ) FROM tab0 AS cor0 WHERE + 27 - col2 = NULL
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2004
SELECT DISTINCT + + 60 * + - COUNT( ALL - - col2 ) - + 72 AS col1 FROM tab2 AS cor0
----
-252

skipif mysql # not compatible
query I rowsort label-2004
SELECT DISTINCT + + 60 * + - COUNT ( ALL - - col2 ) - + 72 AS col1 FROM tab2 AS cor0
----
-252

query I rowsort
SELECT ALL - 41 FROM tab2 AS cor0 WHERE ( + col1 ) <= - col0
----

query I rowsort
SELECT ALL col2 - - col0 * col2 * - - col2 FROM tab1 AS cor0
----
295944
420852
470112

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( 10 ) BETWEEN NULL AND ( - 96 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL <= - 72
----

query I rowsort
SELECT ALL + 86 * + 41 FROM tab1 WHERE ( - col0 ) IS NULL
----

query I rowsort
SELECT ALL + ( + 46 ) AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to 31818c9d4d325eb248735c97cb1dce39

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + ( - 51 ) < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2012
SELECT * FROM tab0 WHERE ( ( col0 ) + - 86 * + - 68 * + col2 ) BETWEEN col2 - - ( col1 ) * - 6 AND ( - CAST( - col2 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-2012
SELECT * FROM tab0 WHERE ( ( col0 ) + - 86 * + - 68 * + col2 ) BETWEEN col2 - - ( col1 ) * - 6 AND ( - CAST ( - col2 AS INTEGER ) )
----

query III rowsort
SELECT * FROM tab2 WHERE + + ( - col2 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2014
SELECT COUNT( * ) AS col1 FROM tab0 WHERE + + ( col2 ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2014
SELECT COUNT ( * ) AS col1 FROM tab0 WHERE + + ( col2 ) IS NULL
----
0

query I rowsort
SELECT DISTINCT + ( - - ( col2 ) ) FROM tab2 AS cor0
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-2016
SELECT ALL + - SUM( - - col1 ) AS col0 FROM tab0 AS cor0
----
-103

skipif mysql # not compatible
query I rowsort label-2016
SELECT ALL + - SUM ( - - col1 ) AS col0 FROM tab0 AS cor0
----
-103

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col1 + - 6 * - + 82 / + + col1 > + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col2 > NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + col0 * col0 IN ( col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + + 24 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to b0d834ef9e4346801b6aaa0e74b2c8ef

query I rowsort
SELECT + 89 * ( col1 ) AS col2 FROM tab0 WHERE NOT - col1 BETWEEN ( + + col0 ) AND ( col0 / + - ( + - col1 ) )
----
1869
7209
89

query I rowsort
SELECT ALL AVG ( - col2 ) AS col1 FROM tab1 cor0 WHERE ( col1 ) IN ( + 60, - col0 )
----
NULL

query I rowsort
SELECT - col1 * - col0 * col2 AS col2 FROM tab2 AS cor0
----
197120
291450
53958

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2024
SELECT DISTINCT - col2 col1, + 88 AS col0 FROM tab0 AS cor0 WHERE ( - 37 ) IN ( CAST( + + 60 AS SIGNED ) )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2024
SELECT DISTINCT - col2 col1, + 88 AS col0 FROM tab0 AS cor0 WHERE ( - 37 ) IN ( CAST ( + + 60 AS INTEGER ) )
----

query I rowsort
SELECT 38 * + col0 AS col0 FROM tab2 AS cor0
----
1748
2432
2850

onlyif mysql # aggregate syntax: 
query I rowsort label-2026
SELECT ALL SUM( DISTINCT - - col0 ) AS col2 FROM tab1 AS cor0
----
227

skipif mysql # not compatible
query I rowsort label-2026
SELECT ALL SUM ( DISTINCT - - col0 ) AS col2 FROM tab1 AS cor0
----
227

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + 50 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col2 AS col1 FROM tab2 WHERE NOT ( - + 13 ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 96 col1, 25 * + ( + + ( 36 ) ) FROM tab2
----
96
900
96
900
96
900

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2030
SELECT col0 * + - ( col0 ) * + col1 + + ( CAST( NULL AS SIGNED ) ) * - - col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2030
SELECT col0 * + - ( col0 ) * + col1 + + ( CAST ( NULL AS INTEGER ) ) * - - col1 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( NULL ) NOT IN ( - 83 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2032
SELECT DISTINCT - 71 + + COUNT( * ) col1 FROM tab1
----
-68

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2032
SELECT DISTINCT - 71 + + COUNT ( * ) col1 FROM tab1
----
-68

query I rowsort
SELECT - 31 * 79 + 79 - - + 48 + + ( 81 ) * + col1 * - 29 FROM tab2
----
-122121
-159705
-183195

query I rowsort
SELECT ALL 4 + + 74 FROM tab2 AS cor0
----
78
78
78

query I rowsort
SELECT DISTINCT - col1 * + + 53 FROM tab2 AS cor0
----
-2703
-3551
-4081

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( NULL ) IN ( + + 20, col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2037
SELECT - + 92 * + COUNT( * ) FROM tab0 AS cor0
----
-276

skipif mysql # not compatible
query I rowsort label-2037
SELECT - + 92 * + COUNT ( * ) FROM tab0 AS cor0
----
-276

query I rowsort
SELECT ALL + 55 AS col2 FROM tab2 cor0
----
55
55
55

query III rowsort
SELECT ALL * FROM tab0 WHERE ( + col0 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col2 * + + col0 + - + 43 AS col2 FROM tab1
----
4853
4972
6145

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 JOIN tab2 AS cor1 ON NOT NULL >= NULL
----

query I rowsort
SELECT - 36 + + + col2 + ( + col0 ) / - ( 95 ) AS col2 FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN + + col1 AND + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2043
SELECT ALL * FROM tab2 cor0 WHERE CAST( NULL AS SIGNED ) NOT IN ( - 10, - CAST( NULL AS SIGNED ) + col0 )
----

skipif mysql # not compatible
query III rowsort label-2043
SELECT ALL * FROM tab2 cor0 WHERE CAST ( NULL AS INTEGER ) NOT IN ( - 10, - CAST ( NULL AS INTEGER ) + col0 )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 9 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT ALL - col2 * + + 23 - col2 + + col2, col0 FROM tab0 AS cor0
----
-1081
15
-2277
97
-230
87

query I rowsort
SELECT ALL + + 91 - + - col1 + 66 + - col0 AS col2 FROM tab0 AS cor0
----
223
61
91

onlyif mysql # aggregate syntax: 
query I rowsort label-2047
SELECT - + SUM( ALL - ( - 15 ) ) AS col1 FROM tab1 AS cor0 WHERE - ( + col1 ) <= 33
----
-45

skipif mysql # not compatible
query I rowsort label-2047
SELECT - + SUM ( ALL - ( - 15 ) ) AS col1 FROM tab1 AS cor0 WHERE - ( + col1 ) <= 33
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-2048
SELECT DISTINCT + - 72 * + + 81 - + COUNT( * ) * + COUNT( * ) - - + COUNT( * ) FROM tab2 cor0
----
-5838

skipif mysql # not compatible
query I rowsort label-2048
SELECT DISTINCT + - 72 * + + 81 - + COUNT ( * ) * + COUNT ( * ) - - + COUNT ( * ) FROM tab2 cor0
----
-5838

onlyif mysql # aggregate syntax: 
query I rowsort label-2049
SELECT DISTINCT 33 - - COUNT( * ) FROM tab2
----
36

skipif mysql # not compatible
query I rowsort label-2049
SELECT DISTINCT 33 - - COUNT ( * ) FROM tab2
----
36

query II rowsort
SELECT + ( + 95 ) * + 1, + col2 FROM tab0
----
95
10
95
47
95
99

onlyif mysql # aggregate syntax: 
query I rowsort label-2051
SELECT + ( + MAX( DISTINCT + + 88 ) ) FROM tab2
----
88

skipif mysql # not compatible
query I rowsort label-2051
SELECT + ( + MAX ( DISTINCT + + 88 ) ) FROM tab2
----
88

query I rowsort
SELECT DISTINCT - ( - 42 ) AS col1 FROM tab1
----
42

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * + 73 col0 FROM tab1
----
-3723
-6205
-6643

query I rowsort
SELECT - 20 * col2 AS col0 FROM tab1
----
-1180
-1360
-1920

query I rowsort
SELECT + 69 * + + 97 * + 55 AS col2 FROM tab2
----
368115
368115
368115

onlyif mysql # aggregate syntax: 
query I rowsort label-2056
SELECT ALL - COUNT( * ) * - + 34 AS col1 FROM tab0 AS cor0
----
102

skipif mysql # not compatible
query I rowsort label-2056
SELECT ALL - COUNT ( * ) * - + 34 AS col1 FROM tab0 AS cor0
----
102

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 59 / - 97 <> + + 38 + - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) IN ( - + col0, + col0 )
----

query I rowsort
SELECT ALL col1 * col1 * + 72 * + - 20 AS col0 FROM tab2
----
-3745440
-6464160
-8537760

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 95 col0, col0 AS col2 FROM tab2
----
95
46
95
64
95
75

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col1 - 28 <= NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 33 IN ( - 45 * - col1, - col0 / + col2, + col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2063
SELECT ALL - ( - SUM( ALL - col1 ) ) FROM tab2 AS cor0 WHERE NOT ( NULL ) <> col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2063
SELECT ALL - ( - SUM ( ALL - col1 ) ) FROM tab2 AS cor0 WHERE NOT ( NULL ) <> col1
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + ( + 61 ) IS NOT NULL AND NOT NULL IN ( + 44 )
----

query I rowsort
SELECT DISTINCT + - 43 + + 39 AS col0 FROM tab0 AS cor0 WHERE NOT col1 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2066
SELECT ALL - 49 * + MAX( DISTINCT + col2 ) + - ( + + COUNT( * ) ) AS col2 FROM tab0 AS cor0
----
-4854

skipif mysql # not compatible
query I rowsort label-2066
SELECT ALL - 49 * + MAX ( DISTINCT + col2 ) + - ( + + COUNT ( * ) ) AS col2 FROM tab0 AS cor0
----
-4854

query I rowsort
SELECT ALL + 34 * + col0 AS col2 FROM tab2 cor0
----
1564
2176
2550

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL IS NULL AND ( - col1 * - + col2 ) >= 96 / - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col2 + - col1 * 3 AS col1 FROM tab2 AS cor0 WHERE NOT + col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2070
SELECT - ( + 33 ) AS col0, COUNT( * ) + 91 col2 FROM tab1
----
-33
94

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2070
SELECT - ( + 33 ) AS col0, COUNT ( * ) + 91 col2 FROM tab1
----
-33
94

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NOT col2 IS NULL )
----

query II rowsort
SELECT col1 * 69 AS col1, 69 * col1 * - col0 AS col0 FROM tab2
----
3519
-161874
4623
-346725
5313
-340032

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2073
SELECT ALL MIN( DISTINCT 86 ) DIV - + COUNT( * ) AS col1 FROM tab1
----
-28

skipif mysql # not compatible
query I rowsort label-2073
SELECT ALL MIN ( DISTINCT 86 ) / - + COUNT ( * ) AS col1 FROM tab1
----
-28

query I rowsort
SELECT ALL + - 1 * + AVG ( DISTINCT col1 ) AS col2 FROM tab2 WHERE NOT 94 + + - 97 + + + 77 / - 94 IS NOT NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2075
SELECT - 6 DIV + col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2075
SELECT - 6 / + col1 FROM tab2
----
0
0
0

query I rowsort
SELECT - - col0 AS col1 FROM tab0 WHERE - col2 * col2 IS NOT NULL
----
15
87
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + - + col1 col0 FROM tab0 AS cor0
----
-11
-34
98

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2078
SELECT DISTINCT COUNT( * ) * - + CAST( NULL AS DECIMAL ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2078
SELECT DISTINCT COUNT ( * ) * - + CAST ( NULL AS REAL ) AS col1 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2079
SELECT DISTINCT COUNT( + 48 ) + - COUNT( * ) AS col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2079
SELECT DISTINCT COUNT ( + 48 ) + - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
0

query I rowsort
SELECT + col1 - 69 FROM tab1 AS cor0
----
-22
-55
-64

query I rowsort
SELECT ALL - ( - col0 ) - + - col1 FROM tab1 AS cor0
----
138
65
90

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL IN ( - col2 + col2 * - col2, col2 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2083
SELECT + + COUNT( * ) - - - 9 FROM tab0 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-2083
SELECT + + COUNT ( * ) - - - 9 FROM tab0 AS cor0
----
-6

query I rowsort
SELECT col1 + - col2 + + col0 - + col0 * 83 * 75 * - col2 FROM tab0 cor0 WHERE NOT + col2 + + col0 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2085
SELECT - COUNT( ALL + - ( + CAST( NULL AS SIGNED ) ) ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-2085
SELECT - COUNT ( ALL + - ( + CAST ( NULL AS INTEGER ) ) ) FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2086
SELECT DISTINCT MAX( ALL - 83 ) AS col2 FROM tab0
----
-83

skipif mysql # not compatible
query I rowsort label-2086
SELECT DISTINCT MAX ( ALL - 83 ) AS col2 FROM tab0
----
-83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * ( - 38 ) col0 FROM tab2 WHERE NOT 38 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2088
SELECT - MAX( DISTINCT - 84 ) FROM tab1
----
84

skipif mysql # not compatible
query I rowsort label-2088
SELECT - MAX ( DISTINCT - 84 ) FROM tab1
----
84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2089
SELECT + + col2 AS col0 FROM tab2 WHERE NOT + CAST( NULL AS SIGNED ) <= + col1
----

skipif mysql # not compatible
query I rowsort label-2089
SELECT + + col2 AS col0 FROM tab2 WHERE NOT + CAST ( NULL AS INTEGER ) <= + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2090
SELECT + col0 * CAST( NULL AS SIGNED ) * - 14 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2090
SELECT + col0 * CAST ( NULL AS INTEGER ) * - 14 AS col1 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2091
SELECT - COUNT( ALL - 68 ) * + + 20 * - MIN( + CAST( NULL AS SIGNED ) ) / COUNT( + col0 ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2091
SELECT - COUNT ( ALL - 68 ) * + + 20 * - MIN ( + CAST ( NULL AS INTEGER ) ) / COUNT ( + col0 ) AS col2 FROM tab2
----
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col2 + - + col0 = NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 17 + - + col1 + - col0 / - - 4 * - ( - col2 ) col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) BETWEEN NULL AND ( + + ( + + col2 ) )
----

onlyif mysql # aggregate syntax: 
query III rowsort label-2094
SELECT DISTINCT 17 AS col0, COUNT( * ) AS col1, 0 AS col0 FROM tab1 cor0 WHERE 79 + - - 19 + - col0 IS NOT NULL
----
17
3
0

skipif mysql # not compatible
query III rowsort label-2094
SELECT DISTINCT 17 AS col0, COUNT ( * ) AS col1, 0 AS col0 FROM tab1 cor0 WHERE 79 + - - 19 + - col0 IS NOT NULL
----
17
3
0

query II rowsort
SELECT - 30 AS col0, - 21 AS col0 FROM tab1 AS cor0
----
-30
-21
-30
-21
-30
-21

query II rowsort
SELECT 44, col0 * 83 AS col1 FROM tab0 AS cor0
----
44
1245
44
7221
44
8051

onlyif mysql # aggregate syntax: 
query I rowsort label-2097
SELECT ALL MAX( ALL + col0 ) + MAX( + + col1 ) AS col2 FROM tab0 AS cor0
----
178

skipif mysql # not compatible
query I rowsort label-2097
SELECT ALL MAX ( ALL + col0 ) + MAX ( + + col1 ) AS col2 FROM tab0 AS cor0
----
178

query I rowsort
SELECT + 4 * + col0 AS col2 FROM tab2 AS cor0
----
184
256
300

query I rowsort
SELECT - - col2 * + 29 FROM tab0 cor0
----
1363
2871
290

query I rowsort
SELECT 72 AS col0 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2101
SELECT ALL - MAX( ALL + + col0 ) AS col2 FROM tab2 cor0
----
-75

skipif mysql # not compatible
query I rowsort label-2101
SELECT ALL - MAX ( ALL + + col0 ) AS col2 FROM tab2 cor0
----
-75

query III rowsort
SELECT * FROM tab2 WHERE + ( + col0 ) > NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + 67 * + col2 IS NOT NULL AND col0 * - col2 NOT IN ( - - 14, col2 + + col2 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2104
SELECT ALL + 51 col1, COUNT( * ) FROM tab1
----
51
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2104
SELECT ALL + 51 col1, COUNT ( * ) FROM tab1
----
51
3

query I rowsort
SELECT 69 + + 51 + col2 FROM tab2
----
143
160
178

onlyif mysql # aggregate syntax: 
query II rowsort label-2106
SELECT DISTINCT - COUNT( * ) * - + 70 AS col1, 5 FROM tab0
----
210
5

skipif mysql # not compatible
query II rowsort label-2106
SELECT DISTINCT - COUNT ( * ) * - + 70 AS col1, 5 FROM tab0
----
210
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2107
SELECT + 24 + ( - CAST( NULL AS SIGNED ) ) col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2107
SELECT + 24 + ( - CAST ( NULL AS INTEGER ) ) col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col0 * + 81 * col1 FROM tab2
----
190026
399168
407025

query I rowsort
SELECT + 42 + - 51 FROM tab1
----
-9
-9
-9

query III rowsort
SELECT * FROM tab0 WHERE - + col0 * col2 / + + col0 + + ( - col0 ) * - col1 + col1 >= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 0 col0, + 85 * - col1 AS col1 FROM tab2
----
0
-4335
0
-5695
0
-6545

onlyif mysql # aggregate syntax: 
query I rowsort label-2112
SELECT DISTINCT + + COUNT( - 87 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2112
SELECT DISTINCT + + COUNT ( - 87 ) FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2113
SELECT DISTINCT COUNT( * ) col0 FROM tab1 AS cor0 WHERE - 62 - - col1 IS NOT NULL
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2113
SELECT DISTINCT COUNT ( * ) col0 FROM tab1 AS cor0 WHERE - 62 - - col1 IS NOT NULL
----
3

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2114
SELECT DISTINCT + col1 * + - CAST( NULL AS DECIMAL ) - 32 * + - col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2114
SELECT DISTINCT + col1 * + - CAST ( NULL AS REAL ) - 32 * + - col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT 92 * + col0 - - col2 + - col2 FROM tab0
----
1380
8004
8924

onlyif mysql # DIV for integer division: 
query I rowsort label-2116
SELECT - 22 + - 79 * col0 DIV + 97 FROM tab0
----
-101
-34
-92

skipif mysql # not compatible
query I rowsort label-2116
SELECT - 22 + - 79 * col0 / + 97 FROM tab0
----
-101
-34
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-2117
SELECT 89 + - + COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE + col0 NOT IN ( col1 )
----
86

skipif mysql # not compatible
query I rowsort label-2117
SELECT 89 + - + COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE + col0 NOT IN ( col1 )
----
86

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 93 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2119
SELECT DISTINCT - 76 DIV ( + col1 ) + + ( - 21 ) * - col0 AS col1 FROM tab1 AS cor0
----
1066
1770
1910

skipif mysql # not compatible
query I rowsort label-2119
SELECT DISTINCT - 76 / ( + col1 ) + + ( - 21 ) * - col0 AS col1 FROM tab1 AS cor0
----
1066
1770
1910

onlyif mysql # aggregate syntax: 
query I rowsort label-2120
SELECT ALL - COUNT( ALL - col0 ) * + - 89 AS col1 FROM tab1 AS cor0
----
267

skipif mysql # not compatible
query I rowsort label-2120
SELECT ALL - COUNT ( ALL - col0 ) * + - 89 AS col1 FROM tab1 AS cor0
----
267

query II rowsort
SELECT + 80 AS col2, col0 FROM tab0
----
80
15
80
87
80
97

query I rowsort
SELECT + 22 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to c55ee7433d8d39a59b1de2aadd9538c9

onlyif mysql # aggregate syntax: 
query I rowsort label-2123
SELECT COUNT( + - col0 ) AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-2123
SELECT COUNT ( + - col0 ) AS col0 FROM tab1
----
3

query III rowsort
SELECT ALL * FROM tab1 WHERE ( NOT NULL > + col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2125
SELECT ALL col0 DIV - + 71 AS col0 FROM tab0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-2125
SELECT ALL col0 / - + 71 AS col0 FROM tab0
----
-1
-1
0

query II rowsort
SELECT ALL - 14 AS col0, - col1 FROM tab1
----
-14
-14
-14
-47
-14
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-2127
SELECT + 98 DIV - + col1 + - col2 * - + col1 AS col1 FROM tab0 AS cor0
----
1
206
3806

skipif mysql # not compatible
query I rowsort label-2127
SELECT + 98 / - + col1 + - col2 * - + col1 AS col1 FROM tab0 AS cor0
----
1
206
3806

query I rowsort
SELECT DISTINCT 56 FROM tab2 AS cor0 WHERE NOT + 8 = + 26
----
56

query II rowsort
SELECT 4, col0 AS col2 FROM tab0 WHERE NOT col0 <> NULL
----

query II rowsort
SELECT DISTINCT - ( 41 ) AS col0, col2 * 89 FROM tab0
----
-41
4183
-41
8811
-41
890

query I rowsort
SELECT - col1 + - 81 FROM tab0
----
-102
-162
-82

query I rowsort
SELECT ALL - ( + 63 ) FROM tab2
----
-63
-63
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-2133
SELECT ALL + COUNT( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9

skipif mysql # not compatible
query I rowsort label-2133
SELECT ALL + COUNT ( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9

query I rowsort
SELECT DISTINCT - - 39 + + col2 AS col2 FROM tab1 cor0
----
107
135
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + 47 * col1 * + - 63 col1 FROM tab0 AS cor0
----
-239794
-2862
-62171

query II rowsort
SELECT DISTINCT + + ( + 54 ), - col2 AS col1 FROM tab2 AS cor0
----
54
-23
54
-40
54
-58

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2137
SELECT + 56 col0, - 91 / - CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
56
NULL
56
NULL
56
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2137
SELECT + 56 col0, - 91 / - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
56
NULL
56
NULL
56
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col0 NOT IN ( col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + 40 + col1 FROM tab2 AS cor0
----
107
117
91

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL < - col2 + + 58
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2141
SELECT ALL MAX( ALL + - col1 ) + + 12 col0 FROM tab1 AS cor0
----
7

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2141
SELECT ALL MAX ( ALL + - col1 ) + + 12 col0 FROM tab1 AS cor0
----
7

query I rowsort
SELECT col0 FROM tab0 WHERE - col0 NOT BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2143
SELECT * FROM tab2 WHERE + 51 / - - col1 + + col0 NOT IN ( - + CAST( NULL AS SIGNED ), col1 * - - 16 )
----

skipif mysql # not compatible
query III rowsort label-2143
SELECT * FROM tab2 WHERE + 51 / - - col1 + + col0 NOT IN ( - + CAST ( NULL AS INTEGER ), col1 * - - 16 )
----

query II rowsort
SELECT ALL 62 AS col1, 30 AS col0 FROM tab1
----
62
30
62
30
62
30

query I rowsort
SELECT ALL col0 AS col1 FROM tab0 WHERE NOT - + col2 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2146
SELECT - - COUNT( * ) FROM tab0 WHERE - 24 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-2146
SELECT - - COUNT ( * ) FROM tab0 WHERE - 24 IS NOT NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2147
SELECT + COUNT( * ) FROM tab1 WHERE - + col2 * - - 90 * col1 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-2147
SELECT + COUNT ( * ) FROM tab1 WHERE - + col2 * - - 90 * col1 IS NOT NULL
----
3

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NULL BETWEEN + 3 * + + ( 98 ) AND NULL
----

query I rowsort
SELECT DISTINCT - col1 * + 24 - - + 23 + ( - - 93 ) FROM tab2 AS cor0
----
-1108
-1492
-1732

query I rowsort
SELECT ALL 19 - - 68 + col2 FROM tab1
----
146
155
183

onlyif mysql # aggregate syntax: 
query I rowsort label-2151
SELECT DISTINCT COUNT( * ) - + 74 FROM tab0
----
-71

skipif mysql # not compatible
query I rowsort label-2151
SELECT DISTINCT COUNT ( * ) - + 74 FROM tab0
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-2152
SELECT - - COUNT( * ) + - COUNT( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
0

skipif mysql # not compatible
query I rowsort label-2152
SELECT - - COUNT ( * ) + - COUNT ( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
0

query II rowsort
SELECT - col2, ( + 80 ) AS col2 FROM tab0 AS cor0 WHERE NOT + ( + 13 ) + - ( + col2 ) / col2 IS NULL
----
-10
80
-47
80
-99
80

onlyif mysql # aggregate syntax: 
query I rowsort label-2154
SELECT 95 * + MAX( + + col0 ) FROM tab2 AS cor0
----
7125

skipif mysql # not compatible
query I rowsort label-2154
SELECT 95 * + MAX ( + + col0 ) FROM tab2 AS cor0
----
7125

onlyif mysql # aggregate syntax: 
query I rowsort label-2155
SELECT DISTINCT + COUNT( 31 ) col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2155
SELECT DISTINCT + COUNT ( 31 ) col0 FROM tab2 AS cor0
----
3

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + 86 + + - col2 IS NOT NULL
----

query I rowsort
SELECT ALL col2 * + col0 + - 86 + - + col0 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
4759
4844
6011

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col1 = - + col1 * 55 - + + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-2159
SELECT + 25 DIV - col1 AS col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2159
SELECT + 25 / - col1 AS col1 FROM tab2 AS cor0
----
0
0
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL <> - col1
----

query I rowsort
SELECT - 28 * + col1 * 89 AS col0 FROM tab1 AS cor0
----
-117124
-12460
-34888

onlyif mysql # aggregate syntax: 
query I rowsort label-2162
SELECT ALL - SUM( DISTINCT 59 ) FROM tab2
----
-59

skipif mysql # not compatible
query I rowsort label-2162
SELECT ALL - SUM ( DISTINCT 59 ) FROM tab2
----
-59

query II rowsort
SELECT ALL col2 * + + 7, + col0 FROM tab1
----
413
85
476
91
672
51

query III rowsort
SELECT ALL * FROM tab0 WHERE + + 94 * 15 - col1 + + + 51 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 37 * - + col1 FROM tab1
----
-1739
-185
-518

onlyif mysql # aggregate syntax: 
query I rowsort label-2166
SELECT ALL + MIN( DISTINCT + + 44 ) AS col1 FROM tab2
----
44

skipif mysql # not compatible
query I rowsort label-2166
SELECT ALL + MIN ( DISTINCT + + 44 ) AS col1 FROM tab2
----
44

query I rowsort
SELECT 78 * col2 FROM tab1
----
4602
5304
7488

query I rowsort
SELECT - 38 - + col0 FROM tab2 WHERE NOT - col1 IS NOT NULL
----

query I rowsort
SELECT col2 * - + col0 * + 41 * - col0 + - ( - col1 ) AS col1 FROM tab1 AS cor0 WHERE NOT ( ( + 89 ) IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2170
SELECT ALL MAX( ALL - 39 ) FROM tab0
----
-39

skipif mysql # not compatible
query I rowsort label-2170
SELECT ALL MAX ( ALL - 39 ) FROM tab0
----
-39

query I rowsort
SELECT ALL 9 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 03b93b53107e36cf7d524e48c509b17b

query II rowsort
SELECT - col0 AS col1, + 47 + + col2 * col2 * + - col2 AS col0 FROM tab1
----
-51
-884689
-85
-205332
-91
-314385

onlyif mysql # aggregate syntax: 
query I rowsort label-2173
SELECT COUNT( * ) + + MIN( - + 21 ) AS col0 FROM tab2 AS cor0
----
-18

skipif mysql # not compatible
query I rowsort label-2173
SELECT COUNT ( * ) + + MIN ( - + 21 ) AS col0 FROM tab2 AS cor0
----
-18

query II rowsort
SELECT ALL - 71, - ( + - col0 ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL AND NOT NULL <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2175
SELECT - + 66 * + 83 + + COUNT( * ) FROM tab1 cor0
----
-5475

skipif mysql # not compatible
query I rowsort label-2175
SELECT - + 66 * + 83 + + COUNT ( * ) FROM tab1 cor0
----
-5475

onlyif mysql # aggregate syntax: 
query I rowsort label-2176
SELECT DISTINCT + 54 + COUNT( * ) AS col0 FROM tab2 cor0
----
57

skipif mysql # not compatible
query I rowsort label-2176
SELECT DISTINCT + 54 + COUNT ( * ) AS col0 FROM tab2 cor0
----
57

query I rowsort
SELECT 36 + - col2 AS col2 FROM tab2
----
-22
-4
13

query I rowsort
SELECT + col0 AS col2 FROM tab1 WHERE ( NOT ( NULL ) >= NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2179
SELECT 77 DIV col0 * + + col1 col1 FROM tab2
----
51
67
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2179
SELECT 77 / col0 * + + col1 col1 FROM tab2
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-2180
SELECT ALL COUNT( * ) + + COUNT( * ) FROM tab2 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-2180
SELECT ALL COUNT ( * ) + + COUNT ( * ) FROM tab2 AS cor0
----
6

query I rowsort
SELECT DISTINCT + ( 74 ) + col1 FROM tab1 cor0
----
121
79
88

onlyif mysql # aggregate syntax: 
query I rowsort label-2182
SELECT DISTINCT + 59 + COUNT( * ) col0 FROM tab1 AS cor0
----
62

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2182
SELECT DISTINCT + 59 + COUNT ( * ) col0 FROM tab1 AS cor0
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-2183
SELECT - 83 * + + COUNT( * ) FROM tab0
----
-249

skipif mysql # not compatible
query I rowsort label-2183
SELECT - 83 * + + COUNT ( * ) FROM tab0
----
-249

onlyif mysql # DIV for integer division: 
query I rowsort label-2184
SELECT ALL + col2 DIV - 29 AS col1 FROM tab1
----
-2
-2
-3

skipif mysql # not compatible
query I rowsort label-2184
SELECT ALL + col2 / - 29 AS col1 FROM tab1
----
-2
-2
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2185
SELECT DISTINCT + COUNT( ALL + + 59 ) AS col2 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-2185
SELECT DISTINCT + COUNT ( ALL + + 59 ) AS col2 FROM tab0
----
3

query I rowsort
SELECT + 45 FROM tab1 WHERE NOT + 91 IS NULL
----
45
45
45

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col2 = NULL
----

query I rowsort
SELECT + ( - ( + - col2 ) ) FROM tab2 cor0
----
23
40
58

query I rowsort
SELECT - ( - + ( - col0 ) ) + 21 FROM tab1 AS cor0 WHERE NOT ( NOT NULL IS NULL )
----
-30
-64
-70

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2190
SELECT DISTINCT 16 * + ( - 74 ) + - - col2 + + - col0 / - CAST( NULL AS DECIMAL ) col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2190
SELECT DISTINCT 16 * + ( - 74 ) + - - col2 + + - col0 / - CAST ( NULL AS REAL ) col2 FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2191
SELECT - col1 DIV + CAST( + + 53 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-2191
SELECT - col1 / + CAST ( + + 53 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-1
-1
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2192
SELECT DISTINCT + col0 * 29 DIV - - col2 FROM tab2 cor0
----
37
46
58

skipif mysql # not compatible
query I rowsort label-2192
SELECT DISTINCT + col0 * 29 / - - col2 FROM tab2 cor0
----
37
46
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - 21 ) col0 FROM tab1 AS cor0
----
-21
-21
-21

query I rowsort
SELECT col1 AS col0 FROM tab0 WHERE NOT 28 BETWEEN 54 AND NULL
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-2195
SELECT ( + COUNT( * ) ) col1 FROM tab0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2195
SELECT ( + COUNT ( * ) ) col1 FROM tab0
----
3

query II rowsort
SELECT ALL - col0 AS col0, + 11 FROM tab1
----
-51
11
-85
11
-91
11

query III rowsort
SELECT ALL * FROM tab0 WHERE - col1 < ( NULL )
----

query I rowsort
SELECT - ( - + col2 ) AS col1 FROM tab1
----
59
68
96

query I rowsort
SELECT col1 * 32 FROM tab0
----
2592
32
672

query I rowsort
SELECT ALL - col1 + - + col2 FROM tab2 cor0
----
-117
-125
-74

query I rowsort
SELECT ALL - col0 + 25 FROM tab1 AS cor0
----
-26
-60
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-2202
SELECT COUNT( DISTINCT col2 ) AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2202
SELECT COUNT ( DISTINCT col2 ) AS col2 FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-2203
SELECT + 38, COUNT( * ) * - + COUNT( + - col0 ) AS col1 FROM tab0 WHERE NULL IS NULL
----
38
-9

skipif mysql # not compatible
query II rowsort label-2203
SELECT + 38, COUNT ( * ) * - + COUNT ( + - col0 ) AS col1 FROM tab0 WHERE NULL IS NULL
----
38
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-2204
SELECT DISTINCT - COUNT( * ) * 71 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-639

skipif mysql # not compatible
query I rowsort label-2204
SELECT DISTINCT - COUNT ( * ) * 71 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-639

onlyif mysql # DIV for integer division: 
query II rowsort label-2205
SELECT ALL col1 + - - col1 DIV 70 col2, col2 AS col1 FROM tab2 cor0
----
51
23
67
58
78
40

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2205
SELECT ALL col1 + - - col1 / 70 col2, col2 AS col1 FROM tab2 cor0
----
51
23
67
58
78
40

onlyif mysql # aggregate syntax: 
query I rowsort label-2206
SELECT ( - - SUM( - col1 ) ) FROM tab2 AS cor0
----
-195

skipif mysql # not compatible
query I rowsort label-2206
SELECT ( - - SUM ( - col1 ) ) FROM tab2 AS cor0
----
-195

query I rowsort
SELECT - col0 * + 47 FROM tab0 cor0
----
-4089
-4559
-705

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2208
SELECT + ( + - CAST( NULL AS SIGNED ) ) AS col0 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2208
SELECT + ( + - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab1 cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + col1 + + col0 * col1 col1 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
1343
1858
197

query I rowsort
SELECT DISTINCT + 4 + 21 FROM tab0
----
25

onlyif mysql # aggregate syntax: 
query II rowsort label-2211
SELECT DISTINCT 77 col0, - COUNT( * ) FROM tab2
----
77
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2211
SELECT DISTINCT 77 col0, - COUNT ( * ) FROM tab2
----
77
-3

query II rowsort
SELECT ALL col1, ( - + 23 ) FROM tab1
----
14
-23
47
-23
5
-23

query I rowsort
SELECT DISTINCT ( - + 73 ) AS col1 FROM tab0
----
-73

query I rowsort
SELECT - col0 AS col0 FROM tab2 WHERE NULL IS NULL
----
-46
-64
-75

query II rowsort
SELECT ALL + col1 AS col1, - col2 FROM tab0
----
1
-99
21
-10
81
-47

query I rowsort
SELECT ALL - col1 - - + 27 FROM tab2 AS cor0
----
-24
-40
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-2217
SELECT DISTINCT + SUM( DISTINCT + 9 ) FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-2217
SELECT DISTINCT + SUM ( DISTINCT + 9 ) FROM tab2
----
9

query I rowsort
SELECT - col1 / - 97 * - 85 FROM tab1 AS cor0 WHERE NOT - 67 NOT BETWEEN + 50 * - col2 + col1 * + ( + + 78 ) * - 29 + - + col1 AND 70 * - ( - - 16 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2219
SELECT + CAST( NULL AS SIGNED ) * - - 92 AS col1, col0 AS col1 FROM tab2 AS cor0
----
NULL
46
NULL
64
NULL
75

skipif mysql # not compatible
query II rowsort label-2219
SELECT + CAST ( NULL AS INTEGER ) * - - 92 AS col1, col0 AS col1 FROM tab2 AS cor0
----
NULL
46
NULL
64
NULL
75

onlyif mysql # aggregate syntax: 
query I rowsort label-2220
SELECT ALL COUNT( * ) * + 4 AS col0 FROM tab2 cor0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2220
SELECT ALL COUNT ( * ) * + 4 AS col0 FROM tab2 cor0 WHERE NOT NULL IS NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2221
SELECT - col0 DIV - CAST( 81 AS SIGNED ) * - + ( + col2 ) + col2 + - + col2 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2221
SELECT - col0 / - CAST ( 81 AS INTEGER ) * - + ( + col2 ) + col2 + - + col2 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2222
SELECT - 97 + COUNT( * ) FROM tab2
----
-94

skipif mysql # not compatible
query I rowsort label-2222
SELECT - 97 + COUNT ( * ) FROM tab2
----
-94

query I rowsort
SELECT ALL - 37 + col2 + ( + col2 ) AS col0 FROM tab0
----
-17
161
57

query I rowsort
SELECT DISTINCT + - col0 * 96 * - + col0 + - 48 AS col2 FROM tab0 AS cor0
----
21552
726576
903216

query I rowsort
SELECT DISTINCT - col2 + - - 98 FROM tab2 AS cor0
----
40
58
75

query I rowsort
SELECT col1 * - 89 * - + 3 AS col0 FROM tab2
----
13617
17889
20559

query I rowsort
SELECT ALL - + 40 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to f02f17e9bc17e514af018c6f245ed7a9

query II rowsort
SELECT ALL col2, - col2 * - 44 AS col0 FROM tab2 AS cor0
----
23
1012
40
1760
58
2552

query I rowsort
SELECT + col0 + + 68 FROM tab2 AS cor0
----
114
132
143

onlyif mysql # aggregate syntax: 
query I rowsort label-2230
SELECT ALL + COUNT( * ) + + - COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE col1 > col0
----
0

skipif mysql # not compatible
query I rowsort label-2230
SELECT ALL + COUNT ( * ) + + - COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE col1 > col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2231
SELECT ( - COUNT( * ) ) + - + 63 AS col1 FROM tab2 cor0
----
-66

skipif mysql # not compatible
query I rowsort label-2231
SELECT ( - COUNT ( * ) ) + - + 63 AS col1 FROM tab2 cor0
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-2232
SELECT DISTINCT + + ( + - COUNT( * ) ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2232
SELECT DISTINCT + + ( + - COUNT ( * ) ) FROM tab1 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2233
SELECT + col0 + + col0 * - - col0 + CAST( + col1 AS SIGNED ) * + CAST( NULL AS DECIMAL ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2233
SELECT + col0 + + col0 * - - col0 + CAST ( + col1 AS INTEGER ) * + CAST ( NULL AS REAL ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - - col2 FROM tab2 WHERE col2 IS NOT NULL
----
23
40
58

query I rowsort
SELECT ALL col2 - + + col0 AS col2 FROM tab0
----
-77
2
32

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 18 col0 FROM tab2
----
-18

query III rowsort
SELECT * FROM tab1 WHERE col0 + - - col0 IS NULL
----

query I rowsort
SELECT + ( + ( + 15 ) ) AS col0 FROM tab2
----
15
15
15

onlyif mysql # aggregate syntax: 
query I rowsort label-2239
SELECT MAX( - col1 ) col1 FROM tab1
----
-5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2239
SELECT MAX ( - col1 ) col1 FROM tab1
----
-5

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2240
SELECT + CAST( col1 AS SIGNED ) DIV + - col2 - + + col0 FROM tab2
----
-48
-65
-76

skipif mysql # not compatible
query I rowsort label-2240
SELECT + CAST ( col1 AS INTEGER ) / + - col2 - + + col0 FROM tab2
----
-48
-65
-76

query II rowsort
SELECT 0 * + col0 AS col0, + col0 AS col2 FROM tab0
----
0
15
0
87
0
97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2242
SELECT + 70 DIV COUNT( * ) AS col2 FROM tab2
----
23

skipif mysql # not compatible
query I rowsort label-2242
SELECT + 70 / COUNT ( * ) AS col2 FROM tab2
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-2243
SELECT DISTINCT + COUNT( * ) * - ( 94 ) FROM tab0
----
-282

skipif mysql # not compatible
query I rowsort label-2243
SELECT DISTINCT + COUNT ( * ) * - ( 94 ) FROM tab0
----
-282

query I rowsort
SELECT - 36 - + col1 FROM tab2
----
-103
-113
-87

query I rowsort
SELECT col1 FROM tab1 AS cor0 WHERE NOT + 1 - - col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2246
SELECT + ( - MAX( - 15 ) ) AS col2 FROM tab2 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-2246
SELECT + ( - MAX ( - 15 ) ) AS col2 FROM tab2 AS cor0
----
15

query I rowsort
SELECT ( + col1 ) FROM tab2 AS cor0 WHERE NOT col2 IS NULL
----
51
67
77

query I rowsort
SELECT + + ( - + col2 ) FROM tab0 AS cor0
----
-10
-47
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-2249
SELECT ALL + COUNT( ALL - 29 ) col1 FROM ( tab1 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-2249
SELECT ALL + COUNT ( ALL - 29 ) col1 FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9

query I rowsort
SELECT + ( ( + 44 ) ) FROM tab1
----
44
44
44

onlyif mysql # aggregate syntax: 
query I rowsort label-2251
SELECT + COUNT( + col2 ) AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2251
SELECT + COUNT ( + col2 ) AS col2 FROM tab2 AS cor0
----
3

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - ( + col0 ) IS NOT NULL
----

query I rowsort
SELECT ALL - ( + 37 ) * + + col2 FROM tab2 AS cor0
----
-1480
-2146
-851

query I rowsort
SELECT DISTINCT + col0 FROM tab0 AS cor0 WHERE 69 / + col0 IS NOT NULL
----
15
87
97

query I rowsort
SELECT ALL 79 AS col1 FROM tab2 cor0
----
79
79
79

query II rowsort
SELECT ALL + col2 AS col2, ( 71 ) AS col0 FROM tab1 AS cor0
----
59
71
68
71
96
71

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2257
SELECT * FROM tab2 cor0 WHERE NOT CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-2257
SELECT * FROM tab2 cor0 WHERE NOT CAST ( NULL AS INTEGER ) IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2258
SELECT + col2 DIV + col0 AS col2 FROM tab0 cor0
----
0
1
3

skipif mysql # not compatible
query I rowsort label-2258
SELECT + col2 / + col0 AS col2 FROM tab0 cor0
----
0
1
3

query I rowsort
SELECT + 75 * + col1 AS col2 FROM tab1
----
1050
3525
375

onlyif mysql # CAST syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-2260
SELECT - CAST( NULL AS DECIMAL ) * - - col1, - 47 DIV col2 AS col1 FROM tab2
----
NULL
-1
NULL
-2
NULL
0

skipif mysql # not compatible
query II rowsort label-2260
SELECT - CAST ( NULL AS REAL ) * - - col1, - 47 / col2 AS col1 FROM tab2
----
NULL
-1
NULL
-2
NULL
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2261
SELECT + CAST( + col0 AS SIGNED ) AS col1 FROM tab0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-2261
SELECT + CAST ( + col0 AS INTEGER ) AS col1 FROM tab0
----
15
87
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2262
SELECT CAST( - + col2 AS SIGNED ) FROM tab2
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-2262
SELECT CAST ( - + col2 AS INTEGER ) FROM tab2
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-2263
SELECT DISTINCT - SUM( 1 ) AS col0 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-2263
SELECT DISTINCT - SUM ( 1 ) AS col0 FROM tab0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2264
SELECT DISTINCT CAST( NULL AS SIGNED ) + - col2 AS col2, - 41 * + col2 - + + 93 FROM tab1 AS cor0
----
NULL
-2512
NULL
-2881
NULL
-4029

skipif mysql # not compatible
query II rowsort label-2264
SELECT DISTINCT CAST ( NULL AS INTEGER ) + - col2 AS col2, - 41 * + col2 - + + 93 FROM tab1 AS cor0
----
NULL
-2512
NULL
-2881
NULL
-4029

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2265
SELECT ALL + CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0 WHERE ( NULL ) NOT BETWEEN - 10 AND + + ( col0 ) + + CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query I rowsort label-2265
SELECT ALL + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0 WHERE ( NULL ) NOT BETWEEN - 10 AND + + ( col0 ) + + CAST ( NULL AS REAL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 35 * - 12 + col0 col0 FROM tab0 AS cor0
----
435
507
517

query I rowsort
SELECT + 97 FROM tab2 AS cor0 WHERE 37 IS NULL
----

query II rowsort
SELECT ALL - col0 + + 2, col0 FROM tab0 AS cor0
----
-13
15
-85
87
-95
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + col2 ) + - col2 * - col1 - + 21 col0 FROM tab1 cor0
----
1419
3243
333

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col0 + 66 col0, 21 * + col1 FROM tab2 AS cor0
----
112
1071
130
1617
141
1407

query III rowsort
SELECT * FROM tab2 WHERE 99 NOT BETWEEN - - col1 AND ( - col1 ) + col1 + + col0 * + 17 * 25
----

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE - col1 * + col2 IS NULL
----

query I rowsort
SELECT ALL + + 61 * + col2 * + col2 + col2 AS col1 FROM tab1 AS cor0
----
212400
282132
562272

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2274
SELECT DISTINCT CAST( - + 94 AS SIGNED ) + MIN( DISTINCT - + col0 ) col0 FROM tab1 AS cor0
----
-185

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2274
SELECT DISTINCT CAST ( - + 94 AS INTEGER ) + MIN ( DISTINCT - + col0 ) col0 FROM tab1 AS cor0
----
-185

query I rowsort
SELECT + col2 * - + 38 * 59 - col0 AS col2 FROM tab0 AS cor0
----
-105389
-222055
-22507

query I rowsort
SELECT ALL + 46 - - - 14 * + + 44 FROM tab0 AS cor0
----
-570
-570
-570

query I rowsort
SELECT DISTINCT + 17 - - col2 AS col2 FROM tab2 AS cor0
----
40
57
75

query I rowsort
SELECT - 53 - + col0 FROM tab1 AS cor0
----
-104
-138
-144

query I rowsort
SELECT - + col0 * + col2 - - col2 AS col2 FROM tab0 AS cor0
----
-658
-860
-9504

onlyif mysql # aggregate syntax: 
query I rowsort label-2280
SELECT DISTINCT + - 7 - - - COUNT( * ) * - + COUNT( * ) + - COUNT( * ) FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-2280
SELECT DISTINCT + - 7 - - - COUNT ( * ) * - + COUNT ( * ) + - COUNT ( * ) FROM tab2 AS cor0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2281
SELECT DISTINCT - MIN( 6 ) / SUM( ALL + col0 ) * + CAST( NULL AS SIGNED ) / + + 48 - - SUM( ALL col0 ) - COUNT( + 65 ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2281
SELECT DISTINCT - MIN ( 6 ) / SUM ( ALL + col0 ) * + CAST ( NULL AS INTEGER ) / + + 48 - - SUM ( ALL col0 ) - COUNT ( + 65 ) FROM tab1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2282
SELECT - CAST( NULL AS SIGNED ) - 86 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2282
SELECT - CAST ( NULL AS INTEGER ) - 86 AS col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2283
SELECT col2 DIV + + col0 - - + col0 DIV 41 AS col2 FROM tab0
----
2
3
3

skipif mysql # not compatible
query I rowsort label-2283
SELECT col2 / + + col0 - - + col0 / 41 AS col2 FROM tab0
----
2
3
3

query III rowsort
SELECT * FROM tab2 WHERE NOT + col2 / - col1 + - col0 = NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2285
SELECT ( col2 ) DIV col2 AS col1 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2285
SELECT ( col2 ) / col2 AS col1 FROM tab0
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * - + ( - 51 ) col0 FROM tab2
----
-1173
-2040
-2958

query II rowsort
SELECT DISTINCT - col1, col1 AS col0 FROM tab1 cor0
----
-14
14
-47
47
-5
5

onlyif mysql # aggregate syntax: 
query II rowsort label-2288
SELECT - 52 AS col0, 78 * + + MAX( + 93 ) AS col1 FROM tab0 AS cor0
----
-52
7254

skipif mysql # not compatible
query II rowsort label-2288
SELECT - 52 AS col0, 78 * + + MAX ( + 93 ) AS col1 FROM tab0 AS cor0
----
-52
7254

query II rowsort
SELECT DISTINCT + col2 AS col2, - col0 AS col1 FROM tab1 AS cor0
----
59
-85
68
-91
96
-51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2290
SELECT - ( + CAST( ( 38 ) AS SIGNED ) ) FROM tab0 AS cor0
----
-38
-38
-38

skipif mysql # not compatible
query I rowsort label-2290
SELECT - ( + CAST ( ( 38 ) AS INTEGER ) ) FROM tab0 AS cor0
----
-38
-38
-38

onlyif mysql # aggregate syntax: 
query II rowsort label-2291
SELECT + COUNT( * ), 5 AS col0 FROM tab1 AS cor0
----
3
5

skipif mysql # not compatible
query II rowsort label-2291
SELECT + COUNT ( * ), 5 AS col0 FROM tab1 AS cor0
----
3
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2292
SELECT - - COUNT( * ) DIV + MIN( - ( col2 ) ) AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2292
SELECT - - COUNT ( * ) / + MIN ( - ( col2 ) ) AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
0

query II rowsort
SELECT DISTINCT + - 48 + - col0, + 21 AS col1 FROM tab1 AS cor0
----
-133
21
-139
21
-99
21

query I rowsort
SELECT + col1 * ( + + col2 ) AS col2 FROM tab1 AS cor0
----
1344
295
3196

onlyif mysql # aggregate syntax: 
query I rowsort label-2295
SELECT DISTINCT - SUM( DISTINCT + - col2 ) FROM tab0 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-2295
SELECT DISTINCT - SUM ( DISTINCT + - col2 ) FROM tab0 AS cor0
----
156

onlyif mysql # aggregate syntax: 
query I rowsort label-2296
SELECT - - 8 * MIN( DISTINCT - 8 ) + - ( COUNT( * ) ) FROM tab2 AS cor0
----
-67

skipif mysql # not compatible
query I rowsort label-2296
SELECT - - 8 * MIN ( DISTINCT - 8 ) + - ( COUNT ( * ) ) FROM tab2 AS cor0
----
-67

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NOT - col2 IS NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2298
SELECT DISTINCT CAST( col1 AS SIGNED ) col2, col1 * - CAST( col1 AS SIGNED ) FROM tab2 AS cor0
----
51
-2601
67
-4489
77
-5929

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2298
SELECT DISTINCT CAST ( col1 AS INTEGER ) col2, col1 * - CAST ( col1 AS INTEGER ) FROM tab2 AS cor0
----
51
-2601
67
-4489
77
-5929

onlyif mysql # aggregate syntax: 
query I rowsort label-2299
SELECT + + COUNT( * ) * 74 AS col2 FROM tab0 AS cor0
----
222

skipif mysql # not compatible
query I rowsort label-2299
SELECT + + COUNT ( * ) * 74 AS col2 FROM tab0 AS cor0
----
222

onlyif mysql # aggregate syntax: 
query I rowsort label-2300
SELECT ( - COUNT( * ) ) col2 FROM tab2 WHERE NULL <= + col2 + col2
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2300
SELECT ( - COUNT ( * ) ) col2 FROM tab2 WHERE NULL <= + col2 + col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2301
SELECT - COUNT( * ) AS col0, + COUNT( * ) FROM tab0
----
-3
3

skipif mysql # not compatible
query II rowsort label-2301
SELECT - COUNT ( * ) AS col0, + COUNT ( * ) FROM tab0
----
-3
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2302
SELECT + AVG ( + CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2302
SELECT + AVG ( + CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 15 + - col1 col2 FROM tab1 AS cor0
----
-32
1
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2304
SELECT ALL - col1 + + + CAST( - 89 AS SIGNED ) FROM tab0 AS cor0
----
-110
-170
-90

skipif mysql # not compatible
query I rowsort label-2304
SELECT ALL - col1 + + + CAST ( - 89 AS INTEGER ) FROM tab0 AS cor0
----
-110
-170
-90

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT 53 IS NULL
----
54 values hashing to ee5129bae5293935ae558ebe95290e29

query I rowsort
SELECT ALL - col1 AS col2 FROM tab2 WHERE NOT NULL <= - col0
----

query I rowsort
SELECT - + col2 + + + ( + 93 ) AS col0 FROM tab0 cor0
----
-6
46
83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2308
SELECT ALL + COUNT( * ) + CAST( - + 10 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-7

skipif mysql # not compatible
query I rowsort label-2308
SELECT ALL + COUNT ( * ) + CAST ( - + 10 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2309
SELECT - col1 + - col1 + + - CAST( col1 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-141
-15
-42

skipif mysql # not compatible
query I rowsort label-2309
SELECT - col1 + - col1 + + - CAST ( col1 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-141
-15
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-2310
SELECT ALL 27 * - + COUNT( - 98 ) FROM tab1 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-2310
SELECT ALL 27 * - + COUNT ( - 98 ) FROM tab1 AS cor0
----
-81

query I rowsort
SELECT ALL - + 32 FROM tab0 cor0
----
-32
-32
-32

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col0 + - 84 * col0 * + - col2 * + ( - - 53 ) * col2 + - col1 + ( ( + col0 ) ) / + col1 * + + col1 + - + col0 > - 78 / col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT DISTINCT + 28 + + col2 AS col0, col0 AS col1 FROM tab2 AS cor0
----
51
46
68
64
86
75

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( - 69 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 78 col1 FROM tab1 AS cor0
----
78
78
78

query III rowsort
SELECT * FROM tab0 WHERE NOT - col2 BETWEEN col2 / - col2 - col0 AND ( col2 )
----
15
81
47
97
1
99

query I rowsort
SELECT + col2 + + + 33 + - + col1 * col0 AS col0 FROM tab0 WHERE NOT 13 * - col2 + - - 50 >= NULL
----

query I rowsort
SELECT DISTINCT 65 * + col1 AS col1 FROM tab2
----
3315
4355
5005

onlyif mysql # aggregate syntax: 
query I rowsort label-2319
SELECT ALL - SUM( DISTINCT + 49 ) * - 94 FROM tab1
----
4606

skipif mysql # not compatible
query I rowsort label-2319
SELECT ALL - SUM ( DISTINCT + 49 ) * - 94 FROM tab1
----
4606

onlyif mysql # aggregate syntax: 
query I rowsort label-2320
SELECT - MIN( ALL + + col0 ) AS col2 FROM tab0
----
-15

skipif mysql # not compatible
query I rowsort label-2320
SELECT - MIN ( ALL + + col0 ) AS col2 FROM tab0
----
-15

onlyif mysql # DIV for integer division: 
query I rowsort label-2321
SELECT col2 DIV + - 25 FROM tab2
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-2321
SELECT col2 / + - 25 FROM tab2
----
-1
-2
0

query I rowsort
SELECT 7 * col1 AS col0 FROM tab0
----
147
567
7

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2323
SELECT DISTINCT col2 / - CAST( NULL AS SIGNED ) + + + col2 * - 87, col1 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
NULL
1
NULL
21
NULL
81

skipif mysql # not compatible
query II rowsort label-2323
SELECT DISTINCT col2 / - CAST ( NULL AS INTEGER ) + + + col2 * - 87, col1 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
NULL
1
NULL
21
NULL
81

query I rowsort
SELECT DISTINCT 82 * + col2 FROM tab1
----
4838
5576
7872

query II rowsort
SELECT col1, col2 AS col0 FROM tab2
----
51
23
67
58
77
40

query I rowsort
SELECT col2 * + - col0 * 20 + - ( + - col1 ) FROM tab0
----
-14019
-17379
-192059

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col2 FROM tab0 AS cor0 WHERE NOT 76 IS NULL
----
15
87
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2328
SELECT CAST( + - col0 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-2328
SELECT CAST ( + - col0 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-51
-85
-91

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col1 * - col0 / 42 BETWEEN - col2 AND NULL
----
87
21
10

query II rowsort
SELECT ALL - col0, + 78 * - col1 AS col2 FROM tab0 cor0
----
-15
-6318
-87
-1638
-97
-78

onlyif mysql # aggregate syntax: 
query II rowsort label-2331
SELECT DISTINCT COUNT( * ) AS col2, MIN( + - 10 ) AS col2 FROM tab2 AS cor0
----
3
-10

skipif mysql # not compatible
query II rowsort label-2331
SELECT DISTINCT COUNT ( * ) AS col2, MIN ( + - 10 ) AS col2 FROM tab2 AS cor0
----
3
-10

query II rowsort
SELECT + col0 AS col2, 26 + - - col2 FROM tab2 cor0
----
46
49
64
66
75
84

onlyif mysql # aggregate syntax: 
query I rowsort label-2333
SELECT ALL + + COUNT( * ) * COUNT( * ) + - COUNT( * ) FROM tab2 cor0
----
6

skipif mysql # not compatible
query I rowsort label-2333
SELECT ALL + + COUNT ( * ) * COUNT ( * ) + - COUNT ( * ) FROM tab2 cor0
----
6

onlyif mysql # DIV for integer division: 
query II rowsort label-2334
SELECT - 94 DIV - 1 AS col2, + col0 - - + 54 * + col2 + 23 FROM tab2 AS cor0
----
94
1311
94
2247
94
3230

skipif mysql # not compatible
query II rowsort label-2334
SELECT - 94 / - 1 AS col2, + col0 - - + 54 * + col2 + 23 FROM tab2 AS cor0
----
94
1311
94
2247
94
3230

query I rowsort
SELECT 91 * + col0 FROM tab2
----
4186
5824
6825

onlyif mysql # aggregate syntax: 
query I rowsort label-2336
SELECT ALL COUNT( DISTINCT - col2 ) FROM tab1 WHERE - col0 > - 13
----
0

skipif mysql # not compatible
query I rowsort label-2336
SELECT ALL COUNT ( DISTINCT - col2 ) FROM tab1 WHERE - col0 > - 13
----
0

query I rowsort
SELECT col1 + - col2 * + 35 FROM tab0
----
-1564
-329
-3464

query II rowsort
SELECT ALL ( 59 ) AS col1, - 77 FROM tab2
----
59
-77
59
-77
59
-77

query I rowsort
SELECT ( + 63 ) FROM tab0, tab2 AS cor0
----
9 values hashing to c3eea92c46f2c49716f386a58b575025

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2340
SELECT ALL + CAST( NULL AS SIGNED ) * + COUNT( * ) + + ( + + 22 ) FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2340
SELECT ALL + CAST ( NULL AS INTEGER ) * + COUNT ( * ) + + ( + + 22 ) FROM tab1 cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2341
SELECT - + CAST( NULL AS SIGNED ) + + - 47 * - + col0 col2 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2341
SELECT - + CAST ( NULL AS INTEGER ) + + - 47 * - + col0 col2 FROM tab1 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2342
SELECT ALL + COUNT( * ) - 95 FROM tab0 AS cor0
----
-92

skipif mysql # not compatible
query I rowsort label-2342
SELECT ALL + COUNT ( * ) - 95 FROM tab0 AS cor0
----
-92

query I rowsort
SELECT + + col2 + - 43 FROM tab0 AS cor0
----
-33
4
56

onlyif mysql # aggregate syntax: 
query I rowsort label-2344
SELECT ALL - 45 + + COUNT( * ) * COUNT( * ) FROM tab0
----
-36

skipif mysql # not compatible
query I rowsort label-2344
SELECT ALL - 45 + + COUNT ( * ) * COUNT ( * ) FROM tab0
----
-36

query I rowsort
SELECT DISTINCT + 62 * - 57 AS col0 FROM tab1
----
-3534

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 - + - col0 col2 FROM tab0 cor0
----
196
62
97

query I rowsort
SELECT - col2 - - 31 FROM tab0 AS cor0
----
-16
-68
21

query II rowsort
SELECT ALL + col2 AS col1, 87 * + col1 FROM tab1 cor0
----
59
435
68
4089
96
1218

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE col0 + 63 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + ( col0 ) * - 76 AS col1 FROM tab0 AS cor0
----
-1140
-6612
-7372

onlyif mysql # aggregate syntax: 
query I rowsort label-2351
SELECT + + COUNT( * ) * SUM( ALL col1 ) AS col1 FROM tab1 cor0
----
198

skipif mysql # not compatible
query I rowsort label-2351
SELECT + + COUNT ( * ) * SUM ( ALL col1 ) AS col1 FROM tab1 cor0
----
198

query I rowsort
SELECT + ( + - col2 ) AS col0 FROM tab1 AS cor0
----
-59
-68
-96

query I rowsort
SELECT - ( + + 73 ) FROM tab0 AS cor0
----
-73
-73
-73

query I rowsort
SELECT + col2 AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) <> NULL
----

query II rowsort
SELECT col2, 77 * col0 + 74 * - + 48 + + 82 FROM tab2 AS cor0
----
23
72
40
1458
58
2305

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2356
SELECT - col0, 40 + - CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-46
NULL
-64
NULL
-75
NULL

skipif mysql # not compatible
query II rowsort label-2356
SELECT - col0, 40 + - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-46
NULL
-64
NULL
-75
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2357
SELECT * FROM tab1 WHERE NOT CAST( + col1 AS SIGNED ) NOT BETWEEN col0 - - col0 AND + 12 + 3 - - 41
----

skipif mysql # not compatible
query III rowsort label-2357
SELECT * FROM tab1 WHERE NOT CAST ( + col1 AS INTEGER ) NOT BETWEEN col0 - - col0 AND + 12 + 3 - - 41
----

query I rowsort
SELECT ALL + 38 AS col1 FROM tab1
----
38
38
38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - + 4, col2 * col2 * + + col2 col2 FROM tab2 WHERE NOT + - col1 IS NULL
----
-4
12167
-4
195112
-4
64000

onlyif mysql # DIV for integer division: 
query I rowsort label-2360
SELECT DISTINCT - 39 DIV + col1 AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-2360
SELECT DISTINCT - 39 / + col1 AS col0 FROM tab2
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 74 col2 FROM tab1
----
74
74
74

onlyif mysql # DIV for integer division: 
query I rowsort label-2362
SELECT col0 DIV - 32 FROM tab0 AS cor0
----
-2
-3
0

skipif mysql # not compatible
query I rowsort label-2362
SELECT col0 / - 32 FROM tab0 AS cor0
----
-2
-3
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2363
SELECT DISTINCT - COUNT( * ) * + 92 FROM tab1 AS cor0
----
-276

skipif mysql # not compatible
query I rowsort label-2363
SELECT DISTINCT - COUNT ( * ) * + 92 FROM tab1 AS cor0
----
-276

onlyif mysql # DIV for integer division: 
query I rowsort label-2364
SELECT DISTINCT - + col0 DIV 80 AS col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2364
SELECT DISTINCT - + col0 / 80 AS col2 FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2365
SELECT DISTINCT + SUM( DISTINCT - 0 ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-2365
SELECT DISTINCT + SUM ( DISTINCT - 0 ) FROM tab0
----
0

query I rowsort
SELECT ALL + 75 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 22042bfd4d787415457a42bb93d48eea

query I rowsort
SELECT + col0 * 56 AS col2 FROM tab0
----
4872
5432
840

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 64 <= - - col2 * - col2 + 30
----

query I rowsort
SELECT DISTINCT + col1 AS col0 FROM tab2 AS cor0 WHERE ( NULL ) = 79 * - col2 + + 64
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2370
SELECT CAST( NULL AS SIGNED ) + col0 col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2370
SELECT CAST ( NULL AS INTEGER ) + col0 col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 27 col0 FROM tab2 AS cor0
----
27
27
27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2372
SELECT ALL - col0 AS col1 FROM tab1 AS cor0 WHERE NOT + col1 IN ( col0, - col1 * + CAST( NULL AS SIGNED ) - + col0, col2, - 10 )
----

skipif mysql # not compatible
query I rowsort label-2372
SELECT ALL - col0 AS col1 FROM tab1 AS cor0 WHERE NOT + col1 IN ( col0, - col1 * + CAST ( NULL AS INTEGER ) - + col0, col2, - 10 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 2 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2374
SELECT ALL - + col2 + - col0 DIV + ( + col0 ) AS col0 FROM tab1 AS cor0
----
-60
-69
-97

skipif mysql # not compatible
query I rowsort label-2374
SELECT ALL - + col2 + - col0 / + ( + col0 ) AS col0 FROM tab1 AS cor0
----
-60
-69
-97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2375
SELECT ALL COUNT( * ) DIV + 91 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-2375
SELECT ALL COUNT ( * ) / + 91 FROM tab0
----
0

query I rowsort
SELECT ALL + 9 FROM tab2 WHERE NOT col1 IS NULL
----
9
9
9

query I rowsort
SELECT DISTINCT col0 AS col2 FROM tab2 WHERE NOT - col2 IS NULL
----
46
64
75

query I rowsort
SELECT 12 * + 56 + - 35 AS col0 FROM tab1
----
637
637
637

onlyif mysql # aggregate syntax: 
query I rowsort label-2379
SELECT ALL - MAX( - - 10 ) FROM tab1
----
-10

skipif mysql # not compatible
query I rowsort label-2379
SELECT ALL - MAX ( - - 10 ) FROM tab1
----
-10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2380
SELECT 73 + + - 17 / - + CAST( NULL AS SIGNED ) / + col1 * ( 70 ) col2 FROM tab1 WHERE NULL IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2380
SELECT 73 + + - 17 / - + CAST ( NULL AS INTEGER ) / + col1 * ( 70 ) col2 FROM tab1 WHERE NULL IS NULL
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + + - col2 col2 FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT col2 + + 6 FROM tab1
----
102
65
74

onlyif mysql # DIV for integer division: 
query I rowsort label-2383
SELECT DISTINCT - col1 - + col1 + col1 DIV 70 * - + col2 - - 22 AS col0 FROM tab0 AS cor0
----
-187
-20
20

skipif mysql # not compatible
query I rowsort label-2383
SELECT DISTINCT - col1 - + col1 + col1 / 70 * - + col2 - - 22 AS col0 FROM tab0 AS cor0
----
-187
-20
20

onlyif mysql # aggregate syntax: 
query I rowsort label-2384
SELECT DISTINCT MAX( ALL - ( + 25 ) ) FROM tab2 AS cor0 WHERE - 99 IS NOT NULL
----
-25

skipif mysql # not compatible
query I rowsort label-2384
SELECT DISTINCT MAX ( ALL - ( + 25 ) ) FROM tab2 AS cor0 WHERE - 99 IS NOT NULL
----
-25

query I rowsort
SELECT ALL - col1 * col2 + 19 FROM tab2 AS cor0
----
-1154
-3061
-3867

query I rowsort
SELECT + - 9 FROM tab2 AS cor0 WHERE - col1 IS NOT NULL
----
-9
-9
-9

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 20 IS NULL
----

query I rowsort
SELECT col2 - - col0 * + 28 + + 60 FROM tab1
----
1584
2499
2676

onlyif mysql # DIV for integer division: 
query I rowsort label-2389
SELECT ALL - col1 DIV ( col1 ) - - - col2 AS col0 FROM tab0
----
-100
-11
-48

skipif mysql # not compatible
query I rowsort label-2389
SELECT ALL - col1 / ( col1 ) - - - col2 AS col0 FROM tab0
----
-100
-11
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-2390
SELECT MIN( + col1 ) * + 11 + COUNT( * ) AS col2 FROM tab2
----
564

skipif mysql # not compatible
query I rowsort label-2390
SELECT MIN ( + col1 ) * + 11 + COUNT ( * ) AS col2 FROM tab2
----
564

onlyif mysql # aggregate syntax: 
query I rowsort label-2391
SELECT COUNT( - + col1 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-2391
SELECT COUNT ( - + col1 ) FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2392
SELECT + SUM( ALL - 15 ) * + + 58 * + SUM( ALL - - col1 ) AS col0 FROM tab0 AS cor0
----
-268830

skipif mysql # not compatible
query I rowsort label-2392
SELECT + SUM ( ALL - 15 ) * + + 58 * + SUM ( ALL - - col1 ) AS col0 FROM tab0 AS cor0
----
-268830

query I rowsort
SELECT DISTINCT ( - col1 ) * - + col0 AS col1 FROM tab1 AS cor0
----
425
4277
714

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + ( + 66 ) <= + ( - 15 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col1 / + 45 NOT BETWEEN col0 AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2396
SELECT ALL - COUNT( - 1 ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-2396
SELECT ALL - COUNT ( - 1 ) FROM tab1
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2397
SELECT ALL + CAST( - COUNT( * ) AS SIGNED ) FROM tab0 WHERE col0 <= + col1
----
-1

skipif mysql # not compatible
query I rowsort label-2397
SELECT ALL + CAST ( - COUNT ( * ) AS INTEGER ) FROM tab0 WHERE col0 <= + col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2398
SELECT DISTINCT - COUNT( ALL col1 ) AS col2 FROM tab1 WHERE 20 >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-2398
SELECT DISTINCT - COUNT ( ALL col1 ) AS col2 FROM tab1 WHERE 20 >= NULL
----
0

query I rowsort
SELECT + 65 * - 65 FROM tab2
----
-4225
-4225
-4225

onlyif mysql # aggregate syntax: 
query I rowsort label-2400
SELECT MIN( DISTINCT + col2 ) AS col0 FROM tab2
----
23

skipif mysql # not compatible
query I rowsort label-2400
SELECT MIN ( DISTINCT + col2 ) AS col0 FROM tab2
----
23

query II rowsort
SELECT 91 AS col0, + 91 AS col2 FROM tab1
----
91
91
91
91
91
91

query I rowsort
SELECT - + AVG ( ( - 88 ) ) * - + 28 AS col1 FROM tab2 WHERE NOT NULL < + 29
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 * - + col0 + - 55 + + + col2 + - col1 col2, - 50 AS col1 FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( - col0, + col1 * - 50, - col0 - + + col1, - col0 * + - col1 )
----

query I rowsort
SELECT DISTINCT ( - col0 ) * 57 AS col0 FROM tab2 AS cor0
----
-2622
-3648
-4275

query I rowsort
SELECT + 59 * col0 AS col0 FROM tab1
----
3009
5015
5369

onlyif mysql # aggregate syntax: 
query I rowsort label-2406
SELECT DISTINCT SUM( + 76 ) AS col2 FROM tab2 WHERE + col2 IS NOT NULL
----
228

skipif mysql # not compatible
query I rowsort label-2406
SELECT DISTINCT SUM ( + 76 ) AS col2 FROM tab2 WHERE + col2 IS NOT NULL
----
228

onlyif mysql # aggregate syntax: 
query I rowsort label-2407
SELECT - MAX( - col1 ) * + 60 FROM tab0
----
60

skipif mysql # not compatible
query I rowsort label-2407
SELECT - MAX ( - col1 ) * + 60 FROM tab0
----
60

query III rowsort
SELECT ALL * FROM tab1 WHERE 8 IS NULL
----

query I rowsort
SELECT + 32 * ( - col1 ) AS col0 FROM tab0
----
-2592
-32
-672

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL BETWEEN ( - 14 + - 59 ) AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2411
SELECT + 56 + ( - COUNT( * ) ) col1 FROM tab2
----
53

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2411
SELECT + 56 + ( - COUNT ( * ) ) col1 FROM tab2
----
53

query I rowsort
SELECT 37 - - col1 FROM tab0
----
118
38
58

onlyif mysql # aggregate syntax: 
query I rowsort label-2413
SELECT ALL 46 * COUNT( * ) FROM tab1
----
138

skipif mysql # not compatible
query I rowsort label-2413
SELECT ALL 46 * COUNT ( * ) FROM tab1
----
138

query I rowsort
SELECT col1 * 11 AS col0 FROM tab1 WHERE NOT 72 IN ( col0 )
----
154
517
55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2415
SELECT + CAST( NULL AS SIGNED ) AS col0 FROM tab0 WHERE 76 IS NULL
----

skipif mysql # not compatible
query I rowsort label-2415
SELECT + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 WHERE 76 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 81 col2 FROM tab2
----
81
81
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2417
SELECT + MAX( CAST( col1 AS SIGNED ) ) FROM tab0
----
81

skipif mysql # not compatible
query I rowsort label-2417
SELECT + MAX ( CAST ( col1 AS INTEGER ) ) FROM tab0
----
81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2418
SELECT ALL - 14 DIV - COUNT( * ) AS col2 FROM tab1
----
4

skipif mysql # not compatible
query I rowsort label-2418
SELECT ALL - 14 / - COUNT ( * ) AS col2 FROM tab1
----
4

query I rowsort
SELECT + col0 * col0 + + col2 FROM tab2
----
2139
4136
5683

query III rowsort
SELECT * FROM tab1 WHERE ( + col1 / - 1 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2421
SELECT DISTINCT 79 * + ( - COUNT( * ) ) FROM tab1 WHERE NULL <> ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-2421
SELECT DISTINCT 79 * + ( - COUNT ( * ) ) FROM tab1 WHERE NULL <> ( NULL )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2422
SELECT - 95 + + COUNT( * ) FROM tab0
----
-92

skipif mysql # not compatible
query I rowsort label-2422
SELECT - 95 + + COUNT ( * ) FROM tab0
----
-92

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT DISTINCT - col2 * col1 + ( ( col1 ) + - 37 ) * col0 FROM tab1
----
-2286
-2517
-3015

query I rowsort
SELECT - 53 / 27 AS col2 FROM tab1 WHERE NOT NULL > ( - 33 + + col0 )
----

query I rowsort
SELECT DISTINCT - ( + col2 ) + + 54 FROM tab1
----
-14
-42
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2427
SELECT - CAST( - col1 AS SIGNED ) * + 46 FROM tab0
----
3726
46
966

skipif mysql # not compatible
query I rowsort label-2427
SELECT - CAST ( - col1 AS INTEGER ) * + 46 FROM tab0
----
3726
46
966

onlyif mysql # aggregate syntax: 
query I rowsort label-2428
SELECT ALL - ( + 35 ) * MAX( ALL col2 ) FROM tab0 WHERE 60 BETWEEN ( NULL ) AND col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2428
SELECT ALL - ( + 35 ) * MAX ( ALL col2 ) FROM tab0 WHERE 60 BETWEEN ( NULL ) AND col1
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE col0 * - 90 <= NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - 10 <> col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col1 NOT IN ( - col0 + 2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * + 45 col1 FROM tab1 AS cor0 WHERE NULL NOT IN ( col2 * - 20 )
----

query I rowsort
SELECT DISTINCT + col1 + col0 AS col2 FROM tab1 AS cor0 WHERE 73 / - col2 < col0 * col2
----
138
65
90

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2434
SELECT ALL 23 DIV 97 - COUNT( * ) DIV COUNT( * ) AS col2 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-2434
SELECT ALL 23 / 97 - COUNT ( * ) / COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-1

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 74 * + col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2436
SELECT 14 * - COUNT( * ) + - 49 FROM tab0 AS cor0 CROSS JOIN tab0
----
-175

skipif mysql # not compatible
query I rowsort label-2436
SELECT 14 * - COUNT ( * ) + - 49 FROM tab0 AS cor0 CROSS JOIN tab0
----
-175

query I rowsort
SELECT 8 * 54 FROM tab0
----
432
432
432

query III rowsort
SELECT * FROM tab2 WHERE NOT + 4 NOT BETWEEN 12 AND - col2 * ( + col2 * - 22 )
----

query I rowsort
SELECT 81 AS col2 FROM tab1 cor0 CROSS JOIN tab2
----
9 values hashing to 7a8ea30c6803aeddc5fca5b5821d8267

query I rowsort
SELECT - col2 FROM tab1 WHERE NOT NULL < - 52
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - 28 * - 7 - col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + + 59 AS col2 FROM tab0 AS cor0
----
59
59
59

onlyif mysql # aggregate syntax: 
query I rowsort label-2443
SELECT - + ( MAX( DISTINCT - 70 ) ) * COUNT( * ) AS col1 FROM tab2 AS cor0
----
210

skipif mysql # not compatible
query I rowsort label-2443
SELECT - + ( MAX ( DISTINCT - 70 ) ) * COUNT ( * ) AS col1 FROM tab2 AS cor0
----
210

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2444
SELECT 88 * CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2444
SELECT 88 * CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2445
SELECT - 74 * COUNT( * ) FROM tab2 AS cor0
----
-222

skipif mysql # not compatible
query I rowsort label-2445
SELECT - 74 * COUNT ( * ) FROM tab2 AS cor0
----
-222

query I rowsort
SELECT + ( - 81 ) AS col2 FROM tab0 AS cor0
----
-81
-81
-81

query I rowsort
SELECT col0 - + ( + 93 + + col1 ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-13
-49
-56

query I rowsort
SELECT - - 4 AS col1 FROM tab2 cor0
----
4
4
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2449
SELECT DISTINCT + + CAST( SUM( DISTINCT - 29 ) AS SIGNED ) FROM tab0 AS cor0
----
-29

skipif mysql # not compatible
query I rowsort label-2449
SELECT DISTINCT + + CAST ( SUM ( DISTINCT - 29 ) AS INTEGER ) FROM tab0 AS cor0
----
-29

query I rowsort
SELECT 89 FROM tab0 AS cor0 WHERE NOT - col0 IS NULL
----
89
89
89

onlyif mysql # DIV for integer division: 
query I rowsort label-2451
SELECT 24 DIV + 92 AS col0 FROM tab1 WHERE NOT col2 IN ( - col1 )
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2451
SELECT 24 / + 92 AS col0 FROM tab1 WHERE NOT col2 IN ( - col1 )
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2452
SELECT + COUNT( * ) + + 19 + 42 * - 58 AS col0 FROM tab2
----
-2414

skipif mysql # not compatible
query I rowsort label-2452
SELECT + COUNT ( * ) + + 19 + 42 * - 58 AS col0 FROM tab2
----
-2414

onlyif mysql # aggregate syntax: 
query I rowsort label-2453
SELECT DISTINCT COUNT( 25 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2453
SELECT DISTINCT COUNT ( 25 ) FROM tab1 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2454
SELECT ALL * FROM tab1 cor0 WHERE - CAST( NULL AS SIGNED ) BETWEEN ( NULL ) AND ( NULL )
----

skipif mysql # not compatible
query III rowsort label-2454
SELECT ALL * FROM tab1 cor0 WHERE - CAST ( NULL AS INTEGER ) BETWEEN ( NULL ) AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2455
SELECT DISTINCT + COUNT( * ) * COUNT( * ) * 71 AS col0 FROM tab1 AS cor0
----
639

skipif mysql # not compatible
query I rowsort label-2455
SELECT DISTINCT + COUNT ( * ) * COUNT ( * ) * 71 AS col0 FROM tab1 AS cor0
----
639

query I rowsort
SELECT - col0 * - + 42 FROM tab2 AS cor0
----
1932
2688
3150

onlyif mysql # aggregate syntax: 
query I rowsort label-2457
SELECT - COUNT( ALL - 59 ) AS col2 FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2457
SELECT - COUNT ( ALL - 59 ) AS col2 FROM tab0 cor0
----
-3

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT - col0 IN ( col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query IIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab1 cor1 WHERE NOT 63 IS NULL
----
54 values hashing to 375f372843089b03f23b00160007527a

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2460
SELECT CAST( NULL AS SIGNED ) FROM tab2 WHERE ( NULL ) < ( - col0 )
----

skipif mysql # not compatible
query I rowsort label-2460
SELECT CAST ( NULL AS INTEGER ) FROM tab2 WHERE ( NULL ) < ( - col0 )
----

query I rowsort
SELECT - - 17 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 43298e43365fccb5146ea32003753c92

query I rowsort
SELECT DISTINCT + col0 * ( + 24 ) FROM tab2
----
1104
1536
1800

onlyif mysql # aggregate syntax: 
query I rowsort label-2463
SELECT 69 - MIN( ALL + 49 ) FROM tab2 WHERE + - 25 >= col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2463
SELECT 69 - MIN ( ALL + 49 ) FROM tab2 WHERE + - 25 >= col1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 41 + - col2 * - col0 col2 FROM tab0 WHERE ( + - 12 ) NOT BETWEEN - col2 / - col0 + col2 AND ( ( - col0 ) )
----
664
829
9562

onlyif mysql # aggregate syntax: 
query I rowsort label-2465
SELECT ALL - 7 * + COUNT( * ) FROM tab1
----
-21

skipif mysql # not compatible
query I rowsort label-2465
SELECT ALL - 7 * + COUNT ( * ) FROM tab1
----
-21

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 32 + + col1 col0 FROM tab0
----
113
33
53

onlyif mysql # DIV for integer division: 
query I rowsort label-2467
SELECT DISTINCT col2 + 3 + + col2 DIV - col0 col2 FROM tab1
----
62
71
98

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2467
SELECT DISTINCT col2 + 3 + + col2 / - col0 col2 FROM tab1
----
62
71
98

query I rowsort
SELECT + + col1 + col2 FROM tab2 cor0
----
117
125
74

query I rowsort
SELECT 97 - + - ( col1 ) FROM tab1 AS cor0 WHERE NULL IS NULL
----
102
111
144

onlyif mysql # aggregate syntax: 
query I rowsort label-2470
SELECT - - COUNT( ALL + + col2 ) + + - 68 + - 29 FROM tab2 AS cor0
----
-94

skipif mysql # not compatible
query I rowsort label-2470
SELECT - - COUNT ( ALL + + col2 ) + + - 68 + - 29 FROM tab2 AS cor0
----
-94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2471
SELECT ALL + 98 + CAST( NULL AS SIGNED ) col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2471
SELECT ALL + 98 + CAST ( NULL AS INTEGER ) col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2472
SELECT + COUNT( * ) + - + 20 FROM tab0 AS cor0
----
-17

skipif mysql # not compatible
query I rowsort label-2472
SELECT + COUNT ( * ) + - + 20 FROM tab0 AS cor0
----
-17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2473
SELECT ALL col1 AS col1 FROM tab1 AS cor0 WHERE NOT ( + 85 * - 22 ) IN ( CAST( col1 AS SIGNED ) ) OR col1 IS NULL
----
14
47
5

skipif mysql # not compatible
query I rowsort label-2473
SELECT ALL col1 AS col1 FROM tab1 AS cor0 WHERE NOT ( + 85 * - 22 ) IN ( CAST ( col1 AS INTEGER ) ) OR col1 IS NULL
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-2474
SELECT - 41 + + MIN( col2 ) AS col2 FROM tab2 AS cor0
----
-18

skipif mysql # not compatible
query I rowsort label-2474
SELECT - 41 + + MIN ( col2 ) AS col2 FROM tab2 AS cor0
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-2475
SELECT DISTINCT COUNT( * ) + + + MIN( + ( + 92 ) ) FROM tab1 AS cor0
----
95

skipif mysql # not compatible
query I rowsort label-2475
SELECT DISTINCT COUNT ( * ) + + + MIN ( + ( + 92 ) ) FROM tab1 AS cor0
----
95

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col2 NOT IN ( 20 + - col1 * + col0 )
----

query I rowsort
SELECT - - 64 + + + col1 + + col1 + + 35 * + 98 AS col1 FROM tab1 AS cor0
----
3504
3522
3588

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( NULL ) <> - col2 * col1
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2479
SELECT ALL COUNT( * ) - - - CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2479
SELECT ALL COUNT ( * ) - - - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( + - col0 ) >= ( 86 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2481
SELECT DISTINCT CAST( + col2 AS SIGNED ) * 15 + - col0 AS col2 FROM tab1
----
1389
800
929

skipif mysql # not compatible
query I rowsort label-2481
SELECT DISTINCT CAST ( + col2 AS INTEGER ) * 15 + - col0 AS col2 FROM tab1
----
1389
800
929

query III rowsort
SELECT * FROM tab2 WHERE - - 36 < ( NULL )
----

query III rowsort
SELECT * FROM tab1 WHERE ( NULL ) BETWEEN - 6 AND - col1 * - 85
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2484
SELECT DISTINCT + 55 * + COUNT( col1 ) AS col2 FROM tab0
----
165

skipif mysql # not compatible
query I rowsort label-2484
SELECT DISTINCT + 55 * + COUNT ( col1 ) AS col2 FROM tab0
----
165

query I rowsort
SELECT ALL - ( + + col2 ) * - col1 AS col2 FROM tab2
----
1173
3080
3886

query I rowsort
SELECT DISTINCT col1 * + + 17 FROM tab0
----
1377
17
357

onlyif mysql # DIV for integer division: 
query I rowsort label-2487
SELECT - col0 * - col0 * + 81 * + col0 DIV col0 AS col0 FROM tab0
----
18225
613089
762129

skipif mysql # not compatible
query I rowsort label-2487
SELECT - col0 * - col0 * + 81 * + col0 / col0 AS col0 FROM tab0
----
18225
613089
762129

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2488
SELECT + 39 * CAST( - ( COUNT( * ) ) AS SIGNED ) AS col2 FROM tab2
----
-117

skipif mysql # not compatible
query I rowsort label-2488
SELECT + 39 * CAST ( - ( COUNT ( * ) ) AS INTEGER ) AS col2 FROM tab2
----
-117

onlyif mysql # aggregate syntax: 
query I rowsort label-2489
SELECT MIN( - col2 ) col1 FROM tab1 WHERE ( NULL ) IS NOT NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2489
SELECT MIN ( - col2 ) col1 FROM tab1 WHERE ( NULL ) IS NOT NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2490
SELECT ALL + col2 * - col0 * + - col1 + + - ( + col2 ) DIV + col0 FROM tab1 AS cor0
----
25075
290836
68543

skipif mysql # not compatible
query I rowsort label-2490
SELECT ALL + col2 * - col0 * + - col1 + + - ( + col2 ) / + col0 FROM tab1 AS cor0
----
25075
290836
68543

onlyif mysql # aggregate syntax: 
query II rowsort label-2491
SELECT 37 - 47 AS col2, + COUNT( * ) AS col1 FROM tab2 AS cor0
----
-10
3

skipif mysql # not compatible
query II rowsort label-2491
SELECT 37 - 47 AS col2, + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-10
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2492
SELECT DISTINCT col0 col2 FROM tab2 AS cor0 WHERE col1 * - + 9 BETWEEN 59 AND col0 + - col1 * - CAST( - col2 AS SIGNED )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2492
SELECT DISTINCT col0 col2 FROM tab2 AS cor0 WHERE col1 * - + 9 BETWEEN 59 AND col0 + - col1 * - CAST ( - col2 AS INTEGER )
----

query I rowsort
SELECT DISTINCT + - 1 FROM tab1 cor0
----
-1

query I rowsort
SELECT ALL col0 * col0 * + col2 FROM tab0
----
10575
75690
931491

query I rowsort
SELECT DISTINCT + 1 * + col0 AS col0 FROM tab2
----
46
64
75

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NULL ) > ( + ( + col2 ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2497
SELECT CAST( - 46 AS SIGNED ) FROM tab2
----
-46
-46
-46

skipif mysql # not compatible
query I rowsort label-2497
SELECT CAST ( - 46 AS INTEGER ) FROM tab2
----
-46
-46
-46

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col2 * + - 99 <> ( NULL )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( - col0 ) < + col2
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL = + - 11 * - col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2501
SELECT DISTINCT - 24 DIV + col1 FROM tab0 cor0
----
-1
-24
0

skipif mysql # not compatible
query I rowsort label-2501
SELECT DISTINCT - 24 / + col1 FROM tab0 cor0
----
-1
-24
0

query I rowsort
SELECT ALL + + 15 AS col2 FROM tab0 AS cor0
----
15
15
15

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( 54 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ( 44 ) AS col1 FROM tab2
----
44
44
44

query II rowsort
SELECT col2, 18 + - - 42 FROM tab1
----
59
60
68
60
96
60

onlyif mysql # DIV for integer division: 
query I rowsort label-2506
SELECT DISTINCT ( ( - col0 ) ) DIV - 26 col0 FROM tab0
----
0
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2506
SELECT DISTINCT ( ( - col0 ) ) / - 26 col0 FROM tab0
----
0
3

query I rowsort
SELECT DISTINCT + col0 AS col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
15
87
97

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2508
SELECT DISTINCT - CAST( col0 AS SIGNED ) + col2 DIV - CAST( + - 48 AS SIGNED ) + - col0 * - 81 FROM tab2
----
3680
5120
6001

skipif mysql # not compatible
query I rowsort label-2508
SELECT DISTINCT - CAST ( col0 AS INTEGER ) + col2 / - CAST ( + - 48 AS INTEGER ) + - col0 * - 81 FROM tab2
----
3680
5120
6001

onlyif mysql # aggregate syntax: 
query I rowsort label-2509
SELECT COUNT( * ) * - MAX( - - col2 ) AS col1 FROM tab1
----
-288

skipif mysql # not compatible
query I rowsort label-2509
SELECT COUNT ( * ) * - MAX ( - - col2 ) AS col1 FROM tab1
----
-288

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2510
SELECT CAST( - - 84 AS SIGNED ) FROM tab0
----
84
84
84

skipif mysql # not compatible
query I rowsort label-2510
SELECT CAST ( - - 84 AS INTEGER ) FROM tab0
----
84
84
84

onlyif mysql # aggregate syntax: 
query I rowsort label-2511
SELECT DISTINCT MIN( + col1 ) FROM tab1
----
5

skipif mysql # not compatible
query I rowsort label-2511
SELECT DISTINCT MIN ( + col1 ) FROM tab1
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-2512
SELECT DISTINCT - + 55 * + COUNT( * ) FROM tab1 WHERE ( 45 ) NOT IN ( + col1, col1 )
----
-165

skipif mysql # not compatible
query I rowsort label-2512
SELECT DISTINCT - + 55 * + COUNT ( * ) FROM tab1 WHERE ( 45 ) NOT IN ( + col1, col1 )
----
-165

query I rowsort
SELECT DISTINCT col2 FROM tab0 WHERE ( col0 ) IS NOT NULL
----
10
47
99

query II rowsort
SELECT ALL - + 22 + + col1, col2 FROM tab2 AS cor0
----
29
23
45
58
55
40

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 80 + - col2 - - + 72 / - - 58 + + col0 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( 8 / + + ( - - col0 ) ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2517
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NULL ) IN ( + + col1 * + - ( - CAST( - + col2 AS SIGNED ) ) + - col2 )
----

skipif mysql # not compatible
query III rowsort label-2517
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NULL ) IN ( + + col1 * + - ( - CAST ( - + col2 AS INTEGER ) ) + - col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2518
SELECT + col1 FROM tab1 WHERE CAST( NULL AS SIGNED ) + + col1 * + col2 < - col0
----

skipif mysql # not compatible
query I rowsort label-2518
SELECT + col1 FROM tab1 WHERE CAST ( NULL AS INTEGER ) + + col1 * + col2 < - col0
----

query I rowsort
SELECT DISTINCT + col2 + - ( + col1 ) AS col0 FROM tab0 AS cor0
----
-11
-34
98

query I rowsort
SELECT - + 55 * - 47 - - col1 FROM tab2 cor0
----
2636
2652
2662

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2521
SELECT - 82 - + + COUNT( ALL CAST( 95 AS SIGNED ) ) * - 42 AS col0 FROM tab2
----
44

skipif mysql # not compatible
query I rowsort label-2521
SELECT - 82 - + + COUNT ( ALL CAST ( 95 AS INTEGER ) ) * - 42 AS col0 FROM tab2
----
44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2522
SELECT DISTINCT - + CAST( col2 AS SIGNED ) AS col2 FROM tab1 WHERE NOT col2 >= NULL
----

skipif mysql # not compatible
query I rowsort label-2522
SELECT DISTINCT - + CAST ( col2 AS INTEGER ) AS col2 FROM tab1 WHERE NOT col2 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2523
SELECT DISTINCT - MAX( DISTINCT + 24 ) AS col1 FROM tab0
----
-24

skipif mysql # not compatible
query I rowsort label-2523
SELECT DISTINCT - MAX ( DISTINCT + 24 ) AS col1 FROM tab0
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-2524
SELECT ALL - 62 + + COUNT( * ) FROM tab0
----
-59

skipif mysql # not compatible
query I rowsort label-2524
SELECT ALL - 62 + + COUNT ( * ) FROM tab0
----
-59

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2525
SELECT DISTINCT COUNT( * ) DIV COUNT( * ) DIV - MAX( - col0 ) * + - MIN( ALL + 54 ) + + ( - - COUNT( * ) ) AS col1 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-2525
SELECT DISTINCT COUNT ( * ) / COUNT ( * ) / - MAX ( - col0 ) * + - MIN ( ALL + 54 ) + + ( - - COUNT ( * ) ) AS col1 FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2526
SELECT + + COUNT( - + ( 76 ) ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2526
SELECT + + COUNT ( - + ( 76 ) ) FROM tab0 AS cor0
----
3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col0 + - 58 = + 53
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT col1 AS col1, - 25 AS col2 FROM tab2 AS cor0
----
51
-25
67
-25
77
-25

query I rowsort
SELECT DISTINCT - ( + - col0 ) AS col2 FROM tab0 AS cor0
----
15
87
97

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT - col2 * - col1 IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2531
SELECT col2 + - 85 AS col1 FROM tab2 WHERE NOT CAST( col2 AS DECIMAL ) <= - + 27 * col0 + + 5 * - - col2 - - + 9
----
-27
-45
-62

skipif mysql # not compatible
query I rowsort label-2531
SELECT col2 + - 85 AS col1 FROM tab2 WHERE NOT CAST ( col2 AS REAL ) <= - + 27 * col0 + + 5 * - - col2 - - + 9
----
-27
-45
-62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2532
SELECT col2 AS col1 FROM tab0 WHERE NOT 44 * - CAST( - col2 AS SIGNED ) NOT IN ( - + col2 * - col2 + + + col0 * - + col0 * + 96 )
----

skipif mysql # not compatible
query I rowsort label-2532
SELECT col2 AS col1 FROM tab0 WHERE NOT 44 * - CAST ( - col2 AS INTEGER ) NOT IN ( - + col2 * - col2 + + + col0 * - + col0 * + 96 )
----

query I rowsort
SELECT + 13 AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 184e52d7aa5aa66591291e39c67a3dfb

onlyif mysql # aggregate syntax: 
query I rowsort label-2534
SELECT - + ( MAX( DISTINCT + 93 ) ) AS col2 FROM tab2 AS cor0
----
-93

skipif mysql # not compatible
query I rowsort label-2534
SELECT - + ( MAX ( DISTINCT + 93 ) ) AS col2 FROM tab2 AS cor0
----
-93

query I rowsort
SELECT DISTINCT - - col2 * - col0 * + col1 FROM tab2 AS cor0
----
-197120
-291450
-53958

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2536
SELECT - col2 * + CAST( - - 22 AS SIGNED ) FROM tab0 AS cor0
----
-1034
-2178
-220

skipif mysql # not compatible
query I rowsort label-2536
SELECT - col2 * + CAST ( - - 22 AS INTEGER ) FROM tab0 AS cor0
----
-1034
-2178
-220

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT NULL BETWEEN NULL AND ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( 26 ) col2 FROM tab1 cor0
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-2539
SELECT DISTINCT - COUNT( * ) * + 76 FROM tab2 AS cor0
----
-228

skipif mysql # not compatible
query I rowsort label-2539
SELECT DISTINCT - COUNT ( * ) * + 76 FROM tab2 AS cor0
----
-228

onlyif mysql # aggregate syntax: 
query I rowsort label-2540
SELECT ALL COUNT( - col1 ) FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2540
SELECT ALL COUNT ( - col1 ) FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2541
SELECT DISTINCT + SUM( - - col0 ) * 74 AS col1 FROM tab2
----
13690

skipif mysql # not compatible
query I rowsort label-2541
SELECT DISTINCT + SUM ( - - col0 ) * 74 AS col1 FROM tab2
----
13690

query II rowsort
SELECT ALL - col0 * - col1 AS col2, 36 + ( - col1 ) FROM tab1 WHERE + 77 <> - - col2
----
425
31
4277
-11
714
22

query I rowsort
SELECT DISTINCT - col1 * col2 + - col0 * 89 AS col1 FROM tab0 WHERE - - ( col0 ) - - col2 * - + col1 / - - col1 IN ( col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2544
SELECT col0 + CAST( NULL AS SIGNED ) col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2544
SELECT col0 + CAST ( NULL AS INTEGER ) col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT col2 + + - 25 FROM tab1
----
34
43
71

query III rowsort
SELECT * FROM tab1 WHERE - col1 IN ( 7 * col0 + + 57, ( col2 ) + - col1 - + 94 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2547
SELECT COUNT( * ) + - COUNT( ALL - col1 ) + - - COUNT( * ) AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-2547
SELECT COUNT ( * ) + - COUNT ( ALL - col1 ) + - - COUNT ( * ) AS col1 FROM tab2
----
3

query I rowsort
SELECT DISTINCT col0 * - col2 * col1 * + col1 + + col2 AS col0 FROM tab2
----
-15178200
-19527092
-2751835

query I rowsort
SELECT ALL + + ( 30 ) FROM tab2 AS cor0
----
30
30
30

query I rowsort
SELECT DISTINCT col0 + + + col2 FROM tab1 AS cor0
----
144
147
159

query I rowsort
SELECT - - 39 AS col2 FROM tab0 cor0
----
39
39
39

query I rowsort
SELECT - col0 * - col0 * + col0 + - col0 * col2 + - ( - col1 ) FROM tab2 cor0
----
259661
417592
96329

onlyif mysql # DIV for integer division: 
query I rowsort label-2553
SELECT ALL 25 DIV - col2 FROM tab0
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-2553
SELECT ALL 25 / - col2 FROM tab0
----
-2
0
0

query I rowsort
SELECT 96 + - col2 FROM tab2
----
38
56
73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2555
SELECT CAST( + + 54 AS SIGNED ) + 36 col1 FROM tab2
----
90
90
90

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2555
SELECT CAST ( + + 54 AS INTEGER ) + 36 col1 FROM tab2
----
90
90
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2556
SELECT 29 * + CAST( - col1 AS SIGNED ) + - - col1 FROM tab0 AS cor0
----
-2268
-28
-588

skipif mysql # not compatible
query I rowsort label-2556
SELECT 29 * + CAST ( - col1 AS INTEGER ) + - - col1 FROM tab0 AS cor0
----
-2268
-28
-588

query I rowsort
SELECT + - 24 + col2 * - - col2 FROM tab2 AS cor0
----
1576
3340
505

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col2 < col0 + 25
----
51
14
96

query I rowsort
SELECT DISTINCT - + col1 + + + col1 FROM tab1 AS cor0
----
0

query I rowsort
SELECT DISTINCT - col1 - - col0 AS col1 FROM tab0 AS cor0
----
-66
66
96

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 7 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2562
SELECT ALL - SUM( DISTINCT - 39 ) FROM tab0
----
39

skipif mysql # not compatible
query I rowsort label-2562
SELECT ALL - SUM ( DISTINCT - 39 ) FROM tab0
----
39

query I rowsort
SELECT - ( - 71 ) AS col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
71
71
71

onlyif mysql # aggregate syntax: 
query II rowsort label-2564
SELECT DISTINCT MAX( DISTINCT + 57 ), SUM( 48 ) AS col0 FROM tab1
----
57
144

skipif mysql # not compatible
query II rowsort label-2564
SELECT DISTINCT MAX ( DISTINCT + 57 ), SUM ( 48 ) AS col0 FROM tab1
----
57
144

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2565
SELECT DISTINCT + 2 DIV + COUNT( * ) FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-2565
SELECT DISTINCT + 2 / + COUNT ( * ) FROM tab2 cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2566
SELECT ALL + SUM( - col0 ) FROM tab1
----
-227

skipif mysql # not compatible
query I rowsort label-2566
SELECT ALL + SUM ( - col0 ) FROM tab1
----
-227

query II rowsort
SELECT - 64, col0 FROM tab2
----
-64
46
-64
64
-64
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 AS col1, col2 * + 41 col1 FROM tab0
----
-10
410
-47
1927
-99
4059

onlyif mysql # aggregate syntax: 
query I rowsort label-2569
SELECT - MAX( ALL + col2 ) AS col2 FROM tab1
----
-96

skipif mysql # not compatible
query I rowsort label-2569
SELECT - MAX ( ALL + col2 ) AS col2 FROM tab1
----
-96

onlyif mysql # aggregate syntax: 
query II rowsort label-2570
SELECT ALL COUNT( * ) * + MAX( + 25 ) AS col1, - MIN( DISTINCT + + 41 ) FROM tab1
----
75
-41

skipif mysql # not compatible
query II rowsort label-2570
SELECT ALL COUNT ( * ) * + MAX ( + 25 ) AS col1, - MIN ( DISTINCT + + 41 ) FROM tab1
----
75
-41

onlyif mysql # DIV for integer division: 
query I rowsort label-2571
SELECT DISTINCT col1 * 25 DIV 85 AS col2 FROM tab0 cor0
----
0
23
6

skipif mysql # not compatible
query I rowsort label-2571
SELECT DISTINCT col1 * 25 / 85 AS col2 FROM tab0 cor0
----
0
23
6

query I rowsort
SELECT ALL - col2 * + col2 + + col2 + + 83 AS col2 FROM tab1 cor0
----
-3339
-4473
-9037

onlyif mysql # aggregate syntax: 
query II rowsort label-2573
SELECT DISTINCT - COUNT( * ), + ( + COUNT( * ) ) FROM tab2 AS cor0 WHERE NOT NULL <> + col0
----
0
0

skipif mysql # not compatible
query II rowsort label-2573
SELECT DISTINCT - COUNT ( * ), + ( + COUNT ( * ) ) FROM tab2 AS cor0 WHERE NOT NULL <> + col0
----
0
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN col1 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2575
SELECT + COUNT( * ) * + 6 FROM tab2 AS cor0
----
18

skipif mysql # not compatible
query I rowsort label-2575
SELECT + COUNT ( * ) * + 6 FROM tab2 AS cor0
----
18

query I rowsort
SELECT ( - ( + ( + - col2 ) ) ) FROM tab0 AS cor0
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-2577
SELECT DISTINCT ( + - 59 ) * + - COUNT( - col1 ) FROM tab1 AS cor0
----
177

skipif mysql # not compatible
query I rowsort label-2577
SELECT DISTINCT ( + - 59 ) * + - COUNT ( - col1 ) FROM tab1 AS cor0
----
177

query I rowsort
SELECT ALL + col0 * + + col1 * - 3 * col0 + col0 + + 42 + - col0 * - 18 FROM tab1
----
-106718
-108231
-1165850

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 col0 FROM tab0 WHERE col0 * 9 * - + col1 IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE + 23 NOT BETWEEN col0 + - - 15 AND ( NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col1 * + col1 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + 30 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
30

query III rowsort
SELECT * FROM tab1 WHERE - - 41 < ( + - col0 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL = + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2585
SELECT DISTINCT - COUNT( * ) + + MIN( - col1 ) * ( - 25 ) AS col0 FROM tab0 AS cor0
----
2022

skipif mysql # not compatible
query I rowsort label-2585
SELECT DISTINCT - COUNT ( * ) + + MIN ( - col1 ) * ( - 25 ) AS col0 FROM tab0 AS cor0
----
2022

query I rowsort
SELECT ALL + - col0 + + + col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT + col1 - - 34 FROM tab2 AS cor0
----
101
111
85

query I rowsort
SELECT - + col1 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN NULL AND + col1
----

query II rowsort
SELECT + ( - 87 ) - 74, + col1 FROM tab2 cor0
----
-161
51
-161
67
-161
77

query I rowsort
SELECT + + 13 - + 86 AS col2 FROM tab2 AS cor0
----
-73
-73
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-2591
SELECT ALL COUNT( * ) + - ( 2 ) - + - 43 AS col0 FROM tab1 AS cor0
----
44

skipif mysql # not compatible
query I rowsort label-2591
SELECT ALL COUNT ( * ) + - ( 2 ) - + - 43 AS col0 FROM tab1 AS cor0
----
44

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - - col2 col2, ( + - 12 ) FROM tab0 AS cor0
----
10
-12
47
-12
99
-12

query I rowsort
SELECT col0 AS col1 FROM tab1 cor0 WHERE NOT - 23 - + - col2 IS NULL
----
51
85
91

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2594
SELECT DISTINCT * FROM tab2 AS cor0 WHERE CAST( - 45 AS SIGNED ) + 66 <= NULL
----

skipif mysql # not compatible
query III rowsort label-2594
SELECT DISTINCT * FROM tab2 AS cor0 WHERE CAST ( - 45 AS INTEGER ) + 66 <= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2595
SELECT col0 DIV - 67 - - 88 + - 5 AS col0 FROM tab1 cor0
----
82
82
83

skipif mysql # not compatible
query I rowsort label-2595
SELECT col0 / - 67 - - 88 + - 5 AS col0 FROM tab1 cor0
----
82
82
83

onlyif mysql # aggregate syntax: 
query I rowsort label-2596
SELECT DISTINCT COUNT( * ) FROM tab2 WHERE NULL IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-2596
SELECT DISTINCT COUNT ( * ) FROM tab2 WHERE NULL IS NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2597
SELECT + 2 * - COUNT( 44 ) FROM tab1
----
-6

skipif mysql # not compatible
query I rowsort label-2597
SELECT + 2 * - COUNT ( 44 ) FROM tab1
----
-6

query III rowsort
SELECT * FROM tab2 WHERE NOT - col1 > + 9
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2599
SELECT ALL COUNT( 63 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-2599
SELECT ALL COUNT ( 63 ) FROM tab0
----
3

query I rowsort
SELECT 69 AS col2 FROM tab0 AS cor0 WHERE NOT - 77 + 69 NOT BETWEEN - 83 * + + col2 AND NULL
----

query I rowsort
SELECT + 17 * - 50 + - - col1 + - - 40 FROM tab0 AS cor0
----
-729
-789
-809

query I rowsort
SELECT DISTINCT + col0 * + 84 AS col1 FROM tab2 AS cor0
----
3864
5376
6300

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - 47 >= ( + col0 ) + + 95
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2604
SELECT ALL - 63 - - COUNT( * ) AS col1 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
-54

skipif mysql # not compatible
query I rowsort label-2604
SELECT ALL - 63 - - COUNT ( * ) AS col1 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-2605
SELECT 70 * + - ( + COUNT( * ) ) FROM tab1 AS cor0
----
-210

skipif mysql # not compatible
query I rowsort label-2605
SELECT 70 * + - ( + COUNT ( * ) ) FROM tab1 AS cor0
----
-210

query I rowsort
SELECT ALL - col2 * + - 28 + col0 FROM tab0 AS cor0
----
1331
2869
367

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2607
SELECT DISTINCT * FROM tab2 AS cor0 WHERE CAST( NULL AS SIGNED ) NOT IN ( - col1, + col1 * 28 / - col2 + + col2 + + col2 / - ( col0 ) )
----

skipif mysql # not compatible
query III rowsort label-2607
SELECT DISTINCT * FROM tab2 AS cor0 WHERE CAST ( NULL AS INTEGER ) NOT IN ( - col1, + col1 * 28 / - col2 + + col2 + + col2 / - ( col0 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2608
SELECT DISTINCT + COUNT( col1 ) + + 73 AS col1 FROM tab1 AS cor0
----
76

skipif mysql # not compatible
query I rowsort label-2608
SELECT DISTINCT + COUNT ( col1 ) + + 73 AS col1 FROM tab1 AS cor0
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-2609
SELECT ALL - - 89 * - - MAX( + + col2 ) AS col0 FROM tab1 AS cor0
----
8544

skipif mysql # not compatible
query I rowsort label-2609
SELECT ALL - - 89 * - - MAX ( + + col2 ) AS col0 FROM tab1 AS cor0
----
8544

query I rowsort
SELECT - 50 + col0 + - col1 * + 40 FROM tab0 AS cor0
----
-3275
-803
7

query I rowsort
SELECT ALL - col2 - - + col2 FROM tab2 AS cor0 WHERE NOT col0 * - col1 + - ( + col2 ) * + col0 >= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col0 col1, 86 AS col0 FROM tab1
----
-51
86
-85
86
-91
86

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-2614
SELECT ALL + COUNT( * ) AS col1 FROM tab0, tab2 cor0
----
9

skipif mysql # not compatible
query I rowsort label-2614
SELECT ALL + COUNT ( * ) AS col1 FROM tab0, tab2 cor0
----
9

query II rowsort
SELECT ALL col2 * + + col1 + + col0 AS col0, col0 FROM tab0
----
196
97
297
87
3822
15

query I rowsort
SELECT DISTINCT - ( - - 66 ) FROM tab0
----
-66

query I rowsort
SELECT 53 + - col1 + - col1 AS col2 FROM tab0
----
-109
11
51

query I rowsort
SELECT ALL + 50 FROM tab0, tab1 cor0
----
9 values hashing to dea2d1b74e0cdf67806af8c417324f52

query II rowsort
SELECT ALL + 61, - 48 + col2 AS col1 FROM tab0
----
61
-1
61
-38
61
51

onlyif mysql # aggregate syntax: 
query I rowsort label-2620
SELECT - COUNT( + col2 ) FROM tab1 WHERE ( - 62 + + col2 + col1 IS NOT NULL )
----
-3

skipif mysql # not compatible
query I rowsort label-2620
SELECT - COUNT ( + col2 ) FROM tab1 WHERE ( - 62 + + col2 + col1 IS NOT NULL )
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2621
SELECT ALL ( - COUNT( * ) ) * + + SUM( DISTINCT - col1 ) + + 15 AS col2 FROM tab2
----
600

skipif mysql # not compatible
query I rowsort label-2621
SELECT ALL ( - COUNT ( * ) ) * + + SUM ( DISTINCT - col1 ) + + 15 AS col2 FROM tab2
----
600

query III rowsort
SELECT * FROM tab1 WHERE ( NOT ( - 45 - - col1 < NULL ) )
----

query I rowsort
SELECT + - col1 + 33 FROM tab2 WHERE - - col2 NOT IN ( ( 43 ), col1 * - - col1 )
----
-18
-34
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-2624
SELECT + COUNT( * ) FROM tab0 AS cor0 WHERE - 12 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-2624
SELECT + COUNT ( * ) FROM tab0 AS cor0 WHERE - 12 IS NOT NULL
----
3

query II rowsort
SELECT - col2, col1 AS col0 FROM tab1 AS cor0
----
-59
5
-68
47
-96
14

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( - 60 ) col2 FROM tab2 AS cor0
----
-60

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 39 col0 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 504d14939d58aeb4a14f31c80de5b53e

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 32 - - 83, 33 col1 FROM tab1
----
115
33
115
33
115
33

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NOT ( NULL > NULL ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2630
SELECT - 61 DIV - - col1 - - 33 FROM tab2 AS cor0
----
32
33
33

skipif mysql # not compatible
query I rowsort label-2630
SELECT - 61 / - - col1 - - 33 FROM tab2 AS cor0
----
32
33
33

query I rowsort
SELECT ALL + - 84 + col0 AS col1 FROM tab0 AS cor0 WHERE col0 + + 97 * - + col1 IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2632
SELECT 66 DIV + COUNT( * ) AS col0 FROM tab2 AS cor0
----
22

skipif mysql # not compatible
query I rowsort label-2632
SELECT 66 / + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
22

onlyif mysql # DIV for integer division: 
query II rowsort label-2633
SELECT DISTINCT + 85 DIV col1, + 88 AS col1 FROM tab1 AS cor0
----
1
88
17
88
6
88

skipif mysql # not compatible
query II rowsort label-2633
SELECT DISTINCT + 85 / col1, + 88 AS col1 FROM tab1 AS cor0
----
1
88
17
88
6
88

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NULL ) > col1
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 51 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 84 * - 70 AS col1 FROM tab1
----
-5880
-5880
-5880

onlyif mysql # aggregate syntax: 
query I rowsort label-2637
SELECT - COUNT( * ) * - SUM( + ( + - col1 ) ) col0 FROM tab1
----
-198

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2637
SELECT - COUNT ( * ) * - SUM ( + ( + - col1 ) ) col0 FROM tab1
----
-198

query I rowsort
SELECT DISTINCT - 83 * + 76 AS col0 FROM tab2
----
-6308

onlyif mysql # aggregate syntax: 
query I rowsort label-2639
SELECT ( - MIN( DISTINCT + col2 ) ) FROM tab0
----
-10

skipif mysql # not compatible
query I rowsort label-2639
SELECT ( - MIN ( DISTINCT + col2 ) ) FROM tab0
----
-10

query I rowsort
SELECT ALL + ( + - 7 ) FROM tab0
----
-7
-7
-7

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL BETWEEN - + col1 AND - - ( col2 ) - + col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * - - col0 / + col1 col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL - + ( - + col1 ) FROM tab0 AS cor0
----
1
21
81

query I rowsort
SELECT + 57 + 43 + + col2 + + col2 * + - col0 AS col2 FROM tab1
----
-4700
-4856
-6020

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2645
SELECT ALL - AVG ( + col1 ) + + + 59 + + - ( COUNT( * ) ) * COUNT( * ) * CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2645
SELECT ALL - AVG ( + col1 ) + + + 59 + + - ( COUNT ( * ) ) * COUNT ( * ) * CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT + ( ( - 95 ) ) FROM tab0 AS cor0
----
-95
-95
-95

query I rowsort
SELECT DISTINCT + col0 + + + col0 FROM tab1 AS cor0
----
102
170
182

query I rowsort
SELECT + - 15 + + 56 AS col1 FROM tab1 AS cor0 WHERE NULL > ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2649
SELECT MAX( - 0 ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-2649
SELECT MAX ( - 0 ) FROM tab0
----
0

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + + 60 + + col0 BETWEEN + - col1 + + + 40 - - 73 AND NULL
----

query I rowsort
SELECT ALL - col1 * + - col2 AS col2 FROM tab2
----
1173
3080
3886

query II rowsort
SELECT DISTINCT + 97 * col2 + + col0 + 67 * + 49, col1 AS col0 FROM tab0 AS cor0
----
12983
1
4340
21
7857
81

query I rowsort
SELECT ALL - col0 + - + 36 * + - col2 AS col0 FROM tab0 AS cor0
----
1677
273
3467

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 86 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 96 <> col2 + - col1 + + + col2 / - col2 + + col1 * + 52 + + 71 * col1 + 89 + - + 94 * 70 * - col0 * + + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col1 * - - col0 - + 5 AS col1 FROM tab0 cor0
----
1210
1822
92

onlyif mysql # aggregate syntax: 
query I rowsort label-2657
SELECT DISTINCT + MIN( - - 79 ) * 74 col0 FROM tab0
----
5846

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2657
SELECT DISTINCT + MIN ( - - 79 ) * 74 col0 FROM tab0
----
5846

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL < ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2659
SELECT + - 98 DIV + 9 + + - col1 FROM tab0 AS cor0
----
-11
-31
-91

skipif mysql # not compatible
query I rowsort label-2659
SELECT + - 98 / + 9 + + - col1 FROM tab0 AS cor0
----
-11
-31
-91

query I rowsort
SELECT ALL - 48 * - + 54 FROM tab1 AS cor0
----
2592
2592
2592

onlyif mysql # DIV for integer division: 
query I rowsort label-2661
SELECT - col1 DIV + 59 FROM tab2 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-2661
SELECT - col1 / + 59 FROM tab2 AS cor0
----
-1
-1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2662
SELECT DISTINCT + - ( - COUNT( * ) ) FROM tab1 AS cor0 WHERE NOT col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2662
SELECT DISTINCT + - ( - COUNT ( * ) ) FROM tab1 AS cor0 WHERE NOT col0 IS NOT NULL
----
0

query II rowsort
SELECT + col2 AS col2, + col1 FROM tab0 AS cor0
----
10
21
47
81
99
1

onlyif mysql # DIV for integer division: 
query I rowsort label-2664
SELECT DISTINCT col2 DIV + 27 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
0
1
3

skipif mysql # not compatible
query I rowsort label-2664
SELECT DISTINCT col2 / + 27 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
0
1
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2665
SELECT + - CAST( col2 AS SIGNED ) * + - col0 FROM tab2 AS cor0
----
1058
2560
4350

skipif mysql # not compatible
query I rowsort label-2665
SELECT + - CAST ( col2 AS INTEGER ) * + - col0 FROM tab2 AS cor0
----
1058
2560
4350

query II rowsort
SELECT - 83 AS col1, col1 AS col1 FROM tab0 AS cor0
----
-83
1
-83
21
-83
81

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 87 < col1
----

query I rowsort
SELECT ALL - 25 * + 68 AS col1 FROM tab1 AS cor0
----
-1700
-1700
-1700

onlyif mysql # aggregate syntax: 
query I rowsort label-2669
SELECT DISTINCT - + COUNT( + 35 ) AS col2 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2669
SELECT DISTINCT - + COUNT ( + 35 ) AS col2 FROM tab2 AS cor0
----
-3

query I rowsort
SELECT - ( + 75 ) AS col2 FROM tab0
----
-75
-75
-75

query III rowsort
SELECT ALL * FROM tab2 WHERE 33 = - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2672
SELECT ALL - SUM( + - 41 ) FROM tab1, tab2 cor0 WHERE 86 IS NOT NULL
----
369

skipif mysql # not compatible
query I rowsort label-2672
SELECT ALL - SUM ( + - 41 ) FROM tab1, tab2 cor0 WHERE 86 IS NOT NULL
----
369

query I rowsort
SELECT + 35 * + + col0 * - col0 FROM tab0 AS cor0 WHERE NOT ( - col2 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT - + col2 FROM tab2 AS cor0 WHERE NOT 33 / + col1 IS NOT NULL
----

query I rowsort
SELECT + col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) <= NULL
----

query I rowsort
SELECT ALL + 61 + col0 + + + col0 FROM tab0
----
235
255
91

query I rowsort
SELECT - col2 + - - col1 + + col2 + - 19 * - + 29 AS col1 FROM tab2 AS cor0
----
602
618
628

query I rowsort
SELECT - + 15 * - col1 * + - col2 + + 38 AS col1 FROM tab2 AS cor0
----
-17557
-46162
-58252

query I rowsort
SELECT DISTINCT col1 + - + 62 AS col0 FROM tab2 AS cor0
----
-11
15
5

query I rowsort
SELECT DISTINCT col1 + + - col1 FROM tab1 AS cor0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2681
SELECT - MIN( col2 ) + - - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2681
SELECT - MIN ( col2 ) + - - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT + 7 + - 21 AS col2 FROM tab0 AS cor0
----
-14
-14
-14

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 + - col0 col2 FROM tab2 AS cor0
----
-141
-142
-97

query I rowsort
SELECT ALL + - col0 + + - col1 FROM tab2 cor0
----
-141
-142
-97

query I rowsort
SELECT DISTINCT - + 92 AS col2 FROM tab1 cor0
----
-92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2686
SELECT DISTINCT + 65 + - CAST( col1 AS SIGNED ) AS col1 FROM tab0 WHERE NOT - col0 + col2 NOT IN ( + - col0 * - col2, 95, + col1 * - col1 + - col1, col2, col1 )
----

skipif mysql # not compatible
query I rowsort label-2686
SELECT DISTINCT + 65 + - CAST ( col1 AS INTEGER ) AS col1 FROM tab0 WHERE NOT - col0 + col2 NOT IN ( + - col0 * - col2, 95, + col1 * - col1 + - col1, col2, col1 )
----

query I rowsort
SELECT col0 AS col0 FROM tab2 WHERE NULL = 39 * + - 21
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2688
SELECT DISTINCT 21 * - MIN( + - CAST( NULL AS SIGNED ) ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2688
SELECT DISTINCT 21 * - MIN ( + - CAST ( NULL AS INTEGER ) ) FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2689
SELECT ( + MAX( ALL - col1 ) ) FROM tab2
----
-51

skipif mysql # not compatible
query I rowsort label-2689
SELECT ( + MAX ( ALL - col1 ) ) FROM tab2
----
-51

query II rowsort
SELECT DISTINCT + - 27 AS col0, col1 FROM tab0 WHERE NOT - col0 > + 37 + - 41
----
-27
1
-27
21
-27
81

onlyif mysql # DIV for integer division: 
query I rowsort label-2691
SELECT col1 DIV ( col0 ) AS col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2691
SELECT col1 / ( col0 ) AS col0 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2692
SELECT COUNT( DISTINCT + col2 ) col1 FROM tab2
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2692
SELECT COUNT ( DISTINCT + col2 ) col1 FROM tab2
----
3

query I rowsort
SELECT col1 * 45 * col2 FROM tab2
----
138600
174870
52785

query I rowsort
SELECT 25 * + col0 FROM tab2
----
1150
1600
1875

onlyif mysql # DIV for integer division: 
query I rowsort label-2695
SELECT col2 DIV + 50 AS col0 FROM tab2
----
0
0
1

skipif mysql # not compatible
query I rowsort label-2695
SELECT col2 / + 50 AS col0 FROM tab2
----
0
0
1

query II rowsort
SELECT DISTINCT + col0 AS col1, ( - - col1 ) AS col0 FROM tab0
----
15
81
87
21
97
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2697
SELECT DISTINCT - - 93 + + + MIN( + + col0 ) FROM tab1 AS cor0
----
144

skipif mysql # not compatible
query I rowsort label-2697
SELECT DISTINCT - - 93 + + + MIN ( + + col0 ) FROM tab1 AS cor0
----
144

query I rowsort
SELECT DISTINCT col1 - - + col2 FROM tab0 AS cor0
----
100
128
31

query I rowsort
SELECT DISTINCT col2 - - 50 AS col0 FROM tab2 AS cor0
----
108
73
90

onlyif mysql # aggregate syntax: 
query I rowsort label-2700
SELECT - COUNT( DISTINCT - - col2 ) AS col1 FROM tab1 AS cor0 WHERE - - col1 + + col0 IS NOT NULL AND NOT NULL IN ( - 24, + col0 + col0 )
----
0

skipif mysql # not compatible
query I rowsort label-2700
SELECT - COUNT ( DISTINCT - - col2 ) AS col1 FROM tab1 AS cor0 WHERE - - col1 + + col0 IS NOT NULL AND NOT NULL IN ( - 24, + col0 + col0 )
----
0

query I rowsort
SELECT DISTINCT + col0 * col2 * - - col0 AS col1 FROM tab2 AS cor0
----
163840
326250
48668

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2702
SELECT MIN( DISTINCT - CAST( NULL AS SIGNED ) ) AS col2, 23 AS col0 FROM tab2
----
NULL
23

skipif mysql # not compatible
query II rowsort label-2702
SELECT MIN ( DISTINCT - CAST ( NULL AS INTEGER ) ) AS col2, 23 AS col0 FROM tab2
----
NULL
23

query I rowsort
SELECT col1 * + col2 FROM tab0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL 79 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 40a2261caa2c5cdbfd80965d7df1231f

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col2 <= - ( col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2706
SELECT ALL MIN( - col0 ) * + COUNT( * ) FROM tab2 AS cor0
----
-225

skipif mysql # not compatible
query I rowsort label-2706
SELECT ALL MIN ( - col0 ) * + COUNT ( * ) FROM tab2 AS cor0
----
-225

onlyif mysql # aggregate syntax: 
query I rowsort label-2707
SELECT + + MIN( ALL + ( 64 ) ) AS col1 FROM tab1 AS cor0
----
64

skipif mysql # not compatible
query I rowsort label-2707
SELECT + + MIN ( ALL + ( 64 ) ) AS col1 FROM tab1 AS cor0
----
64

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2708
SELECT * FROM tab0 WHERE NOT NULL NOT BETWEEN NULL AND - - col1 / + CAST( NULL AS SIGNED ) * - col2
----

skipif mysql # not compatible
query III rowsort label-2708
SELECT * FROM tab0 WHERE NOT NULL NOT BETWEEN NULL AND - - col1 / + CAST ( NULL AS INTEGER ) * - col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2709
SELECT + col0 DIV - - 70 AS col1 FROM tab2
----
0
0
1

skipif mysql # not compatible
query I rowsort label-2709
SELECT + col0 / - - 70 AS col1 FROM tab2
----
0
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2710
SELECT 98 * - COUNT( * ) FROM tab1
----
-294

skipif mysql # not compatible
query I rowsort label-2710
SELECT 98 * - COUNT ( * ) FROM tab1
----
-294

query II rowsort
SELECT DISTINCT 5 AS col0, col1 * - + col2 - - col1 * + col2 + - col0 FROM tab1 WHERE NULL <= NULL
----

query I rowsort
SELECT DISTINCT ( - 14 ) FROM tab1
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-2713
SELECT ALL COUNT( ALL + + 26 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-2713
SELECT ALL COUNT ( ALL + + 26 ) FROM tab0
----
3

query II rowsort
SELECT - col2 AS col2, - 27 AS col1 FROM tab0
----
-10
-27
-47
-27
-99
-27

onlyif mysql # DIV for integer division: 
query I rowsort label-2715
SELECT DISTINCT + col2 * - col2 DIV - - col2 + - - col2 AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-2715
SELECT DISTINCT + col2 * - col2 / - - col2 + - - col2 AS col2 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2716
SELECT ALL COUNT( * ) * + COUNT( * ) + 23 FROM tab1
----
32

skipif mysql # not compatible
query I rowsort label-2716
SELECT ALL COUNT ( * ) * + COUNT ( * ) + 23 FROM tab1
----
32

query I rowsort
SELECT ALL - col0 + + + col1 FROM tab2 AS cor0 WHERE 25 + + col0 IS NOT NULL
----
-8
13
5

onlyif mysql # aggregate syntax: 
query I rowsort label-2718
SELECT - + SUM( - ( - 45 ) ) FROM tab0 AS cor0
----
-135

skipif mysql # not compatible
query I rowsort label-2718
SELECT - + SUM ( - ( - 45 ) ) FROM tab0 AS cor0
----
-135

onlyif mysql # aggregate syntax: 
query I rowsort label-2719
SELECT + + 63 * + COUNT( * ) col0 FROM tab1 AS cor0
----
189

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2719
SELECT + + 63 * + COUNT ( * ) col0 FROM tab1 AS cor0
----
189

query I rowsort
SELECT 47 AS col0 FROM tab2 cor0
----
47
47
47

query I rowsort
SELECT - - col1 - col0 AS col0 FROM tab0 AS cor0 WHERE NULL < ( + ( - - col0 ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2722
SELECT - CAST( - + ( + col2 ) AS SIGNED ) FROM tab2 AS cor0
----
23
40
58

skipif mysql # not compatible
query I rowsort label-2722
SELECT - CAST ( - + ( + col2 ) AS INTEGER ) FROM tab2 AS cor0
----
23
40
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( - col0 ) + + col0 col1 FROM tab0 AS cor0
----
174
194
30

onlyif mysql # aggregate syntax: 
query I rowsort label-2724
SELECT ( + 12 ) - + COUNT( * ) AS col0 FROM tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-2724
SELECT ( + 12 ) - + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
9

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-2725
SELECT 67 * - ( + + col1 ), - col2 + CAST( NULL AS SIGNED ) FROM tab1 WHERE - CAST( NULL AS DECIMAL ) - - 77 + + + col1 + + col2 * + col2 > - col2
----

skipif mysql # not compatible
query II rowsort label-2725
SELECT 67 * - ( + + col1 ), - col2 + CAST ( NULL AS INTEGER ) FROM tab1 WHERE - CAST ( NULL AS REAL ) - - 77 + + + col1 + + col2 * + col2 > - col2
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2726
SELECT - CAST( - + ( + COUNT( * ) ) AS SIGNED ) col2 FROM tab0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2726
SELECT - CAST ( - + ( + COUNT ( * ) ) AS INTEGER ) col2 FROM tab0 WHERE NULL IS NOT NULL
----
0

query I rowsort
SELECT - col2 * - col0 - + - col2 AS col2 FROM tab2
----
1081
2600
4408

query I rowsort
SELECT DISTINCT + col0 AS col0 FROM tab1 WHERE ( NOT NULL IS NOT NULL )
----
51
85
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2729
SELECT ALL - CAST( 29 AS SIGNED ) FROM tab0
----
-29
-29
-29

skipif mysql # not compatible
query I rowsort label-2729
SELECT ALL - CAST ( 29 AS INTEGER ) FROM tab0
----
-29
-29
-29

query I rowsort
SELECT DISTINCT 18 * + col0 * - col2 AS col0 FROM tab0
----
-12690
-15660
-172854

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - + 91 NOT BETWEEN + - col2 AND 67
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2732
SELECT COUNT( * ) * + - COUNT( * ) AS col2 FROM tab1 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-2732
SELECT COUNT ( * ) * + - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-9

query I rowsort
SELECT ALL + 84 * - 76 FROM tab1 AS cor0
----
-6384
-6384
-6384

onlyif mysql # aggregate syntax: 
query II rowsort label-2734
SELECT DISTINCT + COUNT( * ) AS col0, 86 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
3
86

skipif mysql # not compatible
query II rowsort label-2734
SELECT DISTINCT + COUNT ( * ) AS col0, 86 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
3
86

onlyif mysql # DIV for integer division: 
query I rowsort label-2735
SELECT col2 DIV - 3 FROM tab0 cor0
----
-15
-3
-33

skipif mysql # not compatible
query I rowsort label-2735
SELECT col2 / - 3 FROM tab0 cor0
----
-15
-3
-33

onlyif mysql # DIV for integer division: 
query II rowsort label-2736
SELECT + col1 col2, 7 * + col0 DIV + col0 - + col1 + + 99 * 38 FROM tab1 AS cor0
----
14
3755
47
3722
5
3764

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2736
SELECT + col1 col2, 7 * + col0 / + col0 - + col1 + + 99 * 38 FROM tab1 AS cor0
----
14
3755
47
3722
5
3764

query I rowsort
SELECT ( + 55 ) AS col2 FROM tab1 AS cor0
----
55
55
55

query II rowsort
SELECT ALL + 48, col2 + + col2 + - - ( ( + + 93 ) ) * ( - + col1 ) AS col1 FROM tab0 AS cor0
----
48
-1933
48
-7439
48
105

onlyif mysql # aggregate syntax: 
query I rowsort label-2739
SELECT DISTINCT - COUNT( ALL + - 15 ) * - - 27 FROM tab2 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-2739
SELECT DISTINCT - COUNT ( ALL + - 15 ) * - - 27 FROM tab2 AS cor0
----
-81

query I rowsort
SELECT ALL 57 * + - col1 FROM tab2 AS cor0
----
-2907
-3819
-4389

query III rowsort
SELECT * FROM tab0 WHERE NOT - 90 IS NOT NULL
----

query I rowsort
SELECT ALL - col1 AS col1 FROM tab2 WHERE NULL <> NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE + - col2 * + + 59 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col1 * + col2 + + col1 AS col0 FROM tab0
----
100
231
3888

query I rowsort
SELECT DISTINCT col2 FROM tab1 WHERE + ( - col0 ) / + + 92 IS NOT NULL
----
59
68
96

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL BETWEEN col1 AND + + 46 * - 2
----

query II rowsort
SELECT 69 * - col1, col1 FROM tab2 AS cor0
----
-3519
51
-4623
67
-5313
77

query II rowsort
SELECT ALL - 80 + + col2 * + col0 AS col0, - 90 FROM tab2 AS cor0
----
2480
-90
4270
-90
978
-90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 98 col0 FROM tab0 cor0
----
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2750
SELECT ALL 83 / + CAST( NULL AS SIGNED ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-2750
SELECT ALL 83 / + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # DIV for integer division: 
query II rowsort label-2751
SELECT ( col1 ) + + + col2, - col0 DIV - 76 col0 FROM tab1 AS cor0
----
110
0
115
1
64
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2751
SELECT ( col1 ) + + + col2, - col0 / - 76 col0 FROM tab1 AS cor0
----
110
0
115
1
64
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2752
SELECT ALL CAST( NULL AS SIGNED ) + + 65 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2752
SELECT ALL CAST ( NULL AS INTEGER ) + + 65 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2753
SELECT ALL + col0 * + col0 * + 55 + + + col0 DIV - col0 FROM tab2 AS cor0
----
116379
225279
309374

skipif mysql # not compatible
query I rowsort label-2753
SELECT ALL + col0 * + col0 * + 55 + + + col0 / - col0 FROM tab2 AS cor0
----
116379
225279
309374

onlyif mysql # DIV for integer division: 
query I rowsort label-2754
SELECT DISTINCT - 15 DIV + + col2 + + col0 FROM tab0 AS cor0
----
15
86
97

skipif mysql # not compatible
query I rowsort label-2754
SELECT DISTINCT - 15 / + + col2 + + col0 FROM tab0 AS cor0
----
15
86
97

query I rowsort
SELECT 73 + - col1 FROM tab1 AS cor0
----
26
59
68

query I rowsort
SELECT DISTINCT col0 - + col0 AS col0 FROM tab1 cor0
----
0

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col1 + - col0 / 32 = NULL OR NOT NULL IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2758
SELECT DISTINCT 27 AS col0, 57 * + col0 + - - CAST( NULL AS DECIMAL ) - - 33 / + col1 AS col2 FROM tab2 WHERE NOT + col1 IS NOT NULL
----

skipif mysql # not compatible
query II rowsort label-2758
SELECT DISTINCT 27 AS col0, 57 * + col0 + - - CAST ( NULL AS REAL ) - - 33 / + col1 AS col2 FROM tab2 WHERE NOT + col1 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2759
SELECT * FROM tab0 WHERE - col0 + + - col1 + - CAST( - 41 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-2759
SELECT * FROM tab0 WHERE - col0 + + - col1 + - CAST ( - 41 AS INTEGER ) IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE col2 - col2 / - col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-2761
SELECT + col1 DIV 65 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-2761
SELECT + col1 / 65 FROM tab0
----
0
0
1

query I rowsort
SELECT DISTINCT - col2 * 21 * - - col0 FROM tab1
----
-102816
-105315
-129948

query II rowsort
SELECT ALL - col0 AS col2, 41 FROM tab2 WHERE NOT - col2 IS NULL
----
-46
41
-64
41
-75
41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2764
SELECT CAST( CAST( NULL AS SIGNED ) AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2764
SELECT CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col0 * ( - + 6 ) FROM tab0
----
522
582
90

onlyif mysql # aggregate syntax: 
query II rowsort label-2766
SELECT 44 col2, - MAX( + ( + 87 ) ) AS col2 FROM tab0
----
44
-87

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2766
SELECT 44 col2, - MAX ( + ( + 87 ) ) AS col2 FROM tab0
----
44
-87

query I rowsort
SELECT ALL + ( + - col0 ) AS col0 FROM tab2 cor0
----
-46
-64
-75

query I rowsort
SELECT + 35 / + col2 + col1 AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) BETWEEN + + 73 AND + 35
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2769
SELECT ALL - 13 * - COUNT( * ) col2 FROM tab0 AS cor0
----
39

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2769
SELECT ALL - 13 * - COUNT ( * ) col2 FROM tab0 AS cor0
----
39

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - - 4 col2 FROM tab2 AS cor0
----
160
232
92

onlyif mysql # aggregate syntax: 
query II rowsort label-2771
SELECT + 14 col0, 44 + MAX( ALL - ( + ( + col0 ) ) ) AS col2 FROM tab0
----
14
29

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2771
SELECT + 14 col0, 44 + MAX ( ALL - ( + ( + col0 ) ) ) AS col2 FROM tab0
----
14
29

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 39 BETWEEN ( NULL ) AND + 70
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2773
SELECT ALL COUNT( DISTINCT - col0 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-2773
SELECT ALL COUNT ( DISTINCT - col0 ) FROM tab1
----
3

query I rowsort
SELECT ( - col2 ) * 4 AS col0 FROM tab2
----
-160
-232
-92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2775
SELECT + CAST( 22 AS SIGNED ) FROM tab0 WHERE NOT ( NOT - 90 IS NOT NULL )
----
22
22
22

skipif mysql # not compatible
query I rowsort label-2775
SELECT + CAST ( 22 AS INTEGER ) FROM tab0 WHERE NOT ( NOT - 90 IS NOT NULL )
----
22
22
22

query II rowsort
SELECT DISTINCT - col2 AS col1, ( col0 ) AS col2 FROM tab1
----
-59
85
-68
91
-96
51

query III rowsort
SELECT * FROM tab0 WHERE col1 + - 4 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2778
SELECT DISTINCT + MIN( - + 71 ) AS col2 FROM tab2
----
-71

skipif mysql # not compatible
query I rowsort label-2778
SELECT DISTINCT + MIN ( - + 71 ) AS col2 FROM tab2
----
-71

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 + - + ( - col2 ) col1 FROM tab0 AS cor0
----
198
20
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2780
SELECT DISTINCT + CAST( NULL AS SIGNED ) + - col0 AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2780
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + - col0 AS col1 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT col1 + - ( + - 44 ) - + - col1 AS col2 FROM tab0
----
206
46
86

query I rowsort
SELECT ALL + 4 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 6fec965b60b9885c4af73e85422cfd9b

onlyif mysql # DIV for integer division: 
query II rowsort label-2783
SELECT + 85 DIV + - 23, - col1 AS col2 FROM tab2
----
-3
-51
-3
-67
-3
-77

skipif mysql # not compatible
query II rowsort label-2783
SELECT + 85 / + - 23, - col1 AS col2 FROM tab2
----
-3
-51
-3
-67
-3
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2784
SELECT + 52 / CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2784
SELECT + 52 / CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col0 + + - col1 * + - col2 AS col1 FROM tab2 AS cor0
----
1219
3144
3961

query I rowsort
SELECT + col2 AS col2 FROM tab0 AS cor0 WHERE - col1 NOT BETWEEN + col1 + + - col0 AND + col1 + + col0
----
47

query I rowsort
SELECT + col2 - - + 89 + 87 * - col2 * col1 AS col0 FROM tab2 AS cor0
----
-101939
-267831
-337935

query I rowsort
SELECT - - 93 * + + 91 - col2 * + 69 FROM tab1 AS cor0
----
1839
3771
4392

onlyif mysql # DIV for integer division: 
query I rowsort label-2789
SELECT DISTINCT + ( - - col0 ) DIV - col1 + + col2 * - 30 FROM tab2 AS cor0
----
-1200
-1741
-690

skipif mysql # not compatible
query I rowsort label-2789
SELECT DISTINCT + ( - - col0 ) / - col1 + + col2 * - 30 FROM tab2 AS cor0
----
-1200
-1741
-690

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2790
SELECT DISTINCT COUNT( * ) - - CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2790
SELECT DISTINCT COUNT ( * ) - - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2791
SELECT DISTINCT * FROM tab1 WHERE NOT - CAST( + - col2 AS SIGNED ) * 2 + - col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-2791
SELECT DISTINCT * FROM tab1 WHERE NOT - CAST ( + - col2 AS INTEGER ) * 2 + - col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 AS col1, + col0 + - col0 * + col1 col2 FROM tab0
----
15
-1200
87
-1740
97
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2793
SELECT ALL + MIN( DISTINCT + ( + - CAST( NULL AS SIGNED ) ) ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2793
SELECT ALL + MIN ( DISTINCT + ( + - CAST ( NULL AS INTEGER ) ) ) AS col2 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2794
SELECT DISTINCT 96 DIV + MAX( - - col1 ) AS col2 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-2794
SELECT DISTINCT 96 / + MAX ( - - col1 ) AS col2 FROM tab2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2795
SELECT DISTINCT 37 + 36 - + COUNT( * ) * - + 35 FROM tab0 AS cor0
----
178

skipif mysql # not compatible
query I rowsort label-2795
SELECT DISTINCT 37 + 36 - + COUNT ( * ) * - + 35 FROM tab0 AS cor0
----
178

onlyif mysql # aggregate syntax: 
query I rowsort label-2796
SELECT + COUNT( ALL + 39 ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2796
SELECT + COUNT ( ALL + 39 ) AS col1 FROM tab1 AS cor0
----
3

query I rowsort
SELECT + 16 * + + col1 * + 82 FROM tab1 AS cor0
----
18368
61664
6560

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2798
SELECT 77 + + col2 AS col1, + CAST( - 56 AS SIGNED ) + + CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
124
NULL
176
NULL
87
NULL

skipif mysql # not compatible
query II rowsort label-2798
SELECT 77 + + col2 AS col1, + CAST ( - 56 AS INTEGER ) + + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
124
NULL
176
NULL
87
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2799
SELECT DISTINCT - + MIN( - col2 ) FROM tab1 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-2799
SELECT DISTINCT - + MIN ( - col2 ) FROM tab1 AS cor0
----
96

query I rowsort
SELECT - + col2 + - - col2 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2801
SELECT * FROM tab2 WHERE - + 39 / - 53 * - - col0 + - + CAST( NULL AS SIGNED ) + + - col2 IN ( col1 - - 5, 66 )
----

skipif mysql # not compatible
query III rowsort label-2801
SELECT * FROM tab2 WHERE - + 39 / - 53 * - - col0 + - + CAST ( NULL AS INTEGER ) + + - col2 IN ( col1 - - 5, 66 )
----

query I rowsort
SELECT ( - ( + - col0 ) ) AS col2 FROM tab0
----
15
87
97

query I rowsort
SELECT DISTINCT + 39 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col2 + + - col1 col1 FROM tab1 AS cor0
----
-110
-115
-64

query I rowsort
SELECT DISTINCT col2 * col0 - - 15 - col1 + 22 - + - col0 + - col1 AS col2 FROM tab0 AS cor0
----
595
952
9735

query I rowsort
SELECT DISTINCT + - 92 + + col0 * - col1 FROM tab2 AS cor0
----
-2438
-5020
-5117

query III rowsort
SELECT * FROM tab0 WHERE NULL BETWEEN NULL AND 88
----

query I rowsort
SELECT DISTINCT - ( 79 ) - + - col2 AS col0 FROM tab1
----
-11
-20
17

query I rowsort
SELECT col0 - + + 45 AS col0 FROM tab1
----
40
46
6

onlyif mysql # aggregate syntax: 
query I rowsort label-2810
SELECT + - COUNT( * ) col2 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2810
SELECT + - COUNT ( * ) col2 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
-9

query I rowsort
SELECT ALL + col0 * - col0 * col1 AS col0 FROM tab1
----
-36125
-36414
-389207

query I rowsort
SELECT DISTINCT - ( - 37 ) + col2 FROM tab0
----
136
47
84

onlyif mysql # aggregate syntax: 
query I rowsort label-2813
SELECT DISTINCT 98 + - COUNT( * ) FROM tab0 AS cor0
----
95

skipif mysql # not compatible
query I rowsort label-2813
SELECT DISTINCT 98 + - COUNT ( * ) FROM tab0 AS cor0
----
95

query I rowsort
SELECT ALL - - col2 + - - col0 FROM tab2 cor0 WHERE col2 IS NOT NULL
----
104
133
69

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 * - col1, col0 col0 FROM tab0 AS cor0
----
-210
87
-3807
15
-99
97

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 64 * + + 69 = col1 * + - col0 + + 61 + + 55 * + ( - ( + col2 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT DISTINCT + col0 AS col0, + col2 FROM tab0 AS cor0
----
15
47
87
10
97
99

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2818
SELECT ALL - - COUNT( DISTINCT + CAST( NULL AS DECIMAL ) ) col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2818
SELECT ALL - - COUNT ( DISTINCT + CAST ( NULL AS REAL ) ) col0 FROM tab0 AS cor0
----
0

query III rowsort
SELECT ALL * FROM tab0 WHERE col2 BETWEEN NULL AND ( - 14 / - - 46 * - + 62 )
----

query I rowsort
SELECT DISTINCT - 52 * - + 23 AS col0 FROM tab1
----
1196

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL BETWEEN NULL AND + col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2822
SELECT ALL - col0 DIV + 98 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2822
SELECT ALL - col0 / + 98 FROM tab0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2823
SELECT 83 col2 FROM tab0 WHERE NOT + CAST( + + col1 AS SIGNED ) <> - col1
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2823
SELECT 83 col2 FROM tab0 WHERE NOT + CAST ( + + col1 AS INTEGER ) <> - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2824
SELECT DISTINCT 1 * + + COUNT( * ) AS col1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-2824
SELECT DISTINCT 1 * + + COUNT ( * ) AS col1 FROM tab1
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2825
SELECT ALL 19 / - - CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2825
SELECT ALL 19 / - - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT - 43 AS col0, - 31 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-43
-31

query I rowsort
SELECT ALL col0 * col1 AS col2 FROM tab1 AS cor0 WHERE col2 * + col2 BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT 45 AS col2 FROM tab2 AS cor0 WHERE col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2829
SELECT DISTINCT + + MIN( - 2 ) AS col0 FROM tab0 AS cor0
----
-2

skipif mysql # not compatible
query I rowsort label-2829
SELECT DISTINCT + + MIN ( - 2 ) AS col0 FROM tab0 AS cor0
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2830
SELECT + SUM( - CAST( NULL AS SIGNED ) ) AS col0 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2830
SELECT + SUM ( - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab2 cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2831
SELECT ALL 9 + 11 * col0 DIV - - col1 AS col1 FROM tab1 cor0
----
196
30
49

skipif mysql # not compatible
query I rowsort label-2831
SELECT ALL 9 + 11 * col0 / - - col1 AS col1 FROM tab1 cor0
----
196
30
49

onlyif mysql # DIV for integer division: 
query I rowsort label-2832
SELECT col1 DIV - + 98 * + 74 AS col2 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2832
SELECT col1 / - + 98 * + 74 AS col2 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2833
SELECT - + 9 * - + COUNT( 2 ) AS col2 FROM tab2 AS cor0
----
27

skipif mysql # not compatible
query I rowsort label-2833
SELECT - + 9 * - + COUNT ( 2 ) AS col2 FROM tab2 AS cor0
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-2834
SELECT + MAX( DISTINCT - - col1 ) AS col0 FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-2834
SELECT + MAX ( DISTINCT - - col1 ) AS col0 FROM tab1 AS cor0
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-2835
SELECT + 73 * COUNT( * ) FROM tab2
----
219

skipif mysql # not compatible
query I rowsort label-2835
SELECT + 73 * COUNT ( * ) FROM tab2
----
219

query II rowsort
SELECT DISTINCT ( col1 ), col1 FROM tab1
----
14
14
47
47
5
5

onlyif mysql # aggregate syntax: 
query I rowsort label-2837
SELECT ALL + SUM( ALL + col1 ) FROM tab0
----
103

skipif mysql # not compatible
query I rowsort label-2837
SELECT ALL + SUM ( ALL + col1 ) FROM tab0
----
103

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2838
SELECT * FROM tab1 WHERE CAST( NULL AS SIGNED ) IS NOT NULL OR - col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-2838
SELECT * FROM tab1 WHERE CAST ( NULL AS INTEGER ) IS NOT NULL OR - col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT ALL ( col1 ) AS col0, + col2 AS col1 FROM tab0
----
1
99
21
10
81
47

query III rowsort
SELECT * FROM tab0 WHERE + 65 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2841
SELECT DISTINCT - COUNT( * ) + + COUNT( * ) AS col2 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2841
SELECT DISTINCT - COUNT ( * ) + + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2842
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( + col2 ) NOT BETWEEN CAST( NULL AS SIGNED ) AND - 9
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-2842
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( + col2 ) NOT BETWEEN CAST ( NULL AS INTEGER ) AND - 9
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2843
SELECT ALL + + COUNT( * ) - + COUNT( * ) * MIN( DISTINCT + col2 ) FROM tab1 AS cor0
----
-174

skipif mysql # not compatible
query I rowsort label-2843
SELECT ALL + + COUNT ( * ) - + COUNT ( * ) * MIN ( DISTINCT + col2 ) FROM tab1 AS cor0
----
-174

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2844
SELECT ALL + 8, CAST( col1 AS SIGNED ) FROM tab2 AS cor0 WHERE NOT NULL >= col1 * + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query II rowsort label-2844
SELECT ALL + 8, CAST ( col1 AS INTEGER ) FROM tab2 AS cor0 WHERE NOT NULL >= col1 * + CAST ( NULL AS INTEGER )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2845
SELECT + col2 + - - col1 FROM tab1 AS cor0 WHERE col2 + - + CAST( + col0 AS SIGNED ) BETWEEN - + CAST( + - col2 AS SIGNED ) * 28 + + + col1 AND NULL
----

skipif mysql # not compatible
query I rowsort label-2845
SELECT + col2 + - - col1 FROM tab1 AS cor0 WHERE col2 + - + CAST ( + col0 AS INTEGER ) BETWEEN - + CAST ( + - col2 AS INTEGER ) * 28 + + + col1 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2846
SELECT DISTINCT - COUNT( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-2846
SELECT DISTINCT - COUNT ( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

query II rowsort
SELECT 75 * - col2 - + col1 AS col1, + 5 AS col1 FROM tab2
----
-1776
5
-3077
5
-4417
5

onlyif mysql # aggregate syntax: 
query I rowsort label-2848
SELECT COUNT( * ) * + COUNT( * ) * 80 * + 36 AS col0 FROM tab2 AS cor0
----
25920

skipif mysql # not compatible
query I rowsort label-2848
SELECT COUNT ( * ) * + COUNT ( * ) * 80 * + 36 AS col0 FROM tab2 AS cor0
----
25920

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2849
SELECT * FROM tab1 AS cor0 WHERE NOT - col1 BETWEEN + CAST( NULL AS SIGNED ) AND 41 + col1 * - col2 * - col0 / + - 36
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-2849
SELECT * FROM tab1 AS cor0 WHERE NOT - col1 BETWEEN + CAST ( NULL AS INTEGER ) AND 41 + col1 * - col2 * - col0 / + - 36
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2850
SELECT MIN( DISTINCT - + 81 ) * - 45 AS col2 FROM tab1 AS cor0
----
3645

skipif mysql # not compatible
query I rowsort label-2850
SELECT MIN ( DISTINCT - + 81 ) * - 45 AS col2 FROM tab1 AS cor0
----
3645

query I rowsort
SELECT DISTINCT - - col2 * - - col1 FROM tab1 AS cor0
----
1344
295
3196

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2852
SELECT 22, - CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
22
NULL
22
NULL
22
NULL

skipif mysql # not compatible
query II rowsort label-2852
SELECT 22, - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
22
NULL
22
NULL
22
NULL

query I rowsort
SELECT ALL col0 FROM tab0 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT col0 AS col2, col1 AS col2 FROM tab1
----
51
14
85
5
91
47

onlyif mysql # aggregate syntax: 
query I rowsort label-2855
SELECT + MIN( DISTINCT + 85 ) AS col0 FROM tab0
----
85

skipif mysql # not compatible
query I rowsort label-2855
SELECT + MIN ( DISTINCT + 85 ) AS col0 FROM tab0
----
85

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2856
SELECT ALL + 64 DIV - - COUNT( * ) FROM tab2
----
21

skipif mysql # not compatible
query I rowsort label-2856
SELECT ALL + 64 / - - COUNT ( * ) FROM tab2
----
21

query II rowsort
SELECT - - col0, + col0 FROM tab1 AS cor0
----
51
51
85
85
91
91

query I rowsort
SELECT col0 * - ( - - 70 ) AS col1 FROM tab2 cor0
----
-3220
-4480
-5250

onlyif mysql # aggregate syntax: 
query II rowsort label-2859
SELECT - COUNT( * ) AS col0, + 50 FROM tab2 AS cor0
----
-3
50

skipif mysql # not compatible
query II rowsort label-2859
SELECT - COUNT ( * ) AS col0, + 50 FROM tab2 AS cor0
----
-3
50

query I rowsort
SELECT DISTINCT - col1 * - - col2 AS col2 FROM tab0 cor0
----
-210
-3807
-99

query I rowsort
SELECT DISTINCT + col0 FROM tab2 cor0 WHERE NOT col2 BETWEEN + 79 AND + 86
----
46
64
75

query III rowsort
SELECT * FROM tab1 WHERE NOT + col1 * - 24 BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT 42 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2864
SELECT - SUM( DISTINCT col1 ) AS col1 FROM tab1
----
-66

skipif mysql # not compatible
query I rowsort label-2864
SELECT - SUM ( DISTINCT col1 ) AS col1 FROM tab1
----
-66

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col0 <= - 44
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2866
SELECT DISTINCT - col1 DIV col1 + col0 - + 50 * + col0 AS col1 FROM tab0 cor0
----
-4264
-4754
-736

skipif mysql # not compatible
query I rowsort label-2866
SELECT DISTINCT - col1 / col1 + col0 - + 50 * + col0 AS col1 FROM tab0 cor0
----
-4264
-4754
-736

query I rowsort
SELECT + + col1 + 24 AS col2 FROM tab2 AS cor0
----
101
75
91

query I rowsort
SELECT + 61 + + + col2 AS col0 FROM tab0 AS cor0
----
108
160
71

query I rowsort
SELECT ALL - + col1 + + col1 AS col0 FROM tab0 AS cor0
----
0
0
0

query III rowsort
SELECT * FROM tab0 WHERE 13 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - 22 * + ( ( + col2 ) ) * 33 AS col0 FROM tab2
----
-16698
-29040
-42108

query I rowsort
SELECT ALL - col0 + 86 FROM tab1 AS cor0
----
-5
1
35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2873
SELECT ALL ( col2 ) + CAST( col0 AS SIGNED ) AS col0 FROM tab0 WHERE ( 83 ) = - 9 + 7
----

skipif mysql # not compatible
query I rowsort label-2873
SELECT ALL ( col2 ) + CAST ( col0 AS INTEGER ) AS col0 FROM tab0 WHERE ( 83 ) = - 9 + 7
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2874
SELECT + COUNT( + 72 ) * COUNT( * ) AS col0 FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-2874
SELECT + COUNT ( + 72 ) * COUNT ( * ) AS col0 FROM tab2
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2875
SELECT DISTINCT + col1 FROM tab1 WHERE col1 * + col1 + col2 BETWEEN - col1 AND + CAST( NULL AS SIGNED ) + col1
----

skipif mysql # not compatible
query I rowsort label-2875
SELECT DISTINCT + col1 FROM tab1 WHERE col1 * + col1 + col2 BETWEEN - col1 AND + CAST ( NULL AS INTEGER ) + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2876
SELECT + MIN( DISTINCT 38 ) FROM tab2
----
38

skipif mysql # not compatible
query I rowsort label-2876
SELECT + MIN ( DISTINCT 38 ) FROM tab2
----
38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + 64 col0 FROM tab1 WHERE NOT ( - col0 ) IS NULL
----
115
149
155

query I rowsort
SELECT DISTINCT 59 * col0 - + 18 FROM tab1 WHERE NOT NULL IN ( + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2879
SELECT - MIN( ALL - col1 ) * + 39 + - 63 AS col0 FROM tab0
----
3096

skipif mysql # not compatible
query I rowsort label-2879
SELECT - MIN ( ALL - col1 ) * + 39 + - 63 AS col0 FROM tab0
----
3096

query III rowsort
SELECT * FROM tab0 WHERE NOT ( 24 + + 10 ) IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + 62 + - 20 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - 23 AS col2 FROM tab0
----
-23

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + 35 - col0 IS NOT NULL
----

query I rowsort
SELECT ALL - col2 * + col1 FROM tab2 WHERE NOT ( - 94 ) <= - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2885
SELECT ALL 39 - COUNT( * ) FROM tab0
----
36

skipif mysql # not compatible
query I rowsort label-2885
SELECT ALL 39 - COUNT ( * ) FROM tab0
----
36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2886
SELECT - CAST( 44 AS SIGNED ) + - col0 FROM tab2
----
-108
-119
-90

skipif mysql # not compatible
query I rowsort label-2886
SELECT - CAST ( 44 AS INTEGER ) + - col0 FROM tab2
----
-108
-119
-90

query I rowsort
SELECT ALL ( - 52 ) * + 17 - col2 AS col2 FROM tab0
----
-894
-931
-983

query I rowsort
SELECT ALL ( + ( + col0 ) ) AS col1 FROM tab2
----
46
64
75

query III rowsort
SELECT * FROM tab2 WHERE NOT ( + col0 ) BETWEEN ( NULL ) AND ( NULL )
----

query I rowsort
SELECT - col1 * col2 FROM tab0 WHERE col2 BETWEEN - col0 AND col0 + + col1
----
-210
-3807

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2891
SELECT * FROM tab2 WHERE ( + CAST( NULL AS SIGNED ) ) NOT BETWEEN - col1 * 12 AND - 63
----

skipif mysql # not compatible
query III rowsort label-2891
SELECT * FROM tab2 WHERE ( + CAST ( NULL AS INTEGER ) ) NOT BETWEEN - col1 * 12 AND - 63
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2892
SELECT MAX( DISTINCT col2 ) AS col1 FROM tab1
----
96

skipif mysql # not compatible
query I rowsort label-2892
SELECT MAX ( DISTINCT col2 ) AS col1 FROM tab1
----
96

query I rowsort
SELECT ALL 40 - + 14 AS col1 FROM tab2 WHERE NULL IN ( - ( - col2 ) + col2 )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL IN ( - ( - col2 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2895
SELECT - COUNT( * ) + - 32 FROM tab2
----
-35

skipif mysql # not compatible
query I rowsort label-2895
SELECT - COUNT ( * ) + - 32 FROM tab2
----
-35

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + ( + col1 ) col1 FROM tab0
----
0
0
0

query I rowsort
SELECT DISTINCT col0 + 66 FROM tab1
----
117
151
157

onlyif mysql # aggregate syntax: 
query I rowsort label-2898
SELECT DISTINCT COUNT( col0 ) AS col1 FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-2898
SELECT DISTINCT COUNT ( col0 ) AS col1 FROM tab1 cor0
----
3

query I rowsort
SELECT ALL 93 * col2 AS col1 FROM tab2 AS cor0
----
2139
3720
5394

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2900
SELECT DISTINCT CAST( NULL AS DECIMAL ) * - 90 AS col2 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2900
SELECT DISTINCT CAST ( NULL AS REAL ) * - 90 AS col2 FROM tab0 cor0
----
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL IN ( - col2 * - col2 )
----

query I rowsort
SELECT 54 FROM tab2 cor0 WHERE NOT + col0 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2903
SELECT ALL 23 DIV + col2 + col1 FROM tab2 AS cor0
----
52
67
77

skipif mysql # not compatible
query I rowsort label-2903
SELECT ALL 23 / + col2 + col1 FROM tab2 AS cor0
----
52
67
77

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( 21 + + col0 ) <= ( 60 + + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2905
SELECT DISTINCT COUNT( * ) FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2905
SELECT DISTINCT COUNT ( * ) FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 47 col0 FROM tab1 AS cor0 WHERE NOT ( col0 ) IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col0 > ( col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2908
SELECT + CAST( - 72 AS SIGNED ) + col0 FROM tab1
----
-21
13
19

skipif mysql # not compatible
query I rowsort label-2908
SELECT + CAST ( - 72 AS INTEGER ) + col0 FROM tab1
----
-21
13
19

query I rowsort
SELECT DISTINCT + col0 FROM tab0 WHERE ( col0 * col1 ) > NULL
----

query I rowsort
SELECT ALL - ( 97 ) + - col2 * + col0 FROM tab1
----
-4993
-5112
-6285

query I rowsort
SELECT DISTINCT col2 + - col0 * + col2 FROM tab2 AS cor0
----
-1035
-2520
-4292

query I rowsort
SELECT DISTINCT 60 + col0 FROM tab0 cor0
----
147
157
75

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL BETWEEN 22 * col2 AND - col1
----

query I rowsort
SELECT + col1 * 89 FROM tab0 AS cor0 WHERE 57 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2915
SELECT DISTINCT + col0 * - col2 FROM tab2 AS cor0 WHERE + col0 <= - CAST( NULL AS SIGNED ) * col1 + - 2
----

skipif mysql # not compatible
query I rowsort label-2915
SELECT DISTINCT + col0 * - col2 FROM tab2 AS cor0 WHERE + col0 <= - CAST ( NULL AS INTEGER ) * col1 + - 2
----

query I rowsort
SELECT 89 * - 49 FROM tab1 AS cor0
----
-4361
-4361
-4361

query I rowsort
SELECT + + 24 AS col2 FROM tab1 AS cor0
----
24
24
24

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT - col0 > col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2919
SELECT + 66 - - - COUNT( * ) FROM tab1
----
63

skipif mysql # not compatible
query I rowsort label-2919
SELECT + 66 - - - COUNT ( * ) FROM tab1
----
63

query I rowsort
SELECT ALL col0 + - 36 AS col1 FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2921
SELECT DISTINCT COUNT( DISTINCT col2 ) col0 FROM tab0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2921
SELECT DISTINCT COUNT ( DISTINCT col2 ) col0 FROM tab0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2922
SELECT DISTINCT - col2 AS col1 FROM tab1 WHERE NOT + col0 IN ( col2 / - CAST( + ( col0 ) AS SIGNED ) + col2 )
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-2922
SELECT DISTINCT - col2 AS col1 FROM tab1 WHERE NOT + col0 IN ( col2 / - CAST ( + ( col0 ) AS INTEGER ) + col2 )
----
-59
-68
-96

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2923
SELECT ALL * FROM tab2 WHERE NOT ( col1 ) NOT IN ( 77 * CAST( NULL AS SIGNED ) - + col0 )
----

skipif mysql # not compatible
query III rowsort label-2923
SELECT ALL * FROM tab2 WHERE NOT ( col1 ) NOT IN ( 77 * CAST ( NULL AS INTEGER ) - + col0 )
----

query I rowsort
SELECT col1 + + ( - col2 ) * - col1 AS col2 FROM tab0
----
100
231
3888

query I rowsort
SELECT - col2 * - col1 + col2 AS col2 FROM tab2
----
1196
3120
3944

query III rowsort
SELECT * FROM tab2 WHERE NOT ( + col1 ) IN ( ( col1 ) ) OR NULL IS NOT NULL
----

query I rowsort
SELECT col1 * - - col2 + 71 * + col0 FROM tab0
----
4872
6387
6986

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( + ( col1 ) + + 70 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2929
SELECT ALL 12 * - COUNT( * ) FROM tab1
----
-36

skipif mysql # not compatible
query I rowsort label-2929
SELECT ALL 12 * - COUNT ( * ) FROM tab1
----
-36

query I rowsort
SELECT col1 AS col1 FROM tab1 WHERE NULL BETWEEN 77 AND 33
----

query I rowsort
SELECT ALL + 55 FROM tab1 WHERE NOT 60 - col1 * 43 IN ( - col2 )
----
55
55
55

query I rowsort
SELECT 28 + col2 + col0 FROM tab1
----
172
175
187

query I rowsort
SELECT ALL 89 * - 59 AS col1 FROM tab0 WHERE NOT col2 / - col0 + - 20 <= ( - col0 )
----
-5251
-5251

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col2 <> + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ( - + col1 ) + col1 FROM tab0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2936
SELECT - col0 + + 21 + + 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-2936
SELECT - col0 + + 21 + + CAST ( NULL AS INTEGER ) col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2937
SELECT DISTINCT + 48 DIV - col2 + - col1 * col1 col0 FROM tab2 AS cor0
----
-2603
-4489
-5930

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2937
SELECT DISTINCT + 48 / - col2 + - col1 * col1 col0 FROM tab2 AS cor0
----
-2603
-4489
-5930

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2938
SELECT - 0 DIV - + MIN( col1 ) AS col2 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2938
SELECT - 0 / - + MIN ( col1 ) AS col2 FROM tab0 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2939
SELECT ALL COUNT( * ) AS col0 FROM tab0 cor0 WHERE + col2 = col0 + - 4 * + 51
----
0

skipif mysql # not compatible
query I rowsort label-2939
SELECT ALL COUNT ( * ) AS col0 FROM tab0 cor0 WHERE + col2 = col0 + - 4 * + 51
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2940
SELECT DISTINCT MIN( ALL - col1 ) AS col1 FROM tab1
----
-47

skipif mysql # not compatible
query I rowsort label-2940
SELECT DISTINCT MIN ( ALL - col1 ) AS col1 FROM tab1
----
-47

query I rowsort
SELECT - 62 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to f0e93f6ff5fc3cf50a14e276206dad5c

onlyif mysql # aggregate syntax: 
query I rowsort label-2942
SELECT DISTINCT - COUNT( * ) + ( 49 ) AS col1 FROM tab0 WHERE NOT 67 IS NOT NULL
----
49

skipif mysql # not compatible
query I rowsort label-2942
SELECT DISTINCT - COUNT ( * ) + ( 49 ) AS col1 FROM tab0 WHERE NOT 67 IS NOT NULL
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-2943
SELECT DISTINCT - COUNT( * ) FROM tab2 WHERE NOT ( NULL ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2943
SELECT DISTINCT - COUNT ( * ) FROM tab2 WHERE NOT ( NULL ) IS NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2944
SELECT DISTINCT + 18 / + 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-2944
SELECT DISTINCT + 18 / + CAST ( NULL AS INTEGER ) col2 FROM tab1
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL < - ( + col0 ) * - 0
----

query I rowsort
SELECT ALL + col1 FROM tab0 AS cor0 WHERE NOT col1 + + 95 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT - col2 FROM tab1 AS cor0 WHERE NOT NULL IN ( col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2948
SELECT DISTINCT - - COUNT( + col1 ) col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2948
SELECT DISTINCT - - COUNT ( + col1 ) col0 FROM tab0 AS cor0
----
3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( - 22 ) BETWEEN NULL AND + col0
----

query II rowsort
SELECT col2, + col1 FROM tab2 AS cor0
----
23
51
40
77
58
67

query I rowsort
SELECT + 37 * col2 AS col2 FROM tab2 AS cor0
----
1480
2146
851

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * + 70 col2 FROM tab0 AS cor0
----
-3290
-6930
-700

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 69 col0 FROM tab2 AS cor0
----
-69
-69
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-2954
SELECT DISTINCT - COUNT( * ) + - 98 AS col2 FROM tab0 AS cor0 WHERE 38 IS NOT NULL
----
-101

skipif mysql # not compatible
query I rowsort label-2954
SELECT DISTINCT - COUNT ( * ) + - 98 AS col2 FROM tab0 AS cor0 WHERE 38 IS NOT NULL
----
-101

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 84 col1 FROM tab2 AS cor0
----
84
84
84

query I rowsort
SELECT ALL col1 * col0 FROM tab2 WHERE NOT ( - 44 ) IS NULL
----
2346
4928
5025

onlyif mysql # aggregate syntax: 
query I rowsort label-2957
SELECT + SUM( - ( - col1 ) ) AS col2 FROM tab1
----
66

skipif mysql # not compatible
query I rowsort label-2957
SELECT + SUM ( - ( - col1 ) ) AS col2 FROM tab1
----
66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2958
SELECT col2 - 62 col2 FROM tab2 WHERE NOT - col0 + - CAST( NULL AS SIGNED ) < col2 + col2
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2958
SELECT col2 - 62 col2 FROM tab2 WHERE NOT - col0 + - CAST ( NULL AS INTEGER ) < col2 + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2959
SELECT DISTINCT 91 + - - COUNT( * ) FROM tab0 AS cor0
----
94

skipif mysql # not compatible
query I rowsort label-2959
SELECT DISTINCT 91 + - - COUNT ( * ) FROM tab0 AS cor0
----
94

onlyif mysql # DIV for integer division: 
query I rowsort label-2960
SELECT + col0 * - + col2 + + 71 DIV + - 78 FROM tab2 AS cor0
----
-1058
-2560
-4350

skipif mysql # not compatible
query I rowsort label-2960
SELECT + col0 * - + col2 + + 71 / + - 78 FROM tab2 AS cor0
----
-1058
-2560
-4350

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col0 / + 26 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2962
SELECT ALL + - ( - 85 ) + - COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
76

skipif mysql # not compatible
query I rowsort label-2962
SELECT ALL + - ( - 85 ) + - COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
76

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2963
SELECT DISTINCT + - CAST( NULL AS SIGNED ) AS col1, 93 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL
93

skipif mysql # not compatible
query II rowsort label-2963
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) AS col1, 93 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL
93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 6 + col1 col1 FROM tab0
----
27
7
87

query I rowsort
SELECT - 11 + + 52 + - col1 FROM tab2
----
-10
-26
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-2966
SELECT DISTINCT - 97 * + - SUM( ALL col0 ) * - 3 FROM tab0
----
-57909

skipif mysql # not compatible
query I rowsort label-2966
SELECT DISTINCT - 97 * + - SUM ( ALL col0 ) * - 3 FROM tab0
----
-57909

query I rowsort
SELECT ALL - 80 + + col0 * - col1 AS col1 FROM tab2 AS cor0
----
-2426
-5008
-5105

query I rowsort
SELECT ALL + 93 * + col2 + - 0 + col0 + - col2 * col2 FROM tab0 AS cor0
----
-497
2177
917

query I rowsort
SELECT DISTINCT + col0 + + + 49 + - col1 * - 22 * col2 FROM tab2 AS cor0
----
25901
67873
85616

query I rowsort
SELECT 58 + - - 49 AS col1 FROM tab1 AS cor0
----
107
107
107

onlyif mysql # DIV for integer division: 
query I rowsort label-2971
SELECT DISTINCT col2 + + col1 + - + col2 DIV col0 * + col0 FROM tab1 AS cor0
----
115
59
64

skipif mysql # not compatible
query I rowsort label-2971
SELECT DISTINCT col2 + + col1 + - + col2 / col0 * + col0 FROM tab1 AS cor0
----
115
59
64

query I rowsort
SELECT col2 + 58 AS col1 FROM tab0 AS cor0
----
105
157
68

query I rowsort
SELECT ALL 14 + - col1 FROM tab1 cor0
----
-33
0
9

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 37 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - 78 - col0 FROM tab2 cor0
----
-124
-142
-153

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 col0 FROM tab0 AS cor0 WHERE ( col0 + - - col2 + col0 ) = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2977
SELECT COUNT( - col2 ) * 94 FROM tab0
----
282

skipif mysql # not compatible
query I rowsort label-2977
SELECT COUNT ( - col2 ) * 94 FROM tab0
----
282

query I rowsort
SELECT DISTINCT - 13 * col2 AS col1 FROM tab0
----
-1287
-130
-611

query I rowsort
SELECT DISTINCT 98 - col0 AS col2 FROM tab1
----
13
47
7

query I rowsort
SELECT col1 * 44 FROM tab0
----
3564
44
924

query I rowsort
SELECT ALL + col2 FROM tab2 WHERE NOT ( NOT col0 IS NOT NULL )
----
23
40
58

query I rowsort
SELECT DISTINCT + 86 * - col0 AS col2 FROM tab2
----
-3956
-5504
-6450

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2983
SELECT CAST( + 33 AS SIGNED ) * + col1 * col0 + + - CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2983
SELECT CAST ( + 33 AS INTEGER ) * + col1 * col0 + + - CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2984
SELECT MIN( - col0 ) AS col0 FROM tab2
----
-75

skipif mysql # not compatible
query I rowsort label-2984
SELECT MIN ( - col0 ) AS col0 FROM tab2
----
-75

query I rowsort
SELECT DISTINCT col1 + 90 * col2 FROM tab1 WHERE NOT ( NOT - col0 * + + col0 IS NULL )
----

query I rowsort
SELECT DISTINCT col2 + - 79 AS col1 FROM tab1
----
-11
-20
17

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 col2 FROM tab1 WHERE NOT NULL < NULL
----

query I rowsort
SELECT DISTINCT + col0 * 86 AS col0 FROM tab0 AS cor0
----
1290
7482
8342

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2989
SELECT ALL + COUNT( * ) DIV COUNT( * ) AS col1 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-2989
SELECT ALL + COUNT ( * ) / COUNT ( * ) AS col1 FROM tab2 AS cor0
----
1

query I rowsort
SELECT 37 AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT col2 * - ( + + col2 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2992
SELECT + COUNT( * ) + SUM( DISTINCT col0 + col0 ) AS col1 FROM tab1 AS cor0 WHERE NOT ( NOT ( col1 - 43 ) NOT IN ( col2 + - col0 ) )
----
457

skipif mysql # not compatible
query I rowsort label-2992
SELECT + COUNT ( * ) + SUM ( DISTINCT col0 + col0 ) AS col1 FROM tab1 AS cor0 WHERE NOT ( NOT ( col1 - 43 ) NOT IN ( col2 + - col0 ) )
----
457

onlyif mysql # aggregate syntax: 
query I rowsort label-2993
SELECT ALL 98 + COUNT( ALL + col2 ) FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND ( col1 )
----
98

skipif mysql # not compatible
query I rowsort label-2993
SELECT ALL 98 + COUNT ( ALL + col2 ) FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND ( col1 )
----
98

query I rowsort
SELECT + 75 FROM tab1 WHERE NOT NULL <= NULL
----

query I rowsort
SELECT ( - + 68 ) FROM tab2
----
-68
-68
-68

query III rowsort
SELECT * FROM tab1 WHERE NOT + - 33 > col2 + - 98 - - 88 / 5 + 18 + + col2 * 89
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2997
SELECT ALL + COUNT( DISTINCT 49 ) AS col2 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-2997
SELECT ALL + COUNT ( DISTINCT 49 ) AS col2 FROM tab0
----
1

query II rowsort
SELECT col2 AS col1, col0 AS col1 FROM tab2
----
23
46
40
64
58
75

query I rowsort
SELECT ALL col2 FROM tab2 WHERE NULL <> NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3000
SELECT ALL COUNT( * ) AS col2, + COUNT( DISTINCT + + col2 ) AS col2 FROM tab2
----
3
3

skipif mysql # not compatible
query II rowsort label-3000
SELECT ALL COUNT ( * ) AS col2, + COUNT ( DISTINCT + + col2 ) AS col2 FROM tab2
----
3
3

query II rowsort
SELECT + + col0, + 14 AS col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
46
14
64
14
75
14

query I rowsort
SELECT ALL ( ( col2 ) ) FROM tab1 AS cor0
----
59
68
96

query I rowsort
SELECT - col0 + + + 8 AS col2 FROM tab2 AS cor0
----
-38
-56
-67

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 > + col1
----

query II rowsort
SELECT + col1 + col1 AS col2, - 1 FROM tab1
----
10
-1
28
-1
94
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3006
SELECT col0 FROM tab1 WHERE ( NOT ( - col1 * ( - col2 ) ) NOT IN ( + col1 * 67 * - - CAST( NULL AS SIGNED ) ) )
----

skipif mysql # not compatible
query I rowsort label-3006
SELECT col0 FROM tab1 WHERE ( NOT ( - col1 * ( - col2 ) ) NOT IN ( + col1 * 67 * - - CAST ( NULL AS INTEGER ) ) )
----

query I rowsort
SELECT ALL col2 AS col1 FROM tab2 WHERE - 54 - + col2 + - col2 IS NULL
----

query I rowsort
SELECT DISTINCT - col0 AS col1 FROM tab1 WHERE + 83 * - 48 + ( + col2 ) IS NULL
----

query I rowsort
SELECT ALL 26 * - col1 + - - 84 AS col0 FROM tab1 AS cor0
----
-1138
-280
-46

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col0 * - + col0 * 51 * + ( + 55 ) * - 25 - + 51 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3011
SELECT - COUNT( * ) AS col1 FROM tab2 cor0 WHERE + 67 * + 53 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-3011
SELECT - COUNT ( * ) AS col1 FROM tab2 cor0 WHERE + 67 * + 53 IS NOT NULL
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3012
SELECT ALL 1 - - - COUNT( * ) FROM tab2 AS cor0
----
-2

skipif mysql # not compatible
query I rowsort label-3012
SELECT ALL 1 - - - COUNT ( * ) FROM tab2 AS cor0
----
-2

query I rowsort
SELECT ALL - - col1 - - 0 + + col0 AS col0 FROM tab1 AS cor0
----
138
65
90

onlyif mysql # aggregate syntax: 
query I rowsort label-3014
SELECT COUNT( * ) - + 31 + ( + - 67 ) FROM tab0 AS cor0
----
-95

skipif mysql # not compatible
query I rowsort label-3014
SELECT COUNT ( * ) - + 31 + ( + - 67 ) FROM tab0 AS cor0
----
-95

query I rowsort
SELECT + - col0 * + - ( + + col2 ) - col1 AS col2 FROM tab0 cor0
----
624
849
9602

query I rowsort
SELECT + col0 - - - 36 - + 35 * - 2 FROM tab2 AS cor0
----
109
80
98

query I rowsort
SELECT DISTINCT ( + 5 ) - col0 FROM tab2
----
-41
-59
-70

query I rowsort
SELECT col2 * + - 69 + + col2 FROM tab2
----
-1564
-2720
-3944

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 7 * + + 71 col0 FROM tab1
----
497
497
497

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3020
SELECT ALL + 26 - CAST( + 2 AS SIGNED ) FROM tab1
----
24
24
24

skipif mysql # not compatible
query I rowsort label-3020
SELECT ALL + 26 - CAST ( + 2 AS INTEGER ) FROM tab1
----
24
24
24

onlyif mysql # aggregate syntax: 
query I rowsort label-3021
SELECT ALL + MIN( + + col0 ) FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-3021
SELECT ALL + MIN ( + + col0 ) FROM tab0
----
15

query I rowsort
SELECT - col0 * - 15 FROM tab0
----
1305
1455
225

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NOT + 78 - - ( - 36 ) + + - 27 IS NULL )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + 80 IS NULL
----

query I rowsort
SELECT ( - col1 ) FROM tab0 AS cor0 WHERE NOT ( ( col2 * - 54 * + - col0 + + col2 + - col0 + ( + col1 ) * col1 * - col1 ) IS NOT NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3026
SELECT ALL + CAST( col2 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
23
40
58

skipif mysql # not compatible
query I rowsort label-3026
SELECT ALL + CAST ( col2 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
23
40
58

query I rowsort
SELECT DISTINCT - col0 * - + ( col2 ) AS col2 FROM tab2 AS cor0
----
1058
2560
4350

query I rowsort
SELECT ALL - col0 AS col2 FROM tab1 cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT 55 * col1 * + + col0 AS col0 FROM tab1
----
23375
235235
39270

onlyif mysql # aggregate syntax: 
query I rowsort label-3030
SELECT ALL + MIN( 34 ) col2 FROM tab0
----
34

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3030
SELECT ALL + MIN ( 34 ) col2 FROM tab0
----
34

onlyif mysql # aggregate syntax: 
query II rowsort label-3031
SELECT + 12 AS col0, COUNT( * ) * - COUNT( * ) AS col0 FROM tab0 AS cor0
----
12
-9

skipif mysql # not compatible
query II rowsort label-3031
SELECT + 12 AS col0, COUNT ( * ) * - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
12
-9

query I rowsort
SELECT + ( + + col2 ) * - + 29 FROM tab2 AS cor0
----
-1160
-1682
-667

query II rowsort
SELECT - col0 AS col1, col1 AS col1 FROM tab2 AS cor0
----
-46
51
-64
77
-75
67

onlyif mysql # aggregate syntax: 
query I rowsort label-3034
SELECT DISTINCT - - COUNT( * ) * COUNT( * ) FROM tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-3034
SELECT DISTINCT - - COUNT ( * ) * COUNT ( * ) FROM tab0 AS cor0
----
9

query I rowsort
SELECT - col0 + - - ( col1 ) FROM tab1 AS cor0
----
-37
-44
-80

query I rowsort
SELECT 67 * + col1 FROM tab2 WHERE NOT NULL IN ( col1 )
----

query I rowsort
SELECT - col2 + - 64 + - + col2 - - - col0 + - + 80 * + 46 FROM tab2
----
-3836
-3888
-3935

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 31 + - - col1 + col1 col2 FROM tab0
----
193
33
73

query I rowsort
SELECT ALL ( 52 ) + + col0 AS col2 FROM tab2
----
116
127
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - col2 ) col0 FROM tab1 WHERE 94 IS NOT NULL
----
-59
-68
-96

onlyif mysql # DIV for integer division: 
query I rowsort label-3041
SELECT DISTINCT + 24 DIV col0 * col1 AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-3041
SELECT DISTINCT + 24 / col0 * col1 AS col2 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3042
SELECT - MAX( ALL + col2 ) FROM tab0 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-3042
SELECT - MAX ( ALL + col2 ) FROM tab0 AS cor0
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-3043
SELECT DISTINCT - COUNT( - col2 ) AS col2 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3043
SELECT DISTINCT - COUNT ( - col2 ) AS col2 FROM tab1 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3044
SELECT ALL - MAX( ALL - col1 ) FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-3044
SELECT ALL - MAX ( ALL - col1 ) FROM tab2
----
51

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE ( col2 ) * col1 - + + col0 + - - col1 NOT IN ( - 49, 6 + - 44, - 85 * col2 + + col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3046
SELECT DISTINCT col2, - col2 FROM tab0 AS cor0 WHERE - col2 = ( - + CAST( 50 AS SIGNED ) + + - 7 / + ( - - ( - col0 ) ) + - col2 - - - col1 )
----

skipif mysql # not compatible
query II rowsort label-3046
SELECT DISTINCT col2, - col2 FROM tab0 AS cor0 WHERE - col2 = ( - + CAST ( 50 AS INTEGER ) + + - 7 / + ( - - ( - col0 ) ) + - col2 - - - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3047
SELECT - COUNT( * ) + - 53 FROM tab1 cor0
----
-56

skipif mysql # not compatible
query I rowsort label-3047
SELECT - COUNT ( * ) + - 53 FROM tab1 cor0
----
-56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3048
SELECT + + COUNT( * ) / - CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3048
SELECT + + COUNT ( * ) / - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3049
SELECT * FROM tab0 AS cor0 WHERE NULL BETWEEN col0 / - col2 AND - CAST( + + col2 AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-3049
SELECT * FROM tab0 AS cor0 WHERE NULL BETWEEN col0 / - col2 AND - CAST ( + + col2 AS REAL )
----

query I rowsort
SELECT ALL + col2 + - col1 + - 17 AS col0 FROM tab2 AS cor0
----
-26
-45
-54

query I rowsort
SELECT DISTINCT col0 * - 85 * + col1 FROM tab1
----
-36125
-363545
-60690

query I rowsort
SELECT ALL ( + + 46 ) FROM tab0 WHERE - 49 NOT BETWEEN - col1 AND - 87
----
46
46
46

onlyif mysql # aggregate syntax: 
query I rowsort label-3053
SELECT ALL MIN( DISTINCT - - 31 ) FROM tab1
----
31

skipif mysql # not compatible
query I rowsort label-3053
SELECT ALL MIN ( DISTINCT - - 31 ) FROM tab1
----
31

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3054
SELECT * FROM tab2 WHERE NOT + col0 + - CAST( 24 AS SIGNED ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-3054
SELECT * FROM tab2 WHERE NOT + col0 + - CAST ( 24 AS INTEGER ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3055
SELECT DISTINCT MAX( - + col1 ) AS col1 FROM tab2 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-3055
SELECT DISTINCT MAX ( - + col1 ) AS col1 FROM tab2 AS cor0
----
-51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 9 col1 FROM tab2 AS cor0
----
-9

query I rowsort
SELECT - 32 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to ef8f93119983b962f4c81381ebf4b1e6

onlyif mysql # aggregate syntax: 
query I rowsort label-3058
SELECT DISTINCT SUM( ALL - + col0 ) AS col2 FROM tab0
----
-199

skipif mysql # not compatible
query I rowsort label-3058
SELECT DISTINCT SUM ( ALL - + col0 ) AS col2 FROM tab0
----
-199

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE + 79 > NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col2 BETWEEN - col1 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3061
SELECT + MAX( ALL - ( - col0 ) ) FROM tab2 AS cor0 WHERE NOT ( col2 ) BETWEEN 68 AND NULL
----
75

skipif mysql # not compatible
query I rowsort label-3061
SELECT + MAX ( ALL - ( - col0 ) ) FROM tab2 AS cor0 WHERE NOT ( col2 ) BETWEEN 68 AND NULL
----
75

query I rowsort
SELECT + + col2 * col1 FROM tab2 AS cor0 WHERE NOT - col0 * + col0 * 67 < NULL
----

query II rowsort
SELECT DISTINCT + 19 * - 18 + col1, col1 AS col1 FROM tab2 cor0
----
-265
77
-275
67
-291
51

query I rowsort
SELECT ALL - + col1 + 84 + - + 48 AS col0 FROM tab2 cor0
----
-15
-31
-41

query I rowsort
SELECT DISTINCT + col1 * + 23 FROM tab1 AS cor0
----
1081
115
322

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3066
SELECT ALL - CAST( NULL AS SIGNED ) AS col1, - ( - - col0 ) AS col1 FROM tab1
----
NULL
-51
NULL
-85
NULL
-91

skipif mysql # not compatible
query II rowsort label-3066
SELECT ALL - CAST ( NULL AS INTEGER ) AS col1, - ( - - col0 ) AS col1 FROM tab1
----
NULL
-51
NULL
-85
NULL
-91

query I rowsort
SELECT ALL + 58 + - 89 * - col1 + + col1 AS col0 FROM tab0
----
148
1948
7348

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3068
SELECT DISTINCT col1 + + CAST( + 81 AS SIGNED ) col0 FROM tab0
----
102
162
82

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3068
SELECT DISTINCT col1 + + CAST ( + 81 AS INTEGER ) col0 FROM tab0
----
102
162
82

query I rowsort
SELECT DISTINCT + col1 + - - col0 AS col2 FROM tab2
----
141
142
97

onlyif mysql # DIV for integer division: 
query I rowsort label-3070
SELECT ALL + col1 + col1 DIV - - col1 AS col1 FROM tab0 AS cor0
----
2
22
82

skipif mysql # not compatible
query I rowsort label-3070
SELECT ALL + col1 + col1 / - - col1 AS col1 FROM tab0 AS cor0
----
2
22
82

onlyif mysql # aggregate syntax: 
query I rowsort label-3071
SELECT ( - 62 ) + + COUNT( * ) FROM tab0 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-3071
SELECT ( - 62 ) + + COUNT ( * ) FROM tab0 AS cor0
----
-59

query I rowsort
SELECT DISTINCT + 75 - - col0 * - 36 FROM tab1 AS cor0
----
-1761
-2985
-3201

onlyif mysql # aggregate syntax: 
query I rowsort label-3073
SELECT MAX( col0 ) col0 FROM tab1 cor0
----
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3073
SELECT MAX ( col0 ) col0 FROM tab1 cor0
----
91

query I rowsort
SELECT ALL - - 47 AS col2 FROM tab0 AS cor0
----
47
47
47

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3075
SELECT + col1 DIV + ( - + 48 ) + + - col2 + - CAST( + - col1 AS SIGNED ) DIV col1 DIV - CAST( col1 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-24
-41
-59

skipif mysql # not compatible
query I rowsort label-3075
SELECT + col1 / + ( - + 48 ) + + - col2 + - CAST ( + - col1 AS INTEGER ) / col1 / - CAST ( col1 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-24
-41
-59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 * - 38, - col1 col0 FROM tab1 AS cor0
----
-2242
-5
-2584
-47
-3648
-14

query I rowsort
SELECT 99 AS col0 FROM tab2 cor0
----
99
99
99

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3078
SELECT ALL + - col0 * 2 AS col2, col2 DIV + - CAST( - col2 AS SIGNED ) + - CAST( + + 22 AS SIGNED ) FROM tab0 AS cor0
----
-174
-21
-194
-21
-30
-21

skipif mysql # not compatible
query II rowsort label-3078
SELECT ALL + - col0 * 2 AS col2, col2 / + - CAST ( - col2 AS INTEGER ) + - CAST ( + + 22 AS INTEGER ) FROM tab0 AS cor0
----
-174
-21
-194
-21
-30
-21

query II rowsort
SELECT col2, - col1 AS col0 FROM tab2
----
23
-51
40
-77
58
-67

query I rowsort
SELECT ALL - + col0 FROM tab0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - + 89 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NULL ) = + + 57
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 9 + + + col1 * + col0 / - 8 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3084
SELECT DISTINCT + + COUNT( ALL col1 ) AS col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3084
SELECT DISTINCT + + COUNT ( ALL col1 ) AS col0 FROM tab1 AS cor0
----
3

query I rowsort
SELECT ALL + col2 * + 44 FROM tab0 AS cor0
----
2068
4356
440

query I rowsort
SELECT DISTINCT 38 FROM tab2 WHERE NOT + 72 BETWEEN + 11 AND col2
----
38

query I rowsort
SELECT ALL 38 + + + col2 FROM tab1 AS cor0
----
106
134
97

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-3088
SELECT DISTINCT + CAST( NULL AS DECIMAL ) + - - COUNT( * ) AS col1, 70 + + MIN( DISTINCT + ( - col1 ) ) AS col1 FROM tab0 cor0
----
NULL
-11

skipif mysql # not compatible
query II rowsort label-3088
SELECT DISTINCT + CAST ( NULL AS REAL ) + - - COUNT ( * ) AS col1, 70 + + MIN ( DISTINCT + ( - col1 ) ) AS col1 FROM tab0 cor0
----
NULL
-11

query I rowsort
SELECT + 20 * col1 + - 24 AS col0 FROM tab2 AS cor0
----
1316
1516
996

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 93 + - - col0 * - 24 + + 32 col2 FROM tab2 AS cor0
----
-1411
-1675
-979

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - 51 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col1 AS col0 FROM tab1 AS cor0 WHERE NOT - col1 >= + col1 * + col0
----
-14
-47
-5

query I rowsort
SELECT + 27 + + 68 FROM tab1 AS cor0
----
95
95
95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3094
SELECT DISTINCT - ( - COUNT( * ) ) * CAST( NULL AS SIGNED ) col1 FROM tab0 WHERE NOT + 8 IS NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3094
SELECT DISTINCT - ( - COUNT ( * ) ) * CAST ( NULL AS INTEGER ) col1 FROM tab0 WHERE NOT + 8 IS NULL
----
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - + col2 NOT BETWEEN + 22 AND - + col0
----

query I rowsort
SELECT ALL - col2 * - col0 + col1 AS col1 FROM tab1
----
4910
5020
6235

onlyif mysql # DIV for integer division: 
query I rowsort label-3097
SELECT col0 DIV + 32 AS col0 FROM tab2
----
1
2
2

skipif mysql # not compatible
query I rowsort label-3097
SELECT col0 / + 32 AS col0 FROM tab2
----
1
2
2

onlyif mysql # aggregate syntax: 
query I rowsort label-3098
SELECT ALL + SUM( ALL 79 ) * - - 28 FROM tab1
----
6636

skipif mysql # not compatible
query I rowsort label-3098
SELECT ALL + SUM ( ALL 79 ) * - - 28 FROM tab1
----
6636

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3099
SELECT * FROM tab2 AS cor0 WHERE - col2 / - col1 + 66 + - col0 = - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-3099
SELECT * FROM tab2 AS cor0 WHERE - col2 / - col1 + 66 + - col0 = - CAST ( NULL AS INTEGER )
----

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE col1 IN ( + + col2, 71 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3101
SELECT DISTINCT + - COUNT( * ) + - COUNT( * ) AS col0, + 80 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
-18
80

skipif mysql # not compatible
query II rowsort label-3101
SELECT DISTINCT + - COUNT ( * ) + - COUNT ( * ) AS col0, + 80 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
-18
80

query I rowsort
SELECT ALL + - col1 * - - col2 + - col1 AS col1 FROM tab0 WHERE NOT NULL NOT BETWEEN ( - col0 ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3103
SELECT ALL + 97 * + COUNT( * ) AS col2 FROM tab1 AS cor0
----
291

skipif mysql # not compatible
query I rowsort label-3103
SELECT ALL + 97 * + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
291

onlyif mysql # DIV for integer division: 
query I rowsort label-3104
SELECT ALL - - 12 DIV - 45 col0 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3104
SELECT ALL - - 12 / - 45 col0 FROM tab0 AS cor0
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN NULL AND + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3106
SELECT + + COUNT( ALL 56 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3106
SELECT + + COUNT ( ALL 56 ) FROM tab1 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3107
SELECT ALL AVG ( ALL - + CAST( NULL AS SIGNED ) ) col2 FROM tab2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3107
SELECT ALL AVG ( ALL - + CAST ( NULL AS INTEGER ) ) col2 FROM tab2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3108
SELECT - CAST( + 37 AS SIGNED ) AS col1 FROM tab1
----
-37
-37
-37

skipif mysql # not compatible
query I rowsort label-3108
SELECT - CAST ( + 37 AS INTEGER ) AS col1 FROM tab1
----
-37
-37
-37

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + + col0 col0 FROM tab1
----
425
4277
714

onlyif mysql # aggregate syntax: 
query I rowsort label-3110
SELECT COUNT( * ) * - MAX( - 49 ) * + 75 * COUNT( * ) FROM tab1
----
33075

skipif mysql # not compatible
query I rowsort label-3110
SELECT COUNT ( * ) * - MAX ( - 49 ) * + 75 * COUNT ( * ) FROM tab1
----
33075

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + - ( + - col1 ) IS NULL
----

query I rowsort
SELECT ALL + 50 + + + col0 FROM tab2 AS cor0 WHERE NOT ( NULL IS NOT NULL )
----
114
125
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3113
SELECT ALL + CAST( + - ( col1 ) AS SIGNED ) FROM tab0 AS cor0
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-3113
SELECT ALL + CAST ( + - ( col1 ) AS INTEGER ) FROM tab0 AS cor0
----
-1
-21
-81

query I rowsort
SELECT DISTINCT 62 AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3115
SELECT ALL SUM( + + col2 ) AS col1 FROM tab2 AS cor0
----
121

skipif mysql # not compatible
query I rowsort label-3115
SELECT ALL SUM ( + + col2 ) AS col1 FROM tab2 AS cor0
----
121

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3116
SELECT ALL 77 DIV 74 + - + COUNT( * ) - COUNT( * ) + + MAX( col1 ) AS col2 FROM tab2 AS cor0
----
72

skipif mysql # not compatible
query I rowsort label-3116
SELECT ALL 77 / 74 + - + COUNT ( * ) - COUNT ( * ) + + MAX ( col1 ) AS col2 FROM tab2 AS cor0
----
72

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + - 71 + - 73 * + - col2 * col0 col1 FROM tab0 cor0
----
51347
63429
700849

query I rowsort
SELECT ALL col0 AS col2 FROM tab2 AS cor0 WHERE NULL IS NULL
----
46
64
75

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 19 - + 68 / - col2 IS NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col2 * 85 + + + col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + - col2 * - 35 FROM tab1 cor0
----
2065
2380
3360

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3122
SELECT CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0 WHERE ( NULL ) NOT IN ( - col1 )
----

skipif mysql # not compatible
query I rowsort label-3122
SELECT CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0 WHERE ( NULL ) NOT IN ( - col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * + - col2 - + col0 col1 FROM tab0 AS cor0
----
-196
-297
-3822

query I rowsort
SELECT DISTINCT col0 + + - 99 FROM tab1 AS cor0 WHERE NOT ( NULL ) IN ( - col0 )
----

query I rowsort
SELECT - - col0 * + + col2 * + - col1 FROM tab1 AS cor0
----
-25075
-290836
-68544

query II rowsort
SELECT - + col0 AS col1, 76 FROM tab0 AS cor0
----
-15
76
-87
76
-97
76

query II rowsort
SELECT + 65, + col0 FROM tab2 AS cor0
----
65
46
65
64
65
75

onlyif mysql # aggregate syntax: 
query I rowsort label-3128
SELECT SUM( ALL - - col1 ) AS col2 FROM tab1
----
66

skipif mysql # not compatible
query I rowsort label-3128
SELECT SUM ( ALL - - col1 ) AS col2 FROM tab1
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-3129
SELECT + SUM( DISTINCT - col1 ) - - 10 AS col0 FROM tab1
----
-56

skipif mysql # not compatible
query I rowsort label-3129
SELECT + SUM ( DISTINCT - col1 ) - - 10 AS col0 FROM tab1
----
-56

query I rowsort
SELECT ALL + col0 * - + col1 FROM tab0
----
-1215
-1827
-97

query I rowsort
SELECT col2 + - col2 + - col0 + 71 FROM tab0
----
-16
-26
56

query I rowsort
SELECT ALL col0 * + - col2 AS col0 FROM tab0
----
-705
-870
-9603

query I rowsort
SELECT ( - col1 ) + + col0 + + - col2 * 87 * + col0 AS col1 FROM tab2
----
-222733
-378442
-92051

query I rowsort
SELECT DISTINCT - + 98 FROM tab2 WHERE NOT ( NOT - col0 IS NULL )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE ( ( + col2 ) < col1 )
----

query I rowsort
SELECT ALL + - 87 AS col0 FROM tab2 AS cor0 WHERE NOT + col2 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3137
SELECT - - CAST( - + col1 AS SIGNED ) DIV col2 + + 25, col1 AS col1 FROM tab0 AS cor0
----
23
21
24
81
25
1

skipif mysql # not compatible
query II rowsort label-3137
SELECT - - CAST ( - + col1 AS INTEGER ) / col2 + + 25, col1 AS col1 FROM tab0 AS cor0
----
23
21
24
81
25
1

onlyif mysql # DIV for integer division: 
query I rowsort label-3138
SELECT DISTINCT ( - + 18 ) - + col0 DIV + - col0 AS col0 FROM tab2 AS cor0
----
-17

skipif mysql # not compatible
query I rowsort label-3138
SELECT DISTINCT ( - + 18 ) - + col0 / + - col0 AS col0 FROM tab2 AS cor0
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-3139
SELECT + MIN( DISTINCT - - col0 ) FROM tab2
----
46

skipif mysql # not compatible
query I rowsort label-3139
SELECT + MIN ( DISTINCT - - col0 ) FROM tab2
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-3140
SELECT + 67 * + COUNT( * ) FROM tab2
----
201

skipif mysql # not compatible
query I rowsort label-3140
SELECT + 67 * + COUNT ( * ) FROM tab2
----
201

onlyif mysql # aggregate syntax: 
query I rowsort label-3141
SELECT DISTINCT - 52 * MAX( - 26 ) FROM tab1
----
1352

skipif mysql # not compatible
query I rowsort label-3141
SELECT DISTINCT - 52 * MAX ( - 26 ) FROM tab1
----
1352

query IIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab0 cor1 WHERE 26 + + 93 * - 40 IS NOT NULL
----
54 values hashing to 058438fde5fb838f23bcbdd39266ddcf

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3143
SELECT DISTINCT - COUNT( * ) DIV - CAST( + - 89 AS SIGNED ) * - - 23 AS col0 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-3143
SELECT DISTINCT - COUNT ( * ) / - CAST ( + - 89 AS INTEGER ) * - - 23 AS col0 FROM tab0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3144
SELECT + + CAST( NULL AS SIGNED ) FROM tab1 WHERE NOT + col0 + + col0 <> NULL
----

skipif mysql # not compatible
query I rowsort label-3144
SELECT + + CAST ( NULL AS INTEGER ) FROM tab1 WHERE NOT + col0 + + col0 <> NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NOT - col1 IS NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3146
SELECT - - COUNT( ALL + 83 ) AS col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3146
SELECT - - COUNT ( ALL + 83 ) AS col1 FROM tab0 AS cor0
----
3

query I rowsort
SELECT - 2 * + ( + col1 ) FROM tab2 AS cor0
----
-102
-134
-154

onlyif mysql # aggregate syntax: 
query I rowsort label-3148
SELECT ALL - - COUNT( col0 ) AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3148
SELECT ALL - - COUNT ( col0 ) AS col2 FROM tab1 AS cor0
----
3

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT - 19 IS NOT NULL
----

query II rowsort
SELECT DISTINCT - 98 AS col1, - col1 AS col2 FROM tab0 AS cor0
----
-98
-1
-98
-21
-98
-81

query I rowsort
SELECT ALL 87 * + 65 AS col0 FROM tab2 AS cor0
----
5655
5655
5655

query I rowsort
SELECT DISTINCT - ( + 57 ) * + + col2 * + - col1 FROM tab1 AS cor0
----
16815
182172
76608

query II rowsort
SELECT - - ( col2 ) * 97, col0 AS col0 FROM tab1 AS cor0
----
5723
85
6596
91
9312
51

onlyif mysql # aggregate syntax: 
query I rowsort label-3154
SELECT DISTINCT - ( + ( + - COUNT( * ) ) ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-3154
SELECT DISTINCT - ( + ( + - COUNT ( * ) ) ) FROM tab1
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3155
SELECT DISTINCT + col0 AS col0, - CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
46
NULL
64
NULL
75
NULL

skipif mysql # not compatible
query II rowsort label-3155
SELECT DISTINCT + col0 AS col0, - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
46
NULL
64
NULL
75
NULL

query II rowsort
SELECT + 53 AS col0, col0 AS col0 FROM tab2 AS cor0
----
53
46
53
64
53
75

query I rowsort
SELECT DISTINCT col2 + + - 31 AS col2 FROM tab2 AS cor0
----
-8
27
9

query I rowsort
SELECT DISTINCT + - 79 FROM tab1 AS cor0 WHERE NOT col1 IS NOT NULL
----

query I rowsort
SELECT col0 AS col2 FROM tab0 AS cor0 WHERE NOT col2 * - col0 < - + col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3160
SELECT AVG ( + col1 ), + COUNT( * ) * - COUNT( * ) AS col2 FROM tab2 WHERE - + 39 / + col2 + - col2 = - + CAST( NULL AS SIGNED )
----
NULL
0

skipif mysql # not compatible
query II rowsort label-3160
SELECT AVG ( + col1 ), + COUNT ( * ) * - COUNT ( * ) AS col2 FROM tab2 WHERE - + 39 / + col2 + - col2 = - + CAST ( NULL AS INTEGER )
----
NULL
0

query I rowsort
SELECT DISTINCT 40 + 30 - - col2 FROM tab2
----
110
128
93

onlyif mysql # aggregate syntax: 
query I rowsort label-3162
SELECT + - ( - COUNT( * ) ) + - COUNT( * ) col2 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3162
SELECT + - ( - COUNT ( * ) ) + - COUNT ( * ) col2 FROM tab0 AS cor0
----
0

query I rowsort
SELECT DISTINCT - - col2 FROM tab1 AS cor0 WHERE col0 - + col0 NOT BETWEEN NULL AND - col0 * + 43 * + col2 + + + col1 + + - 17 + + col0 / - col0
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-3164
SELECT + + COUNT( * ) + + COUNT( * ) FROM tab0 cor0
----
6

skipif mysql # not compatible
query I rowsort label-3164
SELECT + + COUNT ( * ) + + COUNT ( * ) FROM tab0 cor0
----
6

query I rowsort
SELECT ALL + - col1 AS col2 FROM tab0 cor0 WHERE col2 IS NULL
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE col0 >= 51
----
64
77
40
75
67
58

onlyif mysql # aggregate syntax: 
query I rowsort label-3167
SELECT DISTINCT + 74 + COUNT( * ) - COUNT( + col1 ) col2 FROM tab1 AS cor0
----
74

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3167
SELECT DISTINCT + 74 + COUNT ( * ) - COUNT ( + col1 ) col2 FROM tab1 AS cor0
----
74

query I rowsort
SELECT ALL col0 * - + 99 AS col2 FROM tab2
----
-4554
-6336
-7425

onlyif mysql # aggregate syntax: 
query I rowsort label-3169
SELECT DISTINCT + SUM( DISTINCT - + col2 ) AS col0 FROM tab0
----
-156

skipif mysql # not compatible
query I rowsort label-3169
SELECT DISTINCT + SUM ( DISTINCT - + col2 ) AS col0 FROM tab0
----
-156

onlyif mysql # DIV for integer division: 
query II rowsort label-3170
SELECT + 45 DIV + - col1 * - + col0, col2 FROM tab2
----
0
23
0
40
0
58

skipif mysql # not compatible
query II rowsort label-3170
SELECT + 45 / + - col1 * - + col0, col2 FROM tab2
----
0
23
0
40
0
58

onlyif mysql # DIV for integer division: 
query I rowsort label-3171
SELECT DISTINCT + col1 DIV - col2 * + 2 * - + 27 col1 FROM tab1
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3171
SELECT DISTINCT + col1 / - col2 * + 2 * - + 27 col1 FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3172
SELECT DISTINCT - ( 49 ) * + COUNT( * ) FROM tab1
----
-147

skipif mysql # not compatible
query I rowsort label-3172
SELECT DISTINCT - ( 49 ) * + COUNT ( * ) FROM tab1
----
-147

query III rowsort
SELECT * FROM tab1 WHERE ( + col1 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT + col0, 11 FROM tab1
----
51
11
85
11
91
11

query I rowsort
SELECT 31 - - col0 AS col0 FROM tab2
----
106
77
95

onlyif mysql # aggregate syntax: 
query I rowsort label-3176
SELECT + - ( SUM( DISTINCT - + col2 ) ) FROM tab0 AS cor0 WHERE NOT - 20 > - 16 + - + col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3176
SELECT + - ( SUM ( DISTINCT - + col2 ) ) FROM tab0 AS cor0 WHERE NOT - 20 > - 16 + - + col0
----
NULL

query I rowsort
SELECT ALL 43 AS col0 FROM tab2 cor0
----
43
43
43

onlyif mysql # aggregate syntax: 
query I rowsort label-3178
SELECT SUM( - col2 ) AS col2 FROM tab2
----
-121

skipif mysql # not compatible
query I rowsort label-3178
SELECT SUM ( - col2 ) AS col2 FROM tab2
----
-121

onlyif mysql # DIV for integer division: 
query I rowsort label-3179
SELECT ALL + + 62 DIV - 67 + - + col2 AS col0 FROM tab1 AS cor0
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-3179
SELECT ALL + + 62 / - 67 + - + col2 AS col0 FROM tab1 AS cor0
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-3180
SELECT DISTINCT SUM( - + col1 ) FROM tab1 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-3180
SELECT DISTINCT SUM ( - + col1 ) FROM tab1 AS cor0
----
-66

query I rowsort
SELECT DISTINCT - 53 AS col1 FROM tab1 cor0
----
-53

onlyif mysql # DIV for integer division: 
query I rowsort label-3182
SELECT col0 DIV col2 DIV - col0 AS col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3182
SELECT col0 / col2 / - col0 AS col1 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3183
SELECT ALL CAST( 44 AS SIGNED ) * + col2 AS col1 FROM tab0 AS cor0
----
2068
4356
440

skipif mysql # not compatible
query I rowsort label-3183
SELECT ALL CAST ( 44 AS INTEGER ) * + col2 AS col1 FROM tab0 AS cor0
----
2068
4356
440

query I rowsort
SELECT DISTINCT - 10 * + col2 * - 9 + col0 AS col2 FROM tab0 AS cor0
----
4245
9007
987

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-3185
SELECT 92 * - CAST( col2 AS SIGNED ) col0, 53 - CAST( NULL AS DECIMAL ) AS col1 FROM tab1
----
-5428
NULL
-6256
NULL
-8832
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3185
SELECT 92 * - CAST ( col2 AS INTEGER ) col0, 53 - CAST ( NULL AS REAL ) AS col1 FROM tab1
----
-5428
NULL
-6256
NULL
-8832
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3186
SELECT - + COUNT( * ) FROM tab0 WHERE NOT NULL IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-3186
SELECT - + COUNT ( * ) FROM tab0 WHERE NOT NULL IS NOT NULL
----
-3

onlyif mysql # DIV for integer division: 
query II rowsort label-3187
SELECT 65 AS col0, + col2 DIV - col1 - col1 AS col2 FROM tab1
----
65
-16
65
-20
65
-48

skipif mysql # not compatible
query II rowsort label-3187
SELECT 65 AS col0, + col2 / - col1 - col1 AS col2 FROM tab1
----
65
-16
65
-20
65
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-3188
SELECT MIN( DISTINCT + 33 ) AS col2 FROM tab0
----
33

skipif mysql # not compatible
query I rowsort label-3188
SELECT MIN ( DISTINCT + 33 ) AS col2 FROM tab0
----
33

query I rowsort
SELECT - 16 * + col2 AS col1 FROM tab0
----
-1584
-160
-752

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3190
SELECT - CAST( + 0 AS SIGNED ) FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3190
SELECT - CAST ( + 0 AS INTEGER ) FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3191
SELECT + MIN( ALL - col0 ) FROM tab1
----
-91

skipif mysql # not compatible
query I rowsort label-3191
SELECT + MIN ( ALL - col0 ) FROM tab1
----
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3192
SELECT 60 + + CAST( NULL AS SIGNED ) + - + col0 + + 82 - 28 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3192
SELECT 60 + + CAST ( NULL AS INTEGER ) + - + col0 + + 82 - 28 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3193
SELECT - col0 + + + col0 DIV - - col2 + col1 * - - col1 AS col2 FROM tab0
----
-96
362
6546

skipif mysql # not compatible
query I rowsort label-3193
SELECT - col0 + + + col0 / - - col2 + col1 * - - col1 AS col2 FROM tab0
----
-96
362
6546

query I rowsort
SELECT + 55 + - col1 + + + col2 * - 93 AS col1 FROM tab0
----
-4397
-896
-9153

query I rowsort
SELECT ALL - - 60 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to a97561e17ecaa618227c75a57b268f33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3196
SELECT ALL - CAST( NULL AS SIGNED ) * + col1 + - col2 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3196
SELECT ALL - CAST ( NULL AS INTEGER ) * + col1 + - col2 FROM tab1 cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3197
SELECT COUNT( * ) col1 FROM tab1 AS cor0 WHERE NULL <> 83 - + CAST( NULL AS SIGNED )
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3197
SELECT COUNT ( * ) col1 FROM tab1 AS cor0 WHERE NULL <> 83 - + CAST ( NULL AS INTEGER )
----
0

query I rowsort
SELECT ALL - col1 - + - col1 AS col0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + col1 * + col1 + - col2 FROM tab0 AS cor0
----
-98
431
6514

onlyif mysql # DIV for integer division: 
query I rowsort label-3200
SELECT ALL col1 - + 8 + - col0 + + col2 DIV + - 9 FROM tab2 AS cor0
----
-22
-5
1

skipif mysql # not compatible
query I rowsort label-3200
SELECT ALL col1 - + 8 + - col0 + + col2 / + - 9 FROM tab2 AS cor0
----
-22
-5
1

query I rowsort
SELECT col0 FROM tab1 AS cor0 WHERE NULL <= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 31 - - col0 + - 64 col2 FROM tab0 AS cor0
----
-8
-80
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3203
SELECT ALL CAST( NULL AS SIGNED ) - ( + col1 ) * - 18 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3203
SELECT ALL CAST ( NULL AS INTEGER ) - ( + col1 ) * - 18 AS col1 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3204
SELECT COUNT( * ) AS col0 FROM tab1 WHERE ( NULL ) NOT BETWEEN ( NULL ) AND - col0
----
0

skipif mysql # not compatible
query I rowsort label-3204
SELECT COUNT ( * ) AS col0 FROM tab1 WHERE ( NULL ) NOT BETWEEN ( NULL ) AND - col0
----
0

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT 60 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + col1 + + ( - col1 ) + + - col1 > NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0 * - col2 * - 40 * 14 + + - 16 col1, - col0 FROM tab0
----
394784
-15
487184
-87
5377664
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-3208
SELECT + col1 DIV + 21 FROM tab1 cor0
----
0
0
2

skipif mysql # not compatible
query I rowsort label-3208
SELECT + col1 / + 21 FROM tab1 cor0
----
0
0
2

query I rowsort
SELECT - ( - 23 ) FROM tab2 AS cor0
----
23
23
23

query I rowsort
SELECT - 13 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to e95f5f4bd0f480397cced5f5e8a23792

onlyif mysql # aggregate syntax: 
query I rowsort label-3211
SELECT DISTINCT COUNT( DISTINCT - - 79 ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-3211
SELECT DISTINCT COUNT ( DISTINCT - - 79 ) FROM tab0
----
1

query I rowsort
SELECT ALL 51 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to d8bf0a05c9c4d2a93812d106baae4752

query I rowsort
SELECT ALL col2 AS col0 FROM tab2 WHERE NOT NULL >= - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3214
SELECT COUNT( * ) FROM tab0 WHERE NOT col1 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-3214
SELECT COUNT ( * ) FROM tab0 WHERE NOT col1 IS NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3215
SELECT DISTINCT MAX( - 2 ) AS col0 FROM tab2
----
-2

skipif mysql # not compatible
query I rowsort label-3215
SELECT DISTINCT MAX ( - 2 ) AS col0 FROM tab2
----
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3216
SELECT - 22 * - col0 + + + CAST( + col1 AS SIGNED ) + 0 * - ( - 48 ) FROM tab0 cor0 WHERE NOT 43 <> NULL
----

skipif mysql # not compatible
query I rowsort label-3216
SELECT - 22 * - col0 + + + CAST ( + col1 AS INTEGER ) + 0 * - ( - 48 ) FROM tab0 cor0 WHERE NOT 43 <> NULL
----

query I rowsort
SELECT ALL + col1 * - ( 25 ) * - col0 AS col1 FROM tab2 AS cor0
----
123200
125625
58650

onlyif mysql # aggregate syntax: 
query I rowsort label-3218
SELECT COUNT( DISTINCT - - 65 ) FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-3218
SELECT COUNT ( DISTINCT - - 65 ) FROM tab1 AS cor0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3219
SELECT * FROM tab1 AS cor0 WHERE NOT 63 NOT IN ( - + col2, + col0 / col1 * + - col0 + col2 - - 18 * - CAST( NULL AS SIGNED ) * + + col0, + 41 + + col0, - ( + - col2 ) + - + 57 - + + 36 )
----

skipif mysql # not compatible
query III rowsort label-3219
SELECT * FROM tab1 AS cor0 WHERE NOT 63 NOT IN ( - + col2, + col0 / col1 * + - col0 + col2 - - 18 * - CAST ( NULL AS INTEGER ) * + + col0, + 41 + + col0, - ( + - col2 ) + - + 57 - + + 36 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3220
SELECT DISTINCT COUNT( * ) FROM tab2 WHERE 83 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-3220
SELECT DISTINCT COUNT ( * ) FROM tab2 WHERE 83 IS NOT NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3221
SELECT + 99 * - COUNT( * ) + 53 FROM tab0
----
-244

skipif mysql # not compatible
query I rowsort label-3221
SELECT + 99 * - COUNT ( * ) + 53 FROM tab0
----
-244

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col0 col2, + col0 * - 74 AS col1 FROM tab2 WHERE + + col2 >= - 21
----
-46
-3404
-64
-4736
-75
-5550

onlyif mysql # aggregate syntax: 
query I rowsort label-3223
SELECT DISTINCT + 6 * COUNT( * ) + - - 98 col2 FROM tab1
----
116

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3223
SELECT DISTINCT + 6 * COUNT ( * ) + - - 98 col2 FROM tab1
----
116

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3224
SELECT DISTINCT CAST( + COUNT( * ) AS SIGNED ) AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-3224
SELECT DISTINCT CAST ( + COUNT ( * ) AS INTEGER ) AS col2 FROM tab1
----
3

query I rowsort
SELECT DISTINCT + col0 + - + col1 AS col1 FROM tab2
----
-13
-5
8

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col1 + 53 IS NOT NULL
----

query II rowsort
SELECT - col2 - - col1, ( - col0 ) AS col2 FROM tab0 WHERE - col0 + 66 IS NOT NULL
----
-98
-97
11
-87
34
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-3228
SELECT ALL SUM( DISTINCT - ( + - col2 ) ) AS col2 FROM tab0
----
156

skipif mysql # not compatible
query I rowsort label-3228
SELECT ALL SUM ( DISTINCT - ( + - col2 ) ) AS col2 FROM tab0
----
156

query I rowsort
SELECT DISTINCT col1 + 10 FROM tab0 AS cor0
----
11
31
91

onlyif mysql # aggregate syntax: 
query I rowsort label-3230
SELECT DISTINCT COUNT( * ) + + 85 AS col1 FROM tab2 AS cor0
----
88

skipif mysql # not compatible
query I rowsort label-3230
SELECT DISTINCT COUNT ( * ) + + 85 AS col1 FROM tab2 AS cor0
----
88

query I rowsort
SELECT + - col0 + - 77 AS col0 FROM tab2 AS cor0
----
-123
-141
-152

query I rowsort
SELECT - 38 + - col1 FROM tab0 AS cor0
----
-119
-39
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-3233
SELECT - COUNT( * ) + - COUNT( * ) FROM tab1 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-3233
SELECT - COUNT ( * ) + - COUNT ( * ) FROM tab1 AS cor0
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-3234
SELECT DISTINCT + COUNT( * ) + COUNT( * ) col2 FROM tab2 AS cor0
----
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3234
SELECT DISTINCT + COUNT ( * ) + COUNT ( * ) col2 FROM tab2 AS cor0
----
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 + + col2 col0 FROM tab2 AS cor0
----
-28
-37
-9

query I rowsort
SELECT ALL + - col2 * - col2 - + ( + col2 ) AS col2 FROM tab1 AS cor0
----
3422
4556
9120

query I rowsort
SELECT - 48 + + col1 AS col0 FROM tab2 AS cor0
----
19
29
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3238
SELECT ALL + + CAST( NULL AS SIGNED ) - + 35 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3238
SELECT ALL + + CAST ( NULL AS INTEGER ) - + 35 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3239
SELECT * FROM tab1 cor0 WHERE NULL NOT IN ( 13 - + 27, + col2 - - - 73 + + col1 + + - CAST( NULL AS SIGNED ) / col0 )
----

skipif mysql # not compatible
query III rowsort label-3239
SELECT * FROM tab1 cor0 WHERE NULL NOT IN ( 13 - + 27, + col2 - - - 73 + + col1 + + - CAST ( NULL AS INTEGER ) / col0 )
----

query I rowsort
SELECT ALL + 49 + + + col2 FROM tab1 cor0
----
108
117
145

query II rowsort
SELECT DISTINCT 13, + col1 AS col1 FROM tab0 AS cor0
----
13
1
13
21
13
81

query I rowsort
SELECT DISTINCT col0 * - col0 - + - col2 + - + col1 + - + ( - - col2 ) * col2 AS col0 FROM tab0 AS cor0
----
-19112
-2468
-7680

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3243
SELECT ALL - col0 * - + CAST( - + col0 AS SIGNED ) - - 15 col0 FROM tab0 AS cor0
----
-210
-7554
-9394

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3243
SELECT ALL - col0 * - + CAST ( - + col0 AS INTEGER ) - - 15 col0 FROM tab0 AS cor0
----
-210
-7554
-9394

query III rowsort
SELECT * FROM tab1 WHERE col2 * col0 + + 36 - - col0 - - - col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3245
SELECT DISTINCT MIN( DISTINCT + col0 ) AS col2 FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-3245
SELECT DISTINCT MIN ( DISTINCT + col0 ) AS col2 FROM tab0
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-3246
SELECT MIN( DISTINCT - 45 ) FROM tab0
----
-45

skipif mysql # not compatible
query I rowsort label-3246
SELECT MIN ( DISTINCT - 45 ) FROM tab0
----
-45

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 42 col1, ( - - col0 ) AS col2 FROM tab2
----
42
46
42
64
42
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3248
SELECT ALL CAST( - - COUNT( * ) AS SIGNED ) AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-3248
SELECT ALL CAST ( - - COUNT ( * ) AS INTEGER ) AS col0 FROM tab1
----
3

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3249
SELECT * FROM tab1 WHERE NOT NULL <= - + CAST( + col0 AS DECIMAL ) + + col0 + + + 86 + + col0 * col0
----

skipif mysql # not compatible
query III rowsort label-3249
SELECT * FROM tab1 WHERE NOT NULL <= - + CAST ( + col0 AS REAL ) + + col0 + + + 86 + + col0 * col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3250
SELECT SUM( 50 ) * CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3250
SELECT SUM ( 50 ) * CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3251
SELECT + col0 * CAST( NULL AS SIGNED ) / + CAST( col2 AS SIGNED ) + - CAST( NULL AS SIGNED ) / col2 AS col1 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN col1 AND NULL
----

skipif mysql # not compatible
query I rowsort label-3251
SELECT + col0 * CAST ( NULL AS INTEGER ) / + CAST ( col2 AS INTEGER ) + - CAST ( NULL AS INTEGER ) / col2 AS col1 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN col1 AND NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3252
SELECT + CAST( - ( + - col2 ) AS DECIMAL ) AS col0 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN 80 AND + col1
----

skipif mysql # not compatible
query I rowsort label-3252
SELECT + CAST ( - ( + - col2 ) AS REAL ) AS col0 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN 80 AND + col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 58 * - - 48 col2 FROM tab1 AS cor0
----
2784
2784
2784

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3254
SELECT + AVG ( DISTINCT + - CAST( NULL AS SIGNED ) ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3254
SELECT + AVG ( DISTINCT + - CAST ( NULL AS INTEGER ) ) AS col1 FROM tab1
----
NULL

query I rowsort
SELECT ALL - - 99 FROM tab2 AS cor0 WHERE NOT 78 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3256
SELECT DISTINCT - SUM( DISTINCT + col1 ) AS col2 FROM tab2 AS cor0
----
-195

skipif mysql # not compatible
query I rowsort label-3256
SELECT DISTINCT - SUM ( DISTINCT + col1 ) AS col2 FROM tab2 AS cor0
----
-195

onlyif mysql # DIV for integer division: 
query I rowsort label-3257
SELECT ALL + 94 * - col1 + - col2 DIV - + ( 80 ) AS col0 FROM tab1 cor0
----
-1315
-4418
-470

skipif mysql # not compatible
query I rowsort label-3257
SELECT ALL + 94 * - col1 + - col2 / - + ( 80 ) AS col0 FROM tab1 cor0
----
-1315
-4418
-470

query I rowsort
SELECT ALL 39 * + col2 AS col1 FROM tab1 AS cor0
----
2301
2652
3744

onlyif mysql # DIV for integer division: 
query I rowsort label-3259
SELECT - + col1 DIV + + col1 AS col1 FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-3259
SELECT - + col1 / + + col1 AS col1 FROM tab0 AS cor0
----
-1
-1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3260
SELECT + COUNT( * ) FROM tab2 AS cor0 WHERE NOT col1 * + col1 + - 79 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3260
SELECT + COUNT ( * ) FROM tab2 AS cor0 WHERE NOT col1 * + col1 + - 79 IS NOT NULL
----
0

query I rowsort
SELECT + - col2 * - 86 * + col0 * col0 FROM tab0 AS cor0
----
6509340
80108226
909450

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( - col0 * col0 IS NOT NULL )
----

query I rowsort
SELECT ALL col2 / - col0 + + col0 / 7 AS col0 FROM tab1 WHERE NOT NULL < - ( 0 ) + - - col0
----

query II rowsort
SELECT + 36, + col1 - col0 AS col1 FROM tab1
----
36
-37
36
-44
36
-80

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3265
SELECT ALL * FROM tab1 WHERE NULL BETWEEN col0 AND + CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-3265
SELECT ALL * FROM tab1 WHERE NULL BETWEEN col0 AND + CAST ( NULL AS REAL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3266
SELECT ALL - CAST( NULL AS SIGNED ) * - COUNT( * ) col0 FROM tab2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3266
SELECT ALL - CAST ( NULL AS INTEGER ) * - COUNT ( * ) col0 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3267
SELECT DISTINCT COUNT( * ) + 18 FROM tab1 cor0
----
21

skipif mysql # not compatible
query I rowsort label-3267
SELECT DISTINCT COUNT ( * ) + 18 FROM tab1 cor0
----
21

query I rowsort
SELECT ALL - col2 * + col1 + - col0 + col0 + 83 AS col2 FROM tab1 AS cor0
----
-1261
-212
-3113

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3269
SELECT SUM( 38 ) DIV + COUNT( * ) AS col2 FROM tab0
----
38

skipif mysql # not compatible
query I rowsort label-3269
SELECT SUM ( 38 ) / + COUNT ( * ) AS col2 FROM tab0
----
38

query I rowsort
SELECT ALL + + col0 * - 37 FROM tab1 AS cor0
----
-1887
-3145
-3367

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 83 * - col2 + + 83 <> NULL
----

query I rowsort
SELECT - col2 - - + 68 FROM tab0 cor0
----
-31
21
58

onlyif mysql # aggregate syntax: 
query I rowsort label-3273
SELECT DISTINCT + - COUNT( * ) + + + MAX( - + col2 ) AS col1 FROM tab0 cor0
----
-13

skipif mysql # not compatible
query I rowsort label-3273
SELECT DISTINCT + - COUNT ( * ) + + + MAX ( - + col2 ) AS col1 FROM tab0 cor0
----
-13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3274
SELECT + + 22 * - col1 - CAST( col1 AS SIGNED ) * - - 59 * 86 + col0 AS col1 FROM tab0 AS cor0
----
-106929
-412761
-4999

skipif mysql # not compatible
query I rowsort label-3274
SELECT + + 22 * - col1 - CAST ( col1 AS INTEGER ) * - - 59 * 86 + col0 AS col1 FROM tab0 AS cor0
----
-106929
-412761
-4999

query I rowsort
SELECT - + col1 * - - col1 - - col0 AS col1 FROM tab2 cor0 WHERE - col1 BETWEEN ( - - 61 ) AND 37 - - 69 + + col0
----

query I rowsort
SELECT DISTINCT 44 + + - ( col0 ) AS col0 FROM tab0 AS cor0
----
-43
-53
29

query I rowsort
SELECT DISTINCT + + 32 AS col1 FROM tab2 AS cor0 WHERE NULL <> - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3278
SELECT + COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE col1 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-3278
SELECT + COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE col1 IS NOT NULL
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 2 + - col1 col1, - col0 col1 FROM tab2 AS cor0
----
-49
-46
-65
-75
-75
-64

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3280
SELECT - CAST( NULL AS SIGNED ) + + 50, 47 + + - col2 AS col1 FROM tab1 AS cor0
----
NULL
-12
NULL
-21
NULL
-49

skipif mysql # not compatible
query II rowsort label-3280
SELECT - CAST ( NULL AS INTEGER ) + + 50, 47 + + - col2 AS col1 FROM tab1 AS cor0
----
NULL
-12
NULL
-21
NULL
-49

onlyif mysql # DIV for integer division: 
query I rowsort label-3281
SELECT DISTINCT 93 + - 5 DIV - col2 * col1 + col0 FROM tab2 AS cor0
----
139
157
168

skipif mysql # not compatible
query I rowsort label-3281
SELECT DISTINCT 93 + - 5 / - col2 * col1 + col0 FROM tab2 AS cor0
----
139
157
168

query I rowsort
SELECT ALL - + ( col0 ) * - col1 - + col1 - 99 + - - col1 * - ( - col1 ) * 3 FROM tab1 AS cor0
----
10758
1189
396

query I rowsort
SELECT ALL + 97 FROM tab0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL > + col2
----

query I rowsort
SELECT 54 + - col2 - col1 AS col2 FROM tab1 WHERE NOT + + 82 NOT IN ( + col0 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3286
SELECT * FROM tab2 AS cor0 WHERE NOT ( ( NOT ( NOT NULL BETWEEN + - col2 + + ( + col2 ) / + 89 * - - col0 AND - - CAST( - col1 AS DECIMAL ) ) ) )
----

skipif mysql # not compatible
query III rowsort label-3286
SELECT * FROM tab2 AS cor0 WHERE NOT ( ( NOT ( NOT NULL BETWEEN + - col2 + + ( + col2 ) / + 89 * - - col0 AND - - CAST ( - col1 AS REAL ) ) ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3287
SELECT ALL + col2 DIV + + col0 AS col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3287
SELECT ALL + col2 / + + col0 AS col0 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3288
SELECT DISTINCT - + 85 / + CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3288
SELECT DISTINCT - + 85 / + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 13 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3290
SELECT - - COUNT( DISTINCT 2 ) AS col1 FROM tab1 cor0
----
1

skipif mysql # not compatible
query I rowsort label-3290
SELECT - - COUNT ( DISTINCT 2 ) AS col1 FROM tab1 cor0
----
1

query I rowsort
SELECT 41 AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
41
41
41

onlyif mysql # aggregate syntax: 
query II rowsort label-3292
SELECT DISTINCT + + 39 AS col2, COUNT( * ) FROM tab2 AS cor0
----
39
3

skipif mysql # not compatible
query II rowsort label-3292
SELECT DISTINCT + + 39 AS col2, COUNT ( * ) FROM tab2 AS cor0
----
39
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3293
SELECT COUNT( col1 ) * + - 91 + - 94 AS col2 FROM tab1
----
-367

skipif mysql # not compatible
query I rowsort label-3293
SELECT COUNT ( col1 ) * + - 91 + - 94 AS col2 FROM tab1
----
-367

query I rowsort
SELECT - - 48 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 8b09cc2c99c2102036162d063e0e5a4b

onlyif mysql # aggregate syntax: 
query I rowsort label-3295
SELECT + MAX( ( - + col0 ) ) AS col1 FROM tab2 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-3295
SELECT + MAX ( ( - + col0 ) ) AS col1 FROM tab2 AS cor0
----
-46

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN + col0 / - col0 AND + col0 * col0
----

query II rowsort
SELECT - col0 AS col2, + 78 * col0 AS col0 FROM tab2 AS cor0
----
-46
3588
-64
4992
-75
5850

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( col2 ) BETWEEN NULL AND 70
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 39 col0 FROM tab2 AS cor0
----
39
39
39

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NULL ) = + - 23
----

query I rowsort
SELECT DISTINCT col0 + + col2 * + col1 AS col2 FROM tab1 cor0 WHERE NOT col0 NOT IN ( - 93, 5 + + col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3302
SELECT + col0 + - col0 * + - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3302
SELECT + col0 + - col0 * + - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 25 AS col2 FROM tab1 WHERE 80 < - col1 * + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3304
SELECT DISTINCT - 83 + MAX( ALL + 47 ) FROM tab0
----
-36

skipif mysql # not compatible
query I rowsort label-3304
SELECT DISTINCT - 83 + MAX ( ALL + 47 ) FROM tab0
----
-36

onlyif mysql # aggregate syntax: 
query II rowsort label-3305
SELECT MIN( DISTINCT + col0 ), COUNT( * ) * - COUNT( * ) AS col1 FROM tab2
----
46
-9

skipif mysql # not compatible
query II rowsort label-3305
SELECT MIN ( DISTINCT + col0 ), COUNT ( * ) * - COUNT ( * ) AS col1 FROM tab2
----
46
-9

query II rowsort
SELECT ALL col2 + col0 + + - col1 AS col2, - 97 AS col0 FROM tab0 AS cor0
----
-19
-97
195
-97
76
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-3307
SELECT DISTINCT ( COUNT( * ) ) AS col1 FROM tab1 cor0 WHERE - 48 * + col2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3307
SELECT DISTINCT ( COUNT ( * ) ) AS col1 FROM tab1 cor0 WHERE - 48 * + col2 IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3308
SELECT DISTINCT + COUNT( * ) + - + ( - + 14 ) * COUNT( * ) AS col1 FROM tab1 cor0
----
45

skipif mysql # not compatible
query I rowsort label-3308
SELECT DISTINCT + COUNT ( * ) + - + ( - + 14 ) * COUNT ( * ) AS col1 FROM tab1 cor0
----
45

query I rowsort
SELECT DISTINCT 38 * col2 * + + col0 FROM tab0
----
26790
33060
364914

onlyif mysql # aggregate syntax: 
query I rowsort label-3310
SELECT + COUNT( * ) + 70 AS col0 FROM tab1
----
73

skipif mysql # not compatible
query I rowsort label-3310
SELECT + COUNT ( * ) + 70 AS col0 FROM tab1
----
73

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3311
SELECT ALL + + 83 * + 63 + - + 51 DIV - + 40 - - 1 * - - SUM( ALL - + 34 ) FROM tab1 AS cor0
----
5128

skipif mysql # not compatible
query I rowsort label-3311
SELECT ALL + + 83 * + 63 + - + 51 / - + 40 - - 1 * - - SUM ( ALL - + 34 ) FROM tab1 AS cor0
----
5128

onlyif mysql # aggregate syntax: 
query I rowsort label-3312
SELECT DISTINCT + + SUM( + - 29 ) FROM tab0 AS cor0
----
-87

skipif mysql # not compatible
query I rowsort label-3312
SELECT DISTINCT + + SUM ( + - 29 ) FROM tab0 AS cor0
----
-87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3313
SELECT - + MIN( DISTINCT CAST( + - col0 AS SIGNED ) ) FROM tab2 cor0
----
75

skipif mysql # not compatible
query I rowsort label-3313
SELECT - + MIN ( DISTINCT CAST ( + - col0 AS INTEGER ) ) FROM tab2 cor0
----
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 col2 FROM tab1 AS cor0 WHERE NOT 67 <= NULL
----

query II rowsort
SELECT col0, 45 FROM tab2 AS cor0
----
46
45
64
45
75
45

query I rowsort
SELECT ALL + ( - - col2 ) * col1 AS col2 FROM tab2
----
1173
3080
3886

onlyif mysql # DIV for integer division: 
query I rowsort label-3317
SELECT ALL 11 DIV 71 * + 83 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3317
SELECT ALL 11 / 71 * + 83 FROM tab0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3318
SELECT DISTINCT - MAX( ALL - col0 ) FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-3318
SELECT DISTINCT - MAX ( ALL - col0 ) FROM tab0
----
15

query I rowsort
SELECT DISTINCT + col1 - + - 60 * - + col2 AS col0 FROM tab2 WHERE NOT - col0 IS NULL
----
-1329
-2323
-3413

query I rowsort
SELECT DISTINCT col0 * 41 FROM tab2
----
1886
2624
3075

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3321
SELECT ALL ( col0 ) DIV col2 - col2 DIV CAST( - col0 AS SIGNED ) FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3321
SELECT ALL ( col0 ) / col2 - col2 / CAST ( - col0 AS INTEGER ) FROM tab1
----
1
1
1

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL = - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3323
SELECT DISTINCT 51 * - - COUNT( * ) FROM tab2 AS cor0
----
153

skipif mysql # not compatible
query I rowsort label-3323
SELECT DISTINCT 51 * - - COUNT ( * ) FROM tab2 AS cor0
----
153

query I rowsort
SELECT ALL + + ( 54 ) FROM tab0 cor0
----
54
54
54

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 18 <= - + 37
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col2 * + + col2 FROM tab0 AS cor0
----
100
2209
9801

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 INNER JOIN tab1 cor1 ON + 82 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * - + ( - 29 ) + + + col0 col2 FROM tab2
----
-1288
-1792
-2100

query I rowsort
SELECT DISTINCT + col1 * + ( + col0 ) + + - 12 * - 80 FROM tab1 AS cor0 WHERE + col2 * - - col1 <> - - col2
----
1385
1674
5237

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( col2 ) + - col1 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col2 + + col1 col0 FROM tab0 AS cor0
----
100
128
31

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col1 + - + ( - col2 ) + 62 / + col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3333
SELECT + MAX( ALL + - 12 ) AS col2 FROM tab2 AS cor0
----
-12

skipif mysql # not compatible
query I rowsort label-3333
SELECT + MAX ( ALL + - 12 ) AS col2 FROM tab2 AS cor0
----
-12

onlyif mysql # DIV for integer division: 
query I rowsort label-3334
SELECT - 66 DIV col2 FROM tab2 cor0
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-3334
SELECT - 66 / col2 FROM tab2 cor0
----
-1
-1
-2

query I rowsort
SELECT col0 * + ( + 20 ) FROM tab1
----
1020
1700
1820

onlyif mysql # aggregate syntax: 
query I rowsort label-3336
SELECT MAX( + 27 ) AS col2 FROM tab2
----
27

skipif mysql # not compatible
query I rowsort label-3336
SELECT MAX ( + 27 ) AS col2 FROM tab2
----
27

query III rowsort
SELECT * FROM tab2 WHERE - + 54 * + col1 < + - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-3338
SELECT ALL 75 AS col2, - COUNT( * ) + + + COUNT( * ) FROM tab1
----
75
0

skipif mysql # not compatible
query II rowsort label-3338
SELECT ALL 75 AS col2, - COUNT ( * ) + + + COUNT ( * ) FROM tab1
----
75
0

query I rowsort
SELECT ALL 2 * + - col0 AS col0 FROM tab2
----
-128
-150
-92

query II rowsort
SELECT DISTINCT col1, col0 * + - 99 AS col0 FROM tab0
----
1
-9603
21
-8613
81
-1485

query I rowsort
SELECT ALL col2 * + col0 * - - 88 AS col2 FROM tab2
----
225280
382800
93104

query I rowsort
SELECT DISTINCT col0 + + - 14 FROM tab1
----
37
71
77

query I rowsort
SELECT 53 + + ( col1 ) * + col2 * + col0 * - col0 FROM tab0
----
-1589437
-856522
-931438

query I rowsort
SELECT - 22 + - col1 + col1 FROM tab0 AS cor0
----
-22
-22
-22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3345
SELECT ALL - col0 - + + CAST( - col0 AS SIGNED ) AS col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3345
SELECT ALL - col0 - + + CAST ( - col0 AS INTEGER ) AS col0 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3346
SELECT DISTINCT + COUNT( + ( + - col2 ) ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-3346
SELECT DISTINCT + COUNT ( + ( + - col2 ) ) FROM tab0
----
3

query I rowsort
SELECT col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) <> - - col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3348
SELECT - col2 DIV 35 FROM tab1 AS cor0 WHERE NOT col2 <= - + 24
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-3348
SELECT - col2 / 35 FROM tab1 AS cor0 WHERE NOT col2 <= - + 24
----
-1
-1
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-3349
SELECT ALL - COUNT( * ) * - 55 * - 80 * - 15 col1 FROM tab1 AS cor0
----
198000

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3349
SELECT ALL - COUNT ( * ) * - 55 * - 80 * - 15 col1 FROM tab1 AS cor0
----
198000

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3350
SELECT - + 73 * CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3350
SELECT - + 73 * CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 3 * - col2 + - + 50 FROM tab0 cor0
----
-20
247
91

query I rowsort
SELECT col0 * + col2 AS col1 FROM tab0 AS cor0 WHERE NOT NULL > NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3353
SELECT ALL col2 DIV - - col2 AS col2 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3353
SELECT ALL col2 / - - col2 AS col2 FROM tab2
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3354
SELECT ALL + SUM( col0 ) AS col0 FROM tab1
----
227

skipif mysql # not compatible
query I rowsort label-3354
SELECT ALL + SUM ( col0 ) AS col0 FROM tab1
----
227

query I rowsort
SELECT ALL + 54 * col0 AS col1 FROM tab1
----
2754
4590
4914

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3356
SELECT - - COUNT( * ) * - CAST( NULL AS SIGNED ) col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3356
SELECT - - COUNT ( * ) * - CAST ( NULL AS INTEGER ) col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT - + ( - 23 ) FROM tab2 AS cor0
----
23
23
23

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col0 - + - col1 <= + + col1 + + 35
----
87
21
10
97
1
99

onlyif mysql # aggregate syntax: 
query I rowsort label-3359
SELECT ALL + - ( - + COUNT( * ) ) * - - COUNT( * ) AS col2 FROM tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-3359
SELECT ALL + - ( - + COUNT ( * ) ) * - - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
9

query I rowsort
SELECT DISTINCT 13 * + col0 AS col2 FROM tab2 AS cor0
----
598
832
975

query I rowsort
SELECT DISTINCT - 22 * - 8 FROM tab1 WHERE NOT + col1 NOT IN ( + 91 )
----

query III rowsort
SELECT * FROM tab1 WHERE NULL <> - col0 * col2 + - 76 / - 28
----

query I rowsort
SELECT DISTINCT 90 - col2 AS col2 FROM tab2 WHERE NOT 92 * col0 + + col2 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3364
SELECT MIN( col2 ) AS col2 FROM tab1
----
59

skipif mysql # not compatible
query I rowsort label-3364
SELECT MIN ( col2 ) AS col2 FROM tab1
----
59

query I rowsort
SELECT DISTINCT 16 FROM tab1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL + ( col2 ) * 3 FROM tab1
----
177
204
288

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL BETWEEN col2 - + col2 AND col2
----

query I rowsort
SELECT ALL 85 * + col0 AS col2 FROM tab1
----
4335
7225
7735

query I rowsort
SELECT + col1 - + 39 * col1 AS col2 FROM tab2 WHERE ( + 77 ) <= col2
----

query I rowsort
SELECT + col2 + - 38 * + col0 FROM tab2
----
-1725
-2392
-2792

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3371
SELECT DISTINCT * FROM tab1 WHERE col2 IN ( - 20 * CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-3371
SELECT DISTINCT * FROM tab1 WHERE col2 IN ( - 20 * CAST ( NULL AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3372
SELECT DISTINCT COUNT( * ) * MAX( ALL + 67 * + col0 ) FROM tab2
----
15075

skipif mysql # not compatible
query I rowsort label-3372
SELECT DISTINCT COUNT ( * ) * MAX ( ALL + 67 * + col0 ) FROM tab2
----
15075

onlyif mysql # aggregate syntax: 
query I rowsort label-3373
SELECT DISTINCT - SUM( + 77 ) * COUNT( * ) AS col0 FROM tab2
----
-693

skipif mysql # not compatible
query I rowsort label-3373
SELECT DISTINCT - SUM ( + 77 ) * COUNT ( * ) AS col0 FROM tab2
----
-693

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE 58 / col0 > - col2 + - ( col2 ) * - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3375
SELECT - col0 * + ( CAST( NULL AS SIGNED ) * 38 ) AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3375
SELECT - col0 * + ( CAST ( NULL AS INTEGER ) * 38 ) AS col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL ( col0 ) * - 38 FROM tab1
----
-1938
-3230
-3458

query I rowsort
SELECT ALL + col2 AS col2 FROM tab0 WHERE col2 IS NOT NULL
----
10
47
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3378
SELECT + col0 / - CAST( NULL AS SIGNED ) + - 23 * - col2 FROM tab2 WHERE NULL IN ( 10 + col0 )
----

skipif mysql # not compatible
query I rowsort label-3378
SELECT + col0 / - CAST ( NULL AS INTEGER ) + - 23 * - col2 FROM tab2 WHERE NULL IN ( 10 + col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col1 * col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col2 + + col2 * col0 FROM tab2
----
1081
2600
4408

query I rowsort
SELECT DISTINCT ( 20 ) + - 61 AS col0 FROM tab0
----
-41

query I rowsort
SELECT 13 * 86 AS col1 FROM tab2
----
1118
1118
1118

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3383
SELECT CAST( - 12 AS SIGNED ) * + col1 AS col1 FROM tab0
----
-12
-252
-972

skipif mysql # not compatible
query I rowsort label-3383
SELECT CAST ( - 12 AS INTEGER ) * + col1 AS col1 FROM tab0
----
-12
-252
-972

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL NOT BETWEEN col2 AND col0 + 54
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3385
SELECT ALL + ( COUNT( * ) ) AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-3385
SELECT ALL + ( COUNT ( * ) ) AS col2 FROM tab2
----
3

query I rowsort
SELECT ALL - 89 * + col2 + col0 FROM tab1
----
-5166
-5961
-8493

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col1 IN ( col1 + col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3388
SELECT DISTINCT + COUNT( ALL + col1 ) DIV 54 col1 FROM tab2
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3388
SELECT DISTINCT + COUNT ( ALL + col1 ) / 54 col1 FROM tab2
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 col2 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3390
SELECT + 13 + + 30 * MIN( + col2 ) AS col0 FROM tab0
----
313

skipif mysql # not compatible
query I rowsort label-3390
SELECT + 13 + + 30 * MIN ( + col2 ) AS col0 FROM tab0
----
313

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3391
SELECT DISTINCT - CAST( + COUNT( * ) AS SIGNED ) AS col2 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-3391
SELECT DISTINCT - CAST ( + COUNT ( * ) AS INTEGER ) AS col2 FROM tab2
----
-3

query I rowsort
SELECT DISTINCT + 32 * + col1 AS col2 FROM tab1
----
1504
160
448

query I rowsort
SELECT + col1 - - 52 FROM tab2 AS cor0
----
103
119
129

query I rowsort
SELECT DISTINCT col2 * + 55 - + col2 FROM tab1 AS cor0
----
3186
3672
5184

query I rowsort
SELECT DISTINCT - col2 + + 67 AS col1 FROM tab2 AS cor0
----
27
44
9

query I rowsort
SELECT ALL col1 + 77 FROM tab2 AS cor0 WHERE - col2 > ( 72 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3397
SELECT ALL - col1 * 59 - ( + CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3397
SELECT ALL - col1 * 59 - ( + CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3398
SELECT col2 - + CAST( NULL AS SIGNED ) col1 FROM tab0 AS cor0 WHERE NULL > ( 32 )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3398
SELECT col2 - + CAST ( NULL AS INTEGER ) col1 FROM tab0 AS cor0 WHERE NULL > ( 32 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3399
SELECT 55 + - COUNT( * ) * 0 AS col0 FROM tab0 AS cor0
----
55

skipif mysql # not compatible
query I rowsort label-3399
SELECT 55 + - COUNT ( * ) * 0 AS col0 FROM tab0 AS cor0
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-3400
SELECT ALL + COUNT( * ) + COUNT( * ) FROM ( tab2 cor0 CROSS JOIN tab1 )
----
18

skipif mysql # not compatible
query I rowsort label-3400
SELECT ALL + COUNT ( * ) + COUNT ( * ) FROM ( tab2 cor0 CROSS JOIN tab1 )
----
18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3401
SELECT DISTINCT + 13 * - 82 FROM tab2 WHERE NOT - CAST( NULL AS SIGNED ) BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query I rowsort label-3401
SELECT DISTINCT + 13 * - 82 FROM tab2 WHERE NOT - CAST ( NULL AS INTEGER ) BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3402
SELECT 20 DIV ( + COUNT( * ) ) FROM tab2 WHERE NOT ( + 50 ) IS NULL
----
6

skipif mysql # not compatible
query I rowsort label-3402
SELECT 20 / ( + COUNT ( * ) ) FROM tab2 WHERE NOT ( + 50 ) IS NULL
----
6

query I rowsort
SELECT ( col2 ) * + 21 FROM tab0
----
2079
210
987

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( + ( col0 ) ) NOT BETWEEN ( NULL ) AND NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col1 NOT IN ( + 64 )
----

query I rowsort
SELECT - 64 * ( - 25 + col2 ) FROM tab0 AS cor0
----
-1408
-4736
960

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col2 BETWEEN ( + 39 ) AND col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT col1 NOT IN ( - col1 * 6 + - 57 )
----

query I rowsort
SELECT ALL + col2 * - 1 AS col0 FROM tab0 cor0
----
-10
-47
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-3410
SELECT + COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE NOT col1 >= ( - 91 - - col0 )
----
1

skipif mysql # not compatible
query I rowsort label-3410
SELECT + COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE NOT col1 >= ( - 91 - - col0 )
----
1

query I rowsort
SELECT ALL + col1 * + 62 FROM tab2 AS cor0
----
3162
4154
4774

query I rowsort
SELECT ALL + - col1 * + 0 AS col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT col1 * + 83 AS col0 FROM tab2 AS cor0
----
4233
5561
6391

query I rowsort
SELECT 70 + - col0 FROM tab1 AS cor0 WHERE NOT 21 IS NULL
----
-15
-21
19

query I rowsort
SELECT DISTINCT 56 AS col2 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
56

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3416
SELECT DISTINCT + ( COUNT( * ) ) FROM tab1 WHERE ( CAST( NULL AS DECIMAL ) ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3416
SELECT DISTINCT + ( COUNT ( * ) ) FROM tab1 WHERE ( CAST ( NULL AS REAL ) ) IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3417
SELECT ALL COUNT( * ) FROM tab0 WHERE ( NULL ) IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-3417
SELECT ALL COUNT ( * ) FROM tab0 WHERE ( NULL ) IS NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3418
SELECT + ( ( COUNT( * ) ) ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-3418
SELECT + ( ( COUNT ( * ) ) ) FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3419
SELECT ( + + COUNT( ALL col2 ) ) AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-3419
SELECT ( + + COUNT ( ALL col2 ) ) AS col1 FROM tab2
----
3

query I rowsort
SELECT DISTINCT + ( - + 57 ) AS col0 FROM tab1
----
-57

query I rowsort
SELECT ALL - 5 * 81 FROM tab0
----
-405
-405
-405

onlyif mysql # aggregate syntax: 
query I rowsort label-3422
SELECT COUNT( - col0 ) col0 FROM tab2
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3422
SELECT COUNT ( - col0 ) col0 FROM tab2
----
3

query III rowsort
SELECT * FROM tab2 WHERE NOT + col0 + + col0 > + ( col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3424
SELECT ALL + ( - col2 ) DIV - 25 AS col2 FROM tab2 AS cor0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-3424
SELECT ALL + ( - col2 ) / - 25 AS col2 FROM tab2 AS cor0
----
0
1
2

onlyif mysql # aggregate syntax: 
query I rowsort label-3425
SELECT - - COUNT( * ) + COUNT( * ) AS col0 FROM tab2 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-3425
SELECT - - COUNT ( * ) + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
6

query I rowsort
SELECT + col0 * + 24 + + col0 * 12 FROM tab0 AS cor0
----
3132
3492
540

onlyif mysql # aggregate syntax: 
query I rowsort label-3427
SELECT + COUNT( * ) FROM tab1 WHERE ( NOT NULL IS NOT NULL )
----
3

skipif mysql # not compatible
query I rowsort label-3427
SELECT + COUNT ( * ) FROM tab1 WHERE ( NOT NULL IS NOT NULL )
----
3

query III rowsort
SELECT * FROM tab2 WHERE ( NOT NULL < ( col1 ) )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3429
SELECT DISTINCT + ( COUNT( * ) ) DIV ( + 15 ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
0

skipif mysql # not compatible
query I rowsort label-3429
SELECT DISTINCT + ( COUNT ( * ) ) / ( + 15 ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
0

query III rowsort
SELECT * FROM tab0 cor0 WHERE NULL BETWEEN ( NULL ) AND col2 * + 29
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE 12 <> + col1 + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query II rowsort label-3432
SELECT COUNT( * ) AS col1, 49 AS col1 FROM tab1 AS cor0
----
3
49

skipif mysql # not compatible
query II rowsort label-3432
SELECT COUNT ( * ) AS col1, 49 AS col1 FROM tab1 AS cor0
----
3
49

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 80 * col1 * - 24 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - 89 FROM tab0 AS cor0 WHERE + 26 BETWEEN ( NULL ) AND + 11
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3435
SELECT - CAST( - - 41 AS SIGNED ) * - CAST( + col0 AS SIGNED ) FROM tab0 cor0
----
3567
3977
615

skipif mysql # not compatible
query I rowsort label-3435
SELECT - CAST ( - - 41 AS INTEGER ) * - CAST ( + col0 AS INTEGER ) FROM tab0 cor0
----
3567
3977
615

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3436
SELECT - CAST( NULL AS SIGNED ) AS col0, + COUNT( * ) * - + 3 AS col0 FROM tab1 AS cor0
----
NULL
-9

skipif mysql # not compatible
query II rowsort label-3436
SELECT - CAST ( NULL AS INTEGER ) AS col0, + COUNT ( * ) * - + 3 AS col0 FROM tab1 AS cor0
----
NULL
-9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3437
SELECT + MAX( ALL col1 ) - - + 34 + SUM( col1 ) DIV 60 FROM tab1 AS cor0
----
82

skipif mysql # not compatible
query I rowsort label-3437
SELECT + MAX ( ALL col1 ) - - + 34 + SUM ( col1 ) / 60 FROM tab1 AS cor0
----
82

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( col0 * col2 + 34 ) IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE ( + col0 + - col0 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3440
SELECT DISTINCT - 41 * - COUNT( * ) + COUNT( * ) * 14 AS col1 FROM tab0 WHERE - col0 * - + 65 IS NULL AND col0 NOT IN ( - col0 + - 36 )
----
0

skipif mysql # not compatible
query I rowsort label-3440
SELECT DISTINCT - 41 * - COUNT ( * ) + COUNT ( * ) * 14 AS col1 FROM tab0 WHERE - col0 * - + 65 IS NULL AND col0 NOT IN ( - col0 + - 36 )
----
0

query I rowsort
SELECT ALL + - ( - - 45 ) + 60 FROM tab0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( col0 ) < - col2 + - 11
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + 68 / 48 FROM tab0 AS cor0 WHERE - col2 / + col0 BETWEEN NULL AND + col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 99 col0 FROM tab0
----
99
99
99

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL BETWEEN - col2 AND - col2
----

query III rowsort
SELECT * FROM tab2 WHERE NOT - col2 * ( + 35 ) * 47 + 72 + + 57 * col2 NOT BETWEEN NULL AND - col1 + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3447
SELECT + COUNT( * ) * 31 AS col2 FROM tab2 AS cor0
----
93

skipif mysql # not compatible
query I rowsort label-3447
SELECT + COUNT ( * ) * 31 AS col2 FROM tab2 AS cor0
----
93

onlyif mysql # DIV for integer division: 
query I rowsort label-3448
SELECT + 8 DIV - 59 col2 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3448
SELECT + 8 / - 59 col2 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT + col1 * + col0 - - + col1 - col1 * + - 75 * col1 AS col2 FROM tab1 AS cor0
----
15428
169999
2305

onlyif mysql # aggregate syntax: 
query I rowsort label-3450
SELECT - + SUM( ALL col2 ) AS col1 FROM tab0 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-3450
SELECT - + SUM ( ALL col2 ) AS col1 FROM tab0 AS cor0
----
-156

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3451
SELECT * FROM tab0 WHERE NOT - CAST( NULL AS DECIMAL ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-3451
SELECT * FROM tab0 WHERE NOT - CAST ( NULL AS REAL ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3452
SELECT ALL MIN( DISTINCT - + col1 ) AS col2 FROM tab0
----
-81

skipif mysql # not compatible
query I rowsort label-3452
SELECT ALL MIN ( DISTINCT - + col1 ) AS col2 FROM tab0
----
-81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3453
SELECT ALL ( - + COUNT( * ) ) + - + CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3453
SELECT ALL ( - + COUNT ( * ) ) + - + CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL

query I rowsort
SELECT + 82 * + - 85 AS col2 FROM tab1 AS cor0
----
-6970
-6970
-6970

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 col1, col2 * + col2 FROM tab0 AS cor0
----
-15
2209
-87
100
-97
9801

query III rowsort
SELECT DISTINCT - + 59 AS col0, col2 AS col0, + col0 * + + col0 AS col0 FROM tab2 AS cor0
----
9 values hashing to ded417f0ca98cfd6c0fab66743d7ebb8

query I rowsort
SELECT DISTINCT + 1 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3458
SELECT ALL + MAX( DISTINCT + 82 ) * COUNT( * ) FROM tab2
----
246

skipif mysql # not compatible
query I rowsort label-3458
SELECT ALL + MAX ( DISTINCT + 82 ) * COUNT ( * ) FROM tab2
----
246

query I rowsort
SELECT DISTINCT - 20 AS col0 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
-20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3460
SELECT DISTINCT + 21 * + + 83 AS col1, - COUNT( * ) + CAST( NULL AS SIGNED ) FROM tab0
----
1743
NULL

skipif mysql # not compatible
query II rowsort label-3460
SELECT DISTINCT + 21 * + + 83 AS col1, - COUNT ( * ) + CAST ( NULL AS INTEGER ) FROM tab0
----
1743
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3461
SELECT - col0 + + - CAST( NULL AS SIGNED ) * + col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3461
SELECT - col0 + + - CAST ( NULL AS INTEGER ) * + col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col2 + - 94 FROM tab2
----
-36
-54
-71

query I rowsort
SELECT ALL - 3 + - 2 AS col1 FROM tab1 AS cor0
----
-5
-5
-5

query II rowsort
SELECT + + col1 + - 30, col1 FROM tab2 AS cor0
----
21
51
37
67
47
77

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NOT NULL BETWEEN NULL AND - 40 )
----

query I rowsort
SELECT DISTINCT - col1 + col0 * col1 FROM tab0 AS cor0 WHERE ( - col1 ) NOT BETWEEN NULL AND col1 + + col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3467
SELECT - col0 + 9 + - 12 DIV col2 AS col1 FROM tab0 AS cor0
----
-6
-79
-88

skipif mysql # not compatible
query I rowsort label-3467
SELECT - col0 + 9 + - 12 / col2 AS col1 FROM tab0 AS cor0
----
-6
-79
-88

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 18 >= ( + - col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3469
SELECT ALL + 80 - - SUM( - 61 ) col0 FROM tab2 AS cor0
----
-103

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3469
SELECT ALL + 80 - - SUM ( - 61 ) col0 FROM tab2 AS cor0
----
-103

query I rowsort
SELECT ALL col2 * + col1 - - col2 + 51 + - + 75 * col1 FROM tab1
----
-210
30
441

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * - 40 col2 FROM tab0
----
-3240
-40
-840

onlyif mysql # aggregate syntax: 
query I rowsort label-3472
SELECT ALL - COUNT( * ) * + SUM( + 0 ) AS col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-3472
SELECT ALL - COUNT ( * ) * + SUM ( + 0 ) AS col1 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3473
SELECT DISTINCT + 76 * - COUNT( * ) FROM tab1
----
-228

skipif mysql # not compatible
query I rowsort label-3473
SELECT DISTINCT + 76 * - COUNT ( * ) FROM tab1
----
-228

query I rowsort
SELECT - col2 - 4 AS col0 FROM tab1
----
-100
-63
-72

query I rowsort
SELECT 82 * - - 15 FROM tab1 WHERE - 34 = NULL
----

query I rowsort
SELECT col1 - + + 69 AS col1 FROM tab2
----
-18
-2
8

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE - 60 IN ( + 99 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col0 - + col2 IS NOT NULL
----

query I rowsort
SELECT - col1 AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-14
-47
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3480
SELECT DISTINCT ( - CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3480
SELECT DISTINCT ( - CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3481
SELECT DISTINCT + CAST( NULL AS DECIMAL ) AS col0 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3481
SELECT DISTINCT + CAST ( NULL AS REAL ) AS col0 FROM tab1 cor0
----
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + ( - 56 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3483
SELECT - MAX( - + 1 ) * + + COUNT( * ) + + 70 + + + 82 AS col1 FROM tab1
----
155

skipif mysql # not compatible
query I rowsort label-3483
SELECT - MAX ( - + 1 ) * + + COUNT ( * ) + + 70 + + + 82 AS col1 FROM tab1
----
155

query I rowsort
SELECT - col1 * + + 40 * + + col1 FROM tab2 WHERE NOT + col1 >= + col1
----

query I rowsort
SELECT DISTINCT ( 23 ) AS col0 FROM tab1
----
23

query I rowsort
SELECT - 12 + col2 AS col2 FROM tab0 WHERE NOT NULL <> NULL
----

query I rowsort
SELECT ALL - 23 AS col0 FROM tab1 WHERE NULL IS NULL
----
-23
-23
-23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3488
SELECT DISTINCT - 10 + - CAST( NULL AS SIGNED ) + - 26 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3488
SELECT DISTINCT - 10 + - CAST ( NULL AS INTEGER ) + - 26 FROM tab2
----
NULL

query I rowsort
SELECT ALL - col2 + + + 12 + col2 * col2 AS col0 FROM tab1 AS cor0
----
3434
4568
9132

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col2 BETWEEN + 57 AND - + col2 + + 14
----

query I rowsort
SELECT DISTINCT - 87 + - col1 * + + col0 AS col0 FROM tab1 AS cor0
----
-4364
-512
-801

query I rowsort
SELECT ALL + 93 + - 66 AS col0 FROM tab0 AS cor0 WHERE + 73 IS NULL
----

query I rowsort
SELECT + - 68 + + 7 FROM tab1 AS cor0
----
-61
-61
-61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3494
SELECT ( CAST( NULL AS SIGNED ) ) + - col1 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3494
SELECT ( CAST ( NULL AS INTEGER ) ) + - col1 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL = col0 - + 2
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3496
SELECT + + COUNT( * ) - - CAST( NULL AS SIGNED ) - - 56 AS col2 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3496
SELECT + + COUNT ( * ) - - CAST ( NULL AS INTEGER ) - - 56 AS col2 FROM tab1 cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3497
SELECT ALL - COUNT( * ) + + + ( - 55 ) AS col0 FROM tab1 cor0
----
-58

skipif mysql # not compatible
query I rowsort label-3497
SELECT ALL - COUNT ( * ) + + + ( - 55 ) AS col0 FROM tab1 cor0
----
-58

query I rowsort
SELECT DISTINCT col2 * - col2 * - 25 AS col0 FROM tab2
----
13225
40000
84100

onlyif mysql # aggregate syntax: 
query I rowsort label-3499
SELECT ALL + COUNT( * ) - 94 FROM tab2
----
-91

skipif mysql # not compatible
query I rowsort label-3499
SELECT ALL + COUNT ( * ) - 94 FROM tab2
----
-91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 17 * - col1 col0, col0 AS col1 FROM tab1
----
-238
51
-799
91
-85
85

onlyif mysql # DIV for integer division: 
query I rowsort label-3501
SELECT - 78 * + col1 + col2 DIV + 44 AS col2 FROM tab2
----
-3978
-5225
-6006

skipif mysql # not compatible
query I rowsort label-3501
SELECT - 78 * + col1 + col2 / + 44 AS col2 FROM tab2
----
-3978
-5225
-6006

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3502
SELECT DISTINCT COUNT( * ) DIV - COUNT( col0 ) FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-3502
SELECT DISTINCT COUNT ( * ) / - COUNT ( col0 ) FROM tab0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3503
SELECT ALL + 15 * + col0, + CAST( - col0 AS SIGNED ) * + + col2 AS col2 FROM tab0
----
1305
-870
1455
-9603
225
-705

skipif mysql # not compatible
query II rowsort label-3503
SELECT ALL + 15 * + col0, + CAST ( - col0 AS INTEGER ) * + + col2 AS col2 FROM tab0
----
1305
-870
1455
-9603
225
-705

onlyif mysql # DIV for integer division: 
query II rowsort label-3504
SELECT col0 * - col1 AS col2, - col0 DIV + col1 FROM tab1
----
-425
-17
-4277
-1
-714
-3

skipif mysql # not compatible
query II rowsort label-3504
SELECT col0 * - col1 AS col2, - col0 / + col1 FROM tab1
----
-425
-17
-4277
-1
-714
-3

query I rowsort
SELECT - col0 * - - col0 AS col0 FROM tab2 WHERE NOT NULL IN ( - col0 + col2 - - 0 * - col1 * + - 82 + 75 * + 98 * + 81 )
----

query II rowsort
SELECT + + ( - 23 ), + col0 - - 66 AS col0 FROM tab1 AS cor0
----
-23
117
-23
151
-23
157

query I rowsort
SELECT - col1 * 58 * + - col2 AS col2 FROM tab1 AS cor0
----
17110
185368
77952

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3508
SELECT + + ( + MAX( - CAST( NULL AS SIGNED ) ) ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3508
SELECT + + ( + MAX ( - CAST ( NULL AS INTEGER ) ) ) FROM tab0 AS cor0
----
NULL

query IIIIII rowsort
SELECT ALL * FROM ( tab1 AS cor0 LEFT JOIN tab1 cor1 ON NULL IS NULL )
----
54 values hashing to 375f372843089b03f23b00160007527a

query II rowsort
SELECT DISTINCT - 4 AS col2, col0 FROM tab0 WHERE NOT NULL <> - col0
----

query II rowsort
SELECT DISTINCT col2 AS col0, + col1 AS col2 FROM tab2 AS cor0
----
23
51
40
77
58
67

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NOT NULL NOT IN ( + 48, - 69, col1 ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3513
SELECT - col0 * col2 - + - col0 * col1 DIV 85 AS col1 FROM tab1 AS cor0
----
-4888
-5010
-6138

skipif mysql # not compatible
query I rowsort label-3513
SELECT - col0 * col2 - + - col0 * col1 / 85 AS col1 FROM tab1 AS cor0
----
-4888
-5010
-6138

query II rowsort
SELECT DISTINCT - col0, col2 AS col2 FROM tab2 AS cor0
----
-46
23
-64
40
-75
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col2 col0, - ( - - 95 ) + - col0 FROM tab1 AS cor0
----
-59
-180
-68
-186
-96
-146

query I rowsort
SELECT + col1 * + + col0 FROM tab0 AS cor0
----
1215
1827
97

query I rowsort
SELECT + - col2 * - 32 * col0 FROM tab2 AS cor0
----
139200
33856
81920

query II rowsort
SELECT + col0, - col2 FROM tab1 AS cor0 WHERE NOT ( NULL BETWEEN + + 21 - + col0 AND - col1 + + 51 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NOT ( NOT ( 91 + - col0 + - col0 * - col0 * 34 + col1 ) IN ( - 53 + col1 / + col1 ) ) )
----

query I rowsort
SELECT ALL - col0 FROM tab1 AS cor0 WHERE - 62 - - col1 IS NOT NULL
----
-51
-85
-91

query II rowsort
SELECT 18 + + 78 AS col2, 33 FROM tab1
----
96
33
96
33
96
33

onlyif mysql # aggregate syntax: 
query I rowsort label-3522
SELECT DISTINCT + MIN( DISTINCT + ( + - 47 ) ) AS col2 FROM tab2
----
-47

skipif mysql # not compatible
query I rowsort label-3522
SELECT DISTINCT + MIN ( DISTINCT + ( + - 47 ) ) AS col2 FROM tab2
----
-47

query I rowsort
SELECT DISTINCT + 77 + + 79 * + + ( - col0 ) FROM tab1
----
-3952
-6638
-7112

query I rowsort
SELECT ALL - col1 AS col1 FROM tab1 WHERE ( + + 67 ) IS NOT NULL
----
-14
-47
-5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 7 col1 FROM tab0 WHERE 38 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3526
SELECT + + SUM( - ( + 5 ) ) * + ( + 65 ) FROM tab1 WHERE + col2 IS NOT NULL
----
-975

skipif mysql # not compatible
query I rowsort label-3526
SELECT + + SUM ( - ( + 5 ) ) * + ( + 65 ) FROM tab1 WHERE + col2 IS NOT NULL
----
-975

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 87 col1 FROM tab1 AS cor0
----
87
87
87

onlyif mysql # aggregate syntax: 
query I rowsort label-3528
SELECT ALL - 15 + - 77 + + - COUNT( * ) AS col2 FROM tab1 AS cor0
----
-95

skipif mysql # not compatible
query I rowsort label-3528
SELECT ALL - 15 + - 77 + + - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-95

query I rowsort
SELECT - + 56 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 3d3dab400eef93c098acbbba3fc9bdc6

query I rowsort
SELECT DISTINCT + + 61 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-3531
SELECT - - MAX( ALL - - col1 ) + MAX( 9 ) FROM tab0 AS cor0
----
90

skipif mysql # not compatible
query I rowsort label-3531
SELECT - - MAX ( ALL - - col1 ) + MAX ( 9 ) FROM tab0 AS cor0
----
90

onlyif mysql # DIV for integer division: 
query I rowsort label-3532
SELECT + + 10 DIV - col1 * + + 46 + + col2 AS col0 FROM tab2 AS cor0
----
23
40
58

skipif mysql # not compatible
query I rowsort label-3532
SELECT + + 10 / - col1 * + + 46 + + col2 AS col0 FROM tab2 AS cor0
----
23
40
58

query I rowsort
SELECT + ( - 8 ) AS col1 FROM tab0 AS cor0
----
-8
-8
-8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT ALL col0, 81 + - col1 + + 38, - - 66 col0 FROM tab2 AS cor0 WHERE col1 / - col2 * - 84 IS NOT NULL
----
9 values hashing to 73c3aa8170c089a162d687fb83c4ff68

query II rowsort
SELECT col2 AS col1, - 82 FROM tab0 AS cor0 WHERE + col2 / - col2 <= + 42
----
10
-82
47
-82
99
-82

query I rowsort
SELECT ALL - - col2 FROM tab1 AS cor0 WHERE - col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3537
SELECT ALL + COUNT( * ) - + COUNT( - + col1 ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3537
SELECT ALL + COUNT ( * ) - + COUNT ( - + col1 ) FROM tab0 AS cor0
----
0

query I rowsort
SELECT DISTINCT + 46 * - col2 FROM tab1 AS cor0
----
-2714
-3128
-4416

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3539
SELECT DISTINCT CAST( + col0 AS SIGNED ) * + 96 AS col0 FROM tab0
----
1440
8352
9312

skipif mysql # not compatible
query I rowsort label-3539
SELECT DISTINCT CAST ( + col0 AS INTEGER ) * + 96 AS col0 FROM tab0
----
1440
8352
9312

query I rowsort
SELECT 17 * 4 FROM tab2
----
68
68
68

query I rowsort
SELECT + ( + col1 ) FROM tab2 WHERE NOT - + 48 IS NULL
----
51
67
77

query I rowsort
SELECT 40 * + + col0 AS col2 FROM tab1
----
2040
3400
3640

query I rowsort
SELECT col2 * - - col0 AS col1 FROM tab2
----
1058
2560
4350

query II rowsort
SELECT - col2, col0 AS col0 FROM tab1
----
-59
85
-68
91
-96
51

query I rowsort
SELECT col1 * 76 FROM tab2
----
3876
5092
5852

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 91 col1, - col2 FROM tab0
----
91
-10
91
-47
91
-99

query I rowsort
SELECT 65 * + 35 FROM tab0
----
2275
2275
2275

query I rowsort
SELECT col0 * - 56 * col1 FROM tab2
----
-131376
-275968
-281400

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3549
SELECT DISTINCT col1 * CAST( NULL AS SIGNED ) / col0 + - - col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3549
SELECT DISTINCT col1 * CAST ( NULL AS INTEGER ) / col0 + - - col2 FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT NULL NOT IN ( col1, + col1 )
----

query I rowsort
SELECT 28 - + col0 AS col0 FROM tab0 AS cor0 WHERE NOT - col2 < col0
----

query II rowsort
SELECT - - ( + - 59 ) AS col0, col1 FROM tab2 AS cor0
----
-59
51
-59
67
-59
77

onlyif mysql # aggregate syntax: 
query I rowsort label-3553
SELECT SUM( ALL - + 70 ) * - 13 * + MIN( DISTINCT col0 ) AS col0 FROM tab2
----
125580

skipif mysql # not compatible
query I rowsort label-3553
SELECT SUM ( ALL - + 70 ) * - 13 * + MIN ( DISTINCT col0 ) AS col0 FROM tab2
----
125580

onlyif mysql # aggregate syntax: 
query I rowsort label-3554
SELECT ALL ( COUNT( + col1 ) ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-3554
SELECT ALL ( COUNT ( + col1 ) ) FROM tab2
----
3

query III rowsort
SELECT ALL * FROM tab1 WHERE - - col1 * - 87 < NULL
----

query I rowsort
SELECT ALL + col2 + + - ( + col0 ) AS col2 FROM tab0 AS cor0
----
-77
2
32

query I rowsort
SELECT DISTINCT + 51 * + - col2 FROM tab0 cor0
----
-2397
-5049
-510

onlyif mysql # aggregate syntax: 
query I rowsort label-3558
SELECT ALL 37 * COUNT( * ) * - COUNT( * ) FROM tab2 AS cor0
----
-333

skipif mysql # not compatible
query I rowsort label-3558
SELECT ALL 37 * COUNT ( * ) * - COUNT ( * ) FROM tab2 AS cor0
----
-333

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col0 * col2 * - 92 col1 FROM tab1 cor0
----
450432
461380
569296

query I rowsort
SELECT 59 * 56 AS col1 FROM tab2 AS cor0
----
3304
3304
3304

onlyif mysql # DIV for integer division: 
query I rowsort label-3561
SELECT DISTINCT col0 DIV - + col0 FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-3561
SELECT DISTINCT col0 / - + col0 FROM tab2
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3562
SELECT + 79 * + - CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3562
SELECT + 79 * + - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3563
SELECT - SUM( + + 21 ) FROM tab2
----
-63

skipif mysql # not compatible
query I rowsort label-3563
SELECT - SUM ( + + 21 ) FROM tab2
----
-63

onlyif mysql # DIV for integer division: 
query I rowsort label-3564
SELECT DISTINCT col2 DIV + + col0 AS col2 FROM tab1
----
0
1

skipif mysql # not compatible
query I rowsort label-3564
SELECT DISTINCT col2 / + + col0 AS col2 FROM tab1
----
0
1

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3565
SELECT DISTINCT * FROM tab1 WHERE NULL NOT IN ( col2, CAST( + col0 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-3565
SELECT DISTINCT * FROM tab1 WHERE NULL NOT IN ( col2, CAST ( + col0 AS INTEGER ) )
----

query I rowsort
SELECT ALL - - 62 + - + 49 * + - 90 FROM tab0 AS cor0
----
4472
4472
4472

query I rowsort
SELECT DISTINCT + col2 FROM tab1 AS cor0 WHERE ( NULL ) NOT IN ( - col0, - 20 + + - col0, + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3568
SELECT DISTINCT COUNT( DISTINCT + col0 ) - COUNT( * ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3568
SELECT DISTINCT COUNT ( DISTINCT + col0 ) - COUNT ( * ) FROM tab1 AS cor0
----
0

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + 50 / - col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN col1 * col2 AND + col1 + col2 + - - 52 * + + col0
----

query I rowsort
SELECT + 66 FROM tab2 cor0
----
66
66
66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3572
SELECT CAST( 91 AS SIGNED ) FROM tab1 cor0
----
91
91
91

skipif mysql # not compatible
query I rowsort label-3572
SELECT CAST ( 91 AS INTEGER ) FROM tab1 cor0
----
91
91
91

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + ( + col1 ) * col0 + + col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3574
SELECT DISTINCT - + MIN( + 61 ) * + 5 FROM tab0 AS cor0
----
-305

skipif mysql # not compatible
query I rowsort label-3574
SELECT DISTINCT - + MIN ( + 61 ) * + 5 FROM tab0 AS cor0
----
-305

onlyif mysql # aggregate syntax: 
query I rowsort label-3575
SELECT COUNT( - 23 ) AS col2 FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-3575
SELECT COUNT ( - 23 ) AS col2 FROM tab2 cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3576
SELECT MAX( ALL - col1 ) AS col2 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-3576
SELECT MAX ( ALL - col1 ) AS col2 FROM tab0 AS cor0
----
-1

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( + 35, col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3578
SELECT DISTINCT + ( + COUNT( * ) ) * + COUNT( * ) AS col0 FROM tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-3578
SELECT DISTINCT + ( + COUNT ( * ) ) * + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-3579
SELECT MIN( ALL + - col1 ) AS col2 FROM tab1 AS cor0
----
-47

skipif mysql # not compatible
query I rowsort label-3579
SELECT MIN ( ALL + - col1 ) AS col2 FROM tab1 AS cor0
----
-47

query I rowsort
SELECT + ( ( 90 ) ) FROM tab2 AS cor0
----
90
90
90

query I rowsort
SELECT - col1 * + col1 AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-196
-2209
-25

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL NOT BETWEEN NULL AND 21
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col0, col0 col0 FROM tab2
----
-46
46
-64
64
-75
75

query III rowsort
SELECT ALL * FROM tab0 WHERE + - 69 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3585
SELECT - SUM( - 63 ) * - + 37 FROM tab0
----
-6993

skipif mysql # not compatible
query I rowsort label-3585
SELECT - SUM ( - 63 ) * - + 37 FROM tab0
----
-6993

query I rowsort
SELECT ALL - 99 FROM tab1 WHERE NOT + col1 * col2 > col0
----

query I rowsort
SELECT DISTINCT - - 11 FROM tab1 cor0
----
11

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - ( col0 ) BETWEEN ( - 93 + - col2 ) AND NULL
----

query I rowsort
SELECT ALL - + 27 * + col2 FROM tab1 AS cor0
----
-1593
-1836
-2592

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 + col1, - 92 col1 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3591
SELECT DISTINCT - COUNT( * ) * - 90 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
810

skipif mysql # not compatible
query I rowsort label-3591
SELECT DISTINCT - COUNT ( * ) * - 90 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
810

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 9 < - col2 * + - 13 * col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-3593
SELECT ALL + col1 DIV col2 * + - 93 FROM tab0 AS cor0
----
-186
-93
0

skipif mysql # not compatible
query I rowsort label-3593
SELECT ALL + col1 / col2 * + - 93 FROM tab0 AS cor0
----
-186
-93
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( - - col0 ) NOT BETWEEN + col0 - + 89 AND + col1
----
75
67
58

onlyif mysql # aggregate syntax: 
query I rowsort label-3595
SELECT + SUM( + + col2 ) + + + COUNT( * ) * + ( + ( - MIN( - ( - + col1 ) ) ) ) FROM tab0 AS cor0
----
153

skipif mysql # not compatible
query I rowsort label-3595
SELECT + SUM ( + + col2 ) + + + COUNT ( * ) * + ( + ( - MIN ( - ( - + col1 ) ) ) ) FROM tab0 AS cor0
----
153

query I rowsort
SELECT - col0 AS col1 FROM tab0 AS cor0 WHERE col1 NOT BETWEEN + ( - col1 ) * + col2 AND col2
----
-15
-87

query I rowsort
SELECT - 22 + + - col1 AS col1 FROM tab0 AS cor0
----
-103
-23
-43

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( col1 * - col0 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3599
SELECT - 95 * + - MIN( DISTINCT - col2 ) AS col0 FROM tab2
----
-5510

skipif mysql # not compatible
query I rowsort label-3599
SELECT - 95 * + - MIN ( DISTINCT - col2 ) AS col0 FROM tab2
----
-5510

onlyif mysql # aggregate syntax: 
query I rowsort label-3600
SELECT ALL SUM( DISTINCT 83 ) FROM tab0
----
83

skipif mysql # not compatible
query I rowsort label-3600
SELECT ALL SUM ( DISTINCT 83 ) FROM tab0
----
83

query I rowsort
SELECT - col2 FROM tab0 WHERE + col2 BETWEEN ( 25 ) AND + col0
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 54 + - col2 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL IN ( - 50 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3604
SELECT CAST( 16 AS SIGNED ) + - + 0 AS col2 FROM tab2
----
16
16
16

skipif mysql # not compatible
query I rowsort label-3604
SELECT CAST ( 16 AS INTEGER ) + - + 0 AS col2 FROM tab2
----
16
16
16

onlyif mysql # aggregate syntax: 
query II rowsort label-3605
SELECT COUNT( * ) AS col2, - COUNT( * ) AS col1 FROM tab1 AS cor0
----
3
-3

skipif mysql # not compatible
query II rowsort label-3605
SELECT COUNT ( * ) AS col2, - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
3
-3

query I rowsort
SELECT + col1 * - 41 AS col1 FROM tab0 AS cor0
----
-3321
-41
-861

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 87 BETWEEN NULL AND + col0
----
15
81
47

onlyif mysql # DIV for integer division: 
query I rowsort label-3608
SELECT + 38 DIV - 92 AS col2 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3608
SELECT + 38 / - 92 AS col2 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3609
SELECT ALL - MIN( DISTINCT col0 ) col1 FROM tab1 cor0
----
-51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3609
SELECT ALL - MIN ( DISTINCT col0 ) col1 FROM tab1 cor0
----
-51

query I rowsort
SELECT DISTINCT ( 50 ) AS col2 FROM tab1
----
50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3611
SELECT DISTINCT + - col1 AS col0 FROM tab2 WHERE col2 > CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-3611
SELECT DISTINCT + - col1 AS col0 FROM tab2 WHERE col2 > CAST ( NULL AS INTEGER )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3612
SELECT + CAST( + + col1 AS SIGNED ) AS col0 FROM tab2
----
51
67
77

skipif mysql # not compatible
query I rowsort label-3612
SELECT + CAST ( + + col1 AS INTEGER ) AS col0 FROM tab2
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-3613
SELECT + ( + + 52 ) * - 27 + MIN( ALL - col0 ) FROM tab0 AS cor0
----
-1501

skipif mysql # not compatible
query I rowsort label-3613
SELECT + ( + + 52 ) * - 27 + MIN ( ALL - col0 ) FROM tab0 AS cor0
----
-1501

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL >= + col1 * - col2
----

query I rowsort
SELECT 67 + + 79 + - col1 FROM tab2
----
69
79
95

onlyif mysql # aggregate syntax: 
query I rowsort label-3616
SELECT - 64 * - - COUNT( * ) + + 78 FROM tab2
----
-114

skipif mysql # not compatible
query I rowsort label-3616
SELECT - 64 * - - COUNT ( * ) + + 78 FROM tab2
----
-114

query II rowsort
SELECT col2 + col2 * col2, + col0 AS col0 FROM tab1
----
3540
85
4692
91
9312
51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3618
SELECT ALL + 15 DIV - COUNT( * ) FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 )
----
-1

skipif mysql # not compatible
query I rowsort label-3618
SELECT ALL + 15 / - COUNT ( * ) FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 )
----
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * col0 col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 * 46 IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL >= - 7
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 * - 43 IS NULL
----

query I rowsort
SELECT col1 AS col2 FROM tab2 cor0 WHERE NULL IS NULL
----
51
67
77

query II rowsort
SELECT ALL col2, + col2 AS col0 FROM tab2 AS cor0
----
23
23
40
40
58
58

query I rowsort
SELECT ALL + 33 + - 17 FROM tab0 AS cor0
----
16
16
16

query I rowsort
SELECT DISTINCT + 23 + - + col2 AS col1 FROM tab0 AS cor0
----
-24
-76
13

query I rowsort
SELECT - ( - 57 ) AS col0 FROM tab2 AS cor0
----
57
57
57

query I rowsort
SELECT col2 - + ( col1 ) * 85 - 68 AS col2 FROM tab2 AS cor0
----
-4380
-5705
-6573

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col2 * + + 72 <> + col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3630
SELECT + col1 + 88 DIV - col2 + - 81 + col1 AS col0 FROM tab0
----
-47
-79
80

skipif mysql # not compatible
query I rowsort label-3630
SELECT + col1 + 88 / - col2 + - 81 + col1 AS col0 FROM tab0
----
-47
-79
80

query I rowsort
SELECT - col0 + col0 + + col2 + + col1 FROM tab0
----
100
128
31

query I rowsort
SELECT DISTINCT - col2 + + + col2 AS col1 FROM tab0 cor0
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3633
SELECT DISTINCT - AVG ( + CAST( NULL AS DECIMAL ) ) - - MIN( ALL + + 50 ) col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3633
SELECT DISTINCT - AVG ( + CAST ( NULL AS REAL ) ) - - MIN ( ALL + + 50 ) col2 FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3634
SELECT + AVG ( ALL + CAST( NULL AS SIGNED ) ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-3634
SELECT + AVG ( ALL + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

query I rowsort
SELECT - 98 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to f17b7008a7deae1eb5a2e707ec237638

query I rowsort
SELECT - + col1 FROM tab2 cor0 WHERE NOT - col0 + + col1 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 43 col2 FROM tab0 AS cor0
----
43
43
43

query I rowsort
SELECT DISTINCT ( - - 28 ) AS col0 FROM tab1 AS cor0
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-3639
SELECT COUNT( * ) * + + ( + + 39 ) * + 63 AS col0 FROM tab0
----
7371

skipif mysql # not compatible
query I rowsort label-3639
SELECT COUNT ( * ) * + + ( + + 39 ) * + 63 AS col0 FROM tab0
----
7371

onlyif mysql # DIV for integer division: 
query I rowsort label-3640
SELECT DISTINCT + col0 + + + col1 + + col2 + - 84 DIV + col1 FROM tab1 AS cor0
----
133
155
205

skipif mysql # not compatible
query I rowsort label-3640
SELECT DISTINCT + col0 + + + col1 + + col2 + - 84 / + col1 FROM tab1 AS cor0
----
133
155
205

onlyif mysql # aggregate syntax: 
query II rowsort label-3641
SELECT + 98 * - 97 col1, MIN( - 85 ) FROM tab1 cor0 CROSS JOIN tab2 cor1
----
-9506
-85

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3641
SELECT + 98 * - 97 col1, MIN ( - 85 ) FROM tab1 cor0 CROSS JOIN tab2 cor1
----
-9506
-85

query I rowsort
SELECT ALL - col0 * + + 52 AS col0 FROM tab1 AS cor0
----
-2652
-4420
-4732

onlyif mysql # aggregate syntax: 
query I rowsort label-3643
SELECT + + 74 + - + COUNT( + col2 ) + + - 69 + - 55 AS col0 FROM tab0 AS cor0
----
-53

skipif mysql # not compatible
query I rowsort label-3643
SELECT + + 74 + - + COUNT ( + col2 ) + + - 69 + - 55 AS col0 FROM tab0 AS cor0
----
-53

query II rowsort
SELECT + + 48 * col2 + - 2 - + + col2 AS col1, + 13 AS col1 FROM tab2 AS cor0
----
1079
13
1878
13
2724
13

query II rowsort
SELECT DISTINCT 7 + + - col1 AS col0, col0 AS col2 FROM tab1 cor0 WHERE 41 BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3646
SELECT ALL - ( MAX( ALL CAST( NULL AS SIGNED ) ) ) + 23 AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3646
SELECT ALL - ( MAX ( ALL CAST ( NULL AS INTEGER ) ) ) + 23 AS col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT col2 * col0 + + - col1 FROM tab1 WHERE ( NULL IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3648
SELECT DISTINCT 89 * COUNT( * ) AS col2 FROM tab2
----
267

skipif mysql # not compatible
query I rowsort label-3648
SELECT DISTINCT 89 * COUNT ( * ) AS col2 FROM tab2
----
267

onlyif mysql # aggregate syntax: 
query I rowsort label-3649
SELECT DISTINCT - SUM( 49 ) AS col2 FROM tab1
----
-147

skipif mysql # not compatible
query I rowsort label-3649
SELECT DISTINCT - SUM ( 49 ) AS col2 FROM tab1
----
-147

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3650
SELECT DISTINCT + col0 + - - 56 + + + 41 * + - CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3650
SELECT DISTINCT + col0 + - - 56 + + + 41 * + - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3651
SELECT COUNT( * ) * + 61 FROM tab1
----
183

skipif mysql # not compatible
query I rowsort label-3651
SELECT COUNT ( * ) * + 61 FROM tab1
----
183

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3652
SELECT - col2 * - - CAST( - col0 AS SIGNED ) - 71 FROM tab0
----
634
799
9532

skipif mysql # not compatible
query I rowsort label-3652
SELECT - col2 * - - CAST ( - col0 AS INTEGER ) - 71 FROM tab0
----
634
799
9532

query I rowsort
SELECT ALL ( col2 ) + 99 FROM tab1 AS cor0
----
158
167
195

query I rowsort
SELECT - 44 - 11 AS col0 FROM tab2 AS cor0
----
-55
-55
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-3655
SELECT ALL COUNT( * ) * - - 39 * - + COUNT( * ) * - + 26 AS col0 FROM tab2 AS cor0
----
9126

skipif mysql # not compatible
query I rowsort label-3655
SELECT ALL COUNT ( * ) * - - 39 * - + COUNT ( * ) * - + 26 AS col0 FROM tab2 AS cor0
----
9126

onlyif mysql # DIV for integer division: 
query I rowsort label-3656
SELECT 50 DIV - + 89 * - 57 - - col1 FROM tab1 AS cor0
----
14
47
5

skipif mysql # not compatible
query I rowsort label-3656
SELECT 50 / - + 89 * - 57 - - col1 FROM tab1 AS cor0
----
14
47
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3657
SELECT + CAST( NULL AS SIGNED ) * + col1 - - col0 * - col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3657
SELECT + CAST ( NULL AS INTEGER ) * + col1 - - col0 * - col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 46 + col0 AS col0 FROM tab0 AS cor0
----
-31
41
51

onlyif mysql # aggregate syntax: 
query I rowsort label-3659
SELECT ALL SUM( ALL + col1 ) FROM tab2 cor0
----
195

skipif mysql # not compatible
query I rowsort label-3659
SELECT ALL SUM ( ALL + col1 ) FROM tab2 cor0
----
195

onlyif mysql # DIV for integer division: 
query I rowsort label-3660
SELECT ALL + ( - - col0 ) DIV col0 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3660
SELECT ALL + ( - - col0 ) / col0 FROM tab2
----
1
1
1

query I rowsort
SELECT ( + 21 ) FROM tab1
----
21
21
21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3662
SELECT DISTINCT + COUNT( * ) AS col1, MAX( ALL + CAST( NULL AS SIGNED ) ) col2 FROM tab1
----
3
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3662
SELECT DISTINCT + COUNT ( * ) AS col1, MAX ( ALL + CAST ( NULL AS INTEGER ) ) col2 FROM tab1
----
3
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT 67 * - - col1 / - - col2 + - col0 + ( - - col1 ) BETWEEN - 88 * col1 AND NULL
----
97
1
99

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( + 74 IS NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * - - col1 col2 FROM tab0 cor0
----
-210
-3807
-99

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL > - col2 + + + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3667
SELECT DISTINCT COUNT( * ) * + + 44 - - + 55 FROM tab0 AS cor0
----
187

skipif mysql # not compatible
query I rowsort label-3667
SELECT DISTINCT COUNT ( * ) * + + 44 - - + 55 FROM tab0 AS cor0
----
187

query I rowsort
SELECT ALL col1 * + 32 FROM tab0 AS cor0
----
2592
32
672

onlyif mysql # DIV for integer division: 
query I rowsort label-3669
SELECT - + 52 DIV + col0 FROM tab1 cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-3669
SELECT - + 52 / + col0 FROM tab1 cor0
----
-1
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3670
SELECT DISTINCT MAX( ALL + - col1 ) FROM tab2 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-3670
SELECT DISTINCT MAX ( ALL + - col1 ) FROM tab2 AS cor0
----
-51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3671
SELECT SUM( ALL + + CAST( NULL AS SIGNED ) ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3671
SELECT SUM ( ALL + + CAST ( NULL AS INTEGER ) ) FROM tab2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3672
SELECT ALL col2 DIV + 47 AS col2 FROM tab0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-3672
SELECT ALL col2 / + 47 AS col2 FROM tab0
----
0
1
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3673
SELECT ALL CAST( COUNT( * ) AS SIGNED ) + - 45 FROM tab2
----
-42

skipif mysql # not compatible
query I rowsort label-3673
SELECT ALL CAST ( COUNT ( * ) AS INTEGER ) + - 45 FROM tab2
----
-42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3674
SELECT ALL - col2 / - CAST( NULL AS SIGNED ) * + col0 * + 94 col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3674
SELECT ALL - col2 / - CAST ( NULL AS INTEGER ) * + col0 * + 94 col2 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3675
SELECT ALL + SUM( DISTINCT - col2 ) AS col1, + 58 AS col2 FROM tab2
----
-121
58

skipif mysql # not compatible
query II rowsort label-3675
SELECT ALL + SUM ( DISTINCT - col2 ) AS col1, + 58 AS col2 FROM tab2
----
-121
58

query III rowsort
SELECT * FROM tab2 WHERE + 59 > NULL
----

query III rowsort
SELECT * FROM tab1 WHERE ( NULL <= - col0 + + col1 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3678
SELECT ALL - 35 AS col0, COUNT( * ) * - 65 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-35
-585

skipif mysql # not compatible
query II rowsort label-3678
SELECT ALL - 35 AS col0, COUNT ( * ) * - 65 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-35
-585

query III rowsort
SELECT * FROM tab2 cor0 WHERE NULL >= ( col1 ) - + - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3680
SELECT ALL + 1 * + - COUNT( * ) * + + COUNT( * ) + + 95 * + 17 AS col2 FROM tab2 cor0
----
1606

skipif mysql # not compatible
query I rowsort label-3680
SELECT ALL + 1 * + - COUNT ( * ) * + + COUNT ( * ) + + 95 * + 17 AS col2 FROM tab2 cor0
----
1606

onlyif mysql # aggregate syntax: 
query I rowsort label-3681
SELECT DISTINCT 67 + COUNT( * ) * 57 AS col1 FROM tab1 cor0
----
238

skipif mysql # not compatible
query I rowsort label-3681
SELECT DISTINCT 67 + COUNT ( * ) * 57 AS col1 FROM tab1 cor0
----
238

query I rowsort
SELECT + 43 - - col0 AS col0 FROM tab2 AS cor0
----
107
118
89

query I rowsort
SELECT - col1 - 58 AS col1 FROM tab0 AS cor0
----
-139
-59
-79

query I rowsort
SELECT DISTINCT + col1 + - 97 FROM tab2 AS cor0 WHERE - 11 + - 11 BETWEEN NULL AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 29 + - - col1 + col0 * + col1 col2 FROM tab0 AS cor0
----
1267
1819
69

query I rowsort
SELECT + col2 + 61 + - col2 * - + col1 FROM tab0 AS cor0
----
259
281
3915

onlyif mysql # aggregate syntax: 
query I rowsort label-3687
SELECT SUM( ALL + col2 ) + - COUNT( + 80 ) col2 FROM tab1
----
220

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3687
SELECT SUM ( ALL + col2 ) + - COUNT ( + 80 ) col2 FROM tab1
----
220

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3688
SELECT DISTINCT CAST( + 78 AS SIGNED ) FROM tab0
----
78

skipif mysql # not compatible
query I rowsort label-3688
SELECT DISTINCT CAST ( + 78 AS INTEGER ) FROM tab0
----
78

query II rowsort
SELECT col0 + + + col2, col2 * - 74 AS col2 FROM tab2
----
104
-2960
133
-4292
69
-1702

query I rowsort
SELECT + 99 + - ( + - 33 ) FROM tab0 WHERE + 19 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3691
SELECT DISTINCT - SUM( ALL - - col1 ) FROM tab1
----
-66

skipif mysql # not compatible
query I rowsort label-3691
SELECT DISTINCT - SUM ( ALL - - col1 ) FROM tab1
----
-66

query I rowsort
SELECT DISTINCT 71 AS col1 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3693
SELECT DISTINCT - SUM( - CAST( + 8 AS SIGNED ) ) FROM tab0 AS cor0
----
24

skipif mysql # not compatible
query I rowsort label-3693
SELECT DISTINCT - SUM ( - CAST ( + 8 AS INTEGER ) ) FROM tab0 AS cor0
----
24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3694
SELECT - CAST( NULL AS SIGNED ) / - - 45 * + col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3694
SELECT - CAST ( NULL AS INTEGER ) / - - 45 * + col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3695
SELECT ALL CAST( 32 AS SIGNED ) AS col1 FROM tab1 WHERE - col1 IS NOT NULL
----
32
32
32

skipif mysql # not compatible
query I rowsort label-3695
SELECT ALL CAST ( 32 AS INTEGER ) AS col1 FROM tab1 WHERE - col1 IS NOT NULL
----
32
32
32

query II rowsort
SELECT - - 20 AS col0, col2 AS col2 FROM tab2 cor0
----
20
23
20
40
20
58

query I rowsort
SELECT 56 * + col2 * - col0 AS col1 FROM tab0 AS cor0
----
-39480
-48720
-537768

query I rowsort
SELECT - 47 * - col2 FROM tab1 AS cor0
----
2773
3196
4512

query I rowsort
SELECT DISTINCT - - col0 * + 92 FROM tab2 AS cor0
----
4232
5888
6900

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3700
SELECT ALL + ( + COUNT( * ) ) DIV ( - CAST( MAX( ALL ( col1 ) ) AS SIGNED ) ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3700
SELECT ALL + ( + COUNT ( * ) ) / ( - CAST ( MAX ( ALL ( col1 ) ) AS INTEGER ) ) FROM tab1 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3701
SELECT col2 DIV + - 22 AS col1 FROM tab0 AS cor0
----
-2
-4
0

skipif mysql # not compatible
query I rowsort label-3701
SELECT col2 / + - 22 AS col1 FROM tab0 AS cor0
----
-2
-4
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3702
SELECT DISTINCT col2 DIV 95 AS col0 FROM tab0 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-3702
SELECT DISTINCT col2 / 95 AS col0 FROM tab0 AS cor0
----
0
1

onlyif mysql # aggregate syntax: 
query II rowsort label-3703
SELECT ALL - - 27 AS col1, - COUNT( * ) AS col0 FROM tab1 AS cor0
----
27
-3

skipif mysql # not compatible
query II rowsort label-3703
SELECT ALL - - 27 AS col1, - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
27
-3

query I rowsort
SELECT ALL + col0 * + - col2 AS col1 FROM tab0 AS cor0
----
-705
-870
-9603

onlyif mysql # aggregate syntax: 
query II rowsort label-3705
SELECT DISTINCT MIN( col2 ), + SUM( DISTINCT + col1 ) AS col2 FROM tab2
----
23
195

skipif mysql # not compatible
query II rowsort label-3705
SELECT DISTINCT MIN ( col2 ), + SUM ( DISTINCT + col1 ) AS col2 FROM tab2
----
23
195

query I rowsort
SELECT ALL + col2 AS col0 FROM tab0 WHERE NOT ( NOT NULL NOT BETWEEN ( NULL ) AND + col0 + + - col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col0 col0, + 88 + - ( col2 ) - - 38 FROM tab1
----
-51
30
-85
67
-91
58

onlyif mysql # aggregate syntax: 
query I rowsort label-3708
SELECT DISTINCT - + 69 + - COUNT( * ) FROM tab1 AS cor0
----
-72

skipif mysql # not compatible
query I rowsort label-3708
SELECT DISTINCT - + 69 + - COUNT ( * ) FROM tab1 AS cor0
----
-72

query I rowsort
SELECT DISTINCT - + 2 * + col0 + - col2 + + - col1 AS col0 FROM tab0 AS cor0
----
-158
-205
-294

query I rowsort
SELECT ALL + 54 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to d2364c4ffc09ac2cf1f6fa4d767d8b09

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3711
SELECT * FROM tab1 AS cor0 WHERE + 93 BETWEEN + CAST( NULL AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-3711
SELECT * FROM tab1 AS cor0 WHERE + 93 BETWEEN + CAST ( NULL AS INTEGER ) AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3712
SELECT COUNT( * ) + + ( - CAST( NULL AS SIGNED ) ) - + 36 col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3712
SELECT COUNT ( * ) + + ( - CAST ( NULL AS INTEGER ) ) - + 36 col2 FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3713
SELECT - - COUNT( * ) FROM tab2 AS cor0 WHERE col2 > col0 + - - col0 + + CAST( NULL AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-3713
SELECT - - COUNT ( * ) FROM tab2 AS cor0 WHERE col2 > col0 + - - col0 + + CAST ( NULL AS INTEGER )
----
0

query I rowsort
SELECT + col0 + + col0 * - ( - col0 ) FROM tab0 AS cor0
----
240
7656
9506

query I rowsort
SELECT DISTINCT - col2 FROM tab0 AS cor0 WHERE ( NOT NULL IS NULL )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NOT + col2 NOT BETWEEN 15 / - col2 * col1 AND NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3717
SELECT DISTINCT - - 85 - + COUNT( * ) FROM tab0 AS cor0
----
82

skipif mysql # not compatible
query I rowsort label-3717
SELECT DISTINCT - - 85 - + COUNT ( * ) FROM tab0 AS cor0
----
82

query II rowsort
SELECT ALL 80 AS col0, + 11 * + col0 + col0 + col2 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3719
SELECT MAX( + - col2 ) FROM tab2 cor0
----
-23

skipif mysql # not compatible
query I rowsort label-3719
SELECT MAX ( + - col2 ) FROM tab2 cor0
----
-23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3720
SELECT ALL col2 - + - CAST( - - col2 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
198
20
94

skipif mysql # not compatible
query I rowsort label-3720
SELECT ALL col2 - + - CAST ( - - col2 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
198
20
94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3721
SELECT DISTINCT - 85 * + COUNT( * ) - - - 69 + + MIN( - CAST( col1 AS SIGNED ) ) AS col2 FROM tab0 AS cor0
----
-405

skipif mysql # not compatible
query I rowsort label-3721
SELECT DISTINCT - 85 * + COUNT ( * ) - - - 69 + + MIN ( - CAST ( col1 AS INTEGER ) ) AS col2 FROM tab0 AS cor0
----
-405

onlyif mysql # aggregate syntax: 
query I rowsort label-3722
SELECT DISTINCT + MIN( 83 ) - - - 71 * - - 90 * - - 53 FROM tab2 cor0
----
-338587

skipif mysql # not compatible
query I rowsort label-3722
SELECT DISTINCT + MIN ( 83 ) - - - 71 * - - 90 * - - 53 FROM tab2 cor0
----
-338587

query I rowsort
SELECT ALL - 51 * - - col0 - + ( - col2 ) AS col2 FROM tab2 AS cor0
----
-2323
-3224
-3767

query I rowsort
SELECT - col1 * col0 FROM tab2 WHERE NOT + col2 / + 27 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3725
SELECT DISTINCT MAX( + - 98 ) col0 FROM tab0
----
-98

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3725
SELECT DISTINCT MAX ( + - 98 ) col0 FROM tab0
----
-98

query II rowsort
SELECT ALL col0, col0 + col2 FROM tab1
----
51
147
85
144
91
159

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3727
SELECT ALL col1, CAST( - col0 AS SIGNED ) AS col0 FROM tab1
----
14
-51
47
-91
5
-85

skipif mysql # not compatible
query II rowsort label-3727
SELECT ALL col1, CAST ( - col0 AS INTEGER ) AS col0 FROM tab1
----
14
-51
47
-91
5
-85

query I rowsort
SELECT DISTINCT - 68 FROM tab2 WHERE NOT + + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3729
SELECT ALL SUM( ALL + + col2 ) AS col2 FROM tab2
----
121

skipif mysql # not compatible
query I rowsort label-3729
SELECT ALL SUM ( ALL + + col2 ) AS col2 FROM tab2
----
121

query I rowsort
SELECT - 41 * + + col2 FROM tab2
----
-1640
-2378
-943

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT NULL < 94
----

query I rowsort
SELECT + - col2 * + - 25 AS col0 FROM tab0 AS cor0
----
1175
2475
250

query II rowsort
SELECT ALL + - ( - 96 ) * + + col2 AS col2, + 7 FROM tab1 AS cor0
----
5664
7
6528
7
9216
7

query I rowsort
SELECT ALL + 2 AS col1 FROM tab0
----
2
2
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3735
SELECT ALL + CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-3735
SELECT ALL + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # aggregate syntax: 
query II rowsort label-3736
SELECT DISTINCT MAX( - col0 ) AS col0, MAX( + 22 ) FROM tab0
----
-15
22

skipif mysql # not compatible
query II rowsort label-3736
SELECT DISTINCT MAX ( - col0 ) AS col0, MAX ( + 22 ) FROM tab0
----
-15
22

onlyif mysql # aggregate syntax: 
query I rowsort label-3737
SELECT ALL - COUNT( * ) + 29 AS col2 FROM tab0, tab0 cor0
----
20

skipif mysql # not compatible
query I rowsort label-3737
SELECT ALL - COUNT ( * ) + 29 AS col2 FROM tab0, tab0 cor0
----
20

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 64 * + - col0 >= + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3739
SELECT - COUNT( ALL + col1 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3739
SELECT - COUNT ( ALL + col1 ) FROM tab1 AS cor0
----
-3

query I rowsort
SELECT + 46 + - + col2 AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-13
-22
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-3741
SELECT DISTINCT + + COUNT( DISTINCT + + 60 ) * 24 AS col0 FROM tab2 AS cor0
----
24

skipif mysql # not compatible
query I rowsort label-3741
SELECT DISTINCT + + COUNT ( DISTINCT + + 60 ) * 24 AS col0 FROM tab2 AS cor0
----
24

query I rowsort
SELECT ( - 39 ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT + ( col0 ) * + + 7 FROM tab2 AS cor0
----
322
448
525

query II rowsort
SELECT + + col1 * ( - col2 ) + + 68, + 25 AS col1 FROM tab2 AS cor0
----
-1105
25
-3012
25
-3818
25

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3745
SELECT ALL CAST( NULL AS SIGNED ), + 92 AS col1 FROM tab1
----
NULL
92
NULL
92
NULL
92

skipif mysql # not compatible
query II rowsort label-3745
SELECT ALL CAST ( NULL AS INTEGER ), + 92 AS col1 FROM tab1
----
NULL
92
NULL
92
NULL
92

query I rowsort
SELECT ALL - col0 * - col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
1215
1827
97

query I rowsort
SELECT 22 * + - col2 AS col1 FROM tab2
----
-1276
-506
-880

onlyif mysql # aggregate syntax: 
query I rowsort label-3748
SELECT DISTINCT ( COUNT( * ) ) AS col1 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-3748
SELECT DISTINCT ( COUNT ( * ) ) AS col1 FROM tab0
----
3

query I rowsort
SELECT - 14 + - - 65 * + + col2 * - col1 FROM tab2
----
-200214
-252604
-76259

onlyif mysql # aggregate syntax: 
query I rowsort label-3750
SELECT - 32 + + COUNT( * ) FROM tab1
----
-29

skipif mysql # not compatible
query I rowsort label-3750
SELECT - 32 + + COUNT ( * ) FROM tab1
----
-29

query I rowsort
SELECT DISTINCT + ( ( - col1 ) ) + - + 79 FROM tab1 AS cor0
----
-126
-84
-93

query II rowsort
SELECT - col0 * col2 + + - col1 AS col1, + col0 FROM tab2 AS cor0
----
-1109
46
-2637
64
-4417
75

query I rowsort
SELECT DISTINCT ( - + ( col2 ) ) FROM tab2 AS cor0
----
-23
-40
-58

query III rowsort
SELECT * FROM tab1 WHERE + col2 * - + ( col2 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3755
SELECT ALL 6 + + COUNT( * ) AS col1 FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-3755
SELECT ALL 6 + + COUNT ( * ) AS col1 FROM tab0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-3756
SELECT - COUNT( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
-9

skipif mysql # not compatible
query I rowsort label-3756
SELECT - COUNT ( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 73 * col2 col2 FROM tab0
----
3431
7227
730

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 - + + col0 col1 FROM tab1
----
-37
-44
-80

query I rowsort
SELECT - 32 - + col0 + + - 69 + + 6 * - col1 * - + col1 AS col2 FROM tab1 cor0
----
-36
1024
13062

onlyif mysql # aggregate syntax: 
query I rowsort label-3760
SELECT + SUM( + col2 ) - + + 72 AS col2 FROM tab1 AS cor0
----
151

skipif mysql # not compatible
query I rowsort label-3760
SELECT + SUM ( + col2 ) - + + 72 AS col2 FROM tab1 AS cor0
----
151

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 + + 29 col1, - col1 FROM tab2 cor0
----
-11
-77
-29
-67
6
-51

query I rowsort
SELECT ALL + + 66 FROM tab0 AS cor0 WHERE + 18 * - - col0 > NULL
----

query I rowsort
SELECT - col2 * col1 + - + col0 * 0 + 89 * col0 AS col2 FROM tab0 cor0 WHERE NOT 69 IS NULL
----
-2472
7533
8534

query II rowsort
SELECT ALL - col0, + col2 + col2 AS col1 FROM tab1 AS cor0
----
-51
192
-85
118
-91
136

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + + ( + col0 ) NOT BETWEEN - + 61 AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL IN ( - 97 )
----

query I rowsort
SELECT + 82 FROM tab2 WHERE NOT ( NOT col2 BETWEEN NULL AND 13 )
----

query I rowsort
SELECT ALL + + col2 + + + col2 + - 62 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-16
18
54

onlyif mysql # DIV for integer division: 
query I rowsort label-3769
SELECT - + col1 DIV - col0 + + + 71 AS col0 FROM tab2 AS cor0
----
71
72
72

skipif mysql # not compatible
query I rowsort label-3769
SELECT - + col1 / - col0 + + + 71 AS col0 FROM tab2 AS cor0
----
71
72
72

query I rowsort
SELECT DISTINCT - 64 FROM tab1 cor0 WHERE col0 IS NULL
----

query I rowsort
SELECT + col0 FROM tab2 WHERE NOT 30 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE col1 BETWEEN col0 AND NULL
----

query I rowsort
SELECT + + col1 + - 61 + + col0 FROM tab2 AS cor0
----
36
80
81

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL <> col2
----

query I rowsort
SELECT - - 20 + - col2 FROM tab1 cor0
----
-39
-48
-76

query I rowsort
SELECT + col2 * - col0 + + col1 + + col0 FROM tab0 AS cor0
----
-609
-762
-9505

onlyif mysql # aggregate syntax: 
query I rowsort label-3777
SELECT + 93 + - COUNT( * ) FROM tab0 cor0
----
90

skipif mysql # not compatible
query I rowsort label-3777
SELECT + 93 + - COUNT ( * ) FROM tab0 cor0
----
90

query II rowsort
SELECT + col2, col2 FROM tab1 WHERE ( + col1 ) <= col1 - col1 * + col0
----

query I rowsort
SELECT ALL - 74 * - - col1 * + - col1 AS col2 FROM tab1
----
14504
163466
1850

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE 20 * + + 5 + + ( col0 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3781
SELECT ALL - 73 + + COUNT( * ) FROM tab2
----
-70

skipif mysql # not compatible
query I rowsort label-3781
SELECT ALL - 73 + + COUNT ( * ) FROM tab2
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-3782
SELECT + COUNT( * ) * + 2 FROM tab2
----
6

skipif mysql # not compatible
query I rowsort label-3782
SELECT + COUNT ( * ) * + 2 FROM tab2
----
6

query I rowsort
SELECT DISTINCT + col2 * ( - + col2 ) + - col0 FROM tab1
----
-3566
-4715
-9267

query I rowsort
SELECT - col2 * - + col2 * + - 44 - + col0 - ( - 19 ) AS col1 FROM tab2 AS cor0
----
-148072
-23303
-70445

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3785
SELECT ALL + 49 * 6 - col0 + + CAST( - ( - ( 31 ) ) AS SIGNED ) AS col1 FROM tab1 AS cor0
----
234
240
274

skipif mysql # not compatible
query I rowsort label-3785
SELECT ALL + 49 * 6 - col0 + + CAST ( - ( - ( 31 ) ) AS INTEGER ) AS col1 FROM tab1 AS cor0
----
234
240
274

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-3786
SELECT CAST( col2 AS SIGNED ), - CAST( col0 AS DECIMAL ) FROM tab2 WHERE - col0 <= NULL
----

skipif mysql # not compatible
query II rowsort label-3786
SELECT CAST ( col2 AS INTEGER ), - CAST ( col0 AS REAL ) FROM tab2 WHERE - col0 <= NULL
----

query I rowsort
SELECT ( - 14 ) + col1 * - - col2 * + 58 AS col0 FROM tab0
----
12166
220792
5728

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1 cor1 WHERE ( NULL ) >= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3789
SELECT ALL col0 DIV - col0 col1 FROM tab0
----
-1
-1
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3789
SELECT ALL col0 / - col0 col1 FROM tab0
----
-1
-1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3790
SELECT - COUNT( * ) + - - 46 + + + 91 FROM tab0
----
134

skipif mysql # not compatible
query I rowsort label-3790
SELECT - COUNT ( * ) + - - 46 + + + 91 FROM tab0
----
134

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3791
SELECT ALL - CAST( NULL AS SIGNED ) / - col0 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3791
SELECT ALL - CAST ( NULL AS INTEGER ) / - col0 AS col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT - col2 * 56 FROM tab2 AS cor0
----
-1288
-2240
-3248

query I rowsort
SELECT - col0 * + - col2 AS col2 FROM tab0 AS cor0
----
705
870
9603

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - ( - col2 ) IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE + col2 / + col2 + col0 + - + 44 * - - col1 + ( - - 83 ) > 61 + + col0
----

query I rowsort
SELECT - ( ( + 51 ) ) AS col2 FROM tab2
----
-51
-51
-51

query I rowsort
SELECT ALL 1 * col2 * - col2 FROM tab2
----
-1600
-3364
-529

query II rowsort
SELECT col1 AS col0, + 86 * + 45 AS col2 FROM tab0
----
1
3870
21
3870
81
3870

query I rowsort
SELECT ALL - col1 * + - 92 * + 81 AS col1 FROM tab2
----
380052
499284
573804

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3800
SELECT ALL - 39 DIV - - COUNT( * ) AS col2, MAX( DISTINCT - - col0 ) AS col2 FROM tab1
----
-13
91

skipif mysql # not compatible
query II rowsort label-3800
SELECT ALL - 39 / - - COUNT ( * ) AS col2, MAX ( DISTINCT - - col0 ) AS col2 FROM tab1
----
-13
91

query I rowsort
SELECT DISTINCT 35 AS col0 FROM tab2 WHERE col0 IN ( - col2 * + 2, + 65 * 0 * + 13, col2 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3802
SELECT DISTINCT ( + ( - 99 ) ) DIV - COUNT( * ) AS col0, + COUNT( * ) AS col2 FROM tab1
----
33
3

skipif mysql # not compatible
query II rowsort label-3802
SELECT DISTINCT ( + ( - 99 ) ) / - COUNT ( * ) AS col0, + COUNT ( * ) AS col2 FROM tab1
----
33
3

query I rowsort
SELECT ALL - - col2 AS col2 FROM tab2 AS cor0 WHERE NOT col0 * + col0 + + - col0 <> 77
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - + col2 - - + 9 col0 FROM tab0 AS cor0
----
-696
-861
-9594

query I rowsort
SELECT - col1 AS col0 FROM tab2 AS cor0 WHERE NOT ( NOT + + col2 IS NULL )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + col1 + + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3807
SELECT - ( - MAX( + col0 ) ) AS col0 FROM tab0 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-3807
SELECT - ( - MAX ( + col0 ) ) AS col0 FROM tab0 AS cor0
----
97

query I rowsort
SELECT + 95 FROM tab0 AS cor0 WHERE 22 / 87 = NULL
----

query I rowsort
SELECT ALL + 38 AS col2 FROM tab2 cor0
----
38
38
38

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 3 <= col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3811
SELECT + CAST( + col0 AS SIGNED ), col2 + col1 AS col1 FROM tab1 AS cor0
----
51
110
85
64
91
115

skipif mysql # not compatible
query II rowsort label-3811
SELECT + CAST ( + col0 AS INTEGER ), col2 + col1 AS col1 FROM tab1 AS cor0
----
51
110
85
64
91
115

onlyif mysql # aggregate syntax: 
query I rowsort label-3812
SELECT + 73 + + - COUNT( * ) AS col1 FROM tab0
----
70

skipif mysql # not compatible
query I rowsort label-3812
SELECT + 73 + + - COUNT ( * ) AS col1 FROM tab0
----
70

query I rowsort
SELECT col1 + + ( + - ( - ( - col0 ) ) ) * + 25 AS col0 FROM tab0
----
-2154
-2424
-294

query III rowsort
SELECT * FROM tab2 WHERE NULL NOT BETWEEN ( + col1 ) AND 69
----

query I rowsort
SELECT col1 + - + 39 AS col2 FROM tab1
----
-25
-34
8

query I rowsort
SELECT 96 + col1 + + - col2 FROM tab0
----
-2
107
130

onlyif mysql # aggregate syntax: 
query I rowsort label-3817
SELECT ALL + MIN( - col1 ) FROM tab2
----
-77

skipif mysql # not compatible
query I rowsort label-3817
SELECT ALL + MIN ( - col1 ) FROM tab2
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-3818
SELECT 55 + ( COUNT( * ) ) FROM tab1
----
58

skipif mysql # not compatible
query I rowsort label-3818
SELECT 55 + ( COUNT ( * ) ) FROM tab1
----
58

query I rowsort
SELECT ALL - + 95 FROM tab2 AS cor0 WHERE NULL > ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3820
SELECT COUNT( DISTINCT - - 8 ) FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-3820
SELECT COUNT ( DISTINCT - - 8 ) FROM tab0 AS cor0
----
1

query III rowsort
SELECT * FROM tab0 WHERE col2 + 58 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 WHERE NOT + 44 * 74 IS NOT NULL
----

query I rowsort
SELECT ALL ( + col2 ) FROM tab1 WHERE NOT NULL IS NOT NULL
----
59
68
96

query I rowsort
SELECT - 67 - + 31 * - col2 AS col1 FROM tab0 WHERE NOT NULL NOT IN ( col2 / - col2 + + col2 / + col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3825
SELECT ALL col0 * - 68 + - CAST( col2 AS SIGNED ) AS col2 FROM tab0
----
-1067
-5926
-6695

skipif mysql # not compatible
query I rowsort label-3825
SELECT ALL col0 * - 68 + - CAST ( col2 AS INTEGER ) AS col2 FROM tab0
----
-1067
-5926
-6695

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3826
SELECT DISTINCT - 86 * COUNT( * ) AS col2 FROM tab2 WHERE - 7 * col1 - + col2 NOT BETWEEN NULL AND col2 - CAST( NULL AS SIGNED ) * col1
----
0

skipif mysql # not compatible
query I rowsort label-3826
SELECT DISTINCT - 86 * COUNT ( * ) AS col2 FROM tab2 WHERE - 7 * col1 - + col2 NOT BETWEEN NULL AND col2 - CAST ( NULL AS INTEGER ) * col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3827
SELECT col0 DIV 5 FROM tab0
----
17
19
3

skipif mysql # not compatible
query I rowsort label-3827
SELECT col0 / 5 FROM tab0
----
17
19
3

onlyif mysql # DIV for integer division: 
query I rowsort label-3828
SELECT 21 DIV + 49 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3828
SELECT 21 / + 49 FROM tab2
----
0
0
0

query I rowsort
SELECT - 43 - + col0 AS col2 FROM tab0
----
-130
-140
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-3830
SELECT ALL SUM( DISTINCT - ( 91 ) ) AS col2 FROM tab2
----
-91

skipif mysql # not compatible
query I rowsort label-3830
SELECT ALL SUM ( DISTINCT - ( 91 ) ) AS col2 FROM tab2
----
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3831
SELECT DISTINCT CAST( NULL AS SIGNED ) + + 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-3831
SELECT DISTINCT CAST ( NULL AS INTEGER ) + + CAST ( NULL AS INTEGER ) col2 FROM tab1
----
NULL

query I rowsort
SELECT ALL - 11 FROM tab1 WHERE - col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3833
SELECT ALL + MIN( 46 ) AS col1 FROM tab2
----
46

skipif mysql # not compatible
query I rowsort label-3833
SELECT ALL + MIN ( 46 ) AS col1 FROM tab2
----
46

query I rowsort
SELECT + ( - 69 ) AS col0 FROM tab2
----
-69
-69
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-3835
SELECT DISTINCT + MIN( ALL col2 ) FROM tab1
----
59

skipif mysql # not compatible
query I rowsort label-3835
SELECT DISTINCT + MIN ( ALL col2 ) FROM tab1
----
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3836
SELECT + ( CAST( NULL AS SIGNED ) ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3836
SELECT + ( CAST ( NULL AS INTEGER ) ) FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3837
SELECT ALL - CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3837
SELECT ALL - CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT - col2 / 1 FROM tab2 WHERE NOT col2 > - 12
----

query I rowsort
SELECT DISTINCT - 22 FROM tab2 WHERE NOT ( NULL ) IS NOT NULL
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-3840
SELECT COUNT( ALL col0 ) + 19 * COUNT( * ) AS col0 FROM tab1
----
60

skipif mysql # not compatible
query I rowsort label-3840
SELECT COUNT ( ALL col0 ) + 19 * COUNT ( * ) AS col0 FROM tab1
----
60

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( 35 + col0 ) < ( col2 )
----
85
5
59
91
47
68

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( 47 ) <> ( col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3843
SELECT * FROM tab2 WHERE NOT + col1 < CAST( + col0 AS SIGNED ) + - 43 * - col1
----

skipif mysql # not compatible
query III rowsort label-3843
SELECT * FROM tab2 WHERE NOT + col1 < CAST ( + col0 AS INTEGER ) + - 43 * - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3844
SELECT * FROM tab1 WHERE 29 BETWEEN ( NULL ) AND - col2 + + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-3844
SELECT * FROM tab1 WHERE 29 BETWEEN ( NULL ) AND - col2 + + CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3845
SELECT - SUM( ALL col0 ) FROM tab2
----
-185

skipif mysql # not compatible
query I rowsort label-3845
SELECT - SUM ( ALL col0 ) FROM tab2
----
-185

onlyif mysql # aggregate syntax: 
query I rowsort label-3846
SELECT DISTINCT - 2 - COUNT( * ) * - MAX( + col1 * col1 ) AS col1 FROM tab1
----
6625

skipif mysql # not compatible
query I rowsort label-3846
SELECT DISTINCT - 2 - COUNT ( * ) * - MAX ( + col1 * col1 ) AS col1 FROM tab1
----
6625

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3847
SELECT - ( CAST( col1 AS SIGNED ) ) FROM tab1
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-3847
SELECT - ( CAST ( col1 AS INTEGER ) ) FROM tab1
----
-14
-47
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-3848
SELECT 99 * COUNT( * ) AS col1 FROM tab0 cor0
----
297

skipif mysql # not compatible
query I rowsort label-3848
SELECT 99 * COUNT ( * ) AS col1 FROM tab0 cor0
----
297

onlyif mysql # DIV for integer division: 
query I rowsort label-3849
SELECT col0 DIV + 19 col2 FROM tab2 AS cor0
----
2
3
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3849
SELECT col0 / + 19 col2 FROM tab2 AS cor0
----
2
3
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3850
SELECT DISTINCT COUNT( * ) AS col2 FROM tab0 cor0 WHERE - col2 * - CAST( NULL AS SIGNED ) + - 83 * - col1 IN ( + col2 )
----
0

skipif mysql # not compatible
query I rowsort label-3850
SELECT DISTINCT COUNT ( * ) AS col2 FROM tab0 cor0 WHERE - col2 * - CAST ( NULL AS INTEGER ) + - 83 * - col1 IN ( + col2 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3851
SELECT 41 + COUNT( - col2 + 22 ) AS col2 FROM tab1 AS cor0 WHERE NOT col0 / + col1 >= NULL
----
41

skipif mysql # not compatible
query I rowsort label-3851
SELECT 41 + COUNT ( - col2 + 22 ) AS col2 FROM tab1 AS cor0 WHERE NOT col0 / + col1 >= NULL
----
41

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) IN ( + ( - col2 ) )
----

query I rowsort
SELECT ( - 61 ) AS col2 FROM tab2 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT 57 FROM ( tab0 cor0 CROSS JOIN tab2 )
----
57

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3855
SELECT 20 * - CAST( NULL AS DECIMAL ) + + 80 * + COUNT( * ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3855
SELECT 20 * - CAST ( NULL AS REAL ) + + 80 * + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL + 70 * col1 + + 23 FROM tab2 AS cor0
----
3593
4713
5413

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3857
SELECT - col1 + - CAST( col2 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-117
-125
-74

skipif mysql # not compatible
query I rowsort label-3857
SELECT - col1 + - CAST ( col2 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-117
-125
-74

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + 11 * + 55 col0 FROM tab0 AS cor0
----
606
626
686

onlyif mysql # aggregate syntax: 
query I rowsort label-3859
SELECT ALL + - MIN( ALL col0 ) + COUNT( * ) AS col2 FROM tab2 AS cor0
----
-43

skipif mysql # not compatible
query I rowsort label-3859
SELECT ALL + - MIN ( ALL col0 ) + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-43

query I rowsort
SELECT ALL col0 + 78 AS col1 FROM tab1 AS cor0
----
129
163
169

query I rowsort
SELECT - - 11 + col0 AS col2 FROM tab2 AS cor0
----
57
75
86

onlyif mysql # aggregate syntax: 
query I rowsort label-3862
SELECT ALL 69 * + COUNT( * ) + + 90 FROM tab1 AS cor0
----
297

skipif mysql # not compatible
query I rowsort label-3862
SELECT ALL 69 * + COUNT ( * ) + + 90 FROM tab1 AS cor0
----
297

query I rowsort
SELECT DISTINCT 55 + col2 FROM tab0 cor0
----
102
154
65

query I rowsort
SELECT + - col1 + + col2 * col1 AS col1 FROM tab0 AS cor0
----
189
3726
98

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( + 45 ) NOT BETWEEN - col0 + + col0 / col1 AND ( NULL )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL IN ( col2 / 51 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3867
SELECT ALL + MAX( ALL 99 ) DIV - 34 FROM tab2 AS cor0
----
-2

skipif mysql # not compatible
query I rowsort label-3867
SELECT ALL + MAX ( ALL 99 ) / - 34 FROM tab2 AS cor0
----
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3868
SELECT DISTINCT + CAST( NULL AS SIGNED ) FROM tab1 AS cor0 WHERE NOT + col2 * - 83 + - ( col0 ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-3868
SELECT DISTINCT + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 WHERE NOT + col2 * - 83 + - ( col0 ) IS NOT NULL
----

query I rowsort
SELECT - 33 * col0 FROM tab1 AS cor0
----
-1683
-2805
-3003

query I rowsort
SELECT DISTINCT col0 * - 45 + 39 AS col1 FROM tab2 AS cor0
----
-2031
-2841
-3336

query I rowsort
SELECT 66 * ( - col0 ) FROM tab2 WHERE col1 + + 64 IS NOT NULL
----
-3036
-4224
-4950

query I rowsort
SELECT col2 * + 65 AS col2 FROM tab1
----
3835
4420
6240

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3873
SELECT + MAX( DISTINCT col0 ) FROM tab2 WHERE + CAST( NULL AS SIGNED ) NOT IN ( - col2 + - col0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3873
SELECT + MAX ( DISTINCT col0 ) FROM tab2 WHERE + CAST ( NULL AS INTEGER ) NOT IN ( - col2 + - col0 )
----
NULL

query I rowsort
SELECT - col2 - - + col0 AS col2 FROM tab1
----
-45
23
26

query I rowsort
SELECT DISTINCT col2 AS col2 FROM tab1 WHERE NOT NULL < ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 - - - ( col2 ) col1 FROM tab1 AS cor0
----
-21
-54
-82

query I rowsort
SELECT 26 + - 92 AS col2 FROM tab2 AS cor0
----
-66
-66
-66

query IIIIII rowsort
SELECT * FROM tab2 cor0 CROSS JOIN tab0 AS cor1 WHERE 58 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3879
SELECT + COUNT( * ) FROM tab2 AS cor0 WHERE NOT + col0 - col0 + + col2 > NULL
----
0

skipif mysql # not compatible
query I rowsort label-3879
SELECT + COUNT ( * ) FROM tab2 AS cor0 WHERE NOT + col0 - col0 + + col2 > NULL
----
0

query II rowsort
SELECT ALL + col0 AS col1, 11 + + col2 * - 11 AS col1 FROM tab2 AS cor0
----
46
-242
64
-429
75
-627

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + 82 * col2 - col0 <= NULL
----

query I rowsort
SELECT DISTINCT + col2 * 88 FROM tab0 AS cor0
----
4136
8712
880

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3883
SELECT DISTINCT - 88 * + col0 * - 88 + - col1 / CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3883
SELECT DISTINCT - 88 * + col0 * - 88 + - col1 / CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN col0 AND + + col0 + + col0 * col2
----

query II rowsort
SELECT ALL - col1, - 23 AS col1 FROM tab1 cor0
----
-14
-23
-47
-23
-5
-23

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3886
SELECT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN CAST( + col0 AS SIGNED ) - 27 AND ( col2 * + col1 )
----

skipif mysql # not compatible
query III rowsort label-3886
SELECT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN CAST ( + col0 AS INTEGER ) - 27 AND ( col2 * + col1 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3887
SELECT DISTINCT col2 * col2 * + + CAST( NULL AS DECIMAL ) * 63 AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3887
SELECT DISTINCT col2 * col2 * + + CAST ( NULL AS REAL ) * 63 AS col2 FROM tab1
----
NULL

query I rowsort
SELECT ALL col2 AS col1 FROM tab0 WHERE + + 54 IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT ( - - 81 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab2 WHERE ( - 50 ) < NULL
----

query I rowsort
SELECT 29 FROM tab0 WHERE NOT + - ( + col1 ) IS NULL
----
29
29
29

query I rowsort
SELECT - 81 FROM tab0 WHERE NOT + - col2 IS NOT NULL
----

query I rowsort
SELECT - col1 * - col0 * col0 AS col2 FROM tab1
----
36125
36414
389207

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL <> + col1
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col1 = NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col2 * + 37 / 2 * 92 IN ( + 53 + col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT NULL < + col2 + 83 + + 31 / - 19
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3898
SELECT DISTINCT + col1 DIV + 40 + + col0 + + - col1 + + 71 FROM tab2 AS cor0
----
59
67
80

skipif mysql # not compatible
query I rowsort label-3898
SELECT DISTINCT + col1 / + 40 + + col0 + + - col1 + + 71 FROM tab2 AS cor0
----
59
67
80

query II rowsort
SELECT DISTINCT + 21 AS col1, 17 * - 89 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
21
-1513

onlyif mysql # aggregate syntax: 
query I rowsort label-3900
SELECT - MIN( ALL 87 ) AS col2 FROM tab1
----
-87

skipif mysql # not compatible
query I rowsort label-3900
SELECT - MIN ( ALL 87 ) AS col2 FROM tab1
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-3901
SELECT ALL - + MAX( 78 ) + - 73 - 93 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
-244

skipif mysql # not compatible
query I rowsort label-3901
SELECT ALL - + MAX ( 78 ) + - 73 - 93 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
-244

query I rowsort
SELECT ALL col1 + 86 AS col0 FROM tab1 AS cor0
----
100
133
91

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3903
SELECT DISTINCT + + ( + CAST( NULL AS SIGNED ) ) + + + 22 AS col2, col0 FROM tab0 cor0
----
NULL
15
NULL
87
NULL
97

skipif mysql # not compatible
query II rowsort label-3903
SELECT DISTINCT + + ( + CAST ( NULL AS INTEGER ) ) + + + 22 AS col2, col0 FROM tab0 cor0
----
NULL
15
NULL
87
NULL
97

query I rowsort
SELECT ALL + col0 FROM tab0 AS cor0 WHERE NULL BETWEEN - col2 - col1 AND + col0 + - col1
----

query I rowsort
SELECT ALL col0 + 87 * + col2 AS col1 FROM tab2 AS cor0
----
2047
3544
5121

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3906
SELECT - col0 + - + col1 + CAST( + 75 AS SIGNED ) col0, + ( + col1 ) FROM tab0
----
-21
81
-23
1
-33
21

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3906
SELECT - col0 + - + col1 + CAST ( + 75 AS INTEGER ) col0, + ( + col1 ) FROM tab0
----
-21
81
-23
1
-33
21

onlyif mysql # aggregate syntax: 
query I rowsort label-3907
SELECT SUM( col1 ) + + + SUM( ( col0 ) ) FROM tab0
----
302

skipif mysql # not compatible
query I rowsort label-3907
SELECT SUM ( col1 ) + + + SUM ( ( col0 ) ) FROM tab0
----
302

query I rowsort
SELECT ALL - col0 AS col0 FROM tab1 WHERE NOT + col2 IS NULL
----
-51
-85
-91

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( + col1 / col2 + - col1 / + 25 ) BETWEEN NULL AND - 51 + col1
----
87
21
10
97
1
99

query I rowsort
SELECT col1 FROM tab1 WHERE ( ( 83 ) IS NOT NULL )
----
14
47
5

query I rowsort
SELECT col0 + - col1 * + 37 AS col1 FROM tab0
----
-2982
-690
60

query I rowsort
SELECT DISTINCT col1 FROM tab2 WHERE NOT ( NULL ) BETWEEN + col2 AND + 17
----

query I rowsort
SELECT ALL ( - + 58 ) FROM tab2, tab1 AS cor0
----
9 values hashing to de0811e670e75d2aeeb657e32bddb0c0

query I rowsort
SELECT ALL + 49 + - 21 AS col0 FROM tab0 cor0
----
28
28
28

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( col1 / + col0 + - col0 ) NOT BETWEEN ( col0 ) AND + col1 - + col1
----

query I rowsort
SELECT ALL - col1 AS col2 FROM tab2 AS cor0 WHERE ( NULL ) IN ( - - 93, - 45 )
----

query I rowsort
SELECT col0 FROM tab0 AS cor0 WHERE NOT col0 * + - col0 + col1 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + + 77 FROM tab2 WHERE + 6 * - + col2 + - col2 * 67 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3919
SELECT SUM( + col0 ) * - SUM( ALL - + col2 ) + + + 77 AS col1 FROM tab0 AS cor0
----
31121

skipif mysql # not compatible
query I rowsort label-3919
SELECT SUM ( + col0 ) * - SUM ( ALL - + col2 ) + + + 77 AS col1 FROM tab0 AS cor0
----
31121

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3920
SELECT DISTINCT CAST( NULL AS SIGNED ) * col0 * 41 AS col1 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3920
SELECT DISTINCT CAST ( NULL AS INTEGER ) * col0 * 41 AS col1 FROM tab1 cor0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3921
SELECT + 4 * - 99 DIV + MAX( ALL + + col1 ) FROM tab0 AS cor0
----
-4

skipif mysql # not compatible
query I rowsort label-3921
SELECT + 4 * - 99 / + MAX ( ALL + + col1 ) FROM tab0 AS cor0
----
-4

query I rowsort
SELECT ALL + ( 58 ) FROM tab1 AS cor0
----
58
58
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3923
SELECT + - col0 * - col2 * CAST( + 20 AS SIGNED ) FROM tab2 AS cor0
----
21160
51200
87000

skipif mysql # not compatible
query I rowsort label-3923
SELECT + - col0 * - col2 * CAST ( + 20 AS INTEGER ) FROM tab2 AS cor0
----
21160
51200
87000

onlyif mysql # DIV for integer division: 
query I rowsort label-3924
SELECT - + col0 DIV - col1 col2 FROM tab0 AS cor0
----
0
4
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3924
SELECT - + col0 / - col1 col2 FROM tab0 AS cor0
----
0
4
97

query I rowsort
SELECT DISTINCT - - 93 AS col1 FROM tab2 AS cor0
----
93

query I rowsort
SELECT - 75 * + + col0 + + col1 AS col0 FROM tab0
----
-1044
-6504
-7274

query I rowsort
SELECT 43 + - col1 FROM tab1
----
-4
29
38

query II rowsort
SELECT DISTINCT col0 AS col0, + 27 AS col2 FROM tab1
----
51
27
85
27
91
27

onlyif mysql # DIV for integer division: 
query II rowsort label-3929
SELECT + + col2 - - + 14 DIV + - 59, - col2 AS col0 FROM tab1 WHERE NOT - col2 IS NULL
----
59
-59
68
-68
96
-96

skipif mysql # not compatible
query II rowsort label-3929
SELECT + + col2 - - + 14 / + - 59, - col2 AS col0 FROM tab1 WHERE NOT - col2 IS NULL
----
59
-59
68
-68
96
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-3930
SELECT - + MIN( - col2 ) + + + COUNT( col1 ) AS col1 FROM tab0 WHERE NOT NULL >= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3930
SELECT - + MIN ( - col2 ) + + + COUNT ( col1 ) AS col1 FROM tab0 WHERE NOT NULL >= NULL
----
NULL

query I rowsort
SELECT ALL + 62 * + col0 + col2 AS col2 FROM tab2
----
2875
4008
4708

query I rowsort
SELECT DISTINCT - col0 FROM tab1 WHERE NULL BETWEEN + 44 AND ( NULL )
----

query II rowsort
SELECT + col1 * - - col0 * + + col0 + col1, 56 / - 61 + col1 AS col0 FROM tab0 WHERE NOT NULL < NULL
----

query I rowsort
SELECT DISTINCT - 34 + col0 FROM tab2
----
12
30
41

query II rowsort
SELECT + 82 AS col2, - col2 AS col2 FROM tab1 cor0
----
82
-59
82
-68
82
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-3936
SELECT DISTINCT - + COUNT( * ) + - COUNT( * ) AS col1 FROM tab1 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-3936
SELECT DISTINCT - + COUNT ( * ) + - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 17 * col1 col2 FROM tab1 AS cor0
----
-238
-799
-85

query I rowsort
SELECT - col1 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-3939
SELECT COUNT( * ) AS col2 FROM tab0 WHERE + col0 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3939
SELECT COUNT ( * ) AS col2 FROM tab0 WHERE + col0 IS NULL
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col0 * + col2 + + + 29 NOT BETWEEN - col1 + + 55 AND - - 94 / col2 + + 30
----

query I rowsort
SELECT col0 * - + 19 * + 46 + + 81 FROM tab2
----
-40123
-55855
-65469

query I rowsort
SELECT col2 + + 93 * ( - 60 ) FROM tab0
----
-5481
-5533
-5570

query I rowsort
SELECT 60 + ( col0 ) * - - 86 * - - col1 FROM tab0
----
104550
157182
8402

query I rowsort
SELECT DISTINCT + 66 * - col0 FROM tab2 AS cor0
----
-3036
-4224
-4950

query I rowsort
SELECT ALL col0 - col0 + - + col0 AS col2 FROM tab0 AS cor0
----
-15
-87
-97

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 7 / + + 75 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 76 * - - col2 FROM tab2 AS cor0 WHERE + 26 * 99 IS NULL
----

query I rowsort
SELECT ALL + + col0 FROM tab0 AS cor0 WHERE NOT - 42 IS NULL
----
15
87
97

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col1 - + col2 * - col0 + + col0 IS NOT NULL OR NULL IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - col0 + col0 AS col2 FROM tab1 WHERE + col1 + + col0 <> + ( - col1 )
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3951
SELECT DISTINCT MIN( DISTINCT + col0 ) FROM tab2
----
46

skipif mysql # not compatible
query I rowsort label-3951
SELECT DISTINCT MIN ( DISTINCT + col0 ) FROM tab2
----
46

query I rowsort
SELECT col0 - + ( col2 ) * + + col1 * - + 71 AS col2 FROM tab0
----
14997
270312
7126

onlyif mysql # aggregate syntax: 
query I rowsort label-3953
SELECT + COUNT( ALL col2 ) - + - COUNT( * ) FROM tab2
----
6

skipif mysql # not compatible
query I rowsort label-3953
SELECT + COUNT ( ALL col2 ) - + - COUNT ( * ) FROM tab2
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3954
SELECT ALL - 1 * - + CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3954
SELECT ALL - 1 * - + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3955
SELECT ( - 90 ) * + COUNT( * ) col1 FROM tab0
----
-270

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3955
SELECT ( - 90 ) * + COUNT ( * ) col1 FROM tab0
----
-270

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + 28 * 31 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3957
SELECT - - SUM( col0 ) AS col0, - 46 FROM tab1 WHERE NOT CAST( - + 18 AS SIGNED ) = NULL
----
NULL
-46

skipif mysql # not compatible
query II rowsort label-3957
SELECT - - SUM ( col0 ) AS col0, - 46 FROM tab1 WHERE NOT CAST ( - + 18 AS INTEGER ) = NULL
----
NULL
-46

query I rowsort
SELECT col0 * - 55 * + - col0 AS col1 FROM tab1
----
143055
397375
455455

query I rowsort
SELECT ALL - 64 * col2 * + col1 AS col2 FROM tab1
----
-18880
-204544
-86016

onlyif mysql # aggregate syntax: 
query I rowsort label-3960
SELECT + MAX( + + col2 ) * - 38 FROM tab2 AS cor0
----
-2204

skipif mysql # not compatible
query I rowsort label-3960
SELECT + MAX ( + + col2 ) * - 38 FROM tab2 AS cor0
----
-2204

onlyif mysql # DIV for integer division: 
query I rowsort label-3961
SELECT DISTINCT - ( + 60 ) DIV - 47 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-3961
SELECT DISTINCT - ( + 60 ) / - 47 FROM tab0 AS cor0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-3962
SELECT + ( col0 ) * - 33 * + + col2 + + col2 DIV 48 AS col1 FROM tab2 AS cor0
----
-143549
-34914
-84480

skipif mysql # not compatible
query I rowsort label-3962
SELECT + ( col0 ) * - 33 * + + col2 + + col2 / 48 AS col1 FROM tab2 AS cor0
----
-143549
-34914
-84480

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT col2 / + 30 IN ( - col1, 70 + - col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT DISTINCT - + col0 AS col0, col1 * + col0 - + col0 + - - col1 * col2 FROM tab2 AS cor0
----
-46
3473
-64
7944
-75
8836

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col1 + + 13 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT + 32 AS col1, col0 FROM tab2 cor0
----
32
46
32
64
32
75

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col1 * - col0 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3968
SELECT - CAST( + COUNT( * ) AS SIGNED ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3968
SELECT - CAST ( + COUNT ( * ) AS INTEGER ) FROM tab0 AS cor0
----
-3

query II rowsort
SELECT DISTINCT + col2 AS col2, - 72 AS col1 FROM tab1 cor0
----
59
-72
68
-72
96
-72

query I rowsort
SELECT DISTINCT - col1 FROM tab2 AS cor0 WHERE NULL <> col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3971
SELECT COUNT( + 55 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-3971
SELECT COUNT ( + 55 ) FROM tab1
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3972
SELECT * FROM tab2 WHERE - col0 * - + CAST( + 85 AS SIGNED ) BETWEEN - col2 - - ( - 86 ) AND + - col2
----

skipif mysql # not compatible
query III rowsort label-3972
SELECT * FROM tab2 WHERE - col0 * - + CAST ( + 85 AS INTEGER ) BETWEEN - col2 - - ( - 86 ) AND + - col2
----

query I rowsort
SELECT + 48 + + + col0 AS col2 FROM tab0
----
135
145
63

onlyif mysql # DIV for integer division: 
query I rowsort label-3974
SELECT + col2 + + col0 * col0 DIV col0 + - + col1 FROM tab1
----
112
133
139

skipif mysql # not compatible
query I rowsort label-3974
SELECT + col2 + + col0 * col0 / col0 + - + col1 FROM tab1
----
112
133
139

onlyif mysql # aggregate syntax: 
query I rowsort label-3975
SELECT + COUNT( * ) * COUNT( 86 ) + - - 71 AS col1 FROM tab2
----
80

skipif mysql # not compatible
query I rowsort label-3975
SELECT + COUNT ( * ) * COUNT ( 86 ) + - - 71 AS col1 FROM tab2
----
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3976
SELECT - + 8 + + - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3976
SELECT - + 8 + + - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col2 + - 36 FROM tab1 AS cor0
----
23
32
60

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3978
SELECT 53 + - col1 + - ( - - col0 ) * + 20 / + - col1 AS col2 FROM tab2 AS cor0 WHERE - CAST( NULL AS DECIMAL ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-3978
SELECT 53 + - col1 + - ( - - col0 ) * + 20 / + - col1 AS col2 FROM tab2 AS cor0 WHERE - CAST ( NULL AS REAL ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col0 * col0 AS col1 FROM tab2 AS cor0 WHERE + col1 * - col0 + + 69 + + - col1 BETWEEN + 21 AND - 80
----

query I rowsort
SELECT - 21 * + col1 AS col2 FROM tab2
----
-1071
-1407
-1617

query I rowsort
SELECT - - ( - col0 ) - + col0 AS col0 FROM tab1 WHERE NULL BETWEEN NULL AND - col2 * - - col2 * + 41 + + 91 + col2 * - 81 * + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3982
SELECT DISTINCT MIN( DISTINCT - col2 ) FROM tab2 AS cor0 WHERE NULL IS NULL
----
-58

skipif mysql # not compatible
query I rowsort label-3982
SELECT DISTINCT MIN ( DISTINCT - col2 ) FROM tab2 AS cor0 WHERE NULL IS NULL
----
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3983
SELECT DISTINCT 16 + col2 col0 FROM tab2 AS cor0 WHERE - CAST( col0 AS SIGNED ) BETWEEN NULL AND NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3983
SELECT DISTINCT 16 + col2 col0 FROM tab2 AS cor0 WHERE - CAST ( col0 AS INTEGER ) BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL + 79 * - + 7 + - + 64 FROM tab2 AS cor0
----
-617
-617
-617

query I rowsort
SELECT ALL 21 AS col0 FROM tab1 AS cor0 WHERE NULL IS NULL
----
21
21
21

onlyif mysql # aggregate syntax: 
query I rowsort label-3986
SELECT DISTINCT + + COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE + col0 * col0 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3986
SELECT DISTINCT + + COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE + col0 * col0 IS NULL
----
0

query I rowsort
SELECT ALL col2 * - col1 - 36 + col0 FROM tab0 AS cor0
----
-159
-38
-3828

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 77 * col0 + - col0 col2 FROM tab2 AS cor0 WHERE 21 + ( - col1 ) + + - col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3989
SELECT - 35 + col1 + CAST( + 41 AS SIGNED ) FROM tab0
----
27
7
87

skipif mysql # not compatible
query I rowsort label-3989
SELECT - 35 + col1 + CAST ( + 41 AS INTEGER ) FROM tab0
----
27
7
87

onlyif mysql # aggregate syntax: 
query I rowsort label-3990
SELECT - COUNT( * ) + + + 94 FROM tab1
----
91

skipif mysql # not compatible
query I rowsort label-3990
SELECT - COUNT ( * ) + + + 94 FROM tab1
----
91

query I rowsort
SELECT ALL 75 - + 29 + + + 88 + - - col1 AS col1 FROM tab1
----
139
148
181

query II rowsort
SELECT col1 + - - col1, col2 AS col2 FROM tab1
----
10
59
28
96
94
68

onlyif mysql # aggregate syntax: 
query I rowsort label-3993
SELECT DISTINCT COUNT( * ) * + 78 FROM tab0
----
234

skipif mysql # not compatible
query I rowsort label-3993
SELECT DISTINCT COUNT ( * ) * + 78 FROM tab0
----
234

onlyif mysql # aggregate syntax: 
query I rowsort label-3994
SELECT MAX( + 98 ) FROM tab1
----
98

skipif mysql # not compatible
query I rowsort label-3994
SELECT MAX ( + 98 ) FROM tab1
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-3995
SELECT - ( + COUNT( * ) ) * + + SUM( + + ( - col1 ) ) * COUNT( * ) col0 FROM tab0
----
927

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3995
SELECT - ( + COUNT ( * ) ) * + + SUM ( + + ( - col1 ) ) * COUNT ( * ) col0 FROM tab0
----
927

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3996
SELECT * FROM tab2 WHERE NOT NULL <> CAST( - ( col0 ) AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-3996
SELECT * FROM tab2 WHERE NOT NULL <> CAST ( - ( col0 ) AS REAL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3997
SELECT ALL ( - col1 ) * - - 37 AS col1 FROM tab2 WHERE NOT col1 IN ( - - CAST( - ( + 96 ) AS SIGNED ) )
----
-1887
-2479
-2849

skipif mysql # not compatible
query I rowsort label-3997
SELECT ALL ( - col1 ) * - - 37 AS col1 FROM tab2 WHERE NOT col1 IN ( - - CAST ( - ( + 96 ) AS INTEGER ) )
----
-1887
-2479
-2849

query II rowsort
SELECT + col2 * + - col1, - col0 AS col0 FROM tab0
----
-210
-87
-3807
-15
-99
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-3999
SELECT DISTINCT 9 DIV + - ( + + col2 ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-3999
SELECT DISTINCT 9 / + - ( + + col2 ) FROM tab2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4000
SELECT DISTINCT 75 DIV + 1 FROM tab1
----
75

skipif mysql # not compatible
query I rowsort label-4000
SELECT DISTINCT 75 / + 1 FROM tab1
----
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 80 * col1 * - - 11 * - col0 col0 FROM tab1 AS cor0
----
374000
3763760
628320

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4002
SELECT CAST( - 89 AS SIGNED ) * - 26 * - + COUNT( * ) FROM tab1 AS cor0
----
-6942

skipif mysql # not compatible
query I rowsort label-4002
SELECT CAST ( - 89 AS INTEGER ) * - 26 * - + COUNT ( * ) FROM tab1 AS cor0
----
-6942

query I rowsort
SELECT + ( + col1 ) * - + col2 - + - col0 AS col2 FROM tab0 cor0
----
-123
-2
-3792

query I rowsort
SELECT DISTINCT - col1 + 78 FROM tab1 AS cor0
----
31
64
73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4005
SELECT ALL - 6 * - CAST( - 94 AS SIGNED ) + + + 88 AS col2 FROM tab0 AS cor0
----
-476
-476
-476

skipif mysql # not compatible
query I rowsort label-4005
SELECT ALL - 6 * - CAST ( - 94 AS INTEGER ) + + + 88 AS col2 FROM tab0 AS cor0
----
-476
-476
-476

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-4006
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( - - CAST( CAST( NULL AS DECIMAL ) AS SIGNED ) ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-4006
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( - - CAST ( CAST ( NULL AS REAL ) AS INTEGER ) ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4007
SELECT ALL COUNT( * ) * 74 FROM tab1
----
222

skipif mysql # not compatible
query I rowsort label-4007
SELECT ALL COUNT ( * ) * 74 FROM tab1
----
222

query II rowsort
SELECT ALL 27 AS col1, col2 * + ( col2 ) FROM tab0
----
27
100
27
2209
27
9801

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4009
SELECT * FROM tab2 WHERE + + col0 NOT IN ( + CAST( - col1 AS SIGNED ), 30 - 27 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-4009
SELECT * FROM tab2 WHERE + + col0 NOT IN ( + CAST ( - col1 AS INTEGER ), 30 - 27 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT col2 * + col0 FROM tab1 WHERE NULL = - col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 27 + - col1 col0 FROM tab0
----
-54
26
6

query II rowsort
SELECT col2 * col0 + - col0 * + - col2, col2 * - + col1 - - col0 AS col0 FROM tab1 AS cor0 WHERE + col1 + 6 NOT IN ( 64 * + col1 )
----
10030
-210
12376
-3105
9792
-1293

query I rowsort
SELECT DISTINCT col2 + + + col1 FROM tab1 AS cor0
----
110
115
64

onlyif mysql # aggregate syntax: 
query I rowsort label-4014
SELECT ALL - + MIN( + col2 ) FROM tab0 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-4014
SELECT ALL - + MIN ( + col2 ) FROM tab0 AS cor0
----
-10

query I rowsort
SELECT DISTINCT - col0 * col2 + + - col2 AS col2 FROM tab1 AS cor0
----
-4992
-5074
-6256

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( col0 >= + col2 )
----

query I rowsort
SELECT DISTINCT 37 + 25 AS col2 FROM tab0 AS cor0
----
62

query I rowsort
SELECT DISTINCT 21 * + col0 / 29 FROM tab0 cor0 WHERE NOT - col2 <= NULL
----

query I rowsort
SELECT DISTINCT - 17 + - + col1 AS col0 FROM tab0 AS cor0
----
-18
-38
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-4020
SELECT + SUM( - col0 ) col0 FROM tab1 AS cor0
----
-227

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4020
SELECT + SUM ( - col0 ) col0 FROM tab1 AS cor0
----
-227

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4021
SELECT ALL + CAST( - col2 AS SIGNED ) + + 74 AS col0, - col1 FROM tab2 AS cor0
----
16
-67
34
-77
51
-51

skipif mysql # not compatible
query II rowsort label-4021
SELECT ALL + CAST ( - col2 AS INTEGER ) + + 74 AS col0, - col1 FROM tab2 AS cor0
----
16
-67
34
-77
51
-51

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL IN ( 29, - col1 )
----

query I rowsort
SELECT + col1 * - 67 AS col1 FROM tab2
----
-3417
-4489
-5159

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - col1 NOT IN ( - 5 + + col1, col2 * - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4025
SELECT + COUNT( ALL + col2 ) * - COUNT( * ) AS col1 FROM tab0
----
-9

skipif mysql # not compatible
query I rowsort label-4025
SELECT + COUNT ( ALL + col2 ) * - COUNT ( * ) AS col1 FROM tab0
----
-9

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( 7 * col0 IS NOT NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + 40 AS col2 FROM tab0 WHERE NOT - col2 >= NULL
----

query I rowsort
SELECT 39 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 5ecc4d3de68ae828a2d522dff8571cbf

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4029
SELECT ALL 66 * + CAST( + col1 AS SIGNED ) + col0 AS col1 FROM tab0 AS cor0
----
1473
163
5361

skipif mysql # not compatible
query I rowsort label-4029
SELECT ALL 66 * + CAST ( + col1 AS INTEGER ) + col0 AS col1 FROM tab0 AS cor0
----
1473
163
5361

query I rowsort
SELECT ALL + - col2 * - col1 * + col2 * - col0 FROM tab2 AS cor0
----
-1241034
-16904100
-7884800

query I rowsort
SELECT DISTINCT - col1 * - + ( + - col1 ) + + 93 AS col2 FROM tab2 AS cor0
----
-2508
-4396
-5836

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col1 IN ( + col2, + 51 / + col2, - col2, - ( + col0 ), col1 * + - col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query II rowsort label-4033
SELECT ALL - MAX( + - col2 ), 48 AS col1 FROM tab0 AS cor0
----
10
48

skipif mysql # not compatible
query II rowsort label-4033
SELECT ALL - MAX ( + - col2 ), 48 AS col1 FROM tab0 AS cor0
----
10
48

query I rowsort
SELECT ALL + ( ( + col2 ) ) * 81 AS col0 FROM tab2 cor0
----
1863
3240
4698

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NOT 96 IS NULL )
----

query I rowsort
SELECT + col1 * + 56 AS col2 FROM tab1 AS cor0
----
2632
280
784

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 15 <> 97
----

query I rowsort
SELECT DISTINCT + 0 * col0 FROM tab0 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4039
SELECT ALL 10 DIV col0 AS col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4039
SELECT ALL 10 / col0 AS col2 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4040
SELECT - ( - SUM( ALL + col0 ) ) FROM tab0
----
199

skipif mysql # not compatible
query I rowsort label-4040
SELECT - ( - SUM ( ALL + col0 ) ) FROM tab0
----
199

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-4041
SELECT + CAST( NULL AS DECIMAL ) + CAST( col2 AS SIGNED ) * col2 + 94 AS col0, col1 + - ( + 88 ) AS col0 FROM tab2
----
NULL
-11
NULL
-21
NULL
-37

skipif mysql # not compatible
query II rowsort label-4041
SELECT + CAST ( NULL AS REAL ) + CAST ( col2 AS INTEGER ) * col2 + 94 AS col0, col1 + - ( + 88 ) AS col0 FROM tab2
----
NULL
-11
NULL
-21
NULL
-37

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + col2 + - 56 col0 FROM tab0
----
140
41
6

query I rowsort
SELECT + col1 + - - col0 + col2 FROM tab0
----
118
143
197

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col2 <= - 11 + - + 61 + + - 36 + 5 * - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 81 + col2 <> NULL
----

query I rowsort
SELECT ALL AVG ( col0 ) AS col2 FROM tab2 cor0 WHERE NOT NULL < NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4047
SELECT DISTINCT MIN( col2 ) AS col2 FROM tab1 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-4047
SELECT DISTINCT MIN ( col2 ) AS col2 FROM tab1 AS cor0
----
59

query I rowsort
SELECT 51 AS col2 FROM tab2 cor0
----
51
51
51

query I rowsort
SELECT ALL ( 40 ) * + col1 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT + - ( + col1 ) * - col1 + + col1 AS col0 FROM tab2 cor0 WHERE NOT 86 = 60
----
2652
4556
6006

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4051
SELECT + - 41 DIV MIN( ALL + + col2 ) AS col2 FROM tab0 AS cor0
----
-4

skipif mysql # not compatible
query I rowsort label-4051
SELECT + - 41 / MIN ( ALL + + col2 ) AS col2 FROM tab0 AS cor0
----
-4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 col2, 85 AS col1 FROM tab0 AS cor0
----
1
85
21
85
81
85

onlyif mysql # aggregate syntax: 
query I rowsort label-4053
SELECT COUNT( - 76 ) * + 87 FROM tab2 cor0
----
261

skipif mysql # not compatible
query I rowsort label-4053
SELECT COUNT ( - 76 ) * + 87 FROM tab2 cor0
----
261

query I rowsort
SELECT ALL + col0 FROM tab2 AS cor0 WHERE 35 IS NULL
----

query I rowsort
SELECT - col1 * - 55 + col1 FROM tab0 AS cor0
----
1176
4536
56

query I rowsort
SELECT - ( + + 68 ) * 49 FROM tab0 AS cor0
----
-3332
-3332
-3332

onlyif mysql # DIV for integer division: 
query I rowsort label-4057
SELECT ALL - 77 DIV - ( + - 10 ) AS col0 FROM tab0 AS cor0
----
-7
-7
-7

skipif mysql # not compatible
query I rowsort label-4057
SELECT ALL - 77 / - ( + - 10 ) AS col0 FROM tab0 AS cor0
----
-7
-7
-7

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 JOIN tab1 AS cor1 ON NULL IS NOT NULL
----

query I rowsort
SELECT 92 + + 21 + - - col2 FROM tab0 AS cor0
----
123
160
212

onlyif mysql # DIV for integer division: 
query I rowsort label-4060
SELECT ALL + col1 + - 41 DIV + - ( + col2 ) FROM tab1 AS cor0
----
14
47
5

skipif mysql # not compatible
query I rowsort label-4060
SELECT ALL + col1 + - 41 / + - ( + col2 ) FROM tab1 AS cor0
----
14
47
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col0 + + - 87 * col2 col2, + 49 * - col2 * + + col2 * col1 * - - col2 FROM tab0 cor0
----
-4074
-412073487
-783
-1029000
-8516
-47544651

onlyif mysql # aggregate syntax: 
query I rowsort label-4062
SELECT DISTINCT - - MIN( ALL - 83 ) AS col2 FROM tab2 AS cor0
----
-83

skipif mysql # not compatible
query I rowsort label-4062
SELECT DISTINCT - - MIN ( ALL - 83 ) AS col2 FROM tab2 AS cor0
----
-83

onlyif mysql # DIV for integer division: 
query I rowsort label-4063
SELECT + col1 + col1 DIV - - col2 + 9 FROM tab2 AS cor0
----
62
77
87

skipif mysql # not compatible
query I rowsort label-4063
SELECT + col1 + col1 / - - col2 + 9 FROM tab2 AS cor0
----
62
77
87

onlyif mysql # aggregate syntax: 
query I rowsort label-4064
SELECT - + 3 * + MIN( + 11 ) + - SUM( + col2 ) + + + 14 AS col1 FROM tab2 AS cor0
----
-140

skipif mysql # not compatible
query I rowsort label-4064
SELECT - + 3 * + MIN ( + 11 ) + - SUM ( + col2 ) + + + 14 AS col1 FROM tab2 AS cor0
----
-140

query I rowsort
SELECT + 53 * - col1 * + + 63 + - col2 - col1 + col1 AS col1 FROM tab0 AS cor0
----
-270506
-3438
-70129

query I rowsort
SELECT ALL - col2 * + 54 FROM tab2 cor0
----
-1242
-2160
-3132

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL BETWEEN 32 AND 87 * + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4068
SELECT ALL + CAST( + + col0 AS SIGNED ) FROM tab1 AS cor0
----
51
85
91

skipif mysql # not compatible
query I rowsort label-4068
SELECT ALL + CAST ( + + col0 AS INTEGER ) FROM tab1 AS cor0
----
51
85
91

query I rowsort
SELECT DISTINCT - col2 + - 53 FROM tab1 AS cor0
----
-112
-121
-149

query I rowsort
SELECT ALL col0 + - - col1 AS col2 FROM tab1
----
138
65
90

query III rowsort
SELECT * FROM tab2 WHERE ( NOT ( NULL ) = col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4072
SELECT SUM( ALL + - col2 ) FROM tab1
----
-223

skipif mysql # not compatible
query I rowsort label-4072
SELECT SUM ( ALL + - col2 ) FROM tab1
----
-223

onlyif mysql # aggregate syntax: 
query I rowsort label-4073
SELECT COUNT( ALL - - col0 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-4073
SELECT COUNT ( ALL - - col0 ) FROM tab2
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4074
SELECT ALL * FROM tab0 WHERE NOT ( - CAST( + col2 AS SIGNED ) ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-4074
SELECT ALL * FROM tab0 WHERE NOT ( - CAST ( + col2 AS INTEGER ) ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4075
SELECT DISTINCT - MIN( + 20 ) + - SUM( DISTINCT - col1 ) FROM tab1 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-4075
SELECT DISTINCT - MIN ( + 20 ) + - SUM ( DISTINCT - col1 ) FROM tab1 AS cor0
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-4076
SELECT + 55 - - - COUNT( * ) AS col0 FROM tab2 AS cor0
----
52

skipif mysql # not compatible
query I rowsort label-4076
SELECT + 55 - - - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
52

query I rowsort
SELECT - col0 - 70 FROM tab0 AS cor0
----
-157
-167
-85

query II rowsort
SELECT col0 * + 22 + + col0 AS col2, col2 FROM tab1
----
1173
96
1955
59
2093
68

query I rowsort
SELECT DISTINCT + 86 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4080
SELECT ALL + CAST( + + 61 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
61
61
61

skipif mysql # not compatible
query I rowsort label-4080
SELECT ALL + CAST ( + + 61 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
61
61
61

onlyif mysql # DIV for integer division: 
query I rowsort label-4081
SELECT ALL - 32 * - ( + - col2 ) DIV - col2 FROM tab2 AS cor0
----
32
32
32

skipif mysql # not compatible
query I rowsort label-4081
SELECT ALL - 32 * - ( + - col2 ) / - col2 FROM tab2 AS cor0
----
32
32
32

onlyif mysql # DIV for integer division: 
query I rowsort label-4082
SELECT ALL - 78 DIV col1 AS col2 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-4082
SELECT ALL - 78 / col1 AS col2 FROM tab2 AS cor0
----
-1
-1
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( - - col2 ) col2 FROM tab2 cor0
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-4084
SELECT DISTINCT - + MAX( - - col2 ) AS col0 FROM tab1 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-4084
SELECT DISTINCT - + MAX ( - - col2 ) AS col0 FROM tab1 AS cor0
----
-96

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4085
SELECT ALL * FROM tab0 AS cor0 WHERE NULL <= col1 - + - CAST( NULL AS DECIMAL ) * col1
----

skipif mysql # not compatible
query III rowsort label-4085
SELECT ALL * FROM tab0 AS cor0 WHERE NULL <= col1 - + - CAST ( NULL AS REAL ) * col1
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 61 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT col0 * col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + - ( + + col1 ) AS col0 FROM tab0 cor0
----
-1
-21
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-4089
SELECT - + SUM( + 64 ) AS col0 FROM tab1 AS cor0
----
-192

skipif mysql # not compatible
query I rowsort label-4089
SELECT - + SUM ( + 64 ) AS col0 FROM tab1 AS cor0
----
-192

query I rowsort
SELECT + 8 AS col1 FROM tab0 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT ALL col0, + 96 FROM tab0
----
15
96
87
96
97
96

query III rowsort
SELECT ALL * FROM tab0 WHERE ( NOT NULL IS NOT NULL ) OR + col2 IN ( 75 + + + col1, col2, + col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query II rowsort label-4093
SELECT COUNT( * ), COUNT( * ) FROM tab1
----
3
3

skipif mysql # not compatible
query II rowsort label-4093
SELECT COUNT ( * ), COUNT ( * ) FROM tab1
----
3
3

query I rowsort
SELECT ALL col2 AS col1 FROM tab0 WHERE + + col0 IS NULL
----

query II rowsort
SELECT DISTINCT 58 AS col2, - col1 FROM tab0
----
58
-1
58
-21
58
-81

query II rowsort
SELECT DISTINCT col2, + col0 AS col1 FROM tab2
----
23
46
40
64
58
75

query II rowsort
SELECT ALL col0, + col1 AS col0 FROM tab2
----
46
51
64
77
75
67

query II rowsort
SELECT ALL col1 AS col0, col1 AS col2 FROM tab1
----
14
14
47
47
5
5

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4099
SELECT DISTINCT - CAST( 1 AS SIGNED ) AS col1, 10 FROM tab2
----
-1
10

skipif mysql # not compatible
query II rowsort label-4099
SELECT DISTINCT - CAST ( 1 AS INTEGER ) AS col1, 10 FROM tab2
----
-1
10

onlyif mysql # aggregate syntax: 
query II rowsort label-4100
SELECT ALL COUNT( * ), 18 AS col1 FROM tab2 AS cor0
----
3
18

skipif mysql # not compatible
query II rowsort label-4100
SELECT ALL COUNT ( * ), 18 AS col1 FROM tab2 AS cor0
----
3
18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4101
SELECT ALL col2 * - col0 * - CAST( col1 AS SIGNED ) / + CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4101
SELECT ALL col2 * - col0 * - CAST ( col1 AS INTEGER ) / + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4102
SELECT DISTINCT MAX( + + CAST( NULL AS SIGNED ) ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4102
SELECT DISTINCT MAX ( + + CAST ( NULL AS INTEGER ) ) FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4103
SELECT + - COUNT( * ) col1 FROM tab1 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-4103
SELECT + - COUNT ( * ) col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col1 BETWEEN + 0 AND - - 47
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + + - col2 + - 33 + col1 col0 FROM tab1 AS cor0
----
-145
-166
-172

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4106
SELECT - SUM( ALL - CAST( NULL AS SIGNED ) ) FROM tab0 cor0 WHERE col2 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4106
SELECT - SUM ( ALL - CAST ( NULL AS INTEGER ) ) FROM tab0 cor0 WHERE col2 IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4107
SELECT DISTINCT + - CAST( 61 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-61

skipif mysql # not compatible
query I rowsort label-4107
SELECT DISTINCT + - CAST ( 61 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-4108
SELECT - + 42 * - COUNT( * ) - + - SUM( + 75 ) FROM tab1 AS cor0
----
351

skipif mysql # not compatible
query I rowsort label-4108
SELECT - + 42 * - COUNT ( * ) - + - SUM ( + 75 ) FROM tab1 AS cor0
----
351

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 27 col0 FROM tab1
----
-27
-27
-27

query I rowsort
SELECT DISTINCT col0 * + 12 AS col0 FROM tab0
----
1044
1164
180

query III rowsort
SELECT * FROM tab2 WHERE - 2 <> + - 84
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 94 * 89 + + 77 - - - 53 * + + col2 + + 38 col1 FROM tab2
----
5407
6361
7262

query I rowsort
SELECT col2 + + - col2 FROM tab1
----
0
0
0

query III rowsort
SELECT * FROM tab1 WHERE NULL NOT BETWEEN NULL AND + 55
----

query I rowsort
SELECT + col1 + 92 AS col0 FROM tab2
----
143
159
169

query I rowsort
SELECT DISTINCT col0 * + 15 FROM tab1
----
1275
1365
765

query I rowsort
SELECT - col2 AS col2 FROM tab1 WHERE NULL NOT IN ( + 61, col2, + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4118
SELECT - 29 + + + 46 + - + MIN( ALL + + 35 ) * COUNT( * ) FROM tab2
----
-88

skipif mysql # not compatible
query I rowsort label-4118
SELECT - 29 + + + 46 + - + MIN ( ALL + + 35 ) * COUNT ( * ) FROM tab2
----
-88

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4119
SELECT + - ( col2 ) + - CAST( - - col1 AS DECIMAL ) FROM tab1 WHERE col0 * CAST( NULL AS SIGNED ) - - 78 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-4119
SELECT + - ( col2 ) + - CAST ( - - col1 AS REAL ) FROM tab1 WHERE col0 * CAST ( NULL AS INTEGER ) - - 78 IS NOT NULL
----

query I rowsort
SELECT ALL + col1 AS col0 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4121
SELECT DISTINCT + col1 DIV + col1 + + 9 - - col0 * - - col1 * + - col0 FROM tab1 AS cor0
----
-36115
-36404
-389197

skipif mysql # not compatible
query I rowsort label-4121
SELECT DISTINCT + col1 / + col1 + + 9 - - col0 * - - col1 * + - col0 FROM tab1 AS cor0
----
-36115
-36404
-389197

query I rowsort
SELECT ALL ( col2 ) * + - 79 + - + col2 FROM tab1
----
-4720
-5440
-7680

query III rowsort
SELECT * FROM tab1 WHERE NOT + 8 * - 56 NOT BETWEEN + col2 AND - col1 + + col2
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col0 / - - col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-4125
SELECT + 65 DIV 59 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4125
SELECT + 65 / 59 FROM tab1 AS cor0
----
1
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4126
SELECT ALL CAST( + + col0 AS SIGNED ) FROM tab0 AS cor0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-4126
SELECT ALL CAST ( + + col0 AS INTEGER ) FROM tab0 AS cor0
----
15
87
97

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL NOT IN ( + 29 + - 53, col0 * - - 25, col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4128
SELECT MIN( 57 ) AS col2 FROM tab2
----
57

skipif mysql # not compatible
query I rowsort label-4128
SELECT MIN ( 57 ) AS col2 FROM tab2
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-4129
SELECT DISTINCT + SUM( ALL + - col0 ) FROM tab0
----
-199

skipif mysql # not compatible
query I rowsort label-4129
SELECT DISTINCT + SUM ( ALL + - col0 ) FROM tab0
----
-199

query I rowsort
SELECT ALL - 4 * - 7 FROM tab2
----
28
28
28

query I rowsort
SELECT + + 22 + 65 FROM tab1 AS cor0
----
87
87
87

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4132
SELECT - 41 DIV COUNT( * ) * + 50 * + 69 + 32 FROM tab2 AS cor0
----
-44818

skipif mysql # not compatible
query I rowsort label-4132
SELECT - 41 / COUNT ( * ) * + 50 * + 69 + 32 FROM tab2 AS cor0
----
-44818

query I rowsort
SELECT 65 + + 15 - + + col2 AS col0 FROM tab1 AS cor0
----
-16
12
21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4134
SELECT DISTINCT 51 + - - SUM( DISTINCT - 57 ) + CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4134
SELECT DISTINCT 51 + - - SUM ( DISTINCT - 57 ) + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL col0 * + 11 * - col2 AS col2 FROM tab0 AS cor0
----
-105633
-7755
-9570

query I rowsort
SELECT - ( - col1 ) * + 42 + + col1 + - ( - col2 ) AS col0 FROM tab0 AS cor0
----
142
3530
913

onlyif mysql # aggregate syntax: 
query I rowsort label-4137
SELECT - MAX( - + col0 ) AS col1 FROM tab1 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-4137
SELECT - MAX ( - + col0 ) AS col1 FROM tab1 AS cor0
----
51

query I rowsort
SELECT ALL + - col0 * - col0 - col0 AS col0 FROM tab0 cor0
----
210
7482
9312

onlyif mysql # aggregate syntax: 
query I rowsort label-4139
SELECT ALL COUNT( * ) - + 43 * - + 62 col2 FROM tab0 AS cor0
----
2669

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4139
SELECT ALL COUNT ( * ) - + 43 * - + 62 col2 FROM tab0 AS cor0
----
2669

query I rowsort
SELECT DISTINCT col2 * + ( - + 89 ) FROM tab0
----
-4183
-8811
-890

query I rowsort
SELECT ALL - col2 * + 97 * - col0 FROM tab0
----
68385
84390
931491

query I rowsort
SELECT - 93 - - col1 - - col2 * + col2 FROM tab1
----
3393
4578
9137

query I rowsort
SELECT ALL 81 * col0 FROM tab2
----
3726
5184
6075

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4144
SELECT - col2 * - CAST( NULL AS DECIMAL ) - col2 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4144
SELECT - col2 * - CAST ( NULL AS REAL ) - col2 AS col1 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + + col1 * - col2 / col2 NOT BETWEEN + col2 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4146
SELECT - CAST( NULL AS SIGNED ) FROM tab2 WHERE col2 + col1 BETWEEN 51 * + 1 AND NULL
----

skipif mysql # not compatible
query I rowsort label-4146
SELECT - CAST ( NULL AS INTEGER ) FROM tab2 WHERE col2 + col1 BETWEEN 51 * + 1 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4147
SELECT + MIN( DISTINCT + + col1 ) - + 17 FROM tab1
----
-12

skipif mysql # not compatible
query I rowsort label-4147
SELECT + MIN ( DISTINCT + + col1 ) - + 17 FROM tab1
----
-12

query II rowsort
SELECT DISTINCT - col1, + col1 AS col0 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-51
51
-67
67
-77
77

query I rowsort
SELECT ALL + ( col2 ) * - col2 FROM tab1
----
-3481
-4624
-9216

onlyif mysql # DIV for integer division: 
query I rowsort label-4150
SELECT - 45 DIV col2 FROM tab0
----
-4
0
0

skipif mysql # not compatible
query I rowsort label-4150
SELECT - 45 / col2 FROM tab0
----
-4
0
0

query I rowsort
SELECT DISTINCT + + 66 FROM tab1 cor0
----
66

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT col2 / + - col2 + + 24 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query II rowsort label-4153
SELECT ALL + + COUNT( * ), - 85 AS col0 FROM tab0 cor0
----
3
-85

skipif mysql # not compatible
query II rowsort label-4153
SELECT ALL + + COUNT ( * ), - 85 AS col0 FROM tab0 cor0
----
3
-85

query I rowsort
SELECT ALL + col0 * - 22 FROM tab0 AS cor0 WHERE NOT col0 IS NULL
----
-1914
-2134
-330

query I rowsort
SELECT DISTINCT 33 * - col0 + - col0 AS col2 FROM tab1 AS cor0
----
-1734
-2890
-3094

query I rowsort
SELECT - col0 * + + col2 AS col2 FROM tab2 WHERE NOT NULL = 66
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4157
SELECT + ( + 30 ) * - MAX( col1 ) col2, COUNT( * ) FROM tab2
----
-2310
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4157
SELECT + ( + 30 ) * - MAX ( col1 ) col2, COUNT ( * ) FROM tab2
----
-2310
3

query II rowsort
SELECT DISTINCT 18 * - 85 AS col0, - 56 * - - 9 AS col1 FROM tab0
----
-1530
-504

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4159
SELECT ALL MAX( CAST( col1 AS SIGNED ) ) FROM tab0
----
81

skipif mysql # not compatible
query I rowsort label-4159
SELECT ALL MAX ( CAST ( col1 AS INTEGER ) ) FROM tab0
----
81

onlyif mysql # aggregate syntax: 
query II rowsort label-4160
SELECT ( + - 47 ) AS col2, COUNT( * ) AS col2 FROM tab0
----
-47
3

skipif mysql # not compatible
query II rowsort label-4160
SELECT ( + - 47 ) AS col2, COUNT ( * ) AS col2 FROM tab0
----
-47
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 99 + ( + 69 ) col2 FROM tab0
----
168
168
168

query I rowsort
SELECT + col0 + + + col2 + + col1 AS col1 FROM tab1 AS cor0
----
149
161
206

query I rowsort
SELECT col0 + ( col1 ) FROM tab2 AS cor0 WHERE NULL >= col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 74 + 25 col0 FROM tab2 cor0
----
-49
-49
-49

query I rowsort
SELECT ALL col2 + + 10 AS col0 FROM tab1 AS cor0 WHERE col2 BETWEEN col1 AND NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NOT NULL NOT IN ( - 25 + 52 ) )
----

query I rowsort
SELECT 92 * 51 FROM tab2
----
4692
4692
4692

query II rowsort
SELECT 60, 6 AS col0 FROM tab2
----
60
6
60
6
60
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4169
SELECT DISTINCT CAST( - 21 AS SIGNED ) * + 12 + - 23 AS col1 FROM tab1
----
-275

skipif mysql # not compatible
query I rowsort label-4169
SELECT DISTINCT CAST ( - 21 AS INTEGER ) * + 12 + - 23 AS col1 FROM tab1
----
-275

onlyif mysql # aggregate syntax: 
query I rowsort label-4170
SELECT MIN( ALL + + 92 ) * - 49 + + + MIN( DISTINCT ( + col1 ) ) + 95 AS col0 FROM tab2
----
-4362

skipif mysql # not compatible
query I rowsort label-4170
SELECT MIN ( ALL + + 92 ) * - 49 + + + MIN ( DISTINCT ( + col1 ) ) + 95 AS col0 FROM tab2
----
-4362

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-4171
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT + 77 >= - CAST( 84 AS SIGNED )
----

skipif mysql # not compatible
query IIIIII rowsort label-4171
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT + 77 >= - CAST ( 84 AS INTEGER )
----

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT 96 <= + 42
----
54 values hashing to c419dc2a653bccd84f7a2da103315187

onlyif mysql # aggregate syntax: 
query I rowsort label-4173
SELECT DISTINCT + 35 * - + COUNT( * ) + COUNT( * ) * ( + - COUNT( * ) ) FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
-396

skipif mysql # not compatible
query I rowsort label-4173
SELECT DISTINCT + 35 * - + COUNT ( * ) + COUNT ( * ) * ( + - COUNT ( * ) ) FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
-396

query IIIIII rowsort
SELECT * FROM tab2 cor0 CROSS JOIN tab0 cor1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL ( col2 ) + + col2 * - col1 AS col1 FROM tab1
----
-1248
-236
-3128

query I rowsort
SELECT DISTINCT + col1 * - col2 + - 66 + - col2 AS col2 FROM tab2 cor0
----
-1262
-3186
-4010

onlyif mysql # DIV for integer division: 
query I rowsort label-4177
SELECT ALL + - col1 DIV - col1 + 79 FROM tab1 AS cor0
----
80
80
80

skipif mysql # not compatible
query I rowsort label-4177
SELECT ALL + - col1 / - col1 + 79 FROM tab1 AS cor0
----
80
80
80

onlyif mysql # aggregate syntax: 
query I rowsort label-4178
SELECT + MAX( DISTINCT - col2 ) + + MIN( ALL - + 38 ) FROM tab0 AS cor0
----
-48

skipif mysql # not compatible
query I rowsort label-4178
SELECT + MAX ( DISTINCT - col2 ) + + MIN ( ALL - + 38 ) FROM tab0 AS cor0
----
-48

query I rowsort
SELECT - ( - 41 ) + - col1 AS col2 FROM tab0 cor0
----
-40
20
40

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4180
SELECT + - 37 + + - COUNT( * ) / CAST( NULL AS DECIMAL ) + - COUNT( ALL - 39 ) + 46 AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4180
SELECT + - 37 + + - COUNT ( * ) / CAST ( NULL AS REAL ) + - COUNT ( ALL - 39 ) + 46 AS col1 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL - - 89 - - col0 AS col1 FROM tab0 AS cor0
----
104
176
186

onlyif mysql # aggregate syntax: 
query I rowsort label-4182
SELECT ALL 91 - + COUNT( * ) * + + 82 FROM tab0
----
-155

skipif mysql # not compatible
query I rowsort label-4182
SELECT ALL 91 - + COUNT ( * ) * + + 82 FROM tab0
----
-155

query I rowsort
SELECT + col1 + - ( + col0 ) AS col1 FROM tab2
----
-8
13
5

query I rowsort
SELECT DISTINCT - 48 + - 96 AS col2 FROM tab1 WHERE NOT + col1 + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4185
SELECT ALL COUNT( * ) AS col2, ( + MAX( col2 ) ) * - 30 AS col2 FROM tab1 cor0
----
3
-2880

skipif mysql # not compatible
query II rowsort label-4185
SELECT ALL COUNT ( * ) AS col2, ( + MAX ( col2 ) ) * - 30 AS col2 FROM tab1 cor0
----
3
-2880

onlyif mysql # aggregate syntax: 
query I rowsort label-4186
SELECT - ( - COUNT( * ) ) * - 71 FROM tab2 AS cor0
----
-213

skipif mysql # not compatible
query I rowsort label-4186
SELECT - ( - COUNT ( * ) ) * - 71 FROM tab2 AS cor0
----
-213

onlyif mysql # aggregate syntax: 
query I rowsort label-4187
SELECT MAX( 22 ) AS col1 FROM tab2 AS cor0
----
22

skipif mysql # not compatible
query I rowsort label-4187
SELECT MAX ( 22 ) AS col1 FROM tab2 AS cor0
----
22

query I rowsort
SELECT 57 * - - 67 AS col0 FROM tab0 cor0
----
3819
3819
3819

onlyif mysql # DIV for integer division: 
query II rowsort label-4189
SELECT col1 AS col1, - col1 DIV + 23 AS col0 FROM tab0 AS cor0
----
1
0
21
0
81
-3

skipif mysql # not compatible
query II rowsort label-4189
SELECT col1 AS col1, - col1 / + 23 AS col0 FROM tab0 AS cor0
----
1
0
21
0
81
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 88 col0 FROM tab2
----
88

onlyif mysql # aggregate syntax: 
query II rowsort label-4191
SELECT DISTINCT + 51 AS col0, COUNT( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
51
9

skipif mysql # not compatible
query II rowsort label-4191
SELECT DISTINCT + 51 AS col0, COUNT ( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
51
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4192
SELECT + - col2 * - - CAST( NULL AS SIGNED ) * col1 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4192
SELECT + - col2 * - - CAST ( NULL AS INTEGER ) * col1 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4193
SELECT ALL + 97 * + COUNT( * ) AS col2 FROM tab2 AS cor0
----
291

skipif mysql # not compatible
query I rowsort label-4193
SELECT ALL + 97 * + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
291

onlyif mysql # aggregate syntax: 
query I rowsort label-4194
SELECT MAX( ALL + 48 ) FROM tab1 AS cor0
----
48

skipif mysql # not compatible
query I rowsort label-4194
SELECT MAX ( ALL + 48 ) FROM tab1 AS cor0
----
48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4195
SELECT - AVG ( DISTINCT + col0 ) + CAST( COUNT( * ) AS SIGNED ) - + - 71 AS col2 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4195
SELECT - AVG ( DISTINCT + col0 ) + CAST ( COUNT ( * ) AS INTEGER ) - + - 71 AS col2 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----
NULL

query I rowsort
SELECT - - col0 + - + col0 + - - 98 FROM tab2 cor0
----
98
98
98

query I rowsort
SELECT + - col2 + 81 AS col0 FROM tab0 cor0
----
-18
34
71

query I rowsort
SELECT - col0 + - - col0 AS col1 FROM tab2 AS cor0
----
0
0
0

query II rowsort
SELECT ALL + + 52 * + col2 AS col1, col1 FROM tab0 cor0
----
2444
81
5148
1
520
21

query I rowsort
SELECT - 8 + ( - - col0 ) + - col0 FROM tab1
----
-8
-8
-8

query III rowsort
SELECT * FROM tab0 WHERE 35 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 75 col2 FROM tab0
----
75
75
75

query I rowsort
SELECT - 82 * col0 AS col2 FROM tab1
----
-4182
-6970
-7462

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col1 IN ( + col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT DISTINCT + col2 + ( - col1 ), + col2 FROM tab2 AS cor0
----
-28
23
-37
40
-9
58

onlyif mysql # DIV for integer division: 
query I rowsort label-4206
SELECT col2 + col2 + + + 78 * col2 DIV - col2 FROM tab2
----
-32
2
38

skipif mysql # not compatible
query I rowsort label-4206
SELECT col2 + col2 + + + 78 * col2 / - col2 FROM tab2
----
-32
2
38

onlyif mysql # DIV for integer division: 
query I rowsort label-4207
SELECT DISTINCT + 3 + - - col0 DIV + + 8 FROM tab0
----
13
15
4

skipif mysql # not compatible
query I rowsort label-4207
SELECT DISTINCT + 3 + - - col0 / + + 8 FROM tab0
----
13
15
4

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col0 <> NULL
----

query I rowsort
SELECT ALL col0 + 47 * - 70 AS col0 FROM tab0 AS cor0
----
-3193
-3203
-3275

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NULL NOT BETWEEN NULL AND - 75
----

query I rowsort
SELECT - - col2 * + 54 FROM tab2 AS cor0
----
1242
2160
3132

onlyif mysql # DIV for integer division: 
query I rowsort label-4212
SELECT - - col2 DIV + - col2 col2 FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4212
SELECT - - col2 / + - col2 col2 FROM tab0 AS cor0
----
-1
-1
-1

query II rowsort
SELECT ALL - 38 + col1, 10 AS col0 FROM tab1 AS cor0
----
-24
10
-33
10
9
10

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + col0 NOT BETWEEN - + col2 + - + 75 * + 36 AND + + col1
----
75
67
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4215
SELECT DISTINCT - CAST( + col1 AS SIGNED ) AS col0 FROM tab1 AS cor0 WHERE col2 BETWEEN - - col1 AND NULL
----

skipif mysql # not compatible
query I rowsort label-4215
SELECT DISTINCT - CAST ( + col1 AS INTEGER ) AS col0 FROM tab1 AS cor0 WHERE col2 BETWEEN - - col1 AND NULL
----

query I rowsort
SELECT 81 * + - ( + col0 ) - col0 FROM tab0
----
-1230
-7134
-7954

query I rowsort
SELECT ALL + - col1 + - 25 - - - col0 * + 72 * 45 + - col0 AS col0 FROM tab1 WHERE NULL NOT BETWEEN NULL AND col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4218
SELECT DISTINCT MAX( DISTINCT 15 ) AS col2 FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-4218
SELECT DISTINCT MAX ( DISTINCT 15 ) AS col2 FROM tab0
----
15

query II rowsort
SELECT DISTINCT col2 AS col0, + 6 AS col1 FROM tab2
----
23
6
40
6
58
6

onlyif mysql # aggregate syntax: 
query I rowsort label-4220
SELECT + ( COUNT( * ) ) col1 FROM tab1
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4220
SELECT + ( COUNT ( * ) ) col1 FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4221
SELECT - MIN( ALL + - col0 ) FROM tab2 WHERE NOT - - col1 IS NULL
----
75

skipif mysql # not compatible
query I rowsort label-4221
SELECT - MIN ( ALL + - col0 ) FROM tab2 WHERE NOT - - col1 IS NULL
----
75

query I rowsort
SELECT col2 * + - 41 AS col0 FROM tab1
----
-2419
-2788
-3936

query I rowsort
SELECT + col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) <> NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NOT NULL BETWEEN NULL AND NULL )
----

query I rowsort
SELECT ALL 97 FROM tab1 AS cor0 WHERE NULL > NULL
----

query I rowsort
SELECT DISTINCT - + 38 AS col0 FROM tab0 AS cor0
----
-38

query I rowsort
SELECT ALL + col0 * col0 + + col2 AS col2 FROM tab2 WHERE NOT - 11 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4228
SELECT ALL 18 * + - COUNT( * ) FROM tab2
----
-54

skipif mysql # not compatible
query I rowsort label-4228
SELECT ALL 18 * + - COUNT ( * ) FROM tab2
----
-54

query I rowsort
SELECT ALL - + 58 + ( + + col0 ) FROM tab1 AS cor0
----
-7
27
33

query I rowsort
SELECT DISTINCT - col2 * + 1 AS col1 FROM tab0 cor0
----
-10
-47
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-4231
SELECT DISTINCT COUNT( * ) + + MIN( ALL - col0 ) FROM tab0 cor0
----
-94

skipif mysql # not compatible
query I rowsort label-4231
SELECT DISTINCT COUNT ( * ) + + MIN ( ALL - col0 ) FROM tab0 cor0
----
-94

query I rowsort
SELECT col1 * + 20 + + col2 - + + col0 AS col1 FROM tab0
----
1652
22
343

onlyif mysql # aggregate syntax: 
query I rowsort label-4233
SELECT ALL + + SUM( ALL - - col1 ) - - SUM( col2 ) FROM tab0 WHERE NULL = NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4233
SELECT ALL + + SUM ( ALL - - col1 ) - - SUM ( col2 ) FROM tab0 WHERE NULL = NULL
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4234
SELECT - COUNT( col1 ) FROM tab1 AS cor0 WHERE NULL BETWEEN NULL AND - col0 * - CAST( NULL AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-4234
SELECT - COUNT ( col1 ) FROM tab1 AS cor0 WHERE NULL BETWEEN NULL AND - col0 * - CAST ( NULL AS INTEGER )
----
0

query I rowsort
SELECT + + 51 + - + col2 FROM tab0 AS cor0
----
-48
4
41

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 AS col0, - col2 col1 FROM tab2 cor0
----
-51
-23
-67
-58
-77
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-4237
SELECT ALL + COUNT( * ) FROM tab0 cor0 WHERE NULL > NULL
----
0

skipif mysql # not compatible
query I rowsort label-4237
SELECT ALL + COUNT ( * ) FROM tab0 cor0 WHERE NULL > NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4238
SELECT + col2 AS col1, CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
10
NULL
47
NULL
99
NULL

skipif mysql # not compatible
query II rowsort label-4238
SELECT + col2 AS col1, CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
10
NULL
47
NULL
99
NULL

query I rowsort
SELECT ALL - + 69 AS col0 FROM tab0 AS cor0
----
-69
-69
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-4240
SELECT + MIN( 35 ) AS col1 FROM tab0 cor0
----
35

skipif mysql # not compatible
query I rowsort label-4240
SELECT + MIN ( 35 ) AS col1 FROM tab0 cor0
----
35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4241
SELECT + + 86 FROM tab0 WHERE NOT - CAST( - - col1 AS SIGNED ) IS NULL
----
86
86
86

skipif mysql # not compatible
query I rowsort label-4241
SELECT + + 86 FROM tab0 WHERE NOT - CAST ( - - col1 AS INTEGER ) IS NULL
----
86
86
86

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4242
SELECT DISTINCT + COUNT( * ) * 10 DIV - COUNT( * ) AS col0 FROM tab0
----
-10

skipif mysql # not compatible
query I rowsort label-4242
SELECT DISTINCT + COUNT ( * ) * 10 / - COUNT ( * ) AS col0 FROM tab0
----
-10

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col1 * - col0 * - + col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4244
SELECT + 82 + - 53 FROM tab0 WHERE NOT - col2 * CAST( NULL AS SIGNED ) + + - 9 + 78 * - 85 BETWEEN + + col2 AND 29
----

skipif mysql # not compatible
query I rowsort label-4244
SELECT + 82 + - 53 FROM tab0 WHERE NOT - col2 * CAST ( NULL AS INTEGER ) + + - 9 + 78 * - 85 BETWEEN + + col2 AND 29
----

query I rowsort
SELECT ALL + AVG ( DISTINCT + 14 ) AS col2 FROM tab2 WHERE NOT + col1 IS NOT NULL
----
NULL

query I rowsort
SELECT ALL col0 FROM tab2 AS cor0 WHERE NOT - 68 NOT BETWEEN ( NULL ) AND + 72 * - - col2 + + + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4247
SELECT DISTINCT SUM( 12 ) * + - 98 FROM tab0 AS cor0
----
-3528

skipif mysql # not compatible
query I rowsort label-4247
SELECT DISTINCT SUM ( 12 ) * + - 98 FROM tab0 AS cor0
----
-3528

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 11 col1 FROM tab1 AS cor0
----
-11
-11
-11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4249
SELECT 88, + MIN( DISTINCT + + col2 ) * + 72 + + + COUNT( * ) + - CAST( 87 AS SIGNED ) AS col2 FROM tab2
----
88
1572

skipif mysql # not compatible
query II rowsort label-4249
SELECT 88, + MIN ( DISTINCT + + col2 ) * + 72 + + + COUNT ( * ) + - CAST ( 87 AS INTEGER ) AS col2 FROM tab2
----
88
1572

onlyif mysql # aggregate syntax: 
query I rowsort label-4250
SELECT + COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT ( NULL ) IS NOT NULL
----
9

skipif mysql # not compatible
query I rowsort label-4250
SELECT + COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT ( NULL ) IS NOT NULL
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-4251
SELECT 85 + + COUNT( * ) AS col0 FROM tab0
----
88

skipif mysql # not compatible
query I rowsort label-4251
SELECT 85 + + COUNT ( * ) AS col0 FROM tab0
----
88

query I rowsort
SELECT + col0 + + - col2 + + 47 FROM tab1 AS cor0
----
2
70
73

onlyif mysql # DIV for integer division: 
query I rowsort label-4253
SELECT - col2 * col2 DIV + 44 + - + col2 + - 59 * - + 67 FROM tab2 AS cor0
----
3819
3877
3918

skipif mysql # not compatible
query I rowsort label-4253
SELECT - col2 * col2 / + 44 + - + col2 + - 59 * - + 67 FROM tab2 AS cor0
----
3819
3877
3918

onlyif mysql # DIV for integer division: 
query I rowsort label-4254
SELECT + + 40 DIV 91 * 6 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4254
SELECT + + 40 / 91 * 6 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
0
0
0

query II rowsort
SELECT - col0 + - 36 + + col0 AS col1, + col0 AS col2 FROM tab1 cor0
----
-36
51
-36
85
-36
91

query I rowsort
SELECT - col1 + col0 * + - col1 + + col0 * col2 * - + 18 + col0 FROM tab0 AS cor0
----
-13971
-172855
-17421

query I rowsort
SELECT DISTINCT - + col2 + - + col2 AS col2 FROM tab1 AS cor0
----
-118
-136
-192

query I rowsort
SELECT + ( + col1 ) + - + 14 AS col0 FROM tab2 AS cor0
----
37
53
63

onlyif mysql # aggregate syntax: 
query I rowsort label-4259
SELECT ALL SUM( ALL + + 84 ) AS col0 FROM tab0
----
252

skipif mysql # not compatible
query I rowsort label-4259
SELECT ALL SUM ( ALL + + 84 ) AS col0 FROM tab0
----
252

query I rowsort
SELECT ALL + col2 + + - col2 + + - col2 FROM tab2
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-4261
SELECT ALL 74 + - SUM( DISTINCT 15 ) FROM tab1
----
59

skipif mysql # not compatible
query I rowsort label-4261
SELECT ALL 74 + - SUM ( DISTINCT 15 ) FROM tab1
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-4262
SELECT ALL - COUNT( * ) * - COUNT( + col1 ) + - COUNT( * ) AS col1 FROM tab1
----
6

skipif mysql # not compatible
query I rowsort label-4262
SELECT ALL - COUNT ( * ) * - COUNT ( + col1 ) + - COUNT ( * ) AS col1 FROM tab1
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-4263
SELECT DISTINCT + - SUM( DISTINCT + col1 ) + + 95 FROM tab1 AS cor0
----
29

skipif mysql # not compatible
query I rowsort label-4263
SELECT DISTINCT + - SUM ( DISTINCT + col1 ) + + 95 FROM tab1 AS cor0
----
29

query I rowsort
SELECT DISTINCT - - 58 FROM tab2 AS cor0 WHERE ( + - col1 ) + + col1 * - 95 IS NOT NULL
----
58

query I rowsort
SELECT col1 - - - col0 + - - 43 AS col2 FROM tab2 AS cor0
----
35
48
56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4266
SELECT DISTINCT - - CAST( + - COUNT( * ) AS SIGNED ) + + MIN( - + col2 ), - 28 AS col2 FROM tab0 AS cor0
----
-102
-28

skipif mysql # not compatible
query II rowsort label-4266
SELECT DISTINCT - - CAST ( + - COUNT ( * ) AS INTEGER ) + + MIN ( - + col2 ), - 28 AS col2 FROM tab0 AS cor0
----
-102
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-4267
SELECT - MIN( DISTINCT - col0 ) + - 35 FROM tab2
----
40

skipif mysql # not compatible
query I rowsort label-4267
SELECT - MIN ( DISTINCT - col0 ) + - 35 FROM tab2
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-4268
SELECT + 41 * COUNT( DISTINCT - + 68 ) AS col0 FROM tab0
----
41

skipif mysql # not compatible
query I rowsort label-4268
SELECT + 41 * COUNT ( DISTINCT - + 68 ) AS col0 FROM tab0
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-4269
SELECT ALL - MAX( - col0 ) AS col1 FROM tab1 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-4269
SELECT ALL - MAX ( - col0 ) AS col1 FROM tab1 AS cor0
----
51

onlyif mysql # DIV for integer division: 
query I rowsort label-4270
SELECT + - col1 DIV col1 DIV + col0 * + + col1 col2 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4270
SELECT + - col1 / col1 / + col0 * + + col1 col2 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT col0 * - 19 FROM tab2
----
-1216
-1425
-874

onlyif mysql # aggregate syntax: 
query I rowsort label-4272
SELECT ALL + 3 * COUNT( * ) col0 FROM tab2
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4272
SELECT ALL + 3 * COUNT ( * ) col0 FROM tab2
----
9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4273
SELECT ALL + 97 DIV COUNT( * ) AS col0 FROM tab1
----
32

skipif mysql # not compatible
query I rowsort label-4273
SELECT ALL + 97 / COUNT ( * ) AS col0 FROM tab1
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-4274
SELECT SUM( ALL - 58 ) AS col1 FROM tab2
----
-174

skipif mysql # not compatible
query I rowsort label-4274
SELECT SUM ( ALL - 58 ) AS col1 FROM tab2
----
-174

query I rowsort
SELECT DISTINCT - col1 * 26 + + ( - col0 ) FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT - - 9 * - ( + ( - 79 ) ) AS col0 FROM tab0 AS cor0
----
711
711
711

onlyif mysql # aggregate syntax: 
query I rowsort label-4277
SELECT ALL + MAX( ALL + 95 ) AS col1 FROM tab1 AS cor0
----
95

skipif mysql # not compatible
query I rowsort label-4277
SELECT ALL + MAX ( ALL + 95 ) AS col1 FROM tab1 AS cor0
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-4278
SELECT ALL SUM( ALL + + 3 ) FROM tab1 cor0
----
9

skipif mysql # not compatible
query I rowsort label-4278
SELECT ALL SUM ( ALL + + 3 ) FROM tab1 cor0
----
9

query II rowsort
SELECT DISTINCT 84 AS col0, col2 AS col0 FROM tab0 AS cor0
----
84
10
84
47
84
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4280
SELECT ALL - + MAX( + col0 ) FROM tab1 cor0
----
-91

skipif mysql # not compatible
query I rowsort label-4280
SELECT ALL - + MAX ( + col0 ) FROM tab1 cor0
----
-91

query I rowsort
SELECT - + 61 + + 72 AS col0 FROM tab1 AS cor0
----
11
11
11

query III rowsort
SELECT * FROM tab2 WHERE - col1 < col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 WHERE col0 BETWEEN + col2 - col1 AND NULL
----

query I rowsort
SELECT + col1 AS col1 FROM tab0 WHERE NULL = col2 * col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4285
SELECT ALL + col0 * CAST( + col1 AS SIGNED ) + CAST( 87 + + col2 AS SIGNED ) * 36 FROM tab2
----
10245
6306
9500

skipif mysql # not compatible
query I rowsort label-4285
SELECT ALL + col0 * CAST ( + col1 AS INTEGER ) + CAST ( 87 + + col2 AS INTEGER ) * 36 FROM tab2
----
10245
6306
9500

onlyif mysql # aggregate syntax: 
query I rowsort label-4286
SELECT DISTINCT + MAX( ALL col1 ) FROM tab1 WHERE NOT ( col2 * - col1 ) NOT BETWEEN + 35 AND ( col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4286
SELECT DISTINCT + MAX ( ALL col1 ) FROM tab1 WHERE NOT ( col2 * - col1 ) NOT BETWEEN + 35 AND ( col2 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4287
SELECT DISTINCT MIN( ALL + 64 ) * COUNT( * ) FROM tab1
----
192

skipif mysql # not compatible
query I rowsort label-4287
SELECT DISTINCT MIN ( ALL + 64 ) * COUNT ( * ) FROM tab1
----
192

query I rowsort
SELECT + col1 * - col2 + + col0 * - col1 FROM tab0
----
-196
-2037
-5022

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4289
SELECT ALL + CAST( col2 AS SIGNED ) FROM tab2 WHERE NOT NULL IN ( col2 )
----

skipif mysql # not compatible
query I rowsort label-4289
SELECT ALL + CAST ( col2 AS INTEGER ) FROM tab2 WHERE NOT NULL IN ( col2 )
----

query I rowsort
SELECT DISTINCT + col1 * + 15 AS col2 FROM tab2
----
1005
1155
765

onlyif mysql # aggregate syntax: 
query I rowsort label-4291
SELECT DISTINCT 28 + COUNT( * ) AS col1 FROM tab1 WHERE NOT ( - col2 * 20 ) <= ( + col0 )
----
28

skipif mysql # not compatible
query I rowsort label-4291
SELECT DISTINCT 28 + COUNT ( * ) AS col1 FROM tab1 WHERE NOT ( - col2 * 20 ) <= ( + col0 )
----
28

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 - + 22 col0 FROM tab1
----
37
46
74

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - 57 + 69 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 WHERE NOT ( - col1 * - col2 ) IS NOT NULL
----

query I rowsort
SELECT ALL - ( + 96 ) - - col0 AS col1 FROM tab1
----
-11
-45
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4297
SELECT + CAST( col0 AS SIGNED ) * col2 FROM tab1
----
4896
5015
6188

skipif mysql # not compatible
query I rowsort label-4297
SELECT + CAST ( col0 AS INTEGER ) * col2 FROM tab1
----
4896
5015
6188

onlyif mysql # aggregate syntax: 
query I rowsort label-4298
SELECT COUNT( * ) * - 65 + ( + MAX( - 60 ) ) FROM tab2
----
-255

skipif mysql # not compatible
query I rowsort label-4298
SELECT COUNT ( * ) * - 65 + ( + MAX ( - 60 ) ) FROM tab2
----
-255

query I rowsort
SELECT ( - 8 ) * + col2 FROM tab0
----
-376
-792
-80

query I rowsort
SELECT 48 * - col1 FROM tab1
----
-2256
-240
-672

onlyif mysql # DIV for integer division: 
query I rowsort label-4301
SELECT ALL + 54 * ( + col1 DIV col1 ) FROM tab1
----
54
54
54

skipif mysql # not compatible
query I rowsort label-4301
SELECT ALL + 54 * ( + col1 / col1 ) FROM tab1
----
54
54
54

onlyif mysql # aggregate syntax: 
query I rowsort label-4302
SELECT ALL + COUNT( * ) AS col0 FROM tab0 WHERE ( - 69 * col0 + col1 ) IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-4302
SELECT ALL + COUNT ( * ) AS col0 FROM tab0 WHERE ( - 69 * col0 + col1 ) IS NOT NULL
----
3

query I rowsort
SELECT - 87 + + col1 * col0 AS col1 FROM tab1
----
338
4190
627

onlyif mysql # aggregate syntax: 
query I rowsort label-4304
SELECT + COUNT( * ) + + ( - 29 ) AS col2 FROM tab2
----
-26

skipif mysql # not compatible
query I rowsort label-4304
SELECT + COUNT ( * ) + + ( - 29 ) AS col2 FROM tab2
----
-26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4305
SELECT ALL CAST( CAST( NULL AS SIGNED ) AS SIGNED ) * col0 + + ( col0 ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4305
SELECT ALL CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) * col0 + + ( col0 ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col2 * - 60 + col0 FROM tab1 AS cor0
----
-3455
-3989
-5709

query I rowsort
SELECT DISTINCT + col0 FROM tab0 AS cor0 WHERE 71 / + col0 IS NULL
----

query I rowsort
SELECT DISTINCT + col2 * col2 + col2 AS col0 FROM tab0 AS cor0
----
110
2256
9900

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4309
SELECT + CAST( - COUNT( * ) AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4309
SELECT + CAST ( - COUNT ( * ) AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4310
SELECT DISTINCT COUNT( * ) - + 87 AS col1 FROM tab1
----
-84

skipif mysql # not compatible
query I rowsort label-4310
SELECT DISTINCT COUNT ( * ) - + 87 AS col1 FROM tab1
----
-84

query III rowsort
SELECT * FROM tab0 WHERE NULL BETWEEN + 75 / + 72 AND ( + 72 )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT col2 > col1 + col1
----
91
47
68

query I rowsort
SELECT DISTINCT + 44 FROM tab1 WHERE NOT 17 + col1 NOT IN ( + ( ( + col1 ) ) )
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT NULL IN ( col1 - col1 )
----

query I rowsort
SELECT col0 AS col1 FROM tab0 AS cor0 WHERE NOT - col0 > NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4316
SELECT + - CAST( + COUNT( * ) AS SIGNED ) col2 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4316
SELECT + - CAST ( + COUNT ( * ) AS INTEGER ) col2 FROM tab0 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4317
SELECT DISTINCT - MIN( DISTINCT + col0 ) AS col1 FROM tab1 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-4317
SELECT DISTINCT - MIN ( DISTINCT + col0 ) AS col1 FROM tab1 AS cor0
----
-51

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( - col0 + - 26 ) > 16
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + 8 < ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4320
SELECT ALL ( CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4320
SELECT ALL ( CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4321
SELECT + 25 * - MIN( - 83 * col1 ) AS col0 FROM tab2 AS cor0
----
159775

skipif mysql # not compatible
query I rowsort label-4321
SELECT + 25 * - MIN ( - 83 * col1 ) AS col0 FROM tab2 AS cor0
----
159775

query I rowsort
SELECT col1 + col2 * + col2 FROM tab0 AS cor0 WHERE NOT col2 + - col1 NOT BETWEEN ( + col0 ) AND + 51
----

query I rowsort
SELECT ALL ( + 89 ) FROM tab0 AS cor0 WHERE col0 + - 37 NOT BETWEEN col0 AND ( - col2 )
----
89
89
89

onlyif mysql # aggregate syntax: 
query I rowsort label-4324
SELECT MIN( DISTINCT + col0 ) FROM tab1 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-4324
SELECT MIN ( DISTINCT + col0 ) FROM tab1 AS cor0
----
51

query I rowsort
SELECT DISTINCT - + 35 * + col1 AS col0 FROM tab2 AS cor0
----
-1785
-2345
-2695

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4326
SELECT DISTINCT CAST( NULL AS DECIMAL ) AS col2 FROM tab2 cor0 WHERE NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4326
SELECT DISTINCT CAST ( NULL AS REAL ) AS col2 FROM tab2 cor0 WHERE NULL IS NULL
----
NULL

query I rowsort
SELECT ALL col0 * - 89 FROM tab2
----
-4094
-5696
-6675

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL BETWEEN col1 AND ( NULL )
----

query I rowsort
SELECT ALL - 70 * col2 AS col2 FROM tab1
----
-4130
-4760
-6720

query I rowsort
SELECT col2 AS col1 FROM tab1 WHERE NOT NULL IN ( - 91 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4331
SELECT DISTINCT + 37 DIV + - col2 AS col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-4331
SELECT DISTINCT + 37 / + - col2 AS col0 FROM tab1
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 22 BETWEEN - col2 AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4333
SELECT DISTINCT COUNT( DISTINCT - + col2 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-4333
SELECT DISTINCT COUNT ( DISTINCT - + col2 ) FROM tab2
----
3

query I rowsort
SELECT 94 * + + col2 FROM tab2 AS cor0
----
2162
3760
5452

onlyif mysql # aggregate syntax: 
query I rowsort label-4335
SELECT - + COUNT( * ) * 3 + 26 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-1

skipif mysql # not compatible
query I rowsort label-4335
SELECT - + COUNT ( * ) * 3 + 26 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4336
SELECT - CAST( - col2 AS SIGNED ) FROM tab1 WHERE ( NULL IS NULL )
----
59
68
96

skipif mysql # not compatible
query I rowsort label-4336
SELECT - CAST ( - col2 AS INTEGER ) FROM tab1 WHERE ( NULL IS NULL )
----
59
68
96

query I rowsort
SELECT DISTINCT + col2 FROM tab2 WHERE NOT + col2 IS NULL
----
23
40
58

query I rowsort
SELECT DISTINCT 42 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
42

query II rowsort
SELECT ALL + col0, - 83 AS col2 FROM tab1
----
51
-83
85
-83
91
-83

query I rowsort
SELECT DISTINCT - 1 * + col0 + 35 FROM tab0
----
-52
-62
20

query I rowsort
SELECT ALL + ( + col0 ) + - 23 AS col0 FROM tab1 AS cor0
----
28
62
68

onlyif mysql # aggregate syntax: 
query I rowsort label-4342
SELECT DISTINCT + COUNT( * ) + ( - 4 ) AS col2 FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-4342
SELECT DISTINCT + COUNT ( * ) + ( - 4 ) AS col2 FROM tab1 AS cor0
----
-1

query I rowsort
SELECT + - 43 + - - col0 FROM tab1 AS cor0
----
42
48
8

query I rowsort
SELECT ALL + col1 + - 72 + - col2 AS col1 FROM tab1 AS cor0
----
-126
-154
-93

query I rowsort
SELECT 74 * - col1 + col2 AS col2 FROM tab1 cor0
----
-311
-3410
-940

query I rowsort
SELECT - col1 + + - 93 * col2 AS col2 FROM tab1 AS cor0
----
-5492
-6371
-8942

query I rowsort
SELECT ALL AVG ( - 64 ) - 20 * + 6 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
NULL

query I rowsort
SELECT ALL col1 - - col0 + col2 FROM tab2 AS cor0
----
120
181
200

onlyif mysql # aggregate syntax: 
query I rowsort label-4349
SELECT DISTINCT + SUM( - - col1 ) AS col1 FROM tab1 cor0
----
66

skipif mysql # not compatible
query I rowsort label-4349
SELECT DISTINCT + SUM ( - - col1 ) AS col1 FROM tab1 cor0
----
66

query I rowsort
SELECT ALL 0 FROM tab1 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( NULL ) BETWEEN col1 - - 61 AND ( col0 ) * 70
----

query I rowsort
SELECT - col1 FROM tab2 WHERE NULL <> ( ( + ( col2 ) ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4353
SELECT ALL ( + SUM( DISTINCT - 85 ) ) AS col2 FROM tab0
----
-85

skipif mysql # not compatible
query I rowsort label-4353
SELECT ALL ( + SUM ( DISTINCT - 85 ) ) AS col2 FROM tab0
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-4354
SELECT + 54 * - MIN( + ( 57 ) ) AS col0 FROM tab2 WHERE NULL IS NULL
----
-3078

skipif mysql # not compatible
query I rowsort label-4354
SELECT + 54 * - MIN ( + ( 57 ) ) AS col0 FROM tab2 WHERE NULL IS NULL
----
-3078

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4355
SELECT + 33 DIV - - SUM( - col2 ) AS col1 FROM tab0 WHERE ( NULL ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4355
SELECT + 33 / - - SUM ( - col2 ) AS col1 FROM tab0 WHERE ( NULL ) IS NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 27 col0 FROM tab0
----
27
27
27

query I rowsort
SELECT ALL 92 * AVG ( DISTINCT col2 / - col1 ) FROM tab2 WHERE NOT - - 69 IS NOT NULL
----
NULL

query I rowsort
SELECT ( - col1 ) * 36 AS col1 FROM tab1 WHERE ( + col1 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4359
SELECT ALL 8 * - MAX( ALL + col1 ) FROM tab2
----
-616

skipif mysql # not compatible
query I rowsort label-4359
SELECT ALL 8 * - MAX ( ALL + col1 ) FROM tab2
----
-616

onlyif mysql # aggregate syntax: 
query I rowsort label-4360
SELECT + COUNT( * ) - + + COUNT( * ) AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-4360
SELECT + COUNT ( * ) - + + COUNT ( * ) AS col1 FROM tab1
----
0

query I rowsort
SELECT DISTINCT 85 + - + col0 * - col1 * 96 FROM tab0 AS cor0
----
116725
175477
9397

onlyif mysql # aggregate syntax: 
query I rowsort label-4362
SELECT + - COUNT( DISTINCT + - 8 ) + - + COUNT( * ) FROM tab1 AS cor0
----
-4

skipif mysql # not compatible
query I rowsort label-4362
SELECT + - COUNT ( DISTINCT + - 8 ) + - + COUNT ( * ) FROM tab1 AS cor0
----
-4

query I rowsort
SELECT - + 74 + - col2 FROM tab1 AS cor0
----
-133
-142
-170

query II rowsort
SELECT ALL + col2 * col0 AS col2, + 63 FROM tab2 AS cor0
----
1058
63
2560
63
4350
63

query I rowsort
SELECT - - 22 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to c55ee7433d8d39a59b1de2aadd9538c9

query I rowsort
SELECT ALL + col0 * - 73 AS col0 FROM tab0 WHERE NOT - + col0 IS NULL
----
-1095
-6351
-7081

query I rowsort
SELECT col0 AS col0 FROM tab2 WHERE NOT NULL IN ( + col1 / + 63 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4368
SELECT ALL + COUNT( * ) FROM tab1 AS cor0 WHERE NOT col2 + - 40 NOT IN ( 21 + - col2 * + col0 )
----
0

skipif mysql # not compatible
query I rowsort label-4368
SELECT ALL + COUNT ( * ) FROM tab1 AS cor0 WHERE NOT col2 + - 40 NOT IN ( 21 + - col2 * + col0 )
----
0

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT NULL NOT IN ( col0, 55 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4370
SELECT COUNT( DISTINCT col0 ) * + SUM( - col2 ) FROM tab0 AS cor0
----
-468

skipif mysql # not compatible
query I rowsort label-4370
SELECT COUNT ( DISTINCT col0 ) * + SUM ( - col2 ) FROM tab0 AS cor0
----
-468

query I rowsort
SELECT + ( - - 51 ) AS col0 FROM tab2 AS cor0
----
51
51
51

query I rowsort
SELECT 81 - - 83 FROM tab2 AS cor0 WHERE NOT NULL >= + 28 * + col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 46 * - + col1 col1 FROM tab1 AS cor0
----
-2162
-230
-644

query I rowsort
SELECT ALL col0 * + col0 * - + 63 * 48 FROM tab1 AS cor0
----
-21848400
-25041744
-7865424

onlyif mysql # aggregate syntax: 
query I rowsort label-4375
SELECT + MAX( ALL - col1 ) col0 FROM tab2 cor0
----
-51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4375
SELECT + MAX ( ALL - col1 ) col0 FROM tab2 cor0
----
-51

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT ( NULL ) BETWEEN ( - col0 ) AND ( ( + col2 ) ) * col0
----

query I rowsort
SELECT + 61 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN + col0 AND - col0 - - + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4378
SELECT MAX( - + 40 ) AS col2 FROM tab1 WHERE NOT - col1 IS NULL
----
-40

skipif mysql # not compatible
query I rowsort label-4378
SELECT MAX ( - + 40 ) AS col2 FROM tab1 WHERE NOT - col1 IS NULL
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-4379
SELECT MAX( + 90 ) FROM tab0
----
90

skipif mysql # not compatible
query I rowsort label-4379
SELECT MAX ( + 90 ) FROM tab0
----
90

query I rowsort
SELECT + 93 + + + 59 FROM tab0, tab0 cor0
----
9 values hashing to 565904e33266d77f7dacf61b699cde5a

onlyif mysql # aggregate syntax: 
query I rowsort label-4381
SELECT + MIN( + 35 ) col1 FROM tab1
----
35

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4381
SELECT + MIN ( + 35 ) col1 FROM tab1
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-4382
SELECT DISTINCT + SUM( ALL col1 ) FROM tab1
----
66

skipif mysql # not compatible
query I rowsort label-4382
SELECT DISTINCT + SUM ( ALL col1 ) FROM tab1
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-4383
SELECT ALL - SUM( + col1 ) + + 67 col0 FROM tab0
----
-36

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4383
SELECT ALL - SUM ( + col1 ) + + 67 col0 FROM tab0
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-4384
SELECT DISTINCT + 19 * COUNT( - 68 ) AS col0 FROM tab2
----
57

skipif mysql # not compatible
query I rowsort label-4384
SELECT DISTINCT + 19 * COUNT ( - 68 ) AS col0 FROM tab2
----
57

query III rowsort
SELECT ALL * FROM tab0 WHERE - col0 * 69 NOT IN ( + ( col1 ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT - - col1, + col2 FROM tab0 AS cor0
----
1
99
21
10
81
47

query I rowsort
SELECT + col2 FROM tab1 AS cor0 WHERE NOT + col2 * + 4 = - col1 / - 60
----
59
68
96

query I rowsort
SELECT + col0 + + 28 * col0 FROM tab1 AS cor0
----
1479
2465
2639

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4389
SELECT col0 + + col2 AS col1, + CAST( + 86 AS SIGNED ) FROM tab0 AS cor0
----
196
86
62
86
97
86

skipif mysql # not compatible
query II rowsort label-4389
SELECT col0 + + col2 AS col1, + CAST ( + 86 AS INTEGER ) FROM tab0 AS cor0
----
196
86
62
86
97
86

query I rowsort
SELECT - ( 45 ) + col2 AS col1 FROM tab1 AS cor0
----
14
23
51

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4391
SELECT ALL 52 * - CAST( NULL AS DECIMAL ) + + - col2 * + 12 AS col1, ( col0 ) - col0 AS col2 FROM tab2 AS cor0
----
NULL
0
NULL
0
NULL
0

skipif mysql # not compatible
query II rowsort label-4391
SELECT ALL 52 * - CAST ( NULL AS REAL ) + + - col2 * + 12 AS col1, ( col0 ) - col0 AS col2 FROM tab2 AS cor0
----
NULL
0
NULL
0
NULL
0

query I rowsort
SELECT DISTINCT col2 + + + 3 FROM tab0 cor0
----
102
13
50

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 col1 FROM tab1 AS cor0 WHERE - col1 >= - col0
----
-14
-47
-5

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 11 + + 2 NOT BETWEEN ( + - col0 * col0 + + + col2 + + col0 ) AND - ( + col0 ) / col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4395
SELECT DISTINCT - + col1 * + col1 / + - col0 + CAST( NULL AS SIGNED ) / + + col1 * col1 + - - CAST( ( col2 ) AS SIGNED ) * - 5 AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4395
SELECT DISTINCT - + col1 * + col1 / + - col0 + CAST ( NULL AS INTEGER ) / + + col1 * col1 + - - CAST ( ( col2 ) AS INTEGER ) * - 5 AS col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT + - col0 - - ( + 66 ) - - - col1 AS col0 FROM tab2 AS cor0
----
-31
-75
-76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4397
SELECT ALL - CAST( + ( col1 ) AS SIGNED ) - col0 FROM tab0 AS cor0
----
-108
-96
-98

skipif mysql # not compatible
query I rowsort label-4397
SELECT ALL - CAST ( + ( col1 ) AS INTEGER ) - col0 FROM tab0 AS cor0
----
-108
-96
-98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4398
SELECT CAST( - ( 92 ) AS SIGNED ) FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
-92
-92
-92

skipif mysql # not compatible
query I rowsort label-4398
SELECT CAST ( - ( 92 ) AS INTEGER ) FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
-92
-92
-92

query II rowsort
SELECT + col1 + + 65 AS col0, + col2 AS col0 FROM tab0 cor0
----
146
47
66
99
86
10

query II rowsort
SELECT ALL col1 AS col1, - col1 FROM tab1 WHERE NOT ( NULL ) IS NOT NULL
----
14
-14
47
-47
5
-5

query I rowsort
SELECT 3 + 35 FROM tab2
----
38
38
38

query I rowsort
SELECT + ( + 6 ) + - 49 FROM tab2
----
-43
-43
-43

query I rowsort
SELECT 44 + - + col1 AS col2 FROM tab2
----
-23
-33
-7

query I rowsort
SELECT - col0 + 91 AS col0 FROM tab2
----
16
27
45

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4405
SELECT COUNT( * ) DIV - 51 + 61 AS col2 FROM tab1 AS cor0
----
61

skipif mysql # not compatible
query I rowsort label-4405
SELECT COUNT ( * ) / - 51 + 61 AS col2 FROM tab1 AS cor0
----
61

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - 58 + - 54 * - + col1 NOT IN ( + 82 - - - col0 + + 39 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4407
SELECT DISTINCT MAX( ALL + 91 ) FROM tab1
----
91

skipif mysql # not compatible
query I rowsort label-4407
SELECT DISTINCT MAX ( ALL + 91 ) FROM tab1
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-4408
SELECT ALL COUNT( * ) * - - COUNT( * ) * - 18 * - 41 AS col0 FROM tab2
----
6642

skipif mysql # not compatible
query I rowsort label-4408
SELECT ALL COUNT ( * ) * - - COUNT ( * ) * - 18 * - 41 AS col0 FROM tab2
----
6642

query I rowsort
SELECT 54 * col2 AS col2 FROM tab1 AS cor0
----
3186
3672
5184

query I rowsort
SELECT + - ( 29 ) FROM tab1 AS cor0
----
-29
-29
-29

query II rowsort
SELECT DISTINCT - col0 * - - col2 AS col2, 24 FROM tab0 AS cor0
----
-705
24
-870
24
-9603
24

query II rowsort
SELECT - + 38 * + col0 AS col1, - col1 FROM tab2 AS cor0
----
-1748
-51
-2432
-77
-2850
-67

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( 75 * - 76 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4414
SELECT DISTINCT - CAST( NULL AS DECIMAL ) * col0 * - col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4414
SELECT DISTINCT - CAST ( NULL AS REAL ) * col0 * - col0 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4415
SELECT DISTINCT + SUM( DISTINCT col0 ) col2 FROM tab1 AS cor0
----
227

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4415
SELECT DISTINCT + SUM ( DISTINCT col0 ) col2 FROM tab1 AS cor0
----
227

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + ( 50 ) col2 FROM tab0 AS cor0
----
50
50
50

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL < 36
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4418
SELECT DISTINCT + CAST( 72 AS SIGNED ) AS col2 FROM tab1
----
72

skipif mysql # not compatible
query I rowsort label-4418
SELECT DISTINCT + CAST ( 72 AS INTEGER ) AS col2 FROM tab1
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-4419
SELECT + 12 * - - COUNT( * ) FROM tab1 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4419
SELECT + 12 * - - COUNT ( * ) FROM tab1 WHERE NOT NULL IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4420
SELECT ALL - COUNT( * ) AS col1 FROM tab2 WHERE - col2 * - + col0 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4420
SELECT ALL - COUNT ( * ) AS col1 FROM tab2 WHERE - col2 * - + col0 IS NULL
----
0

query I rowsort
SELECT DISTINCT - + col2 + - ( 89 ) - + 18 FROM tab0 AS cor0
----
-117
-154
-206

onlyif mysql # aggregate syntax: 
query II rowsort label-4422
SELECT - + COUNT( * ) * - MIN( DISTINCT 68 ) + + MIN( + col1 ) AS col0, + COUNT( * ) FROM tab2 AS cor0
----
255
3

skipif mysql # not compatible
query II rowsort label-4422
SELECT - + COUNT ( * ) * - MIN ( DISTINCT 68 ) + + MIN ( + col1 ) AS col0, + COUNT ( * ) FROM tab2 AS cor0
----
255
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4423
SELECT SUM( DISTINCT + col1 ) AS col2 FROM tab0 AS cor0
----
103

skipif mysql # not compatible
query I rowsort label-4423
SELECT SUM ( DISTINCT + col1 ) AS col2 FROM tab0 AS cor0
----
103

onlyif mysql # aggregate syntax: 
query I rowsort label-4424
SELECT COUNT( * ) * + ( - 37 ) AS col0 FROM tab1 AS cor0
----
-111

skipif mysql # not compatible
query I rowsort label-4424
SELECT COUNT ( * ) * + ( - 37 ) AS col0 FROM tab1 AS cor0
----
-111

onlyif mysql # aggregate syntax: 
query I rowsort label-4425
SELECT DISTINCT MIN( - + col0 ) col1 FROM tab0 AS cor0 WHERE NOT ( - + col0 IS NULL )
----
-97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4425
SELECT DISTINCT MIN ( - + col0 ) col1 FROM tab0 AS cor0 WHERE NOT ( - + col0 IS NULL )
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-4426
SELECT DISTINCT - + COUNT( * ) FROM tab0 WHERE NOT NULL IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-4426
SELECT DISTINCT - + COUNT ( * ) FROM tab0 WHERE NOT NULL IS NOT NULL
----
-3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + ( - - col2 ) * col0 = + 68
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4428
SELECT - COUNT( * ) + + MAX( DISTINCT + 21 ) AS col2 FROM tab1 AS cor0
----
18

skipif mysql # not compatible
query I rowsort label-4428
SELECT - COUNT ( * ) + + MAX ( DISTINCT + 21 ) AS col2 FROM tab1 AS cor0
----
18

query I rowsort
SELECT DISTINCT + col0 + - 38 AS col0 FROM tab0 AS cor0
----
-23
49
59

onlyif mysql # aggregate syntax: 
query I rowsort label-4430
SELECT SUM( 66 ) FROM tab2 AS cor0
----
198

skipif mysql # not compatible
query I rowsort label-4430
SELECT SUM ( 66 ) FROM tab2 AS cor0
----
198

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4431
SELECT + col0 AS col0, CAST( 3 AS SIGNED ) * - col0 AS col1 FROM tab2 AS cor0
----
46
-138
64
-192
75
-225

skipif mysql # not compatible
query II rowsort label-4431
SELECT + col0 AS col0, CAST ( 3 AS INTEGER ) * - col0 AS col1 FROM tab2 AS cor0
----
46
-138
64
-192
75
-225

query I rowsort
SELECT DISTINCT - col1 - - ( col0 ) FROM tab2 AS cor0
----
-13
-5
8

query I rowsort
SELECT - + 28 AS col1 FROM tab1 AS cor0 WHERE - col1 * col2 * + - col1 IS NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN 57 AND NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4435
SELECT COUNT( * ) AS col0, + COUNT( * ) FROM tab1 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-4435
SELECT COUNT ( * ) AS col0, + COUNT ( * ) FROM tab1 AS cor0
----
3
3

query I rowsort
SELECT ALL 10 FROM tab1, tab1 AS cor0
----
9 values hashing to a47194429f3e0358a3aebffd5f050113

query I rowsort
SELECT + 55 - - 91 AS col2 FROM tab1
----
146
146
146

query I rowsort
SELECT DISTINCT + 26 * + col0 AS col2 FROM tab0
----
2262
2522
390

onlyif mysql # DIV for integer division: 
query I rowsort label-4439
SELECT ALL 88 DIV - col1 AS col1 FROM tab0
----
-1
-4
-88

skipif mysql # not compatible
query I rowsort label-4439
SELECT ALL 88 / - col1 AS col1 FROM tab0
----
-1
-4
-88

query II rowsort
SELECT DISTINCT - ( + 3 ) AS col1, 83 AS col1 FROM tab0
----
-3
83

onlyif mysql # aggregate syntax: 
query I rowsort label-4441
SELECT ALL ( + ( COUNT( * ) ) ) col0 FROM tab2
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4441
SELECT ALL ( + ( COUNT ( * ) ) ) col0 FROM tab2
----
3

query I rowsort
SELECT ALL + - 18 AS col2 FROM tab2 AS cor0
----
-18
-18
-18

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 42 + col2 + + 20 * + - 50 NOT BETWEEN NULL AND - col2
----

query I rowsort
SELECT col1 + + 81 AS col2 FROM tab1 cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 7 / col0 <> NULL
----

query I rowsort
SELECT ALL - 67 AS col1 FROM tab2 cor0
----
-67
-67
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-4447
SELECT DISTINCT - MIN( ALL col2 ) AS col0 FROM tab0
----
-10

skipif mysql # not compatible
query I rowsort label-4447
SELECT DISTINCT - MIN ( ALL col2 ) AS col0 FROM tab0
----
-10

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col0, 76 col2 FROM tab0
----
-15
76
-87
76
-97
76

query III rowsort
SELECT * FROM tab0 WHERE NOT col2 * + + 48 > NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-4450
SELECT DISTINCT col2, - col2 DIV - - col1 AS col0 FROM tab1 AS cor0
----
59
-11
68
-1
96
-6

skipif mysql # not compatible
query II rowsort label-4450
SELECT DISTINCT col2, - col2 / - - col1 AS col0 FROM tab1 AS cor0
----
59
-11
68
-1
96
-6

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL IN ( col0 / - - col1 * - col1 + + col1 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col0 * - col2 + + + col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4453
SELECT - COUNT( * ) FROM tab2 AS cor0 WHERE NOT ( NOT NULL > + col2 * + col2 )
----
0

skipif mysql # not compatible
query I rowsort label-4453
SELECT - COUNT ( * ) FROM tab2 AS cor0 WHERE NOT ( NOT NULL > + col2 * + col2 )
----
0

query I rowsort
SELECT ALL - col0 - + col2 * - 8 AS col2 FROM tab1 cor0 WHERE NOT NULL <= ( col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4455
SELECT ALL + MAX( col1 ) AS col1 FROM tab2 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-4455
SELECT ALL + MAX ( col1 ) AS col1 FROM tab2 AS cor0
----
77

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4456
SELECT * FROM tab1 WHERE NOT col1 / + - CAST( 27 AS SIGNED ) * + - col2 * + 64 * - 47 <= 57
----

skipif mysql # not compatible
query III rowsort label-4456
SELECT * FROM tab1 WHERE NOT col1 / + - CAST ( 27 AS INTEGER ) * + - col2 * + 64 * - 47 <= 57
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4457
SELECT - COUNT( DISTINCT + - col0 ) AS col2 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-4457
SELECT - COUNT ( DISTINCT + - col0 ) AS col2 FROM tab2
----
-3

query I rowsort
SELECT ALL - col0 * - 49 * - col2 + - + ( + col1 ) AS col1 FROM tab0
----
-34626
-42651
-470548

query II rowsort
SELECT col2 + - col2, - col0 + col0 FROM tab2
----
0
0
0
0
0
0

query I rowsort
SELECT + 17 + + - 25 FROM tab2 AS cor0
----
-8
-8
-8

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4461
SELECT - - CAST( NULL AS DECIMAL ) * + ( - - ( col0 ) ) AS col0 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4461
SELECT - - CAST ( NULL AS REAL ) * + ( - - ( col0 ) ) AS col0 FROM tab0 cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col1 < - + col1 * - col1
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col1 * - - 75 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 WHERE ( NOT ( NOT + col2 > NULL ) )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4465
SELECT ALL - 1 col0, + COUNT( * ) FROM tab0
----
-1
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4465
SELECT ALL - 1 col0, + COUNT ( * ) FROM tab0
----
-1
3

onlyif mysql # aggregate syntax: 
query II rowsort label-4466
SELECT COUNT( * ) AS col2, + 19 * + - 27 FROM tab2
----
3
-513

skipif mysql # not compatible
query II rowsort label-4466
SELECT COUNT ( * ) AS col2, + 19 * + - 27 FROM tab2
----
3
-513

onlyif mysql # aggregate syntax: 
query II rowsort label-4467
SELECT + 70 AS col1, COUNT( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
70
9

skipif mysql # not compatible
query II rowsort label-4467
SELECT + 70 AS col1, COUNT ( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
70
9

query I rowsort
SELECT DISTINCT 89 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
89

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( col0 * col0 * + col2 * - col0 + + 27 ) IS NOT NULL
----

query I rowsort
SELECT ALL + AVG ( DISTINCT - + col1 ) AS col1 FROM tab2 AS cor0 WHERE + col0 > NULL
----
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 73 / 70 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - col2 + + 69 FROM tab1 AS cor0
----
-27
1
10

query I rowsort
SELECT - col2 * + + 73 * + + col1 + - col1 AS col1 FROM tab0 AS cor0
----
-15351
-277992
-7228

query I rowsort
SELECT ALL - col0 - - - 65 FROM tab2 AS cor0
----
-111
-129
-140

query I rowsort
SELECT DISTINCT + - col0 - col1 AS col0 FROM tab1 AS cor0
----
-138
-65
-90

query I rowsort
SELECT - col0 * - 11 + - 30 * - col2 * - col0 - 80 + 61 FROM tab1 AS cor0
----
-146338
-149534
-184658

query I rowsort
SELECT 2 * - - col0 AS col1 FROM tab1
----
102
170
182

onlyif mysql # aggregate syntax: 
query I rowsort label-4478
SELECT ALL + MAX( DISTINCT - 32 ) * + COUNT( * ) AS col0 FROM tab0
----
-96

skipif mysql # not compatible
query I rowsort label-4478
SELECT ALL + MAX ( DISTINCT - 32 ) * + COUNT ( * ) AS col0 FROM tab0
----
-96

query I rowsort
SELECT col1 * 96 AS col2 FROM tab0
----
2016
7776
96

onlyif mysql # aggregate syntax: 
query I rowsort label-4480
SELECT DISTINCT + COUNT( * ) * - 92 FROM tab2
----
-276

skipif mysql # not compatible
query I rowsort label-4480
SELECT DISTINCT + COUNT ( * ) * - 92 FROM tab2
----
-276

query II rowsort
SELECT ALL col2, - col0 * - 22 AS col0 FROM tab1
----
59
1870
68
2002
96
1122

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL NOT BETWEEN + + ( + col2 ) AND + - 71
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 85 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4484
SELECT ALL - ( - MAX( DISTINCT col0 ) ) FROM tab2 AS cor0 WHERE NOT + col1 IS NULL
----
75

skipif mysql # not compatible
query I rowsort label-4484
SELECT ALL - ( - MAX ( DISTINCT col0 ) ) FROM tab2 AS cor0 WHERE NOT + col1 IS NULL
----
75

onlyif mysql # DIV for integer division: 
query I rowsort label-4485
SELECT + - col0 DIV ( - col2 ) + col0 AS col2 FROM tab0 AS cor0
----
15
95
97

skipif mysql # not compatible
query I rowsort label-4485
SELECT + - col0 / ( - col2 ) + col0 AS col2 FROM tab0 AS cor0
----
15
95
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - - col1, 59 col1 FROM tab2 AS cor0
----
51
59
67
59
77
59

onlyif mysql # DIV for integer division: 
query I rowsort label-4487
SELECT - + col1 DIV col2 FROM tab1 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4487
SELECT - + col1 / col2 FROM tab1 cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4488
SELECT DISTINCT - 19 * + col1 * CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4488
SELECT DISTINCT - 19 * + col1 * CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * + 33 col2 FROM tab0 cor0
----
2673
33
693

query I rowsort
SELECT + 65 AS col1 FROM tab1 cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT ALL 5 FROM tab0 AS cor0 WHERE NOT ( + ( 97 ) ) IS NULL
----
5
5
5

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT - 48 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - col1 FROM tab0 AS cor0 WHERE NOT - col1 IS NOT NULL AND NULL IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4494
SELECT + - col2 + col0 + + col2 + + col2 DIV - ( + + col1 ) * - + col1 + + col0 + + col2 * 36 - - + col1 DIV + - col0 FROM tab0 AS cor0
----
1717
3857
534

skipif mysql # not compatible
query I rowsort label-4494
SELECT + - col2 + col0 + + col2 + + col2 / - ( + + col1 ) * - + col1 + + col0 + + col2 * 36 - - + col1 / + - col0 FROM tab0 AS cor0
----
1717
3857
534

onlyif mysql # DIV for integer division: 
query I rowsort label-4495
SELECT - - 72 DIV + + col2 + col2 * col1 * + col1 + + 71 + col1 AS col2 FROM tab2 AS cor0
----
237309
260501
59948

skipif mysql # not compatible
query I rowsort label-4495
SELECT - - 72 / + + col2 + col2 * col1 * + col1 + + 71 + col1 AS col2 FROM tab2 AS cor0
----
237309
260501
59948

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT - 3 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + 21 + col0 AS col2 FROM tab2 AS cor0
----
67
85
96

onlyif mysql # aggregate syntax: 
query I rowsort label-4498
SELECT DISTINCT - 80 * + MAX( DISTINCT + ( - - 87 ) ) AS col2 FROM tab1 AS cor0
----
-6960

skipif mysql # not compatible
query I rowsort label-4498
SELECT DISTINCT - 80 * + MAX ( DISTINCT + ( - - 87 ) ) AS col2 FROM tab1 AS cor0
----
-6960

onlyif mysql # aggregate syntax: 
query I rowsort label-4499
SELECT ALL ( - - COUNT( * ) ) AS col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4499
SELECT ALL ( - - COUNT ( * ) ) AS col0 FROM tab2 AS cor0
----
3

query I rowsort
SELECT ALL + ( - 58 ) FROM tab0 AS cor0
----
-58
-58
-58

query I rowsort
SELECT - col2 FROM tab0 AS cor0 WHERE NULL > - col0 + + 8
----

query I rowsort
SELECT ALL - ( + col1 ) FROM tab1 cor0 WHERE NOT 61 IS NULL
----
-14
-47
-5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4503
SELECT DISTINCT - COUNT( * ) DIV - COUNT( * ) + 3 FROM tab0
----
4

skipif mysql # not compatible
query I rowsort label-4503
SELECT DISTINCT - COUNT ( * ) / - COUNT ( * ) + 3 FROM tab0
----
4

query I rowsort
SELECT - ( 15 ) AS col2 FROM tab0
----
-15
-15
-15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4505
SELECT ALL - CAST( NULL AS SIGNED ) * + col1 + - col2 * + - ( - col0 ) * 74 AS col1 FROM tab2 AS cor0 WHERE - col1 * col1 > NULL
----

skipif mysql # not compatible
query I rowsort label-4505
SELECT ALL - CAST ( NULL AS INTEGER ) * + col1 + - col2 * + - ( - col0 ) * 74 AS col1 FROM tab2 AS cor0 WHERE - col1 * col1 > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4506
SELECT - col2, CAST( + + col2 AS SIGNED ) + CAST( 75 AS SIGNED ) AS col1 FROM tab0 cor0
----
-10
85
-47
122
-99
174

skipif mysql # not compatible
query II rowsort label-4506
SELECT - col2, CAST ( + + col2 AS INTEGER ) + CAST ( 75 AS INTEGER ) AS col1 FROM tab0 cor0
----
-10
85
-47
122
-99
174

query I rowsort
SELECT 25 AS col1 FROM tab0 AS cor0 WHERE ( - 28 ) + - + 97 IS NULL
----

query I rowsort
SELECT DISTINCT + - 90 * + - col2 AS col0 FROM tab1 AS cor0
----
5310
6120
8640

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + - col0 col1, ( col0 ) FROM tab2 cor0 WHERE ( + 21 + col1 BETWEEN NULL AND - + col2 )
----

query I rowsort
SELECT 84 * - 11 FROM tab0 AS cor0
----
-924
-924
-924

onlyif mysql # aggregate syntax: 
query I rowsort label-4511
SELECT ALL MAX( - ( + - 43 ) ) AS col0 FROM tab0 AS cor0 WHERE - 45 NOT BETWEEN + 52 - + + col2 + col1 AND NULL
----
43

skipif mysql # not compatible
query I rowsort label-4511
SELECT ALL MAX ( - ( + - 43 ) ) AS col0 FROM tab0 AS cor0 WHERE - 45 NOT BETWEEN + 52 - + + col2 + col1 AND NULL
----
43

query I rowsort
SELECT 72 * - 24 FROM tab2
----
-1728
-1728
-1728

query I rowsort
SELECT col1 * - 37 * - 15 AS col1 FROM tab1
----
26085
2775
7770

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1, + col2 col0 FROM tab2
----
51
23
67
58
77
40

onlyif mysql # DIV for integer division: 
query I rowsort label-4515
SELECT col1 + - col2 + - 82 DIV - col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-21
-54
-81

skipif mysql # not compatible
query I rowsort label-4515
SELECT col1 + - col2 + - 82 / - col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-21
-54
-81

query I rowsort
SELECT 20 * - - col0 FROM tab0
----
1740
1940
300

onlyif mysql # aggregate syntax: 
query I rowsort label-4517
SELECT ALL - MIN( - col0 ) AS col0 FROM tab2
----
75

skipif mysql # not compatible
query I rowsort label-4517
SELECT ALL - MIN ( - col0 ) AS col0 FROM tab2
----
75

query I rowsort
SELECT col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) > NULL
----

query I rowsort
SELECT + - 41 AS col1 FROM tab2 cor0
----
-41
-41
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-4520
SELECT DISTINCT 77 * - 53 - + COUNT( * ) FROM tab1 AS cor0
----
-4084

skipif mysql # not compatible
query I rowsort label-4520
SELECT DISTINCT 77 * - 53 - + COUNT ( * ) FROM tab1 AS cor0
----
-4084

query II rowsort
SELECT - col2 AS col1, col2 AS col0 FROM tab0 AS cor0
----
-10
10
-47
47
-99
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4522
SELECT 99 * + SUM( col2 ) * - - MAX( DISTINCT col1 ) - - 24 AS col1 FROM tab1 AS cor0
----
1037643

skipif mysql # not compatible
query I rowsort label-4522
SELECT 99 * + SUM ( col2 ) * - - MAX ( DISTINCT col1 ) - - 24 AS col1 FROM tab1 AS cor0
----
1037643

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4523
SELECT ALL - CAST( NULL AS SIGNED ) * - + ( + + col2 ) + - + 55 / 46 col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4523
SELECT ALL - CAST ( NULL AS INTEGER ) * - + ( + + col2 ) + - + 55 / 46 col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - - col2 * + 51 FROM tab0 cor0
----
2397
5049
510

onlyif mysql # aggregate syntax: 
query I rowsort label-4525
SELECT ALL - + COUNT( * ) FROM tab0 AS cor0 WHERE + 69 IS NOT NULL OR NULL IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-4525
SELECT ALL - + COUNT ( * ) FROM tab0 AS cor0 WHERE + 69 IS NOT NULL OR NULL IS NOT NULL
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-4526
SELECT ALL - 23 DIV - col1 AS col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4526
SELECT ALL - 23 / - col1 AS col0 FROM tab2 AS cor0
----
0
0
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL <> 39 * + + col1 / - + col1
----

query I rowsort
SELECT DISTINCT + + col0 * - 26 + - col1 - + col1 FROM tab0 AS cor0
----
-2304
-2524
-552

query I rowsort
SELECT - - col0 + - col1 - + 70 + - col2 FROM tab2 AS cor0
----
-120
-123
-98

query I rowsort
SELECT col1 + + 35 + - - col1 FROM tab1
----
129
45
63

query I rowsort
SELECT - 70 * + col1 + 65 + - - col1 * - ( + + col2 ) FROM tab1
----
-2259
-580
-6421

onlyif mysql # aggregate syntax: 
query I rowsort label-4532
SELECT COUNT( * ) + + MAX( ( + - 44 ) ) FROM tab2
----
-41

skipif mysql # not compatible
query I rowsort label-4532
SELECT COUNT ( * ) + + MAX ( ( + - 44 ) ) FROM tab2
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-4533
SELECT - ( + COUNT( * ) ) - + + AVG ( - col1 ) AS col2 FROM tab1 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4533
SELECT - ( + COUNT ( * ) ) - + + AVG ( - col1 ) AS col2 FROM tab1 WHERE NULL IS NOT NULL
----
NULL

query I rowsort
SELECT DISTINCT + col2 + - ( + - 38 ) AS col2 FROM tab2 WHERE NULL > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4535
SELECT - 12 + - CAST( 80 AS SIGNED ) + + 78 AS col2 FROM tab2
----
-14
-14
-14

skipif mysql # not compatible
query I rowsort label-4535
SELECT - 12 + - CAST ( 80 AS INTEGER ) + + 78 AS col2 FROM tab2
----
-14
-14
-14

query I rowsort
SELECT + col2 AS col1 FROM tab0 WHERE NULL <= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col1 NOT IN ( + 11 - + - 32, col0, + col1 + + col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + 3 FROM tab0 AS cor0 WHERE NULL <> - col0
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NOT - 97 * - - ( - col0 ) - col1 IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4540
SELECT + COUNT( * ) * 90 AS col2 FROM tab0 cor0
----
270

skipif mysql # not compatible
query I rowsort label-4540
SELECT + COUNT ( * ) * 90 AS col2 FROM tab0 cor0
----
270

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 23 col1 FROM tab1
----
23

query II rowsort
SELECT DISTINCT - col1 AS col1, - 53 - - 29 * + col0 * + + col2 AS col2 FROM tab1
----
-14
141931
-47
179399
-5
145382

query I rowsort
SELECT ALL - col2 + - col1 + - - 21 + 52 FROM tab0 AS cor0 WHERE col2 * + col1 IS NOT NULL
----
-27
-55
42

query II rowsort
SELECT ALL + 91 AS col2, col1 * + - col1 FROM tab0 AS cor0
----
91
-1
91
-441
91
-6561

onlyif mysql # DIV for integer division: 
query I rowsort label-4545
SELECT - 81 DIV - col0 AS col2 FROM tab1 cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-4545
SELECT - 81 / - col0 AS col2 FROM tab1 cor0
----
0
0
1

query I rowsort
SELECT col1 AS col1 FROM tab2 AS cor0 WHERE NOT + col0 > NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 94 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4548
SELECT ALL + + 64 * - COUNT( * ) AS col0 FROM tab2 AS cor0
----
-192

skipif mysql # not compatible
query I rowsort label-4548
SELECT ALL + + 64 * - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-192

onlyif mysql # aggregate syntax: 
query I rowsort label-4549
SELECT ALL + 61 * + ( MIN( col1 ) ) AS col0 FROM tab0
----
61

skipif mysql # not compatible
query I rowsort label-4549
SELECT ALL + 61 * + ( MIN ( col1 ) ) AS col0 FROM tab0
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-4550
SELECT DISTINCT - ( + COUNT( * ) ) col2 FROM tab1 WHERE NOT - + col0 IS NOT NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4550
SELECT DISTINCT - ( + COUNT ( * ) ) col2 FROM tab1 WHERE NOT - + col0 IS NOT NULL
----
0

query I rowsort
SELECT + col0 AS col1 FROM tab2 WHERE NOT + - col2 IS NULL
----
46
64
75

query I rowsort
SELECT ALL 36 * 51 AS col2 FROM tab1 AS cor0
----
1836
1836
1836

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL < + 15 * 4
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4554
SELECT + col2 DIV + + 40 FROM tab0 AS cor0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-4554
SELECT + col2 / + + 40 FROM tab0 AS cor0
----
0
1
2

onlyif mysql # aggregate syntax: 
query I rowsort label-4555
SELECT ALL SUM( DISTINCT - col2 ) AS col1 FROM tab0
----
-156

skipif mysql # not compatible
query I rowsort label-4555
SELECT ALL SUM ( DISTINCT - col2 ) AS col1 FROM tab0
----
-156

query I rowsort
SELECT ALL - col0 + 83 AS col1 FROM tab0 AS cor0
----
-14
-4
68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 45 * 51 col1 FROM tab0 AS cor0 WHERE ( NULL ) = NULL
----

query I rowsort
SELECT ALL col2 AS col2 FROM tab1 AS cor0 WHERE NOT ( NOT NULL BETWEEN - col2 / + 21 + + col1 * + + col1 AND ( 18 ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4559
SELECT ALL + CAST( NULL AS SIGNED ) / - 81 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4559
SELECT ALL + CAST ( NULL AS INTEGER ) / - 81 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4560
SELECT DISTINCT - col2 FROM tab0 cor0 WHERE NOT CAST( NULL AS SIGNED ) - + col0 - + col0 IS NULL
----

skipif mysql # not compatible
query I rowsort label-4560
SELECT DISTINCT - col2 FROM tab0 cor0 WHERE NOT CAST ( NULL AS INTEGER ) - + col0 - + col0 IS NULL
----

query I rowsort
SELECT + 20 AS col1 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN col0 AND NULL
----

query II rowsort
SELECT 7, 15 AS col1 FROM tab0 AS cor0
----
7
15
7
15
7
15

query III rowsort
SELECT * FROM tab0 WHERE + col0 * col2 / + 56 * - col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4564
SELECT ALL ( - COUNT( * ) ) AS col1 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-4564
SELECT ALL ( - COUNT ( * ) ) AS col1 FROM tab1
----
-3

onlyif mysql # DIV for integer division: 
query II rowsort label-4565
SELECT - col2 DIV col2 AS col2, col2 AS col1 FROM tab1
----
-1
59
-1
68
-1
96

skipif mysql # not compatible
query II rowsort label-4565
SELECT - col2 / col2 AS col2, col2 AS col1 FROM tab1
----
-1
59
-1
68
-1
96

onlyif mysql # aggregate syntax: 
query II rowsort label-4566
SELECT ALL 62 AS col0, - 72 * - COUNT( * ) FROM tab0
----
62
216

skipif mysql # not compatible
query II rowsort label-4566
SELECT ALL 62 AS col0, - 72 * - COUNT ( * ) FROM tab0
----
62
216

onlyif mysql # DIV for integer division: 
query I rowsort label-4567
SELECT - col2 DIV 89 + - col1 - + - 12 FROM tab2 AS cor0
----
-39
-55
-65

skipif mysql # not compatible
query I rowsort label-4567
SELECT - col2 / 89 + - col1 - + - 12 FROM tab2 AS cor0
----
-39
-55
-65

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col1 NOT IN ( + - 42 * col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4569
SELECT ALL - - COUNT( * ) * + 26 AS col0 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
234

skipif mysql # not compatible
query I rowsort label-4569
SELECT ALL - - COUNT ( * ) * + 26 AS col0 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
234

onlyif mysql # DIV for integer division: 
query II rowsort label-4570
SELECT - col1 * col2 AS col0, col2 DIV - col1 + - col0 FROM tab0 AS cor0
----
-210
-87
-3807
-15
-99
-196

skipif mysql # not compatible
query II rowsort label-4570
SELECT - col1 * col2 AS col0, col2 / - col1 + - col0 FROM tab0 AS cor0
----
-210
-87
-3807
-15
-99
-196

onlyif mysql # DIV for integer division: 
query I rowsort label-4571
SELECT + col1 DIV - 23 AS col0 FROM tab0 AS cor0
----
-3
0
0

skipif mysql # not compatible
query I rowsort label-4571
SELECT + col1 / - 23 AS col0 FROM tab0 AS cor0
----
-3
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4572
SELECT - COUNT( * ) FROM tab1 AS cor0 WHERE NOT - col0 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-4572
SELECT - COUNT ( * ) FROM tab1 AS cor0 WHERE NOT - col0 IS NULL
----
-3

query II rowsort
SELECT ALL - col2 * + 23 AS col1, + 23 * col0 FROM tab0 AS cor0
----
-1081
345
-2277
2231
-230
2001

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4574
SELECT + CAST( - + 91 AS DECIMAL ), 73 AS col1 FROM tab0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query II rowsort label-4574
SELECT + CAST ( - + 91 AS REAL ), 73 AS col1 FROM tab0 WHERE NOT NULL IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 col2, + col1 FROM tab2
----
46
51
64
77
75
67

query I rowsort
SELECT + 68 * - col2 AS col2 FROM tab2
----
-1564
-2720
-3944

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4577
SELECT DISTINCT CAST( - + SUM( DISTINCT 94 ) AS SIGNED ) FROM tab2
----
-94

skipif mysql # not compatible
query I rowsort label-4577
SELECT DISTINCT CAST ( - + SUM ( DISTINCT 94 ) AS INTEGER ) FROM tab2
----
-94

query I rowsort
SELECT DISTINCT 87 * + col2 FROM tab1
----
5133
5916
8352

query I rowsort
SELECT ALL - col1 * - - col2 AS col1 FROM tab0 AS cor0
----
-210
-3807
-99

query I rowsort
SELECT - 86 FROM tab2 AS cor0 WHERE NOT NULL = NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4581
SELECT CAST( NULL AS SIGNED ) * + - 38 + - - 64 + COUNT( * ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4581
SELECT CAST ( NULL AS INTEGER ) * + - 38 + - - 64 + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL + col2 AS col2 FROM tab1 AS cor0 WHERE NOT ( - col1 >= NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NULL ) <= - - col1
----

query I rowsort
SELECT ALL - 16 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to be22ac76b42c6f7212ecc0ba7c89eb34

query I rowsort
SELECT DISTINCT + col2 * + ( + + col2 ) * - ( + + 8 ) + - col2 AS col1 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL - ( ( col1 ) ) + + col1 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4587
SELECT DISTINCT + - COUNT( ALL + col0 ) + 28 AS col1 FROM tab0 cor0
----
25

skipif mysql # not compatible
query I rowsort label-4587
SELECT DISTINCT + - COUNT ( ALL + col0 ) + 28 AS col1 FROM tab0 cor0
----
25

query I rowsort
SELECT - col1 + + + col0 + col2 AS col0 FROM tab2 AS cor0
----
18
27
66

onlyif mysql # aggregate syntax: 
query II rowsort label-4589
SELECT ALL + COUNT( col2 ) * + COUNT( * ) col1, - 74 FROM tab2
----
9
-74

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4589
SELECT ALL + COUNT ( col2 ) * + COUNT ( * ) col1, - 74 FROM tab2
----
9
-74

query III rowsort
SELECT * FROM tab2 WHERE ( NOT - 55 < 15 * + 90 )
----

query I rowsort
SELECT 34 + + col2 FROM tab1
----
102
130
93

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + - col1 + + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4593
SELECT ALL - ( + MIN( + col1 ) ) + - 1 FROM tab2
----
-52

skipif mysql # not compatible
query I rowsort label-4593
SELECT ALL - ( + MIN ( + col1 ) ) + - 1 FROM tab2
----
-52

query I rowsort
SELECT col0 - - col0 + - - col2 + - - col1 FROM tab1 AS cor0 WHERE ( - col0 ) > - col0
----

query I rowsort
SELECT DISTINCT - 63 + + - col0 FROM tab2 AS cor0
----
-109
-127
-138

query I rowsort
SELECT DISTINCT + 74 - - 55 AS col2 FROM tab0 AS cor0
----
129

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 47 col1 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT + col2 AS col1 FROM tab1 AS cor0 WHERE NOT - col1 IN ( col0 )
----
59
68
96

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL NOT IN ( col2 / col1 )
----

query I rowsort
SELECT + 77 + - - col2 + + - col2 * + 29 FROM tab2 AS cor0 WHERE NOT col1 + + + col0 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - - 50, - 74 col1 FROM tab0 AS cor0
----
50
-74
50
-74
50
-74

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4602
SELECT - + SUM( DISTINCT + col2 ) / + CAST( NULL AS DECIMAL ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4602
SELECT - + SUM ( DISTINCT + col2 ) / + CAST ( NULL AS REAL ) AS col1 FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4603
SELECT DISTINCT - MIN( ALL + + CAST( NULL AS SIGNED ) ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4603
SELECT DISTINCT - MIN ( ALL + + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( + 36 + - 17 + + - col0 IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4605
SELECT ALL + SUM( ALL - col0 ) AS col2 FROM tab1 AS cor0
----
-227

skipif mysql # not compatible
query I rowsort label-4605
SELECT ALL + SUM ( ALL - col0 ) AS col2 FROM tab1 AS cor0
----
-227

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT col0 + - col1 + - col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col1 * + col2 col2 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4608
SELECT + 32 DIV + - 99 AS col0 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4608
SELECT + 32 / + - 99 AS col0 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4609
SELECT ALL - - COUNT( * ), COUNT( * ) col2 FROM tab1 AS cor0
----
3
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4609
SELECT ALL - - COUNT ( * ), COUNT ( * ) col2 FROM tab1 AS cor0
----
3
3

onlyif mysql # DIV for integer division: 
query II rowsort label-4610
SELECT DISTINCT + + col2, + col2 DIV - col2 FROM tab2 AS cor0
----
23
-1
40
-1
58
-1

skipif mysql # not compatible
query II rowsort label-4610
SELECT DISTINCT + + col2, + col2 / - col2 FROM tab2 AS cor0
----
23
-1
40
-1
58
-1

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL BETWEEN - col1 + - 36 + - + col1 AND NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col0 - - - 88 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 59 col1 FROM tab1 AS cor0
----
59
59
59

query I rowsort
SELECT ALL ( 56 ) FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT - - 88 AS col2 FROM tab0 AS cor0
----
88

query I rowsort
SELECT + ( + + 23 ) AS col1 FROM tab0 AS cor0
----
23
23
23

query I rowsort
SELECT + - ( + col2 ) * + + col1 FROM tab1 AS cor0
----
-1344
-295
-3196

onlyif mysql # DIV for integer division: 
query I rowsort label-4618
SELECT + 71 DIV + col1 FROM tab1 AS cor0
----
1
14
5

skipif mysql # not compatible
query I rowsort label-4618
SELECT + 71 / + col1 FROM tab1 AS cor0
----
1
14
5

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL <= - col1 + col1
----

query I rowsort
SELECT - 12 + + + col0 FROM tab2
----
34
52
63

query I rowsort
SELECT ALL + + AVG ( DISTINCT + col0 ) FROM tab0 WHERE NOT NULL IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4622
SELECT COUNT( * ) * + 21 col2 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
189

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4622
SELECT COUNT ( * ) * + 21 col2 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
189

query I rowsort
SELECT DISTINCT - col1 + - 37 * 18 FROM tab0
----
-667
-687
-747

onlyif mysql # aggregate syntax: 
query I rowsort label-4624
SELECT DISTINCT SUM( - col1 ) FROM tab2 AS cor0 WHERE col1 * - col1 IS NOT NULL
----
-195

skipif mysql # not compatible
query I rowsort label-4624
SELECT DISTINCT SUM ( - col1 ) FROM tab2 AS cor0 WHERE col1 * - col1 IS NOT NULL
----
-195

query I rowsort
SELECT + - 40 * + col0 FROM tab1 cor0
----
-2040
-3400
-3640

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 col2, col2 * - - col2 AS col2 FROM tab2 AS cor0
----
51
529
67
3364
77
1600

query II rowsort
SELECT - col1 * + col0 + + col1 * - col2, col1 AS col2 FROM tab1 AS cor0
----
-2058
14
-720
5
-7473
47

query I rowsort
SELECT DISTINCT - col1 - - - col0 AS col1 FROM tab0 AS cor0
----
-108
-96
-98

query I rowsort
SELECT ALL + col2 + - - col1 FROM tab0 AS cor0
----
100
128
31

query I rowsort
SELECT DISTINCT - - 32 AS col1 FROM tab2 AS cor0
----
32

query I rowsort
SELECT ALL + 28 * - + col0 - + 54 - + col2 + + col1 AS col2 FROM tab2 AS cor0
----
-1314
-1809
-2145

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4632
SELECT ALL + + CAST( + + col1 AS SIGNED ) AS col0 FROM tab2 WHERE NOT col2 * 29 + + col0 + + - 34 > NULL
----

skipif mysql # not compatible
query I rowsort label-4632
SELECT ALL + + CAST ( + + col1 AS INTEGER ) AS col0 FROM tab2 WHERE NOT col2 * 29 + + col0 + + - 34 > NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 43 col0 FROM tab1
----
43

query I rowsort
SELECT DISTINCT + 33 - - col2 FROM tab1
----
101
129
92

query I rowsort
SELECT ALL - col0 * + 20 FROM tab0
----
-1740
-1940
-300

query I rowsort
SELECT 24 - - 11 + col0 FROM tab1
----
120
126
86

query III rowsort
SELECT * FROM tab0 WHERE ( - + col2 ) BETWEEN NULL AND ( col1 )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-4638
SELECT col0 - - col2 AS col2, - col1 * + col1 + + 20 + + + col2 DIV + + col2 FROM tab2
----
104
-5908
133
-4468
69
-2580

skipif mysql # not compatible
query II rowsort label-4638
SELECT col0 - - col2 AS col2, - col1 * + col1 + + 20 + + + col2 / + + col2 FROM tab2
----
104
-5908
133
-4468
69
-2580

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4639
SELECT ALL 18 + - 42 + COUNT( * ) DIV 6 col1 FROM tab1
----
-24

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4639
SELECT ALL 18 + - 42 + COUNT ( * ) / 6 col1 FROM tab1
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-4640
SELECT ALL + + 14 + 3 * - COUNT( * ) AS col1 FROM tab0 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-4640
SELECT ALL + + 14 + 3 * - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
5

query I rowsort
SELECT DISTINCT 83 * - + col2 FROM tab1 AS cor0
----
-4897
-5644
-7968

query I rowsort
SELECT col0 FROM tab1 AS cor0 WHERE NOT col0 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 63 BETWEEN - col1 / + + col0 * - 96 + - - col1 AND NULL
----

query II rowsort
SELECT DISTINCT + col0, + col2 FROM tab2
----
46
23
64
40
75
58

onlyif mysql # aggregate syntax: 
query I rowsort label-4645
SELECT DISTINCT + SUM( ALL 84 ) FROM tab2
----
252

skipif mysql # not compatible
query I rowsort label-4645
SELECT DISTINCT + SUM ( ALL 84 ) FROM tab2
----
252

query I rowsort
SELECT DISTINCT - + 29 FROM tab1 cor0
----
-29

query I rowsort
SELECT ALL - - col2 AS col0 FROM tab1 AS cor0 WHERE NOT + ( col0 ) IS NULL
----
59
68
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4648
SELECT DISTINCT 29 * - 52 * - - COUNT( * ) FROM tab1 AS cor0 WHERE NOT NULL = - col2 / + CAST( NULL AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-4648
SELECT DISTINCT 29 * - 52 * - - COUNT ( * ) FROM tab1 AS cor0 WHERE NOT NULL = - col2 / + CAST ( NULL AS INTEGER )
----
0

query I rowsort
SELECT DISTINCT - - 14 AS col0 FROM tab1 AS cor0
----
14

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col1 / - col0 NOT BETWEEN col2 AND - 94
----

query I rowsort
SELECT DISTINCT - 23 * - col2 FROM tab2 AS cor0
----
1334
529
920

query II rowsort
SELECT ALL col2 AS col2, col1 FROM tab1
----
59
5
68
47
96
14

query I rowsort
SELECT col1 * - ( col2 ) FROM tab2 WHERE NOT - - col2 + + 39 - + col1 BETWEEN - + col0 / + 20 AND NULL
----

query I rowsort
SELECT ( + - col1 ) AS col0 FROM tab2
----
-51
-67
-77

query I rowsort
SELECT + col1 * col2 * + 26 + - + col2 FROM tab2
----
100978
30475
80040

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4656
SELECT DISTINCT - COUNT( CAST( NULL AS SIGNED ) ) + + + 50 + + - 84 AS col1 FROM tab0
----
-34

skipif mysql # not compatible
query I rowsort label-4656
SELECT DISTINCT - COUNT ( CAST ( NULL AS INTEGER ) ) + + + 50 + + - 84 AS col1 FROM tab0
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-4657
SELECT ALL 77 * + - SUM( ALL - col0 ) + + MAX( ( + - col1 ) ) + + COUNT( * ) FROM tab0 AS cor0
----
15325

skipif mysql # not compatible
query I rowsort label-4657
SELECT ALL 77 * + - SUM ( ALL - col0 ) + + MAX ( ( + - col1 ) ) + + COUNT ( * ) FROM tab0 AS cor0
----
15325

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 col1 FROM tab0 AS cor0 WHERE col0 IS NOT NULL
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4659
SELECT DISTINCT ( COUNT( - col1 ) ) AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4659
SELECT DISTINCT ( COUNT ( - col1 ) ) AS col2 FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-4660
SELECT DISTINCT - - SUM( - 81 ) + - MIN( DISTINCT - col2 ) AS col0, + 37 + + 66 FROM tab2 cor0
----
-185
103

skipif mysql # not compatible
query II rowsort label-4660
SELECT DISTINCT - - SUM ( - 81 ) + - MIN ( DISTINCT - col2 ) AS col0, + 37 + + 66 FROM tab2 cor0
----
-185
103

onlyif mysql # aggregate syntax: 
query I rowsort label-4661
SELECT DISTINCT COUNT( - col0 ) AS col1 FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-4661
SELECT DISTINCT COUNT ( - col0 ) AS col1 FROM tab0 cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4662
SELECT - MIN( - col1 ) FROM tab2 WHERE NULL IS NULL
----
77

skipif mysql # not compatible
query I rowsort label-4662
SELECT - MIN ( - col1 ) FROM tab2 WHERE NULL IS NULL
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-4663
SELECT - - COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9

skipif mysql # not compatible
query I rowsort label-4663
SELECT - - COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9

query I rowsort
SELECT + 2 FROM ( tab2 AS cor0 CROSS JOIN tab0 cor1 )
----
9 values hashing to 84dbfaf9bc17dd097f15bc36b4186261

onlyif mysql # aggregate syntax: 
query I rowsort label-4665
SELECT + COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE NULL IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-4665
SELECT + COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE NULL IS NULL
----
3

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col1 BETWEEN col1 AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4667
SELECT DISTINCT - + SUM( col2 ) + - 91 + - - CAST( + CAST( + 92 AS SIGNED ) AS SIGNED ) FROM tab0 cor0
----
-155

skipif mysql # not compatible
query I rowsort label-4667
SELECT DISTINCT - + SUM ( col2 ) + - 91 + - - CAST ( + CAST ( + 92 AS INTEGER ) AS INTEGER ) FROM tab0 cor0
----
-155

query I rowsort
SELECT ALL col2 + + ( 82 ) AS col1 FROM tab2 AS cor0
----
105
122
140

onlyif mysql # aggregate syntax: 
query I rowsort label-4669
SELECT DISTINCT + MIN( DISTINCT 38 ) - + - MIN( DISTINCT col0 ) AS col2 FROM tab2 AS cor0
----
84

skipif mysql # not compatible
query I rowsort label-4669
SELECT DISTINCT + MIN ( DISTINCT 38 ) - + - MIN ( DISTINCT col0 ) AS col2 FROM tab2 AS cor0
----
84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4670
SELECT - CAST( NULL AS SIGNED ) + - col0 + + col2 / - col1 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4670
SELECT - CAST ( NULL AS INTEGER ) + - col0 + + col2 / - col1 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 26 * + col2 + + + col1 * col2 FROM tab2 AS cor0 WHERE 54 NOT IN ( - col1 * col0 * - + 75, - col0, col1 )
----
1771
4120
5394

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 64 <> NULL
----

query I rowsort
SELECT DISTINCT + - col1 * 31 - - + 2 FROM tab2 AS cor0
----
-1579
-2075
-2385

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4674
SELECT CAST( + 99 AS SIGNED ) + ( + CAST( NULL AS SIGNED ) ) AS col2, + COUNT( * ) FROM tab0
----
NULL
3

skipif mysql # not compatible
query II rowsort label-4674
SELECT CAST ( + 99 AS INTEGER ) + ( + CAST ( NULL AS INTEGER ) ) AS col2, + COUNT ( * ) FROM tab0
----
NULL
3

query III rowsort
SELECT * FROM tab2 WHERE - - col0 BETWEEN NULL AND 13
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4676
SELECT DISTINCT - 26 AS col1, - COUNT( * ) AS col0 FROM tab1
----
-26
-3

skipif mysql # not compatible
query II rowsort label-4676
SELECT DISTINCT - 26 AS col1, - COUNT ( * ) AS col0 FROM tab1
----
-26
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4677
SELECT ALL - COUNT( DISTINCT - col2 ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-4677
SELECT ALL - COUNT ( DISTINCT - col2 ) FROM tab0
----
-3

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + 95 IN ( + - col1 + - + 19 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT DISTINCT + col0, - col1 / + + col2 FROM tab0 WHERE NOT + 82 = NULL
----

query I rowsort
SELECT - col0 FROM tab0 WHERE NOT + ( 58 ) IS NULL
----
-15
-87
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-4681
SELECT ALL - + MIN( - col2 ) AS col1 FROM tab2 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-4681
SELECT ALL - + MIN ( - col2 ) AS col1 FROM tab2 AS cor0
----
58

query II rowsort
SELECT DISTINCT col0 AS col1, - col2 + - col2 + + - col0 + + - col2 + - - col0 + + ( - + col2 ) FROM tab1 AS cor0
----
51
-384
85
-236
91
-272

query I rowsort
SELECT DISTINCT 75 * + 51 FROM tab2 AS cor0
----
3825

query I rowsort
SELECT DISTINCT 98 * + col1 FROM tab1
----
1372
4606
490

query I rowsort
SELECT ALL 93 AS col0 FROM tab1 WHERE NOT - 33 IN ( 37 )
----
93
93
93

onlyif mysql # aggregate syntax: 
query II rowsort label-4686
SELECT - - SUM( ALL 99 ), COUNT( * ) AS col0 FROM tab2 AS cor0
----
297
3

skipif mysql # not compatible
query II rowsort label-4686
SELECT - - SUM ( ALL 99 ), COUNT ( * ) AS col0 FROM tab2 AS cor0
----
297
3

query I rowsort
SELECT DISTINCT + ( - 1 ) AS col0 FROM tab2 AS cor0
----
-1

query I rowsort
SELECT - - col2 + - + col2 * 30 AS col0 FROM tab2 AS cor0
----
-1160
-1682
-667

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4689
SELECT - CAST( NULL AS SIGNED ) + 73 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND 99
----

skipif mysql # not compatible
query I rowsort label-4689
SELECT - CAST ( NULL AS INTEGER ) + 73 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND 99
----

query I rowsort
SELECT - 67 + + 85 + col0 AS col0 FROM tab1 cor0
----
103
109
69

query I rowsort
SELECT + 71 * + col1 * 58 AS col0 FROM tab0 AS cor0
----
333558
4118
86478

query I rowsort
SELECT DISTINCT + 26 AS col2 FROM tab1 WHERE NULL IS NULL
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-4693
SELECT COUNT( * ) * + - 40 * MAX( ALL + - 67 ) AS col0 FROM tab2
----
8040

skipif mysql # not compatible
query I rowsort label-4693
SELECT COUNT ( * ) * + - 40 * MAX ( ALL + - 67 ) AS col0 FROM tab2
----
8040

query I rowsort
SELECT DISTINCT - + 19 + col2 AS col2 FROM tab0 WHERE - col0 + col0 <= - 78
----

query I rowsort
SELECT 17 FROM tab2 WHERE NULL NOT IN ( + + col1, - ( - 88 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4696
SELECT ALL - + COUNT( * ) * - + 23 + - + 48 + + - COUNT( * ) FROM tab2 WHERE + ( - - 28 ) > col2
----
-26

skipif mysql # not compatible
query I rowsort label-4696
SELECT ALL - + COUNT ( * ) * - + 23 + - + 48 + + - COUNT ( * ) FROM tab2 WHERE + ( - - 28 ) > col2
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-4697
SELECT ALL COUNT( DISTINCT + + col0 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-4697
SELECT ALL COUNT ( DISTINCT + + col0 ) FROM tab2
----
3

query I rowsort
SELECT ALL 38 - - col1 FROM tab1
----
43
52
85

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4699
SELECT ALL * FROM tab2 WHERE - - CAST( 79 AS SIGNED ) = CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-4699
SELECT ALL * FROM tab2 WHERE - - CAST ( 79 AS INTEGER ) = CAST ( NULL AS INTEGER )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4700
SELECT - 78 DIV + - col1 FROM tab1
----
1
15
5

skipif mysql # not compatible
query I rowsort label-4700
SELECT - 78 / + - col1 FROM tab1
----
1
15
5

onlyif mysql # aggregate syntax: 
query I rowsort label-4701
SELECT DISTINCT - ( - 37 ) + - COUNT( * ) AS col1 FROM tab2 AS cor0
----
34

skipif mysql # not compatible
query I rowsort label-4701
SELECT DISTINCT - ( - 37 ) + - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 1 + + col0 col0 FROM tab2 AS cor0
----
45
63
74

query I rowsort
SELECT ALL + col0 - col0 + col1 AS col2 FROM tab2 AS cor0
----
51
67
77

query II rowsort
SELECT col0 AS col2, - ( col0 ) AS col1 FROM tab1 AS cor0
----
51
-51
85
-85
91
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-4705
SELECT COUNT( * ) - MIN( DISTINCT + 92 ) FROM tab2 AS cor0
----
-89

skipif mysql # not compatible
query I rowsort label-4705
SELECT COUNT ( * ) - MIN ( DISTINCT + 92 ) FROM tab2 AS cor0
----
-89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - col0 ) * + 70 * col2 col0 FROM tab1
----
-342720
-351050
-433160

query I rowsort
SELECT + 29 + + 99 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 6a9ed45ca8e49cad3cefcf18e4d680fe

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT ( col1 ), + 70 col0 FROM tab0
----
1
70
21
70
81
70

onlyif mysql # aggregate syntax: 
query I rowsort label-4709
SELECT - COUNT( * ) * 2 AS col1 FROM tab2 WHERE NOT - - ( + 74 ) IS NULL
----
-6

skipif mysql # not compatible
query I rowsort label-4709
SELECT - COUNT ( * ) * 2 AS col1 FROM tab2 WHERE NOT - - ( + 74 ) IS NULL
----
-6

query I rowsort
SELECT col2 * 41 AS col2 FROM tab0
----
1927
4059
410

query I rowsort
SELECT ALL - 32 * + + 43 AS col0 FROM tab1 AS cor0
----
-1376
-1376
-1376

onlyif mysql # aggregate syntax: 
query I rowsort label-4712
SELECT - - COUNT( ALL - 53 ) FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-4712
SELECT - - COUNT ( ALL - 53 ) FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4713
SELECT ALL + - CAST( NULL AS SIGNED ) + - 35 * col2 * col2 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4713
SELECT ALL + - CAST ( NULL AS INTEGER ) + - 35 * col2 * col2 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4714
SELECT ALL - 91 DIV - col2 AS col0 FROM tab0 AS cor0 WHERE NOT - 30 >= col0
----
0
1
9

skipif mysql # not compatible
query I rowsort label-4714
SELECT ALL - 91 / - col2 AS col0 FROM tab0 AS cor0 WHERE NOT - 30 >= col0
----
0
1
9

query I rowsort
SELECT DISTINCT - col0 * 30 AS col2 FROM tab0 AS cor0
----
-2610
-2910
-450

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( + 40 IS NOT NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4717
SELECT col1 DIV + - col2 + - 9 FROM tab2
----
-10
-10
-11

skipif mysql # not compatible
query I rowsort label-4717
SELECT col1 / + - col2 + - 9 FROM tab2
----
-10
-10
-11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4718
SELECT ALL + CAST( - 42 AS SIGNED ) FROM tab1
----
-42
-42
-42

skipif mysql # not compatible
query I rowsort label-4718
SELECT ALL + CAST ( - 42 AS INTEGER ) FROM tab1
----
-42
-42
-42

query I rowsort
SELECT 69 + 69 FROM tab0
----
138
138
138

query I rowsort
SELECT - col0 AS col0 FROM tab1 WHERE NULL >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4721
SELECT ALL col2 + + 41 * + - CAST( NULL AS SIGNED ) * + col0 * + 63 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4721
SELECT ALL col2 + + 41 * + - CAST ( NULL AS INTEGER ) * + col0 * + 63 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT - ( + + col1 ) + + col0 AS col2 FROM tab2
----
-13
-5
8

query I rowsort
SELECT DISTINCT 1 + - col2 AS col0 FROM tab2
----
-22
-39
-57

query I rowsort
SELECT ALL - 28 * - + ( col0 ) AS col2 FROM tab0
----
2436
2716
420

query I rowsort
SELECT ALL - 22 + + col2 + + col0 FROM tab2
----
111
47
82

onlyif mysql # aggregate syntax: 
query II rowsort label-4726
SELECT ALL - 28 + - - 33 AS col0, + MIN( 19 ) FROM tab1 AS cor0
----
5
19

skipif mysql # not compatible
query II rowsort label-4726
SELECT ALL - 28 + - - 33 AS col0, + MIN ( 19 ) FROM tab1 AS cor0
----
5
19

query I rowsort
SELECT col1 AS col0 FROM tab2 cor0 WHERE NULL = NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 6 col1 FROM tab2 AS cor0
----
-6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4729
SELECT DISTINCT + CAST( - col1 AS SIGNED ) AS col2 FROM tab0
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-4729
SELECT DISTINCT + CAST ( - col1 AS INTEGER ) AS col2 FROM tab0
----
-1
-21
-81

query I rowsort
SELECT - col0 * col1 * + col1 - - - 31 AS col2 FROM tab1
----
-10027
-201050
-2156

onlyif mysql # DIV for integer division: 
query I rowsort label-4731
SELECT col1 - - col2 DIV + - 81 + ( - col0 ) + - col1 AS col1 FROM tab0
----
-15
-87
-98

skipif mysql # not compatible
query I rowsort label-4731
SELECT col1 - - col2 / + - 81 + ( - col0 ) + - col1 AS col1 FROM tab0
----
-15
-87
-98

query I rowsort
SELECT 32 - - col1 AS col2 FROM tab0
----
113
33
53

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + + + col2 col0 FROM tab1 AS cor0
----
144
147
159

query I rowsort
SELECT ( + + col2 ) AS col2 FROM tab0 AS cor0
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4735
SELECT + SUM( + + col1 ) FROM tab2
----
195

skipif mysql # not compatible
query I rowsort label-4735
SELECT + SUM ( + + col1 ) FROM tab2
----
195

query II rowsort
SELECT ALL + 42, col0 + + 74 AS col2 FROM tab2
----
42
120
42
138
42
149

onlyif mysql # aggregate syntax: 
query I rowsort label-4737
SELECT ( + COUNT( ALL + 73 ) ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-4737
SELECT ( + COUNT ( ALL + 73 ) ) FROM tab2
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4738
SELECT DISTINCT + COUNT( * ) AS col2 FROM tab2 WHERE NOT + 54 * + col2 + - CAST( + + ( - + 72 ) AS SIGNED ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4738
SELECT DISTINCT + COUNT ( * ) AS col2 FROM tab2 WHERE NOT + 54 * + col2 + - CAST ( + + ( - + 72 ) AS INTEGER ) IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4739
SELECT ALL MAX( DISTINCT - 30 ) AS col0 FROM tab1
----
-30

skipif mysql # not compatible
query I rowsort label-4739
SELECT ALL MAX ( DISTINCT - 30 ) AS col0 FROM tab1
----
-30

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4740
SELECT * FROM tab2 AS cor0 WHERE NOT CAST( + col0 AS SIGNED ) * + 81 >= col0
----

skipif mysql # not compatible
query III rowsort label-4740
SELECT * FROM tab2 AS cor0 WHERE NOT CAST ( + col0 AS INTEGER ) * + 81 >= col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4741
SELECT + MAX( ALL col1 ) * + 36 AS col0 FROM tab0 AS cor0
----
2916

skipif mysql # not compatible
query I rowsort label-4741
SELECT + MAX ( ALL col1 ) * + 36 AS col0 FROM tab0 AS cor0
----
2916

onlyif mysql # aggregate syntax: 
query I rowsort label-4742
SELECT ALL + MIN( ALL col2 ) AS col1 FROM tab2 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-4742
SELECT ALL + MIN ( ALL col2 ) AS col1 FROM tab2 AS cor0
----
23

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 54 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4744
SELECT + 85 DIV - MAX( DISTINCT + col0 ) FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-4744
SELECT + 85 / - MAX ( DISTINCT + col0 ) FROM tab1 cor0
----
0

query I rowsort
SELECT - - 27 - - 22 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cb40783c0fff72e8802cdf0682e7cb55

query II rowsort
SELECT - + col0 + - col2 + - 83, + 37 AS col2 FROM tab1 AS cor0
----
-227
37
-230
37
-242
37

query I rowsort
SELECT col0 * + + col1 + - + ( - col0 ) FROM tab1 AS cor0
----
4368
510
765

query I rowsort
SELECT DISTINCT + col2 FROM tab2 AS cor0 WHERE - col0 + + 85 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4749
SELECT + 58 * + COUNT( * ) AS col0 FROM tab1
----
174

skipif mysql # not compatible
query I rowsort label-4749
SELECT + 58 * + COUNT ( * ) AS col0 FROM tab1
----
174

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( NULL ) > 69
----

query II rowsort
SELECT ALL - col2 AS col1, - col2 AS col1 FROM tab0
----
-10
-10
-47
-47
-99
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4752
SELECT ALL col0 * - CAST( NULL AS SIGNED ) / - 6 / - ( + col0 ) AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4752
SELECT ALL col0 * - CAST ( NULL AS INTEGER ) / - 6 / - ( + col0 ) AS col0 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4753
SELECT col2 FROM tab0 WHERE ( NOT col0 + + CAST( - col1 AS SIGNED ) * + col0 NOT BETWEEN NULL AND - + col2 )
----

skipif mysql # not compatible
query I rowsort label-4753
SELECT col2 FROM tab0 WHERE ( NOT col0 + + CAST ( - col1 AS INTEGER ) * + col0 NOT BETWEEN NULL AND - + col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 98 * 29 col2 FROM tab1
----
2842

query II rowsort
SELECT ALL - col0 AS col2, col1 * + col2 * - col1 FROM tab2 AS cor0 WHERE col1 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4756
SELECT DISTINCT - 56 + - + COUNT( * ) FROM tab2 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-4756
SELECT DISTINCT - 56 + - + COUNT ( * ) FROM tab2 AS cor0
----
-59

query I rowsort
SELECT ALL - col2 + - + 76 FROM tab1 AS cor0
----
-135
-144
-172

query I rowsort
SELECT - 32 * + col1 FROM tab2
----
-1632
-2144
-2464

query I rowsort
SELECT + 49 * col1 FROM tab0
----
1029
3969
49

query I rowsort
SELECT + col2 * ( - col1 ) FROM tab1
----
-1344
-295
-3196

query I rowsort
SELECT + 33 * + col1 FROM tab0
----
2673
33
693

query I rowsort
SELECT DISTINCT - 35 + 65 FROM tab2
----
30

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - 66 + + col2 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( col2 ) col2 FROM tab0 WHERE NOT 55 + col2 < col1
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4765
SELECT ALL + 86 * + MIN( + col2 ) AS col0 FROM tab0
----
860

skipif mysql # not compatible
query I rowsort label-4765
SELECT ALL + 86 * + MIN ( + col2 ) AS col0 FROM tab0
----
860

query III rowsort
SELECT * FROM tab1 WHERE col2 * - ( col0 * col2 ) + col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4767
SELECT - COUNT( ALL 65 ) AS col2 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-4767
SELECT - COUNT ( ALL 65 ) AS col2 FROM tab0
----
-3

query III rowsort
SELECT * FROM tab0 WHERE 69 <> col0 * col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL 16 FROM tab1 WHERE NOT ( - 61 ) IS NULL
----
16
16
16

onlyif mysql # aggregate syntax: 
query I rowsort label-4770
SELECT DISTINCT COUNT( col1 ) - + 51 AS col0 FROM tab0
----
-48

skipif mysql # not compatible
query I rowsort label-4770
SELECT DISTINCT COUNT ( col1 ) - + 51 AS col0 FROM tab0
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-4771
SELECT DISTINCT 77 + + COUNT( * ) AS col2 FROM tab1
----
80

skipif mysql # not compatible
query I rowsort label-4771
SELECT DISTINCT 77 + + COUNT ( * ) AS col2 FROM tab1
----
80

query III rowsort
SELECT * FROM tab0 WHERE - 59 IN ( - col0 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4773
SELECT COUNT( * ) + CAST( NULL AS SIGNED ) * 56 AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4773
SELECT COUNT ( * ) + CAST ( NULL AS INTEGER ) * 56 AS col2 FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT + col1 + col2 FROM tab0 WHERE ( col2 ) IN ( col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4775
SELECT DISTINCT col0 + - CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4775
SELECT DISTINCT col0 + - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL <> col0 * 2
----

query I rowsort
SELECT col1 + - 97 AS col0 FROM tab2
----
-20
-30
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-4778
SELECT DISTINCT + COUNT( * ) AS col0 FROM tab2 WHERE col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4778
SELECT DISTINCT + COUNT ( * ) AS col0 FROM tab2 WHERE col1 IS NULL
----
0

query I rowsort
SELECT + 88 + col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
139
173
179

query I rowsort
SELECT col0 FROM tab1 WHERE - col1 IS NOT NULL
----
51
85
91

query I rowsort
SELECT col2 FROM tab2 WHERE 55 * - 44 NOT IN ( ( + col1 ) * + col2 )
----
23
40
58

query I rowsort
SELECT + col1 + col0 FROM tab0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL ( + 12 ) AS col1 FROM tab0
----
12
12
12

onlyif mysql # DIV for integer division: 
query I rowsort label-4784
SELECT DISTINCT 3 DIV - col0 col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4784
SELECT DISTINCT 3 / - col0 col1 FROM tab2 AS cor0
----
0

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( + col0 - col0 ) NOT IN ( col0 )
----

query I rowsort
SELECT 95 * + ( 89 ) AS col0 FROM tab2 AS cor0
----
8455
8455
8455

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col2 NOT IN ( col1 )
----

query I rowsort
SELECT - 35 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1
----
9 values hashing to c12e8bdd687c9040a5600dab3b6adf5b

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4789
SELECT ALL + ( + MIN( + ( CAST( NULL AS SIGNED ) ) ) ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4789
SELECT ALL + ( + MIN ( + ( CAST ( NULL AS INTEGER ) ) ) ) AS col1 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4790
SELECT ( + COUNT( * ) ) FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-4790
SELECT ( + COUNT ( * ) ) FROM tab1 cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 75 + col0 col2 FROM tab0 AS cor0
----
162
172
90

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4792
SELECT * FROM tab0 AS cor0 WHERE CAST( NULL AS SIGNED ) / - col1 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-4792
SELECT * FROM tab0 AS cor0 WHERE CAST ( NULL AS INTEGER ) / - col1 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( + col2 ) + + 45 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4794
SELECT - MIN( DISTINCT - ( - col0 ) ) + + COUNT( * ) AS col0 FROM tab1 cor0
----
-48

skipif mysql # not compatible
query I rowsort label-4794
SELECT - MIN ( DISTINCT - ( - col0 ) ) + + COUNT ( * ) AS col0 FROM tab1 cor0
----
-48

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 0 + 26 col0 FROM tab0 AS cor0
----
26
26
26

onlyif mysql # aggregate syntax: 
query I rowsort label-4796
SELECT ALL + + MIN( col0 ) AS col1 FROM tab2 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-4796
SELECT ALL + + MIN ( col0 ) AS col1 FROM tab2 AS cor0
----
46

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL > ( 4 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + col2 ) + - col2 * - col2 col2 FROM tab1
----
3540
4692
9312

onlyif mysql # aggregate syntax: 
query I rowsort label-4799
SELECT ALL ( + SUM( ALL - col2 ) ) FROM tab2
----
-121

skipif mysql # not compatible
query I rowsort label-4799
SELECT ALL ( + SUM ( ALL - col2 ) ) FROM tab2
----
-121

query III rowsort
SELECT * FROM tab0 WHERE - 11 / - col1 > - col0 * + 26 + - col0 * + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 27 + - 99 FROM tab1
----
-72
-72
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-4802
SELECT - COUNT( * ) + 93 FROM tab2
----
90

skipif mysql # not compatible
query I rowsort label-4802
SELECT - COUNT ( * ) + 93 FROM tab2
----
90

query I rowsort
SELECT ALL - 45 * + - col2 FROM tab0
----
2115
4455
450

query I rowsort
SELECT + 57 + 83 - - 0 AS col1 FROM tab0
----
140
140
140

query I rowsort
SELECT + 75 + - col2 FROM tab2
----
17
35
52

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col2 + col2 BETWEEN NULL AND ( + col2 ) OR NOT ( col0 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4807
SELECT 68 + ( CAST( NULL AS SIGNED ) ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4807
SELECT 68 + ( CAST ( NULL AS INTEGER ) ) FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4808
SELECT DISTINCT + COUNT( * ) col2 FROM tab0 WHERE NOT - ( col1 ) + + 24 * col2 = - col0 * col0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4808
SELECT DISTINCT + COUNT ( * ) col2 FROM tab0 WHERE NOT - ( col1 ) + + 24 * col2 = - col0 * col0
----
3

query I rowsort
SELECT 86 + + + col2 FROM tab2
----
109
126
144

query I rowsort
SELECT DISTINCT + ( col2 ) * - col1 + - col2 AS col1 FROM tab2
----
-1196
-3120
-3944

query I rowsort
SELECT ( col2 ) + col1 FROM tab2
----
117
125
74

query III rowsort
SELECT * FROM tab0 WHERE - 16 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 - col0 * col0 col1 FROM tab2 AS cor0
----
-2162
-4160
-5700

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4814
SELECT CAST( + - 52 AS SIGNED ) * + col0 - - col1 AS col2 FROM tab2
----
-2341
-3251
-3833

skipif mysql # not compatible
query I rowsort label-4814
SELECT CAST ( + - 52 AS INTEGER ) * + col0 - - col1 AS col2 FROM tab2
----
-2341
-3251
-3833

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4815
SELECT 20 AS col1 FROM tab1 WHERE ( NOT col1 IN ( col0 + CAST( NULL AS SIGNED ) ) )
----

skipif mysql # not compatible
query I rowsort label-4815
SELECT 20 AS col1 FROM tab1 WHERE ( NOT col1 IN ( col0 + CAST ( NULL AS INTEGER ) ) )
----

query I rowsort
SELECT ALL 91 FROM tab1 WHERE NOT ( NOT 17 IS NULL )
----

query I rowsort
SELECT DISTINCT col1 AS col0 FROM tab0 WHERE NOT ( + 55 + col2 > col1 * - col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( NULL BETWEEN NULL AND ( NULL ) )
----

query I rowsort
SELECT + + col2 AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT ALL + ( - ( - - 58 ) ) AS col2 FROM tab2 AS cor0
----
-58
-58
-58

query I rowsort
SELECT - - 74 * - + col0 FROM tab0 AS cor0
----
-1110
-6438
-7178

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4822
SELECT ALL * FROM tab0 AS cor0 WHERE ( CAST( + 57 AS SIGNED ) - col1 ) BETWEEN - 81 / + col0 - col2 * CAST( NULL AS SIGNED ) AND - CAST( - ( - col0 ) AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-4822
SELECT ALL * FROM tab0 AS cor0 WHERE ( CAST ( + 57 AS INTEGER ) - col1 ) BETWEEN - 81 / + col0 - col2 * CAST ( NULL AS INTEGER ) AND - CAST ( - ( - col0 ) AS INTEGER )
----

query I rowsort
SELECT ALL + - col2 * + - 43 FROM tab0 AS cor0
----
2021
4257
430

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4824
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + CAST( NULL AS SIGNED ) BETWEEN 9 * 95 AND - col1
----

skipif mysql # not compatible
query III rowsort label-4824
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + CAST ( NULL AS INTEGER ) BETWEEN 9 * 95 AND - col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4825
SELECT 87 DIV + + col2 col1 FROM tab1 AS cor0
----
0
1
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4825
SELECT 87 / + + col2 col1 FROM tab1 AS cor0
----
0
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4826
SELECT DISTINCT + MIN( ALL - + col1 ) AS col0 FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-4826
SELECT DISTINCT + MIN ( ALL - + col1 ) AS col0 FROM tab0 AS cor0
----
-81

query I rowsort
SELECT DISTINCT + 16 * - col0 AS col2 FROM tab2 AS cor0
----
-1024
-1200
-736

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT - col2 * col1 BETWEEN + col0 / + 54 AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-4829
SELECT col2 DIV 62 AS col0 FROM tab1 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-4829
SELECT col2 / 62 AS col0 FROM tab1 AS cor0
----
0
1
1

query II rowsort
SELECT + + col0, col0 * col1 FROM tab2 AS cor0
----
46
2346
64
4928
75
5025

onlyif mysql # aggregate syntax: 
query I rowsort label-4831
SELECT MAX( ALL + col2 ) FROM tab1 cor0
----
96

skipif mysql # not compatible
query I rowsort label-4831
SELECT MAX ( ALL + col2 ) FROM tab1 cor0
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-4832
SELECT - 59 + COUNT( * ) AS col2 FROM tab1 WHERE NOT + col1 IS NOT NULL AND NOT ( NULL ) IN ( + 33 )
----
-59

skipif mysql # not compatible
query I rowsort label-4832
SELECT - 59 + COUNT ( * ) AS col2 FROM tab1 WHERE NOT + col1 IS NOT NULL AND NOT ( NULL ) IN ( + 33 )
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-4833
SELECT ALL - SUM( - 29 ) FROM tab0
----
87

skipif mysql # not compatible
query I rowsort label-4833
SELECT ALL - SUM ( - 29 ) FROM tab0
----
87

query I rowsort
SELECT 10 FROM tab0 WHERE NOT NULL BETWEEN - col0 * + col0 AND col1 + col2
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( + + col1 - - ( col1 ) ) IS NOT NULL
----

query I rowsort
SELECT ALL - col2 * - 72 FROM tab2
----
1656
2880
4176

query I rowsort
SELECT DISTINCT + col2 AS col1 FROM tab2 WHERE + col2 * + col0 - col1 >= + col2
----
23
40
58

query I rowsort
SELECT ALL - 44 + - col1 FROM tab1
----
-49
-58
-91

query III rowsort
SELECT * FROM tab2 WHERE NOT - - col1 + - col1 * - col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - - col0 AS col0 FROM tab0 WHERE NOT - - col1 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - col0 ) * - col1 col0 FROM tab2 AS cor0
----
-2346
-4928
-5025

query II rowsort
SELECT + 71 * + col0 AS col0, - ( - - col0 ) FROM tab1 AS cor0
----
3621
-51
6035
-85
6461
-91

onlyif mysql # DIV for integer division: 
query I rowsort label-4843
SELECT ALL 62 + + 19 DIV 31 AS col2 FROM tab0 AS cor0 WHERE NOT ( col2 ) = col1 - - col0 + 72 * col1
----
62
62
62

skipif mysql # not compatible
query I rowsort label-4843
SELECT ALL 62 + + 19 / 31 AS col2 FROM tab0 AS cor0 WHERE NOT ( col2 ) = col1 - - col0 + 72 * col1
----
62
62
62

query I rowsort
SELECT - 50 AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4845
SELECT DISTINCT + - COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NOT - col1 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-4845
SELECT DISTINCT + - COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NOT - col1 IS NULL
----
-3

query I rowsort
SELECT ALL - 65 + col0 * 14 FROM tab1 AS cor0
----
1125
1209
649

query I rowsort
SELECT col2 + - 61 FROM tab2 AS cor0
----
-21
-3
-38

query I rowsort
SELECT + - 68 * ( - col1 ) + - 55 FROM tab1 cor0
----
285
3141
897

query I rowsort
SELECT - col0 + 71 - + col0 AS col1 FROM tab0 AS cor0
----
-103
-123
41

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4850
SELECT ALL MAX( ALL + col0 ) + - ( + + 9 ) DIV + + COUNT( * ) AS col0 FROM tab0 AS cor0
----
94

skipif mysql # not compatible
query I rowsort label-4850
SELECT ALL MAX ( ALL + col0 ) + - ( + + 9 ) / + + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
94

query I rowsort
SELECT - 53 * col0 * - col1 + + 48 FROM tab1 AS cor0
----
22573
226729
37890

onlyif mysql # aggregate syntax: 
query I rowsort label-4852
SELECT DISTINCT - COUNT( * ) * MIN( + + col2 ) * ( - COUNT( * ) ) + 82 FROM tab1 AS cor0
----
613

skipif mysql # not compatible
query I rowsort label-4852
SELECT DISTINCT - COUNT ( * ) * MIN ( + + col2 ) * ( - COUNT ( * ) ) + 82 FROM tab1 AS cor0
----
613

query I rowsort
SELECT DISTINCT col1 * + + col2 - 98 AS col2 FROM tab2 AS cor0
----
1075
2982
3788

query II rowsort
SELECT + 58, - col0 AS col2 FROM tab0 AS cor0
----
58
-15
58
-87
58
-97

query I rowsort
SELECT DISTINCT col0 - - 92 FROM tab2 AS cor0
----
138
156
167

query I rowsort
SELECT DISTINCT - ( 43 ) FROM tab1 AS cor0
----
-43

query I rowsort
SELECT 36 FROM tab1 cor0 WHERE ( NULL ) NOT BETWEEN NULL AND ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4858
SELECT DISTINCT - col1 + - 97 * 23 + + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4858
SELECT DISTINCT - col1 + - 97 * 23 + + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4859
SELECT col0 * - col0 DIV + col0 - 82 FROM tab1
----
-133
-167
-173

skipif mysql # not compatible
query I rowsort label-4859
SELECT col0 * - col0 / + col0 - 82 FROM tab1
----
-133
-167
-173

onlyif mysql # DIV for integer division: 
query I rowsort label-4860
SELECT ALL col1 DIV - 18 + - col2 * + - col0 FROM tab0
----
701
869
9603

skipif mysql # not compatible
query I rowsort label-4860
SELECT ALL col1 / - 18 + - col2 * + - col0 FROM tab0
----
701
869
9603

onlyif mysql # DIV for integer division: 
query I rowsort label-4861
SELECT col1 + 4 DIV - col0 FROM tab2 AS cor0
----
51
67
77

skipif mysql # not compatible
query I rowsort label-4861
SELECT col1 + 4 / - col0 FROM tab2 AS cor0
----
51
67
77

query I rowsort
SELECT DISTINCT + - col2 * - 83 AS col1 FROM tab0 AS cor0
----
3901
8217
830

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT + 97 = + col0 * - 79 * - col0 / - + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4864
SELECT ALL * FROM tab2 AS cor0 WHERE ( - 78 * - 71 ) BETWEEN - CAST( 61 AS SIGNED ) AND ( - col0 )
----

skipif mysql # not compatible
query III rowsort label-4864
SELECT ALL * FROM tab2 AS cor0 WHERE ( - 78 * - 71 ) BETWEEN - CAST ( 61 AS INTEGER ) AND ( - col0 )
----

query I rowsort
SELECT DISTINCT + - col0 FROM tab0 WHERE NOT col2 < NULL
----

query I rowsort
SELECT DISTINCT 91 * - col2 FROM tab2
----
-2093
-3640
-5278

onlyif mysql # DIV for integer division: 
query I rowsort label-4867
SELECT - col0 * col2 DIV + col0 AS col0 FROM tab2
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-4867
SELECT - col0 * col2 / + col0 AS col0 FROM tab2
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-4868
SELECT - + COUNT( * ) FROM tab0 AS cor0 WHERE NOT - col0 < 31
----
0

skipif mysql # not compatible
query I rowsort label-4868
SELECT - + COUNT ( * ) FROM tab0 AS cor0 WHERE NOT - col0 < 31
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4869
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col2 BETWEEN + CAST( + col2 AS SIGNED ) AND + col2
----

skipif mysql # not compatible
query III rowsort label-4869
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col2 BETWEEN + CAST ( + col2 AS INTEGER ) AND + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4870
SELECT DISTINCT + 19 * + SUM( ALL + col2 ) AS col0 FROM tab1 AS cor0
----
4237

skipif mysql # not compatible
query I rowsort label-4870
SELECT DISTINCT + 19 * + SUM ( ALL + col2 ) AS col0 FROM tab1 AS cor0
----
4237

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col0 * + ( 52 ) + + - col0 * + col2 * col2 - + col2 NOT BETWEEN NULL AND 94
----

query II rowsort
SELECT 98, - 34 FROM tab1 WHERE NOT + - 91 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4873
SELECT ALL 91 DIV - COUNT( * ) FROM tab2
----
-30

skipif mysql # not compatible
query I rowsort label-4873
SELECT ALL 91 / - COUNT ( * ) FROM tab2
----
-30

query II rowsort
SELECT col0 AS col0, col0 AS col1 FROM tab0
----
15
15
87
87
97
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4875
SELECT DISTINCT + - CAST( NULL AS SIGNED ) * - + COUNT( * ) FROM tab2 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4875
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) * - + COUNT ( * ) FROM tab2 WHERE NOT NULL IS NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + ( + 17 ) * - col0 * 34 col2 FROM tab1 WHERE - + 77 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4877
SELECT ALL - col2 * - CAST( NULL AS SIGNED ) / ( + col0 ) * + + col1 + + col2 + - 58 * + - col0 * col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4877
SELECT ALL - col2 * - CAST ( NULL AS INTEGER ) / ( + col0 ) * + + col1 + + col2 + - 58 * + - col0 * col0 FROM tab0
----
NULL
NULL
NULL

query II rowsort
SELECT ALL + col0 * - col1 + + - col0, + 84 FROM tab2 WHERE NULL <= + col2
----

query I rowsort
SELECT - + col0 + - + col1 FROM tab2 AS cor0
----
-141
-142
-97

query I rowsort
SELECT DISTINCT + col2 + - col2 AS col0 FROM tab2 AS cor0 WHERE col1 NOT IN ( - + col2 - col0 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4881
SELECT - MAX( ALL + + col0 ) AS col1 FROM tab0 AS cor0 WHERE + col1 = + + col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4881
SELECT - MAX ( ALL + + col0 ) AS col1 FROM tab0 AS cor0 WHERE + col1 = + + col0
----
NULL

query II rowsort
SELECT + + ( + - col2 ) * + col2 AS col1, col2 + col0 AS col2 FROM tab2 AS cor0
----
-1600
104
-3364
133
-529
69

query I rowsort
SELECT ALL 24 + 31 * 51 AS col2 FROM tab1
----
1605
1605
1605

onlyif mysql # aggregate syntax: 
query I rowsort label-4884
SELECT DISTINCT 9 + + + COUNT( * ) AS col1 FROM tab1
----
12

skipif mysql # not compatible
query I rowsort label-4884
SELECT DISTINCT 9 + + + COUNT ( * ) AS col1 FROM tab1
----
12

query I rowsort
SELECT DISTINCT - 55 + 63 - - 25 AS col2 FROM tab0
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-4886
SELECT ALL COUNT( * ) + + COUNT( * ) * MAX( col1 ) FROM tab1 AS cor0
----
144

skipif mysql # not compatible
query I rowsort label-4886
SELECT ALL COUNT ( * ) + + COUNT ( * ) * MAX ( col1 ) FROM tab1 AS cor0
----
144

query I rowsort
SELECT ( - 30 ) + - - col2 AS col2 FROM tab0 AS cor0
----
-20
17
69

query I rowsort
SELECT DISTINCT - col1 * - ( - col0 ) AS col1 FROM tab1 AS cor0 WHERE NULL IN ( - col2 )
----

query II rowsort
SELECT DISTINCT - ( + - col0 ) - + - ( - - col1 ) AS col2, - 13 FROM tab0 cor0
----
108
-13
96
-13
98
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-4890
SELECT COUNT( * ) + + MIN( + - col0 ) FROM tab0 AS cor0
----
-94

skipif mysql # not compatible
query I rowsort label-4890
SELECT COUNT ( * ) + + MIN ( + - col0 ) FROM tab0 AS cor0
----
-94

query I rowsort
SELECT DISTINCT - col1 * + col2 + + 93 FROM tab2 AS cor0
----
-1080
-2987
-3793

onlyif mysql # DIV for integer division: 
query II rowsort label-4892
SELECT ALL - col1 DIV col2 - + col0 * col0 * 45 AS col2, col1 * - 54 FROM tab1
----
-117045
-756
-325125
-270
-372645
-2538

skipif mysql # not compatible
query II rowsort label-4892
SELECT ALL - col1 / col2 - + col0 * col0 * 45 AS col2, col1 * - 54 FROM tab1
----
-117045
-756
-325125
-270
-372645
-2538

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4893
SELECT col2 + + ( + - col1 ) - CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4893
SELECT col2 + + ( + - col1 ) - CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4894
SELECT DISTINCT 16 + + col2 / - CAST( NULL AS SIGNED ) - + 48 AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4894
SELECT DISTINCT 16 + + col2 / - CAST ( NULL AS INTEGER ) - + 48 AS col0 FROM tab1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4895
SELECT ALL * FROM tab2 WHERE NOT - col1 + + + CAST( 36 AS SIGNED ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-4895
SELECT ALL * FROM tab2 WHERE NOT - col1 + + + CAST ( 36 AS INTEGER ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 9 AS col2 FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( col1 )
----

query II rowsort
SELECT 62 AS col1, + 27 AS col2 FROM tab0 AS cor0
----
62
27
62
27
62
27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4898
SELECT DISTINCT - CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0 WHERE ( 43 IS NOT NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-4898
SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0 WHERE ( 43 IS NOT NULL )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4899
SELECT DISTINCT - CAST( AVG ( + + col2 ) AS SIGNED ) FROM tab1
----
-74

skipif mysql # not compatible
query I rowsort label-4899
SELECT DISTINCT - CAST ( AVG ( + + col2 ) AS INTEGER ) FROM tab1
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-4900
SELECT ALL MIN( ALL + 76 ) FROM tab0
----
76

skipif mysql # not compatible
query I rowsort label-4900
SELECT ALL MIN ( ALL + 76 ) FROM tab0
----
76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4901
SELECT ALL ( - COUNT( * ) ) * - CAST( NULL AS SIGNED ) AS col1 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4901
SELECT ALL ( - COUNT ( * ) ) * - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 cor0
----
NULL

query I rowsort
SELECT - 76 * - col1 * + col1 FROM tab0 cor0
----
33516
498636
76

onlyif mysql # aggregate syntax: 
query I rowsort label-4903
SELECT ALL - COUNT( * ) * + 28 AS col0 FROM tab2 AS cor0
----
-84

skipif mysql # not compatible
query I rowsort label-4903
SELECT ALL - COUNT ( * ) * + 28 AS col0 FROM tab2 AS cor0
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-4904
SELECT + SUM( - 54 ) * 32 FROM tab0 AS cor0 WHERE NOT - col1 IS NULL
----
-5184

skipif mysql # not compatible
query I rowsort label-4904
SELECT + SUM ( - 54 ) * 32 FROM tab0 AS cor0 WHERE NOT - col1 IS NULL
----
-5184

query II rowsort
SELECT DISTINCT - 50 AS col1, - 93 + col1 * - + col0 AS col1 FROM tab0 AS cor0
----
-50
-1308
-50
-190
-50
-1920

onlyif mysql # aggregate syntax: 
query I rowsort label-4906
SELECT ALL COUNT( * ) + MIN( col1 ) * 88 AS col1 FROM tab0
----
91

skipif mysql # not compatible
query I rowsort label-4906
SELECT ALL COUNT ( * ) + MIN ( col1 ) * 88 AS col1 FROM tab0
----
91

query I rowsort
SELECT DISTINCT + + col2 FROM tab0 WHERE NULL = + col2
----

query I rowsort
SELECT DISTINCT - ( - ( + - 90 ) ) AS col0 FROM tab1, tab2 AS cor0
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-4909
SELECT MAX( - 30 ) FROM tab1, tab2 cor0
----
-30

skipif mysql # not compatible
query I rowsort label-4909
SELECT MAX ( - 30 ) FROM tab1, tab2 cor0
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-4910
SELECT DISTINCT MIN( DISTINCT + col1 ) + + COUNT( * ) * MIN( DISTINCT - + col2 ) FROM tab2
----
-123

skipif mysql # not compatible
query I rowsort label-4910
SELECT DISTINCT MIN ( DISTINCT + col1 ) + + COUNT ( * ) * MIN ( DISTINCT - + col2 ) FROM tab2
----
-123

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4911
SELECT ALL * FROM tab0 WHERE NOT ( - 85 * CAST( NULL AS SIGNED ) ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-4911
SELECT ALL * FROM tab0 WHERE NOT ( - 85 * CAST ( NULL AS INTEGER ) ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4912
SELECT ALL + - COUNT( * ) + + 79 AS col1 FROM tab2 AS cor0 WHERE ( NOT NULL IS NOT NULL )
----
76

skipif mysql # not compatible
query I rowsort label-4912
SELECT ALL + - COUNT ( * ) + + 79 AS col1 FROM tab2 AS cor0 WHERE ( NOT NULL IS NOT NULL )
----
76

query II rowsort
SELECT + col1 AS col2, + col0 AS col0 FROM tab2 AS cor0
----
51
46
67
75
77
64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4914
SELECT ALL + CAST( NULL AS SIGNED ) FROM tab2 AS cor0 WHERE NULL < col1
----

skipif mysql # not compatible
query I rowsort label-4914
SELECT ALL + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 WHERE NULL < col1
----

query II rowsort
SELECT 51, + col1 + - 98 AS col0 FROM tab0 AS cor0
----
51
-17
51
-77
51
-97

query I rowsort
SELECT DISTINCT - - 11 - - + col0 AS col1 FROM tab0 AS cor0
----
108
26
98

query III rowsort
SELECT * FROM tab1 cor0 WHERE NULL IN ( 87 + 76, - col2, - + 22 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4918
SELECT DISTINCT - COUNT( * ) - - + 62 AS col1, - 63 col1 FROM tab0
----
59
-63

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4918
SELECT DISTINCT - COUNT ( * ) - - + 62 AS col1, - 63 col1 FROM tab0
----
59
-63

query I rowsort
SELECT ALL col2 - - + 63 FROM tab2
----
103
121
86

query I rowsort
SELECT + 45 * 65 FROM tab1
----
2925
2925
2925

onlyif mysql # aggregate syntax: 
query I rowsort label-4921
SELECT + SUM( ALL - 58 ) * 11 AS col1 FROM tab0
----
-1914

skipif mysql # not compatible
query I rowsort label-4921
SELECT + SUM ( ALL - 58 ) * 11 AS col1 FROM tab0
----
-1914

onlyif mysql # aggregate syntax: 
query I rowsort label-4922
SELECT ( - ( - COUNT( * ) ) ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-4922
SELECT ( - ( - COUNT ( * ) ) ) FROM tab2
----
3

query I rowsort
SELECT 37 * 81 FROM tab0
----
2997
2997
2997

onlyif mysql # DIV for integer division: 
query I rowsort label-4924
SELECT 56 DIV + col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4924
SELECT 56 / + col2 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4925
SELECT ALL - + 60 * COUNT( + - col2 ) col1, COUNT( * ) * 10 - - 48 FROM tab0 AS cor0 WHERE NOT 11 IS NOT NULL
----
0
48

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4925
SELECT ALL - + 60 * COUNT ( + - col2 ) col1, COUNT ( * ) * 10 - - 48 FROM tab0 AS cor0 WHERE NOT 11 IS NOT NULL
----
0
48

query I rowsort
SELECT 42 AS col1 FROM tab0 AS cor0 WHERE NOT + col2 IS NULL
----
42
42
42

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT - 2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4928
SELECT + COUNT( * ) * 7 AS col0 FROM tab2 AS cor0
----
21

skipif mysql # not compatible
query I rowsort label-4928
SELECT + COUNT ( * ) * 7 AS col0 FROM tab2 AS cor0
----
21

query II rowsort
SELECT col2 * - 2 * + col0, 0 * - + col0 * - - 19 * + + col2 + 65 AS col2 FROM tab1 AS cor0
----
-10030
65
-12376
65
-9792
65

query I rowsort
SELECT DISTINCT + col1 + - col2 * 77 * - 81 AS col1 FROM tab2 AS cor0
----
143502
249557
361813

onlyif mysql # aggregate syntax: 
query I rowsort label-4931
SELECT DISTINCT + SUM( DISTINCT + 68 ) FROM tab1 AS cor0
----
68

skipif mysql # not compatible
query I rowsort label-4931
SELECT DISTINCT + SUM ( DISTINCT + 68 ) FROM tab1 AS cor0
----
68

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4932
SELECT ALL CAST( NULL AS DECIMAL ) FROM tab2 AS cor0 WHERE + col2 * - col0 IS NULL
----

skipif mysql # not compatible
query I rowsort label-4932
SELECT ALL CAST ( NULL AS REAL ) FROM tab2 AS cor0 WHERE + col2 * - col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4933
SELECT - 52 * MIN( - col2 ) FROM tab2 cor0 WHERE NOT - col1 * - col1 - + col0 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4933
SELECT - 52 * MIN ( - col2 ) FROM tab2 cor0 WHERE NOT - col1 * - col1 - + col0 IS NOT NULL
----
NULL

query I rowsort
SELECT ALL - AVG ( DISTINCT - col2 ) FROM tab0 AS cor0 WHERE NOT 81 <= - col0 * + - col1
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-4935
SELECT - col0 DIV 21 AS col1, - col2 * col2 AS col2 FROM tab1
----
-2
-9216
-4
-3481
-4
-4624

skipif mysql # not compatible
query II rowsort label-4935
SELECT - col0 / 21 AS col1, - col2 * col2 AS col2 FROM tab1
----
-2
-9216
-4
-3481
-4
-4624

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col0 AS col2, - col0 * + col2 col2 FROM tab1
----
51
-4896
85
-5015
91
-6188

query I rowsort
SELECT - 32 + - 14 AS col0 FROM tab2
----
-46
-46
-46

query I rowsort
SELECT + 50 + - + 36 AS col1 FROM tab2
----
14
14
14

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL >= - + 12
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4940
SELECT DISTINCT - ( + - col2 ) + CAST( NULL AS SIGNED ) * + + 79 * + 53 + - col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4940
SELECT DISTINCT - ( + - col2 ) + CAST ( NULL AS INTEGER ) * + + 79 * + 53 + - col0 FROM tab1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4941
SELECT ALL 4 + col1 DIV 59 FROM tab2
----
4
5
5

skipif mysql # not compatible
query I rowsort label-4941
SELECT ALL 4 + col1 / 59 FROM tab2
----
4
5
5

onlyif mysql # aggregate syntax: 
query I rowsort label-4942
SELECT ALL 17 + ( - COUNT( * ) ) FROM tab1
----
14

skipif mysql # not compatible
query I rowsort label-4942
SELECT ALL 17 + ( - COUNT ( * ) ) FROM tab1
----
14

query I rowsort
SELECT DISTINCT col0 + + ( 88 ) - + - col2 - + - col0 FROM tab2 cor0 WHERE - col0 <> NULL
----

query I rowsort
SELECT + - col1 FROM tab0 AS cor0 WHERE - 52 IS NULL
----

query I rowsort
SELECT DISTINCT - 13 FROM tab1 AS cor0 WHERE NOT NULL >= + col1
----

query I rowsort
SELECT ALL + col1 AS col2 FROM tab1 AS cor0 WHERE ( NULL ) > - col0
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4947
SELECT - 80 * - + 94 + - 59 - + CAST( NULL AS DECIMAL ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4947
SELECT - 80 * - + 94 + - 59 - + CAST ( NULL AS REAL ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4948
SELECT ALL - COUNT( * ) FROM tab0 AS cor0 WHERE NOT col1 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4948
SELECT ALL - COUNT ( * ) FROM tab0 AS cor0 WHERE NOT col1 IS NOT NULL
----
0

query I rowsort
SELECT ALL col1 FROM tab0 AS cor0 WHERE col2 * + col1 - + col2 IS NOT NULL
----
1
21
81

onlyif mysql # DIV for integer division: 
query II rowsort label-4950
SELECT ALL col0 * - col0, + col2 * col2 + - + 90 DIV + - col2 AS col2 FROM tab2
----
-2116
532
-4096
1602
-5625
3365

skipif mysql # not compatible
query II rowsort label-4950
SELECT ALL col0 * - col0, + col2 * col2 + - + 90 / + - col2 AS col2 FROM tab2
----
-2116
532
-4096
1602
-5625
3365

onlyif mysql # aggregate syntax: 
query I rowsort label-4951
SELECT ALL COUNT( DISTINCT + + 96 ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
1

skipif mysql # not compatible
query I rowsort label-4951
SELECT ALL COUNT ( DISTINCT + + 96 ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
1

query I rowsort
SELECT DISTINCT - 39 + + + col2 FROM tab1 AS cor0
----
20
29
57

query I rowsort
SELECT - col0 FROM tab2 AS cor0 WHERE col0 IS NULL
----

query I rowsort
SELECT DISTINCT - + col1 * - + 80 * - col0 + + col2 AS col2 FROM tab1 AS cor0
----
-33941
-342092
-57024

query I rowsort
SELECT ALL 89 * - + 89 + + col2 AS col1 FROM tab2 AS cor0
----
-7863
-7881
-7898

onlyif mysql # aggregate syntax: 
query I rowsort label-4956
SELECT ALL + COUNT( 6 ) - + 25 col1 FROM tab1 AS cor0
----
-22

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4956
SELECT ALL + COUNT ( 6 ) - + 25 col1 FROM tab1 AS cor0
----
-22

query I rowsort
SELECT + + 94 AS col1 FROM tab0 AS cor0
----
94
94
94

query I rowsort
SELECT - - 28 AS col1 FROM tab0 cor0
----
28
28
28

query I rowsort
SELECT - 23 * + + 40 * - col0 AS col1 FROM tab1
----
46920
78200
83720

query I rowsort
SELECT ALL ( + col2 ) * + col2 AS col1 FROM tab2
----
1600
3364
529

query I rowsort
SELECT + col2 * - ( - - col0 ) FROM tab2
----
-1058
-2560
-4350

query II rowsort
SELECT ALL 64 AS col0, + col0 AS col2 FROM tab1
----
64
51
64
85
64
91

onlyif mysql # aggregate syntax: 
query I rowsort label-4963
SELECT ALL - MIN( 4 ) FROM tab2
----
-4

skipif mysql # not compatible
query I rowsort label-4963
SELECT ALL - MIN ( 4 ) FROM tab2
----
-4

query I rowsort
SELECT - 3 * - - col2 FROM tab0
----
-141
-297
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-4965
SELECT ALL COUNT( * ) * + + 48 FROM tab0
----
144

skipif mysql # not compatible
query I rowsort label-4965
SELECT ALL COUNT ( * ) * + + 48 FROM tab0
----
144

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NOT ( NULL ) IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-4967
SELECT DISTINCT 8 DIV col1 FROM tab0
----
0
8

skipif mysql # not compatible
query I rowsort label-4967
SELECT DISTINCT 8 / col1 FROM tab0
----
0
8

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT ( NULL IS NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4969
SELECT + + col2 * 15 + col2 DIV + col2 + - + 64 AS col2 FROM tab1 AS cor0
----
1377
822
957

skipif mysql # not compatible
query I rowsort label-4969
SELECT + + col2 * 15 + col2 / + col2 + - + 64 AS col2 FROM tab1 AS cor0
----
1377
822
957

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + 54 / - col2 = - 39
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4971
SELECT ALL + 7 * - 7 * + MAX( ALL col0 ) * - SUM( DISTINCT + ( - 73 ) ) + - + 94 + - COUNT( * ) + - 28 AS col2 FROM tab0 AS cor0
----
-347094

skipif mysql # not compatible
query I rowsort label-4971
SELECT ALL + 7 * - 7 * + MAX ( ALL col0 ) * - SUM ( DISTINCT + ( - 73 ) ) + - + 94 + - COUNT ( * ) + - 28 AS col2 FROM tab0 AS cor0
----
-347094

onlyif mysql # aggregate syntax: 
query I rowsort label-4972
SELECT 39 + + MIN( ALL 22 ) FROM tab0 AS cor0
----
61

skipif mysql # not compatible
query I rowsort label-4972
SELECT 39 + + MIN ( ALL 22 ) FROM tab0 AS cor0
----
61

query I rowsort
SELECT - - 92 + 48 * + col0 AS col0 FROM tab2 cor0
----
2300
3164
3692

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4974
SELECT ALL CAST( + - 3 AS SIGNED ) FROM tab1 AS cor0
----
-3
-3
-3

skipif mysql # not compatible
query I rowsort label-4974
SELECT ALL CAST ( + - 3 AS INTEGER ) FROM tab1 AS cor0
----
-3
-3
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4975
SELECT ALL + CAST( + - col1 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-4975
SELECT ALL + CAST ( + - col1 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-1
-21
-81

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL NOT IN ( - col2, col0 * 73, + col0, - 1 )
----

query II rowsort
SELECT ALL - col1, 30 AS col1 FROM tab0
----
-1
30
-21
30
-81
30

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - - col1 * + + col0 / + - 5 > col1
----

query I rowsort
SELECT DISTINCT ( + 31 ) * - - 47 + col0 + + col0 * + col2 + - 25 * - col0 * + col0 FROM tab2
----
106481
146507
55461

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4980
SELECT 75 + + CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4980
SELECT 75 + + CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4981
SELECT + - COUNT( * ) * + 43 AS col0 FROM tab1 AS cor0
----
-129

skipif mysql # not compatible
query I rowsort label-4981
SELECT + - COUNT ( * ) * + 43 AS col0 FROM tab1 AS cor0
----
-129

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 44 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4983
SELECT + MAX( 56 ) / + CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4983
SELECT + MAX ( 56 ) / + CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-4984
SELECT - - col0 DIV + 93 col1, 15 AS col1 FROM tab0 AS cor0
----
0
15
0
15
1
15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4984
SELECT - - col0 / + 93 col1, 15 AS col1 FROM tab0 AS cor0
----
0
15
0
15
1
15

query II rowsort
SELECT ALL + col1 AS col1, + col2 + col2 FROM tab1 AS cor0
----
14
192
47
136
5
118

query I rowsort
SELECT + col1 + - 89 * col2 AS col2 FROM tab1 cor0 WHERE NOT + col1 >= NULL
----

query I rowsort
SELECT DISTINCT - - 99 FROM tab0 cor0
----
99

onlyif mysql # DIV for integer division: 
query II rowsort label-4988
SELECT ALL - 47 DIV + 6, col2 FROM tab0
----
-7
10
-7
47
-7
99

skipif mysql # not compatible
query II rowsort label-4988
SELECT ALL - 47 / + 6, col2 FROM tab0
----
-7
10
-7
47
-7
99

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4989
SELECT ALL COUNT( * ) * + AVG ( 18 ) * CAST( NULL AS DECIMAL ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4989
SELECT ALL COUNT ( * ) * + AVG ( 18 ) * CAST ( NULL AS REAL ) FROM tab0
----
NULL

query I rowsort
SELECT ALL + col0 + + col2 FROM tab0 WHERE ( + 61 ) IS NULL
----

query I rowsort
SELECT DISTINCT + col0 * - ( ( + col2 ) ) FROM tab0
----
-705
-870
-9603

query I rowsort
SELECT col1 * - + col1 AS col0 FROM tab1
----
-196
-2209
-25

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 22 * 80 col1 FROM tab1
----
1760
1760
1760

onlyif mysql # aggregate syntax: 
query I rowsort label-4994
SELECT DISTINCT - + ( + - MIN( + + col1 ) ) AS col1 FROM tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-4994
SELECT DISTINCT - + ( + - MIN ( + + col1 ) ) AS col1 FROM tab1 AS cor0
----
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - + 68 ) col1 FROM tab0
----
68
68
68

query I rowsort
SELECT DISTINCT + 43 * - + col0 FROM tab1 cor0
----
-2193
-3655
-3913

onlyif mysql # aggregate syntax: 
query I rowsort label-4997
SELECT + + MIN( DISTINCT - 44 ) * - - MAX( DISTINCT + col0 ) * + COUNT( * ) - - 75 AS col1 FROM tab1 AS cor0
----
-11937

skipif mysql # not compatible
query I rowsort label-4997
SELECT + + MIN ( DISTINCT - 44 ) * - - MAX ( DISTINCT + col0 ) * + COUNT ( * ) - - 75 AS col1 FROM tab1 AS cor0
----
-11937

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4998
SELECT ALL + + 60 * - - 43 * - 24 DIV COUNT( * ) FROM tab0 AS cor0
----
-20640

skipif mysql # not compatible
query I rowsort label-4998
SELECT ALL + + 60 * - - 43 * - 24 / COUNT ( * ) FROM tab0 AS cor0
----
-20640

query I rowsort
SELECT DISTINCT - - col1 + + 52 * + 68 FROM tab1 AS cor0
----
3541
3550
3583

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col1 - + 55 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col2 AS col0 FROM tab0 AS cor0 WHERE NULL = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5002
SELECT DISTINCT + - SUM( DISTINCT - 0 ) AS col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5002
SELECT DISTINCT + - SUM ( DISTINCT - 0 ) AS col2 FROM tab2 AS cor0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5003
SELECT CAST( COUNT( * ) AS SIGNED ) + + 60 FROM tab1
----
63

skipif mysql # not compatible
query I rowsort label-5003
SELECT CAST ( COUNT ( * ) AS INTEGER ) + + 60 FROM tab1
----
63

query I rowsort
SELECT - col1 AS col2 FROM tab0 WHERE - 34 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5005
SELECT col1 + - ( + col0 ) + - col0 DIV + - 76 FROM tab1
----
-37
-43
-79

skipif mysql # not compatible
query I rowsort label-5005
SELECT col1 + - ( + col0 ) + - col0 / + - 76 FROM tab1
----
-37
-43
-79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5006
SELECT CAST( NULL AS SIGNED ) + + - 56 * + - col0 * + 45 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5006
SELECT CAST ( NULL AS INTEGER ) + + - 56 * + - col0 * + 45 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT col2 * col0 + col2 AS col0 FROM tab0
----
752
880
9702

query III rowsort
SELECT * FROM tab1 WHERE - + 33 IS NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col0 BETWEEN col0 AND - col0
----

query I rowsort
SELECT ALL 39 + - - ( 43 ) + 42 AS col1 FROM tab1 AS cor0
----
124
124
124

query I rowsort
SELECT DISTINCT - col1 * - - 63 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT + ( + col1 ) * + + col2 - col1 FROM tab1 AS cor0
----
1330
290
3149

query I rowsort
SELECT DISTINCT - 22 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-22

query I rowsort
SELECT ALL + - col2 * + col0 AS col0 FROM tab1 AS cor0 WHERE NOT NULL <> + col2
----

query I rowsort
SELECT ALL + - 73 FROM tab0 AS cor0
----
-73
-73
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-5016
SELECT ALL - ( + 47 ) * + ( + MAX( - - 95 ) ) * + 7 AS col1 FROM tab1 AS cor0
----
-31255

skipif mysql # not compatible
query I rowsort label-5016
SELECT ALL - ( + 47 ) * + ( + MAX ( - - 95 ) ) * + 7 AS col1 FROM tab1 AS cor0
----
-31255

onlyif mysql # aggregate syntax: 
query I rowsort label-5017
SELECT DISTINCT COUNT( * ) col1 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-5017
SELECT DISTINCT COUNT ( * ) col1 FROM tab1 AS cor0 WHERE ( NULL IS NULL )
----
3

query I rowsort
SELECT 6 * + + col1 AS col2 FROM tab1 AS cor0
----
282
30
84

onlyif mysql # aggregate syntax: 
query II rowsort label-5019
SELECT COUNT( * ), 52 AS col1 FROM tab2 cor0
----
3
52

skipif mysql # not compatible
query II rowsort label-5019
SELECT COUNT ( * ), 52 AS col1 FROM tab2 cor0
----
3
52

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) <= - 78 + - 38
----

query II rowsort
SELECT col1, ( + 24 ) + - col1 + + ( + col0 ) * + col1 AS col1 FROM tab0 cor0
----
1
120
21
1830
81
1158

query I rowsort
SELECT ALL 70 * col1 FROM tab1 AS cor0
----
3290
350
980

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND ( + col2 ) / col0
----

query I rowsort
SELECT DISTINCT - 19 * - + col1 AS col1 FROM tab0
----
1539
19
399

query I rowsort
SELECT DISTINCT - col0 * + + col2 AS col2 FROM tab1
----
-4896
-5015
-6188

query I rowsort
SELECT ALL + col1 - - col2 FROM tab1 WHERE - 5 BETWEEN NULL AND - col0 + - - col1 + 24 / col1 + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5027
SELECT ALL - COUNT( * ) * SUM( - 50 ) FROM tab1 AS cor0
----
450

skipif mysql # not compatible
query I rowsort label-5027
SELECT ALL - COUNT ( * ) * SUM ( - 50 ) FROM tab1 AS cor0
----
450

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5028
SELECT + CAST( + COUNT( * ) AS SIGNED ) FROM tab2 AS cor0 WHERE NOT NULL <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-5028
SELECT + CAST ( + COUNT ( * ) AS INTEGER ) FROM tab2 AS cor0 WHERE NOT NULL <= NULL
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5029
SELECT ALL + MAX( ALL - - CAST( 17 AS SIGNED ) ) * - - COUNT( * ) FROM tab1 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-5029
SELECT ALL + MAX ( ALL - - CAST ( 17 AS INTEGER ) ) * - - COUNT ( * ) FROM tab1 AS cor0
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-5030
SELECT DISTINCT + + MAX( DISTINCT - - col0 ) FROM tab1 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-5030
SELECT DISTINCT + + MAX ( DISTINCT - - col0 ) FROM tab1 AS cor0
----
91

query I rowsort
SELECT + - 84 + 15 AS col2 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 3bd7460efa48c66c072ad5f3c2def7e9

onlyif mysql # aggregate syntax: 
query I rowsort label-5032
SELECT DISTINCT COUNT( 52 ) FROM tab1, tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-5032
SELECT DISTINCT COUNT ( 52 ) FROM tab1, tab1 AS cor0
----
9

query I rowsort
SELECT DISTINCT - 52 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-52

query I rowsort
SELECT col0 * - + 96 + col0 AS col2 FROM tab0 AS cor0
----
-1425
-8265
-9215

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL < - 32
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5036
SELECT ALL + 35 * + + col2 + - + col1 DIV + + 50 + col0 AS col0 FROM tab2 AS cor0
----
1463
2104
850

skipif mysql # not compatible
query I rowsort label-5036
SELECT ALL + 35 * + + col2 + - + col1 / + + 50 + col0 AS col0 FROM tab2 AS cor0
----
1463
2104
850

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NULL ) = + 53
----

query II rowsort
SELECT 29 AS col2, - col2 + + - 0 AS col1 FROM tab1 AS cor0 WHERE ( NULL ) <= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + + 79 col1 FROM tab1 AS cor0
----
-12
-6
28

query I rowsort
SELECT + + ( + ( + col1 ) ) FROM tab2 AS cor0
----
51
67
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5041
SELECT ALL CAST( NULL AS SIGNED ) AS col0, COUNT( * ) AS col2 FROM tab0
----
NULL
3

skipif mysql # not compatible
query II rowsort label-5041
SELECT ALL CAST ( NULL AS INTEGER ) AS col0, COUNT ( * ) AS col2 FROM tab0
----
NULL
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5042
SELECT DISTINCT SUM( DISTINCT - + col1 ) AS col2 FROM tab0
----
-103

skipif mysql # not compatible
query I rowsort label-5042
SELECT DISTINCT SUM ( DISTINCT - + col1 ) AS col2 FROM tab0
----
-103

query I rowsort
SELECT DISTINCT col0 + - - col2 AS col1 FROM tab1
----
144
147
159

onlyif mysql # aggregate syntax: 
query I rowsort label-5044
SELECT + COUNT( - - col0 ) + - COUNT( * ) + + - 99 FROM tab2 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-5044
SELECT + COUNT ( - - col0 ) + - COUNT ( * ) + + - 99 FROM tab2 AS cor0
----
-99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5045
SELECT - SUM( - + col2 ) + - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5045
SELECT - SUM ( - + col2 ) + - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5046
SELECT DISTINCT SUM( + 44 ) - - 98 col2 FROM tab2 AS cor0
----
230

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5046
SELECT DISTINCT SUM ( + 44 ) - - 98 col2 FROM tab2 AS cor0
----
230

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE - col0 IN ( - 81, 77 / - + 61 )
----

query I rowsort
SELECT - col0 * + 97 - + 76 FROM tab2 AS cor0
----
-4538
-6284
-7351

onlyif mysql # DIV for integer division: 
query I rowsort label-5049
SELECT - col2 DIV - 81 + + 14 FROM tab0 cor0
----
14
14
15

skipif mysql # not compatible
query I rowsort label-5049
SELECT - col2 / - 81 + + 14 FROM tab0 cor0
----
14
14
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5050
SELECT DISTINCT - + CAST( col1 AS SIGNED ) * - ( col1 ) FROM tab0 AS cor0
----
1
441
6561

skipif mysql # not compatible
query I rowsort label-5050
SELECT DISTINCT - + CAST ( col1 AS INTEGER ) * - ( col1 ) FROM tab0 AS cor0
----
1
441
6561

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( NOT 41 > NULL )
----

query I rowsort
SELECT DISTINCT col1 FROM tab0 WHERE + - col1 + + - col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5053
SELECT - MIN( ALL + col1 ) AS col0 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-5053
SELECT - MIN ( ALL + col1 ) AS col0 FROM tab0
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-5054
SELECT col0 * + - col0 DIV + + col0 FROM tab2
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-5054
SELECT col0 * + - col0 / + + col0 FROM tab2
----
-46
-64
-75

query II rowsort
SELECT DISTINCT 90 AS col1, 84 + - - col2 AS col2 FROM tab2
----
90
107
90
124
90
142

query II rowsort
SELECT ALL + col0, - 15 FROM tab2
----
46
-15
64
-15
75
-15

query I rowsort
SELECT ALL 6 * col2 FROM tab0
----
282
594
60

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5058
SELECT DISTINCT * FROM tab0 cor0 WHERE CAST( col2 AS SIGNED ) BETWEEN ( 82 * - ( + col0 ) * ( - col2 ) ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-5058
SELECT DISTINCT * FROM tab0 cor0 WHERE CAST ( col2 AS INTEGER ) BETWEEN ( 82 * - ( + col0 ) * ( - col2 ) ) AND NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col1 + - - col0 + col2 - + - col0 <> + col1
----

query I rowsort
SELECT ALL 47 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 4fe192f296791e1e40ea00a68aa8dab7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5061
SELECT ALL + CAST( NULL AS SIGNED ) AS col1, - col1, 70 * - - col0 * + col0 AS col0 FROM tab1
----
9 values hashing to d98f896ef2cf531f421a06b043d42716

skipif mysql # not compatible
query III rowsort label-5061
SELECT ALL + CAST ( NULL AS INTEGER ) AS col1, - col1, 70 * - - col0 * + col0 AS col0 FROM tab1
----
9 values hashing to d98f896ef2cf531f421a06b043d42716

query I rowsort
SELECT ALL - 43 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to ab0c314d2b589ccedb9a875beeb1f86a

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5063
SELECT DISTINCT - CAST( - 38 AS SIGNED ) AS col0 FROM tab0
----
38

skipif mysql # not compatible
query I rowsort label-5063
SELECT DISTINCT - CAST ( - 38 AS INTEGER ) AS col0 FROM tab0
----
38

query I rowsort
SELECT DISTINCT col2 + - 71 + 11 FROM tab1
----
-1
36
8

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NOT NULL = ( + + col0 + - col1 ) )
----

query I rowsort
SELECT DISTINCT - col2 * 47 + + 20 + col0 + col2 FROM tab0 AS cor0
----
-2127
-353
-4437

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5067
SELECT ALL - ( - MIN( DISTINCT 23 ) ) - - + CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) AS col0 FROM tab2 AS cor0 WHERE - col1 < NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5067
SELECT ALL - ( - MIN ( DISTINCT 23 ) ) - - + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) AS col0 FROM tab2 AS cor0 WHERE - col1 < NULL
----
NULL

query I rowsort
SELECT - 31 + col0 FROM tab2 AS cor0
----
15
33
44

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5069
SELECT * FROM tab0 cor0 WHERE CAST( NULL AS SIGNED ) + + 16 + + 72 + col1 + - - 37 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-5069
SELECT * FROM tab0 cor0 WHERE CAST ( NULL AS INTEGER ) + + 16 + + 72 + col1 + - - 37 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5070
SELECT + col1 DIV col0 + - col1 FROM tab2
----
-50
-67
-76

skipif mysql # not compatible
query I rowsort label-5070
SELECT + col1 / col0 + - col1 FROM tab2
----
-50
-67
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-5071
SELECT MIN( DISTINCT - - col0 ) + - COUNT( * ) FROM tab2
----
43

skipif mysql # not compatible
query I rowsort label-5071
SELECT MIN ( DISTINCT - - col0 ) + - COUNT ( * ) FROM tab2
----
43

query I rowsort
SELECT - 30 + + - col0 - - col0 FROM tab1
----
-30
-30
-30

query III rowsort
SELECT * FROM tab2 WHERE - 8 > + col1 * col2
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col2 > + 45
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) IN ( + col2 - col0, + col0 * 57 - + col1 + + col0 * - 10 * 80, col1, + ( 59 ), - col0 )
----

query I rowsort
SELECT DISTINCT 31 * + 30 AS col2 FROM tab2
----
930

onlyif mysql # aggregate syntax: 
query I rowsort label-5077
SELECT ALL - COUNT( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
-9

skipif mysql # not compatible
query I rowsort label-5077
SELECT ALL - COUNT ( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
-9

query II rowsort
SELECT DISTINCT 44 AS col2, + 48 AS col1 FROM tab2 AS cor0
----
44
48

onlyif mysql # DIV for integer division: 
query I rowsort label-5079
SELECT col0 DIV - - col0 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5079
SELECT col0 / - - col0 FROM tab2 AS cor0
----
1
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5080
SELECT - col1 FROM tab2 cor0 WHERE NOT + CAST( NULL AS SIGNED ) IS NOT NULL
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-5080
SELECT - col1 FROM tab2 cor0 WHERE NOT + CAST ( NULL AS INTEGER ) IS NOT NULL
----
-51
-67
-77

query II rowsort
SELECT - - col1 AS col2, + col2 AS col0 FROM tab2 AS cor0
----
51
23
67
58
77
40

query II rowsort
SELECT DISTINCT - col1 AS col1, + col2 AS col0 FROM tab0 AS cor0
----
-1
99
-21
10
-81
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 92 col0 FROM tab1
----
92
92
92

query I rowsort
SELECT DISTINCT - col0 FROM tab0 WHERE - col0 IS NOT NULL
----
-15
-87
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-5085
SELECT ALL SUM( DISTINCT - + col2 ) col2 FROM tab1
----
-223

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5085
SELECT ALL SUM ( DISTINCT - + col2 ) col2 FROM tab1
----
-223

query I rowsort
SELECT ( - 49 ) FROM tab2
----
-49
-49
-49

query I rowsort
SELECT col1 AS col1 FROM tab0 WHERE NOT + - 20 BETWEEN - 86 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5088
SELECT ALL CAST( NULL AS SIGNED ) * - 7 FROM tab2 WHERE - + CAST( NULL AS SIGNED ) * + 32 * col1 + col2 + - col2 / - col1 + - - col0 IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5088
SELECT ALL CAST ( NULL AS INTEGER ) * - 7 FROM tab2 WHERE - + CAST ( NULL AS INTEGER ) * + 32 * col1 + col2 + - col2 / - col1 + - - col0 IS NULL
----
NULL
NULL
NULL

query I rowsort
SELECT - - col1 * 10 - 62 FROM tab2 AS cor0
----
448
608
708

query I rowsort
SELECT ALL col1 + 49 AS col1 FROM tab2 AS cor0
----
100
116
126

query I rowsort
SELECT + + col2 * - 74 FROM tab0 AS cor0
----
-3478
-7326
-740

query I rowsort
SELECT DISTINCT + ( + ( 32 ) ) AS col1 FROM tab1
----
32

query II rowsort
SELECT ALL - ( - - col0 ) + - + 52 AS col2, - col2 + + 89 FROM tab2
----
-116
49
-127
31
-98
66

onlyif mysql # aggregate syntax: 
query I rowsort label-5094
SELECT + + 19 * - + 15 + ( + COUNT( * ) ) * - - SUM( DISTINCT ( col1 ) ) + COUNT( * ) AS col2 FROM tab0 AS cor0
----
27

skipif mysql # not compatible
query I rowsort label-5094
SELECT + + 19 * - + 15 + ( + COUNT ( * ) ) * - - SUM ( DISTINCT ( col1 ) ) + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-5095
SELECT + COUNT( * ) * 71 AS col1 FROM tab2 cor0
----
213

skipif mysql # not compatible
query I rowsort label-5095
SELECT + COUNT ( * ) * 71 AS col1 FROM tab2 cor0
----
213

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5096
SELECT + 62 + col1 / - col1 FROM tab2 cor0 WHERE - CAST( - 11 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-5096
SELECT + 62 + col1 / - col1 FROM tab2 cor0 WHERE - CAST ( - 11 AS INTEGER ) IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5097
SELECT ALL + 48 - + col0 DIV - col2 + - - col2 AS col1 FROM tab0 AS cor0
----
147
66
95

skipif mysql # not compatible
query I rowsort label-5097
SELECT ALL + 48 - + col0 / - col2 + - - col2 AS col1 FROM tab0 AS cor0
----
147
66
95

onlyif mysql # aggregate syntax: 
query I rowsort label-5098
SELECT COUNT( - + col0 ) * 48 + - 95 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
49

skipif mysql # not compatible
query I rowsort label-5098
SELECT COUNT ( - + col0 ) * 48 + - 95 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
49

query II rowsort
SELECT ALL - col2 AS col1, + col2 AS col0 FROM tab0 AS cor0
----
-10
10
-47
47
-99
99

query I rowsort
SELECT ALL + col2 + col2 * + col2 - - col1 AS col1 FROM tab0 AS cor0
----
131
2337
9901

onlyif mysql # aggregate syntax: 
query II rowsort label-5101
SELECT + COUNT( * ), - COUNT( * ) AS col0 FROM tab2 AS cor0
----
3
-3

skipif mysql # not compatible
query II rowsort label-5101
SELECT + COUNT ( * ), - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
3
-3

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5102
SELECT ALL - CAST( NULL AS DECIMAL ) * - - col0 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5102
SELECT ALL - CAST ( NULL AS REAL ) * - - col0 AS col2 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5103
SELECT ALL - col1 + col1 * + 99 AS col1 FROM tab0 WHERE NOT ( ( NULL ) = + + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-5103
SELECT ALL - col1 + col1 * + 99 AS col1 FROM tab0 WHERE NOT ( ( NULL ) = + + CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT - col0 - + + ( col1 ) AS col2 FROM tab2
----
-141
-142
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-5105
SELECT COUNT( * ) + - 90 FROM tab1 WHERE ( NOT NULL IS NULL )
----
-90

skipif mysql # not compatible
query I rowsort label-5105
SELECT COUNT ( * ) + - 90 FROM tab1 WHERE ( NOT NULL IS NULL )
----
-90

query I rowsort
SELECT - ( + + col1 ) + + 3 FROM tab0
----
-18
-78
2

query I rowsort
SELECT DISTINCT 80 * + col2 * - col2 FROM tab1
----
-278480
-369920
-737280

query I rowsort
SELECT 13 * - col2 AS col1 FROM tab1
----
-1248
-767
-884

query I rowsort
SELECT - col1 * + 96 + col2 AS col1 FROM tab0 WHERE NOT + col1 IS NULL
----
-2006
-7729
3

query I rowsort
SELECT 92 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
92
92
92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5111
SELECT ALL + ( + - col0 ) / CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5111
SELECT ALL + ( + - col0 ) / CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5112
SELECT ALL + 94 DIV 18 AS col0 FROM tab1 AS cor0
----
5
5
5

skipif mysql # not compatible
query I rowsort label-5112
SELECT ALL + 94 / 18 AS col0 FROM tab1 AS cor0
----
5
5
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - - col1 * - col0, 8 col2 FROM tab1 AS cor0
----
-425
8
-4277
8
-714
8

onlyif mysql # aggregate syntax: 
query I rowsort label-5114
SELECT DISTINCT - 4 * COUNT( + - col0 ) + + - 55 FROM tab2 AS cor0
----
-67

skipif mysql # not compatible
query I rowsort label-5114
SELECT DISTINCT - 4 * COUNT ( + - col0 ) + + - 55 FROM tab2 AS cor0
----
-67

onlyif mysql # DIV for integer division: 
query I rowsort label-5115
SELECT 4 DIV ( - col0 ) AS col0 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5115
SELECT 4 / ( - col0 ) AS col0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT ( - ( ( - 29 ) ) ) AS col2 FROM tab2 cor0
----
29

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NOT - - col2 IS NOT NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-5118
SELECT COUNT( DISTINCT + + 46 ) FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-5118
SELECT COUNT ( DISTINCT + + 46 ) FROM tab2
----
1

query II rowsort
SELECT ALL col2, + col0 * + col2 FROM tab2
----
23
1058
40
2560
58
4350

query I rowsort
SELECT DISTINCT + col2 * + + col2 + - + 37 FROM tab1
----
3444
4587
9179

onlyif mysql # aggregate syntax: 
query I rowsort label-5121
SELECT SUM( + 90 ) FROM tab2
----
270

skipif mysql # not compatible
query I rowsort label-5121
SELECT SUM ( + 90 ) FROM tab2
----
270

onlyif mysql # aggregate syntax: 
query I rowsort label-5122
SELECT + 66 + - MAX( DISTINCT col0 ) FROM tab0
----
-31

skipif mysql # not compatible
query I rowsort label-5122
SELECT + 66 + - MAX ( DISTINCT col0 ) FROM tab0
----
-31

onlyif mysql # DIV for integer division: 
query I rowsort label-5123
SELECT DISTINCT - col1 DIV + 97 col1 FROM tab2
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5123
SELECT DISTINCT - col1 / + 97 col1 FROM tab2
----
0

query I rowsort
SELECT - col0 + + 99 FROM tab2
----
24
35
53

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 20 col1 FROM tab2 AS cor0
----
-20

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 56 > col2
----

query III rowsort
SELECT + 54 * + + ( - 98 ), col2 AS col1, col1 AS col2 FROM tab1 AS cor0
----
9 values hashing to fc7d3b9527ac7b0cb3978a4bb527fffc

onlyif mysql # aggregate syntax: 
query I rowsort label-5128
SELECT ALL 71 + - - COUNT( * ) AS col2 FROM tab0
----
74

skipif mysql # not compatible
query I rowsort label-5128
SELECT ALL 71 + - - COUNT ( * ) AS col2 FROM tab0
----
74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5129
SELECT DISTINCT CAST( NULL AS SIGNED ) * 82 + col2 - + - 38 * + col0 - + ( col0 ) * - - 52 * + + col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5129
SELECT DISTINCT CAST ( NULL AS INTEGER ) * 82 + col2 - + - 38 * + col0 - + ( col0 ) * - - 52 * + + col1 FROM tab2
----
NULL

query I rowsort
SELECT ( 93 ) FROM tab1
----
93
93
93

query I rowsort
SELECT DISTINCT + - 91 FROM tab0 AS cor0 WHERE NULL > + col1
----

query II rowsort
SELECT DISTINCT - + col0 + + col1 + + + col2 * + + 78 AS col0, - col2 AS col0 FROM tab0 cor0
----
3732
-47
714
-10
7626
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5133
SELECT ALL - CAST( NULL AS SIGNED ) + - col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5133
SELECT ALL - CAST ( NULL AS INTEGER ) + - col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - - col2 + - 75 AS col0 FROM tab2 AS cor0
----
-17
-35
-52

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5135
SELECT * FROM tab1 AS cor0 WHERE 73 = - CAST( 89 AS SIGNED ) + - col0 + + - 35
----

skipif mysql # not compatible
query III rowsort label-5135
SELECT * FROM tab1 AS cor0 WHERE 73 = - CAST ( 89 AS INTEGER ) + - col0 + + - 35
----

query II rowsort
SELECT + col2 + col0, col1 AS col1 FROM tab0 cor0
----
196
1
62
81
97
21

query I rowsort
SELECT + - col1 + col1 + ( + col2 ) + + col1 * + + 61 FROM tab1 AS cor0
----
2935
364
950

query I rowsort
SELECT ALL - col2 - + 23 + 67 AS col0 FROM tab2 AS cor0
----
-14
21
4

onlyif mysql # aggregate syntax: 
query I rowsort label-5139
SELECT - + COUNT( * ) + + + 25 FROM tab2 AS cor0
----
22

skipif mysql # not compatible
query I rowsort label-5139
SELECT - + COUNT ( * ) + + + 25 FROM tab2 AS cor0
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-5140
SELECT COUNT( * ) + + 4 * - MAX( + col1 ) FROM tab0
----
-321

skipif mysql # not compatible
query I rowsort label-5140
SELECT COUNT ( * ) + + 4 * - MAX ( + col1 ) FROM tab0
----
-321

query II rowsort
SELECT DISTINCT 37 * - ( - 94 ), col1 FROM tab2
----
3478
51
3478
67
3478
77

query I rowsort
SELECT ALL + col1 - col2 * - + col2 * col2 FROM tab2
----
12218
195179
64077

onlyif mysql # DIV for integer division: 
query I rowsort label-5143
SELECT ALL + 42 DIV - col1 FROM tab1
----
-3
-8
0

skipif mysql # not compatible
query I rowsort label-5143
SELECT ALL + 42 / - col1 FROM tab1
----
-3
-8
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5144
SELECT ALL COUNT( ALL ( - col2 ) ) AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-5144
SELECT ALL COUNT ( ALL ( - col2 ) ) AS col2 FROM tab2
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5145
SELECT DISTINCT - col1 * + - 11 * - col0 * - CAST( - + 79 AS SIGNED ) * + col2 - + 10 FROM tab1 AS cor0
----
-21790185
-252736494
-59564746

skipif mysql # not compatible
query I rowsort label-5145
SELECT DISTINCT - col1 * + - 11 * - col0 * - CAST ( - + 79 AS INTEGER ) * + col2 - + 10 FROM tab1 AS cor0
----
-21790185
-252736494
-59564746

onlyif mysql # DIV for integer division: 
query III rowsort label-5146
SELECT ALL col0 DIV + + col1, + ( col2 ) AS col2, + + col0 AS col2 FROM tab2
----
9 values hashing to af3e8dd294478edf9a09156ca2621afa

skipif mysql # not compatible
query III rowsort label-5146
SELECT ALL col0 / + + col1, + ( col2 ) AS col2, + + col0 AS col2 FROM tab2
----
9 values hashing to af3e8dd294478edf9a09156ca2621afa

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 76 col0, 16 AS col0 FROM tab1
----
76
16

query I rowsort
SELECT DISTINCT 50 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-5149
SELECT - + MAX( ALL - col0 ) AS col2 FROM tab0 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-5149
SELECT - + MAX ( ALL - col0 ) AS col2 FROM tab0 AS cor0
----
15

query I rowsort
SELECT DISTINCT - col2 FROM tab2 AS cor0 WHERE NOT NULL > col1 * - + col1 + - col1
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col0 * - col2 - - - 73 / + col1 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5152
SELECT DISTINCT 71 * + 79 * + + COUNT( * ) + + + ( + 87 ) FROM tab2 AS cor0
----
16914

skipif mysql # not compatible
query I rowsort label-5152
SELECT DISTINCT 71 * + 79 * + + COUNT ( * ) + + + ( + 87 ) FROM tab2 AS cor0
----
16914

onlyif mysql # DIV for integer division: 
query I rowsort label-5153
SELECT ( col1 ) DIV - + col1 + col1 FROM tab2 AS cor0
----
50
66
76

skipif mysql # not compatible
query I rowsort label-5153
SELECT ( col1 ) / - + col1 + col1 FROM tab2 AS cor0
----
50
66
76

query I rowsort
SELECT + - 61 * - 39 + col2 AS col0 FROM tab0 AS cor0
----
2389
2426
2478

onlyif mysql # aggregate syntax: 
query I rowsort label-5155
SELECT - 87 + 67 * + COUNT( * ) FROM tab1 AS cor0
----
114

skipif mysql # not compatible
query I rowsort label-5155
SELECT - 87 + 67 * + COUNT ( * ) FROM tab1 AS cor0
----
114

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5156
SELECT - COUNT( * ) + - CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5156
SELECT - COUNT ( * ) + - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 91 + - col0 col0 FROM tab0 AS cor0
----
-106
-178
-188

onlyif mysql # aggregate syntax: 
query I rowsort label-5158
SELECT - COUNT( ALL ( col2 ) ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5158
SELECT - COUNT ( ALL ( col2 ) ) FROM tab2 AS cor0
----
-3

query I rowsort
SELECT + col1 * - + col1 FROM tab0 AS cor0
----
-1
-441
-6561

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT - 95 + - - col2 * + + 20 + - - col1 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5161
SELECT ALL 8 DIV col1 FROM tab0
----
0
0
8

skipif mysql # not compatible
query I rowsort label-5161
SELECT ALL 8 / col1 FROM tab0
----
0
0
8

query I rowsort
SELECT ALL + col1 FROM tab2 WHERE col1 BETWEEN + col2 AND - 86
----

query I rowsort
SELECT + + col2 AS col0 FROM tab1 WHERE - col0 * - + col1 IS NOT NULL
----
59
68
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col1 col0 FROM tab1 WHERE NULL > col1 + col1
----

query I rowsort
SELECT + col0 FROM tab0 WHERE 86 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 col0 FROM tab1 WHERE ( NOT NULL NOT BETWEEN 21 AND - ( col0 ) / + 32 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 22 col1 FROM tab2
----
-22
-22
-22

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + 52 > + 64
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5169
SELECT DISTINCT COUNT( * ) + - 10 FROM tab1 AS cor0
----
-7

skipif mysql # not compatible
query I rowsort label-5169
SELECT DISTINCT COUNT ( * ) + - 10 FROM tab1 AS cor0
----
-7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 8 + + col0, - col1 col0 FROM tab0 AS cor0
----
7
-81
79
-21
89
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5171
SELECT CAST( NULL AS SIGNED ) * + col2 + col0 + ( + + col0 ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5171
SELECT CAST ( NULL AS INTEGER ) * + col2 + col0 + ( + + col0 ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 * - 22 * - + col0 BETWEEN NULL AND col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5173
SELECT - - 85 + - MIN( + + col1 ) + + SUM( ALL 93 ) FROM tab0 AS cor0
----
363

skipif mysql # not compatible
query I rowsort label-5173
SELECT - - 85 + - MIN ( + + col1 ) + + SUM ( ALL 93 ) FROM tab0 AS cor0
----
363

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 3 col0 FROM tab0
----
3
3
3

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5175
SELECT ALL * FROM tab2 WHERE NOT col1 + + CAST( NULL AS DECIMAL ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-5175
SELECT ALL * FROM tab2 WHERE NOT col1 + + CAST ( NULL AS REAL ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5176
SELECT - col2 + + - CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) AS col2, col2 * 84 FROM tab2
----
NULL
1932
NULL
3360
NULL
4872

skipif mysql # not compatible
query II rowsort label-5176
SELECT - col2 + + - CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) AS col2, col2 * 84 FROM tab2
----
NULL
1932
NULL
3360
NULL
4872

query I rowsort
SELECT DISTINCT 26 - + col2 AS col1 FROM tab1 WHERE NOT + 2 * + col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5178
SELECT DISTINCT + COUNT( * ) + + + 95 FROM tab1 AS cor0
----
98

skipif mysql # not compatible
query I rowsort label-5178
SELECT DISTINCT + COUNT ( * ) + + + 95 FROM tab1 AS cor0
----
98

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5179
SELECT 72 AS col1, CAST( - 15 AS SIGNED ) - col1 AS col0 FROM tab0 AS cor0
----
72
-16
72
-36
72
-96

skipif mysql # not compatible
query II rowsort label-5179
SELECT 72 AS col1, CAST ( - 15 AS INTEGER ) - col1 AS col0 FROM tab0 AS cor0
----
72
-16
72
-36
72
-96

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5180
SELECT DISTINCT - col1 + 1 - + CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5180
SELECT DISTINCT - col1 + 1 - + CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL - + 21 AS col1 FROM tab2 cor0 WHERE 68 IS NOT NULL
----
-21
-21
-21

query I rowsort
SELECT - col2 - + 35 * - col1 FROM tab0 AS cor0
----
-64
2788
725

onlyif mysql # aggregate syntax: 
query I rowsort label-5183
SELECT ALL COUNT( * ) - COUNT( * ) AS col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5183
SELECT ALL COUNT ( * ) - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
0

query III rowsort
SELECT * FROM tab1 WHERE NOT - ( - ( col2 ) ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-5185
SELECT + COUNT( ALL - 89 ) AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-5185
SELECT + COUNT ( ALL - 89 ) AS col0 FROM tab1
----
3

query I rowsort
SELECT + col2 AS col2 FROM tab2 AS cor0 WHERE NOT NULL <= NULL
----

query I rowsort
SELECT ALL col2 AS col0 FROM tab2 cor0 WHERE NOT + col1 IS NULL
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-5188
SELECT DISTINCT COUNT( * ) * COUNT( * ) * COUNT( DISTINCT + 62 ) FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-5188
SELECT DISTINCT COUNT ( * ) * COUNT ( * ) * COUNT ( DISTINCT + 62 ) FROM tab2
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-5189
SELECT ALL MIN( DISTINCT 47 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
47

skipif mysql # not compatible
query I rowsort label-5189
SELECT ALL MIN ( DISTINCT 47 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-5190
SELECT DISTINCT - + COUNT( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
-9

skipif mysql # not compatible
query I rowsort label-5190
SELECT DISTINCT - + COUNT ( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-5191
SELECT ALL MIN( + 21 ) FROM tab2
----
21

skipif mysql # not compatible
query I rowsort label-5191
SELECT ALL MIN ( + 21 ) FROM tab2
----
21

query II rowsort
SELECT ALL - 7 AS col0, + 19 FROM tab2
----
-7
19
-7
19
-7
19

onlyif mysql # aggregate syntax: 
query I rowsort label-5193
SELECT - - MAX( ALL ( - col1 ) ) FROM tab1 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-5193
SELECT - - MAX ( ALL ( - col1 ) ) FROM tab1 AS cor0
----
-5

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT + col0 * + + col2 / + + col1 = + - 51 * 46 * + - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-5195
SELECT DISTINCT - 81 DIV - col0 col0 FROM tab1 AS cor0
----
0
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5195
SELECT DISTINCT - 81 / - col0 col0 FROM tab1 AS cor0
----
0
1

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL IN ( 74, + col0, - 77, col0, 9 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5197
SELECT CAST( + 53 AS SIGNED ) * - col1 + col0 AS col1 FROM tab0 AS cor0
----
-1026
-4278
44

skipif mysql # not compatible
query I rowsort label-5197
SELECT CAST ( + 53 AS INTEGER ) * - col1 + col0 AS col1 FROM tab0 AS cor0
----
-1026
-4278
44

query I rowsort
SELECT col1 + - - col2 AS col2 FROM tab1 cor0
----
110
115
64

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col1 col1, - col2 FROM tab1
----
-14
-96
-47
-68
-5
-59

query I rowsort
SELECT 52 + + col2 FROM tab0
----
151
62
99

query I rowsort
SELECT - ( - col2 ) * + col1 + - col0 FROM tab1
----
1293
210
3105

onlyif mysql # aggregate syntax: 
query I rowsort label-5202
SELECT DISTINCT + 53 + + COUNT( * ) AS col0 FROM tab0
----
56

skipif mysql # not compatible
query I rowsort label-5202
SELECT DISTINCT + 53 + + COUNT ( * ) AS col0 FROM tab0
----
56

query I rowsort
SELECT col0 + + 13 AS col0 FROM tab1
----
104
64
98

query III rowsort
SELECT * FROM tab0 WHERE + 25 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5205
SELECT ALL MAX( - col0 ) + MAX( ( col2 ) ) FROM tab2
----
12

skipif mysql # not compatible
query I rowsort label-5205
SELECT ALL MAX ( - col0 ) + MAX ( ( col2 ) ) FROM tab2
----
12

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * - + col0 + - + 3 + + col0 col2 FROM tab1 AS cor0
----
-4848
-4933
-6100

query I rowsort
SELECT 88 AS col0 FROM tab2 AS cor0 WHERE NULL IS NULL
----
88
88
88

query II rowsort
SELECT - + 14, col1 AS col1 FROM tab0 AS cor0
----
-14
1
-14
21
-14
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 31 * - + col2 - 58 col2 FROM tab2
----
-1298
-1856
-771

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - ( + 21 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT + 22 AS col2 FROM tab2 cor0
----
22

query I rowsort
SELECT - col1 * col2 + col1 AS col2 FROM tab2 AS cor0
----
-1122
-3003
-3819

onlyif mysql # DIV for integer division: 
query I rowsort label-5213
SELECT ALL + - col0 DIV - col0 AS col2 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5213
SELECT ALL + - col0 / - col0 AS col2 FROM tab1 AS cor0
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5214
SELECT DISTINCT SUM( ALL + col0 ) AS col0 FROM tab2 AS cor0
----
185

skipif mysql # not compatible
query I rowsort label-5214
SELECT DISTINCT SUM ( ALL + col0 ) AS col0 FROM tab2 AS cor0
----
185

onlyif mysql # aggregate syntax: 
query I rowsort label-5215
SELECT DISTINCT - COUNT( * ) FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-5215
SELECT DISTINCT - COUNT ( * ) FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
0

query II rowsort
SELECT + col2 AS col0, - 50 FROM tab1
----
59
-50
68
-50
96
-50

query I rowsort
SELECT DISTINCT + 93 AS col1 FROM tab0, tab1 AS cor0
----
93

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( NULL >= col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5219
SELECT ALL + CAST( - - col0 AS SIGNED ) AS col1 FROM tab2
----
46
64
75

skipif mysql # not compatible
query I rowsort label-5219
SELECT ALL + CAST ( - - col0 AS INTEGER ) AS col1 FROM tab2
----
46
64
75

query II rowsort
SELECT ALL - + 56, col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-56
23
-56
40
-56
58

query I rowsort
SELECT - col2 FROM tab2 WHERE NOT - 21 <= NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL BETWEEN NULL AND col0 + - - 39
----

query I rowsort
SELECT ALL + col0 FROM tab1 AS cor0 WHERE NOT 92 + + + ( - + col1 ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 94 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + - 73 * - ( + - ( col0 ) ) + col2 FROM tab0 AS cor0
----
-1048
-6341
-6982

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL BETWEEN - col2 AND 43
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5227
SELECT MAX( 45 ) FROM tab2
----
45

skipif mysql # not compatible
query I rowsort label-5227
SELECT MAX ( 45 ) FROM tab2
----
45

query I rowsort
SELECT DISTINCT col2 * - col0 + - col1 FROM tab1 WHERE NOT - col2 NOT BETWEEN ( - 32 + col2 ) AND + ( + 16 )
----

query I rowsort
SELECT DISTINCT col1 * 55 AS col2 FROM tab1
----
2585
275
770

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5230
SELECT ALL + ( - CAST( NULL AS SIGNED ) ) * col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5230
SELECT ALL + ( - CAST ( NULL AS INTEGER ) ) * col1 FROM tab1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - 61 ) * col1 col2 FROM tab0
----
-1281
-4941
-61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5232
SELECT DISTINCT + 43 + + COUNT( * ) * - CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5232
SELECT DISTINCT + 43 + + COUNT ( * ) * - CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL

query I rowsort
SELECT 85 * + col1 FROM tab0
----
1785
6885
85

query III rowsort
SELECT ALL * FROM tab1 WHERE ( col2 ) NOT BETWEEN NULL AND col1 * 43
----

query I rowsort
SELECT 91 * col1 AS col0 FROM tab2
----
4641
6097
7007

query III rowsort
SELECT * FROM tab2 WHERE NOT ( + col2 - col0 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL IN ( + col1 / - col2 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - 78 NOT IN ( + col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-5239
SELECT ALL + 79 * SUM( DISTINCT - col1 ) + - ( + 45 ) FROM tab0
----
-8182

skipif mysql # not compatible
query I rowsort label-5239
SELECT ALL + 79 * SUM ( DISTINCT - col1 ) + - ( + 45 ) FROM tab0
----
-8182

onlyif mysql # aggregate syntax: 
query I rowsort label-5240
SELECT - COUNT( * ) FROM tab0 WHERE NOT ( col0 + + 12 ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-5240
SELECT - COUNT ( * ) FROM tab0 WHERE NOT ( col0 + + 12 ) IS NOT NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5241
SELECT - 82 + + CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5241
SELECT - 82 + + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col1 FROM tab1 WHERE NOT NULL IN ( - 4 * ( col2 / - col2 ) )
----

query I rowsort
SELECT ALL + 98 + - col0 AS col2 FROM tab1
----
13
47
7

query I rowsort
SELECT ALL 61 + + 8 FROM tab1
----
69
69
69

onlyif mysql # aggregate syntax: 
query I rowsort label-5245
SELECT DISTINCT 72 * + COUNT( * ) FROM tab0
----
216

skipif mysql # not compatible
query I rowsort label-5245
SELECT DISTINCT 72 * + COUNT ( * ) FROM tab0
----
216

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL <> 90
----

query I rowsort
SELECT DISTINCT col2 AS col2 FROM tab0 WHERE col2 IS NOT NULL
----
10
47
99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5248
SELECT COUNT( * ) DIV + 90 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-5248
SELECT COUNT ( * ) / + 90 FROM tab1
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 44 + + 70 * col2 col1 FROM tab1 AS cor0 WHERE col2 + + 24 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5250
SELECT DISTINCT COUNT( ALL col0 ) * 63 AS col0 FROM tab2 cor0 WHERE CAST( + 22 AS SIGNED ) * - col1 IS NOT NULL
----
189

skipif mysql # not compatible
query I rowsort label-5250
SELECT DISTINCT COUNT ( ALL col0 ) * 63 AS col0 FROM tab2 cor0 WHERE CAST ( + 22 AS INTEGER ) * - col1 IS NOT NULL
----
189

query I rowsort
SELECT col1 + + 18 * - col2 FROM tab2 AS cor0
----
-363
-643
-977

onlyif mysql # aggregate syntax: 
query I rowsort label-5252
SELECT DISTINCT MAX( DISTINCT - ( - ( + 31 ) ) ) FROM tab1 AS cor0 WHERE 32 * col2 + + col0 * - 21 < col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5252
SELECT DISTINCT MAX ( DISTINCT - ( - ( + 31 ) ) ) FROM tab1 AS cor0 WHERE 32 * col2 + + col0 * - 21 < col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5253
SELECT ALL - COUNT( * ) FROM tab1 cor0 WHERE NULL IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-5253
SELECT ALL - COUNT ( * ) FROM tab1 cor0 WHERE NULL IS NULL
----
-3

query I rowsort
SELECT 10 FROM tab0 AS cor0 WHERE NULL IS NULL
----
10
10
10

onlyif mysql # aggregate syntax: 
query I rowsort label-5255
SELECT DISTINCT COUNT( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab2
----
9

skipif mysql # not compatible
query I rowsort label-5255
SELECT DISTINCT COUNT ( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab2
----
9

query I rowsort
SELECT - 9 * 89 FROM tab2
----
-801
-801
-801

onlyif mysql # DIV for integer division: 
query I rowsort label-5257
SELECT DISTINCT - 8 DIV 54 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-5257
SELECT DISTINCT - 8 / 54 FROM tab1
----
0

query I rowsort
SELECT 49 * - col2 AS col2 FROM tab1
----
-2891
-3332
-4704

onlyif mysql # aggregate syntax: 
query I rowsort label-5259
SELECT + COUNT( ALL + 20 ) * COUNT( DISTINCT + 95 ) AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-5259
SELECT + COUNT ( ALL + 20 ) * COUNT ( DISTINCT + 95 ) AS col1 FROM tab2
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 19 col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5261
SELECT ALL COUNT( * ) col0 FROM tab2 cor0 WHERE col0 >= NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5261
SELECT ALL COUNT ( * ) col0 FROM tab2 cor0 WHERE col0 >= NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5262
SELECT + COUNT( ALL 64 ) AS col2 FROM tab2 AS cor0 WHERE NOT + col1 NOT IN ( + col2 )
----
0

skipif mysql # not compatible
query I rowsort label-5262
SELECT + COUNT ( ALL 64 ) AS col2 FROM tab2 AS cor0 WHERE NOT + col1 NOT IN ( + col2 )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5263
SELECT ALL - 55 DIV col2 FROM tab2 AS cor0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-5263
SELECT ALL - 55 / col2 FROM tab2 AS cor0
----
-1
-2
0

query I rowsort
SELECT 98 * col0 - + 4 * - col0 FROM tab2 AS cor0 WHERE NOT col1 + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5265
SELECT + 27 DIV SUM( - 30 ) AS col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5265
SELECT + 27 / SUM ( - 30 ) AS col0 FROM tab1 AS cor0
----
0

query I rowsort
SELECT ALL - 59 - - col1 FROM tab2 WHERE col1 - - 74 NOT IN ( - 84 + - 18 )
----
-8
18
8

onlyif mysql # aggregate syntax: 
query I rowsort label-5267
SELECT - MAX( DISTINCT - 76 ) AS col0 FROM tab2
----
76

skipif mysql # not compatible
query I rowsort label-5267
SELECT - MAX ( DISTINCT - 76 ) AS col0 FROM tab2
----
76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5268
SELECT ALL 25 DIV + COUNT( * ) FROM tab2 WHERE NOT CAST( NULL AS SIGNED ) * + 27 IS NOT NULL
----
8

skipif mysql # not compatible
query I rowsort label-5268
SELECT ALL 25 / + COUNT ( * ) FROM tab2 WHERE NOT CAST ( NULL AS INTEGER ) * + 27 IS NOT NULL
----
8

query I rowsort
SELECT 46 * 1 FROM tab1
----
46
46
46

onlyif mysql # aggregate syntax: 
query I rowsort label-5270
SELECT + - COUNT( col1 ) + - ( COUNT( * ) ) AS col0 FROM tab2 cor0
----
-6

skipif mysql # not compatible
query I rowsort label-5270
SELECT + - COUNT ( col1 ) + - ( COUNT ( * ) ) AS col0 FROM tab2 cor0
----
-6

query I rowsort
SELECT ALL + ( col1 ) FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT - ( - - col1 ) FROM tab2 cor0
----
-51
-67
-77

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + 32 NOT IN ( 66 )
----

query II rowsort
SELECT col0 AS col1, + col2 * - 68 AS col1 FROM tab0
----
15
-3196
87
-680
97
-6732

onlyif mysql # aggregate syntax: 
query I rowsort label-5275
SELECT + COUNT( * ) - 44 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-35

skipif mysql # not compatible
query I rowsort label-5275
SELECT + COUNT ( * ) - 44 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-5276
SELECT DISTINCT COUNT( * ) + + + MIN( - col0 ) FROM tab2
----
-72

skipif mysql # not compatible
query I rowsort label-5276
SELECT DISTINCT COUNT ( * ) + + + MIN ( - col0 ) FROM tab2
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-5277
SELECT + COUNT( * ) * 56 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
504

skipif mysql # not compatible
query I rowsort label-5277
SELECT + COUNT ( * ) * 56 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
504

query I rowsort
SELECT DISTINCT - col2 + - + col1 AS col0 FROM tab1
----
-110
-115
-64

query III rowsort
SELECT ALL * FROM tab0 WHERE + col1 + + 41 BETWEEN - 99 + col0 AND NULL
----

query I rowsort
SELECT DISTINCT col0 + col2 + + col0 AS col0 FROM tab2 AS cor0
----
115
168
208

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( col2 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5282
SELECT + CAST( NULL AS SIGNED ) FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-5282
SELECT + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT + col1 * col0 - - col0 FROM tab0 cor0 WHERE ( + col2 ) IS NOT NULL
----
1230
1914
194

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + 2 - - + 50 >= col0
----
64
77
40
75
67
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5285
SELECT ALL + col2 * + - 61 * CAST( NULL AS SIGNED ) * col1 - 14 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5285
SELECT ALL + col2 * + - 61 * CAST ( NULL AS INTEGER ) * col1 - 14 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + + col1 + + col1 - - 24 + - 95 FROM tab1 AS cor0
----
-43
-61
23

onlyif mysql # aggregate syntax: 
query I rowsort label-5287
SELECT DISTINCT MAX( DISTINCT + 81 ) FROM tab2 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-5287
SELECT DISTINCT MAX ( DISTINCT + 81 ) FROM tab2 AS cor0
----
81

query I rowsort
SELECT - col0 + + col1 - 0 AS col1 FROM tab1 AS cor0
----
-37
-44
-80

query III rowsort
SELECT * FROM tab1 WHERE NULL NOT BETWEEN - 27 AND ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5290
SELECT + CAST( NULL AS SIGNED ) + - col1 * - + col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5290
SELECT + CAST ( NULL AS INTEGER ) + - col1 * - + col1 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 WHERE - col1 = col0 * + 41 + 88 * ( col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5292
SELECT COUNT( * ) + + COUNT( ALL col1 ) * - - COUNT( * ) AS col1 FROM tab1
----
12

skipif mysql # not compatible
query I rowsort label-5292
SELECT COUNT ( * ) + + COUNT ( ALL col1 ) * - - COUNT ( * ) AS col1 FROM tab1
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-5293
SELECT ALL - SUM( ALL - ( - + col1 ) ) AS col2 FROM tab0
----
-103

skipif mysql # not compatible
query I rowsort label-5293
SELECT ALL - SUM ( ALL - ( - + col1 ) ) AS col2 FROM tab0
----
-103

onlyif mysql # aggregate syntax: 
query I rowsort label-5294
SELECT COUNT( ALL - col0 ) FROM tab2 WHERE ( NULL ) < + 61 * - 99 + - 50
----
0

skipif mysql # not compatible
query I rowsort label-5294
SELECT COUNT ( ALL - col0 ) FROM tab2 WHERE ( NULL ) < + 61 * - 99 + - 50
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5295
SELECT + COUNT( 11 ) * + 17 * MIN( + col1 ) FROM tab2
----
2601

skipif mysql # not compatible
query I rowsort label-5295
SELECT + COUNT ( 11 ) * + 17 * MIN ( + col1 ) FROM tab2
----
2601

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5296
SELECT CAST( - 95 AS SIGNED ) AS col0 FROM tab1
----
-95
-95
-95

skipif mysql # not compatible
query I rowsort label-5296
SELECT CAST ( - 95 AS INTEGER ) AS col0 FROM tab1
----
-95
-95
-95

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( - col0 * - + 82 ) IS NULL
----

query I rowsort
SELECT ALL - col0 * ( - + 42 ) AS col0 FROM tab0 AS cor0
----
3654
4074
630

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 72 * - - col0 * + col1 col0 FROM tab0 AS cor0
----
131544
6984
87480

query I rowsort
SELECT - 35 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to c12e8bdd687c9040a5600dab3b6adf5b

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5301
SELECT ALL 37 * col0 FROM tab1 WHERE NOT NULL > + CAST( + + 33 AS SIGNED ) * - col1
----

skipif mysql # not compatible
query I rowsort label-5301
SELECT ALL 37 * col0 FROM tab1 WHERE NOT NULL > + CAST ( + + 33 AS INTEGER ) * - col1
----

query I rowsort
SELECT 86 AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5303
SELECT DISTINCT col2 col1, + CAST( - col0 AS SIGNED ) * + - 22 AS col1 FROM tab1 AS cor0
----
59
1870
68
2002
96
1122

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5303
SELECT DISTINCT col2 col1, + CAST ( - col0 AS INTEGER ) * + - 22 AS col1 FROM tab1 AS cor0
----
59
1870
68
2002
96
1122

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col2 * + - col1 - - + 75 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + - 16 AS col1 FROM tab0 AS cor0
----
-16

query I rowsort
SELECT ALL - ( + + 26 ) AS col2 FROM tab0 AS cor0
----
-26
-26
-26

query I rowsort
SELECT DISTINCT + 49 * + + col0 * + col1 * + col0 FROM tab2 AS cor0
----
15454208
18466875
5287884

onlyif mysql # aggregate syntax: 
query I rowsort label-5308
SELECT + MIN( ALL - col2 ) FROM tab0 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-5308
SELECT + MIN ( ALL - col2 ) FROM tab0 AS cor0
----
-99

query I rowsort
SELECT - col1 + + col1 FROM tab2 AS cor0 WHERE ( - - col0 ) >= - col2 AND ( NULL ) NOT IN ( col2 )
----

query II rowsort
SELECT 8 AS col0, - 42 FROM tab2
----
8
-42
8
-42
8
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-5311
SELECT COUNT( DISTINCT + ( col2 ) ) AS col1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-5311
SELECT COUNT ( DISTINCT + ( col2 ) ) AS col1 FROM tab1
----
3

query I rowsort
SELECT ALL - 51 * + col0 AS col1 FROM tab2
----
-2346
-3264
-3825

query III rowsort
SELECT ALL * FROM tab2 WHERE + ( + 91 ) / - col0 + - 9 <= ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5314
SELECT DISTINCT - 2 DIV ( 27 ) DIV + - col2 AS col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-5314
SELECT DISTINCT - 2 / ( 27 ) / + - col2 AS col0 FROM tab1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5315
SELECT ALL col0 * + CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5315
SELECT ALL col0 * + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5316
SELECT COUNT( * ) FROM tab0 WHERE NOT ( - ( + - 93 ) + - - 70 ) IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-5316
SELECT COUNT ( * ) FROM tab0 WHERE NOT ( - ( + - 93 ) + - - 70 ) IS NULL
----
3

query I rowsort
SELECT DISTINCT + col2 / - 13 AS col0 FROM tab1 WHERE NULL < + - col2
----

query I rowsort
SELECT - col1 FROM tab0 AS cor0 WHERE NOT - col2 + - - col0 IS NULL
----
-1
-21
-81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 col2, - col0 FROM tab0 AS cor0
----
-10
-87
-47
-15
-99
-97

query I rowsort
SELECT - col1 * + - col0 AS col1 FROM tab2 AS cor0
----
2346
4928
5025

onlyif mysql # aggregate syntax: 
query I rowsort label-5321
SELECT DISTINCT ( + 16 ) + + COUNT( * ) AS col1 FROM tab0 AS cor0
----
19

skipif mysql # not compatible
query I rowsort label-5321
SELECT DISTINCT ( + 16 ) + + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
19

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - 94 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5323
SELECT + - SUM( + col2 ) FROM tab0 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-5323
SELECT + - SUM ( + col2 ) FROM tab0 AS cor0
----
-156

onlyif mysql # aggregate syntax: 
query II rowsort label-5324
SELECT ALL + + 33 + + + 48 AS col0, ( + COUNT( * ) ) AS col1 FROM tab2 cor0
----
81
3

skipif mysql # not compatible
query II rowsort label-5324
SELECT ALL + + 33 + + + 48 AS col0, ( + COUNT ( * ) ) AS col1 FROM tab2 cor0
----
81
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5325
SELECT + - COUNT( * ) * + - 80 FROM tab2 cor0
----
240

skipif mysql # not compatible
query I rowsort label-5325
SELECT + - COUNT ( * ) * + - 80 FROM tab2 cor0
----
240

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 38 - - - col0 <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5327
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL IN ( 87 * col2 - - col1 * + CAST( NULL AS SIGNED ) * + col2 )
----

skipif mysql # not compatible
query III rowsort label-5327
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL IN ( 87 * col2 - - col1 * + CAST ( NULL AS INTEGER ) * + col2 )
----

query I rowsort
SELECT ALL - col1 * col0 + - - col0 FROM tab0 AS cor0
----
-1200
-1740
0

query III rowsort
SELECT * FROM tab1 WHERE + + 56 IN ( - col2, col0 * - col1 * - col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5330
SELECT + col0 + 4 + - col2 DIV - - col0 AS col2 FROM tab0
----
100
16
91

skipif mysql # not compatible
query I rowsort label-5330
SELECT + col0 + 4 + - col2 / - - col0 AS col2 FROM tab0
----
100
16
91

query II rowsort
SELECT DISTINCT col1 AS col2, + 77 FROM tab0 AS cor0
----
1
77
21
77
81
77

query I rowsort
SELECT + 41 AS col2 FROM tab2 WHERE NOT NULL >= NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT col0 * - - col0 + + + col2 * + - col1 IS NOT NULL
----

query I rowsort
SELECT DISTINCT 50 AS col1 FROM tab1, tab0 AS cor0
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-5335
SELECT DISTINCT - SUM( ALL 30 ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-270

skipif mysql # not compatible
query I rowsort label-5335
SELECT DISTINCT - SUM ( ALL 30 ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-270

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( ( NOT + ( + col2 ) IS NULL ) ) OR ( NOT ( col0 ) IS NOT NULL )
----

query I rowsort
SELECT - - 54 FROM tab1 cor0
----
54
54
54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5338
SELECT DISTINCT + - col0 AS col1 FROM tab0 AS cor0 WHERE CAST( + - ( - col0 ) AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-5338
SELECT DISTINCT + - col0 AS col1 FROM tab0 AS cor0 WHERE CAST ( + - ( - col0 ) AS INTEGER ) IS NULL
----

query I rowsort
SELECT DISTINCT - 24 * - - 81 AS col0 FROM tab2
----
-1944

query II rowsort
SELECT 16 AS col1, - 11 FROM tab0
----
16
-11
16
-11
16
-11

query I rowsort
SELECT + col2 + - 22 AS col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
37
46
74

onlyif mysql # DIV for integer division: 
query I rowsort label-5342
SELECT ALL + 41 DIV 56 * ( + col2 ) col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5342
SELECT ALL + 41 / 56 * ( + col2 ) col0 FROM tab1
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5343
SELECT col2 DIV - + col2 AS col1 FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-5343
SELECT col2 / - + col2 AS col1 FROM tab1
----
-1
-1
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5344
SELECT CAST( + + COUNT( * ) AS SIGNED ) AS col2 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-5344
SELECT CAST ( + + COUNT ( * ) AS INTEGER ) AS col2 FROM tab0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + + col2 ) col2 FROM tab1
----
59
68
96

query III rowsort
SELECT * FROM tab2 WHERE NOT col0 * - col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5347
SELECT ALL + COUNT( * ) AS col0 FROM tab0 WHERE 65 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-5347
SELECT ALL + COUNT ( * ) AS col0 FROM tab0 WHERE 65 IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5348
SELECT DISTINCT - 18 * + COUNT( * ) + - - 28 FROM tab1 AS cor0
----
-26

skipif mysql # not compatible
query I rowsort label-5348
SELECT DISTINCT - 18 * + COUNT ( * ) + - - 28 FROM tab1 AS cor0
----
-26

query I rowsort
SELECT col1 AS col1 FROM tab0 AS cor0 WHERE ( ( + + col0 * 66 + - - 8 ) IS NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5350
SELECT DISTINCT - ( + - col2 ) DIV - - col0 - - 29 FROM tab0 AS cor0
----
29
30
32

skipif mysql # not compatible
query I rowsort label-5350
SELECT DISTINCT - ( + - col2 ) / - - col0 - - 29 FROM tab0 AS cor0
----
29
30
32

query I rowsort
SELECT 73 * + - col0 AS col1 FROM tab0
----
-1095
-6351
-7081

onlyif mysql # aggregate syntax: 
query I rowsort label-5352
SELECT + COUNT( - - col1 ) AS col0 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-5352
SELECT + COUNT ( - - col1 ) AS col0 FROM tab0
----
3

query I rowsort
SELECT DISTINCT + ( - - ( - 91 ) ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
-91

query I rowsort
SELECT ALL - 44 * - col0 + - col1 AS col0 FROM tab2 cor0
----
1973
2739
3233

onlyif mysql # aggregate syntax: 
query I rowsort label-5355
SELECT DISTINCT 51 + COUNT( * ) * + COUNT( * ) AS col2 FROM tab0 AS cor0
----
60

skipif mysql # not compatible
query I rowsort label-5355
SELECT DISTINCT 51 + COUNT ( * ) * + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
60

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 57 <= col1
----
15
81
47

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL IN ( 9, - col1 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-5358
SELECT DISTINCT - - 10 / + CAST( NULL AS DECIMAL ) AS col0, + col2 + + ( col2 ) FROM tab1 AS cor0
----
NULL
118
NULL
136
NULL
192

skipif mysql # not compatible
query II rowsort label-5358
SELECT DISTINCT - - 10 / + CAST ( NULL AS REAL ) AS col0, + col2 + + ( col2 ) FROM tab1 AS cor0
----
NULL
118
NULL
136
NULL
192

query I rowsort
SELECT col2 + - 97 FROM tab0 AS cor0
----
-50
-87
2

query I rowsort
SELECT DISTINCT + ( col2 ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN - 44 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5361
SELECT COUNT( * ) * - 17 * 46 col1 FROM tab1
----
-2346

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5361
SELECT COUNT ( * ) * - 17 * 46 col1 FROM tab1
----
-2346

query II rowsort
SELECT DISTINCT col1 - col0, col2 AS col2 FROM tab0
----
-66
10
-96
99
66
47

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL BETWEEN + col1 AND col1 + + 25
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5364
SELECT ALL - MIN( - CAST( + - col2 AS SIGNED ) ) FROM tab2 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-5364
SELECT ALL - MIN ( - CAST ( + - col2 AS INTEGER ) ) FROM tab2 AS cor0
----
-23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 83 * - col1 col0, - 70 * + col1 AS col1 FROM tab0 AS cor0
----
-1743
-1470
-6723
-5670
-83
-70

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col0 IN ( - col0, col1, col0 * col1 + - 89 + + col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-5367
SELECT DISTINCT + + COUNT( - col1 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5367
SELECT DISTINCT + + COUNT ( - col1 ) FROM tab2 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5368
SELECT DISTINCT - ( 33 ) * CAST( NULL AS SIGNED ) * - 66 AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5368
SELECT DISTINCT - ( 33 ) * CAST ( NULL AS INTEGER ) * - 66 AS col1 FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5369
SELECT CAST( NULL AS SIGNED ), + 27 AS col0 FROM tab1
----
NULL
27
NULL
27
NULL
27

skipif mysql # not compatible
query II rowsort label-5369
SELECT CAST ( NULL AS INTEGER ), + 27 AS col0 FROM tab1
----
NULL
27
NULL
27
NULL
27

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 52 col1 FROM tab0
----
52
52
52

onlyif mysql # aggregate syntax: 
query I rowsort label-5371
SELECT DISTINCT COUNT( * ) * - - ( 89 ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
801

skipif mysql # not compatible
query I rowsort label-5371
SELECT DISTINCT COUNT ( * ) * - - ( 89 ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
801

query I rowsort
SELECT + col0 AS col0 FROM tab0 AS cor0 WHERE NOT 58 / col0 < - 83
----
15
87
97

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL >= col0 * + col1
----

query I rowsort
SELECT ALL - col1 * ( - col2 ) + + 57 FROM tab0 cor0
----
156
267
3864

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5375
SELECT + + CAST( - + col1 AS SIGNED ) * + - 67 AS col2, - ( - - col0 ) / + - col0 - - col2 + - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
3417
NULL
4489
NULL
5159
NULL

skipif mysql # not compatible
query II rowsort label-5375
SELECT + + CAST ( - + col1 AS INTEGER ) * + - 67 AS col2, - ( - - col0 ) / + - col0 - - col2 + - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
3417
NULL
4489
NULL
5159
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5376
SELECT DISTINCT COUNT( * ) * - 39 FROM tab2 AS cor0
----
-117

skipif mysql # not compatible
query I rowsort label-5376
SELECT DISTINCT COUNT ( * ) * - 39 FROM tab2 AS cor0
----
-117

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5377
SELECT + MAX( + ( col0 ) ) DIV 54 AS col1 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-5377
SELECT + MAX ( + ( col0 ) ) / 54 AS col1 FROM tab1 AS cor0
----
1

query I rowsort
SELECT + col2 * col2 AS col0 FROM tab2 cor0
----
1600
3364
529

onlyif mysql # aggregate syntax: 
query I rowsort label-5379
SELECT MIN( - 12 ) AS col0 FROM tab0 AS cor0
----
-12

skipif mysql # not compatible
query I rowsort label-5379
SELECT MIN ( - 12 ) AS col0 FROM tab0 AS cor0
----
-12

query I rowsort
SELECT DISTINCT + col2 * - 61 * - + 15 FROM tab0
----
43005
90585
9150

query I rowsort
SELECT DISTINCT 99 + - col2 + + col0 FROM tab1
----
122
125
54

onlyif mysql # DIV for integer division: 
query I rowsort label-5382
SELECT 7 DIV - ( + 40 ) col0 FROM tab0
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5382
SELECT 7 / - ( + 40 ) col0 FROM tab0
----
0
0
0

query I rowsort
SELECT DISTINCT 65 + - + col0 AS col2 FROM tab0
----
-22
-32
50

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5384
SELECT DISTINCT - COUNT( * ) + + 8 + COUNT( * ) + 42 DIV 55 DIV + + 91 FROM tab0
----
8

skipif mysql # not compatible
query I rowsort label-5384
SELECT DISTINCT - COUNT ( * ) + + 8 + COUNT ( * ) + 42 / 55 / + + 91 FROM tab0
----
8

onlyif mysql # DIV for integer division: 
query I rowsort label-5385
SELECT ALL col0 DIV + ( + col0 ) col2 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5385
SELECT ALL col0 / + ( + col0 ) col2 FROM tab0 AS cor0
----
1
1
1

query I rowsort
SELECT - - ( col1 ) + + 20 - col0 AS col0 FROM tab1 AS cor0
----
-17
-24
-60

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5387
SELECT DISTINCT - col1 + + CAST( NULL AS DECIMAL ) + + col2 / - 35 - - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5387
SELECT DISTINCT - col1 + + CAST ( NULL AS REAL ) + + col2 / - 35 - - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5388
SELECT ALL + + MAX( 55 ) FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
55

skipif mysql # not compatible
query I rowsort label-5388
SELECT ALL + + MAX ( 55 ) FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
55

query I rowsort
SELECT ( + + 10 ) * 90 * col2 FROM tab1 AS cor0
----
53100
61200
86400

query I rowsort
SELECT ALL + 69 * + 10 - - col0 AS col0 FROM tab0 AS cor0
----
705
777
787

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 - - ( col1 ) col1 FROM tab1 AS cor0
----
110
115
64

query I rowsort
SELECT DISTINCT - - 39 AS col0 FROM tab2 AS cor0
----
39

query I rowsort
SELECT + + 18 FROM tab1 AS cor0 WHERE - col1 / + + col2 IS NULL
----

query I rowsort
SELECT ALL 84 - + 95 FROM tab2
----
-11
-11
-11

onlyif mysql # aggregate syntax: 
query II rowsort label-5395
SELECT ALL 82 AS col1, COUNT( * ) FROM tab1
----
82
3

skipif mysql # not compatible
query II rowsort label-5395
SELECT ALL 82 AS col1, COUNT ( * ) FROM tab1
----
82
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5396
SELECT DISTINCT COUNT( * ) - 53 FROM tab2
----
-50

skipif mysql # not compatible
query I rowsort label-5396
SELECT DISTINCT COUNT ( * ) - 53 FROM tab2
----
-50

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col1, 27 + - + col0 col1 FROM tab1
----
-14
-24
-47
-64
-5
-58

query I rowsort
SELECT DISTINCT 18 * - 41 FROM tab0
----
-738

query II rowsort
SELECT + col2 AS col2, - ( - - col2 ) AS col2 FROM tab1
----
59
-59
68
-68
96
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-5400
SELECT + MIN( DISTINCT + - 6 ) AS col1 FROM tab0 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-5400
SELECT + MIN ( DISTINCT + - 6 ) AS col1 FROM tab0 AS cor0
----
-6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 15 col0 FROM tab1 cor0
----
-15
-15
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-5402
SELECT DISTINCT MAX( DISTINCT + - col1 ) FROM tab1 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-5402
SELECT DISTINCT MAX ( DISTINCT + - col1 ) FROM tab1 AS cor0
----
-5

query II rowsort
SELECT ALL + 11 AS col1, col2 * - col0 AS col0 FROM tab1 AS cor0
----
11
-4896
11
-5015
11
-6188

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5404
SELECT ALL - MAX( + CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) ) FROM tab2 AS cor0 WHERE + col1 * - - col1 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5404
SELECT ALL - MAX ( + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) ) FROM tab2 AS cor0 WHERE + col1 * - - col1 IS NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5405
SELECT ALL ( + CAST( + + col2 AS SIGNED ) ) + col1 + + 29 AS col2 FROM tab2 AS cor0
----
103
146
154

skipif mysql # not compatible
query I rowsort label-5405
SELECT ALL ( + CAST ( + + col2 AS INTEGER ) ) + col1 + + 29 AS col2 FROM tab2 AS cor0
----
103
146
154

query I rowsort
SELECT - col2 / col2 AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT IN ( - - 24 )
----

query I rowsort
SELECT col2 * - 1 AS col1 FROM tab1 AS cor0
----
-59
-68
-96

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT - 24 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5409
SELECT ALL - - col2 * col1 / + CAST( NULL AS SIGNED ) FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5409
SELECT ALL - - col2 * col1 / + CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - 78 + - col0 IS NULL
----

query I rowsort
SELECT 28 + - + col2 FROM tab2
----
-12
-30
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5412
SELECT CAST( NULL AS SIGNED ) + + 79 col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5412
SELECT CAST ( NULL AS INTEGER ) + + 79 col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT 35 + 20 AS col0 FROM tab1
----
55
55
55

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col1 col1, + col0 * - col1 AS col2 FROM tab0
----
1
-97
21
-1827
81
-1215

onlyif mysql # aggregate syntax: 
query I rowsort label-5415
SELECT DISTINCT + COUNT( DISTINCT col2 ) AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-5415
SELECT DISTINCT + COUNT ( DISTINCT col2 ) AS col1 FROM tab2
----
3

query I rowsort
SELECT DISTINCT 9 + 51 AS col2 FROM tab2
----
60

onlyif mysql # aggregate syntax: 
query II rowsort label-5417
SELECT DISTINCT + 82 + + - MAX( DISTINCT - col1 ) * + 86 AS col1, - 71 FROM tab2 AS cor0
----
4468
-71

skipif mysql # not compatible
query II rowsort label-5417
SELECT DISTINCT + 82 + + - MAX ( DISTINCT - col1 ) * + 86 AS col1, - 71 FROM tab2 AS cor0
----
4468
-71

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - ( - 39 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-5419
SELECT - COUNT( * ) * - - 17 AS col2 FROM tab0 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-5419
SELECT - COUNT ( * ) * - - 17 AS col2 FROM tab0 AS cor0
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-5420
SELECT DISTINCT - ( SUM( + col1 ) ) FROM tab1
----
-66

skipif mysql # not compatible
query I rowsort label-5420
SELECT DISTINCT - ( SUM ( + col1 ) ) FROM tab1
----
-66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5421
SELECT CAST( NULL AS SIGNED ) - - + MAX( ALL + col2 ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5421
SELECT CAST ( NULL AS INTEGER ) - - + MAX ( ALL + col2 ) FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT - ( - 27 ) * - col1 AS col0 FROM tab0
----
-2187
-27
-567

query I rowsort
SELECT DISTINCT 48 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT + AVG ( DISTINCT - 75 ) AS col1 FROM tab1 AS cor0 WHERE ( - + col1 ) IS NULL
----
NULL

query I rowsort
SELECT ALL - + 50 - 33 FROM tab2 AS cor0
----
-83
-83
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-5426
SELECT ALL MIN( DISTINCT - col2 ) AS col0 FROM tab2 AS cor0
----
-58

skipif mysql # not compatible
query I rowsort label-5426
SELECT ALL MIN ( DISTINCT - col2 ) AS col0 FROM tab2 AS cor0
----
-58

query I rowsort
SELECT + col1 * + 71 FROM tab0 AS cor0
----
1491
5751
71

query I rowsort
SELECT DISTINCT + col0 * - + 3 AS col0 FROM tab0 AS cor0
----
-261
-291
-45

query I rowsort
SELECT ALL - col0 AS col1 FROM tab0 WHERE col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5430
SELECT MAX( - - 45 ) FROM tab2
----
45

skipif mysql # not compatible
query I rowsort label-5430
SELECT MAX ( - - 45 ) FROM tab2
----
45

query I rowsort
SELECT 57 * + 22 FROM tab1
----
1254
1254
1254

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5432
SELECT ALL 0 * - CAST( NULL AS SIGNED ) col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5432
SELECT ALL 0 * - CAST ( NULL AS INTEGER ) col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT - col1 * col2 * + ( - col0 ) * + + col1 * + col0 * col0 * + col0 + - - col2 FROM tab1 WHERE NOT NULL < - + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5434
SELECT ALL + COUNT( * ) * 31 FROM tab1
----
93

skipif mysql # not compatible
query I rowsort label-5434
SELECT ALL + COUNT ( * ) * 31 FROM tab1
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-5435
SELECT ALL 67 * + COUNT( * ) FROM tab1
----
201

skipif mysql # not compatible
query I rowsort label-5435
SELECT ALL 67 * + COUNT ( * ) FROM tab1
----
201

query I rowsort
SELECT ALL - col2 AS col2 FROM tab1 AS cor0 WHERE NOT 25 IS NULL
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-5437
SELECT - 42 * - - COUNT( * ) AS col1 FROM tab2 cor0
----
-126

skipif mysql # not compatible
query I rowsort label-5437
SELECT - 42 * - - COUNT ( * ) AS col1 FROM tab2 cor0
----
-126

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5438
SELECT - - COUNT( * ) DIV 3 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-5438
SELECT - - COUNT ( * ) / 3 FROM tab1 AS cor0
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 col1 FROM tab1 AS cor0 WHERE + col0 >= + col0
----
51
85
91

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5440
SELECT DISTINCT col0 AS 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-5440
SELECT DISTINCT col0 AS col0, CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
46
NULL
64
NULL
75
NULL

query I rowsort
SELECT ALL - - col1 FROM tab0 WHERE NULL > col0
----

query I rowsort
SELECT - 52 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 9500afe5646d620d5e8943351a29d082

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 99 col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 64d06513850a26495bc6c2fddeb254b7

query I rowsort
SELECT ALL + 94 + - 7 AS col0 FROM tab2 cor0 WHERE NOT col1 IS NULL
----
87
87
87

query I rowsort
SELECT + + ( - col0 ) * col1 + + - 11 FROM tab1 AS cor0
----
-4288
-436
-725

onlyif mysql # aggregate syntax: 
query I rowsort label-5446
SELECT - - COUNT( ALL ( + + ( 9 ) ) ) FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-5446
SELECT - - COUNT ( ALL ( + + ( 9 ) ) ) FROM tab0 cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + 57 * - 43 col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-115197
-242649
-24510

onlyif mysql # DIV for integer division: 
query I rowsort label-5448
SELECT + 92 DIV + - col2 FROM tab1 cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-5448
SELECT + 92 / + - col2 FROM tab1 cor0
----
-1
-1
0

query I rowsort
SELECT - - col0 * - col2 * - col0 FROM tab1 AS cor0
----
249696
426275
563108

onlyif mysql # aggregate syntax: 
query I rowsort label-5450
SELECT DISTINCT + - COUNT( + col2 ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5450
SELECT DISTINCT + - COUNT ( + col2 ) FROM tab0 AS cor0
----
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5451
SELECT - COUNT( * ) DIV COUNT( * ) + + COUNT( * ) - 92 AS col2 FROM tab2 AS cor0
----
-90

skipif mysql # not compatible
query I rowsort label-5451
SELECT - COUNT ( * ) / COUNT ( * ) + + COUNT ( * ) - 92 AS col2 FROM tab2 AS cor0
----
-90

query II rowsort
SELECT ALL col0 AS col0, - col2 FROM tab0 AS cor0
----
15
-47
87
-10
97
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-5453
SELECT - 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-5453
SELECT - COUNT ( - col1 ) col2 FROM tab1 AS cor0
----
-3

query I rowsort
SELECT - 91 AS col2 FROM tab2 WHERE ( NULL ) >= col0
----

query I rowsort
SELECT ALL ( - col2 ) * - 89 * + 19 FROM tab2 WHERE NOT 13 > - + col1
----

query III rowsort
SELECT * FROM tab1 WHERE col0 / + col0 + - col0 NOT BETWEEN col2 AND + ( - col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5457
SELECT ALL * FROM tab0 WHERE col0 * 57 + - col2 + + CAST( + col2 AS SIGNED ) BETWEEN - CAST( + col0 AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-5457
SELECT ALL * FROM tab0 WHERE col0 * 57 + - col2 + + CAST ( + col2 AS INTEGER ) BETWEEN - CAST ( + col0 AS INTEGER ) AND NULL
----

query I rowsort
SELECT - col1 AS col2 FROM tab1 WHERE - col0 IS NOT NULL
----
-14
-47
-5

query I rowsort
SELECT ALL + 25 + - - col0 FROM tab0 AS cor0
----
112
122
40

onlyif mysql # aggregate syntax: 
query I rowsort label-5460
SELECT ALL + 41 + - COUNT( * ) AS col2 FROM tab2 AS cor0
----
38

skipif mysql # not compatible
query I rowsort label-5460
SELECT ALL + 41 + - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
38

onlyif mysql # DIV for integer division: 
query I rowsort label-5461
SELECT DISTINCT + 9 DIV - - col1 + - - col2 DIV - col1 + - - col2 * 91 + - + 9 * - col0 FROM tab2 AS cor0
----
2507
4216
5953

skipif mysql # not compatible
query I rowsort label-5461
SELECT DISTINCT + 9 / - - col1 + - - col2 / - col1 + - - col2 * 91 + - + 9 * - col0 FROM tab2 AS cor0
----
2507
4216
5953

query III rowsort
SELECT * FROM tab2 WHERE NULL NOT IN ( col1, 62, - 35 * - ( 44 ) * - - col2 * + + col2, col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5463
SELECT + col0 * + CAST( NULL AS SIGNED ) + + - 81 + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5463
SELECT + col0 * + CAST ( NULL AS INTEGER ) + + - 81 + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 92 * - col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5465
SELECT - + MAX( - - 64 ) FROM tab0 AS cor0
----
-64

skipif mysql # not compatible
query I rowsort label-5465
SELECT - + MAX ( - - 64 ) FROM tab0 AS cor0
----
-64

query I rowsort
SELECT - 74 * + col2 FROM tab1 AS cor0
----
-4366
-5032
-7104

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col1 + - col0 + - + ( - ( - - col0 ) ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-5468
SELECT SUM( - col1 ) * - 55 AS col2 FROM tab1 AS cor0
----
3630

skipif mysql # not compatible
query I rowsort label-5468
SELECT SUM ( - col1 ) * - 55 AS col2 FROM tab1 AS cor0
----
3630

query II rowsort
SELECT + col2 AS col2, col2 FROM tab2 AS cor0
----
23
23
40
40
58
58

onlyif mysql # aggregate syntax: 
query I rowsort label-5470
SELECT - MIN( ALL - - 76 ) AS col2 FROM tab1 AS cor0
----
-76

skipif mysql # not compatible
query I rowsort label-5470
SELECT - MIN ( ALL - - 76 ) AS col2 FROM tab1 AS cor0
----
-76

query I rowsort
SELECT ALL - col1 * + - 68 FROM tab0 AS cor0
----
1428
5508
68

query II rowsort
SELECT ALL + + col1, 64 FROM tab1 AS cor0
----
14
64
47
64
5
64

query I rowsort
SELECT ALL + - ( - col1 ) * - - 66 * col1 + 86 FROM tab0 AS cor0
----
152
29192
433112

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 69 * + 21 col2 FROM tab2 AS cor0
----
1449

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-5475
SELECT ALL * FROM tab1 WHERE CAST( NULL AS DECIMAL ) + 49 + - - CAST( NULL AS SIGNED ) * col1 + - + col2 + - + col1 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-5475
SELECT ALL * FROM tab1 WHERE CAST ( NULL AS REAL ) + 49 + - - CAST ( NULL AS INTEGER ) * col1 + - + col2 + - + col1 IS NOT NULL
----

query I rowsort
SELECT ALL - col2 * + + 91 AS col1 FROM tab0
----
-4277
-9009
-910

onlyif mysql # aggregate syntax: 
query I rowsort label-5477
SELECT DISTINCT COUNT( * ) * - + MIN( ALL col0 ) AS col1 FROM tab0
----
-45

skipif mysql # not compatible
query I rowsort label-5477
SELECT DISTINCT COUNT ( * ) * - + MIN ( ALL col0 ) AS col1 FROM tab0
----
-45

onlyif mysql # DIV for integer division: 
query II rowsort label-5478
SELECT ALL col1 DIV 86 AS col0, 45 AS col0 FROM tab2
----
0
45
0
45
0
45

skipif mysql # not compatible
query II rowsort label-5478
SELECT ALL col1 / 86 AS col0, 45 AS col0 FROM tab2
----
0
45
0
45
0
45

query II rowsort
SELECT col0 * - + 21 AS col2, - col1 FROM tab1
----
-1071
-14
-1785
-5
-1911
-47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5480
SELECT DISTINCT CAST( - - COUNT( * ) AS SIGNED ) AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-5480
SELECT DISTINCT CAST ( - - COUNT ( * ) AS INTEGER ) AS col2 FROM tab1
----
3

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT 18 NOT IN ( col1, 62 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5482
SELECT ALL + SUM( DISTINCT + + 55 ) AS col1 FROM tab1
----
55

skipif mysql # not compatible
query I rowsort label-5482
SELECT ALL + SUM ( DISTINCT + + 55 ) AS col1 FROM tab1
----
55

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 40 NOT BETWEEN NULL AND + - col1 * ( + - 54 )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT 9 * - 29 NOT IN ( - col0, col2 + - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5485
SELECT ALL - COUNT( * ) + - + 65 AS col1 FROM tab2
----
-68

skipif mysql # not compatible
query I rowsort label-5485
SELECT ALL - COUNT ( * ) + - + 65 AS col1 FROM tab2
----
-68

query III rowsort
SELECT * FROM tab2 WHERE NOT - col2 * - 23 / - + col2 + + 52 IS NOT NULL
----

query I rowsort
SELECT ALL - + 75 AS col1 FROM tab0 AS cor0
----
-75
-75
-75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5488
SELECT ALL - + 35 + + - COUNT( + CAST( - 9 AS SIGNED ) ) FROM tab0 AS cor0
----
-38

skipif mysql # not compatible
query I rowsort label-5488
SELECT ALL - + 35 + + - COUNT ( + CAST ( - 9 AS INTEGER ) ) FROM tab0 AS cor0
----
-38

query I rowsort
SELECT ALL - - col0 FROM tab2 AS cor0 WHERE NOT - 78 BETWEEN + col0 AND col1
----
46
64
75

query I rowsort
SELECT DISTINCT - 93 AS col1 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5491
SELECT ALL COUNT( * ) DIV - 62 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-5491
SELECT ALL COUNT ( * ) / - 62 FROM tab0
----
0

query I rowsort
SELECT col2 * 91 + + ( + - 93 ) FROM tab2
----
2000
3547
5185

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + - col1 ) + col2 col1 FROM tab0
----
-11
-34
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5494
SELECT + COUNT( * ) + + + CAST( + ( CAST( + 32 AS SIGNED ) ) AS SIGNED ) FROM tab0
----
35

skipif mysql # not compatible
query I rowsort label-5494
SELECT + COUNT ( * ) + + + CAST ( + ( CAST ( + 32 AS INTEGER ) ) AS INTEGER ) FROM tab0
----
35

query I rowsort
SELECT col2 * - + col1 + + 8 AS col2 FROM tab2
----
-1165
-3072
-3878

query I rowsort
SELECT ALL + 56 AS col1 FROM tab0 WHERE NULL NOT BETWEEN NULL AND NULL
----

query II rowsort
SELECT + col2 AS col2, 73 FROM tab2
----
23
73
40
73
58
73

query II rowsort
SELECT ALL - col0 * - 24 * - - col2 + 10 AS col2, col2 * 53 + - col0 - + ( + col0 ) FROM tab0
----
16930
2461
20890
356
230482
5053

query I rowsort
SELECT DISTINCT + col0 * - col2 * + col2 + - col1 * + 95 * + 14 + col2 + + - col1 AS col0 FROM tab2 AS cor0
----
-204847
-341419
-92192

onlyif mysql # aggregate syntax: 
query I rowsort label-5500
SELECT DISTINCT ( COUNT( * ) ) - 18 AS col0 FROM tab1 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-5500
SELECT DISTINCT ( COUNT ( * ) ) - 18 AS col0 FROM tab1 AS cor0
----
-15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5501
SELECT ALL - col0 - - - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5501
SELECT ALL - col0 - - - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT + 56 AS col2, 14 * - col0 + col2 FROM tab2 cor0
----
56
-621
56
-856
56
-992

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 12 - - col0 col2 FROM tab2 AS cor0
----
58
76
87

onlyif mysql # aggregate syntax: 
query I rowsort label-5504
SELECT ALL + + COUNT( * ) + 98 AS col0 FROM tab0 AS cor0
----
101

skipif mysql # not compatible
query I rowsort label-5504
SELECT ALL + + COUNT ( * ) + 98 AS col0 FROM tab0 AS cor0
----
101

query I rowsort
SELECT DISTINCT - col1 - - + 89 FROM tab2 AS cor0
----
12
22
38

query I rowsort
SELECT ALL col2 - - 24 FROM tab1
----
120
83
92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 42 col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-42

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL <> col0 + + 3
----

query I rowsort
SELECT + ( - + ( col0 ) ) FROM tab0 AS cor0
----
-15
-87
-97

onlyif mysql # DIV for integer division: 
query II rowsort label-5510
SELECT ALL - - 0 * + 3, + 14 DIV - 51 AS col0 FROM tab1 AS cor0
----
0
0
0
0
0
0

skipif mysql # not compatible
query II rowsort label-5510
SELECT ALL - - 0 * + 3, + 14 / - 51 AS col0 FROM tab1 AS cor0
----
0
0
0
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5511
SELECT ALL - 54 * + 39 * + COUNT( * ) AS col0 FROM tab1 AS cor0
----
-6318

skipif mysql # not compatible
query I rowsort label-5511
SELECT ALL - 54 * + 39 * + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-6318

onlyif mysql # DIV for integer division: 
query I rowsort label-5512
SELECT ALL ( - - col2 ) DIV - col2 FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-5512
SELECT ALL ( - - col2 ) / - col2 FROM tab0 AS cor0
----
-1
-1
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5513
SELECT CAST( MAX( ALL + 51 ) AS SIGNED ) AS col0 FROM tab0
----
51

skipif mysql # not compatible
query I rowsort label-5513
SELECT CAST ( MAX ( ALL + 51 ) AS INTEGER ) AS col0 FROM tab0
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-5514
SELECT - MIN( + col1 ) AS col2 FROM tab2
----
-51

skipif mysql # not compatible
query I rowsort label-5514
SELECT - MIN ( + col1 ) AS col2 FROM tab2
----
-51

query I rowsort
SELECT - col0 * 27 AS col2 FROM tab1
----
-1377
-2295
-2457

query I rowsort
SELECT DISTINCT + + col1 * + + col0 FROM tab0 AS cor0
----
1215
1827
97

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5517
SELECT ALL - CAST( NULL AS SIGNED ) AS col2, 21 col0 FROM tab0 AS cor0
----
NULL
21
NULL
21
NULL
21

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5517
SELECT ALL - CAST ( NULL AS INTEGER ) AS col2, 21 col0 FROM tab0 AS cor0
----
NULL
21
NULL
21
NULL
21

query I rowsort
SELECT DISTINCT 8 * + ( col2 ) + - - col1 FROM tab0 AS cor0
----
101
457
793

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col1 * - 39 col0 FROM tab2 AS cor0
----
-1989
-2613
-3003

query II rowsort
SELECT DISTINCT + col1 + + col0 AS col2, - col0 * - - col0 * + col0 FROM tab0 AS cor0
----
108
-658503
96
-3375
98
-912673

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5521
SELECT col2 * + col2 + - + col1 * - CAST( NULL AS SIGNED ) col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5521
SELECT col2 * + col2 + - + col1 * - CAST ( NULL AS INTEGER ) col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5522
SELECT CAST( NULL AS DECIMAL ) + + + ( col2 ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5522
SELECT CAST ( NULL AS REAL ) + + + ( col2 ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5523
SELECT ALL - col2 DIV - 8 + CAST( col0 AS SIGNED ) + - + 48 + + + col2 AS col1 FROM tab2 cor0
----
23
61
92

skipif mysql # not compatible
query I rowsort label-5523
SELECT ALL - col2 / - 8 + CAST ( col0 AS INTEGER ) + - + 48 + + + col2 AS col1 FROM tab2 cor0
----
23
61
92

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5524
SELECT DISTINCT + - 92 DIV COUNT( * ) DIV - 7 + - 96 AS col0 FROM tab1 AS cor0
----
-92

skipif mysql # not compatible
query I rowsort label-5524
SELECT DISTINCT + - 92 / COUNT ( * ) / - 7 + - 96 AS col0 FROM tab1 AS cor0
----
-92

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + + 53 * + col0 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 col0, col1 AS col0 FROM tab2
----
46
51
64
77
75
67

onlyif mysql # aggregate syntax: 
query I rowsort label-5527
SELECT ALL + COUNT( * ) + - + 88 FROM tab1
----
-85

skipif mysql # not compatible
query I rowsort label-5527
SELECT ALL + COUNT ( * ) + - + 88 FROM tab1
----
-85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5528
SELECT + 60 * - 17 + + 19 / - - CAST( NULL AS SIGNED ) + + 46 * + 43 * + 16 + - + col0 AS col2 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5528
SELECT + 60 * - 17 + + 19 / - - CAST ( NULL AS INTEGER ) + + 46 * + 43 * + 16 + - + col0 AS col2 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + ( + 66 ) + + 8 AS col1 FROM tab0 AS cor0
----
74
74
74

query I rowsort
SELECT - 99 + + 62 FROM tab1 AS cor0
----
-37
-37
-37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5531
SELECT col0 + + CAST( NULL AS SIGNED ) - - col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5531
SELECT col0 + + CAST ( NULL AS INTEGER ) - - col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5532
SELECT DISTINCT - MAX( + col1 ) - + 25 AS col2 FROM tab1 AS cor0
----
-72

skipif mysql # not compatible
query I rowsort label-5532
SELECT DISTINCT - MAX ( + col1 ) - + 25 AS col2 FROM tab1 AS cor0
----
-72

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5533
SELECT ALL * FROM tab0 cor0 WHERE - 81 * 79 + - + col1 * - CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-5533
SELECT ALL * FROM tab0 cor0 WHERE - 81 * 79 + - + col1 * - CAST ( NULL AS INTEGER ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5534
SELECT - SUM( 96 ) FROM tab2
----
-288

skipif mysql # not compatible
query I rowsort label-5534
SELECT - SUM ( 96 ) FROM tab2
----
-288

onlyif mysql # DIV for integer division: 
query I rowsort label-5535
SELECT - 96 DIV - + 33 FROM tab2
----
2
2
2

skipif mysql # not compatible
query I rowsort label-5535
SELECT - 96 / - + 33 FROM tab2
----
2
2
2

onlyif mysql # aggregate syntax: 
query II rowsort label-5536
SELECT + COUNT( * ), - 74 AS col1 FROM tab0
----
3
-74

skipif mysql # not compatible
query II rowsort label-5536
SELECT + COUNT ( * ), - 74 AS col1 FROM tab0
----
3
-74

query I rowsort
SELECT DISTINCT 75 AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5538
SELECT CAST( col2 AS SIGNED ) col0 FROM tab2 cor0
----
23
40
58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5538
SELECT CAST ( col2 AS INTEGER ) col0 FROM tab2 cor0
----
23
40
58

query I rowsort
SELECT + col0 FROM tab2 AS cor0 WHERE NOT + 8 >= NULL
----

query I rowsort
SELECT - col2 * - + 16 AS col0 FROM tab0 AS cor0
----
1584
160
752

onlyif mysql # aggregate syntax: 
query I rowsort label-5541
SELECT + COUNT( * ) + - + 66 FROM tab0 AS cor0 WHERE NOT + 14 NOT IN ( ( col0 ) + col1 )
----
-66

skipif mysql # not compatible
query I rowsort label-5541
SELECT + COUNT ( * ) + - + 66 FROM tab0 AS cor0 WHERE NOT + 14 NOT IN ( ( col0 ) + col1 )
----
-66

query I rowsort
SELECT + 25 * - - 54 AS col2 FROM tab0 AS cor0
----
1350
1350
1350

query I rowsort
SELECT col2 AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
23
40
58

query I rowsort
SELECT ALL - col1 AS col0 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-14
-47
-5

onlyif mysql # DIV for integer division: 
query II rowsort label-5545
SELECT ALL + col0 col1, + col0 DIV col0 FROM tab0 cor0
----
15
1
87
1
97
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5545
SELECT ALL + col0 col1, + col0 / col0 FROM tab0 cor0
----
15
1
87
1
97
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5546
SELECT DISTINCT + CAST( - - col2 AS SIGNED ) FROM tab2
----
23
40
58

skipif mysql # not compatible
query I rowsort label-5546
SELECT DISTINCT + CAST ( - - col2 AS INTEGER ) FROM tab2
----
23
40
58

query I rowsort
SELECT 11 * + - ( col0 ) FROM tab2
----
-506
-704
-825

query I rowsort
SELECT DISTINCT 44 FROM tab1 WHERE NULL IS NULL
----
44

query I rowsort
SELECT col0 * + col2 + - col2 + + ( col1 ) AS col2 FROM tab1
----
4814
4961
6167

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5550
SELECT 18 + + ( + col2 ) / CAST( NULL AS DECIMAL ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5550
SELECT 18 + + ( + col2 ) / CAST ( NULL AS REAL ) FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 74 BETWEEN + col1 + col1 AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col1 * + col0 * col1 * + 23 * - - col1 <> NULL
----

query II rowsort
SELECT ALL + ( - col2 ) AS col2, + col1 AS col1 FROM tab1 AS cor0
----
-59
5
-68
47
-96
14

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - 53 * - col1 * col2 + + col1 * + + 6 < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5555
SELECT DISTINCT + CAST( + 92 AS SIGNED ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
92

skipif mysql # not compatible
query I rowsort label-5555
SELECT DISTINCT + CAST ( + 92 AS INTEGER ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
92

query II rowsort
SELECT + 13 AS col0, - col2 FROM tab2
----
13
-23
13
-40
13
-58

query I rowsort
SELECT 32 * - - 74 AS col0 FROM tab1, tab0 cor0
----
9 values hashing to e793295f8b0d537116d370eff2835ba5

onlyif mysql # DIV for integer division: 
query II rowsort label-5558
SELECT ALL - - col2 + col2 DIV 4 * 79, col2 + ( + col1 ) AS col1 FROM tab1 cor0
----
1165
64
1411
115
1992
110

skipif mysql # not compatible
query II rowsort label-5558
SELECT ALL - - col2 + col2 / 4 * 79, col2 + ( + col1 ) AS col1 FROM tab1 cor0
----
1165
64
1411
115
1992
110

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5559
SELECT - col2 + + CAST( NULL AS SIGNED ) / + ( 24 ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5559
SELECT - col2 + + CAST ( NULL AS INTEGER ) / + ( 24 ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT - + col0, col2 FROM tab2 AS cor0 WHERE col1 IS NULL
----

query I rowsort
SELECT DISTINCT + col1 AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) IN ( col2, + col0 )
----

query I rowsort
SELECT col2 AS col1 FROM tab0 cor0 WHERE NULL IS NULL
----
10
47
99

query I rowsort
SELECT DISTINCT + col1 - - + 98 FROM tab1 cor0
----
103
112
145

onlyif mysql # aggregate syntax: 
query I rowsort label-5564
SELECT ALL - SUM( + 13 ) AS col1 FROM tab0 AS cor0
----
-39

skipif mysql # not compatible
query I rowsort label-5564
SELECT ALL - SUM ( + 13 ) AS col1 FROM tab0 AS cor0
----
-39

query I rowsort
SELECT col0 + + - col1 AS col0 FROM tab2 AS cor0
----
-13
-5
8

query I rowsort
SELECT col0 + - 45 AS col1 FROM tab2
----
1
19
30

onlyif mysql # aggregate syntax: 
query I rowsort label-5567
SELECT SUM( ALL + + 90 ) col1 FROM tab2
----
270

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5567
SELECT SUM ( ALL + + 90 ) col1 FROM tab2
----
270

query I rowsort
SELECT - ( - 16 ) AS col2 FROM tab2 AS cor0
----
16
16
16

onlyif mysql # DIV for integer division: 
query I rowsort label-5569
SELECT - - col0 DIV + 15 AS col2 FROM tab2 AS cor0
----
3
4
5

skipif mysql # not compatible
query I rowsort label-5569
SELECT - - col0 / + 15 AS col2 FROM tab2 AS cor0
----
3
4
5

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col2 - - col1 * + - 41 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + ( - - 58 ) FROM tab2 AS cor0
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-5572
SELECT DISTINCT COUNT( - ( + ( col0 ) ) ) col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5572
SELECT DISTINCT COUNT ( - ( + ( col0 ) ) ) col2 FROM tab1 AS cor0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-5573
SELECT + 99 DIV + col0 AS col0 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5573
SELECT + 99 / + col0 AS col0 FROM tab1 AS cor0
----
1
1
1

query I rowsort
SELECT - 2 * - ( - col2 ) FROM tab0 AS cor0
----
-198
-20
-94

onlyif mysql # aggregate syntax: 
query II rowsort label-5575
SELECT + COUNT( * ) AS col0, COUNT( - col2 ) AS col2 FROM tab2
----
3
3

skipif mysql # not compatible
query II rowsort label-5575
SELECT + COUNT ( * ) AS col0, COUNT ( - col2 ) AS col2 FROM tab2
----
3
3

query II rowsort
SELECT ALL + 98 AS col0, col2 FROM tab1
----
98
59
98
68
98
96

onlyif mysql # aggregate syntax: 
query III rowsort label-5577
SELECT ALL MAX( DISTINCT 63 ) AS col1, + 0 * + 47 AS col1, - + 17 * - MIN( ALL col2 ) col0 FROM tab1
----
63
0
1003

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort label-5577
SELECT ALL MAX ( DISTINCT 63 ) AS col1, + 0 * + 47 AS col1, - + 17 * - MIN ( ALL col2 ) col0 FROM tab1
----
63
0
1003

onlyif mysql # aggregate syntax: 
query I rowsort label-5578
SELECT ALL - MIN( + col2 ) AS col1 FROM tab2 WHERE NULL IN ( + - 98, col2 - + + ( col0 ), - col0, - col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5578
SELECT ALL - MIN ( + col2 ) AS col1 FROM tab2 WHERE NULL IN ( + - 98, col2 - + + ( col0 ), - col0, - col2 )
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( NOT - 94 IS NOT NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 col0, + 17 AS col2 FROM tab1
----
51
17
85
17
91
17

onlyif mysql # aggregate syntax: 
query I rowsort label-5581
SELECT COUNT( * ) FROM tab0 cor0 WHERE - col1 + + + col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-5581
SELECT COUNT ( * ) FROM tab0 cor0 WHERE - col1 + + + col1 IS NULL
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5582
SELECT + + MAX( DISTINCT - CAST( + col0 AS SIGNED ) ) FROM tab0 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-5582
SELECT + + MAX ( DISTINCT - CAST ( + col0 AS INTEGER ) ) FROM tab0 AS cor0
----
-15

query I rowsort
SELECT + - 55 * 17 FROM tab2 AS cor0
----
-935
-935
-935

onlyif mysql # aggregate syntax: 
query II rowsort label-5584
SELECT ALL + + COUNT( * ) AS col2, - MAX( ALL - col2 ) FROM tab1 AS cor0
----
3
59

skipif mysql # not compatible
query II rowsort label-5584
SELECT ALL + + COUNT ( * ) AS col2, - MAX ( ALL - col2 ) FROM tab1 AS cor0
----
3
59

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5585
SELECT col2 * - col2 * - col0 - + - col1 * col2 + - col1, col1 FROM tab1 cor0 WHERE CAST( + col0 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query II rowsort label-5585
SELECT col2 * - col2 * - col0 - + - col1 * col2 + - col1, col1 FROM tab1 cor0 WHERE CAST ( + col0 AS INTEGER ) IS NULL
----

query I rowsort
SELECT ALL - 74 FROM tab1 AS cor0 WHERE col1 IS NOT NULL
----
-74
-74
-74

query I rowsort
SELECT ALL + col1 * + + col2 * + 89 FROM tab1
----
119616
26255
284444

onlyif mysql # aggregate syntax: 
query II rowsort label-5588
SELECT DISTINCT - + MIN( + col0 ) AS col0, MIN( + - col2 ) * + 94 FROM tab2 cor0
----
-46
-5452

skipif mysql # not compatible
query II rowsort label-5588
SELECT DISTINCT - + MIN ( + col0 ) AS col0, MIN ( + - col2 ) * + 94 FROM tab2 cor0
----
-46
-5452

query I rowsort
SELECT ALL - col1 - + col2 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN NULL AND 4
----

query I rowsort
SELECT - 33 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-33
-33
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-5591
SELECT ALL + - COUNT( ALL + col1 ) - + COUNT( * ) col0 FROM tab2 AS cor0
----
-6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5591
SELECT ALL + - COUNT ( ALL + col1 ) - + COUNT ( * ) col0 FROM tab2 AS cor0
----
-6

query I rowsort
SELECT + ( - 92 ) FROM tab2 AS cor0
----
-92
-92
-92

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5593
SELECT ALL * FROM tab2 WHERE NOT NULL >= + CAST( NULL AS SIGNED ) * + col1 + + ( - ( - col1 ) ) + col2 * + + col0
----

skipif mysql # not compatible
query III rowsort label-5593
SELECT ALL * FROM tab2 WHERE NOT NULL >= + CAST ( NULL AS INTEGER ) * + col1 + + ( - ( - col1 ) ) + col2 * + + col0
----

query I rowsort
SELECT DISTINCT - + col0 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5595
SELECT ALL 72 * - MIN( DISTINCT col2 ) FROM tab1
----
-4248

skipif mysql # not compatible
query I rowsort label-5595
SELECT ALL 72 * - MIN ( DISTINCT col2 ) FROM tab1
----
-4248

query I rowsort
SELECT + - 96 * + col2 * 97 * col0 AS col2 FROM tab0 AS cor0
----
-6564960
-8101440
-89423136

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 37 * + 73 col2 FROM tab1
----
-2701
-2701
-2701

query III rowsort
SELECT ALL * FROM tab0 WHERE + col2 + 15 <> + col0 * + 22 + + + 64
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col1 * + + 98 FROM tab2 AS cor0
----
4998
6566
7546

onlyif mysql # aggregate syntax: 
query I rowsort label-5600
SELECT DISTINCT COUNT( * ) * - COUNT( * ) * - - 20 AS col0 FROM tab0 cor0 WHERE NOT + 26 IS NULL
----
-180

skipif mysql # not compatible
query I rowsort label-5600
SELECT DISTINCT COUNT ( * ) * - COUNT ( * ) * - - 20 AS col0 FROM tab0 cor0 WHERE NOT + 26 IS NULL
----
-180

query II rowsort
SELECT ALL - ( + 63 ) AS col0, - col1 FROM tab2 AS cor0
----
-63
-51
-63
-67
-63
-77

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( + col2 * - + 0 * - + 69 ) = + 23
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col0 + + col1 + + col2 < col1
----
15
81
47
97
1
99

query I rowsort
SELECT + + col0 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5605
SELECT ALL COUNT( * ) * MAX( DISTINCT + 3 ) FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-5605
SELECT ALL COUNT ( * ) * MAX ( DISTINCT + 3 ) FROM tab0
----
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( + 1 ) + - 72 + + col1 - - col2 col2 FROM tab1
----
-7
39
44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5607
SELECT 70 + - col1 + col0 * CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5607
SELECT 70 + - col1 + col0 * CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5608
SELECT - col0 + col0 * - CAST( NULL AS SIGNED ) * - + 63 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5608
SELECT - col0 + col0 * - CAST ( NULL AS INTEGER ) * - + 63 AS col1 FROM tab2
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT + col0 + + 64 + + col0 AS col1, col1 FROM tab0
----
238
21
258
1
94
81

query I rowsort
SELECT + 55 + - - 52 FROM tab0
----
107
107
107

query I rowsort
SELECT DISTINCT col0 + + - 72 FROM tab2
----
-26
-8
3

query I rowsort
SELECT ALL 79 * - - col1 + - col2 + - col0 + - 93 FROM tab2
----
3867
5067
5886

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col2 * - 37 IS NULL
----

query I rowsort
SELECT - col0 * ( + - 39 ) * - col1 + + col0 * + - col2 FROM tab0 cor0
----
-13386
-48090
-72123

query I rowsort
SELECT DISTINCT - 33 + - + 8 FROM tab0 AS cor0
----
-41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5616
SELECT + ( + - col0 ) * - + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5616
SELECT + ( + - col0 ) * - + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5617
SELECT COUNT( * ) * + + COUNT( ALL col2 ) DIV - COUNT( - 56 ) col1 FROM tab0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5617
SELECT COUNT ( * ) * + + COUNT ( ALL col2 ) / - COUNT ( - 56 ) col1 FROM tab0
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-5618
SELECT + ( + 83 ) DIV - 68 AS col2 FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-5618
SELECT + ( + 83 ) / - 68 AS col2 FROM tab1
----
-1
-1
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 - + - col2 col0 FROM tab1
----
144
147
159

query II rowsort
SELECT DISTINCT - 95, col1 AS col0 FROM tab1 WHERE NOT + - 11 IS NOT NULL
----

query I rowsort
SELECT + 67 + + - col1 * + col0 FROM tab2 AS cor0
----
-2279
-4861
-4958

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5622
SELECT ALL + col0 + + CAST( NULL AS SIGNED ) + + 29 / col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5622
SELECT ALL + col0 + + CAST ( NULL AS INTEGER ) + + 29 / col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5623
SELECT ALL CAST( NULL AS DECIMAL ) - + 9 col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5623
SELECT ALL CAST ( NULL AS REAL ) - + 9 col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + + 81 + - 19 AS col2 FROM tab2 cor0
----
62
62
62

onlyif mysql # DIV for integer division: 
query I rowsort label-5625
SELECT ALL 62 - - col2 DIV + col1 FROM tab0 cor0
----
161
62
62

skipif mysql # not compatible
query I rowsort label-5625
SELECT ALL 62 - - col2 / + col1 FROM tab0 cor0
----
161
62
62

onlyif mysql # aggregate syntax: 
query I rowsort label-5626
SELECT DISTINCT - COUNT( ALL col1 ) * + COUNT( * ) FROM tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-5626
SELECT DISTINCT - COUNT ( ALL col1 ) * + COUNT ( * ) FROM tab2 AS cor0
----
-9

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 96 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - col0 - + - 40 - + col2 * col2 + 12 * + 21 + - ( + col2 ) FROM tab2 AS cor0
----
-1412
-306
-3205

query I rowsort
SELECT DISTINCT + 32 * - + ( 33 ) FROM tab0
----
-1056

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5630
SELECT DISTINCT - CAST( - col2 AS SIGNED ) FROM tab2 WHERE NOT ( NULL IS NOT NULL )
----
23
40
58

skipif mysql # not compatible
query I rowsort label-5630
SELECT DISTINCT - CAST ( - col2 AS INTEGER ) FROM tab2 WHERE NOT ( NULL IS NOT NULL )
----
23
40
58

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5631
SELECT ALL - + CAST( NULL AS DECIMAL ) + 10 - - ( COUNT( * ) ) + - 82 AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) <> col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5631
SELECT ALL - + CAST ( NULL AS REAL ) + 10 - - ( COUNT ( * ) ) + - 82 AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) <> col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5632
SELECT DISTINCT - COUNT( * ) col0, 62 + + ( ( - 2 ) ) AS col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-3
60

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5632
SELECT DISTINCT - COUNT ( * ) col0, 62 + + ( ( - 2 ) ) AS col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-3
60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5633
SELECT CAST( NULL AS SIGNED ) + + CAST( NULL AS SIGNED ) AS col2 FROM tab2 cor0 WHERE NOT + 26 IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5633
SELECT CAST ( NULL AS INTEGER ) + + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 cor0 WHERE NOT + 26 IS NULL
----
NULL
NULL
NULL

query I rowsort
SELECT - - 31 FROM tab2 AS cor0 WHERE NOT - col2 * + col2 + - col0 >= - - 54
----
31
31
31

query II rowsort
SELECT col1 AS col2, - col1 + + col0 AS col0 FROM tab1
----
14
37
47
44
5
80

query I rowsort
SELECT + col1 * + + 37 FROM tab2
----
1887
2479
2849

query I rowsort
SELECT DISTINCT + 73 FROM tab0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col0 + + 43 FROM tab2 AS cor0
----
-21
-3
-32

query I rowsort
SELECT col0 + + 66 FROM tab2 cor0
----
112
130
141

onlyif mysql # aggregate syntax: 
query I rowsort label-5640
SELECT + + COUNT( DISTINCT - col0 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5640
SELECT + + COUNT ( DISTINCT - col0 ) FROM tab2 AS cor0
----
3

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT ( NULL IS NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5642
SELECT ALL + - COUNT( * ) * + 56 + 15 AS col1 FROM tab1 AS cor0
----
-153

skipif mysql # not compatible
query I rowsort label-5642
SELECT ALL + - COUNT ( * ) * + 56 + 15 AS col1 FROM tab1 AS cor0
----
-153

query I rowsort
SELECT DISTINCT + 54 * - col0 FROM tab1
----
-2754
-4590
-4914

query I rowsort
SELECT + col2 * + - col2 FROM tab2
----
-1600
-3364
-529

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND + 59
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5646
SELECT DISTINCT + 98 + 6 - + COUNT( * ) FROM tab2
----
101

skipif mysql # not compatible
query I rowsort label-5646
SELECT DISTINCT + 98 + 6 - + COUNT ( * ) FROM tab2
----
101

query III rowsort
SELECT * FROM tab1 WHERE col0 * + - col1 * - col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 - - col1 * - + col2 + - col2 col1 FROM tab0 WHERE + 17 * col2 IS NULL
----

query I rowsort
SELECT ALL - 39 + 26 AS col1 FROM tab0
----
-13
-13
-13

onlyif mysql # DIV for integer division: 
query I rowsort label-5650
SELECT ALL + + col0 + - col1 DIV + + ( + col1 ) AS col0 FROM tab0 AS cor0
----
14
86
96

skipif mysql # not compatible
query I rowsort label-5650
SELECT ALL + + col0 + - col1 / + + ( + col1 ) AS col0 FROM tab0 AS cor0
----
14
86
96

query I rowsort
SELECT DISTINCT + 40 FROM tab2 cor0 WHERE - col2 IS NULL
----

query I rowsort
SELECT ALL - - 9 - + + 15 AS col1 FROM tab2 AS cor0
----
-6
-6
-6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5653
SELECT + CAST( + + col1 AS SIGNED ) FROM tab2 AS cor0
----
51
67
77

skipif mysql # not compatible
query I rowsort label-5653
SELECT + CAST ( + + col1 AS INTEGER ) FROM tab2 AS cor0
----
51
67
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 94 col0 FROM tab0 AS cor0
----
-94
-94
-94

query I rowsort
SELECT 42 * + ( - col1 ) AS col1 FROM tab1 AS cor0
----
-1974
-210
-588

onlyif mysql # aggregate syntax: 
query I rowsort label-5656
SELECT 21 + - + MAX( ALL col2 ) + + COUNT( * ) + + COUNT( * ) + - + 71 * + 27 - 1 FROM tab1 WHERE NOT - + col0 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5656
SELECT 21 + - + MAX ( ALL col2 ) + + COUNT ( * ) + + COUNT ( * ) + - + 71 * + 27 - 1 FROM tab1 WHERE NOT - + col0 IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5657
SELECT MIN( - 19 ) AS col2 FROM tab2
----
-19

skipif mysql # not compatible
query I rowsort label-5657
SELECT MIN ( - 19 ) AS col2 FROM tab2
----
-19

query II rowsort
SELECT ALL + 45 AS col2, 69 FROM tab1
----
45
69
45
69
45
69

onlyif mysql # aggregate syntax: 
query I rowsort label-5659
SELECT ALL - MAX( - + 78 ) AS col0 FROM tab0
----
78

skipif mysql # not compatible
query I rowsort label-5659
SELECT ALL - MAX ( - + 78 ) AS col0 FROM tab0
----
78

query I rowsort
SELECT ALL 39 * col0 AS col1 FROM tab2
----
1794
2496
2925

onlyif mysql # aggregate syntax: 
query I rowsort label-5661
SELECT 63 * + 45 * - + MIN( ALL - - col0 ) AS col1 FROM tab2
----
-130410

skipif mysql # not compatible
query I rowsort label-5661
SELECT 63 * + 45 * - + MIN ( ALL - - col0 ) AS col1 FROM tab2
----
-130410

query II rowsort
SELECT col0, col1 + 40 AS col0 FROM tab0
----
15
121
87
61
97
41

onlyif mysql # DIV for integer division: 
query I rowsort label-5663
SELECT + 45 DIV + col0 AS col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5663
SELECT + 45 / + col0 AS col2 FROM tab1
----
0
0
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5664
SELECT - 20 * - AVG ( + CAST( NULL AS DECIMAL ) ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5664
SELECT - 20 * - AVG ( + CAST ( NULL AS REAL ) ) AS col1 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL - + 78 * + col0 AS col2 FROM tab2 AS cor0
----
-3588
-4992
-5850

query I rowsort
SELECT - col0 FROM tab2 WHERE NOT - 25 * 2 * ( + col0 ) IS NULL
----
-46
-64
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5667
SELECT ALL + CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-5667
SELECT ALL + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query II rowsort
SELECT DISTINCT 12 * - + 94 AS col0, col1 * + 65 FROM tab0
----
-1128
1365
-1128
5265
-1128
65

query I rowsort
SELECT ALL + + col2 * + col1 * - - col2 + - + col1 AS col2 FROM tab0 AS cor0
----
178848
2079
9800

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 * - + col0 col1 FROM tab2 AS cor0
----
-2116
-4096
-5625

onlyif mysql # aggregate syntax: 
query I rowsort label-5671
SELECT DISTINCT + - SUM( + col0 ) + 33 FROM tab0 AS cor0
----
-166

skipif mysql # not compatible
query I rowsort label-5671
SELECT DISTINCT + - SUM ( + col0 ) + 33 FROM tab0 AS cor0
----
-166

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5672
SELECT DISTINCT + SUM( + 63 ) DIV + 54 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5672
SELECT DISTINCT + SUM ( + 63 ) / + 54 FROM tab1 AS cor0
----
3

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT 82 * + 18 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5674
SELECT DISTINCT + ( COUNT( * ) ) * + COUNT( * ) col2 FROM tab1 AS cor0
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5674
SELECT DISTINCT + ( COUNT ( * ) ) * + COUNT ( * ) col2 FROM tab1 AS cor0
----
9

query I rowsort
SELECT + col1 + - + col1 AS col1 FROM tab2 cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5676
SELECT CAST( col1 AS SIGNED ) FROM tab2 AS cor0 WHERE NULL BETWEEN 23 * + 17 AND NULL
----

skipif mysql # not compatible
query I rowsort label-5676
SELECT CAST ( col1 AS INTEGER ) FROM tab2 AS cor0 WHERE NULL BETWEEN 23 * + 17 AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5677
SELECT ALL ( CAST( + COUNT( * ) AS SIGNED ) ), 2 AS col1 FROM tab2
----
3
2

skipif mysql # not compatible
query II rowsort label-5677
SELECT ALL ( CAST ( + COUNT ( * ) AS INTEGER ) ), 2 AS col1 FROM tab2
----
3
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5678
SELECT CAST( NULL AS SIGNED ) + - - 34 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5678
SELECT CAST ( NULL AS INTEGER ) + - - 34 AS col0 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 WHERE + col2 / 42 IS NULL
----

query I rowsort
SELECT col0 * + 21 + col2 - - col0 + col1 FROM tab1
----
1232
1934
2117

query I rowsort
SELECT DISTINCT 69 + 26 * - + col0 FROM tab2
----
-1127
-1595
-1881

onlyif mysql # aggregate syntax: 
query I rowsort label-5682
SELECT DISTINCT + - COUNT( * ) AS col0 FROM tab2 WHERE 61 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-5682
SELECT DISTINCT + - COUNT ( * ) AS col0 FROM tab2 WHERE 61 IS NULL
----
0

query I rowsort
SELECT col0 + - 76 AS col0 FROM tab0
----
-61
11
21

onlyif mysql # aggregate syntax: 
query I rowsort label-5684
SELECT DISTINCT + 42 + COUNT( * ) + - 32 AS col0 FROM tab2
----
13

skipif mysql # not compatible
query I rowsort label-5684
SELECT DISTINCT + 42 + COUNT ( * ) + - 32 AS col0 FROM tab2
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-5685
SELECT DISTINCT + - 16 + + COUNT( ALL col0 ) FROM tab0 AS cor0
----
-13

skipif mysql # not compatible
query I rowsort label-5685
SELECT DISTINCT + - 16 + + COUNT ( ALL col0 ) FROM tab0 AS cor0
----
-13

query I rowsort
SELECT DISTINCT 67 - - col1 FROM tab2 AS cor0
----
118
134
144

onlyif mysql # aggregate syntax: 
query I rowsort label-5687
SELECT + - COUNT( DISTINCT + col0 ) * - 82 FROM tab2 AS cor0
----
246

skipif mysql # not compatible
query I rowsort label-5687
SELECT + - COUNT ( DISTINCT + col0 ) * - 82 FROM tab2 AS cor0
----
246

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5688
SELECT - 67 DIV CAST( ( 45 ) AS SIGNED ) FROM tab0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-5688
SELECT - 67 / CAST ( ( 45 ) AS INTEGER ) FROM tab0
----
-1
-1
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5689
SELECT + ( + col1 ) / + CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5689
SELECT + ( + col1 ) / + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 col0 FROM tab1 WHERE 62 IS NOT NULL
----
59
68
96

onlyif mysql # DIV for integer division: 
query I rowsort label-5691
SELECT + col2 DIV - 86 FROM tab0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-5691
SELECT + col2 / - 86 FROM tab0
----
-1
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5692
SELECT DISTINCT - col1 + ( CAST( + CAST( + col0 AS SIGNED ) AS SIGNED ) ) FROM tab0
----
-66
66
96

skipif mysql # not compatible
query I rowsort label-5692
SELECT DISTINCT - col1 + ( CAST ( + CAST ( + col0 AS INTEGER ) AS INTEGER ) ) FROM tab0
----
-66
66
96

query I rowsort
SELECT 66 * ( - 53 * - 32 ) AS col2 FROM tab0
----
111936
111936
111936

onlyif mysql # aggregate syntax: 
query I rowsort label-5694
SELECT ALL MIN( DISTINCT + col2 ) AS col0 FROM tab2
----
23

skipif mysql # not compatible
query I rowsort label-5694
SELECT ALL MIN ( DISTINCT + col2 ) AS col0 FROM tab2
----
23

query I rowsort
SELECT ALL - 77 AS col1 FROM tab2 WHERE NOT ( col2 + - col2 ) IN ( - 36 )
----
-77
-77
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-5696
SELECT COUNT( * ) - SUM( DISTINCT col1 + - 90 ) FROM tab2
----
78

skipif mysql # not compatible
query I rowsort label-5696
SELECT COUNT ( * ) - SUM ( DISTINCT col1 + - 90 ) FROM tab2
----
78

query III rowsort
SELECT * FROM tab2 WHERE NOT ( - col2 ) <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5698
SELECT DISTINCT SUM( ALL 4 ) AS col2 FROM tab1
----
12

skipif mysql # not compatible
query I rowsort label-5698
SELECT DISTINCT SUM ( ALL 4 ) AS col2 FROM tab1
----
12

query I rowsort
SELECT DISTINCT col0 AS col2 FROM tab1 WHERE NOT ( col1 ) IS NULL
----
51
85
91

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - 67 / col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT col2 AS col0 FROM tab2 WHERE NOT + col2 / col2 IS NULL
----
23
40
58

query I rowsort
SELECT ( AVG ( ALL ( col0 ) ) ) FROM tab1 WHERE - 80 < + 86 * - col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5703
SELECT SUM( 50 ) FROM tab1
----
150

skipif mysql # not compatible
query I rowsort label-5703
SELECT SUM ( 50 ) FROM tab1
----
150

onlyif mysql # aggregate syntax: 
query I rowsort label-5704
SELECT DISTINCT ( MIN( ALL + col2 ) ) AS col2 FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5704
SELECT DISTINCT ( MIN ( ALL + col2 ) ) AS col2 FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5705
SELECT * FROM tab1 WHERE - 3 + col2 * CAST( col0 AS SIGNED ) NOT IN ( - col1 / + 62 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-5705
SELECT * FROM tab1 WHERE - 3 + col2 * CAST ( col0 AS INTEGER ) NOT IN ( - col1 / + 62 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-5706
SELECT DISTINCT + COUNT( * ) * + MAX( ALL + col0 ) - - 7 FROM tab1 WHERE NOT NULL NOT IN ( col0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5706
SELECT DISTINCT + COUNT ( * ) * + MAX ( ALL + col0 ) - - 7 FROM tab1 WHERE NOT NULL NOT IN ( col0 )
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NULL ) NOT BETWEEN - col0 * + col1 AND col0
----

query I rowsort
SELECT DISTINCT 24 + col0 AS col2 FROM tab0
----
111
121
39

query I rowsort
SELECT - col2 + ( - col0 ) * col0 FROM tab2
----
-2139
-4136
-5683

query III rowsort
SELECT ALL * FROM tab2 WHERE - col0 * col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - col1 + + col2 * 93 FROM tab1
----
5482
6277
8914

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5712
SELECT - CAST( - 23 AS SIGNED ) FROM tab1
----
23
23
23

skipif mysql # not compatible
query I rowsort label-5712
SELECT - CAST ( - 23 AS INTEGER ) FROM tab1
----
23
23
23

query I rowsort
SELECT + col0 AS col2 FROM tab0 WHERE NOT - col0 * + col1 IS NULL
----
15
87
97

query I rowsort
SELECT ALL - 83 * 65 FROM tab2 AS cor0
----
-5395
-5395
-5395

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5715
SELECT MIN( + CAST( NULL AS DECIMAL ) ) * + 48 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5715
SELECT MIN ( + CAST ( NULL AS REAL ) ) * + 48 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL + 0 * + 66 AS col2 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5717
SELECT * FROM tab1 WHERE NOT CAST( + col0 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-5717
SELECT * FROM tab1 WHERE NOT CAST ( + col0 AS INTEGER ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE - ( - col0 ) < col2
----
51
14
96

onlyif mysql # aggregate syntax: 
query I rowsort label-5719
SELECT - ( 4 ) + COUNT( * ) FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-5719
SELECT - ( 4 ) + COUNT ( * ) FROM tab1
----
-1

query I rowsort
SELECT col2 + ( col1 + + 43 ) FROM tab1 AS cor0
----
107
153
158

query I rowsort
SELECT DISTINCT + 30 + - 72 FROM tab1 cor0
----
-42

query I rowsort
SELECT ALL - - col1 * 94 FROM tab0 AS cor0
----
1974
7614
94

query I rowsort
SELECT + - 90 + col0 AS col1 FROM tab2 AS cor0
----
-15
-26
-44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5724
SELECT DISTINCT CAST( NULL AS SIGNED ) + 14 col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5724
SELECT DISTINCT CAST ( NULL AS INTEGER ) + 14 col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL + ( - 13 ) FROM tab2 AS cor0
----
-13
-13
-13

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col0 / col2 NOT BETWEEN + col1 * - col2 AND 93
----

query I rowsort
SELECT + 90 * 24 FROM tab1 AS cor0
----
2160
2160
2160

onlyif mysql # aggregate syntax: 
query I rowsort label-5728
SELECT 42 * MIN( - 7 ) FROM tab2 AS cor0
----
-294

skipif mysql # not compatible
query I rowsort label-5728
SELECT 42 * MIN ( - 7 ) FROM tab2 AS cor0
----
-294

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col2 IN ( - 64 )
----

query I rowsort
SELECT 5 * 33 FROM tab2
----
165
165
165

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5731
SELECT * FROM tab2 WHERE + CAST( col2 AS SIGNED ) + col0 = ( NULL )
----

skipif mysql # not compatible
query III rowsort label-5731
SELECT * FROM tab2 WHERE + CAST ( col2 AS INTEGER ) + col0 = ( NULL )
----

query I rowsort
SELECT DISTINCT - col1 AS col1 FROM tab1 WHERE ( ( - col0 ) ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 59 col1 FROM tab2
----
59

query I rowsort
SELECT DISTINCT + 70 + 46 AS col2 FROM tab1
----
116

query I rowsort
SELECT ALL + 16 AS col1 FROM tab0 WHERE 75 IS NOT NULL
----
16
16
16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5736
SELECT 23 - + CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5736
SELECT 23 - + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col1 FROM tab0 WHERE NOT ( - col1 / + 91 + 67 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5738
SELECT ALL + 76 + + - MAX( ALL + 61 ) AS col2 FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-5738
SELECT ALL + 76 + + - MAX ( ALL + 61 ) AS col2 FROM tab0
----
15

query I rowsort
SELECT 47 + + col2 * col1 FROM tab1 AS cor0
----
1391
3243
342

query I rowsort
SELECT + 61 + + + 0 + - col0 AS col1 FROM tab0 cor0
----
-26
-36
46

query I rowsort
SELECT DISTINCT - - col0 - - col2 AS col0 FROM tab2 AS cor0
----
104
133
69

onlyif mysql # DIV for integer division: 
query I rowsort label-5742
SELECT DISTINCT - + col1 * ( col2 ) * + col0 + 28 DIV - col0 + + ( - col2 ) DIV + 9 AS col2 FROM tab0 AS cor0
----
-18271
-57111
-9614

skipif mysql # not compatible
query I rowsort label-5742
SELECT DISTINCT - + col1 * ( col2 ) * + col0 + 28 / - col0 + + ( - col2 ) / + 9 AS col2 FROM tab0 AS cor0
----
-18271
-57111
-9614

onlyif mysql # DIV for integer division: 
query I rowsort label-5743
SELECT 31 + 5 DIV 60 AS col0 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
31
31
31

skipif mysql # not compatible
query I rowsort label-5743
SELECT 31 + 5 / 60 AS col0 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
31
31
31

onlyif mysql # aggregate syntax: 
query I rowsort label-5744
SELECT DISTINCT - COUNT( * ) FROM tab0 WHERE NOT ( NULL ) IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-5744
SELECT DISTINCT - COUNT ( * ) FROM tab0 WHERE NOT ( NULL ) IS NOT NULL
----
-3

query I rowsort
SELECT col1 - 86 AS col0 FROM tab1 WHERE NOT + col1 >= 22 - + col2
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5746
SELECT + 35 DIV 1 + + COUNT( * ) FROM tab0 AS cor0
----
38

skipif mysql # not compatible
query I rowsort label-5746
SELECT + 35 / 1 + + COUNT ( * ) FROM tab0 AS cor0
----
38

onlyif mysql # DIV for integer division: 
query I rowsort label-5747
SELECT DISTINCT col0 DIV - + 51 FROM tab0 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-5747
SELECT DISTINCT col0 / - + 51 FROM tab0 AS cor0
----
-1
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 84 * + col0 col2 FROM tab2 AS cor0
----
3864
5376
6300

query I rowsort
SELECT + 72 AS col1 FROM tab0 AS cor0 WHERE NOT NULL IN ( col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5750
SELECT ALL - - col0 DIV - - col0 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-5750
SELECT ALL - - col0 / - - col0 col1 FROM tab2 AS cor0
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5751
SELECT + + MIN( ALL - ( col1 ) ) AS col2 FROM tab1 AS cor0
----
-47

skipif mysql # not compatible
query I rowsort label-5751
SELECT + + MIN ( ALL - ( col1 ) ) AS col2 FROM tab1 AS cor0
----
-47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5752
SELECT DISTINCT - CAST( col0 AS SIGNED ) AS col2 FROM tab2 AS cor0 WHERE NOT ( col2 * + - col0 ) BETWEEN col0 AND NULL
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-5752
SELECT DISTINCT - CAST ( col0 AS INTEGER ) AS col2 FROM tab2 AS cor0 WHERE NOT ( col2 * + - col0 ) BETWEEN col0 AND NULL
----
-46
-64
-75

query II rowsort
SELECT DISTINCT col2, - col0 FROM tab1 cor0
----
59
-85
68
-91
96
-51

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT + col1 / + col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5755
SELECT ALL * FROM tab2 AS cor0 WHERE + CAST( NULL AS DECIMAL ) <= NULL
----

skipif mysql # not compatible
query III rowsort label-5755
SELECT ALL * FROM tab2 AS cor0 WHERE + CAST ( NULL AS REAL ) <= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( - ( col0 ) ) col1 FROM tab2
----
-46
-64
-75

query I rowsort
SELECT ALL + 70 * col1 * - col0 AS col1 FROM tab0
----
-127890
-6790
-85050

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 col1 FROM tab0 WHERE NOT col1 <= + col1 * col2
----

query III rowsort
SELECT * FROM tab2 WHERE NOT 76 NOT BETWEEN - + col2 AND + col1
----
64
77
40

query I rowsort
SELECT + col1 * + 87 * col0 FROM tab2
----
204102
428736
437175

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL <> ( - col0 / + col2 * + 66 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 74 BETWEEN ( + col0 + - 89 * col0 ) AND NULL
----

query I rowsort
SELECT - col0 * 31 FROM tab2
----
-1426
-1984
-2325

onlyif mysql # aggregate syntax: 
query II rowsort label-5764
SELECT - 19 + + COUNT( * ) AS col2, + COUNT( * ) AS col1 FROM tab0
----
-16
3

skipif mysql # not compatible
query II rowsort label-5764
SELECT - 19 + + COUNT ( * ) AS col2, + COUNT ( * ) AS col1 FROM tab0
----
-16
3

query I rowsort
SELECT col2 FROM tab2 AS cor0 WHERE NOT col2 * - col2 / + + col0 + col0 * - 90 NOT BETWEEN ( NULL ) AND col0 * col2
----

query I rowsort
SELECT DISTINCT col2 FROM tab0 AS cor0 WHERE NOT - col1 IS NULL
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-5767
SELECT ALL - ( + + SUM( DISTINCT - col2 ) ) col0 FROM tab2 AS cor0
----
121

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5767
SELECT ALL - ( + + SUM ( DISTINCT - col2 ) ) col0 FROM tab2 AS cor0
----
121

query I rowsort
SELECT 16 * - col2 * + - 30 AS col1 FROM tab0
----
22560
47520
4800

onlyif mysql # aggregate syntax: 
query I rowsort label-5769
SELECT DISTINCT - COUNT( * ) + COUNT( * ) AS col0 FROM tab0 WHERE - col1 + - 65 BETWEEN NULL AND + + col2
----
0

skipif mysql # not compatible
query I rowsort label-5769
SELECT DISTINCT - COUNT ( * ) + COUNT ( * ) AS col0 FROM tab0 WHERE - col1 + - 65 BETWEEN NULL AND + + col2
----
0

query I rowsort
SELECT DISTINCT - 70 + - 1 + 32 FROM tab0
----
-39

query I rowsort
SELECT ALL col2 + - - col1 AS col1 FROM tab2 AS cor0
----
117
125
74

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col1 + + col2 col2 FROM tab1 cor0
----
110
115
64

query I rowsort
SELECT ALL + + col2 + - + col2 * + + ( - col0 ) AS col2 FROM tab2 AS cor0
----
1081
2600
4408

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 78 col0 FROM tab1 AS cor0
----
-78
-78
-78

query I rowsort
SELECT DISTINCT col0 + - 30 FROM tab1 AS cor0
----
21
55
61

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col0 - 54 + col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-5777
SELECT COUNT( * ) + + 43 AS col1 FROM tab2 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-5777
SELECT COUNT ( * ) + + 43 AS col1 FROM tab2 AS cor0
----
46

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( + ( 2 ) ) > ( + ( + - 87 ) * + col2 + + 78 )
----

query I rowsort
SELECT 74 + + 74 AS col0 FROM tab0
----
148
148
148

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL ( + col0 ) col1, + 10 + + col2 + + 82 + + 2 - + col1 * + 29 * 73 AS col0 FROM tab0
----
15
-171336
87
-44353
97
-1924

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0 + 38 col2, col1 FROM tab1
----
123
5
129
47
89
14

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 56 col1, col1 AS col1 FROM tab2
----
56
51
56
67
56
77

query III rowsort
SELECT * FROM tab0 WHERE ( - col1 * + 42 ) IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE + + col0 * - + col1 + - col1 IS NULL
----

query I rowsort
SELECT DISTINCT + col0 * col2 + + col1 * + col0 * - + 7 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT + + 92 / - 94 + + + 54 FROM tab1 AS cor0 WHERE + col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5787
SELECT - 74 * CAST( NULL AS SIGNED ) / + CAST( NULL AS SIGNED ) * col0 col1 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5787
SELECT - 74 * CAST ( NULL AS INTEGER ) / + CAST ( NULL AS INTEGER ) * col0 col1 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL col1 AS col1 FROM tab0 AS cor0 WHERE 25 + - col1 <> ( NULL )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5789
SELECT DISTINCT - 31 * + 73, COUNT( * ) AS col1 FROM tab2 AS cor0
----
-2263
3

skipif mysql # not compatible
query II rowsort label-5789
SELECT DISTINCT - 31 * + 73, COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-2263
3

query III rowsort
SELECT ALL * FROM tab0 WHERE ( + 4 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + col2 * - col1 * + col0 AS col0 FROM tab0
----
-18270
-57105
-9603

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5792
SELECT + CAST( col0 AS SIGNED ) - ( col1 ) FROM tab0 WHERE NOT - 25 NOT BETWEEN - - col0 + + col1 AND NULL
----

skipif mysql # not compatible
query I rowsort label-5792
SELECT + CAST ( col0 AS INTEGER ) - ( col1 ) FROM tab0 WHERE NOT - 25 NOT BETWEEN - - col0 + + col1 AND NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5793
SELECT - col0 * + - 64 + + CAST( NULL AS DECIMAL ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5793
SELECT - col0 * + - 64 + + CAST ( NULL AS REAL ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5794
SELECT + + MIN( ALL - ( + - col1 ) ) AS col1 FROM tab2 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-5794
SELECT + + MIN ( ALL - ( + - col1 ) ) AS col1 FROM tab2 AS cor0
----
51

onlyif mysql # DIV for integer division: 
query II rowsort label-5795
SELECT + col0 DIV + + col2 col2, + ( - + ( col0 ) ) AS col2 FROM tab1 AS cor0
----
0
-51
1
-85
1
-91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5795
SELECT + col0 / + + col2 col2, + ( - + ( col0 ) ) AS col2 FROM tab1 AS cor0
----
0
-51
1
-85
1
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-5796
SELECT - MAX( ALL - 91 ) FROM tab0 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-5796
SELECT - MAX ( ALL - 91 ) FROM tab0 AS cor0
----
91

query I rowsort
SELECT ALL - - 98 * - 77 * + + col2 AS col2 FROM tab0 AS cor0
----
-354662
-747054
-75460

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 col1 FROM tab0 WHERE + col1 IS NOT NULL
----
-10
-47
-99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5799
SELECT 84 DIV - - COUNT( * ) FROM tab1
----
28

skipif mysql # not compatible
query I rowsort label-5799
SELECT 84 / - - COUNT ( * ) FROM tab1
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-5800
SELECT ( COUNT( * ) ) col1 FROM tab2
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5800
SELECT ( COUNT ( * ) ) col1 FROM tab2
----
3

query I rowsort
SELECT ALL - 27 + + col2 AS col2 FROM tab1
----
32
41
69

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5802
SELECT ALL * FROM tab0 WHERE ( NULL ) NOT IN ( 54 * + - col1 - 50 + + ( - col2 ) ) OR - col1 + CAST( col0 - col0 AS DECIMAL ) <= 0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-5802
SELECT ALL * FROM tab0 WHERE ( NULL ) NOT IN ( 54 * + - col1 - 50 + + ( - col2 ) ) OR - col1 + CAST ( col0 - col0 AS REAL ) <= 0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL col0 * - 8 + + col2 + + - col1 * - col2 + col1 + + col2 AS col2 FROM tab2 cor0
----
2725
3469
902

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col2 / + col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5805
SELECT + CAST( NULL AS SIGNED ) * - + COUNT( * ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5805
SELECT + CAST ( NULL AS INTEGER ) * - + COUNT ( * ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT - 2 + col1 FROM tab0
----
-1
19
79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5807
SELECT 51 * COUNT( * ) + + + CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5807
SELECT 51 * COUNT ( * ) + + + CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT + ( 20 ) * col1 + - col1 * 42 * - + col1 FROM tab0 AS cor0
----
18942
277182
62

query II rowsort
SELECT ALL - col2, 57 + - + col2 AS col2 FROM tab0 AS cor0 WHERE NULL > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5810
SELECT - 79 * 5 * - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5810
SELECT - 79 * 5 * - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + ( - + col1 ) - + - ( col1 ) AS col2 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
0
0
0

query I rowsort
SELECT ALL - + 55 AS col2 FROM tab1 AS cor0
----
-55
-55
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-5813
SELECT + MAX( DISTINCT + 76 ) AS col1 FROM tab1 AS cor0
----
76

skipif mysql # not compatible
query I rowsort label-5813
SELECT + MAX ( DISTINCT + 76 ) AS col1 FROM tab1 AS cor0
----
76

query I rowsort
SELECT - + 26 FROM tab0 AS cor0 WHERE NULL BETWEEN NULL AND + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5815
SELECT * FROM tab2 WHERE - CAST( col0 AS SIGNED ) + col0 <> - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-5815
SELECT * FROM tab2 WHERE - CAST ( col0 AS INTEGER ) + col0 <> - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5816
SELECT - 29 FROM tab0 WHERE col0 + - - col2 * - + col1 BETWEEN + CAST( - col2 AS SIGNED ) AND 2
----
-29

skipif mysql # not compatible
query I rowsort label-5816
SELECT - 29 FROM tab0 WHERE col0 + - - col2 * - + col1 BETWEEN + CAST ( - col2 AS INTEGER ) AND 2
----
-29

query I rowsort
SELECT - col0 + - col0 AS col1 FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5818
SELECT DISTINCT + col1 * - CAST( NULL AS SIGNED ) * - - col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5818
SELECT DISTINCT + col1 * - CAST ( NULL AS INTEGER ) * - - col1 FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT - col0 + 49 AS col2 FROM tab1
----
-2
-36
-42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5820
SELECT - + col2 / - - col0 - 58 * + col2 + + - ( - col2 ) + - - CAST( NULL AS SIGNED ) * + + 59 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5820
SELECT - + col2 / - - col0 - 58 * + col2 + + - ( - col2 ) + - - CAST ( NULL AS INTEGER ) * + + 59 FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 43 > + col2
----
87
21
10

query I rowsort
SELECT + col1 * - - 58 AS col0 FROM tab0
----
1218
4698
58

query I rowsort
SELECT col1 * 56 AS col0 FROM tab2
----
2856
3752
4312

query I rowsort
SELECT DISTINCT col2 AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT ALL + 76, col2 AS col1 FROM tab0 AS cor0
----
76
10
76
47
76
99

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 52 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-5827
SELECT - SUM( + 91 ) FROM tab1 AS cor0
----
-273

skipif mysql # not compatible
query I rowsort label-5827
SELECT - SUM ( + 91 ) FROM tab1 AS cor0
----
-273

query I rowsort
SELECT DISTINCT - + col2 - - + 94 + - 43 FROM tab0 AS cor0 WHERE NOT - col2 NOT IN ( - col0, col1 )
----

query I rowsort
SELECT ALL col1 AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT + 71 + + ( + col0 ) FROM tab2
----
117
135
146

query I rowsort
SELECT + col1 + - 62 FROM tab0
----
-41
-61
19

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5832
SELECT + 6 DIV - + COUNT( * ) + 77 AS col0 FROM tab2
----
75

skipif mysql # not compatible
query I rowsort label-5832
SELECT + 6 / - + COUNT ( * ) + 77 AS col0 FROM tab2
----
75

query I rowsort
SELECT ALL col2 * + col0 + - col2 AS col1 FROM tab1
----
4800
4956
6120

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5834
SELECT ( - 84 ) FROM tab2 WHERE col1 * - CAST( NULL AS DECIMAL ) IS NULL
----
-84
-84
-84

skipif mysql # not compatible
query I rowsort label-5834
SELECT ( - 84 ) FROM tab2 WHERE col1 * - CAST ( NULL AS REAL ) IS NULL
----
-84
-84
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-5835
SELECT DISTINCT + 4 + - SUM( DISTINCT + + col2 ) col0 FROM tab1
----
-219

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5835
SELECT DISTINCT + 4 + - SUM ( DISTINCT + + col2 ) col0 FROM tab1
----
-219

onlyif mysql # aggregate syntax: 
query I rowsort label-5836
SELECT DISTINCT MIN( DISTINCT col2 ) col2 FROM tab0 AS cor0
----
10

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5836
SELECT DISTINCT MIN ( DISTINCT col2 ) col2 FROM tab0 AS cor0
----
10

query I rowsort
SELECT DISTINCT - col0 * + col0 + - ( + col0 ) + - col0 AS col1 FROM tab0 AS cor0
----
-255
-7743
-9603

query I rowsort
SELECT DISTINCT col1 FROM tab1 WHERE NOT NULL = ( - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5839
SELECT DISTINCT MAX( ALL - 15 ) AS col0 FROM tab1
----
-15

skipif mysql # not compatible
query I rowsort label-5839
SELECT DISTINCT MAX ( ALL - 15 ) AS col0 FROM tab1
----
-15

query I rowsort
SELECT DISTINCT + 94 + col1 AS col0 FROM tab0
----
115
175
95

onlyif mysql # DIV for integer division: 
query I rowsort label-5841
SELECT DISTINCT - col0 * + 84 + + col0 + - col1 DIV - col2 FROM tab0 AS cor0
----
-1244
-7219
-8051

skipif mysql # not compatible
query I rowsort label-5841
SELECT DISTINCT - col0 * + 84 + + col0 + - col1 / - col2 FROM tab0 AS cor0
----
-1244
-7219
-8051

query I rowsort
SELECT + col0 FROM tab1 AS cor0 WHERE 68 + + + ( + 72 ) NOT IN ( - col2, + 10 / + col2 * - col2 )
----
51
85
91

query I rowsort
SELECT - 71 + - col0 AS col1 FROM tab1 AS cor0 WHERE col0 - + + 31 IS NOT NULL
----
-122
-156
-162

onlyif mysql # DIV for integer division: 
query II rowsort label-5844
SELECT DISTINCT col0 - + col0, 44 DIV + 64 AS col0 FROM tab1
----
0
0

skipif mysql # not compatible
query II rowsort label-5844
SELECT DISTINCT col0 - + col0, 44 / + 64 AS col0 FROM tab1
----
0
0

query II rowsort
SELECT DISTINCT - col2 * - col1, col1 + col2 + 8 AS col0 FROM tab2
----
1173
82
3080
125
3886
133

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5846
SELECT - SUM( + ( - CAST( - - CAST( + + 53 AS SIGNED ) AS SIGNED ) ) ) AS col2 FROM tab2
----
159

skipif mysql # not compatible
query I rowsort label-5846
SELECT - SUM ( + ( - CAST ( - - CAST ( + + 53 AS INTEGER ) AS INTEGER ) ) ) AS col2 FROM tab2
----
159

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5847
SELECT ALL + CAST( - AVG ( ALL + col2 ) AS SIGNED ) AS col0 FROM tab1
----
-74

skipif mysql # not compatible
query I rowsort label-5847
SELECT ALL + CAST ( - AVG ( ALL + col2 ) AS INTEGER ) AS col0 FROM tab1
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-5848
SELECT DISTINCT + COUNT( * ) * + + AVG ( DISTINCT + col0 ) FROM tab0 WHERE NOT + - 79 - col0 > NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5848
SELECT DISTINCT + COUNT ( * ) * + + AVG ( DISTINCT + col0 ) FROM tab0 WHERE NOT + - 79 - col0 > NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5849
SELECT + CAST( 28 AS SIGNED ) AS col2 FROM tab2 cor0
----
28
28
28

skipif mysql # not compatible
query I rowsort label-5849
SELECT + CAST ( 28 AS INTEGER ) AS col2 FROM tab2 cor0
----
28
28
28

query I rowsort
SELECT - 80 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 4dde3bd5652d30396b9cadd0e2cfb680

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NULL ) >= + col2 + + 40
----

query I rowsort
SELECT DISTINCT + col1 * - + col2 + 63 AS col2 FROM tab0 cor0
----
-147
-36
-3744

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 57 <> NULL
----

query I rowsort
SELECT ALL + + 18 AS col2 FROM tab2 cor0
----
18
18
18

query I rowsort
SELECT DISTINCT + + col1 * - 18 AS col2 FROM tab1 AS cor0
----
-252
-846
-90

query I rowsort
SELECT + col1 * col2 * + 74 FROM tab0 AS cor0
----
15540
281718
7326

onlyif mysql # aggregate syntax: 
query II rowsort label-5857
SELECT + 14, - SUM( DISTINCT ( 53 ) ) AS col1 FROM tab0 AS cor0
----
14
-53

skipif mysql # not compatible
query II rowsort label-5857
SELECT + 14, - SUM ( DISTINCT ( 53 ) ) AS col1 FROM tab0 AS cor0
----
14
-53

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 2 col1 FROM tab1 cor0
----
-2
-2
-2

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5859
SELECT * FROM tab0 AS cor0 WHERE NOT + CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-5859
SELECT * FROM tab0 AS cor0 WHERE NOT + CAST ( NULL AS INTEGER ) IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT ( NULL ) >= col2
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5861
SELECT - COUNT( * ) DIV SUM( - - 22 ) AS col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-5861
SELECT - COUNT ( * ) / SUM ( - - 22 ) AS col0 FROM tab1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5862
SELECT + col2 DIV + + 47 AS col0 FROM tab1
----
1
1
2

skipif mysql # not compatible
query I rowsort label-5862
SELECT + col2 / + + 47 AS col0 FROM tab1
----
1
1
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5863
SELECT - CAST( NULL AS SIGNED ) / ( COUNT( - ( col2 ) ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5863
SELECT - CAST ( NULL AS INTEGER ) / ( COUNT ( - ( col2 ) ) ) FROM tab1
----
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE - col0 * + 97 <= - 31
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-5865
SELECT + 84 * - ( MAX( DISTINCT col1 ) ) FROM tab0 cor0
----
-6804

skipif mysql # not compatible
query I rowsort label-5865
SELECT + 84 * - ( MAX ( DISTINCT col1 ) ) FROM tab0 cor0
----
-6804

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1 cor1 WHERE NOT NULL IS NOT NULL
----
54 values hashing to 33a0493e77bf8151676c948b0676d6b9

onlyif mysql # aggregate syntax: 
query I rowsort label-5867
SELECT ALL 75 + + COUNT( * ) AS col1 FROM tab0
----
78

skipif mysql # not compatible
query I rowsort label-5867
SELECT ALL 75 + + COUNT ( * ) AS col1 FROM tab0
----
78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5868
SELECT DISTINCT - CAST( - 30 AS SIGNED ) * - col1 - + col1 AS col0 FROM tab1 AS cor0
----
-1457
-155
-434

skipif mysql # not compatible
query I rowsort label-5868
SELECT DISTINCT - CAST ( - 30 AS INTEGER ) * - col1 - + col1 AS col0 FROM tab1 AS cor0
----
-1457
-155
-434

query I rowsort
SELECT ( + + 8 ) AS col2 FROM tab0 AS cor0
----
8
8
8

query I rowsort
SELECT - - 62 * col1 FROM tab0 AS cor0
----
1302
5022
62

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col2 + col0 IN ( col1 * - 95 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5872
SELECT DISTINCT + 98 * - COUNT( * ) FROM tab2
----
-294

skipif mysql # not compatible
query I rowsort label-5872
SELECT DISTINCT + 98 * - COUNT ( * ) FROM tab2
----
-294

query I rowsort
SELECT DISTINCT ( + 9 ) FROM tab2 WHERE NOT NULL IS NOT NULL
----
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5874
SELECT + CAST( - 37 AS SIGNED ) * - SUM( + - col2 ) AS col2 FROM tab1
----
-8251

skipif mysql # not compatible
query I rowsort label-5874
SELECT + CAST ( - 37 AS INTEGER ) * - SUM ( + - col2 ) AS col2 FROM tab1
----
-8251

query III rowsort
SELECT * FROM tab2 WHERE NOT + col0 + + + col1 <> - + 90 / col2 + + ( - col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5876
SELECT ALL + CAST( NULL AS SIGNED ) AS col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5876
SELECT ALL + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5877
SELECT CAST( NULL AS SIGNED ) AS col0 FROM tab2 WHERE NOT col2 >= col0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5877
SELECT CAST ( NULL AS INTEGER ) AS col0 FROM tab2 WHERE NOT col2 >= col0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5878
SELECT ALL - SUM( ALL + 14 ) FROM tab1
----
-42

skipif mysql # not compatible
query I rowsort label-5878
SELECT ALL - SUM ( ALL + 14 ) FROM tab1
----
-42

query II rowsort
SELECT ALL + col1, col0 FROM tab1
----
14
51
47
91
5
85

query I rowsort
SELECT DISTINCT + 94 * - ( 38 ) AS col0 FROM tab1 AS cor0 WHERE - 4 + + col1 IS NULL
----

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL <= + 50
----

query I rowsort
SELECT DISTINCT 55 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-5883
SELECT ALL + COUNT( * ) + - SUM( + + col0 ) FROM tab1 AS cor0
----
-224

skipif mysql # not compatible
query I rowsort label-5883
SELECT ALL + COUNT ( * ) + - SUM ( + + col0 ) FROM tab1 AS cor0
----
-224

query I rowsort
SELECT DISTINCT 87 * col0 AS col0 FROM tab0 AS cor0
----
1305
7569
8439

query I rowsort
SELECT ALL + - 97 AS col1 FROM tab2 AS cor0
----
-97
-97
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-5886
SELECT DISTINCT - ( + COUNT( * ) ) AS col2 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5886
SELECT DISTINCT - ( + COUNT ( * ) ) AS col2 FROM tab1 AS cor0
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-5887
SELECT ALL + 6 DIV - col0 AS col2 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5887
SELECT ALL + 6 / - col0 AS col2 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT - 99 + - + 49 AS col0 FROM tab1
----
-148
-148
-148

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL NOT BETWEEN 19 * + col2 + col1 AND + ( - ( - - 65 ) )
----

query I rowsort
SELECT ALL + 9 AS col0 FROM tab0
----
9
9
9

query I rowsort
SELECT DISTINCT - + col0 FROM tab0 WHERE NOT - 36 * + ( - col1 ) + + + 97 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5892
SELECT col2 DIV col2 + - 7 FROM tab0
----
-6
-6
-6

skipif mysql # not compatible
query I rowsort label-5892
SELECT col2 / col2 + - 7 FROM tab0
----
-6
-6
-6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 50 col1 FROM tab2
----
50

query III rowsort
SELECT * FROM tab1 WHERE NULL < + + col2 * + + 8
----

query I rowsort
SELECT DISTINCT 46 + + col1 * + - col1 FROM tab0
----
-395
-6515
45

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5896
SELECT - ( + 67 ) + + 60 DIV + COUNT( * ) FROM tab2
----
-47

skipif mysql # not compatible
query I rowsort label-5896
SELECT - ( + 67 ) + + 60 / + COUNT ( * ) FROM tab2
----
-47

query I rowsort
SELECT col0 + - - col1 + + col1 AS col1 FROM tab1
----
185
79
95

onlyif mysql # aggregate syntax: 
query I rowsort label-5898
SELECT + 34 + COUNT( * ) FROM tab2
----
37

skipif mysql # not compatible
query I rowsort label-5898
SELECT + 34 + COUNT ( * ) FROM tab2
----
37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5899
SELECT CAST( ( col2 ) AS SIGNED ) AS col2 FROM tab0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-5899
SELECT CAST ( ( col2 ) AS INTEGER ) AS col2 FROM tab0
----
10
47
99

onlyif mysql # DIV for integer division: 
query II rowsort label-5900
SELECT - 72 AS col0, + 27 DIV + 56 FROM tab1 AS cor0
----
-72
0
-72
0
-72
0

skipif mysql # not compatible
query II rowsort label-5900
SELECT - 72 AS col0, + 27 / + 56 FROM tab1 AS cor0
----
-72
0
-72
0
-72
0

query I rowsort
SELECT ALL + - col2 AS col1 FROM tab0 AS cor0 WHERE - 92 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5902
SELECT ALL - + ( - - CAST( + col0 AS SIGNED ) ) + - col0 AS col2 FROM tab1 AS cor0
----
-102
-170
-182

skipif mysql # not compatible
query I rowsort label-5902
SELECT ALL - + ( - - CAST ( + col0 AS INTEGER ) ) + - col0 AS col2 FROM tab1 AS cor0
----
-102
-170
-182

onlyif mysql # aggregate syntax: 
query I rowsort label-5903
SELECT DISTINCT 85 * - COUNT( * ) AS col1 FROM tab1
----
-255

skipif mysql # not compatible
query I rowsort label-5903
SELECT DISTINCT 85 * - COUNT ( * ) AS col1 FROM tab1
----
-255

query II rowsort
SELECT - col1 - + col0 AS col1, col2 AS col2 FROM tab1
----
-138
68
-65
96
-90
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1 col0, - col0 AS col1 FROM tab0
----
1
-97
21
-87
81
-15

query III rowsort
SELECT * FROM tab2 cor0 WHERE + col1 BETWEEN ( + 65 ) AND col0
----
75
67
58

query I rowsort
SELECT ALL col1 + - + 89 AS col1 FROM tab1 cor0
----
-42
-75
-84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5908
SELECT DISTINCT - col0 * + 85 - - 55 + - CAST( NULL AS SIGNED ) * + 6 AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5908
SELECT DISTINCT - col0 * + 85 - - 55 + - CAST ( NULL AS INTEGER ) * + 6 AS col0 FROM tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1, col0 * - + col1 col2 FROM tab1 AS cor0
----
14
-714
47
-4277
5
-425

onlyif mysql # aggregate syntax: 
query I rowsort label-5910
SELECT - + MAX( - col0 ) AS col2 FROM tab1 cor0
----
51

skipif mysql # not compatible
query I rowsort label-5910
SELECT - + MAX ( - col0 ) AS col2 FROM tab1 cor0
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-5911
SELECT COUNT( * ) * + + COUNT( * ) AS col2 FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-5911
SELECT COUNT ( * ) * + + COUNT ( * ) AS col2 FROM tab2
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-5912
SELECT DISTINCT + MIN( DISTINCT + col2 ) AS col0 FROM tab2
----
23

skipif mysql # not compatible
query I rowsort label-5912
SELECT DISTINCT + MIN ( DISTINCT + col2 ) AS col0 FROM tab2
----
23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col2 * 18 col1, col2 AS col0 FROM tab2
----
1044
58
414
23
720
40

onlyif mysql # aggregate syntax: 
query I rowsort label-5914
SELECT DISTINCT - COUNT( * ) * 87 AS col2 FROM tab1
----
-261

skipif mysql # not compatible
query I rowsort label-5914
SELECT DISTINCT - COUNT ( * ) * 87 AS col2 FROM tab1
----
-261

query I rowsort
SELECT DISTINCT + - 86 + + 86 AS col2 FROM tab0 WHERE NOT - col0 * col0 * - - col1 + + + col0 * + col0 + - col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5916
SELECT ALL + + ( - - 15 ) * - COUNT( * ) * - COUNT( * ) * - 82, COUNT( + col2 ) AS col2 FROM tab2 WHERE NOT - - col0 * col2 - - + col0 IS NOT NULL
----
0
0

skipif mysql # not compatible
query II rowsort label-5916
SELECT ALL + + ( - - 15 ) * - COUNT ( * ) * - COUNT ( * ) * - 82, COUNT ( + col2 ) AS col2 FROM tab2 WHERE NOT - - col0 * col2 - - + col0 IS NOT NULL
----
0
0

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN NULL AND - 46
----

query I rowsort
SELECT col0 AS col1 FROM tab0 cor0 WHERE NOT ( NOT + col2 * + + col0 IS NOT NULL )
----
15
87
97

query I rowsort
SELECT ALL - + 62 + + + 49 AS col0 FROM tab0 AS cor0 WHERE NOT col0 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + 33 > NULL
----

query I rowsort
SELECT - - 56 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 9c4523312174730bbc525b9977aa99fa

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5922
SELECT DISTINCT col2 * - col2 + + + CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5922
SELECT DISTINCT col2 * - col2 + + + CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col1 * + col0 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5924
SELECT ALL 4 + + ( - col1 ) - CAST( NULL AS SIGNED ) * - - 37 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5924
SELECT ALL 4 + + ( - col1 ) - CAST ( NULL AS INTEGER ) * - - 37 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col1 FROM tab0 cor0 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT - + 96, col1 FROM tab2 cor0
----
-96
51
-96
67
-96
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5927
SELECT + + CAST( + col1 AS SIGNED ) * + - col2 + + 16 FROM tab0 AS cor0
----
-194
-3791
-83

skipif mysql # not compatible
query I rowsort label-5927
SELECT + + CAST ( + col1 AS INTEGER ) * + - col2 + + 16 FROM tab0 AS cor0
----
-194
-3791
-83

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( col0 IS NOT NULL )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE ( NOT - col0 + col0 - + 65 >= NULL )
----

query I rowsort
SELECT ALL ( + col2 ) * - col2 AS col2 FROM tab2
----
-1600
-3364
-529

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col2 >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5932
SELECT - CAST( + 54 AS SIGNED ) FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to 4ecdb0f1b85f0d4fdc3a826efd9f2342

skipif mysql # not compatible
query I rowsort label-5932
SELECT - CAST ( + 54 AS INTEGER ) FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to 4ecdb0f1b85f0d4fdc3a826efd9f2342

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + - col0 * col0 * - + ( - + ( + - 54 ) ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 AS col1, - col0 col0 FROM tab2 AS cor0
----
51
-46
67
-75
77
-64

onlyif mysql # DIV for integer division: 
query I rowsort label-5935
SELECT + + 23 DIV - 93 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5935
SELECT + + 23 / - 93 FROM tab1 AS cor0
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NULL ) BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND + col0 + 9
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 15 > NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col0 col0, + ( - 22 ) FROM tab1
----
-51
-22
-85
-22
-91
-22

query I rowsort
SELECT 87 * - 59 AS col0 FROM tab0
----
-5133
-5133
-5133

query III rowsort
SELECT * FROM tab2 WHERE NOT + col2 BETWEEN col1 / col0 AND - - col2
----

query I rowsort
SELECT 28 * - col2 AS col2 FROM tab0
----
-1316
-2772
-280

query II rowsort
SELECT 41, - 90 AS col2 FROM tab0
----
41
-90
41
-90
41
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-5944
SELECT 36 * - + ( + COUNT( * ) ) AS col0 FROM tab1
----
-108

skipif mysql # not compatible
query I rowsort label-5944
SELECT 36 * - + ( + COUNT ( * ) ) AS col0 FROM tab1
----
-108

onlyif mysql # aggregate syntax: 
query II rowsort label-5945
SELECT - COUNT( ALL - col1 ), + COUNT( * ) AS col0 FROM tab0
----
-3
3

skipif mysql # not compatible
query II rowsort label-5945
SELECT - COUNT ( ALL - col1 ), + COUNT ( * ) AS col0 FROM tab0
----
-3
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + + col2 col2 FROM tab1
----
3481
4624
9216

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5947
SELECT - 72 * + + CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5947
SELECT - 72 * + + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5948
SELECT DISTINCT 87 * + COUNT( ALL 4 ) FROM tab1
----
261

skipif mysql # not compatible
query I rowsort label-5948
SELECT DISTINCT 87 * + COUNT ( ALL 4 ) FROM tab1
----
261

onlyif mysql # DIV for integer division: 
query I rowsort label-5949
SELECT DISTINCT col1 + - 95 - col0 * - col1 + col0 DIV - col2 AS col0 FROM tab1
----
334
4228
633

skipif mysql # not compatible
query I rowsort label-5949
SELECT DISTINCT col1 + - 95 - col0 * - col1 + col0 / - col2 AS col0 FROM tab1
----
334
4228
633

query I rowsort
SELECT ALL 68 + - ( - - col1 ) FROM tab1 AS cor0
----
21
54
63

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 77 + 33 IS NOT NULL
----

query I rowsort
SELECT + + col1 * - 15 * - col0 * ( - ( - + 30 ) ) + col2 AS col2 FROM tab2 AS cor0
----
1055723
2217640
2261308

query I rowsort
SELECT DISTINCT - ( - + ( - + col1 ) ) FROM tab2 AS cor0 WHERE + col0 IS NOT NULL
----
-51
-67
-77

query I rowsort
SELECT ALL - 5 + + col2 FROM tab2 cor0
----
18
35
53

query I rowsort
SELECT DISTINCT + col2 + + 93 * + col2 AS col1 FROM tab2 AS cor0
----
2162
3760
5452

onlyif mysql # aggregate syntax: 
query I rowsort label-5956
SELECT + COUNT( * ) + + - COUNT( - col0 ) AS col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5956
SELECT + COUNT ( * ) + + - COUNT ( - col0 ) AS col2 FROM tab2 AS cor0
----
0

query I rowsort
SELECT 86 + 28 FROM tab1
----
114
114
114

query I rowsort
SELECT + col2 + - 36 FROM tab2
----
-13
22
4

query II rowsort
SELECT DISTINCT + 93 AS col2, col1 FROM tab2
----
93
51
93
67
93
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5960
SELECT col1 * col1 + CAST( + - 39 AS SIGNED ) FROM tab1
----
-14
157
2170

skipif mysql # not compatible
query I rowsort label-5960
SELECT col1 * col1 + CAST ( + - 39 AS INTEGER ) FROM tab1
----
-14
157
2170

query III rowsort
SELECT * FROM tab1 WHERE col1 * - + 95 * + col2 * - 30 * - col2 + col0 * + - col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 68 * - + 27 + + 41 FROM tab2 WHERE + - col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5963
SELECT DISTINCT + COUNT( * ) + - 53 AS col2 FROM tab2
----
-50

skipif mysql # not compatible
query I rowsort label-5963
SELECT DISTINCT + COUNT ( * ) + - 53 AS col2 FROM tab2
----
-50

query III rowsort
SELECT ALL * FROM tab2 WHERE - 9 >= - - col0
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5965
SELECT + col1 * - + CAST( - col1 AS DECIMAL ) * + - col0 AS col1 FROM tab0 AS cor0 WHERE NULL >= NULL
----

skipif mysql # not compatible
query I rowsort label-5965
SELECT + col1 * - + CAST ( - col1 AS REAL ) * + - col0 AS col1 FROM tab0 AS cor0 WHERE NULL >= NULL
----

query I rowsort
SELECT 86 AS col1 FROM tab2 AS cor0 WHERE - col0 NOT BETWEEN + - col2 AND NULL
----
86
86
86

query I rowsort
SELECT - 88 - - col1 * ( col1 ) FROM tab0 AS cor0
----
-87
353
6473

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 55 <> - - col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 25 col1 FROM tab2 AS cor0
----
25
25
25

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col2 * col0 col1 FROM tab1 AS cor0
----
4896
5015
6188

onlyif mysql # DIV for integer division: 
query I rowsort label-5971
SELECT + col0 DIV + col1 + - + 32 AS col1 FROM tab2 AS cor0
----
-31
-32
-32

skipif mysql # not compatible
query I rowsort label-5971
SELECT + col0 / + col1 + - + 32 AS col1 FROM tab2 AS cor0
----
-31
-32
-32

query I rowsort
SELECT DISTINCT - 30 FROM tab0 AS cor0 WHERE + col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5973
SELECT DISTINCT + - MIN( col0 ) AS col1 FROM tab1 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-5973
SELECT DISTINCT + - MIN ( col0 ) AS col1 FROM tab1 AS cor0
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-5974
SELECT DISTINCT 57 * - - SUM( + col2 ) * - 5 col1 FROM tab0 cor0
----
-44460

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5974
SELECT DISTINCT 57 * - - SUM ( + col2 ) * - 5 col1 FROM tab0 cor0
----
-44460

query I rowsort
SELECT ALL - + col0 * + + col0 * - - 85 FROM tab2 AS cor0
----
-179860
-348160
-478125

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5976
SELECT DISTINCT CAST( NULL AS SIGNED ) * - - CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5976
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

query II rowsort
SELECT 82 AS col1, col0 + 77 + + + col1 + + col0 AS col0 FROM tab0
----
82
188
82
272
82
272

query I rowsort
SELECT ALL + 34 * - - col0 AS col0 FROM tab2
----
1564
2176
2550

query I rowsort
SELECT 25 * + col2 FROM tab2
----
1000
1450
575

onlyif mysql # aggregate syntax: 
query II rowsort label-5980
SELECT ALL - MIN( + 64 ) col2, - ( + - 47 ) FROM tab2, tab2 cor0
----
-64
47

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5980
SELECT ALL - MIN ( + 64 ) col2, - ( + - 47 ) FROM tab2, tab2 cor0
----
-64
47

query I rowsort
SELECT ALL - + col0 * + ( col1 ) + + col0 FROM tab2 AS cor0
----
-2300
-4864
-4950

onlyif mysql # DIV for integer division: 
query I rowsort label-5982
SELECT + - col0 DIV 57 AS col1 FROM tab2 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-5982
SELECT + - col0 / 57 AS col1 FROM tab2 AS cor0
----
-1
-1
0

query II rowsort
SELECT ALL - + 26 * col2 + - col0 + - + ( + + 78 ) + - + 99 AS col1, + col2 FROM tab2 AS cor0
----
-1281
40
-1760
58
-821
23

query I rowsort
SELECT + + 14 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 83e5779d2487d12495e7d816c797264f

query I rowsort
SELECT ALL - 54 * + col1 + - col2 * + - col0 + - 1 FROM tab0
----
-265
-3670
9548

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col1 <= NULL
----

query I rowsort
SELECT ALL + col2 + col2 + + 34 FROM tab1 AS cor0
----
152
170
226

query I rowsort
SELECT ALL - col2 * + + 64 FROM tab0 AS cor0
----
-3008
-6336
-640

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5989
SELECT DISTINCT + 28 + ( + - ( + 3 ) ) + COUNT( * ) DIV MAX( col2 ) * + + 73 AS col0 FROM tab1 AS cor0
----
25

skipif mysql # not compatible
query I rowsort label-5989
SELECT DISTINCT + 28 + ( + - ( + 3 ) ) + COUNT ( * ) / MAX ( col2 ) * + + 73 AS col0 FROM tab1 AS cor0
----
25

query I rowsort
SELECT + - 88 * - col1 FROM tab2 cor0
----
4488
5896
6776

onlyif mysql # aggregate syntax: 
query I rowsort label-5991
SELECT + SUM( DISTINCT - col1 ) * + - 94 - + ( - - 72 ) - 49 FROM tab2 AS cor0
----
18209

skipif mysql # not compatible
query I rowsort label-5991
SELECT + SUM ( DISTINCT - col1 ) * + - 94 - + ( - - 72 ) - 49 FROM tab2 AS cor0
----
18209

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5992
SELECT - CAST( NULL AS SIGNED ) + + col0 FROM tab1 cor0 WHERE NULL <= ( NULL )
----

skipif mysql # not compatible
query I rowsort label-5992
SELECT - CAST ( NULL AS INTEGER ) + + col0 FROM tab1 cor0 WHERE NULL <= ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5993
SELECT ALL + + MAX( - - col2 ) + 84 + - - COUNT( ALL + col2 ) FROM tab0 AS cor0
----
186

skipif mysql # not compatible
query I rowsort label-5993
SELECT ALL + + MAX ( - - col2 ) + 84 + - - COUNT ( ALL + col2 ) FROM tab0 AS cor0
----
186

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col1 col0, + col1 FROM tab2 AS cor0
----
51
51
67
67
77
77

query I rowsort
SELECT DISTINCT - col0 - + col1 + - col1 AS col1 FROM tab2 AS cor0
----
-148
-209
-218

onlyif mysql # aggregate syntax: 
query I rowsort label-5996
SELECT DISTINCT - + ( COUNT( * ) ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5996
SELECT DISTINCT - + ( COUNT ( * ) ) FROM tab1 AS cor0
----
-3

query I rowsort
SELECT + + 24 * - 40 * - - ( + col2 ) * col0 AS col2 FROM tab1 cor0 WHERE 96 NOT IN ( - - col0 + + - 12, + col1 )
----
-4700160
-4814400
-5940480

query I rowsort
SELECT + + col2 FROM tab1 WHERE col2 NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab2 WHERE - col2 + - + 29 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + 22 AS col0 FROM tab0
----
22
22
22

query I rowsort
SELECT ALL AVG ( col2 ) - + + 64 AS col2 FROM tab2 WHERE NOT NULL = col0 + col0 OR NULL < - col0
----
NULL

query I rowsort
SELECT + 91 + + - col1 * + 62 FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6003
SELECT ALL CAST( col2 AS SIGNED ) AS col2, - col2 AS col2 FROM tab1
----
59
-59
68
-68
96
-96

skipif mysql # not compatible
query II rowsort label-6003
SELECT ALL CAST ( col2 AS INTEGER ) AS col2, - col2 AS col2 FROM tab1
----
59
-59
68
-68
96
-96

query I rowsort
SELECT ALL ( + + col1 ) + col2 FROM tab0
----
100
128
31

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6005
SELECT + COUNT( ALL - 88 ) DIV - - 80 * ( ( + COUNT( ALL + col0 ) ) ) * - 21 + + 42 AS col1 FROM tab0 AS cor0
----
42

skipif mysql # not compatible
query I rowsort label-6005
SELECT + COUNT ( ALL - 88 ) / - - 80 * ( ( + COUNT ( ALL + col0 ) ) ) * - 21 + + 42 AS col1 FROM tab0 AS cor0
----
42

query I rowsort
SELECT + 67 + - 62 * + 68 FROM tab1 cor0
----
-4149
-4149
-4149

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL <= - 90 * - - col0 / + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6008
SELECT DISTINCT + - COUNT( * ) * - COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
81

skipif mysql # not compatible
query I rowsort label-6008
SELECT DISTINCT + - COUNT ( * ) * - COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
81

query III rowsort
SELECT * FROM tab1 WHERE NOT 6 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6010
SELECT 63 * - COUNT( * ) + + COUNT( col1 ) + - 18 FROM tab1 AS cor0
----
-204

skipif mysql # not compatible
query I rowsort label-6010
SELECT 63 * - COUNT ( * ) + + COUNT ( col1 ) + - 18 FROM tab1 AS cor0
----
-204

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 * col2 + - col0 + 44 col2, - col2 AS col0 FROM tab2 AS cor0
----
1580
-40
3333
-58
527
-23

query I rowsort
SELECT ALL - + col2 AS col0 FROM tab2 cor0 WHERE NOT col0 + + + 96 - 38 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6013
SELECT ALL + MIN( ALL + + 47 ) FROM tab2 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-6013
SELECT ALL + MIN ( ALL + + 47 ) FROM tab2 AS cor0
----
47

query I rowsort
SELECT DISTINCT - col2 * + - 11 FROM tab1 cor0
----
1056
649
748

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col0 - - 26 + + + col2 + - + col0 BETWEEN NULL AND + + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + ( - 98 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-6017
SELECT + MAX( ALL + col0 ) AS col2 FROM tab0
----
97

skipif mysql # not compatible
query I rowsort label-6017
SELECT + MAX ( ALL + col0 ) AS col2 FROM tab0
----
97

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6018
SELECT ALL * FROM tab2 WHERE - - col1 + - CAST( NULL AS SIGNED ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-6018
SELECT ALL * FROM tab2 WHERE - - col1 + - CAST ( NULL AS INTEGER ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-6019
SELECT ALL SUM( col1 ) AS col2 FROM tab0
----
103

skipif mysql # not compatible
query I rowsort label-6019
SELECT ALL SUM ( col1 ) AS col2 FROM tab0
----
103

query I rowsort
SELECT DISTINCT - ( + col2 ) * - col2 * - col0 AS col0 FROM tab1 AS cor0
----
-295885
-420784
-470016

onlyif mysql # aggregate syntax: 
query I rowsort label-6021
SELECT DISTINCT - 15 + ( - COUNT( * ) ) AS col2 FROM tab2 cor0
----
-18

skipif mysql # not compatible
query I rowsort label-6021
SELECT DISTINCT - 15 + ( - COUNT ( * ) ) AS col2 FROM tab2 cor0
----
-18

query I rowsort
SELECT + ( + 42 ) FROM tab0 cor0
----
42
42
42

query I rowsort
SELECT - col1 FROM tab2 AS cor0 WHERE col0 IS NOT NULL
----
-51
-67
-77

query I rowsort
SELECT - 91 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 745d1c3a09d935465cad552325c5c945

query I rowsort
SELECT DISTINCT col0 + - + col2 FROM tab0 AS cor0
----
-2
-32
77

query I rowsort
SELECT DISTINCT - + col0 + + col2 - + + col1 * - 2 + + col1 * + col0 AS col1 FROM tab1 AS cor0
----
409
4348
787

query I rowsort
SELECT + 62 FROM tab1 cor0 WHERE col0 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6028
SELECT DISTINCT + CAST( - col1 AS SIGNED ) * + 43 + - 69 + + 14 + - 10 AS col2 FROM tab0 AS cor0 WHERE 66 <= + col1
----
-3548

skipif mysql # not compatible
query I rowsort label-6028
SELECT DISTINCT + CAST ( - col1 AS INTEGER ) * + 43 + - 69 + + 14 + - 10 AS col2 FROM tab0 AS cor0 WHERE 66 <= + col1
----
-3548

query II rowsort
SELECT ALL - 68 AS col1, - 42 + - col0 + 66 FROM tab2
----
-68
-22
-68
-40
-68
-51

query I rowsort
SELECT ( + 4 ) - 33 AS col0 FROM tab2 WHERE + 47 IS NOT NULL
----
-29
-29
-29

query II rowsort
SELECT DISTINCT - col1 AS col1, - 12 FROM tab1
----
-14
-12
-47
-12
-5
-12

query I rowsort
SELECT ALL + 83 + col0 AS col1 FROM tab2
----
129
147
158

query II rowsort
SELECT DISTINCT col1 AS col2, - col2 AS col1 FROM tab2
----
51
-23
67
-58
77
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-6034
SELECT + MIN( ALL + 13 ) col1 FROM tab2
----
13

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6034
SELECT + MIN ( ALL + 13 ) col1 FROM tab2
----
13

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6035
SELECT ALL * FROM tab0 AS cor0 WHERE - col1 NOT IN ( + CAST( NULL AS DECIMAL ), - col0, 33 - + 46, 19 * col0 )
----

skipif mysql # not compatible
query III rowsort label-6035
SELECT ALL * FROM tab0 AS cor0 WHERE - col1 NOT IN ( + CAST ( NULL AS REAL ), - col0, 33 - + 46, 19 * col0 )
----

query I rowsort
SELECT ALL + + ( - - col0 ) FROM tab0 cor0
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-6037
SELECT + MIN( + + 29 ) AS col0 FROM tab0 AS cor0
----
29

skipif mysql # not compatible
query I rowsort label-6037
SELECT + MIN ( + + 29 ) AS col0 FROM tab0 AS cor0
----
29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6038
SELECT ALL + ( SUM( ALL + + CAST( NULL AS SIGNED ) ) ) FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6038
SELECT ALL + ( SUM ( ALL + + CAST ( NULL AS INTEGER ) ) ) FROM tab2 cor0
----
NULL

query I rowsort
SELECT + 44 * + col1 * col0 AS col1 FROM tab0 AS cor0
----
4268
53460
80388

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + + 52, col2 col1 FROM tab1 AS cor0
----
52
59
52
68
52
96

onlyif mysql # aggregate syntax: 
query I rowsort label-6041
SELECT - + COUNT( * ) col0 FROM tab1 cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6041
SELECT - + COUNT ( * ) col0 FROM tab1 cor0
----
-3

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NULL BETWEEN NULL AND + 13 * + 38 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6043
SELECT DISTINCT MAX( ALL + + 42 ) AS col2 FROM tab2 cor0
----
42

skipif mysql # not compatible
query I rowsort label-6043
SELECT DISTINCT MAX ( ALL + + 42 ) AS col2 FROM tab2 cor0
----
42

query I rowsort
SELECT + 32 AS col2 FROM tab1 cor0 WHERE NOT NULL IN ( + col1, 71 + - - col2, col0 / - + col2 * + 46, col0 * - col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6045
SELECT - col0 DIV - 39 AS col0 FROM tab1 AS cor0
----
1
2
2

skipif mysql # not compatible
query I rowsort label-6045
SELECT - col0 / - 39 AS col0 FROM tab1 AS cor0
----
1
2
2

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NOT col2 IS NOT NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6047
SELECT DISTINCT - CAST( NULL AS DECIMAL ) * + - col0 col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6047
SELECT DISTINCT - CAST ( NULL AS REAL ) * + - col0 col0 FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + col0 = - 31
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - - col1 * + - ( - - 61 ) * + col0 + - + col2 * col1 AS col0 FROM tab1 AS cor0
----
-26220
-264093
-44898

query I rowsort
SELECT - col0 * - ( + col0 ) + + col1 FROM tab1 AS cor0
----
2615
7230
8328

query II rowsort
SELECT - col2, col0 AS col1 FROM tab2
----
-23
46
-40
64
-58
75

query I rowsort
SELECT ALL + col0 + + col2 * 68 * + 12 * - + col1 * 64 AS col0 FROM tab1
----
-15405995
-166907813
-70189005

query I rowsort
SELECT + + 93 + - ( - col0 ) AS col2 FROM tab1 AS cor0
----
144
178
184

query I rowsort
SELECT DISTINCT col0 + col2 + + + col2 + col0 + 90 AS col0 FROM tab1 AS cor0
----
378
384
408

onlyif mysql # aggregate syntax: 
query I rowsort label-6055
SELECT ALL - COUNT( * ) AS col0 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-6055
SELECT ALL - COUNT ( * ) AS col0 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6056
SELECT CAST( NULL AS SIGNED ) + - 5 col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6056
SELECT CAST ( NULL AS INTEGER ) + - 5 col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT col2 * col2 * - 88 + col1 AS col2 FROM tab1
----
-306323
-406865
-810994

onlyif mysql # DIV for integer division: 
query I rowsort label-6058
SELECT DISTINCT + col0 DIV + ( - + col1 ) FROM tab1 WHERE NULL IS NULL
----
-1
-17
-3

skipif mysql # not compatible
query I rowsort label-6058
SELECT DISTINCT + col0 / + ( - + col1 ) FROM tab1 WHERE NULL IS NULL
----
-1
-17
-3

query I rowsort
SELECT + 1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 001554c2952f1a80506b182ee04686f5

query I rowsort
SELECT ALL - 3 + - 80 AS col1 FROM tab1 AS cor0
----
-83
-83
-83

query I rowsort
SELECT ALL + 33 + + col2 + - col0 - - col2 * - 19 FROM tab1 AS cor0
----
-1114
-1282
-1746

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6062
SELECT ALL * FROM tab2 AS cor0 WHERE 76 + + + CAST( NULL AS SIGNED ) = - col2
----

skipif mysql # not compatible
query III rowsort label-6062
SELECT ALL * FROM tab2 AS cor0 WHERE 76 + + + CAST ( NULL AS INTEGER ) = - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6063
SELECT DISTINCT 86 + + MIN( + col0 ) AS col1 FROM tab0 AS cor0
----
101

skipif mysql # not compatible
query I rowsort label-6063
SELECT DISTINCT 86 + + MIN ( + col0 ) AS col1 FROM tab0 AS cor0
----
101

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 32 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6065
SELECT ALL 93 - - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6065
SELECT ALL 93 - - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - ( - col0 ) * + - 66 FROM tab2
----
-3036
-4224
-4950

onlyif mysql # aggregate syntax: 
query I rowsort label-6067
SELECT ALL + 5 - + - MIN( DISTINCT - + col2 ) * - + 32 col1 FROM tab0
----
3173

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6067
SELECT ALL + 5 - + - MIN ( DISTINCT - + col2 ) * - + 32 col1 FROM tab0
----
3173

query I rowsort
SELECT + col2 - col2 + 65 + - ( + col0 ) AS col2 FROM tab0
----
-22
-32
50

query I rowsort
SELECT DISTINCT ( + 96 ) AS col2 FROM tab0
----
96

query I rowsort
SELECT - col0 + - col2 + + col0 FROM tab2
----
-23
-40
-58

onlyif mysql # DIV for integer division: 
query I rowsort label-6071
SELECT - ( + 86 ) DIV - + col1 + + ( + col2 ) FROM tab2
----
24
41
59

skipif mysql # not compatible
query I rowsort label-6071
SELECT - ( + 86 ) / - + col1 + + ( + col2 ) FROM tab2
----
24
41
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + - 97 + col2 AS col1, - col2 * + col2 col0 FROM tab0 WHERE NOT + 2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-6073
SELECT COUNT( * ) * - ( - + 64 ) AS col1, - 79 + + + 69 FROM tab2
----
192
-10

skipif mysql # not compatible
query II rowsort label-6073
SELECT COUNT ( * ) * - ( - + 64 ) AS col1, - 79 + + + 69 FROM tab2
----
192
-10

query I rowsort
SELECT ALL + ( + - col2 ) AS col0 FROM tab1 AS cor0
----
-59
-68
-96

query I rowsort
SELECT col2 * ( + + 48 ) * 96 FROM tab0 AS cor0
----
216576
456192
46080

query II rowsort
SELECT ALL - col2 AS col1, 23 AS col1 FROM tab1
----
-59
23
-68
23
-96
23

onlyif mysql # aggregate syntax: 
query I rowsort label-6077
SELECT ALL - MIN( ALL 29 ) FROM tab0
----
-29

skipif mysql # not compatible
query I rowsort label-6077
SELECT ALL - MIN ( ALL 29 ) FROM tab0
----
-29

query II rowsort
SELECT - col2 AS col2, 67 AS col2 FROM tab2 AS cor0
----
-23
67
-40
67
-58
67

query II rowsort
SELECT + 95, + ( + - 39 ) AS col1 FROM tab0 cor0
----
95
-39
95
-39
95
-39

onlyif mysql # DIV for integer division: 
query II rowsort label-6080
SELECT DISTINCT col1 AS col2, - col1 DIV + - 87 * - col2 FROM tab1 AS cor0
----
14
0
47
0
5
0

skipif mysql # not compatible
query II rowsort label-6080
SELECT DISTINCT col1 AS col2, - col1 / + - 87 * - col2 FROM tab1 AS cor0
----
14
0
47
0
5
0

query I rowsort
SELECT DISTINCT - - ( - 8 ) / - col0 FROM tab0 AS cor0 WHERE NOT col2 IS NOT NULL
----

query II rowsort
SELECT + 67 + ( - 3 ), - ( + col1 ) AS col0 FROM tab2
----
64
-51
64
-67
64
-77

query III rowsort
SELECT * FROM tab2 WHERE - 53 >= ( NULL )
----

query I rowsort
SELECT ALL 47 FROM tab1 WHERE NOT - - col0 < NULL
----

query I rowsort
SELECT col2 AS col0 FROM tab2 WHERE - col2 + col1 NOT IN ( 58, + 38, + col2 + col0 )
----
23
40
58

query III rowsort
SELECT * FROM tab0 WHERE + 83 * + - col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query II rowsort label-6087
SELECT - COUNT( * ) AS col2, COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-9
9

skipif mysql # not compatible
query II rowsort label-6087
SELECT - COUNT ( * ) AS col2, COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-9
9

onlyif mysql # aggregate syntax: 
query I rowsort label-6088
SELECT 27 + + + COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
36

skipif mysql # not compatible
query I rowsort label-6088
SELECT 27 + + + COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
36

query I rowsort
SELECT DISTINCT + 5 + col0 FROM tab2 AS cor0
----
51
69
80

query II rowsort
SELECT + - col0 + + col0 * - col0, col2 AS col1 FROM tab1 AS cor0
----
-2652
96
-7310
59
-8372
68

query I rowsort
SELECT ALL - col1 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6092
SELECT - MIN( - + 64 ) FROM tab2 AS cor0
----
64

skipif mysql # not compatible
query I rowsort label-6092
SELECT - MIN ( - + 64 ) FROM tab2 AS cor0
----
64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6093
SELECT DISTINCT 19 * - CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-6093
SELECT DISTINCT 19 * - CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6094
SELECT DISTINCT - CAST( - col2 AS SIGNED ) * - 26 FROM tab1
----
-1534
-1768
-2496

skipif mysql # not compatible
query I rowsort label-6094
SELECT DISTINCT - CAST ( - col2 AS INTEGER ) * - 26 FROM tab1
----
-1534
-1768
-2496

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6095
SELECT DISTINCT - 56 * - SUM( ALL CAST( - ( + col0 ) AS SIGNED ) ) AS col2 FROM tab0
----
-11144

skipif mysql # not compatible
query I rowsort label-6095
SELECT DISTINCT - 56 * - SUM ( ALL CAST ( - ( + col0 ) AS INTEGER ) ) AS col2 FROM tab0
----
-11144

query I rowsort
SELECT 16 * + 85 FROM tab2
----
1360
1360
1360

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - 37 < + 99
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6098
SELECT - CAST( - 13 AS SIGNED ) FROM tab0 AS cor0
----
13
13
13

skipif mysql # not compatible
query I rowsort label-6098
SELECT - CAST ( - 13 AS INTEGER ) FROM tab0 AS cor0
----
13
13
13

query III rowsort
SELECT * FROM tab2 WHERE NOT + 86 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-6100
SELECT DISTINCT MAX( DISTINCT - + col0 ) AS col2 FROM tab2
----
-46

skipif mysql # not compatible
query I rowsort label-6100
SELECT DISTINCT MAX ( DISTINCT - + col0 ) AS col2 FROM tab2
----
-46

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 25 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6102
SELECT ALL COUNT( * ) + + CAST( NULL AS SIGNED ) AS col1 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6102
SELECT ALL COUNT ( * ) + + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 cor0
----
NULL

query II rowsort
SELECT - col1 AS col0, 47 * - col2 FROM tab1 AS cor0
----
-14
-4512
-47
-3196
-5
-2773

query I rowsort
SELECT ALL + - 71 * - col0 FROM tab2 cor0
----
3266
4544
5325

query I rowsort
SELECT - col2 * - 43 FROM tab0 AS cor0
----
2021
4257
430

query I rowsort
SELECT ALL + 69 * - + col0 FROM tab2 AS cor0
----
-3174
-4416
-5175

query II rowsort
SELECT ALL - 96, + 62 FROM tab1 cor0 WHERE NOT NULL NOT BETWEEN - col0 + + - 17 + - col1 / - + col2 AND + - 90 * - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6108
SELECT + COUNT( * ) * - 58 FROM tab1 AS cor0
----
-174

skipif mysql # not compatible
query I rowsort label-6108
SELECT + COUNT ( * ) * - 58 FROM tab1 AS cor0
----
-174

onlyif mysql # DIV for integer division: 
query I rowsort label-6109
SELECT + col0 DIV + 46 AS col1 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-6109
SELECT + col0 / + 46 AS col1 FROM tab2 AS cor0
----
1
1
1

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - 75 * - col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT ALL + + 39, col2 + - - 74 AS col0 FROM tab0 AS cor0
----
39
121
39
173
39
84

query I rowsort
SELECT DISTINCT + 56 + + 57 * col2 FROM tab0
----
2735
5699
626

onlyif mysql # DIV for integer division: 
query I rowsort label-6113
SELECT col1 * col0 DIV - col1 AS col0 FROM tab1
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-6113
SELECT col1 * col0 / - col1 AS col0 FROM tab1
----
-51
-85
-91

query II rowsort
SELECT col2, - col1 * + 63 FROM tab2
----
23
-3213
40
-4851
58
-4221

query I rowsort
SELECT ALL + col2 * - 84 + + 95 + + col1 * col1 AS col1 FROM tab1
----
-3408
-4836
-7773

onlyif mysql # aggregate syntax: 
query I rowsort label-6116
SELECT ALL COUNT( * ) + 6 AS col2 FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-6116
SELECT ALL COUNT ( * ) + 6 AS col2 FROM tab0
----
9

query I rowsort
SELECT DISTINCT + - 9 + 35 AS col1 FROM tab1 AS cor0 WHERE col0 * 49 IS NOT NULL
----
26

query I rowsort
SELECT DISTINCT - ( - - 82 ) + + col0 AS col1 FROM tab2 AS cor0
----
-18
-36
-7

query I rowsort
SELECT ALL - - col2 + - col0 * col1 FROM tab1 AS cor0
----
-366
-4209
-618

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6120
SELECT + col1 + - CAST( + col2 AS SIGNED ) FROM tab0 AS cor0
----
-98
11
34

skipif mysql # not compatible
query I rowsort label-6120
SELECT + col1 + - CAST ( + col2 AS INTEGER ) FROM tab0 AS cor0
----
-98
11
34

onlyif mysql # DIV for integer division: 
query I rowsort label-6121
SELECT - 75 + + + 68 DIV - ( + 75 ) FROM tab2 cor0
----
-75
-75
-75

skipif mysql # not compatible
query I rowsort label-6121
SELECT - 75 + + + 68 / - ( + 75 ) FROM tab2 cor0
----
-75
-75
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-6122
SELECT DISTINCT + + COUNT( * ) + 14 AS col2 FROM tab2 cor0 WHERE NOT 46 IS NULL
----
17

skipif mysql # not compatible
query I rowsort label-6122
SELECT DISTINCT + + COUNT ( * ) + 14 AS col2 FROM tab2 cor0 WHERE NOT 46 IS NULL
----
17

query I rowsort
SELECT - 44 + - col2 * 1 AS col2 FROM tab0
----
-143
-54
-91

onlyif mysql # DIV for integer division: 
query I rowsort label-6124
SELECT ALL col0 + - 46 + - 82 + 36 DIV - col1 FROM tab1
----
-37
-50
-79

skipif mysql # not compatible
query I rowsort label-6124
SELECT ALL col0 + - 46 + - 82 + 36 / - col1 FROM tab1
----
-37
-50
-79

query I rowsort
SELECT - 82 * + + col0 AS col0 FROM tab1
----
-4182
-6970
-7462

onlyif mysql # aggregate syntax: 
query I rowsort label-6126
SELECT DISTINCT COUNT( * ) FROM tab2 AS cor0 WHERE - + col2 <> + col2 * col1 AND NOT ( NULL IS NOT NULL )
----
3

skipif mysql # not compatible
query I rowsort label-6126
SELECT DISTINCT COUNT ( * ) FROM tab2 AS cor0 WHERE - + col2 <> + col2 * col1 AND NOT ( NULL IS NOT NULL )
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6127
SELECT + COUNT( * ) - - 96 AS col0 FROM tab1 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-6127
SELECT + COUNT ( * ) - - 96 AS col0 FROM tab1 AS cor0
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-6128
SELECT DISTINCT MIN( 64 ) FROM tab1 AS cor0
----
64

skipif mysql # not compatible
query I rowsort label-6128
SELECT DISTINCT MIN ( 64 ) FROM tab1 AS cor0
----
64

query I rowsort
SELECT DISTINCT col1 FROM tab1 AS cor0 WHERE 6 IS NOT NULL
----
14
47
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6130
SELECT DISTINCT + COUNT( * ) DIV + + 53 col1 FROM tab1
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6130
SELECT DISTINCT + COUNT ( * ) / + + 53 col1 FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-6131
SELECT DISTINCT - 36, SUM( DISTINCT col2 ) AS col2 FROM tab2
----
-36
121

skipif mysql # not compatible
query II rowsort label-6131
SELECT DISTINCT - 36, SUM ( DISTINCT col2 ) AS col2 FROM tab2
----
-36
121

query II rowsort
SELECT DISTINCT - col1, 77 AS col0 FROM tab1
----
-14
77
-47
77
-5
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6133
SELECT - 86 * - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6133
SELECT - 86 * - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6134
SELECT DISTINCT 66 * CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6134
SELECT DISTINCT 66 * CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT col2 = col2 + 80
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-6136
SELECT DISTINCT - MAX( DISTINCT - col1 ) AS col0 FROM tab1 WHERE ( NULL ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6136
SELECT DISTINCT - MAX ( DISTINCT - col1 ) AS col0 FROM tab1 WHERE ( NULL ) IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6137
SELECT DISTINCT 82 * - COUNT( * ) FROM tab1
----
-246

skipif mysql # not compatible
query I rowsort label-6137
SELECT DISTINCT 82 * - COUNT ( * ) FROM tab1
----
-246

onlyif mysql # DIV for integer division: 
query I rowsort label-6138
SELECT + 44 - col1 DIV - col2 AS col1 FROM tab1
----
44
44
44

skipif mysql # not compatible
query I rowsort label-6138
SELECT + 44 - col1 / - col2 AS col1 FROM tab1
----
44
44
44

onlyif mysql # aggregate syntax: 
query I rowsort label-6139
SELECT COUNT( DISTINCT col0 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-6139
SELECT COUNT ( DISTINCT col0 ) FROM tab1
----
3

query I rowsort
SELECT DISTINCT - 5 * + col1 AS col0 FROM tab1
----
-235
-25
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-6141
SELECT DISTINCT COUNT( * ) * SUM( + col1 ) AS col1 FROM tab0
----
309

skipif mysql # not compatible
query I rowsort label-6141
SELECT DISTINCT COUNT ( * ) * SUM ( + col1 ) AS col1 FROM tab0
----
309

onlyif mysql # aggregate syntax: 
query I rowsort label-6142
SELECT ALL + 46 * + MAX( ALL - 61 ) FROM tab0
----
-2806

skipif mysql # not compatible
query I rowsort label-6142
SELECT ALL + 46 * + MAX ( ALL - 61 ) FROM tab0
----
-2806

query I rowsort
SELECT - 88 AS col0 FROM tab0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND ( - col1 )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NULL ) NOT BETWEEN + col1 + col1 AND NULL
----

query III rowsort
SELECT * FROM tab0 WHERE - 92 * - 73 NOT BETWEEN ( NULL ) AND col0 + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL col0 FROM tab1 WHERE NOT ( NULL ) BETWEEN NULL AND - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6147
SELECT DISTINCT + MIN( col1 ) FROM tab1
----
5

skipif mysql # not compatible
query I rowsort label-6147
SELECT DISTINCT + MIN ( col1 ) FROM tab1
----
5

query I rowsort
SELECT 67 * col1 FROM tab1 WHERE NOT - 26 IS NULL
----
3149
335
938

query I rowsort
SELECT DISTINCT - 75 FROM tab1 WHERE NULL BETWEEN ( NULL ) AND ( NULL )
----

query I rowsort
SELECT ( col2 ) AS col0 FROM tab2 WHERE NULL IS NULL
----
23
40
58

query I rowsort
SELECT ( - 72 ) * ( 62 ) FROM tab2
----
-4464
-4464
-4464

query I rowsort
SELECT 25 + col1 AS col1 FROM tab2
----
102
76
92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 6 * - col1 col0 FROM tab2 WHERE ( NULL ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 31 * + 27 col0 FROM tab1
----
837
837
837

onlyif mysql # aggregate syntax: 
query I rowsort label-6155
SELECT COUNT( * ) * MAX( 63 * 11 ) FROM tab0
----
2079

skipif mysql # not compatible
query I rowsort label-6155
SELECT COUNT ( * ) * MAX ( 63 * 11 ) FROM tab0
----
2079

query I rowsort
SELECT ALL - 2 + + col1 FROM tab1
----
12
3
45

query I rowsort
SELECT DISTINCT - 20 + col1 FROM tab1
----
-15
-6
27

onlyif mysql # aggregate syntax: 
query I rowsort label-6158
SELECT 74 * + COUNT( * ) FROM tab0
----
222

skipif mysql # not compatible
query I rowsort label-6158
SELECT 74 * + COUNT ( * ) FROM tab0
----
222

query I rowsort
SELECT AVG ( ALL col2 ) FROM tab1 WHERE + col1 * + 41 < NULL
----
NULL

query I rowsort
SELECT DISTINCT + 43 * - col0 AS col0 FROM tab0
----
-3741
-4171
-645

query I rowsort
SELECT - 0 * col1 AS col0 FROM tab1
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6162
SELECT DISTINCT col0 + col1 DIV + col1 col0 FROM tab2
----
47
65
76

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6162
SELECT DISTINCT col0 + col1 / + col1 col0 FROM tab2
----
47
65
76

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col2 IN ( + 59 * + 59 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-6164
SELECT ALL + SUM( DISTINCT col1 ) * - 92 FROM tab1
----
-6072

skipif mysql # not compatible
query I rowsort label-6164
SELECT ALL + SUM ( DISTINCT col1 ) * - 92 FROM tab1
----
-6072

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + 0 * col2 = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6166
SELECT DISTINCT CAST( NULL AS SIGNED ) * - col2 AS col1 FROM tab2 cor0 WHERE ( col0 ) NOT IN ( + 30 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6166
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - col2 AS col1 FROM tab2 cor0 WHERE ( col0 ) NOT IN ( + 30 )
----
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL BETWEEN 53 AND NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL <= ( + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6169
SELECT COUNT( col2 ) AS col2 FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-6169
SELECT COUNT ( col2 ) AS col2 FROM tab2 cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6170
SELECT DISTINCT + COUNT( * ) FROM tab1 AS cor0 WHERE ( - 87 ) <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-6170
SELECT DISTINCT + COUNT ( * ) FROM tab1 AS cor0 WHERE ( - 87 ) <> NULL
----
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 7 = col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6172
SELECT + COUNT( * ) - - SUM( DISTINCT col0 ) FROM tab0
----
202

skipif mysql # not compatible
query I rowsort label-6172
SELECT + COUNT ( * ) - - SUM ( DISTINCT col0 ) FROM tab0
----
202

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab2 WHERE NOT 27 IS NULL
----
54 values hashing to ee5129bae5293935ae558ebe95290e29

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( 44 ) > col0
----
87
21
10
97
1
99

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT col1 <> - col1
----

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NULL <= - ( + col2 )
----

query I rowsort
SELECT + ( + 82 ) FROM tab0 cor0
----
82
82
82

onlyif mysql # aggregate syntax: 
query I rowsort label-6178
SELECT + MAX( ALL + col1 ) AS col2 FROM tab1
----
47

skipif mysql # not compatible
query I rowsort label-6178
SELECT + MAX ( ALL + col1 ) AS col2 FROM tab1
----
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6179
SELECT DISTINCT - CAST( 38 AS SIGNED ) AS col1 FROM tab0
----
-38

skipif mysql # not compatible
query I rowsort label-6179
SELECT DISTINCT - CAST ( 38 AS INTEGER ) AS col1 FROM tab0
----
-38

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT 94 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-6181
SELECT + SUM( col1 ) AS col0 FROM tab0
----
103

skipif mysql # not compatible
query I rowsort label-6181
SELECT + SUM ( col1 ) AS col0 FROM tab0
----
103

onlyif mysql # aggregate syntax: 
query I rowsort label-6182
SELECT ALL MIN( ALL ( 68 ) ) AS col0 FROM tab0
----
68

skipif mysql # not compatible
query I rowsort label-6182
SELECT ALL MIN ( ALL ( 68 ) ) AS col0 FROM tab0
----
68

query I rowsort
SELECT ALL col2 * - 39 + col1 FROM tab1 cor0
----
-2296
-2605
-3730

query I rowsort
SELECT - col1 * + - col2 FROM tab2 AS cor0
----
1173
3080
3886

onlyif mysql # aggregate syntax: 
query I rowsort label-6185
SELECT 21 * SUM( DISTINCT col0 ) FROM tab1 AS cor0 WHERE NOT col1 < NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6185
SELECT 21 * SUM ( DISTINCT col0 ) FROM tab1 AS cor0 WHERE NOT col1 < NULL
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE 71 < + col1
----
64
77
40

onlyif mysql # aggregate syntax: 
query I rowsort label-6187
SELECT - COUNT( * ) * - COUNT( * ) * + ( SUM( DISTINCT + col2 ) ) FROM tab0 AS cor0
----
1404

skipif mysql # not compatible
query I rowsort label-6187
SELECT - COUNT ( * ) * - COUNT ( * ) * + ( SUM ( DISTINCT + col2 ) ) FROM tab0 AS cor0
----
1404

query I rowsort
SELECT + 59 * - + col2 FROM tab0 AS cor0
----
-2773
-5841
-590

query I rowsort
SELECT 77 + - col1 + - - 72 - col2 * col1 AS col2 FROM tab2
----
-1075
-3008
-3804

query I rowsort
SELECT ALL + 45 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 60b9f935ee8e404d155a2f5e9515c050

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6191
SELECT DISTINCT + COUNT( ALL - + col1 ) + COUNT( col1 ) DIV + COUNT( * ) AS col1 FROM tab0
----
4

skipif mysql # not compatible
query I rowsort label-6191
SELECT DISTINCT + COUNT ( ALL - + col1 ) + COUNT ( col1 ) / + COUNT ( * ) AS col1 FROM tab0
----
4

query I rowsort
SELECT ALL col2 + + ( - 22 ) AS col2 FROM tab2
----
1
18
36

onlyif mysql # DIV for integer division: 
query I rowsort label-6193
SELECT 26 + - 11 DIV - + 83 * + ( + 94 ) AS col2 FROM tab0
----
26
26
26

skipif mysql # not compatible
query I rowsort label-6193
SELECT 26 + - 11 / - + 83 * + ( + 94 ) AS col2 FROM tab0
----
26
26
26

query I rowsort
SELECT ALL + col1 + + + col2 FROM tab2
----
117
125
74

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab1 cor1 WHERE NOT NULL IS NOT NULL
----
54 values hashing to 33a0493e77bf8151676c948b0676d6b9

query I rowsort
SELECT DISTINCT col2 * + col1 AS col0 FROM tab0 AS cor0 WHERE NOT - col2 < + col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 5 + - + col1 + - 66 col2 FROM tab0 AS cor0
----
-142
-62
-82

query I rowsort
SELECT ALL + - col0 + - + col1 * col2 FROM tab0 AS cor0
----
-196
-297
-3822

query I rowsort
SELECT DISTINCT - col1 * + 26 AS col2 FROM tab2 AS cor0
----
-1326
-1742
-2002

onlyif mysql # DIV for integer division: 
query I rowsort label-6200
SELECT ALL + 44 DIV - col0 + 3 FROM tab1 AS cor0
----
3
3
3

skipif mysql # not compatible
query I rowsort label-6200
SELECT ALL + 44 / - col0 + 3 FROM tab1 AS cor0
----
3
3
3

query I rowsort
SELECT + 90 * - col2 AS col1 FROM tab0 AS cor0
----
-4230
-8910
-900

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 94 + + + ( - - 56 ) col2 FROM tab2 AS cor0
----
150

onlyif mysql # aggregate syntax: 
query I rowsort label-6203
SELECT 75 * - + COUNT( * ) FROM tab2 AS cor0
----
-225

skipif mysql # not compatible
query I rowsort label-6203
SELECT 75 * - + COUNT ( * ) FROM tab2 AS cor0
----
-225

onlyif mysql # DIV for integer division: 
query II rowsort label-6204
SELECT + + col2 AS col1, col1 DIV + col0 * 49 FROM tab1 AS cor0
----
59
0
68
0
96
0

skipif mysql # not compatible
query II rowsort label-6204
SELECT + + col2 AS col1, col1 / + col0 * 49 FROM tab1 AS cor0
----
59
0
68
0
96
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6205
SELECT COUNT( * ) DIV + 5 AS col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6205
SELECT COUNT ( * ) / + 5 AS col2 FROM tab2 AS cor0
----
0

query I rowsort
SELECT + col2 * + + ( - - 88 ) AS col1 FROM tab1
----
5192
5984
8448

onlyif mysql # aggregate syntax: 
query II rowsort label-6207
SELECT DISTINCT - MIN( DISTINCT - - col0 ), ( - - 48 ) AS col0 FROM tab0
----
-15
48

skipif mysql # not compatible
query II rowsort label-6207
SELECT DISTINCT - MIN ( DISTINCT - - col0 ), ( - - 48 ) AS col0 FROM tab0
----
-15
48

query I rowsort
SELECT ALL + - 39 * - - col0 FROM tab1 WHERE NULL IS NULL
----
-1989
-3315
-3549

query III rowsort
SELECT * FROM tab2 WHERE ( col1 ) <= - 64
----

query I rowsort
SELECT + col1 + - - 6 FROM tab2
----
57
73
83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6211
SELECT - col0 AS col1 FROM tab0 WHERE + col2 BETWEEN ( + + CAST( NULL AS SIGNED ) / ( 33 ) ) AND + col1 * 54
----

skipif mysql # not compatible
query I rowsort label-6211
SELECT - col0 AS col1 FROM tab0 WHERE + col2 BETWEEN ( + + CAST ( NULL AS INTEGER ) / ( 33 ) ) AND + col1 * 54
----

query I rowsort
SELECT + + 53 + + 16 AS col1 FROM tab1 AS cor0
----
69
69
69

query I rowsort
SELECT ALL col2 + - 64 FROM tab1 AS cor0
----
-5
32
4

onlyif mysql # aggregate syntax: 
query I rowsort label-6214
SELECT DISTINCT ( + COUNT( * ) ) + + 25 AS col2 FROM tab1 cor0 WHERE NOT ( col2 ) IS NOT NULL
----
25

skipif mysql # not compatible
query I rowsort label-6214
SELECT DISTINCT ( + COUNT ( * ) ) + + 25 AS col2 FROM tab1 cor0 WHERE NOT ( col2 ) IS NOT NULL
----
25

query II rowsort
SELECT - - 30 + - - 83, col2 AS col1 FROM tab2 AS cor0
----
113
23
113
40
113
58

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( col2 ) NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6217
SELECT DISTINCT COUNT( * ) AS col0 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-6217
SELECT DISTINCT COUNT ( * ) AS col0 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6218
SELECT DISTINCT + CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-6218
SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

query I rowsort
SELECT col1 * + + col2 AS col0 FROM tab0
----
210
3807
99

onlyif mysql # DIV for integer division: 
query I rowsort label-6220
SELECT ALL + 23 DIV + col2 FROM tab0
----
0
0
2

skipif mysql # not compatible
query I rowsort label-6220
SELECT ALL + 23 / + col2 FROM tab0
----
0
0
2

query I rowsort
SELECT col1 * + 36 AS col2 FROM tab1 AS cor0
----
1692
180
504

query I rowsort
SELECT - ( - 81 ) * col1 AS col2 FROM tab1 AS cor0
----
1134
3807
405

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-6223
SELECT ALL - col2, + CAST( NULL AS DECIMAL ) AS col0 FROM tab2 AS cor0
----
-23
NULL
-40
NULL
-58
NULL

skipif mysql # not compatible
query II rowsort label-6223
SELECT ALL - col2, + CAST ( NULL AS REAL ) AS col0 FROM tab2 AS cor0
----
-23
NULL
-40
NULL
-58
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6224
SELECT ALL + - MAX( DISTINCT + - 17 ) FROM tab1 AS cor0
----
17

skipif mysql # not compatible
query I rowsort label-6224
SELECT ALL + - MAX ( DISTINCT + - 17 ) FROM tab1 AS cor0
----
17

query II rowsort
SELECT ALL + - 81, col0 FROM tab1 AS cor0
----
-81
51
-81
85
-81
91

onlyif mysql # aggregate syntax: 
query II rowsort label-6226
SELECT ALL - 65 col1, COUNT( * ) FROM tab0 AS cor0
----
-65
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6226
SELECT ALL - 65 col1, COUNT ( * ) FROM tab0 AS cor0
----
-65
3

query I rowsort
SELECT 6 FROM tab0 AS cor0 WHERE NOT ( - col0 ) NOT IN ( + col1 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 44 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT 68 * + - col1 FROM tab0 AS cor0
----
-1428
-5508
-68

query III rowsort
SELECT * FROM tab1 WHERE NOT - - 50 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query II rowsort label-6231
SELECT MIN( col1 ) AS col0, 92 FROM tab1
----
5
92

skipif mysql # not compatible
query II rowsort label-6231
SELECT MIN ( col1 ) AS col0, 92 FROM tab1
----
5
92

query IIIIII rowsort
SELECT DISTINCT * FROM tab1, tab2 AS cor0 WHERE 45 IS NOT NULL
----
54 values hashing to c419dc2a653bccd84f7a2da103315187

query I rowsort
SELECT - 11 + - col1 * - - 60 FROM tab1
----
-2831
-311
-851

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL NOT BETWEEN - - col0 AND + 98
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6235
SELECT COUNT( * ) + + COUNT( * ) + - 37 AS col1 FROM tab1
----
-31

skipif mysql # not compatible
query I rowsort label-6235
SELECT COUNT ( * ) + + COUNT ( * ) + - 37 AS col1 FROM tab1
----
-31

query I rowsort
SELECT DISTINCT ( + col2 ) * + 62 AS col0 FROM tab1 AS cor0 WHERE ( 22 / - col0 + + col2 ) <> ( 98 )
----
3658
4216
5952

query I rowsort
SELECT ALL - 22 * - col2 AS col0 FROM tab0 AS cor0 WHERE NULL NOT IN ( ( 73 ), + col1 / + - 10 )
----

query I rowsort
SELECT DISTINCT - ( + 49 ) FROM tab0
----
-49

query III rowsort
SELECT * FROM tab1 WHERE + 34 <= - col2 + - - 94
----
85
5
59

query I rowsort
SELECT ALL - ( - ( + col2 ) ) AS col1 FROM tab2
----
23
40
58

query I rowsort
SELECT ALL col0 + + - col2 AS col2 FROM tab0
----
-2
-32
77

query II rowsort
SELECT col1 + 44 AS col0, + 24 - + 98 AS col1 FROM tab2 AS cor0
----
111
-74
121
-74
95
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-6243
SELECT DISTINCT - + COUNT( * ) + - - COUNT( * ) AS col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6243
SELECT DISTINCT - + COUNT ( * ) + - - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6244
SELECT DISTINCT - col1 FROM tab1 cor0 WHERE ( NULL ) IN ( + CAST( + col2 AS SIGNED ) * + col0 )
----

skipif mysql # not compatible
query I rowsort label-6244
SELECT DISTINCT - col1 FROM tab1 cor0 WHERE ( NULL ) IN ( + CAST ( + col2 AS INTEGER ) * + col0 )
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL NOT IN ( 68 * col2 )
----

query I rowsort
SELECT ALL + 21 * + - col0 + + 14 FROM tab1 AS cor0
----
-1057
-1771
-1897

query I rowsort
SELECT col2 * - col2 + - + col2 - - 88 * + 13 + + col1 FROM tab0 AS cor0
----
-1031
-8755
1055

onlyif mysql # aggregate syntax: 
query I rowsort label-6248
SELECT DISTINCT 86 - - 37 * + COUNT( * ) col0 FROM tab0 AS cor0
----
197

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6248
SELECT DISTINCT 86 - - 37 * + COUNT ( * ) col0 FROM tab0 AS cor0
----
197

query I rowsort
SELECT DISTINCT col1 FROM tab2 AS cor0 WHERE NOT + col0 BETWEEN NULL AND + col1
----
67

query II rowsort
SELECT - - col0, col1 AS col2 FROM tab0 AS cor0 WHERE col2 IS NOT NULL
----
15
81
87
21
97
1

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - 25 IN ( 94, col2 * 22 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6252
SELECT * FROM tab0 AS cor0 WHERE ( col2 + + col0 + + CAST( NULL AS SIGNED ) ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-6252
SELECT * FROM tab0 AS cor0 WHERE ( col2 + + col0 + + CAST ( NULL AS INTEGER ) ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6253
SELECT + ( + + ( - CAST( NULL AS SIGNED ) ) ) AS col0 FROM tab0 AS cor0 WHERE col0 IS NULL
----

skipif mysql # not compatible
query I rowsort label-6253
SELECT + ( + + ( - CAST ( NULL AS INTEGER ) ) ) AS col0 FROM tab0 AS cor0 WHERE col0 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col0 <= + col2
----

query I rowsort
SELECT + 48 * - col2 FROM tab1
----
-2832
-3264
-4608

query II rowsort
SELECT col2 AS col1, 3 * - col2 FROM tab0
----
10
-30
47
-141
99
-297

query I rowsort
SELECT DISTINCT - col2 - 90 * - col0 FROM tab2 AS cor0
----
4117
5720
6692

query I rowsort
SELECT col2 - col1 AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL AND 4 IN ( - col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6259
SELECT DISTINCT + CAST( + CAST( - col1 AS SIGNED ) AS SIGNED ) AS col2, + col2 AS col2 FROM tab0 AS cor0
----
-1
99
-21
10
-81
47

skipif mysql # not compatible
query II rowsort label-6259
SELECT DISTINCT + CAST ( + CAST ( - col1 AS INTEGER ) AS INTEGER ) AS col2, + col2 AS col2 FROM tab0 AS cor0
----
-1
99
-21
10
-81
47

onlyif mysql # aggregate syntax: 
query I rowsort label-6260
SELECT - + COUNT( + col1 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-6260
SELECT - + COUNT ( + col1 ) FROM tab1 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-6261
SELECT SUM( DISTINCT 21 ) FROM tab2 AS cor0
----
21

skipif mysql # not compatible
query I rowsort label-6261
SELECT SUM ( DISTINCT 21 ) FROM tab2 AS cor0
----
21

onlyif mysql # DIV for integer division: 
query II rowsort label-6262
SELECT - 90, + col2 DIV - col2 AS col1 FROM tab0 AS cor0
----
-90
-1
-90
-1
-90
-1

skipif mysql # not compatible
query II rowsort label-6262
SELECT - 90, + col2 / - col2 AS col1 FROM tab0 AS cor0
----
-90
-1
-90
-1
-90
-1

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NOT ( NULL ) BETWEEN NULL AND ( NULL ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6264
SELECT + 74 * - COUNT( * ) FROM tab0 AS cor0 WHERE NOT ( + col1 * - ( col1 ) ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-6264
SELECT + 74 * - COUNT ( * ) FROM tab0 AS cor0 WHERE NOT ( + col1 * - ( col1 ) ) IS NOT NULL
----
0

query I rowsort
SELECT DISTINCT col2 FROM tab1 AS cor0 WHERE NOT col0 IS NULL
----
59
68
96

query II rowsort
SELECT col0 AS col0, + ( + 35 ) FROM tab1 AS cor0 WHERE NOT 85 + - + 74 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6267
SELECT ALL - CAST( MAX( DISTINCT - ( - - ( - col1 ) ) ) AS SIGNED ) FROM tab2 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-6267
SELECT ALL - CAST ( MAX ( DISTINCT - ( - - ( - col1 ) ) ) AS INTEGER ) FROM tab2 AS cor0
----
-77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6268
SELECT + - SUM( ALL + + col2 ) DIV 24 FROM tab2 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-6268
SELECT + - SUM ( ALL + + col2 ) / 24 FROM tab2 AS cor0
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-6269
SELECT ALL + MIN( + + col1 ) AS col0 FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-6269
SELECT ALL + MIN ( + + col1 ) AS col0 FROM tab2
----
51

query I rowsort
SELECT ( ( + - col2 ) ) FROM tab0
----
-10
-47
-99

query II rowsort
SELECT col2 AS col0, + 3 FROM tab2
----
23
3
40
3
58
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6272
SELECT ALL COUNT( - + CAST( - 73 AS SIGNED ) ) AS col1 FROM tab1 WHERE NULL < - col2 * - - col1 / - ( 88 ) + + 36
----
0

skipif mysql # not compatible
query I rowsort label-6272
SELECT ALL COUNT ( - + CAST ( - 73 AS INTEGER ) ) AS col1 FROM tab1 WHERE NULL < - col2 * - - col1 / - ( 88 ) + + 36
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6273
SELECT + 7 + - - 64 * - - COUNT( * ) - + AVG ( ALL 1 ) AS col1 FROM tab1 WHERE NOT - + col0 + - 21 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6273
SELECT + 7 + - - 64 * - - COUNT ( * ) - + AVG ( ALL 1 ) AS col1 FROM tab1 WHERE NOT - + col0 + - 21 IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6274
SELECT COUNT( * ) + + - 47 FROM tab1 WHERE NOT NULL IS NULL
----
-47

skipif mysql # not compatible
query I rowsort label-6274
SELECT COUNT ( * ) + + - 47 FROM tab1 WHERE NOT NULL IS NULL
----
-47

query I rowsort
SELECT + col2 AS col2 FROM tab1 WHERE NOT ( + ( - 62 ) ) BETWEEN col0 AND - - col0 + + col1
----
59
68
96

query III rowsort
SELECT ALL * FROM tab2 WHERE 34 NOT BETWEEN - col1 AND - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + - ( + col0 ) + col0 AS col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT - col2 * + 88 AS col0 FROM tab0 WHERE col0 + - 19 <= col0
----
-4136
-8712
-880

query II rowsort
SELECT 84 + col0 AS col0, col0 + col1 AS col1 FROM tab2
----
130
97
148
141
159
142

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + + - col0 col1 FROM tab0 WHERE NULL IS NULL
----
-108
-96
-98

onlyif mysql # aggregate syntax: 
query II rowsort label-6281
SELECT - COUNT( * ), - COUNT( * ) FROM tab0
----
-3
-3

skipif mysql # not compatible
query II rowsort label-6281
SELECT - COUNT ( * ), - COUNT ( * ) FROM tab0
----
-3
-3

query I rowsort
SELECT DISTINCT ( 42 ) / - col2 FROM tab0 WHERE NULL IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 15 col1, col2 AS col0 FROM tab0 AS cor0
----
15
10
15
47
15
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6284
SELECT ALL 45 + + CAST( NULL AS SIGNED ) * + - 62 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6284
SELECT ALL 45 + + CAST ( NULL AS INTEGER ) * + - 62 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT - - col1 AS col2, 5 * - col0 FROM tab2 AS cor0
----
51
-230
67
-375
77
-320

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 AS col0, + col2 col1 FROM tab2 AS cor0
----
51
23
67
58
77
40

query I rowsort
SELECT DISTINCT - col2 * + col0 + - - col2 AS col0 FROM tab1 cor0 WHERE - col0 IS NOT NULL
----
-4800
-4956
-6120

onlyif mysql # aggregate syntax: 
query I rowsort label-6288
SELECT ALL - 25 - - + COUNT( * ) col1 FROM tab0 AS cor0
----
-22

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6288
SELECT ALL - 25 - - + COUNT ( * ) col1 FROM tab0 AS cor0
----
-22

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL = - col1 - - 67
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 49 col2 FROM tab0 AS cor0 WHERE NOT NULL >= - ( + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6291
SELECT DISTINCT + COUNT( * ) FROM tab1 AS cor0 WHERE col0 * + + col2 <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-6291
SELECT DISTINCT + COUNT ( * ) FROM tab1 AS cor0 WHERE col0 * + + col2 <= NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 35 - - col0 col1 FROM tab0 AS cor0
----
122
132
50

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - col1 + - + col2 * - col2 IS NOT NULL AND ( col1 ) IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6294
SELECT DISTINCT + col2 DIV + 64 * col1 - col2 AS col0 FROM tab2 AS cor0
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-6294
SELECT DISTINCT + col2 / + 64 * col1 - col2 AS col0 FROM tab2 AS cor0
----
-23
-40
-58

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NULL ) <> col1 AND NOT NULL IS NULL
----

query I rowsort
SELECT - col0 * col0 * col0 * - col2 - + col2 * 39 FROM tab0
----
156792
6584640
90350766

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * - - 8 col2 FROM tab0
----
-376
-792
-80

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL <= + col0
----

query III rowsort
SELECT * FROM tab0 WHERE ( NOT col2 > NULL )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6300
SELECT DISTINCT 11 DIV - + 61 * COUNT( ALL col1 ) AS col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-6300
SELECT DISTINCT 11 / - + 61 * COUNT ( ALL col1 ) AS col1 FROM tab0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6301
SELECT ALL - CAST( NULL AS SIGNED ) * - 90 * + 27 * + + 59 + col0 + - - 63 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6301
SELECT ALL - CAST ( NULL AS INTEGER ) * - 90 * + 27 * + + 59 + col0 + - - 63 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6302
SELECT + 31 * - COUNT( * ) AS col2 FROM tab0
----
-93

skipif mysql # not compatible
query I rowsort label-6302
SELECT + 31 * - COUNT ( * ) AS col2 FROM tab0
----
-93

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col0 * + + col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT ALL - col0 * col2 AS col0, - col1 AS col0 FROM tab1 AS cor0
----
-4896
-14
-5015
-5
-6188
-47

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 40 NOT BETWEEN NULL AND + 82
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6306
SELECT DISTINCT + ( - col1 ) DIV + 15 + - col1 + 51 AS col0 FROM tab0
----
-35
29
50

skipif mysql # not compatible
query I rowsort label-6306
SELECT DISTINCT + ( - col1 ) / + 15 + - col1 + 51 AS col0 FROM tab0
----
-35
29
50

onlyif mysql # aggregate syntax: 
query I rowsort label-6307
SELECT + - COUNT( * ) * + + 42 FROM tab1 AS cor0
----
-126

skipif mysql # not compatible
query I rowsort label-6307
SELECT + - COUNT ( * ) * + + 42 FROM tab1 AS cor0
----
-126

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col2 * + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6309
SELECT ALL SUM( col1 ) FROM tab1 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-6309
SELECT ALL SUM ( col1 ) FROM tab1 AS cor0
----
66

query II rowsort
SELECT + col2, + col1 * - col0 AS col1 FROM tab2 AS cor0
----
23
-2346
40
-4928
58
-5025

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6311
SELECT ALL - - CAST( - col2 AS SIGNED ) AS col1 FROM tab1 cor0
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-6311
SELECT ALL - - CAST ( - col2 AS INTEGER ) AS col1 FROM tab1 cor0
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-6312
SELECT ALL - - 80 * COUNT( * ) AS col1 FROM tab2 AS cor0
----
240

skipif mysql # not compatible
query I rowsort label-6312
SELECT ALL - - 80 * COUNT ( * ) AS col1 FROM tab2 AS cor0
----
240

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NOT NULL >= NULL )
----

query I rowsort
SELECT col0 FROM tab0 AS cor0 WHERE NOT col2 NOT IN ( - - 26 )
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6315
SELECT ALL - CAST( + - 32 AS SIGNED ) DIV col0 * col0 * - col1 * 49 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6315
SELECT ALL - CAST ( + - 32 AS INTEGER ) / col0 * col0 * - col1 * 49 FROM tab1 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + + + col0 + + col1 + + col1 - - 32 + + col0 + col0 * - - col1 + + 73 col2 FROM tab2
----
2668
5355
5472

onlyif mysql # aggregate syntax: 
query I rowsort label-6317
SELECT 70 * MIN( DISTINCT + col0 ) + COUNT( DISTINCT - col1 ) AS col1 FROM tab1
----
3573

skipif mysql # not compatible
query I rowsort label-6317
SELECT 70 * MIN ( DISTINCT + col0 ) + COUNT ( DISTINCT - col1 ) AS col1 FROM tab1
----
3573

query I rowsort
SELECT - ( + 61 ) + - 41 AS col0 FROM tab0
----
-102
-102
-102

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6319
SELECT * FROM tab1 WHERE ( + - CAST( col1 AS SIGNED ) + 91 ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-6319
SELECT * FROM tab1 WHERE ( + - CAST ( col1 AS INTEGER ) + 91 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6320
SELECT DISTINCT + col2, - col0 FROM tab0 WHERE NOT - col1 * CAST( NULL AS SIGNED ) + - 77 < + + col0
----

skipif mysql # not compatible
query II rowsort label-6320
SELECT DISTINCT + col2, - col0 FROM tab0 WHERE NOT - col1 * CAST ( NULL AS INTEGER ) + - 77 < + + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6321
SELECT DISTINCT + 29 + + - col2 + - CAST( NULL AS SIGNED ) + - col1 * 46 AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-6321
SELECT DISTINCT + 29 + + - col2 + - CAST ( NULL AS INTEGER ) + - col1 * 46 AS col0 FROM tab1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6322
SELECT ALL 74 DIV - col0 + - col1 FROM tab0 AS cor0
----
-1
-21
-85

skipif mysql # not compatible
query I rowsort label-6322
SELECT ALL 74 / - col0 + - col1 FROM tab0 AS cor0
----
-1
-21
-85

query I rowsort
SELECT col1 AS col0 FROM tab1 AS cor0 WHERE 75 = NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6324
SELECT ALL + + col2 + - col2 DIV col1 AS col1 FROM tab1 AS cor0
----
48
67
90

skipif mysql # not compatible
query I rowsort label-6324
SELECT ALL + + col2 + - col2 / col1 AS col1 FROM tab1 AS cor0
----
48
67
90

query I rowsort
SELECT + col2 - + ( + col0 ) FROM tab1
----
-23
-26
45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6326
SELECT + col1 + + CAST( + col1 AS SIGNED ) AS col2 FROM tab2
----
102
134
154

skipif mysql # not compatible
query I rowsort label-6326
SELECT + col1 + + CAST ( + col1 AS INTEGER ) AS col2 FROM tab2
----
102
134
154

query I rowsort
SELECT - col0 + + ( - - col2 ) - + 98 AS col0 FROM tab0
----
-175
-66
-96

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col2 * - 76 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - ( - + 97 ) AS col0 FROM tab2 cor0
----
97

query II rowsort
SELECT DISTINCT + col2 - col0 * col1 AS col2, - 76 AS col2 FROM tab1 AS cor0
----
-366
-76
-4209
-76
-618
-76

query I rowsort
SELECT ALL - 48 - - - col1 AS col2 FROM tab1 AS cor0
----
-53
-62
-95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 AS col1, - col2 col1 FROM tab1
----
51
-96
85
-59
91
-68

query I rowsort
SELECT col0 * ( + - 21 ) AS col2 FROM tab1
----
-1071
-1785
-1911

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - col2 + col1 NOT IN ( 12, + col0 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-6335
SELECT DISTINCT - 93 AS col2, COUNT( * ) FROM tab2 AS cor0
----
-93
3

skipif mysql # not compatible
query II rowsort label-6335
SELECT DISTINCT - 93 AS col2, COUNT ( * ) FROM tab2 AS cor0
----
-93
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6336
SELECT DISTINCT + COUNT( * ) * 79 + + 74 AS col0 FROM tab0 AS cor0
----
311

skipif mysql # not compatible
query I rowsort label-6336
SELECT DISTINCT + COUNT ( * ) * 79 + + 74 AS col0 FROM tab0 AS cor0
----
311

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( - 7 IS NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-6338
SELECT + COUNT( * ) * - COUNT( ALL - 45 ) col1 FROM tab0 AS cor0
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6338
SELECT + COUNT ( * ) * - COUNT ( ALL - 45 ) col1 FROM tab0 AS cor0
----
-9

query I rowsort
SELECT - + 76 AS col1 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to f8b6589bc7503fc720ca5430e3569317

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6340
SELECT DISTINCT SUM( ALL + 9 ) col0, CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
27
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6340
SELECT DISTINCT SUM ( ALL + 9 ) col0, CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
27
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6341
SELECT ALL ( + ( + + 65 ) ) + - COUNT( * ) AS col0 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
56

skipif mysql # not compatible
query I rowsort label-6341
SELECT ALL ( + ( + + 65 ) ) + - COUNT ( * ) AS col0 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
56

query I rowsort
SELECT - - col1 * - ( - col0 ) AS col0 FROM tab2 AS cor0
----
2346
4928
5025

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT ALL col2 * 9 AS col1, col1 col0, col0 FROM tab1 AS cor0
----
9 values hashing to dfc286fa83205d6c398472ce73878fcb

query I rowsort
SELECT DISTINCT - 94 * col0 AS col2 FROM tab2 AS cor0
----
-4324
-6016
-7050

onlyif mysql # aggregate syntax: 
query II rowsort label-6345
SELECT ALL - - 8 * - + 68, - COUNT( * ) AS col1 FROM tab1 AS cor0
----
-544
-3

skipif mysql # not compatible
query II rowsort label-6345
SELECT ALL - - 8 * - + 68, - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-544
-3

query I rowsort
SELECT ( + - col2 ) AS col1 FROM tab0 AS cor0
----
-10
-47
-99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 83 col0 FROM tab0 AS cor0
----
83
83
83

query II rowsort
SELECT ALL + col2, col0 FROM tab2
----
23
46
40
64
58
75

onlyif mysql # DIV for integer division: 
query I rowsort label-6349
SELECT 13 DIV col0 AS col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6349
SELECT 13 / col0 AS col2 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6350
SELECT DISTINCT COUNT( * ) * - - SUM( - - col1 ) FROM tab1
----
198

skipif mysql # not compatible
query I rowsort label-6350
SELECT DISTINCT COUNT ( * ) * - - SUM ( - - col1 ) FROM tab1
----
198

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6351
SELECT ALL CAST( NULL AS SIGNED ), - MAX( DISTINCT - col1 ) * + COUNT( * ) AS col0 FROM tab1
----
NULL
15

skipif mysql # not compatible
query II rowsort label-6351
SELECT ALL CAST ( NULL AS INTEGER ), - MAX ( DISTINCT - col1 ) * + COUNT ( * ) AS col0 FROM tab1
----
NULL
15

query I rowsort
SELECT + - col1 * col2 * + 22 * 17 AS col2 FROM tab0 WHERE col1 / + col0 * - 53 + col0 - - 6 * - col2 IS NOT NULL
----
-1423818
-37026
-78540

query II rowsort
SELECT DISTINCT col1 AS col0, col0 FROM tab0
----
1
97
21
87
81
15

query I rowsort
SELECT ALL col2 * + ( - - 47 ) + 52 FROM tab2
----
1133
1932
2778

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6355
SELECT * FROM tab1 WHERE NULL <> - col1 + + 59 * + + col2 - - CAST( - - 34 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-6355
SELECT * FROM tab1 WHERE NULL <> - col1 + + 59 * + + col2 - - CAST ( - - 34 AS INTEGER )
----

query I rowsort
SELECT DISTINCT ( + ( - col1 ) ) AS col1 FROM tab1 AS cor0 WHERE + 31 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6357
SELECT 99 DIV + - ( col1 ) + + ( 79 ) * + + col1 FROM tab0 AS cor0
----
-20
1655
6398

skipif mysql # not compatible
query I rowsort label-6357
SELECT 99 / + - ( col1 ) + + ( 79 ) * + + col1 FROM tab0 AS cor0
----
-20
1655
6398

onlyif mysql # aggregate syntax: 
query I rowsort label-6358
SELECT COUNT( - + ( col1 ) ) + - COUNT( * ) AS col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6358
SELECT COUNT ( - + ( col1 ) ) + - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6359
SELECT ALL 5 DIV - col0 + + col0 FROM tab0 AS cor0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-6359
SELECT ALL 5 / - col0 + + col0 FROM tab0 AS cor0
----
15
87
97

query I rowsort
SELECT DISTINCT + ( - + col2 ) * - 19 + - 45 - - col2 AS col0 FROM tab1 AS cor0
----
1135
1315
1875

query II rowsort
SELECT ALL col1, col0 AS col2 FROM tab1 AS cor0
----
14
51
47
91
5
85

query I rowsort
SELECT col0 + - - ( - col1 ) + + col1 FROM tab2 AS cor0
----
46
64
75

query I rowsort
SELECT DISTINCT - col1 - col0 - - 59 * + ( + 15 ) AS col1 FROM tab2 AS cor0
----
743
744
788

onlyif mysql # aggregate syntax: 
query I rowsort label-6364
SELECT DISTINCT 98 + - 84 - + 92 * - 65 * - COUNT( * ) FROM tab2
----
-17926

skipif mysql # not compatible
query I rowsort label-6364
SELECT DISTINCT 98 + - 84 - + 92 * - 65 * - COUNT ( * ) FROM tab2
----
-17926

onlyif mysql # aggregate syntax: 
query I rowsort label-6365
SELECT + SUM( ALL + 16 ) FROM tab0 AS cor0
----
48

skipif mysql # not compatible
query I rowsort label-6365
SELECT + SUM ( ALL + 16 ) FROM tab0 AS cor0
----
48

query I rowsort
SELECT + - ( + - col1 ) FROM tab0 AS cor0 WHERE ( NOT + - ( 61 ) * - col1 >= col2 * + col0 )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-6367
SELECT - col2 - + - col0 + - 72 * - - col2 + - col1 + + col1 DIV - - col2 AS col0 FROM tab1 AS cor0
----
-4227
-4920
-6971

skipif mysql # not compatible
query I rowsort label-6367
SELECT - col2 - + - col0 + - 72 * - - col2 + - col1 + + col1 / - - col2 AS col0 FROM tab1 AS cor0
----
-4227
-4920
-6971

query I rowsort
SELECT 92 - - 64 - col1 AS col1 FROM tab2 AS cor0
----
105
79
89

onlyif mysql # aggregate syntax: 
query I rowsort label-6369
SELECT ALL - + SUM( 94 ) - - + 21 col0 FROM tab0 AS cor0
----
-261

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6369
SELECT ALL - + SUM ( 94 ) - - + 21 col0 FROM tab0 AS cor0
----
-261

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN - 25 / + col1 AND NULL
----

query I rowsort
SELECT col1 / 34 AS col2 FROM tab0 WHERE NOT col0 / + 69 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6372
SELECT DISTINCT - MIN( - col2 ) * 6 AS col2 FROM tab2 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6372
SELECT DISTINCT - MIN ( - col2 ) * 6 AS col2 FROM tab2 WHERE NOT NULL IS NULL
----
NULL

query I rowsort
SELECT - ( + - 6 ) AS col2 FROM tab1
----
6
6
6

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6374
SELECT DISTINCT + COUNT( ALL + CAST( - col0 AS DECIMAL ) ) col1 FROM tab0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6374
SELECT DISTINCT + COUNT ( ALL + CAST ( - col0 AS REAL ) ) col1 FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6375
SELECT COUNT( DISTINCT 19 ) col2 FROM tab1
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6375
SELECT COUNT ( DISTINCT 19 ) col2 FROM tab1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6376
SELECT 60 * - MIN( DISTINCT col1 ) col1 FROM tab0
----
-60

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6376
SELECT 60 * - MIN ( DISTINCT col1 ) col1 FROM tab0
----
-60

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + col0 + - col0 - - 5 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE ( NULL ) >= + + col2 + - ( - 26 ) + 17 + - 69
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col2 IN ( + - 58 )
----
46
51
23
64
77
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6380
SELECT ALL CAST( NULL AS SIGNED ) col2 FROM tab1 AS cor0 WHERE + ( - + col1 ) <= - - col0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6380
SELECT ALL CAST ( NULL AS INTEGER ) col2 FROM tab1 AS cor0 WHERE + ( - + col1 ) <= - - col0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6381
SELECT + - COUNT( * ) DIV - 8 AS col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6381
SELECT + - COUNT ( * ) / - 8 AS col0 FROM tab0 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6382
SELECT ALL - MAX( - col1 ) FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-6382
SELECT ALL - MAX ( - col1 ) FROM tab0 AS cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6383
SELECT DISTINCT COUNT( * ) + - SUM( - col1 ) AS col0 FROM tab0 AS cor0 WHERE NULL > 9
----
NULL

skipif mysql # not compatible
query I rowsort label-6383
SELECT DISTINCT COUNT ( * ) + - SUM ( - col1 ) AS col0 FROM tab0 AS cor0 WHERE NULL > 9
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6384
SELECT DISTINCT + SUM( ALL ( + + col1 ) ) col0 FROM tab2
----
195

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6384
SELECT DISTINCT + SUM ( ALL ( + + col1 ) ) col0 FROM tab2
----
195

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 47 col1 FROM tab2
----
-47
-47
-47

query I rowsort
SELECT DISTINCT 73 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-6387
SELECT - MAX( DISTINCT ( - 57 ) ) AS col1 FROM tab2
----
57

skipif mysql # not compatible
query I rowsort label-6387
SELECT - MAX ( DISTINCT ( - 57 ) ) AS col1 FROM tab2
----
57

query II rowsort
SELECT col2 AS col1, col0 * + - col1 * + - col1 FROM tab1
----
59
2125
68
201019
96
9996

onlyif mysql # aggregate syntax: 
query II rowsort label-6389
SELECT + 0 col0, + SUM( - 18 ) + - + 26 FROM tab1
----
0
-80

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6389
SELECT + 0 col0, + SUM ( - 18 ) + - + 26 FROM tab1
----
0
-80

query I rowsort
SELECT + col1 * - - 85 AS col2 FROM tab2
----
4335
5695
6545

onlyif mysql # DIV for integer division: 
query I rowsort label-6391
SELECT DISTINCT - + 15 + - - 17 - - col0 DIV - 99 + - + col2 AS col1 FROM tab2 AS cor0
----
-21
-38
-56

skipif mysql # not compatible
query I rowsort label-6391
SELECT DISTINCT - + 15 + - - 17 - - col0 / - 99 + - + col2 AS col1 FROM tab2 AS cor0
----
-21
-38
-56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6392
SELECT DISTINCT - col2 * CAST( NULL AS SIGNED ) / - 99 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6392
SELECT DISTINCT - col2 * CAST ( NULL AS INTEGER ) / - 99 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT + - col1 AS col2 FROM tab0 AS cor0 WHERE NOT NULL <> - ( 60 )
----

query I rowsort
SELECT ALL col0 * - + 74 FROM tab0 cor0
----
-1110
-6438
-7178

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col0 NOT BETWEEN NULL AND + + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6396
SELECT SUM( ALL - 25 ) * 25 + - 1 AS col1 FROM tab1 cor0
----
-1876

skipif mysql # not compatible
query I rowsort label-6396
SELECT SUM ( ALL - 25 ) * 25 + - 1 AS col1 FROM tab1 cor0
----
-1876

onlyif mysql # aggregate syntax: 
query I rowsort label-6397
SELECT 65 * 82 + COUNT( * ) FROM tab0 cor0 WHERE NOT NULL > - col1
----
5330

skipif mysql # not compatible
query I rowsort label-6397
SELECT 65 * 82 + COUNT ( * ) FROM tab0 cor0 WHERE NOT NULL > - col1
----
5330

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col2 IN ( + col2 + + + col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT DISTINCT - + 63 AS col1, 99, + 41 col1 FROM tab1 AS cor0
----
-63
99
41

onlyif mysql # aggregate syntax: 
query I rowsort label-6400
SELECT DISTINCT - - MAX( DISTINCT - 19 ) AS col2 FROM tab1 AS cor0 WHERE NOT col1 + - 68 + + col0 * - col1 + col1 NOT BETWEEN 91 AND + col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6400
SELECT DISTINCT - - MAX ( DISTINCT - 19 ) AS col2 FROM tab1 AS cor0 WHERE NOT col1 + - 68 + + col0 * - col1 + col1 NOT BETWEEN 91 AND + col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6401
SELECT col2 AS col2, - ( + CAST( NULL AS SIGNED ) ) AS col1, + col0 AS col0 FROM tab0 cor0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-6401
SELECT col2 AS col2, - ( + CAST ( NULL AS INTEGER ) ) AS col1, + col0 AS col0 FROM tab0 cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT ALL + col1, - 53, - col1 AS col0 FROM tab1 AS cor0
----
9 values hashing to a1579bcaff2d43e42f03369691708d62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col2 + 81 col2 FROM tab0 AS cor0
----
128
180
91

query I rowsort
SELECT ALL ( - col0 ) + - col1 - - - 95 FROM tab1
----
-160
-185
-233

query II rowsort
SELECT 52 + + col2 AS col1, 18 AS col1 FROM tab0
----
151
18
62
18
99
18

query I rowsort
SELECT ALL - col0 * + col0 + col2 AS col1 FROM tab0
----
-178
-7559
-9310

onlyif mysql # DIV for integer division: 
query II rowsort label-6407
SELECT DISTINCT - 63 - col0 + ( - - col2 ) DIV + - 37 col1, col2 FROM tab0 AS cor0
----
-150
10
-162
99
-79
47

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6407
SELECT DISTINCT - 63 - col0 + ( - - col2 ) / + - 37 col1, col2 FROM tab0 AS cor0
----
-150
10
-162
99
-79
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6408
SELECT ALL + + ( - - col1 ) - - + CAST( NULL AS SIGNED ) FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6408
SELECT ALL + + ( - - col1 ) - - + CAST ( NULL AS INTEGER ) FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - - col0 - + 76 FROM tab1 AS cor0
----
-25
15
9

onlyif mysql # aggregate syntax: 
query I rowsort label-6410
SELECT + SUM( DISTINCT - ( + 50 ) ) AS col0 FROM tab1 WHERE NULL >= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6410
SELECT + SUM ( DISTINCT - ( + 50 ) ) AS col0 FROM tab1 WHERE NULL >= NULL
----
NULL

query I rowsort
SELECT col2 + 47 AS col1 FROM tab1
----
106
115
143

query I rowsort
SELECT - + 6 * - col2 FROM tab2 WHERE NULL BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL 4 + - col1 FROM tab0 cor0
----
-17
-77
3

query II rowsort
SELECT + col2 + - + col2 + - col1 AS col2, - 99 AS col0 FROM tab2 cor0
----
-51
-99
-67
-99
-77
-99

query II rowsort
SELECT DISTINCT col2 AS col2, col0 FROM tab2 AS cor0
----
23
46
40
64
58
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6416
SELECT + 43 AS col0 FROM tab0 AS cor0 WHERE NOT + CAST( NULL AS SIGNED ) IN ( + col1, col2 )
----

skipif mysql # not compatible
query I rowsort label-6416
SELECT + 43 AS col0 FROM tab0 AS cor0 WHERE NOT + CAST ( NULL AS INTEGER ) IN ( + col1, col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6417
SELECT - - COUNT( + col0 ) AS col2 FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-6417
SELECT - - COUNT ( + col0 ) AS col2 FROM tab2 cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6418
SELECT ALL - ( 93 ) * - SUM( - - col2 ) AS col2 FROM tab2
----
11253

skipif mysql # not compatible
query I rowsort label-6418
SELECT ALL - ( 93 ) * - SUM ( - - col2 ) AS col2 FROM tab2
----
11253

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - col0 * + col1 col2 FROM tab0
----
-18270
-57105
-9603

query I rowsort
SELECT - 94 * - 96 AS col2 FROM tab2
----
9024
9024
9024

onlyif mysql # aggregate syntax: 
query I rowsort label-6421
SELECT ALL SUM( DISTINCT - + 25 ) FROM tab0
----
-25

skipif mysql # not compatible
query I rowsort label-6421
SELECT ALL SUM ( DISTINCT - + 25 ) FROM tab0
----
-25

query II rowsort
SELECT + ( col2 ) AS col0, col1 FROM tab2
----
23
51
40
77
58
67

query I rowsort
SELECT ALL col0 FROM tab2 WHERE NOT ( NOT col1 >= NULL )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-6424
SELECT COUNT( * ) * COUNT( * ) AS col0, COUNT( * ) AS col0 FROM tab2 AS cor0
----
9
3

skipif mysql # not compatible
query II rowsort label-6424
SELECT COUNT ( * ) * COUNT ( * ) AS col0, COUNT ( * ) AS col0 FROM tab2 AS cor0
----
9
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6425
SELECT - - ( - COUNT( * ) ) col2 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6425
SELECT - - ( - COUNT ( * ) ) col2 FROM tab2 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-6426
SELECT DISTINCT + - COUNT( ALL col0 ) AS col1 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-6426
SELECT DISTINCT + - COUNT ( ALL col0 ) AS col1 FROM tab0 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-6427
SELECT + COUNT( - + ( - col2 ) ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-6427
SELECT + COUNT ( - + ( - col2 ) ) FROM tab2 AS cor0
----
3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) NOT IN ( + 98 + 59 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 27 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6430
SELECT + - COUNT( + col0 ) AS col1 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-6430
SELECT + - COUNT ( + col0 ) AS col1 FROM tab1 AS cor0
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-6431
SELECT - col0 DIV col2 + + 10 * + col2 FROM tab2 AS cor0
----
228
399
579

skipif mysql # not compatible
query I rowsort label-6431
SELECT - col0 / col2 + + 10 * + col2 FROM tab2 AS cor0
----
228
399
579

onlyif mysql # aggregate syntax: 
query I rowsort label-6432
SELECT + SUM( 46 ) FROM tab0 AS cor0
----
138

skipif mysql # not compatible
query I rowsort label-6432
SELECT + SUM ( 46 ) FROM tab0 AS cor0
----
138

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6433
SELECT + CAST( NULL AS DECIMAL ) / + + col2 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6433
SELECT + CAST ( NULL AS REAL ) / + + col2 AS col2 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6434
SELECT COUNT( * ) DIV - + MIN( ( + ( col1 ) ) ) AS col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-6434
SELECT COUNT ( * ) / - + MIN ( ( + ( col1 ) ) ) AS col0 FROM tab1
----
0

query II rowsort
SELECT ALL - 31 AS col1, - col1 * col0 AS col0 FROM tab0
----
-31
-1215
-31
-1827
-31
-97

query I rowsort
SELECT DISTINCT col1 * + 98 AS col1 FROM tab2
----
4998
6566
7546

query I rowsort
SELECT ALL + 26 + - col2 AS col1 FROM tab2
----
-14
-32
3

query II rowsort
SELECT + ( 55 ) + + col0 * + col2, 33 AS col0 FROM tab2
----
1113
33
2615
33
4405
33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6439
SELECT ALL + COUNT( * ) * - MIN( + ( - + CAST( col1 AS SIGNED ) ) ) * COUNT( * ) / - - MIN( DISTINCT - col1 ) AS col0 FROM tab1 WHERE - ( - 43 ) <> NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6439
SELECT ALL + COUNT ( * ) * - MIN ( + ( - + CAST ( col1 AS INTEGER ) ) ) * COUNT ( * ) / - - MIN ( DISTINCT - col1 ) AS col0 FROM tab1 WHERE - ( - 43 ) <> NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6440
SELECT DISTINCT CAST( NULL AS SIGNED ) * col0 * + col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6440
SELECT DISTINCT CAST ( NULL AS INTEGER ) * col0 * + col1 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + col2 * col2 - - + col0 AS col1 FROM tab0 AS cor0
----
187
2224
9898

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab0 cor1 WHERE NOT NULL < NULL
----

query I rowsort
SELECT DISTINCT 86 FROM tab1 AS cor0 JOIN tab2 AS cor1 ON - + 66 IS NOT NULL
----
86

query I rowsort
SELECT DISTINCT col2 + - + ( + 6 ) AS col1 FROM tab0
----
4
41
93

query III rowsort
SELECT * FROM tab0 WHERE NOT ( 14 ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6446
SELECT 15 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-6446
SELECT 15 / - col0 col2 FROM tab2
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * + - col2 + 82 col2 FROM tab1 cor0
----
1426
3278
377

query I rowsort
SELECT + + 31 * + + col1 + col0 * - 85 * col2 AS col0 FROM tab1 AS cor0
----
-415726
-426120
-524523

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 col0, col2 * - - 89 + col0 AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT - col1 FROM tab2 cor0 WHERE NOT col1 IS NULL
----
-51
-67
-77

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE 21 >= - ( + col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab0 WHERE col1 IN ( - col1 * - col2 + col1 + + col1, col2, col2 * - ( - + col1 ) + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6453
SELECT DISTINCT - COUNT( ALL col1 ) AS col1 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-6453
SELECT DISTINCT - COUNT ( ALL col1 ) AS col1 FROM tab0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6454
SELECT - + col0 AS col1 FROM tab0 WHERE NOT NULL >= + + CAST( + ( + + col2 ) AS SIGNED ) + col1
----

skipif mysql # not compatible
query I rowsort label-6454
SELECT - + col0 AS col1 FROM tab0 WHERE NOT NULL >= + + CAST ( + ( + + col2 ) AS INTEGER ) + col1
----

query I rowsort
SELECT - - ( - col1 ) + 44 + ( + + col2 ) AS col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
10
142
33

query I rowsort
SELECT - 79 * 46 * - 31 AS col1 FROM tab2
----
112654
112654
112654

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 AS col1, + col0 col2 FROM tab1
----
51
51
85
85
91
91

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT 28 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NOT NULL <= - - 26 * col1 * + col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6460
SELECT + 92 DIV + col1 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-6460
SELECT + 92 / + col1 FROM tab2 AS cor0
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 41 col1 FROM tab1 AS cor0
----
41

query I rowsort
SELECT - + col0 - - - col2 AS col1 FROM tab1 AS cor0 WHERE NOT col2 IS NULL
----
-144
-147
-159

onlyif mysql # aggregate syntax: 
query I rowsort label-6463
SELECT + - MAX( - ( col1 ) ) FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-6463
SELECT + - MAX ( - ( col1 ) ) FROM tab0 AS cor0
----
1

query II rowsort
SELECT DISTINCT + 56, col2 FROM tab0 AS cor0
----
56
10
56
47
56
99

query II rowsort
SELECT DISTINCT - col1 * col1 - + col0 AS col2, col0 FROM tab1 AS cor0
----
-110
85
-2300
91
-247
51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 12 col0 FROM tab0
----
12
12
12

query I rowsort
SELECT - + col0 + - 40 + - col1 AS col2 FROM tab1 AS cor0
----
-105
-130
-178

onlyif mysql # aggregate syntax: 
query I rowsort label-6468
SELECT - COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE - 66 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-6468
SELECT - COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE - 66 IS NOT NULL
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-6469
SELECT ALL - COUNT( * ) + + + COUNT( * ) AS col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6469
SELECT ALL - COUNT ( * ) + + + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6470
SELECT + col2 DIV col1 DIV 72 + col1 DIV - col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6470
SELECT + col2 / col1 / 72 + col1 / - col0 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6471
SELECT DISTINCT + 76 * - COUNT( * ) + - MIN( - 17 ) AS col2 FROM tab2 cor0
----
-211

skipif mysql # not compatible
query I rowsort label-6471
SELECT DISTINCT + 76 * - COUNT ( * ) + - MIN ( - 17 ) AS col2 FROM tab2 cor0
----
-211

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 84 + + 79 col2 FROM tab1
----
-5
-5
-5

query I rowsort
SELECT - col2 + + + col0 AS col0 FROM tab0
----
-2
-32
77

onlyif mysql # aggregate syntax: 
query I rowsort label-6474
SELECT ALL + COUNT( ALL - - col2 ) AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-6474
SELECT ALL + COUNT ( ALL - - col2 ) AS col1 FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6475
SELECT + 50 + + COUNT( * ) FROM tab1
----
53

skipif mysql # not compatible
query I rowsort label-6475
SELECT + 50 + + COUNT ( * ) FROM tab1
----
53

query I rowsort
SELECT - col0 * 83 AS col0 FROM tab1
----
-4233
-7055
-7553

query II rowsort
SELECT DISTINCT col0 AS col0, - col2 / col2 FROM tab2 WHERE NOT - - col1 + - col2 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6478
SELECT + CAST( + + col1 AS SIGNED ) AS col1 FROM tab2
----
51
67
77

skipif mysql # not compatible
query I rowsort label-6478
SELECT + CAST ( + + col1 AS INTEGER ) AS col1 FROM tab2
----
51
67
77

query I rowsort
SELECT 15 - col0 - - + col2 FROM tab0 AS cor0
----
-62
17
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + + col2 col2, col0 FROM tab0 AS cor0
----
10
87
47
15
99
97

query I rowsort
SELECT + - ( + + col0 ) - ( 79 ) AS col1 FROM tab2 AS cor0
----
-125
-143
-154

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 - - + col1 + - 42 col1 FROM tab1
----
-14
-32
52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6483
SELECT ALL - CAST( col0 AS SIGNED ) * + col1 col0 FROM tab1
----
-425
-4277
-714

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6483
SELECT ALL - CAST ( col0 AS INTEGER ) * + col1 col0 FROM tab1
----
-425
-4277
-714

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 96 col1, col0 AS col1 FROM tab1
----
96
51
96
85
96
91

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NOT + + 30 NOT BETWEEN ( - col2 ) AND - 11 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + - 54 * + col0 FROM tab1 AS cor0
----
-2754
-4590
-4914

onlyif mysql # aggregate syntax: 
query II rowsort label-6487
SELECT 2 AS col1, SUM( DISTINCT - + ( - - col1 ) ) AS col0 FROM tab1 AS cor0
----
2
-66

skipif mysql # not compatible
query II rowsort label-6487
SELECT 2 AS col1, SUM ( DISTINCT - + ( - - col1 ) ) AS col0 FROM tab1 AS cor0
----
2
-66

onlyif mysql # DIV for integer division: 
query II rowsort label-6488
SELECT col2 DIV - col2 AS col0, + col2 FROM tab1
----
-1
59
-1
68
-1
96

skipif mysql # not compatible
query II rowsort label-6488
SELECT col2 / - col2 AS col0, + col2 FROM tab1
----
-1
59
-1
68
-1
96

onlyif mysql # aggregate syntax: 
query I rowsort label-6489
SELECT - 2 * COUNT( * ) * + - 84 * - COUNT( * ) FROM tab0
----
-1512

skipif mysql # not compatible
query I rowsort label-6489
SELECT - 2 * COUNT ( * ) * + - 84 * - COUNT ( * ) FROM tab0
----
-1512

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query III rowsort label-6490
SELECT DISTINCT 90 DIV + 85, + CAST( CAST( NULL AS SIGNED ) AS SIGNED ) + - + col0 AS col0, - 95 AS col2 FROM tab0
----
1
NULL
-95

skipif mysql # not compatible
query III rowsort label-6490
SELECT DISTINCT 90 / + 85, + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) + - + col0 AS col0, - 95 AS col2 FROM tab0
----
1
NULL
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-6491
SELECT SUM( + + col1 ) AS col1 FROM tab1
----
66

skipif mysql # not compatible
query I rowsort label-6491
SELECT SUM ( + + col1 ) AS col1 FROM tab1
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-6492
SELECT - COUNT( * ) * ( - COUNT( * ) ) FROM tab1
----
9

skipif mysql # not compatible
query I rowsort label-6492
SELECT - COUNT ( * ) * ( - COUNT ( * ) ) FROM tab1
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-6493
SELECT ALL + col1 DIV - ( + + col1 ) FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-6493
SELECT ALL + col1 / - ( + + col1 ) FROM tab2
----
-1
-1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6494
SELECT ALL + 40 * - + MIN( DISTINCT + col0 ) AS col2 FROM tab1 AS cor0
----
-2040

skipif mysql # not compatible
query I rowsort label-6494
SELECT ALL + 40 * - + MIN ( DISTINCT + col0 ) AS col2 FROM tab1 AS cor0
----
-2040

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6495
SELECT DISTINCT - COUNT( * ) * - 26 DIV - 80 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6495
SELECT DISTINCT - COUNT ( * ) * - 26 / - 80 FROM tab1 AS cor0
----
0

query I rowsort
SELECT - 67 + 41 AS col0 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 47d0574274146de273829785364ada39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6497
SELECT DISTINCT MIN( DISTINCT + CAST( NULL AS SIGNED ) ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-6497
SELECT DISTINCT MIN ( DISTINCT + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6498
SELECT - COUNT( * ) FROM tab0 AS cor0 WHERE col2 <> - + col0
----
-3

skipif mysql # not compatible
query I rowsort label-6498
SELECT - COUNT ( * ) FROM tab0 AS cor0 WHERE col2 <> - + col0
----
-3

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT NULL NOT BETWEEN - col1 * + - ( + + ( col1 ) ) + - - col0 + 3 * col1 / col2 * + + 38 AND - 3
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6500
SELECT COUNT( * ) AS col1, CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
3
NULL

skipif mysql # not compatible
query II rowsort label-6500
SELECT COUNT ( * ) AS col1, CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
3
NULL

query I rowsort
SELECT - col2 FROM tab1 cor0 WHERE col1 NOT IN ( col2, col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6502
SELECT + - col1 - - + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6502
SELECT + - col1 - - + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6503
SELECT ALL 67 col1, CAST( NULL AS SIGNED ) * + col1 FROM tab1 AS cor0
----
67
NULL
67
NULL
67
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6503
SELECT ALL 67 col1, CAST ( NULL AS INTEGER ) * + col1 FROM tab1 AS cor0
----
67
NULL
67
NULL
67
NULL

query I rowsort
SELECT ALL + col1 FROM tab0 WHERE 3 IS NULL AND NOT NULL BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT ALL + ( - col2 ) + col2 FROM tab0
----
0
0
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6506
SELECT - - col2 + - + CAST( NULL AS DECIMAL ) * col1 * + + col2 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6506
SELECT - - col2 + - + CAST ( NULL AS REAL ) * col1 * + + col2 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6507
SELECT - COUNT( * ) + + MIN( + col2 ) FROM tab1 cor0
----
56

skipif mysql # not compatible
query I rowsort label-6507
SELECT - COUNT ( * ) + + MIN ( + col2 ) FROM tab1 cor0
----
56

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + ( + 94 ) col0 FROM tab2 AS cor0
----
-94
-94
-94

query I rowsort
SELECT DISTINCT 99 * - col0 AS col2 FROM tab1
----
-5049
-8415
-9009

onlyif mysql # aggregate syntax: 
query II rowsort label-6510
SELECT ALL - COUNT( * ) AS col2, 78 FROM tab1
----
-3
78

skipif mysql # not compatible
query II rowsort label-6510
SELECT ALL - COUNT ( * ) AS col2, 78 FROM tab1
----
-3
78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6511
SELECT + CAST( - 40 AS SIGNED ) AS col2 FROM tab1
----
-40
-40
-40

skipif mysql # not compatible
query I rowsort label-6511
SELECT + CAST ( - 40 AS INTEGER ) AS col2 FROM tab1
----
-40
-40
-40

query I rowsort
SELECT ALL + ( - + col2 ) AS col2 FROM tab0 AS cor0
----
-10
-47
-99

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN col0 + - - 1 + - col1 * + - col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6514
SELECT + MAX( ALL + + 25 ) FROM tab2 AS cor0
----
25

skipif mysql # not compatible
query I rowsort label-6514
SELECT + MAX ( ALL + + 25 ) FROM tab2 AS cor0
----
25

query I rowsort
SELECT - 92 * + ( + 29 ) FROM tab1 AS cor0
----
-2668
-2668
-2668

onlyif mysql # aggregate syntax: 
query I rowsort label-6516
SELECT + - ( + COUNT( * ) ) * MIN( - ( - col0 ) ) * + - COUNT( + - col0 ) FROM tab1 AS cor0
----
459

skipif mysql # not compatible
query I rowsort label-6516
SELECT + - ( + COUNT ( * ) ) * MIN ( - ( - col0 ) ) * + - COUNT ( + - col0 ) FROM tab1 AS cor0
----
459

onlyif mysql # aggregate syntax: 
query I rowsort label-6517
SELECT ALL + ( + COUNT( * ) ) * - COUNT( * ) * 92 AS col1 FROM tab1 AS cor0
----
-828

skipif mysql # not compatible
query I rowsort label-6517
SELECT ALL + ( + COUNT ( * ) ) * - COUNT ( * ) * 92 AS col1 FROM tab1 AS cor0
----
-828

onlyif mysql # aggregate syntax: 
query II rowsort label-6518
SELECT - 65 AS col1, - MAX( col2 ) FROM tab1
----
-65
-96

skipif mysql # not compatible
query II rowsort label-6518
SELECT - 65 AS col1, - MAX ( col2 ) FROM tab1
----
-65
-96

query I rowsort
SELECT col0 * + - 67 FROM tab1
----
-3417
-5695
-6097

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col2, + 81 col2 FROM tab1
----
59
81
68
81
96
81

query II rowsort
SELECT DISTINCT - col0, - 35 * + col0 AS col1 FROM tab1
----
-51
-1785
-85
-2975
-91
-3185

onlyif mysql # aggregate syntax: 
query I rowsort label-6522
SELECT DISTINCT + COUNT( * ) FROM tab1, tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-6522
SELECT DISTINCT + COUNT ( * ) FROM tab1, tab2 AS cor0
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6523
SELECT DISTINCT + 97 + col2 - + CAST( NULL AS SIGNED ) * + - ( - + 45 ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-6523
SELECT DISTINCT + 97 + col2 - + CAST ( NULL AS INTEGER ) * + - ( - + 45 ) AS col1 FROM tab0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 65 + + + 68 * + col0 col1 FROM tab2
----
3193
4417
5165

onlyif mysql # DIV for integer division: 
query I rowsort label-6525
SELECT + 78 DIV 17 + 6 col1 FROM tab0
----
10
10
10

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6525
SELECT + 78 / 17 + 6 col1 FROM tab0
----
10
10
10

query I rowsort
SELECT DISTINCT col2 FROM tab2 WHERE NOT + - col1 < + + col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6527
SELECT ALL 63 DIV 48 FROM tab0 cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-6527
SELECT ALL 63 / 48 FROM tab0 cor0
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * - + 55 col0 FROM tab0 AS cor0
----
-1155
-4455
-55

query I rowsort
SELECT ( + col2 ) FROM tab2 AS cor0 WHERE NULL IS NULL
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-6530
SELECT + 70 * + + COUNT( * ) AS col0 FROM tab0
----
210

skipif mysql # not compatible
query I rowsort label-6530
SELECT + 70 * + + COUNT ( * ) AS col0 FROM tab0
----
210

onlyif mysql # aggregate syntax: 
query I rowsort label-6531
SELECT + COUNT( ALL col1 ) AS col0 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-6531
SELECT + COUNT ( ALL col1 ) AS col0 FROM tab0
----
3

query I rowsort
SELECT ALL - 20 + col0 - - - col0 FROM tab2
----
-20
-20
-20

query I rowsort
SELECT - col0 * 8 AS col2 FROM tab1
----
-408
-680
-728

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6534
SELECT - col1 + + - CAST( NULL AS SIGNED ) * col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6534
SELECT - col1 + + - CAST ( NULL AS INTEGER ) * col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6535
SELECT - col0 + + col2 * - col1 + + col0 DIV - col2 FROM tab1 AS cor0
----
-1395
-3288
-381

skipif mysql # not compatible
query I rowsort label-6535
SELECT - col0 + + col2 * - col1 + + col0 / - col2 FROM tab1 AS cor0
----
-1395
-3288
-381

onlyif mysql # aggregate syntax: 
query I rowsort label-6536
SELECT ALL + 32 - + COUNT( * ) FROM tab2 AS cor0
----
29

skipif mysql # not compatible
query I rowsort label-6536
SELECT ALL + 32 - + COUNT ( * ) FROM tab2 AS cor0
----
29

onlyif mysql # DIV for integer division: 
query I rowsort label-6537
SELECT DISTINCT col1 DIV 75 DIV + 51 - + col0 AS col2 FROM tab1 cor0
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-6537
SELECT DISTINCT col1 / 75 / + 51 - + col0 AS col2 FROM tab1 cor0
----
-51
-85
-91

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NULL NOT BETWEEN NULL AND ( col0 ) )
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6539
SELECT ALL col0 + col0 DIV - 34 - CAST( 47 AS SIGNED ) + + 89 DIV - - 59 + col1 AS col1 FROM tab1 cor0
----
18
42
90

skipif mysql # not compatible
query I rowsort label-6539
SELECT ALL col0 + col0 / - 34 - CAST ( 47 AS INTEGER ) + + 89 / - - 59 + col1 AS col1 FROM tab1 cor0
----
18
42
90

query I rowsort
SELECT DISTINCT - + 80 + - col1 FROM tab1 AS cor0
----
-127
-85
-94

query II rowsort
SELECT ALL + + 84 - col1 AS col2, col2 * - col1 FROM tab0 AS cor0
----
3
-3807
63
-210
83
-99

query I rowsort
SELECT DISTINCT + ( + ( + ( col0 ) ) ) AS col1 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6543
SELECT * FROM tab2 AS cor0 WHERE - col0 + + col2 + + col1 + - 66 IN ( - 67, col0 + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-6543
SELECT * FROM tab2 AS cor0 WHERE - col0 + + col2 + + col1 + - 66 IN ( - 67, col0 + CAST ( NULL AS INTEGER ) )
----

query II rowsort
SELECT ALL + col0, col2 AS col0 FROM tab1 WHERE 62 * col0 + - 15 >= + + col2 * + 33 * 40
----

query II rowsort
SELECT DISTINCT + col1 AS col2, col1 FROM tab0
----
1
1
21
21
81
81

query I rowsort
SELECT + col0 * col0 * 65 AS col0 FROM tab2
----
137540
266240
365625

query II rowsort
SELECT col1, ( - col0 ) FROM tab0
----
1
-97
21
-87
81
-15

query II rowsort
SELECT DISTINCT + col2 AS col0, 59 * + - 69 + col2 - + 65 FROM tab2
----
23
-4113
40
-4096
58
-4078

onlyif mysql # aggregate syntax: 
query I rowsort label-6549
SELECT ALL SUM( + col0 ) AS col1 FROM tab1 WHERE NOT + col1 + - col2 NOT BETWEEN ( - - col0 / col0 ) AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6549
SELECT ALL SUM ( + col0 ) AS col1 FROM tab1 WHERE NOT + col1 + - col2 NOT BETWEEN ( - - col0 / col0 ) AND NULL
----
NULL

query I rowsort
SELECT 82 - col1 AS col0 FROM tab1
----
35
68
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6551
SELECT DISTINCT + ( - - col0 ) FROM tab0 AS cor0 WHERE NOT NULL BETWEEN 52 * + 31 * 53 AND + CAST( NULL AS SIGNED ) * - 8 * ( col2 ) * - ( + col2 )
----

skipif mysql # not compatible
query I rowsort label-6551
SELECT DISTINCT + ( - - col0 ) FROM tab0 AS cor0 WHERE NOT NULL BETWEEN 52 * + 31 * 53 AND + CAST ( NULL AS INTEGER ) * - 8 * ( col2 ) * - ( + col2 )
----

query II rowsort
SELECT DISTINCT + col2 AS col1, - 24 * 66 AS col0 FROM tab1 AS cor0
----
59
-1584
68
-1584
96
-1584

query I rowsort
SELECT DISTINCT + col0 FROM tab2 WHERE NULL IS NULL
----
46
64
75

query IIIIII rowsort
SELECT DISTINCT * FROM tab0, tab2 AS cor0 WHERE NOT - - 90 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + col1 + 46 + col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-6556
SELECT - COUNT( DISTINCT col1 ) col0 FROM tab1
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6556
SELECT - COUNT ( DISTINCT col1 ) col0 FROM tab1
----
-3

query I rowsort
SELECT DISTINCT + + 23 AS col2 FROM tab0 WHERE ( col0 ) + col1 IS NULL
----

query I rowsort
SELECT + 74 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 2ccf8ef3f477e1a1a3e30c8b8154ff31

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( col1 * ( col2 ) )
----

query I rowsort
SELECT DISTINCT 86 * - - col2 FROM tab1 AS cor0
----
5074
5848
8256

query I rowsort
SELECT ALL + ( + ( + ( - col0 ) ) ) * ( + - 58 ) AS col1 FROM tab0 AS cor0
----
5046
5626
870

query I rowsort
SELECT + col1 FROM tab0 AS cor0 WHERE NOT + col2 - + 44 IS NULL
----
1
21
81

query II rowsort
SELECT 67 * - - 97 AS col0, - col2 + + 45 AS col0 FROM tab2 AS cor0
----
6499
-13
6499
22
6499
5

query I rowsort
SELECT DISTINCT col0 + + - 99 AS col1 FROM tab2
----
-24
-35
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-6565
SELECT DISTINCT - COUNT( DISTINCT 6 ) AS col0 FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-6565
SELECT DISTINCT - COUNT ( DISTINCT 6 ) AS col0 FROM tab2
----
-1

query I rowsort
SELECT ALL 9 + + col2 AS col2 FROM tab1
----
105
68
77

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + 96 IS NULL
----

query I rowsort
SELECT ALL + 87 + - col2 FROM tab1
----
-9
19
28

query I rowsort
SELECT DISTINCT 94 + col1 FROM tab1
----
108
141
99

query I rowsort
SELECT ALL col0 * - - col2 + + 6 AS col2 FROM tab0
----
711
876
9609

query I rowsort
SELECT col2 * col0 + - + col0 + + 58 FROM tab1 cor0
----
4903
4988
6155

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6572
SELECT - CAST( NULL AS SIGNED ) + + + 70 + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6572
SELECT - CAST ( NULL AS INTEGER ) + + + 70 + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6573
SELECT - 12 + + - 10 + - - CAST( - - col1 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-1
-21
59

skipif mysql # not compatible
query I rowsort label-6573
SELECT - 12 + + - 10 + - - CAST ( - - col1 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-1
-21
59

onlyif mysql # DIV for integer division: 
query I rowsort label-6574
SELECT DISTINCT + col0 DIV 40 FROM tab0 AS cor0
----
0
2

skipif mysql # not compatible
query I rowsort label-6574
SELECT DISTINCT + col0 / 40 FROM tab0 AS cor0
----
0
2

query I rowsort
SELECT DISTINCT col0 + 39 AS col1 FROM tab1
----
124
130
90

query II rowsort
SELECT - 26, - col1 * - - ( ( + - col1 ) ) * col2 AS col1 FROM tab1
----
-26
1475
-26
150212
-26
18816

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6577
SELECT + col0 AS col2, 69 * - CAST( NULL AS SIGNED ) FROM tab2 cor0
----
46
NULL
64
NULL
75
NULL

skipif mysql # not compatible
query II rowsort label-6577
SELECT + col0 AS col2, 69 * - CAST ( NULL AS INTEGER ) FROM tab2 cor0
----
46
NULL
64
NULL
75
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6578
SELECT - MAX( ALL + - col1 ) col2 FROM tab2 AS cor0
----
51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6578
SELECT - MAX ( ALL + - col1 ) col2 FROM tab2 AS cor0
----
51

onlyif mysql # DIV for integer division: 
query I rowsort label-6579
SELECT ALL - col0 + + 10 DIV + - 37 FROM tab0 AS cor0
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-6579
SELECT ALL - col0 + + 10 / + - 37 FROM tab0 AS cor0
----
-15
-87
-97

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6580
SELECT ALL * FROM tab2 AS cor0 WHERE - 15 + + CAST( NULL AS SIGNED ) >= NULL
----

skipif mysql # not compatible
query III rowsort label-6580
SELECT ALL * FROM tab2 AS cor0 WHERE - 15 + + CAST ( NULL AS INTEGER ) >= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 19 col2, - col1 * - col1 AS col0 FROM tab1 AS cor0
----
-19
196
-19
2209
-19
25

query I rowsort
SELECT + 99 FROM tab2 AS cor0 WHERE NULL IS NULL
----
99
99
99

query I rowsort
SELECT + + col0 - col1 + col1 FROM tab1 AS cor0
----
51
85
91

query I rowsort
SELECT DISTINCT col2 + - - 39 FROM tab2 AS cor0
----
62
79
97

query I rowsort
SELECT - col2 - - col2 FROM tab1 AS cor0 WHERE 57 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col0 - col1 * - - 46 + - 32 AS col2, - 62 * - 53 col1 FROM tab1 AS cor0
----
-177
3286
-2103
3286
-625
3286

onlyif mysql # DIV for integer division: 
query I rowsort label-6587
SELECT + col1 * + + 51 + + col1 + - col1 + + col0 * - + col0 + - col0 DIV - col1 + 52 FROM tab1
----
-1832
-5831
-6901

skipif mysql # not compatible
query I rowsort label-6587
SELECT + col1 * + + 51 + + col1 + - col1 + + col0 * - + col0 + - col0 / - col1 + 52 FROM tab1
----
-1832
-5831
-6901

query III rowsort
SELECT * FROM tab0 WHERE NOT col1 * col2 + - - col1 <= - col0 + - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT + 20 * - col1, 97 AS col0 FROM tab1
----
-100
97
-280
97
-940
97

onlyif mysql # aggregate syntax: 
query I rowsort label-6590
SELECT DISTINCT MIN( ALL col2 ) * - COUNT( * ) + 7 FROM tab2
----
-62

skipif mysql # not compatible
query I rowsort label-6590
SELECT DISTINCT MIN ( ALL col2 ) * - COUNT ( * ) + 7 FROM tab2
----
-62

query I rowsort
SELECT DISTINCT ( - 79 ) AS col0 FROM tab1 AS cor0
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-6592
SELECT ALL + SUM( ALL + 3 ) col0 FROM tab1 AS cor0 WHERE - col0 > 55
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6592
SELECT ALL + SUM ( ALL + 3 ) col0 FROM tab1 AS cor0 WHERE - col0 > 55
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6593
SELECT DISTINCT - 82 DIV + col2 + + col1 FROM tab1 AS cor0
----
14
4
46

skipif mysql # not compatible
query I rowsort label-6593
SELECT DISTINCT - 82 / + col2 + + col1 FROM tab1 AS cor0
----
14
4
46

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * - - 49 col0 FROM tab0 AS cor0
----
-4263
-4753
-735

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( - 70 ) * + col0 col2 FROM tab0
----
1050
6090
6790

query I rowsort
SELECT ALL - ( 84 ) AS col0 FROM tab2
----
-84
-84
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-6597
SELECT ALL + + ( - MAX( ALL col2 ) ) FROM tab0 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-6597
SELECT ALL + + ( - MAX ( ALL col2 ) ) FROM tab0 AS cor0
----
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6598
SELECT + CAST( - 73 AS SIGNED ) * - 18 * + ( - - col0 ) FROM tab0 AS cor0
----
114318
127458
19710

skipif mysql # not compatible
query I rowsort label-6598
SELECT + CAST ( - 73 AS INTEGER ) * - 18 * + ( - - col0 ) FROM tab0 AS cor0
----
114318
127458
19710

onlyif mysql # DIV for integer division: 
query I rowsort label-6599
SELECT + + col0 DIV + col2 AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL IS NOT NULL )
----
0
1
1

skipif mysql # not compatible
query I rowsort label-6599
SELECT + + col0 / + col2 AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL IS NOT NULL )
----
0
1
1

query II rowsort
SELECT - - col0 AS col1, 42 AS col2 FROM tab2 AS cor0
----
46
42
64
42
75
42

onlyif mysql # aggregate syntax: 
query I rowsort label-6601
SELECT DISTINCT - MAX( + col0 ) col1 FROM tab0 AS cor0
----
-97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6601
SELECT DISTINCT - MAX ( + col0 ) col1 FROM tab0 AS cor0
----
-97

query I rowsort
SELECT ALL + - 58 AS col1 FROM tab1 cor0
----
-58
-58
-58

query I rowsort
SELECT + 57 - + + col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) = - - col2
----

query II rowsort
SELECT + col0 + - col2, col0 AS col1 FROM tab1
----
-45
51
23
91
26
85

query III rowsort
SELECT * FROM tab2 WHERE NULL < 40 * + col1
----

query I rowsort
SELECT + col1 + + + col0 + - col1 AS col2 FROM tab2
----
46
64
75

query I rowsort
SELECT - ( + + col1 ) + - + col1 * - 12 AS col2 FROM tab1
----
154
517
55

query II rowsort
SELECT DISTINCT col0 * + 14, col2 * + + col1 AS col2 FROM tab0
----
1218
210
1358
99
210
3807

query III rowsort
SELECT * FROM tab0 WHERE - + col2 NOT BETWEEN NULL AND - 75 / - col2 * col0
----

query III rowsort
SELECT * FROM tab0 WHERE NULL NOT BETWEEN + + 78 AND - col1
----

query II rowsort
SELECT DISTINCT + col2 + - col0, + col2 * - 37 + + - col1 AS col0 FROM tab0 cor0
----
-77
-391
2
-3664
32
-1820

query I rowsort
SELECT DISTINCT - col2 + - + col1 FROM tab2 AS cor0 WHERE NOT col0 / 82 * 15 IS NULL
----
-117
-125
-74

query IIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL < NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-6614
SELECT 3 - + - 35 DIV + col1 AS col0, 88 + - col1 FROM tab0
----
3
7
38
87
4
67

skipif mysql # not compatible
query II rowsort label-6614
SELECT 3 - + - 35 / + col1 AS col0, 88 + - col1 FROM tab0
----
3
7
38
87
4
67

query I rowsort
SELECT ( + + 19 ) FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 3dac30dc82c9e5acbbd3a5c5d1aeee11

query I rowsort
SELECT DISTINCT + col2 + + + 28 AS col0 FROM tab1 WHERE NOT + - col2 * - 12 > - col1 + + - col0 + 15 + - 92 + + col1
----

query I rowsort
SELECT + col2 * 82 AS col1 FROM tab0 WHERE + + col1 < - 69
----

query I rowsort
SELECT ALL - 85 FROM tab0 WHERE NOT ( NOT NULL = - ( + 87 ) )
----

query III rowsort
SELECT * FROM tab2 WHERE + col2 + - 41 IS NULL
----

query I rowsort
SELECT - 39 + - + 8 * + col0 * col2 AS col1 FROM tab2 AS cor0
----
-20519
-34839
-8503

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 69 * + col2 * + col1 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col1 * + col2 IS NULL
----

query II rowsort
SELECT ALL - + col2, ( + 23 ) + + col2 AS col0 FROM tab2 cor0
----
-23
46
-40
63
-58
81

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT NULL <= - col1 / + col0 * + - col0
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6625
SELECT COUNT( * ) AS col2, COUNT( * ) DIV - SUM( DISTINCT + ( - + ( + col0 ) ) ) FROM tab2
----
3
0

skipif mysql # not compatible
query II rowsort label-6625
SELECT COUNT ( * ) AS col2, COUNT ( * ) / - SUM ( DISTINCT + ( - + ( + col0 ) ) ) FROM tab2
----
3
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 61, - col0 col0 FROM tab0
----
61
-15
61
-87
61
-97

query I rowsort
SELECT - col1 * - - col1 FROM tab0
----
-1
-441
-6561

onlyif mysql # DIV for integer division: 
query I rowsort label-6628
SELECT DISTINCT col0 * - col0 DIV + col0 FROM tab0
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-6628
SELECT DISTINCT col0 * - col0 / + col0 FROM tab0
----
-15
-87
-97

onlyif mysql # DIV for integer division: 
query II rowsort label-6629
SELECT ALL + col0 DIV - col1, - col2 col0 FROM tab2
----
-1
-58
0
-23
0
-40

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6629
SELECT ALL + col0 / - col1, - col2 col0 FROM tab2
----
-1
-58
0
-23
0
-40

query II rowsort
SELECT DISTINCT 40, col2 AS col1 FROM tab0
----
40
10
40
47
40
99

onlyif mysql # aggregate syntax: 
query I rowsort label-6631
SELECT DISTINCT - MIN( ALL col0 ) FROM tab2
----
-46

skipif mysql # not compatible
query I rowsort label-6631
SELECT DISTINCT - MIN ( ALL col0 ) FROM tab2
----
-46

query I rowsort
SELECT ALL 11 * - + col1 AS col1 FROM tab2
----
-561
-737
-847

query III rowsort
SELECT * FROM tab2 WHERE NOT + 79 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6634
SELECT - col0 * + + CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6634
SELECT - col0 * + + CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6635
SELECT DISTINCT COUNT( ALL - 61 ) * - 62 AS col0 FROM tab1
----
-186

skipif mysql # not compatible
query I rowsort label-6635
SELECT DISTINCT COUNT ( ALL - 61 ) * - 62 AS col0 FROM tab1
----
-186

query I rowsort
SELECT col0 * 24 + + ( + col0 ) FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT DISTINCT + + col0, col0 * + col2 * + col1 AS col2 FROM tab1 AS cor0
----
51
68544
85
25075
91
290836

onlyif mysql # aggregate syntax: 
query I rowsort label-6638
SELECT ALL - - ( MAX( + + col2 ) ) FROM tab2 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-6638
SELECT ALL - - ( MAX ( + + col2 ) ) FROM tab2 AS cor0
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-6639
SELECT ( + - SUM( ALL - + col1 ) ) FROM tab2 AS cor0
----
195

skipif mysql # not compatible
query I rowsort label-6639
SELECT ( + - SUM ( ALL - + col1 ) ) FROM tab2 AS cor0
----
195

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + 21 ) + + 90 + col2 col0 FROM tab0
----
121
158
210

onlyif mysql # aggregate syntax: 
query I rowsort label-6641
SELECT - 85 + + COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-76

skipif mysql # not compatible
query I rowsort label-6641
SELECT - 85 + + COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6642
SELECT ALL 95 FROM tab2 WHERE - - col1 + - - col2 * ( + CAST( NULL AS SIGNED ) ) = + col0
----

skipif mysql # not compatible
query I rowsort label-6642
SELECT ALL 95 FROM tab2 WHERE - - col1 + - - col2 * ( + CAST ( NULL AS INTEGER ) ) = + col0
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + col1 * + 85 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6644
SELECT DISTINCT - COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-6644
SELECT DISTINCT - COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-6645
SELECT ALL - - 27 * - + ( COUNT( * ) ) AS col0 FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-6645
SELECT ALL - - 27 * - + ( COUNT ( * ) ) AS col0 FROM tab0 AS cor0
----
-81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6646
SELECT ALL + - 29 + + - CAST( NULL AS SIGNED ) + - ( + 33 ) + - - col0 * - col2 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6646
SELECT ALL + - 29 + + - CAST ( NULL AS INTEGER ) + - ( + 33 ) + - - col0 * - col2 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6647
SELECT 89 DIV + col1 AS col2 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-6647
SELECT 89 / + col1 AS col2 FROM tab2 AS cor0
----
1
1
1

query I rowsort
SELECT DISTINCT - - ( - + col2 ) * col0 * - + col1 AS col0 FROM tab2 cor0
----
197120
291450
53958

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * + + col2 - - + col1 col1 FROM tab1 cor0
----
-3476
-4577
-9202

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - 54 ) col1 FROM tab0
----
-54
-54
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-6651
SELECT + 83 * - - COUNT( * ) AS col0 FROM tab0
----
249

skipif mysql # not compatible
query I rowsort label-6651
SELECT + 83 * - - COUNT ( * ) AS col0 FROM tab0
----
249

onlyif mysql # aggregate syntax: 
query I rowsort label-6652
SELECT DISTINCT MIN( ALL - col1 ) + + COUNT( * ) AS col0 FROM tab0
----
-78

skipif mysql # not compatible
query I rowsort label-6652
SELECT DISTINCT MIN ( ALL - col1 ) + + COUNT ( * ) AS col0 FROM tab0
----
-78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6653
SELECT ALL COUNT( ALL 72 ) * CAST( - 45 AS SIGNED ) + 69 + 19 AS col1 FROM tab2
----
-47

skipif mysql # not compatible
query I rowsort label-6653
SELECT ALL COUNT ( ALL 72 ) * CAST ( - 45 AS INTEGER ) + 69 + 19 AS col1 FROM tab2
----
-47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col1 + 88 col0 FROM tab1 AS cor0
----
102
135
93

query I rowsort
SELECT - col0 + + 1 + - - 31 AS col1 FROM tab1 AS cor0
----
-19
-53
-59

query I rowsort
SELECT 92 + - col1 AS col2 FROM tab2 AS cor0
----
15
25
41

onlyif mysql # aggregate syntax: 
query I rowsort label-6657
SELECT 93 + + COUNT( * ) AS col1 FROM tab1 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-6657
SELECT 93 + + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
96

query I rowsort
SELECT + + col2 * - col1 + - col0 + + ( + col1 ) + col1 FROM tab0 AS cor0
----
-194
-255
-3660

onlyif mysql # DIV for integer division: 
query I rowsort label-6659
SELECT DISTINCT - 83 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-6659
SELECT DISTINCT - 83 / col2 col1 FROM tab2
----
-1
-2
-3

query III rowsort
SELECT * FROM tab0 WHERE NOT - col0 + col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-6661
SELECT + SUM( DISTINCT ( 55 ) ) FROM tab2
----
55

skipif mysql # not compatible
query I rowsort label-6661
SELECT + SUM ( DISTINCT ( 55 ) ) FROM tab2
----
55

query I rowsort
SELECT + col1 FROM tab2 WHERE NOT 46 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6663
SELECT - col0 DIV 49 - + 42 FROM tab0
----
-42
-43
-43

skipif mysql # not compatible
query I rowsort label-6663
SELECT - col0 / 49 - + 42 FROM tab0
----
-42
-43
-43

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - col2 = NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col0 + - col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6666
SELECT DISTINCT * FROM tab1 WHERE NOT + CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-6666
SELECT DISTINCT * FROM tab1 WHERE NOT + CAST ( NULL AS INTEGER ) IS NULL
----

query I rowsort
SELECT + ( + col2 ) - - 2 AS col0 FROM tab2
----
25
42
60

query III rowsort
SELECT * FROM tab0 WHERE ( - 71 ) < - col1
----
87
21
10
97
1
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6669
SELECT MAX( DISTINCT - CAST( 42 AS SIGNED ) ) FROM tab1
----
-42

skipif mysql # not compatible
query I rowsort label-6669
SELECT MAX ( DISTINCT - CAST ( 42 AS INTEGER ) ) FROM tab1
----
-42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6670
SELECT + col0 AS col1 FROM tab1 WHERE NOT 22 NOT BETWEEN CAST( NULL AS SIGNED ) * - 72 AND ( 19 / 11 )
----

skipif mysql # not compatible
query I rowsort label-6670
SELECT + col0 AS col1 FROM tab1 WHERE NOT 22 NOT BETWEEN CAST ( NULL AS INTEGER ) * - 72 AND ( 19 / 11 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6671
SELECT - SUM( ALL col0 ) + MIN( + col1 ) AS col1 FROM tab1 WHERE - 83 > NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6671
SELECT - SUM ( ALL col0 ) + MIN ( + col1 ) AS col1 FROM tab1 WHERE - 83 > NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6672
SELECT DISTINCT + SUM( 65 ) AS col2 FROM tab2
----
195

skipif mysql # not compatible
query I rowsort label-6672
SELECT DISTINCT + SUM ( 65 ) AS col2 FROM tab2
----
195

onlyif mysql # aggregate syntax: 
query I rowsort label-6673
SELECT DISTINCT + COUNT( * ) * + COUNT( * ) FROM tab1 WHERE NOT - col2 BETWEEN NULL AND - col0
----
4

skipif mysql # not compatible
query I rowsort label-6673
SELECT DISTINCT + COUNT ( * ) * + COUNT ( * ) FROM tab1 WHERE NOT - col2 BETWEEN NULL AND - col0
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-6674
SELECT MAX( DISTINCT col0 ) AS col2 FROM tab2
----
75

skipif mysql # not compatible
query I rowsort label-6674
SELECT MAX ( DISTINCT col0 ) AS col2 FROM tab2
----
75

query III rowsort
SELECT * FROM tab1 WHERE NOT ( - ( + col2 ) ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 17 + - 35 FROM tab2 WHERE NOT ( 91 ) IS NOT NULL
----

query I rowsort
SELECT + 23 / + col0 + + 45 FROM tab2 WHERE NOT ( - col0 + - col2 ) NOT IN ( + 15 )
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6678
SELECT - CAST( NULL AS DECIMAL ) + + COUNT( * ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-6678
SELECT - CAST ( NULL AS REAL ) + + COUNT ( * ) AS col0 FROM tab2
----
NULL

query I rowsort
SELECT col2 + 31 AS col1 FROM tab1
----
127
90
99

onlyif mysql # aggregate syntax: 
query I rowsort label-6680
SELECT DISTINCT COUNT( * ) FROM tab2 WHERE NOT col2 BETWEEN + col0 AND NULL
----
3

skipif mysql # not compatible
query I rowsort label-6680
SELECT DISTINCT COUNT ( * ) FROM tab2 WHERE NOT col2 BETWEEN + col0 AND NULL
----
3

query I rowsort
SELECT - 66 + - 80 FROM tab0
----
-146
-146
-146

onlyif mysql # aggregate syntax: 
query I rowsort label-6682
SELECT MAX( DISTINCT + 40 ) FROM tab0
----
40

skipif mysql # not compatible
query I rowsort label-6682
SELECT MAX ( DISTINCT + 40 ) FROM tab0
----
40

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6683
SELECT + COUNT( * ) DIV + 54 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6683
SELECT + COUNT ( * ) / + 54 FROM tab1 AS cor0
----
0

query I rowsort
SELECT + 63 * col1 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN ( col2 ) AND 88
----

query I rowsort
SELECT ALL + 58 * - 33 AS col0 FROM tab1 cor0
----
-1914
-1914
-1914

onlyif mysql # aggregate syntax: 
query I rowsort label-6686
SELECT DISTINCT - SUM( + col0 ) AS col2 FROM tab0 AS cor0 WHERE + col0 IS NOT NULL
----
-199

skipif mysql # not compatible
query I rowsort label-6686
SELECT DISTINCT - SUM ( + col0 ) AS col2 FROM tab0 AS cor0 WHERE + col0 IS NOT NULL
----
-199

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col0 NOT BETWEEN - 15 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6688
SELECT ALL ( COUNT( 8 ) ) * - COUNT( * ) AS col0 FROM tab0 WHERE 8 IS NOT NULL
----
-9

skipif mysql # not compatible
query I rowsort label-6688
SELECT ALL ( COUNT ( 8 ) ) * - COUNT ( * ) AS col0 FROM tab0 WHERE 8 IS NOT NULL
----
-9

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE 87 + + col0 * + col1 IS NULL
----

query I rowsort
SELECT ALL 92 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1
----
9 values hashing to 516fa45c8b06f9f67d6e500bfd435c1a

query I rowsort
SELECT ALL 9 AS col2 FROM tab1 WHERE col2 * - col1 IS NOT NULL
----
9
9
9

onlyif mysql # aggregate syntax: 
query I rowsort label-6692
SELECT DISTINCT ( + COUNT( * ) ) FROM tab0 AS cor0 CROSS JOIN tab1
----
9

skipif mysql # not compatible
query I rowsort label-6692
SELECT DISTINCT ( + COUNT ( * ) ) FROM tab0 AS cor0 CROSS JOIN tab1
----
9

query I rowsort
SELECT + col0 FROM tab0 WHERE NOT + 38 IN ( 40 )
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-6694
SELECT - MAX( DISTINCT + col2 ) AS col2 FROM tab2
----
-58

skipif mysql # not compatible
query I rowsort label-6694
SELECT - MAX ( DISTINCT + col2 ) AS col2 FROM tab2
----
-58

onlyif mysql # DIV for integer division: 
query I rowsort label-6695
SELECT ALL - col0 DIV col2 + + col0 AS col2 FROM tab0 AS cor0
----
15
79
97

skipif mysql # not compatible
query I rowsort label-6695
SELECT ALL - col0 / col2 + + col0 AS col2 FROM tab0 AS cor0
----
15
79
97

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT col1 >= ( 50 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-6697
SELECT DISTINCT - 83 + + ( COUNT( * ) ) * COUNT( * ) AS col2 FROM tab2 AS cor0
----
-74

skipif mysql # not compatible
query I rowsort label-6697
SELECT DISTINCT - 83 + + ( COUNT ( * ) ) * COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-74

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NULL NOT IN ( + 81 )
----

query I rowsort
SELECT ALL col1 FROM tab1 AS cor0 WHERE NOT - col0 + + ( col0 ) NOT IN ( - 31 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6700
SELECT - - CAST( NULL AS SIGNED ) + col0 col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6700
SELECT - - CAST ( NULL AS INTEGER ) + col0 col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6701
SELECT ALL - + MAX( ALL 65 ) + SUM( ALL col2 ) FROM tab1 AS cor0
----
158

skipif mysql # not compatible
query I rowsort label-6701
SELECT ALL - + MAX ( ALL 65 ) + SUM ( ALL col2 ) FROM tab1 AS cor0
----
158

query I rowsort
SELECT - 84 + col0 FROM tab2 cor0
----
-20
-38
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-6703
SELECT ALL + COUNT( * ) * + COUNT( * ) FROM tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-6703
SELECT ALL + COUNT ( * ) * + COUNT ( * ) FROM tab0 AS cor0
----
9

query III rowsort
SELECT * FROM tab1 cor0 WHERE + col2 - 18 * + col2 <> col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col0 + 32 AS col0 FROM tab0 AS cor0
----
119
129
47

query I rowsort
SELECT DISTINCT 28 - - 17 FROM tab2 AS cor0 WHERE NOT NULL >= col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6707
SELECT + - col0 + + CAST( + col1 AS SIGNED ) col2 FROM tab2 AS cor0
----
-8
13
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6707
SELECT + - col0 + + CAST ( + col1 AS INTEGER ) col2 FROM tab2 AS cor0
----
-8
13
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 col0 FROM tab1 WHERE NOT 18 + col1 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6709
SELECT - col2 + - col2 + col2 DIV - col0 AS col1 FROM tab0
----
-199
-20
-97

skipif mysql # not compatible
query I rowsort label-6709
SELECT - col2 + - col2 + col2 / - col0 AS col1 FROM tab0
----
-199
-20
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6710
SELECT ALL col1 / col2 FROM tab0 WHERE NOT - col0 + + col2 NOT BETWEEN NULL AND CAST( + col1 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-6710
SELECT ALL col1 / col2 FROM tab0 WHERE NOT - col0 + + col2 NOT BETWEEN NULL AND CAST ( + col1 AS INTEGER )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6711
SELECT ALL MAX( ALL + 66 ) DIV MAX( - col2 + 73 ) FROM tab1
----
4

skipif mysql # not compatible
query I rowsort label-6711
SELECT ALL MAX ( ALL + 66 ) / MAX ( - col2 + 73 ) FROM tab1
----
4

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6712
SELECT * FROM tab2 WHERE ( + CAST( NULL AS SIGNED ) ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-6712
SELECT * FROM tab2 WHERE ( + CAST ( NULL AS INTEGER ) ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-6713
SELECT DISTINCT col0 DIV - 74 AS col0 FROM tab0
----
-1
0

skipif mysql # not compatible
query I rowsort label-6713
SELECT DISTINCT col0 / - 74 AS col0 FROM tab0
----
-1
0

query I rowsort
SELECT ALL + col2 + - 32 AS col2 FROM tab2
----
-9
26
8

onlyif mysql # aggregate syntax: 
query I rowsort label-6715
SELECT - COUNT( * ) * + + COUNT( * ) AS col0 FROM tab1
----
-9

skipif mysql # not compatible
query I rowsort label-6715
SELECT - COUNT ( * ) * + + COUNT ( * ) AS col0 FROM tab1
----
-9

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NULL ) IN ( col1 / - col1 )
----

query I rowsort
SELECT DISTINCT - - col1 + col0 * col2 FROM tab2 AS cor0
----
1109
2637
4417

onlyif mysql # aggregate syntax: 
query I rowsort label-6718
SELECT - COUNT( * ) - 66 AS col2 FROM tab2 AS cor0
----
-69

skipif mysql # not compatible
query I rowsort label-6718
SELECT - COUNT ( * ) - 66 AS col2 FROM tab2 AS cor0
----
-69

query I rowsort
SELECT col1 FROM tab1 AS cor0 WHERE 30 NOT BETWEEN - 17 - col0 AND NULL
----

query I rowsort
SELECT 17 - col0 + col1 AS col0 FROM tab2 cor0
----
22
30
9

query I rowsort
SELECT DISTINCT + + 50 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-6722
SELECT - COUNT( + + col0 ) AS col2 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-6722
SELECT - COUNT ( + + col0 ) AS col2 FROM tab2
----
-3

query II rowsort
SELECT DISTINCT - col2 AS col1, - col1 FROM tab1
----
-59
-5
-68
-47
-96
-14

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( + - 87 ) IS NOT NULL
----

query I rowsort
SELECT ALL + 64 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 60ab040e931c5c85db7ba19364eacc8e

onlyif mysql # aggregate syntax: 
query I rowsort label-6726
SELECT ALL - ( + COUNT( * ) ) AS col0 FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-6726
SELECT ALL - ( + COUNT ( * ) ) AS col0 FROM tab0 cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-6727
SELECT ALL SUM( DISTINCT + ( + + 39 ) ) FROM tab0 AS cor0
----
39

skipif mysql # not compatible
query I rowsort label-6727
SELECT ALL SUM ( DISTINCT + ( + + 39 ) ) FROM tab0 AS cor0
----
39

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * + col2 * + col1 col0 FROM tab2 AS cor0
----
-123200
-225388
-26979

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN 59 AND - col1 - col1
----

query I rowsort
SELECT ( + 95 ) FROM tab2 AS cor0
----
95
95
95

query I rowsort
SELECT - col2 / 19 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 82 col1 FROM tab0
----
82

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + + col1 - + col2 + + 80 < NULL
----

query I rowsort
SELECT 7 * + 33 * + 90 AS col2 FROM tab0
----
20790
20790
20790

onlyif mysql # aggregate syntax: 
query I rowsort label-6735
SELECT DISTINCT - SUM( - 48 ) FROM tab0
----
144

skipif mysql # not compatible
query I rowsort label-6735
SELECT DISTINCT - SUM ( - 48 ) FROM tab0
----
144

query I rowsort
SELECT col0 + - 8 FROM tab0 WHERE NOT ( + 45 ) < NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - col0 <= ( - col1 )
----
87
21
10
97
1
99

query III rowsort
SELECT * FROM tab0 WHERE NOT - + 11 + + + col2 > ( col1 * + 4 + 48 )
----
15
81
47
87
21
10

onlyif mysql # aggregate syntax: 
query I rowsort label-6739
SELECT ALL 69 - COUNT( DISTINCT - 89 ) AS col2 FROM tab1 AS cor0 WHERE NOT ( col1 IS NULL )
----
68

skipif mysql # not compatible
query I rowsort label-6739
SELECT ALL 69 - COUNT ( DISTINCT - 89 ) AS col2 FROM tab1 AS cor0 WHERE NOT ( col1 IS NULL )
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-6740
SELECT ALL + COUNT( ALL - - ( + col2 ) ) * - - COUNT( * ) AS col0 FROM tab0 cor0
----
9

skipif mysql # not compatible
query I rowsort label-6740
SELECT ALL + COUNT ( ALL - - ( + col2 ) ) * - - COUNT ( * ) AS col0 FROM tab0 cor0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-6741
SELECT - MIN( ALL col1 ) FROM tab1 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-6741
SELECT - MIN ( ALL col1 ) FROM tab1 AS cor0
----
-5

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6742
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - CAST( + col2 AS SIGNED ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-6742
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - CAST ( + col2 AS INTEGER ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col0 AS col1 FROM tab0 AS cor0 WHERE NULL IN ( col2 * - col2 + - - col2 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6744
SELECT * FROM tab1 AS cor0 WHERE - CAST( - col1 AS DECIMAL ) <= ( + + ( - col1 ) )
----

skipif mysql # not compatible
query III rowsort label-6744
SELECT * FROM tab1 AS cor0 WHERE - CAST ( - col1 AS REAL ) <= ( + + ( - col1 ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6745
SELECT ALL 78 DIV + ( + col2 ) FROM tab2 AS cor0
----
1
1
3

skipif mysql # not compatible
query I rowsort label-6745
SELECT ALL 78 / + ( + col2 ) FROM tab2 AS cor0
----
1
1
3

query I rowsort
SELECT 3 * + 66 + + 1 FROM tab1 AS cor0
----
199
199
199

onlyif mysql # aggregate syntax: 
query I rowsort label-6747
SELECT + MIN( DISTINCT - col2 ) * - - COUNT( * ) + + - 89 FROM tab0 AS cor0
----
-386

skipif mysql # not compatible
query I rowsort label-6747
SELECT + MIN ( DISTINCT - col2 ) * - - COUNT ( * ) + + - 89 FROM tab0 AS cor0
----
-386

query I rowsort
SELECT DISTINCT + 44 FROM tab1 cor0 WHERE - col1 * 28 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 62 * + col1 col2 FROM tab2 AS cor0
----
-3162
-4154
-4774

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6750
SELECT * FROM tab2 AS cor0 WHERE + CAST( NULL AS SIGNED ) IN ( + + 24 )
----

skipif mysql # not compatible
query III rowsort label-6750
SELECT * FROM tab2 AS cor0 WHERE + CAST ( NULL AS INTEGER ) IN ( + + 24 )
----

query I rowsort
SELECT col1 * - col0 * + 65 FROM tab2 cor0
----
-152490
-320320
-326625

query I rowsort
SELECT - + col1 * + - 84 AS col2 FROM tab1 AS cor0
----
1176
3948
420

query I rowsort
SELECT ALL col0 FROM tab2 WHERE NOT - - ( + col0 ) IN ( + col2 )
----
46
64
75

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + 12 + + + 39 = NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6755
SELECT ( + CAST( + COUNT( * ) AS SIGNED ) ) + - 99 FROM tab0
----
-96

skipif mysql # not compatible
query I rowsort label-6755
SELECT ( + CAST ( + COUNT ( * ) AS INTEGER ) ) + - 99 FROM tab0
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-6756
SELECT COUNT( * ) + 4 AS col0 FROM tab1 WHERE - col1 > 53 / col2
----
4

skipif mysql # not compatible
query I rowsort label-6756
SELECT COUNT ( * ) + 4 AS col0 FROM tab1 WHERE - col1 > 53 / col2
----
4

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6757
SELECT - 8 * + AVG ( - col1 ) / COUNT( CAST( + col1 AS DECIMAL ) / - 99 ) FROM tab1 AS cor0 WHERE - ( - 1 ) < NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6757
SELECT - 8 * + AVG ( - col1 ) / COUNT ( CAST ( + col1 AS REAL ) / - 99 ) FROM tab1 AS cor0 WHERE - ( - 1 ) < NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6758
SELECT DISTINCT + MIN( col1 ) + + - ( + MIN( DISTINCT + col1 ) ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6758
SELECT DISTINCT + MIN ( col1 ) + + - ( + MIN ( DISTINCT + col1 ) ) FROM tab2 AS cor0
----
0

query II rowsort
SELECT ( - 95 ), + col2 FROM tab1 AS cor0
----
-95
59
-95
68
-95
96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6760
SELECT + SUM( DISTINCT col0 ) DIV + - COUNT( * ) + 70 AS col0 FROM tab2 cor0
----
9

skipif mysql # not compatible
query I rowsort label-6760
SELECT + SUM ( DISTINCT col0 ) / + - COUNT ( * ) + 70 AS col0 FROM tab2 cor0
----
9

onlyif mysql # aggregate syntax: 
query II rowsort label-6761
SELECT - + ( - COUNT( * ) ) AS col1, - 25 * - - COUNT( ALL - 44 ) AS col1 FROM tab1 cor0
----
3
-75

skipif mysql # not compatible
query II rowsort label-6761
SELECT - + ( - COUNT ( * ) ) AS col1, - 25 * - - COUNT ( ALL - 44 ) AS col1 FROM tab1 cor0
----
3
-75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6762
SELECT DISTINCT COUNT( * ) DIV - - COUNT( * ) AS col0 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-6762
SELECT DISTINCT COUNT ( * ) / - - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
1

query I rowsort
SELECT ALL - + 40 FROM tab2 cor0
----
-40
-40
-40

query III rowsort
SELECT * FROM tab0 WHERE NOT - 25 <= ( - 37 + - col2 * + ( - 79 ) * - col2 / 78 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query II rowsort label-6765
SELECT ALL COUNT( * ), + COUNT( * ) col2 FROM tab2
----
3
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6765
SELECT ALL COUNT ( * ), + COUNT ( * ) col2 FROM tab2
----
3
3

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6766
SELECT DISTINCT 89 / + + CAST( NULL AS DECIMAL ) / + col0 * - col2 + col2 + + 27 - + 90 * - col0 AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-6766
SELECT DISTINCT 89 / + + CAST ( NULL AS REAL ) / + col0 * - col2 + col2 + + 27 - + 90 * - col0 AS col0 FROM tab1
----
NULL

query II rowsort
SELECT col1 AS col1, + col1 FROM tab0 cor0
----
1
1
21
21
81
81

query I rowsort
SELECT - col1 * - 71 AS col2 FROM tab1 AS cor0
----
3337
355
994

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - + col2 ) col0 FROM tab1
----
-59
-68
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + - col0 col1 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT + + col0 + col2 * + col0 FROM tab1 AS cor0
----
4947
5100
6279

query III rowsort
SELECT * FROM tab2 cor0 WHERE col1 + + - 64 - + col0 * - col1 / + col1 NOT IN ( ( - - 26 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT ALL 40 - - col0, + col1 FROM tab1 AS cor0
----
125
5
131
47
91
14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6774
SELECT CAST( + SUM( ALL - col1 ) AS SIGNED ) * + 43 FROM tab0
----
-4429

skipif mysql # not compatible
query I rowsort label-6774
SELECT CAST ( + SUM ( ALL - col1 ) AS INTEGER ) * + 43 FROM tab0
----
-4429

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6775
SELECT CAST( NULL AS SIGNED ) * - AVG ( + col1 ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-6775
SELECT CAST ( NULL AS INTEGER ) * - AVG ( + col1 ) AS col1 FROM tab2
----
NULL

query I rowsort
SELECT ALL col2 + + - col2 AS col1 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6777
SELECT ALL COUNT( * ) + + 20 col1 FROM tab0
----
23

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6777
SELECT ALL COUNT ( * ) + + 20 col1 FROM tab0
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-6778
SELECT COUNT( * ) * - 37 FROM tab0
----
-111

skipif mysql # not compatible
query I rowsort label-6778
SELECT COUNT ( * ) * - 37 FROM tab0
----
-111

query I rowsort
SELECT col0 * + 59 FROM tab1
----
3009
5015
5369

query I rowsort
SELECT ALL + 65 FROM tab2 AS cor0 WHERE NOT ( 73 IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6781
SELECT + - MIN( + - col2 ) FROM tab1 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-6781
SELECT + - MIN ( + - col2 ) FROM tab1 AS cor0
----
96

query I rowsort
SELECT 54 * 76 FROM tab1
----
4104
4104
4104

query I rowsort
SELECT ALL - 20 * - + 90 AS col1 FROM tab0
----
1800
1800
1800

query I rowsort
SELECT + 58 * - col2 FROM tab2
----
-1334
-2320
-3364

query I rowsort
SELECT 3 * - col0 AS col0 FROM tab2
----
-138
-192
-225

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6786
SELECT - - col1 * - 25 AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT IN ( - 28 * + - CAST( - 53 AS SIGNED ), + ( + - 23 ) * + - col2 * 4 )
----

skipif mysql # not compatible
query I rowsort label-6786
SELECT - - col1 * - 25 AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT IN ( - 28 * + - CAST ( - 53 AS INTEGER ), + ( + - 23 ) * + - col2 * 4 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6787
SELECT DISTINCT - COUNT( * ) DIV + 95 AS col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6787
SELECT DISTINCT - COUNT ( * ) / + 95 AS col1 FROM tab0 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-6788
SELECT 81 AS col0, COUNT( * ) FROM tab2 AS cor0
----
81
3

skipif mysql # not compatible
query II rowsort label-6788
SELECT 81 AS col0, COUNT ( * ) FROM tab2 AS cor0
----
81
3

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - col2 + + 76 IS NULL
----

query I rowsort
SELECT ALL - + ( 41 ) FROM tab0 AS cor0
----
-41
-41
-41

query II rowsort
SELECT col2 AS col0, - col0 AS col2 FROM tab1 AS cor0
----
59
-85
68
-91
96
-51

query III rowsort
SELECT * FROM tab1 WHERE NOT - 62 <= - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6793
SELECT COUNT( - col0 ) AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-6793
SELECT COUNT ( - col0 ) AS col2 FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6794
SELECT ALL - SUM( DISTINCT + col2 ) AS col2 FROM tab2
----
-121

skipif mysql # not compatible
query I rowsort label-6794
SELECT ALL - SUM ( DISTINCT + col2 ) AS col2 FROM tab2
----
-121

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6795
SELECT CAST( NULL AS DECIMAL ) AS col0 FROM tab1 WHERE NOT NULL IN ( + - col0 )
----

skipif mysql # not compatible
query I rowsort label-6795
SELECT CAST ( NULL AS REAL ) AS col0 FROM tab1 WHERE NOT NULL IN ( + - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6796
SELECT ALL + + MIN( + ( - - ( - col2 ) ) ) FROM tab1 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-6796
SELECT ALL + + MIN ( + ( - - ( - col2 ) ) ) FROM tab1 AS cor0
----
-96

query I rowsort
SELECT + 57 + + - 65 + + 73 FROM tab2 AS cor0
----
65
65
65

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col0 <> 29 + - + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-6799
SELECT DISTINCT - COUNT( DISTINCT + col2 ) + COUNT( * ) AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-6799
SELECT DISTINCT - COUNT ( DISTINCT + col2 ) + COUNT ( * ) AS col2 FROM tab1
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 68 AS col1, 91 col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
18 values hashing to 80546ef8524b622a9c7255538a13a483

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6801
SELECT COUNT( 29 ) AS col0 FROM tab0 WHERE CAST( NULL AS SIGNED ) - - col0 >= + col0
----
0

skipif mysql # not compatible
query I rowsort label-6801
SELECT COUNT ( 29 ) AS col0 FROM tab0 WHERE CAST ( NULL AS INTEGER ) - - col0 >= + col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6802
SELECT COUNT( * ) col0 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6802
SELECT COUNT ( * ) col0 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9

query I rowsort
SELECT DISTINCT + ( - col0 ) + - - 74 FROM tab0
----
-13
-23
59

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6804
SELECT + + CAST( NULL AS SIGNED ) AS col2, + 47 AS col0 FROM tab2 AS cor0
----
NULL
47
NULL
47
NULL
47

skipif mysql # not compatible
query II rowsort label-6804
SELECT + + CAST ( NULL AS INTEGER ) AS col2, + 47 AS col0 FROM tab2 AS cor0
----
NULL
47
NULL
47
NULL
47

query I rowsort
SELECT ALL - + col2 + - - col0 FROM tab1 cor0
----
-45
23
26

query II rowsort
SELECT 76 + + - 76 AS col2, col2 * col1 + + 33 AS col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-6807
SELECT + - col2 col0, ( - 89 ) DIV - col0 AS col1 FROM tab2 AS cor0
----
-23
1
-40
1
-58
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6807
SELECT + - col2 col0, ( - 89 ) / - col0 AS col1 FROM tab2 AS cor0
----
-23
1
-40
1
-58
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6808
SELECT ALL + CAST( + col1 AS SIGNED ) * col2 * - col2 * - - col1 + + ( col0 ) FROM tab2 AS cor0
----
-1375883
-15100921
-9486336

skipif mysql # not compatible
query I rowsort label-6808
SELECT ALL + CAST ( + col1 AS INTEGER ) * col2 * - col2 * - - col1 + + ( col0 ) FROM tab2 AS cor0
----
-1375883
-15100921
-9486336

query I rowsort
SELECT ALL + 22 FROM tab0 cor0 WHERE 29 IS NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( + col0 ) <> col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6811
SELECT + col1 - 58 + - col0 DIV - 35 FROM tab1 AS cor0
----
-43
-51
-9

skipif mysql # not compatible
query I rowsort label-6811
SELECT + col1 - 58 + - col0 / - 35 FROM tab1 AS cor0
----
-43
-51
-9

query I rowsort
SELECT + 3 - + col1 * + - col0 AS col0 FROM tab0 AS cor0
----
100
1218
1830

query I rowsort
SELECT DISTINCT + col1 - + 79 AS col2 FROM tab2
----
-12
-2
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-6814
SELECT ALL ( + - COUNT( * ) ) * - COUNT( * ) FROM tab1
----
9

skipif mysql # not compatible
query I rowsort label-6814
SELECT ALL ( + - COUNT ( * ) ) * - COUNT ( * ) FROM tab1
----
9

query I rowsort
SELECT DISTINCT + col0 * + 64 FROM tab0
----
5568
6208
960

query III rowsort
SELECT * FROM tab2 WHERE + col0 > - - ( - + col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col0 + 67 FROM tab2
----
-8
21
3

onlyif mysql # DIV for integer division: 
query I rowsort label-6818
SELECT DISTINCT + col1 DIV - col2 + col0 AS col2 FROM tab1
----
51
85
91

skipif mysql # not compatible
query I rowsort label-6818
SELECT DISTINCT + col1 / - col2 + col0 AS col2 FROM tab1
----
51
85
91

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6819
SELECT + 53 - - col2 AS col1 FROM tab0 AS cor0 WHERE NOT - CAST( NULL AS DECIMAL ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-6819
SELECT + 53 - - col2 AS col1 FROM tab0 AS cor0 WHERE NOT - CAST ( NULL AS REAL ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + ( - - col0 ) col1, + col0 + - + 45 AS col1 FROM tab0 cor0
----
15
-30
87
42
97
52

onlyif mysql # aggregate syntax: 
query I rowsort label-6821
SELECT ALL + 94 * + - MAX( col2 ) FROM tab0 AS cor0
----
-9306

skipif mysql # not compatible
query I rowsort label-6821
SELECT ALL + 94 * + - MAX ( col2 ) FROM tab0 AS cor0
----
-9306

onlyif mysql # DIV for integer division: 
query I rowsort label-6822
SELECT DISTINCT 1 DIV + 40 AS col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-6822
SELECT DISTINCT 1 / + 40 AS col0 FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-6823
SELECT DISTINCT COUNT( * ), - 8 AS col0 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9
-8

skipif mysql # not compatible
query II rowsort label-6823
SELECT DISTINCT COUNT ( * ), - 8 AS col0 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-6824
SELECT MAX( - ( + + 75 ) ) * COUNT( * ) AS col0 FROM tab2
----
-225

skipif mysql # not compatible
query I rowsort label-6824
SELECT MAX ( - ( + + 75 ) ) * COUNT ( * ) AS col0 FROM tab2
----
-225

onlyif mysql # aggregate syntax: 
query I rowsort label-6825
SELECT + ( + MIN( ALL + 21 ) ) FROM tab1
----
21

skipif mysql # not compatible
query I rowsort label-6825
SELECT + ( + MIN ( ALL + 21 ) ) FROM tab1
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-6826
SELECT DISTINCT - SUM( + 46 ) AS col1 FROM tab1 AS cor0
----
-138

skipif mysql # not compatible
query I rowsort label-6826
SELECT DISTINCT - SUM ( + 46 ) AS col1 FROM tab1 AS cor0
----
-138

query I rowsort
SELECT DISTINCT - 37 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN col1 AND 81
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6828
SELECT DISTINCT + 88 DIV 2 * col2 + + col1 AS col2 FROM tab0 cor0 WHERE NOT - 31 BETWEEN 61 AND - col0
----
2149
4357
461

skipif mysql # not compatible
query I rowsort label-6828
SELECT DISTINCT + 88 / 2 * col2 + + col1 AS col2 FROM tab0 cor0 WHERE NOT - 31 BETWEEN 61 AND - col0
----
2149
4357
461

query II rowsort
SELECT + col2, 15 * + 64 FROM tab1 cor0
----
59
960
68
960
96
960

query I rowsort
SELECT col0 + + 43 FROM tab1
----
128
134
94

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT 71 NOT BETWEEN 81 / col2 AND + + col0 * + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + col0 + + ( - col2 ) FROM tab1
----
-45
23
26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + ( col0 ) * + + col1 col0 FROM tab2 WHERE + col0 IS NOT NULL
----
-2346
-4928
-5025

query I rowsort
SELECT 1 * - col2 + + col1 FROM tab2
----
28
37
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6835
SELECT - CAST( - 10 AS SIGNED ) FROM tab1
----
10
10
10

skipif mysql # not compatible
query I rowsort label-6835
SELECT - CAST ( - 10 AS INTEGER ) FROM tab1
----
10
10
10

query I rowsort
SELECT DISTINCT ( col2 ) + + col2 + 60 + + 16 FROM tab0
----
170
274
96

query I rowsort
SELECT DISTINCT col2 + + + col1 AS col2 FROM tab0 AS cor0
----
100
128
31

query I rowsort
SELECT ALL col0 + - col0 * + col0 AS col1 FROM tab1 cor0 WHERE NOT NULL IS NOT NULL
----
-2550
-7140
-8190

query I rowsort
SELECT DISTINCT - col0 * + 24 FROM tab0
----
-2088
-2328
-360

query II rowsort
SELECT ALL 26 + + 43 AS col1, ( - + col1 ) AS col2 FROM tab0
----
69
-1
69
-21
69
-81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6841
SELECT - col1 * col0 + + CAST( NULL AS SIGNED ) AS col2 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6841
SELECT - col1 * col0 + + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 59 AS col0 FROM tab0 AS cor0 WHERE NULL >= ( NULL )
----

query II rowsort
SELECT DISTINCT + col0 + + col1 AS col0, ( 22 ) + + 93 FROM tab2 AS cor0
----
141
115
142
115
97
115

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 63 * + col2 + col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - col1 * + col0 + - col0 AS col0 FROM tab2 cor0
----
-2392
-4992
-5100

query I rowsort
SELECT ALL - + 25 - - col0 FROM tab0 AS cor0
----
-10
62
72

onlyif mysql # aggregate syntax: 
query I rowsort label-6847
SELECT DISTINCT MIN( DISTINCT - 63 ) AS col2 FROM tab2
----
-63

skipif mysql # not compatible
query I rowsort label-6847
SELECT DISTINCT MIN ( DISTINCT - 63 ) AS col2 FROM tab2
----
-63

query I rowsort
SELECT ALL 30 FROM tab1 WHERE + col1 BETWEEN - - 85 AND ( col1 * + + 3 )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT ( col2 > - + col1 )
----

query II rowsort
SELECT DISTINCT + col0 * - - 71, ( + col1 ) FROM tab0 WHERE NOT NULL NOT IN ( + 42 - col1, col0 + + - col0 )
----

query I rowsort
SELECT - col0 * + 1 FROM tab0
----
-15
-87
-97

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + 27 - - 38 * + ( + col0 ) * + - col2 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6853
SELECT - - CAST( NULL AS SIGNED ) AS col2, - col2 FROM tab0 AS cor0
----
NULL
-10
NULL
-47
NULL
-99

skipif mysql # not compatible
query II rowsort label-6853
SELECT - - CAST ( NULL AS INTEGER ) AS col2, - col2 FROM tab0 AS cor0
----
NULL
-10
NULL
-47
NULL
-99

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT + col0 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6855
SELECT + MAX( ALL col1 ) FROM tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-6855
SELECT + MAX ( ALL col1 ) FROM tab0 AS cor0
----
81

query I rowsort
SELECT ALL + - 93 AS col2 FROM tab0 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT ALL + col1 AS col0, col1 * + 82 FROM tab1 WHERE + 67 IS NOT NULL
----
14
1148
47
3854
5
410

onlyif mysql # DIV for integer division: 
query II rowsort label-6858
SELECT DISTINCT col2 DIV 95 + + + ( col1 ), - 78 * - 93 * + 10 AS col1 FROM tab2 cor0
----
51
72540
67
72540
77
72540

skipif mysql # not compatible
query II rowsort label-6858
SELECT DISTINCT col2 / 95 + + + ( col1 ), - 78 * - 93 * + 10 AS col1 FROM tab2 cor0
----
51
72540
67
72540
77
72540

query I rowsort
SELECT DISTINCT - col1 * + col0 + col0 FROM tab1 AS cor0
----
-340
-4186
-663

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) <> - col2
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( - col1 IS NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + ( - col1 ) * col0 AS col0 FROM tab1 AS cor0
----
-425
-4277
-714

onlyif mysql # DIV for integer division: 
query I rowsort label-6863
SELECT ALL + + col2 DIV 83 col0 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6863
SELECT ALL + + col2 / 83 col0 FROM tab0 AS cor0
----
0
0
1

onlyif mysql # DIV for integer division: 
query I rowsort label-6864
SELECT - + col1 DIV + + 27 AS col1 FROM tab0 AS cor0
----
-3
0
0

skipif mysql # not compatible
query I rowsort label-6864
SELECT - + col1 / + + 27 AS col1 FROM tab0 AS cor0
----
-3
0
0

query I rowsort
SELECT DISTINCT + col2 * - 46 FROM tab1 AS cor0
----
-2714
-3128
-4416

onlyif mysql # DIV for integer division: 
query II rowsort label-6866
SELECT + col0 DIV col0 + 37 + - col1 AS col1, col0 + - 33 AS col0 FROM tab2 AS cor0
----
-13
13
-29
42
-39
31

skipif mysql # not compatible
query II rowsort label-6866
SELECT + col0 / col0 + 37 + - col1 AS col1, col0 + - 33 AS col0 FROM tab2 AS cor0
----
-13
13
-29
42
-39
31

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6867
SELECT ALL * FROM tab0 cor0 WHERE NOT - col1 * - col1 * + ( + - ( - col0 ) ) + + col2 <= - - CAST( NULL AS SIGNED ) + 48
----

skipif mysql # not compatible
query III rowsort label-6867
SELECT ALL * FROM tab0 cor0 WHERE NOT - col1 * - col1 * + ( + - ( - col0 ) ) + + col2 <= - - CAST ( NULL AS INTEGER ) + 48
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6868
SELECT SUM( ALL + col1 ) AS col0 FROM tab2 AS cor0
----
195

skipif mysql # not compatible
query I rowsort label-6868
SELECT SUM ( ALL + col1 ) AS col0 FROM tab2 AS cor0
----
195

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col0 NOT BETWEEN - + 71 - - 82 AND ( - 16 / + col2 + + + col2 )
----
85
5
59
91
47
68

query I rowsort
SELECT ALL + col1 * - ( - - col1 ) AS col0 FROM tab2 AS cor0
----
-2601
-4489
-5929

query II rowsort
SELECT ( + col2 ) * + col1 AS col1, + 11 AS col0 FROM tab2
----
1173
11
3080
11
3886
11

onlyif mysql # DIV for integer division: 
query I rowsort label-6872
SELECT ALL col0 DIV - col2 col2 FROM tab1
----
-1
-1
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6872
SELECT ALL col0 / - col2 col2 FROM tab1
----
-1
-1
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6873
SELECT - 17 DIV SUM( ALL + col1 ) AS col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-6873
SELECT - 17 / SUM ( ALL + col1 ) AS col0 FROM tab1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6874
SELECT DISTINCT col2 DIV - + col1 + + - col2 FROM tab2
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-6874
SELECT DISTINCT col2 / - + col1 + + - col2 FROM tab2
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-6875
SELECT ALL - MIN( - 43 ) + + + COUNT( 83 ) AS col1 FROM tab2
----
46

skipif mysql # not compatible
query I rowsort label-6875
SELECT ALL - MIN ( - 43 ) + + + COUNT ( 83 ) AS col1 FROM tab2
----
46

onlyif mysql # DIV for integer division: 
query I rowsort label-6876
SELECT 30 + col2 DIV - col0 - 65 AS col1 FROM tab2
----
-35
-35
-35

skipif mysql # not compatible
query I rowsort label-6876
SELECT 30 + col2 / - col0 - 65 AS col1 FROM tab2
----
-35
-35
-35

query I rowsort
SELECT + ( - col2 ) * col0 + - col0 FROM tab2 cor0
----
-1104
-2624
-4425

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6878
SELECT * FROM tab0 WHERE ( NOT ( NULL ) NOT BETWEEN + col1 + - col2 * - col0 * - col1 * + col1 * + + CAST( NULL AS DECIMAL ) / + col2 * - + col2 AND NULL )
----

skipif mysql # not compatible
query III rowsort label-6878
SELECT * FROM tab0 WHERE ( NOT ( NULL ) NOT BETWEEN + col1 + - col2 * - col0 * - col1 * + col1 * + + CAST ( NULL AS REAL ) / + col2 * - + col2 AND NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6879
SELECT ALL CAST( NULL AS SIGNED ) - col2 / col2 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6879
SELECT ALL CAST ( NULL AS INTEGER ) - col2 / col2 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6880
SELECT + + COUNT( * ) - - - 51 AS col0, COUNT( * ) FROM tab0 cor0
----
-48
3

skipif mysql # not compatible
query II rowsort label-6880
SELECT + + COUNT ( * ) - - - 51 AS col0, COUNT ( * ) FROM tab0 cor0
----
-48
3

query I rowsort
SELECT - + 93 - + col0 + + col0 FROM tab2 AS cor0
----
-93
-93
-93

query I rowsort
SELECT DISTINCT - col0 - + - col2 FROM tab0 AS cor0
----
-77
2
32

onlyif mysql # aggregate syntax: 
query I rowsort label-6883
SELECT ALL + COUNT( * ) - - MAX( DISTINCT + - 97 ) FROM tab2 AS cor0
----
-94

skipif mysql # not compatible
query I rowsort label-6883
SELECT ALL + COUNT ( * ) - - MAX ( DISTINCT + - 97 ) FROM tab2 AS cor0
----
-94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 81 col1, col2 AS col0 FROM tab0 AS cor0
----
81
10
81
47
81
99

query I rowsort
SELECT DISTINCT + + ( - col0 ) FROM tab2 AS cor0
----
-46
-64
-75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col2 col1, + 69 AS col0 FROM tab1 cor0
----
-59
69
-68
69
-96
69

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 56 >= - 37
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + 14 <> col1
----
51
14
96

query III rowsort
SELECT * FROM tab0 WHERE NOT + 69 + + - 74 <= + col2 / 27 * + - col2
----
15
81
47
97
1
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6890
SELECT DISTINCT - col1 * CAST( - 86 AS SIGNED ) FROM tab0
----
1806
6966
86

skipif mysql # not compatible
query I rowsort label-6890
SELECT DISTINCT - col1 * CAST ( - 86 AS INTEGER ) FROM tab0
----
1806
6966
86

query I rowsort
SELECT + 28 * - col0 * + - 98 FROM tab2
----
126224
175616
205800

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6892
SELECT 25 + - col1 + - 70 + 31 FROM tab1 AS cor0 WHERE NOT ( NOT CAST( NULL AS SIGNED ) > - col0 + 2 + + 16 )
----

skipif mysql # not compatible
query I rowsort label-6892
SELECT 25 + - col1 + - 70 + 31 FROM tab1 AS cor0 WHERE NOT ( NOT CAST ( NULL AS INTEGER ) > - col0 + 2 + + 16 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6893
SELECT + 3 DIV COUNT( * ) * ( - + 51 ) FROM tab2 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-6893
SELECT + 3 / COUNT ( * ) * ( - + 51 ) FROM tab2 AS cor0
----
-51

query I rowsort
SELECT + ( + + 92 ) AS col1 FROM tab1 cor0
----
92
92
92

query I rowsort
SELECT DISTINCT - col2 FROM tab2 cor0 WHERE 89 IS NOT NULL
----
-23
-40
-58

query I rowsort
SELECT ALL + + 11 * - 89 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 941c0582c0905ac3657da88e4ad0d747

onlyif mysql # aggregate syntax: 
query I rowsort label-6897
SELECT COUNT( * ) - + 7 AS col0 FROM tab1 WHERE NOT NULL = NULL
----
-7

skipif mysql # not compatible
query I rowsort label-6897
SELECT COUNT ( * ) - + 7 AS col0 FROM tab1 WHERE NOT NULL = NULL
----
-7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 80 col1 FROM tab0 cor0
----
-80
-80
-80

query I rowsort
SELECT - + col2 FROM tab1 cor0 WHERE NOT NULL < 33
----

onlyif mysql # aggregate syntax: 
query II rowsort label-6900
SELECT DISTINCT + + 93 * + MAX( + 57 ), + 50 + - 59 col1 FROM tab2 AS cor0
----
5301
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6900
SELECT DISTINCT + + 93 * + MAX ( + 57 ), + 50 + - 59 col1 FROM tab2 AS cor0
----
5301
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6901
SELECT ALL + 49 + - 52 + + CAST( NULL AS SIGNED ) * + col0 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6901
SELECT ALL + 49 + - 52 + + CAST ( NULL AS INTEGER ) * + col0 FROM tab0 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6902
SELECT DISTINCT + COUNT( * ) + + 43 col1 FROM tab2 AS cor0
----
46

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6902
SELECT DISTINCT + COUNT ( * ) + + 43 col1 FROM tab2 AS cor0
----
46

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 59 IS NOT NULL AND NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE - - ( - 42 ) + 75 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT ALL col0 + - 17 AS col0, - col2 FROM tab0
----
-2
-47
70
-10
80
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-6906
SELECT - - COUNT( * ) * COUNT( * ) FROM tab0 WHERE NULL <= - + 88
----
0

skipif mysql # not compatible
query I rowsort label-6906
SELECT - - COUNT ( * ) * COUNT ( * ) FROM tab0 WHERE NULL <= - + 88
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6907
SELECT CAST( 97 AS SIGNED ) FROM tab2
----
97
97
97

skipif mysql # not compatible
query I rowsort label-6907
SELECT CAST ( 97 AS INTEGER ) FROM tab2
----
97
97
97

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col0 >= + - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6909
SELECT ALL - 22 - + - CAST( NULL AS SIGNED ) + 8 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6909
SELECT ALL - 22 - + - CAST ( NULL AS INTEGER ) + 8 FROM tab1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + - + col1 col1 FROM tab0
----
-11
-34
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6911
SELECT - COUNT( * ) + + - COUNT( * ) + CAST( NULL AS SIGNED ) / + + COUNT( * ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-6911
SELECT - COUNT ( * ) + + - COUNT ( * ) + CAST ( NULL AS INTEGER ) / + + COUNT ( * ) FROM tab0
----
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 36 * + - col2 NOT IN ( + 2, + 41 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col1 * 33 IS NOT NULL
----

query I rowsort
SELECT + col1 * - ( - 79 ) FROM tab1 AS cor0
----
1106
3713
395

query I rowsort
SELECT ALL - 25 FROM tab2 cor0
----
-25
-25
-25

query II rowsort
SELECT ALL col2, + 81 + + col1 FROM tab0 AS cor0
----
10
102
47
162
99
82

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6917
SELECT ALL * FROM tab2 WHERE col1 * + col1 + col0 <> CAST( NULL AS SIGNED ) + - - CAST( - + col1 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-6917
SELECT ALL * FROM tab2 WHERE col1 * + col1 + col0 <> CAST ( NULL AS INTEGER ) + - - CAST ( - + col1 AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6918
SELECT DISTINCT MAX( ALL + 63 ) FROM tab1
----
63

skipif mysql # not compatible
query I rowsort label-6918
SELECT DISTINCT MAX ( ALL + 63 ) FROM tab1
----
63

query II rowsort
SELECT - 11, + 64 AS col2 FROM tab0
----
-11
64
-11
64
-11
64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6920
SELECT + CAST( + + CAST( NULL AS SIGNED ) AS SIGNED ) col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6920
SELECT + CAST ( + + CAST ( NULL AS INTEGER ) AS INTEGER ) col0 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT 10 <= col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 71, - col1 * col2 col2 FROM tab2
----
71
-1173
71
-3080
71
-3886

onlyif mysql # aggregate syntax: 
query I rowsort label-6923
SELECT DISTINCT + MAX( 48 ) AS col0 FROM tab2
----
48

skipif mysql # not compatible
query I rowsort label-6923
SELECT DISTINCT + MAX ( 48 ) AS col0 FROM tab2
----
48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6924
SELECT DISTINCT + ( col0 ) * - CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-6924
SELECT DISTINCT + ( col0 ) * - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6925
SELECT ALL + 76 AS col2, col1 + + 27 * CAST( NULL AS SIGNED ) col2 FROM tab0 AS cor0
----
76
NULL
76
NULL
76
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6925
SELECT ALL + 76 AS col2, col1 + + 27 * CAST ( NULL AS INTEGER ) col2 FROM tab0 AS cor0
----
76
NULL
76
NULL
76
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6926
SELECT - + 57 / - CAST( NULL AS SIGNED ) + + col0 col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6926
SELECT - + 57 / - CAST ( NULL AS INTEGER ) + + col0 col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - + ( col1 ) col0, 14 col2 FROM tab0 AS cor0
----
-1
14
-21
14
-81
14

query I rowsort
SELECT DISTINCT 20 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
20

onlyif mysql # aggregate syntax: 
query II rowsort label-6929
SELECT - 92 AS col2, COUNT( * ) FROM tab0 WHERE NOT - col1 >= - col2
----
-92
2

skipif mysql # not compatible
query II rowsort label-6929
SELECT - 92 AS col2, COUNT ( * ) FROM tab0 WHERE NOT - col1 >= - col2
----
-92
2

onlyif mysql # DIV for integer division: 
query I rowsort label-6930
SELECT + col2 + col2 - - col2 DIV 73 FROM tab1
----
118
136
193

skipif mysql # not compatible
query I rowsort label-6930
SELECT + col2 + col2 - - col2 / 73 FROM tab1
----
118
136
193

onlyif mysql # aggregate syntax: 
query I rowsort label-6931
SELECT DISTINCT + ( - - COUNT( * ) ) + - + COUNT( * ) col0 FROM tab2
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6931
SELECT DISTINCT + ( - - COUNT ( * ) ) + - + COUNT ( * ) col0 FROM tab2
----
0

query I rowsort
SELECT DISTINCT + 65 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT 6 IS NULL
----
65

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 / + col0 IS NULL
----

query II rowsort
SELECT + 94, col2 AS col2 FROM tab0 AS cor0 WHERE ( - 28 ) * - col2 / - - ( + col0 ) IS NOT NULL
----
94
10
94
47
94
99

onlyif mysql # aggregate syntax: 
query I rowsort label-6935
SELECT ALL - 58 + - SUM( col2 ) FROM tab0 AS cor0
----
-214

skipif mysql # not compatible
query I rowsort label-6935
SELECT ALL - 58 + - SUM ( col2 ) FROM tab0 AS cor0
----
-214

query I rowsort
SELECT ALL - 50 FROM tab0 cor0
----
-50
-50
-50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6937
SELECT - + CAST( + COUNT( * ) AS SIGNED ) AS col1 FROM tab2 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-6937
SELECT - + CAST ( + COUNT ( * ) AS INTEGER ) AS col1 FROM tab2 cor0
----
-3

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - 31 / - 99 / - - col0 > - col2
----

query I rowsort
SELECT ( 41 ) AS col2 FROM tab2
----
41
41
41

onlyif mysql # DIV for integer division: 
query I rowsort label-6940
SELECT + 1 DIV - col1 - + ( + 51 ) AS col2 FROM tab1
----
-51
-51
-51

skipif mysql # not compatible
query I rowsort label-6940
SELECT + 1 / - col1 - + ( + 51 ) AS col2 FROM tab1
----
-51
-51
-51

onlyif mysql # DIV for integer division: 
query II rowsort label-6941
SELECT DISTINCT - col0, 5 DIV + col0 AS col0 FROM tab0
----
-15
0
-87
0
-97
0

skipif mysql # not compatible
query II rowsort label-6941
SELECT DISTINCT - col0, 5 / + col0 AS col0 FROM tab0
----
-15
0
-87
0
-97
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6942
SELECT ( - COUNT( * ) ) - COUNT( 9 ) + + COUNT( * ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-6942
SELECT ( - COUNT ( * ) ) - COUNT ( 9 ) + + COUNT ( * ) FROM tab1
----
-3

onlyif mysql # DIV for integer division: 
query II rowsort label-6943
SELECT ALL ( - col1 ) * col0 AS col1, + col0 DIV - 83 + - col1 FROM tab0
----
-1215
-81
-1827
-22
-97
-2

skipif mysql # not compatible
query II rowsort label-6943
SELECT ALL ( - col1 ) * col0 AS col1, + col0 / - 83 + - col1 FROM tab0
----
-1215
-81
-1827
-22
-97
-2

query I rowsort
SELECT ALL + - 82 FROM tab1 WHERE + 46 * col2 IS NOT NULL AND NOT col0 / + col1 IS NULL
----
-82
-82
-82

query I rowsort
SELECT ALL + 15 + + col2 + + col2 - + + col2 FROM tab1
----
111
74
83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6946
SELECT DISTINCT CAST( NULL AS SIGNED ) - + COUNT( * ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-6946
SELECT DISTINCT CAST ( NULL AS INTEGER ) - + COUNT ( * ) AS col0 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6947
SELECT ALL - COUNT( * ) col2 FROM tab2 AS cor0 WHERE - col0 IS NOT NULL
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6947
SELECT ALL - COUNT ( * ) col2 FROM tab2 AS cor0 WHERE - col0 IS NOT NULL
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-6948
SELECT DISTINCT - col0 DIV - + 3 + - 92 FROM tab0 AS cor0 WHERE 46 IS NOT NULL
----
-60
-63
-87

skipif mysql # not compatible
query I rowsort label-6948
SELECT DISTINCT - col0 / - + 3 + - 92 FROM tab0 AS cor0 WHERE 46 IS NOT NULL
----
-60
-63
-87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6949
SELECT - COUNT( * ) * + + SUM( - + ( + + CAST( + 81 AS SIGNED ) ) ) FROM tab0 AS cor0
----
729

skipif mysql # not compatible
query I rowsort label-6949
SELECT - COUNT ( * ) * + + SUM ( - + ( + + CAST ( + 81 AS INTEGER ) ) ) FROM tab0 AS cor0
----
729

query I rowsort
SELECT ALL ( - - ( - 48 ) ) - - col1 AS col0 FROM tab2 AS cor0
----
19
29
3

query I rowsort
SELECT DISTINCT col2 - - col2 + col2 * ( + + col1 ) AS col0 FROM tab2
----
1219
3160
4002

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6952
SELECT CAST( NULL AS SIGNED ) / - col1 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6952
SELECT CAST ( NULL AS INTEGER ) / - col1 AS col1 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + 48 * + col1 BETWEEN + 56 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6954
SELECT - col0 * + CAST( - col0 AS SIGNED ) DIV col0 * ( col2 ) AS col1 FROM tab2 cor0
----
1058
2560
4350

skipif mysql # not compatible
query I rowsort label-6954
SELECT - col0 * + CAST ( - col0 AS INTEGER ) / col0 * ( col2 ) AS col1 FROM tab2 cor0
----
1058
2560
4350

query I rowsort
SELECT DISTINCT 4 * - col0 FROM tab0 AS cor0
----
-348
-388
-60

query I rowsort
SELECT ALL + ( - - 27 ) * ( col0 ) FROM tab2
----
1242
1728
2025

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6957
SELECT DISTINCT 97 * - CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-6957
SELECT DISTINCT 97 * - CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6958
SELECT ALL col0 DIV - 36 FROM tab0
----
-2
-2
0

skipif mysql # not compatible
query I rowsort label-6958
SELECT ALL col0 / - 36 FROM tab0
----
-2
-2
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6959
SELECT DISTINCT + 82 DIV - COUNT( * ) col0 FROM tab0
----
-27

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6959
SELECT DISTINCT + 82 / - COUNT ( * ) col0 FROM tab0
----
-27

query II rowsort
SELECT col0 AS col2, - 3 AS col0 FROM tab1
----
51
-3
85
-3
91
-3

query I rowsort
SELECT 90 * + + col1 FROM tab1
----
1260
4230
450

onlyif mysql # DIV for integer division: 
query I rowsort label-6962
SELECT + - col2 DIV + + ( + 98 ) + - - ( + - 19 ) + + col0 DIV - - 17 AS col0 FROM tab2 AS cor0
----
-15
-16
-17

skipif mysql # not compatible
query I rowsort label-6962
SELECT + - col2 / + + ( + 98 ) + - - ( + - 19 ) + + col0 / - - 17 AS col0 FROM tab2 AS cor0
----
-15
-16
-17

query I rowsort
SELECT - - col0 AS col2 FROM tab1 AS cor0 WHERE NOT NULL <> + col2
----

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-6964
SELECT DISTINCT + CAST( NULL AS DECIMAL ), - col1 AS col1 FROM tab2
----
NULL
-51
NULL
-67
NULL
-77

skipif mysql # not compatible
query II rowsort label-6964
SELECT DISTINCT + CAST ( NULL AS REAL ), - col1 AS col1 FROM tab2
----
NULL
-51
NULL
-67
NULL
-77

query I rowsort
SELECT - ( - 80 ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 878f012d707aab113cedaf56e6c52e94

onlyif mysql # aggregate syntax: 
query II rowsort label-6966
SELECT ALL + - 58 * + COUNT( * ) AS col0, + COUNT( * ) FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-174
3

skipif mysql # not compatible
query II rowsort label-6966
SELECT ALL + - 58 * + COUNT ( * ) AS col0, + COUNT ( * ) FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-174
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6967
SELECT DISTINCT + + MAX( + + col0 ) AS col2 FROM tab2 cor0
----
75

skipif mysql # not compatible
query I rowsort label-6967
SELECT DISTINCT + + MAX ( + + col0 ) AS col2 FROM tab2 cor0
----
75

query I rowsort
SELECT - ( 84 ) + - - col0 FROM tab0 AS cor0
----
-69
13
3

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col1 + ( - col1 ) >= - 62
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6970
SELECT ALL ( 50 ) * col0 DIV - col1 - 8 FROM tab2
----
-49
-53
-63

skipif mysql # not compatible
query I rowsort label-6970
SELECT ALL ( 50 ) * col0 / - col1 - 8 FROM tab2
----
-49
-53
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-6971
SELECT DISTINCT - COUNT( - 19 ) * 42 + 13 FROM tab0
----
-113

skipif mysql # not compatible
query I rowsort label-6971
SELECT DISTINCT - COUNT ( - 19 ) * 42 + 13 FROM tab0
----
-113

query I rowsort
SELECT + + col1 AS col1 FROM tab1 WHERE NULL BETWEEN + + col0 AND - + 57
----

query I rowsort
SELECT DISTINCT - - 1 AS col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
1

query I rowsort
SELECT ALL + col1 + 57 FROM tab0
----
138
58
78

query III rowsort
SELECT * FROM tab1 WHERE - col2 IS NULL OR NULL <= - 63
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6976
SELECT - 15 AS col0 FROM tab0 WHERE - + ( - CAST( 65 AS DECIMAL ) ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-6976
SELECT - 15 AS col0 FROM tab0 WHERE - + ( - CAST ( 65 AS REAL ) ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6977
SELECT ALL col0 + - - CAST( + col2 AS SIGNED ) AS col2 FROM tab2
----
104
133
69

skipif mysql # not compatible
query I rowsort label-6977
SELECT ALL col0 + - - CAST ( + col2 AS INTEGER ) AS col2 FROM tab2
----
104
133
69

onlyif mysql # DIV for integer division: 
query II rowsort label-6978
SELECT 99 DIV - 69, col1 FROM tab2
----
-1
51
-1
67
-1
77

skipif mysql # not compatible
query II rowsort label-6978
SELECT 99 / - 69, col1 FROM tab2
----
-1
51
-1
67
-1
77

query I rowsort
SELECT ALL - ( 0 ) * + 37 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6980
SELECT ALL COUNT( * ) + + 62 FROM tab1 AS cor0
----
65

skipif mysql # not compatible
query I rowsort label-6980
SELECT ALL COUNT ( * ) + + 62 FROM tab1 AS cor0
----
65

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6981
SELECT ALL - CAST( NULL AS DECIMAL ) * col0 + + 79 * col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6981
SELECT ALL - CAST ( NULL AS REAL ) * col0 + + 79 * col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6982
SELECT * FROM tab1 AS cor0 WHERE NOT - 57 NOT BETWEEN + col0 AND - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-6982
SELECT * FROM tab1 AS cor0 WHERE NOT - 57 NOT BETWEEN + col0 AND - CAST ( NULL AS INTEGER )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6983
SELECT ALL - COUNT( * ) * + 28 + + 57 + + CAST( NULL AS SIGNED ) FROM tab1 WHERE NOT ( NOT - col2 <= - col1 + - + col0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6983
SELECT ALL - COUNT ( * ) * + 28 + + 57 + + CAST ( NULL AS INTEGER ) FROM tab1 WHERE NOT ( NOT - col2 <= - col1 + - + col0 )
----
NULL

query I rowsort
SELECT + 75 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
75
75
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6985
SELECT 47 * + CAST( NULL AS SIGNED ) FROM tab2 AS cor0 WHERE NOT + col0 IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6985
SELECT 47 * + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 WHERE NOT + col0 IS NULL
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col1 NOT BETWEEN - + col2 AND - - 20
----
15
81
47
87
21
10

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 7, col1 col2 FROM tab0 AS cor0
----
7
1
7
21
7
81

onlyif mysql # aggregate syntax: 
query I rowsort label-6988
SELECT ALL + COUNT( * ) * - + 51 FROM tab0 AS cor0
----
-153

skipif mysql # not compatible
query I rowsort label-6988
SELECT ALL + COUNT ( * ) * - + 51 FROM tab0 AS cor0
----
-153

onlyif mysql # aggregate syntax: 
query I rowsort label-6989
SELECT MIN( ALL col2 ) FROM tab0 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-6989
SELECT MIN ( ALL col2 ) FROM tab0 AS cor0
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-6990
SELECT + ( - MAX( - col2 ) ) AS col2 FROM tab1 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-6990
SELECT + ( - MAX ( - col2 ) ) AS col2 FROM tab1 AS cor0
----
59

query I rowsort
SELECT ALL 25 * - 95 FROM tab1
----
-2375
-2375
-2375

query II rowsort
SELECT ALL - 48 * - col0 AS col0, col1 FROM tab1
----
2448
14
4080
5
4368
47

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6993
SELECT ALL 79 DIV + COUNT( * ) col0 FROM tab2
----
26

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6993
SELECT ALL 79 / + COUNT ( * ) col0 FROM tab2
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-6994
SELECT SUM( - - ( - col2 ) ) AS col0 FROM tab1
----
-223

skipif mysql # not compatible
query I rowsort label-6994
SELECT SUM ( - - ( - col2 ) ) AS col0 FROM tab1
----
-223

onlyif mysql # DIV for integer division: 
query I rowsort label-6995
SELECT ALL + 21 DIV - 80 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6995
SELECT ALL + 21 / - 80 FROM tab2
----
0
0
0

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL NOT BETWEEN + col2 AND + + 47
----

query I rowsort
SELECT DISTINCT - col0 * - 4 FROM tab1 AS cor0
----
204
340
364

onlyif mysql # aggregate syntax: 
query I rowsort label-6998
SELECT + ( + MIN( + 5 ) ) + - 55 FROM tab2 cor0
----
-50

skipif mysql # not compatible
query I rowsort label-6998
SELECT + ( + MIN ( + 5 ) ) + - 55 FROM tab2 cor0
----
-50

query I rowsort
SELECT col1 - 48 AS col2 FROM tab2 WHERE + col2 <= NULL OR - ( + col0 ) * col0 + - col2 + 80 IS NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-7000
SELECT + col2 + - col1 + col0 * col1 - col2 DIV - col1, col1 FROM tab0
----
1181
81
1816
21
294
1

skipif mysql # not compatible
query II rowsort label-7000
SELECT + col2 + - col1 + col0 * col1 - col2 / - col1, col1 FROM tab0
----
1181
81
1816
21
294
1

query II rowsort
SELECT ALL - + col2 AS col1, 49 FROM tab2 AS cor0
----
-23
49
-40
49
-58
49

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-7002
SELECT + - CAST( NULL AS DECIMAL ) AS col2, - col0 AS col1 FROM tab1 AS cor0
----
NULL
-51
NULL
-85
NULL
-91

skipif mysql # not compatible
query II rowsort label-7002
SELECT + - CAST ( NULL AS REAL ) AS col2, - col0 AS col1 FROM tab1 AS cor0
----
NULL
-51
NULL
-85
NULL
-91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7003
SELECT + COUNT( DISTINCT - col2 ) * - CAST( - 63 AS SIGNED ) FROM tab0 AS cor0
----
189

skipif mysql # not compatible
query I rowsort label-7003
SELECT + COUNT ( DISTINCT - col2 ) * - CAST ( - 63 AS INTEGER ) FROM tab0 AS cor0
----
189

query I rowsort
SELECT ALL + 4 - col1 FROM tab2 AS cor0
----
-47
-63
-73

query I rowsort
SELECT col2 - + - col0 AS col1 FROM tab0 AS cor0
----
196
62
97

onlyif mysql # aggregate syntax: 
query I rowsort label-7006
SELECT ALL - COUNT( * ) - - - 60 FROM tab2 AS cor0
----
-63

skipif mysql # not compatible
query I rowsort label-7006
SELECT ALL - COUNT ( * ) - - - 60 FROM tab2 AS cor0
----
-63

query III rowsort
SELECT * FROM tab0 cor0 WHERE col0 BETWEEN NULL AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7008
SELECT ALL + + 83 DIV col0 FROM tab0 AS cor0
----
0
0
5

skipif mysql # not compatible
query I rowsort label-7008
SELECT ALL + + 83 / col0 FROM tab0 AS cor0
----
0
0
5

onlyif mysql # aggregate syntax: 
query I rowsort label-7009
SELECT COUNT( * ) + + + 31 AS col0 FROM tab1, tab1 AS cor0
----
40

skipif mysql # not compatible
query I rowsort label-7009
SELECT COUNT ( * ) + + + 31 AS col0 FROM tab1, tab1 AS cor0
----
40

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 - 34 col1 FROM tab0
----
-13
-33
47

query III rowsort
SELECT * FROM tab0 WHERE col1 + - col1 IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE col0 - - + col2 IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL NOT BETWEEN 89 + - col2 - - col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7014
SELECT ALL + COUNT( * ) + - + SUM( ALL col2 ) col2 FROM tab0
----
-153

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7014
SELECT ALL + COUNT ( * ) + - + SUM ( ALL col2 ) col2 FROM tab0
----
-153

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7015
SELECT - CAST( NULL AS SIGNED ) AS col2, - col2 * + col0 + + + col1 * - col0 * 55 FROM tab2 WHERE - 14 IS NOT NULL
----
NULL
-130088
NULL
-273600
NULL
-280725

skipif mysql # not compatible
query II rowsort label-7015
SELECT - CAST ( NULL AS INTEGER ) AS col2, - col2 * + col0 + + + col1 * - col0 * 55 FROM tab2 WHERE - 14 IS NOT NULL
----
NULL
-130088
NULL
-273600
NULL
-280725

query I rowsort
SELECT - 80 + col0 * + - 15 + col1 + + col2 FROM tab1 WHERE ( NOT 19 + col0 IS NULL )
----
-1291
-1330
-735

query I rowsort
SELECT ALL - 40 * + 96 FROM tab1 AS cor0
----
-3840
-3840
-3840

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - 22 * - col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-7019
SELECT ALL + ( - + MIN( + col2 ) ) col0 FROM tab1
----
-59

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7019
SELECT ALL + ( - + MIN ( + col2 ) ) col0 FROM tab1
----
-59

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL NOT IN ( col2, col1, + - col1 * col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7021
SELECT + col0 * + 21, - col0 * + CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
1344
NULL
1575
NULL
966
NULL

skipif mysql # not compatible
query II rowsort label-7021
SELECT + col0 * + 21, - col0 * + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
1344
NULL
1575
NULL
966
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 80 col2 FROM tab2 AS cor0
----
-80
-80
-80

query I rowsort
SELECT DISTINCT - col0 * - 50 - 12 AS col2 FROM tab1 AS cor0
----
2538
4238
4538

onlyif mysql # aggregate syntax: 
query I rowsort label-7024
SELECT + + MAX( + col2 ) * - 91 FROM tab0 cor0
----
-9009

skipif mysql # not compatible
query I rowsort label-7024
SELECT + + MAX ( + col2 ) * - 91 FROM tab0 cor0
----
-9009

onlyif mysql # aggregate syntax: 
query I rowsort label-7025
SELECT ALL MAX( + col2 ) AS col0 FROM tab1
----
96

skipif mysql # not compatible
query I rowsort label-7025
SELECT ALL MAX ( + col2 ) AS col0 FROM tab1
----
96

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7026
SELECT col2 * + - col1 + + CAST( NULL AS SIGNED ) AS col2, 33 FROM tab2
----
NULL
33
NULL
33
NULL
33

skipif mysql # not compatible
query II rowsort label-7026
SELECT col2 * + - col1 + + CAST ( NULL AS INTEGER ) AS col2, 33 FROM tab2
----
NULL
33
NULL
33
NULL
33

query I rowsort
SELECT DISTINCT + 99 + + - 2 + ( col0 ) + col1 FROM tab0
----
193
195
205

query II rowsort
SELECT ALL + col0, 95 + + col1 AS col2 FROM tab1
----
51
109
85
100
91
142

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7029
SELECT 61 / - col1 + CAST( NULL AS SIGNED ) + + + col2 * - ( + col2 ) + - col0 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7029
SELECT 61 / - col1 + CAST ( NULL AS INTEGER ) + + + col2 * - ( + col2 ) + - col0 AS col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT - col2 + - - 75 AS col0 FROM tab0
----
-24
28
65

query II rowsort
SELECT DISTINCT - col1 AS col0, - 40 FROM tab0
----
-1
-40
-21
-40
-81
-40

query II rowsort
SELECT DISTINCT - col2, + 87 AS col1 FROM tab0
----
-10
87
-47
87
-99
87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7033
SELECT ALL CAST( + 90 AS SIGNED ) * + 33 FROM tab1
----
2970
2970
2970

skipif mysql # not compatible
query I rowsort label-7033
SELECT ALL CAST ( + 90 AS INTEGER ) * + 33 FROM tab1
----
2970
2970
2970

onlyif mysql # DIV for integer division: 
query II rowsort label-7034
SELECT col1 AS col2, + col1 DIV + + col0 col1 FROM tab1 AS cor0
----
14
0
47
0
5
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7034
SELECT col1 AS col2, + col1 / + + col0 col1 FROM tab1 AS cor0
----
14
0
47
0
5
0

query I rowsort
SELECT ALL - 35 * + col2 + col1 FROM tab2 AS cor0
----
-1323
-1963
-754

onlyif mysql # aggregate syntax: 
query I rowsort label-7036
SELECT DISTINCT - COUNT( * ) col1 FROM tab1 AS cor0 WHERE NOT - col0 * + 1 NOT BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7036
SELECT DISTINCT - COUNT ( * ) col1 FROM tab1 AS cor0 WHERE NOT - col0 * + 1 NOT BETWEEN NULL AND NULL
----
0

query I rowsort
SELECT ALL - - col1 * ( - col1 ) FROM tab2 AS cor0
----
-2601
-4489
-5929

onlyif mysql # aggregate syntax: 
query I rowsort label-7038
SELECT SUM( col0 ) - COUNT( * ) FROM tab2
----
182

skipif mysql # not compatible
query I rowsort label-7038
SELECT SUM ( col0 ) - COUNT ( * ) FROM tab2
----
182

onlyif mysql # aggregate syntax: 
query I rowsort label-7039
SELECT + COUNT( * ) + - MAX( + ( - col1 ) ) FROM tab1
----
8

skipif mysql # not compatible
query I rowsort label-7039
SELECT + COUNT ( * ) + - MAX ( + ( - col1 ) ) FROM tab1
----
8

onlyif mysql # DIV for integer division: 
query I rowsort label-7040
SELECT - 37 DIV + 37 + + ( + col0 ) AS col0 FROM tab0
----
14
86
96

skipif mysql # not compatible
query I rowsort label-7040
SELECT - 37 / + 37 + + ( + col0 ) AS col0 FROM tab0
----
14
86
96

onlyif mysql # DIV for integer division: 
query II rowsort label-7041
SELECT ALL col0 + + 5 AS col1, - col0 DIV 3 FROM tab0
----
102
-32
20
-5
92
-29

skipif mysql # not compatible
query II rowsort label-7041
SELECT ALL col0 + + 5 AS col1, - col0 / 3 FROM tab0
----
102
-32
20
-5
92
-29

onlyif mysql # DIV for integer division: 
query I rowsort label-7042
SELECT DISTINCT - 83 + - 73 DIV col2 AS col2 FROM tab0
----
-83
-84
-90

skipif mysql # not compatible
query I rowsort label-7042
SELECT DISTINCT - 83 + - 73 / col2 AS col2 FROM tab0
----
-83
-84
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-7043
SELECT - 70 + COUNT( DISTINCT - col0 ) col1 FROM tab1 AS cor0
----
-67

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7043
SELECT - 70 + COUNT ( DISTINCT - col0 ) col1 FROM tab1 AS cor0
----
-67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7044
SELECT ALL COUNT( * ) * + CAST( NULL AS SIGNED ) + + 66 + - - 5 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7044
SELECT ALL COUNT ( * ) * + CAST ( NULL AS INTEGER ) + + 66 + - - 5 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT col2 * - 59 + col2 AS col1 FROM tab2 AS cor0
----
-1334
-2320
-3364

query I rowsort
SELECT DISTINCT - - col1 - 18 FROM tab0 AS cor0
----
-17
3
63

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 83 col2 FROM tab2 AS cor0 WHERE NULL NOT IN ( + col0 * col1 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 86 / - 3 - - - col2 - - - 45 + + + col2 * + + col0 * - col0 IS NULL
----

query I rowsort
SELECT ALL + 94 * + col0 - + 80 FROM tab1
----
4714
7910
8474

onlyif mysql # aggregate syntax: 
query I rowsort label-7050
SELECT + SUM( - - 80 ) FROM tab0
----
240

skipif mysql # not compatible
query I rowsort label-7050
SELECT + SUM ( - - 80 ) FROM tab0
----
240

query I rowsort
SELECT + col1 * + + col1 * + col2 * - col2 FROM tab2
----
-1375929
-15100996
-9486400

onlyif mysql # aggregate syntax: 
query I rowsort label-7052
SELECT COUNT( * ) * + 12 AS col0 FROM tab0
----
36

skipif mysql # not compatible
query I rowsort label-7052
SELECT COUNT ( * ) * + 12 AS col0 FROM tab0
----
36

onlyif mysql # DIV for integer division: 
query I rowsort label-7053
SELECT - col0 DIV - + col0 AS col1 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-7053
SELECT - col0 / - + col0 AS col1 FROM tab2
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7054
SELECT ALL + - MIN( 51 ) FROM tab1 cor0
----
-51

skipif mysql # not compatible
query I rowsort label-7054
SELECT ALL + - MIN ( 51 ) FROM tab1 cor0
----
-51

query I rowsort
SELECT DISTINCT - + 88 AS col2 FROM tab2 AS cor0
----
-88

query I rowsort
SELECT - - 49 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 91 col0 FROM tab0 AS cor0 WHERE ( ( NOT ( NULL ) < - col2 ) )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT + col1 * 92 + + col1 * col0 + - 93 + + col1 IS NOT NULL
----

query I rowsort
SELECT DISTINCT ( col2 ) * col2 + ( + col0 ) FROM tab1 AS cor0
----
3566
4715
9267

query I rowsort
SELECT col1 FROM tab0 AS cor0 WHERE + col0 * col1 + col2 >= NULL AND NULL IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col2 * + - col2 <= + + col2
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7062
SELECT - + CAST( col2 AS SIGNED ) DIV - col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7062
SELECT - + CAST ( col2 AS INTEGER ) / - col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT - col0 * + col1 * + 30 FROM tab0 AS cor0
----
-2910
-36450
-54810

query I rowsort
SELECT + + 23 * col2 AS col1 FROM tab2 AS cor0
----
1334
529
920

query I rowsort
SELECT + col1 * + + col0 * + 30 AS col2 FROM tab1 AS cor0
----
12750
128310
21420

query I rowsort
SELECT + 53 * ( + col0 ) FROM tab0
----
4611
5141
795

query III rowsort
SELECT * FROM tab0 WHERE NULL BETWEEN - col2 AND - + col0 * - - col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 48 col0 FROM tab2 AS cor0
----
48

query I rowsort
SELECT ALL col0 + + 62 FROM tab0 WHERE NOT + 57 + + 97 IS NOT NULL
----

query I rowsort
SELECT DISTINCT col2 FROM tab0 WHERE NOT + col2 * - 87 / - 5 <> - + col0
----

query IIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab2 cor1 WHERE NOT NULL > NULL
----

query I rowsort
SELECT - 44 - + col1 * 56 AS col0 FROM tab1 AS cor0
----
-2676
-324
-828

query I rowsort
SELECT + - col0 FROM tab2 AS cor0 WHERE + col0 + + 59 - + 86 IS NOT NULL
----
-46
-64
-75

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7074
SELECT + 48 - - CAST( NULL AS DECIMAL ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7074
SELECT + 48 - - CAST ( NULL AS REAL ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - + col1 AS col2 FROM tab0 AS cor0 WHERE NOT - col0 NOT BETWEEN NULL AND + col2 + col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 - - col2 col1 FROM tab1 AS cor0
----
-23
-26
45

onlyif mysql # aggregate syntax: 
query I rowsort label-7077
SELECT MAX( DISTINCT - 96 ) * - 19 - + + COUNT( * ) FROM tab0 AS cor0
----
1821

skipif mysql # not compatible
query I rowsort label-7077
SELECT MAX ( DISTINCT - 96 ) * - 19 - + + COUNT ( * ) FROM tab0 AS cor0
----
1821

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7078
SELECT + + CAST( col2 AS SIGNED ) - - + ( + 50 ) + col0 AS col1 FROM tab0 cor0
----
112
147
246

skipif mysql # not compatible
query I rowsort label-7078
SELECT + + CAST ( col2 AS INTEGER ) - - + ( + 50 ) + col0 AS col1 FROM tab0 cor0
----
112
147
246

query I rowsort
SELECT DISTINCT - 85 - col1 FROM tab1 AS cor0
----
-132
-90
-99

query I rowsort
SELECT - + col0 - - col2 + + col0 FROM tab1 AS cor0
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-7081
SELECT COUNT( * ) + - - 14 AS col0 FROM tab0 AS cor0
----
17

skipif mysql # not compatible
query I rowsort label-7081
SELECT COUNT ( * ) + - - 14 AS col0 FROM tab0 AS cor0
----
17

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7082
SELECT DISTINCT CAST( NULL AS DECIMAL ) * - AVG ( ALL - - 86 ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-7082
SELECT DISTINCT CAST ( NULL AS REAL ) * - AVG ( ALL - - 86 ) AS col2 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7083
SELECT DISTINCT + 43 * MAX( DISTINCT + - col1 ) FROM tab2
----
-2193

skipif mysql # not compatible
query I rowsort label-7083
SELECT DISTINCT + 43 * MAX ( DISTINCT + - col1 ) FROM tab2
----
-2193

onlyif mysql # DIV for integer division: 
query II rowsort label-7084
SELECT ALL - col0 DIV - col0 AS col0, 69 col1 FROM tab2
----
1
69
1
69
1
69

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7084
SELECT ALL - col0 / - col0 AS col0, 69 col1 FROM tab2
----
1
69
1
69
1
69

query I rowsort
SELECT ALL + + 4 FROM tab2 AS cor0
----
4
4
4

query I rowsort
SELECT DISTINCT col2 + + - col1 FROM tab2 cor0 WHERE - 20 * - col2 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7087
SELECT - MAX( ALL + 5 ) AS col2 FROM tab2 WHERE NOT - col0 + - 3 + col1 NOT BETWEEN ( - - col2 ) + - + col2 AND + col2 - + - ( + 53 )
----
-5

skipif mysql # not compatible
query I rowsort label-7087
SELECT - MAX ( ALL + 5 ) AS col2 FROM tab2 WHERE NOT - col0 + - 3 + col1 NOT BETWEEN ( - - col2 ) + - + col2 AND + col2 - + - ( + 53 )
----
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7088
SELECT DISTINCT - 38 * - CAST( NULL AS SIGNED ) / - 52 * + 84 + - col2 + - col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7088
SELECT DISTINCT - 38 * - CAST ( NULL AS INTEGER ) / - 52 * + 84 + - col2 + - col2 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL 84 * col1 / - col0 + + col2 AS col2 FROM tab0 cor0 WHERE NULL BETWEEN NULL AND col1
----

query II rowsort
SELECT DISTINCT + col0, - col0 AS col2 FROM tab1 AS cor0
----
51
-51
85
-85
91
-91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 31 col1 FROM tab0 AS cor0
----
31
31
31

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 66 col0 FROM tab2 AS cor0
----
66

onlyif mysql # DIV for integer division: 
query I rowsort label-7093
SELECT DISTINCT - 82 + + 90 DIV 17 FROM tab1 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-7093
SELECT DISTINCT - 82 + + 90 / 17 FROM tab1 AS cor0
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-7094
SELECT ALL + COUNT( - - col2 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-7094
SELECT ALL + COUNT ( - - col2 ) FROM tab0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7095
SELECT CAST( - 63 AS SIGNED ) + 46 AS col2 FROM tab0
----
-17
-17
-17

skipif mysql # not compatible
query I rowsort label-7095
SELECT CAST ( - 63 AS INTEGER ) + 46 AS col2 FROM tab0
----
-17
-17
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-7096
SELECT MIN( + - col1 ) FROM tab2
----
-77

skipif mysql # not compatible
query I rowsort label-7096
SELECT MIN ( + - col1 ) FROM tab2
----
-77

query I rowsort
SELECT ALL - 77 + + 19 + - col0 AS col1 FROM tab1
----
-109
-143
-149

onlyif mysql # aggregate syntax: 
query I rowsort label-7098
SELECT DISTINCT SUM( + 35 ) FROM tab0 AS cor0
----
105

skipif mysql # not compatible
query I rowsort label-7098
SELECT DISTINCT SUM ( + 35 ) FROM tab0 AS cor0
----
105

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7099
SELECT COUNT( * ) + - CAST( NULL AS SIGNED ) col2, 27 AS col1 FROM tab2
----
NULL
27

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7099
SELECT COUNT ( * ) + - CAST ( NULL AS INTEGER ) col2, 27 AS col1 FROM tab2
----
NULL
27

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 7 * col2 * + col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - + 35 FROM tab2 cor0
----
-35
-35
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-7102
SELECT + MAX( - + 4 ) FROM tab2 AS cor0
----
-4

skipif mysql # not compatible
query I rowsort label-7102
SELECT + MAX ( - + 4 ) FROM tab2 AS cor0
----
-4

query I rowsort
SELECT DISTINCT ( - col1 ) * 10 FROM tab1 AS cor0
----
-140
-470
-50

query I rowsort
SELECT ALL - col2 * + + ( - 2 ) + col1 AS col1 FROM tab0 AS cor0
----
175
199
41

onlyif mysql # aggregate syntax: 
query I rowsort label-7105
SELECT DISTINCT - MIN( ALL - - col0 ) AS col0 FROM tab1
----
-51

skipif mysql # not compatible
query I rowsort label-7105
SELECT DISTINCT - MIN ( ALL - - col0 ) AS col0 FROM tab1
----
-51

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL >= - + col1
----

query I rowsort
SELECT DISTINCT + 4 * col1 AS col2 FROM tab2
----
204
268
308

query I rowsort
SELECT ( 58 ) AS col2 FROM tab2
----
58
58
58

query I rowsort
SELECT ALL + 71 * + + 45 AS col2 FROM tab1
----
3195
3195
3195

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7110
SELECT COUNT( * ) DIV + 42 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-7110
SELECT COUNT ( * ) / + 42 FROM tab2
----
0

query I rowsort
SELECT col1 * + 64 FROM tab0
----
1344
5184
64

query I rowsort
SELECT ALL col2 * - + col1 * + col1 FROM tab1
----
-1475
-150212
-18816

onlyif mysql # aggregate syntax: 
query I rowsort label-7113
SELECT ALL + SUM( 82 ) AS col2 FROM tab2
----
246

skipif mysql # not compatible
query I rowsort label-7113
SELECT ALL + SUM ( 82 ) AS col2 FROM tab2
----
246

query I rowsort
SELECT DISTINCT 77 * - + col2 AS col2 FROM tab0 AS cor0
----
-3619
-7623
-770

onlyif mysql # aggregate syntax: 
query I rowsort label-7115
SELECT DISTINCT SUM( - col2 ) + + 66 col2 FROM tab1 WHERE NOT + col2 IS NOT NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7115
SELECT DISTINCT SUM ( - col2 ) + + 66 col2 FROM tab1 WHERE NOT + col2 IS NOT NULL
----
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE ( + 84 + + 60 ) <= - 78
----

query III rowsort
SELECT ALL * FROM tab0 WHERE ( 34 * - col1 ) IS NULL
----

query I rowsort
SELECT col0 * + 68 - - col2 AS col0 FROM tab2
----
3151
4392
5158

query III rowsort
SELECT ALL * FROM tab2 WHERE - 97 / col1 BETWEEN + 68 * - 50 AND ( ( + ( + col1 ) ) * - 14 )
----

query I rowsort
SELECT DISTINCT 63 - 92 * - col2 AS col0 FROM tab1
----
5491
6319
8895

query I rowsort
SELECT DISTINCT 36 + - col1 FROM tab1
----
-11
22
31

query III rowsort
SELECT * FROM tab0 WHERE NOT col2 + + col2 NOT IN ( col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7123
SELECT - MAX( - col2 ) col0 FROM tab0
----
10

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7123
SELECT - MAX ( - col2 ) col0 FROM tab0
----
10

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT 73 = ( + 69 * col1 + - 57 * col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-7125
SELECT ALL + ( COUNT( * ) ) * MIN( DISTINCT col2 ) col2 FROM tab2
----
69

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7125
SELECT ALL + ( COUNT ( * ) ) * MIN ( DISTINCT col2 ) col2 FROM tab2
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-7126
SELECT MIN( + 59 ) FROM tab1
----
59

skipif mysql # not compatible
query I rowsort label-7126
SELECT MIN ( + 59 ) FROM tab1
----
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7127
SELECT - ( CAST( NULL AS SIGNED ) ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7127
SELECT - ( CAST ( NULL AS INTEGER ) ) FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( col0 + 24 ) BETWEEN col0 AND col2
----
87
21
10
97
1
99

onlyif mysql # aggregate syntax: 
query I rowsort label-7129
SELECT COUNT( * ) FROM tab2 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-7129
SELECT COUNT ( * ) FROM tab2 WHERE NOT NULL IS NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 47 col1 FROM tab0
----
47
47
47

query I rowsort
SELECT col1 * ( - col0 ) + 80 FROM tab1
----
-345
-4197
-634

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 col2 FROM tab2 WHERE NOT + 62 * + col1 IS NULL
----
23
40
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 - - 23 col2 FROM tab1 WHERE NOT NULL > col2
----

query III rowsort
SELECT * FROM tab2 WHERE 87 * + col0 <= 25
----

query III rowsort
SELECT * FROM tab0 WHERE - col2 / + col0 <= ( NULL )
----

query III rowsort
SELECT * FROM tab1 WHERE ( NULL ) > ( col0 + ( - col0 ) / + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7137
SELECT 76 + 85 * COUNT( * ) FROM tab1
----
331

skipif mysql # not compatible
query I rowsort label-7137
SELECT 76 + 85 * COUNT ( * ) FROM tab1
----
331

onlyif mysql # aggregate syntax: 
query I rowsort label-7138
SELECT DISTINCT - MIN( ( + 28 ) ) AS col0 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7138
SELECT DISTINCT - MIN ( ( + 28 ) ) AS col0 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
NULL

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - 96 * 95 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL col0 - col1 * + col1 AS col1 FROM tab2 AS cor0
----
-2555
-4414
-5865

query I rowsort
SELECT + 59 * - col1 AS col0 FROM tab0 AS cor0
----
-1239
-4779
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-7142
SELECT DISTINCT + COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab2
----
9

skipif mysql # not compatible
query I rowsort label-7142
SELECT DISTINCT + COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab2
----
9

query I rowsort
SELECT DISTINCT - col1 * ( + col1 * + col0 ) - col0 AS col0 FROM tab0
----
-194
-38454
-98430

onlyif mysql # aggregate syntax: 
query I rowsort label-7144
SELECT ALL - COUNT( * ) AS col2 FROM tab1 cor0 CROSS JOIN tab2
----
-9

skipif mysql # not compatible
query I rowsort label-7144
SELECT ALL - COUNT ( * ) AS col2 FROM tab1 cor0 CROSS JOIN tab2
----
-9

query III rowsort
SELECT * FROM tab0 WHERE 97 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-7146
SELECT - COUNT( ALL col2 ) * 23 AS col1 FROM tab1 AS cor0
----
-69

skipif mysql # not compatible
query I rowsort label-7146
SELECT - COUNT ( ALL col2 ) * 23 AS col1 FROM tab1 AS cor0
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-7147
SELECT + SUM( DISTINCT col1 ) AS col2 FROM tab0 AS cor0
----
103

skipif mysql # not compatible
query I rowsort label-7147
SELECT + SUM ( DISTINCT col1 ) AS col2 FROM tab0 AS cor0
----
103

query I rowsort
SELECT - + 10 * - col1 FROM tab1 AS cor0
----
140
470
50

onlyif mysql # aggregate syntax: 
query I rowsort label-7149
SELECT + MIN( ALL col0 ) AS col2 FROM tab0 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-7149
SELECT + MIN ( ALL col0 ) AS col2 FROM tab0 AS cor0
----
15

query I rowsort
SELECT DISTINCT - + 73 * col2 FROM tab0 cor0
----
-3431
-7227
-730

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( 7 ) IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE - 36 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-7153
SELECT DISTINCT - COUNT( * ) * + 29 FROM tab2 AS cor0
----
-87

skipif mysql # not compatible
query I rowsort label-7153
SELECT DISTINCT - COUNT ( * ) * + 29 FROM tab2 AS cor0
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-7154
SELECT SUM( + col1 ) FROM tab0 AS cor0 WHERE NOT 80 + 28 NOT BETWEEN col0 * 61 + + ( col2 + 6 * + 47 ) * + col2 AND ( - col0 * col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7154
SELECT SUM ( + col1 ) FROM tab0 AS cor0 WHERE NOT 80 + 28 NOT BETWEEN col0 * 61 + + ( col2 + 6 * + 47 ) * + col2 AND ( - col0 * col1 )
----
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col1 + col2 NOT BETWEEN col0 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7156
SELECT DISTINCT * FROM tab1 WHERE ( + CAST( NULL AS SIGNED ) ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-7156
SELECT DISTINCT * FROM tab1 WHERE ( + CAST ( NULL AS INTEGER ) ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-7157
SELECT ALL - COUNT( * ) * + 8 FROM tab0
----
-24

skipif mysql # not compatible
query I rowsort label-7157
SELECT ALL - COUNT ( * ) * + 8 FROM tab0
----
-24

query I rowsort
SELECT - 18 * + + col0 AS col0 FROM tab0
----
-1566
-1746
-270

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7159
SELECT + CAST( NULL AS SIGNED ) FROM tab1 cor0 WHERE NOT col0 + 4 * col2 IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7159
SELECT + CAST ( NULL AS INTEGER ) FROM tab1 cor0 WHERE NOT col0 + 4 * col2 IS NULL
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NULL ) = 47 / col1 + 54
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7161
SELECT ALL - COUNT( * ) FROM tab1 AS cor0 WHERE col0 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-7161
SELECT ALL - COUNT ( * ) FROM tab1 AS cor0 WHERE col0 IS NOT NULL
----
-3

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7162
SELECT * FROM tab0 AS cor0 WHERE NOT col0 NOT BETWEEN ( 5 * col0 ) AND CAST( 68 AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-7162
SELECT * FROM tab0 AS cor0 WHERE NOT col0 NOT BETWEEN ( 5 * col0 ) AND CAST ( 68 AS REAL )
----

query I rowsort
SELECT DISTINCT + ( + + 85 ) * col1 FROM tab1 AS cor0
----
1190
3995
425

query I rowsort
SELECT + 43 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 199105619049271147956de52e7f5ed4

query I rowsort
SELECT 95 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to e57d8ed879dfd04d04aae87725c970d3

onlyif mysql # aggregate syntax: 
query I rowsort label-7166
SELECT ALL - COUNT( * ) + - - 50 * - COUNT( * ) col0 FROM tab2
----
-153

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7166
SELECT ALL - COUNT ( * ) + - - 50 * - COUNT ( * ) col0 FROM tab2
----
-153

query I rowsort
SELECT DISTINCT + col2 + + - col2 AS col1 FROM tab2 AS cor0
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN + 80 AND col2 OR NOT NULL <= - 82
----

query I rowsort
SELECT DISTINCT - col2 * col0 - + 50 + col2 FROM tab1 AS cor0
----
-4850
-5006
-6170

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7170
SELECT 62 * + CAST( NULL AS SIGNED ) FROM tab1 AS cor0 WHERE NULL >= NULL
----

skipif mysql # not compatible
query I rowsort label-7170
SELECT 62 * + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 WHERE NULL >= NULL
----

query I rowsort
SELECT + ( - col2 ) * - - col1 + 60 AS col0 FROM tab1 AS cor0
----
-1284
-235
-3136

query I rowsort
SELECT - col1 + 63 FROM tab0 cor0
----
-18
42
62

query I rowsort
SELECT DISTINCT - col0 AS col0 FROM tab0 AS cor0 WHERE NOT + 63 + - col1 * - col1 IS NOT NULL
----

query I rowsort
SELECT ALL + 35 * 38 * - - col2 + 59 * - col2 AS col2 FROM tab0 cor0
----
125829
12710
59737

query I rowsort
SELECT ALL 70 * - col0 + - + ( + col0 ) AS col1 FROM tab1 cor0
----
-3621
-6035
-6461

query I rowsort
SELECT 57 + - col1 AS col1 FROM tab1 AS cor0
----
10
43
52

query I rowsort
SELECT + col2 FROM tab2 AS cor0 WHERE col2 NOT BETWEEN ( + - col0 ) AND 76 + 95 / col2
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + 92 * + 49 * col0 + 48 / - col2 IS NOT NULL
----

query I rowsort
SELECT ALL 88 * - - col1 AS col2 FROM tab1
----
1232
4136
440

query III rowsort
SELECT ALL * FROM tab2 WHERE ( - col0 ) IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE ( NULL ) NOT IN ( + col1 + 9 )
----

query I rowsort
SELECT - 74 AS col0 FROM tab1 WHERE NULL IS NULL
----
-74
-74
-74

query I rowsort
SELECT DISTINCT + col2 AS col2 FROM tab1 WHERE NOT + col1 NOT BETWEEN NULL AND - 2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 7 col0 FROM tab2 WHERE - + ( - + 65 ) IS NOT NULL
----
-7
-7
-7

onlyif mysql # DIV for integer division: 
query I rowsort label-7185
SELECT - col0 DIV - + col1 AS col0 FROM tab2
----
0
0
1

skipif mysql # not compatible
query I rowsort label-7185
SELECT - col0 / - + col1 AS col0 FROM tab2
----
0
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7186
SELECT + - 27 - - COUNT( DISTINCT - col2 ) FROM tab0 AS cor0
----
-24

skipif mysql # not compatible
query I rowsort label-7186
SELECT + - 27 - - COUNT ( DISTINCT - col2 ) FROM tab0 AS cor0
----
-24

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7187
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + CAST( NULL AS SIGNED ) * + 74 NOT BETWEEN NULL AND ( - col2 )
----

skipif mysql # not compatible
query III rowsort label-7187
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + CAST ( NULL AS INTEGER ) * + 74 NOT BETWEEN NULL AND ( - col2 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7188
SELECT ALL - - 88 + - COUNT( + CAST( + ( + col1 ) AS SIGNED ) ) + + MIN( ALL + 40 + 63 ) AS col1 FROM tab1 AS cor0
----
188

skipif mysql # not compatible
query I rowsort label-7188
SELECT ALL - - 88 + - COUNT ( + CAST ( + ( + col1 ) AS INTEGER ) ) + + MIN ( ALL + 40 + 63 ) AS col1 FROM tab1 AS cor0
----
188

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7189
SELECT ALL - CAST( + - col0 AS SIGNED ), + 44 AS col2 FROM tab1 AS cor0
----
51
44
85
44
91
44

skipif mysql # not compatible
query II rowsort label-7189
SELECT ALL - CAST ( + - col0 AS INTEGER ), + 44 AS col2 FROM tab1 AS cor0
----
51
44
85
44
91
44

query I rowsort
SELECT + - 10 - + 1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 05cc989122d7724c7abefaba9625ef3d

query I rowsort
SELECT 20 * col1 * col2 * + + 62 * + col2 AS col1 FROM tab2
----
152768000
279481120
33453960

query I rowsort
SELECT ALL 2 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 84dbfaf9bc17dd097f15bc36b4186261

query II rowsort
SELECT DISTINCT + col2 AS col2, 44 AS col1 FROM tab0 cor0
----
10
44
47
44
99
44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7194
SELECT DISTINCT + CAST( + 2 AS SIGNED ) * - CAST( NULL AS SIGNED ) * - - 52 AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7194
SELECT DISTINCT + CAST ( + 2 AS INTEGER ) * - CAST ( NULL AS INTEGER ) * - - 52 AS col0 FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col1 >= + + col2 + - 8
----
97
1
99

onlyif mysql # aggregate syntax: 
query I rowsort label-7196
SELECT + MAX( ALL + col0 ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN col1 * 36 * - + col1 * - + col2 * col0 + 57 AND ( NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-7196
SELECT + MAX ( ALL + col0 ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN col1 * 36 * - + col1 * - + col2 * col0 + 57 AND ( NULL )
----
NULL

query I rowsort
SELECT DISTINCT - col0 + + ( + ( - col2 ) ) * - col1 AS col2 FROM tab1 AS cor0 WHERE ( col1 * + col2 * + col1 ) IN ( col2 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7198
SELECT + ( + ( - 85 ) ) AS col0, COUNT( 37 ) * 16 AS col0 FROM tab2 cor0
----
-85
48

skipif mysql # not compatible
query II rowsort label-7198
SELECT + ( + ( - 85 ) ) AS col0, COUNT ( 37 ) * 16 AS col0 FROM tab2 cor0
----
-85
48

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 58 IS NULL
----

query I rowsort
SELECT - 41 * col2 AS col1 FROM tab1
----
-2419
-2788
-3936

query II rowsort
SELECT + col0, col2 AS col1 FROM tab1
----
51
96
85
59
91
68

query I rowsort
SELECT DISTINCT - - col0 + + 53 AS col2 FROM tab2 WHERE NOT + col1 IS NULL
----
117
128
99

query I rowsort
SELECT ALL + ( + - 8 ) AS col2 FROM tab2
----
-8
-8
-8

query II rowsort
SELECT ALL col2 AS col2, col0 AS col1 FROM tab0
----
10
87
47
15
99
97

query I rowsort
SELECT + - 6 * col2 FROM tab0 AS cor0 WHERE NOT - 36 + + col0 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7206
SELECT DISTINCT - MIN( DISTINCT - col0 ) FROM tab1 AS cor0 WHERE NOT NULL > NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7206
SELECT DISTINCT - MIN ( DISTINCT - col0 ) FROM tab1 AS cor0 WHERE NOT NULL > NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7207
SELECT - 83 + COUNT( * ) AS col2 FROM tab1 AS cor0
----
-80

skipif mysql # not compatible
query I rowsort label-7207
SELECT - 83 + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-80

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7208
SELECT ALL + + SUM( ALL col1 ) DIV + COUNT( * ) AS col1 FROM tab2 AS cor0
----
65

skipif mysql # not compatible
query I rowsort label-7208
SELECT ALL + + SUM ( ALL col1 ) / + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
65

query II rowsort
SELECT + 93 + + + ( + - ( + col2 ) ), col2 FROM tab0 cor0
----
-6
99
46
47
83
10

query I rowsort
SELECT + col1 AS col2 FROM tab0 cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7211
SELECT DISTINCT - COUNT( * ) * + - 70 AS col2 FROM tab0
----
210

skipif mysql # not compatible
query I rowsort label-7211
SELECT DISTINCT - COUNT ( * ) * + - 70 AS col2 FROM tab0
----
210

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col2 <> + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7213
SELECT COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE ( NULL ) = ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-7213
SELECT COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE ( NULL ) = ( NULL )
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( ( NOT - col0 IS NULL ) )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col1 <= ( 47 )
----

query I rowsort
SELECT DISTINCT + col1 AS col1 FROM tab1 AS cor0 WHERE + col0 IN ( + col0 + col1 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 > - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT - - col1 * - 88, col0 AS col0 FROM tab0 cor0
----
-1848
87
-7128
15
-88
97

onlyif mysql # aggregate syntax: 
query I rowsort label-7219
SELECT DISTINCT COUNT( * ) + - - 30 FROM tab1 AS cor0
----
33

skipif mysql # not compatible
query I rowsort label-7219
SELECT DISTINCT COUNT ( * ) + - - 30 FROM tab1 AS cor0
----
33

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL BETWEEN 90 AND + col0
----

query I rowsort
SELECT + col1 - - 38 FROM tab2
----
105
115
89

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + - 45 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-7223
SELECT DISTINCT COUNT( * ) + + - 63 FROM tab2
----
-60

skipif mysql # not compatible
query I rowsort label-7223
SELECT DISTINCT COUNT ( * ) + + - 63 FROM tab2
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-7224
SELECT + COUNT( * ) + + 34 FROM tab2
----
37

skipif mysql # not compatible
query I rowsort label-7224
SELECT + COUNT ( * ) + + 34 FROM tab2
----
37

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL >= + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7226
SELECT DISTINCT - - COUNT( * ) - 62 + + + MAX( ALL + 76 ) AS col2 FROM tab2 AS cor0
----
17

skipif mysql # not compatible
query I rowsort label-7226
SELECT DISTINCT - - COUNT ( * ) - 62 + + + MAX ( ALL + 76 ) AS col2 FROM tab2 AS cor0
----
17

query I rowsort
SELECT ALL - col1 - - - col2 AS col2 FROM tab1 AS cor0
----
-110
-115
-64

query II rowsort
SELECT + col2, - col2 * + 25 AS col1 FROM tab1 AS cor0
----
59
-1475
68
-1700
96
-2400

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( NULL ) <= ( + 8 )
----

query I rowsort
SELECT col0 * + 49 AS col1 FROM tab2
----
2254
3136
3675

query I rowsort
SELECT 89 * - 17 AS col1 FROM tab0
----
-1513
-1513
-1513

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col0 - + col2 <= + 59
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7233
SELECT MIN( + + 0 ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7233
SELECT MIN ( + + 0 ) FROM tab0 AS cor0
----
0

query I rowsort
SELECT + + ( + ( + - col0 ) ) AS col0 FROM tab2 AS cor0
----
-46
-64
-75

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col1 <= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 40 col0 FROM tab2 cor0
----
-40
-40
-40

query I rowsort
SELECT - - 73 AS col0 FROM tab1 WHERE NOT col2 * col1 IS NULL
----
73
73
73

onlyif mysql # aggregate syntax: 
query I rowsort label-7238
SELECT - SUM( ALL + 69 ) FROM tab1
----
-207

skipif mysql # not compatible
query I rowsort label-7238
SELECT - SUM ( ALL + 69 ) FROM tab1
----
-207

query I rowsort
SELECT ALL + 33 FROM tab1 WHERE + col0 + - 55 + - col0 * - 46 IS NOT NULL
----
33
33
33

query I rowsort
SELECT - ( - - col2 ) AS col0 FROM tab2
----
-23
-40
-58

query I rowsort
SELECT ALL - col0 * + + col1 * + + col0 FROM tab2 AS cor0
----
-107916
-315392
-376875

query I rowsort
SELECT + col1 * + col2 * - 68 AS col0 FROM tab2 AS cor0
----
-209440
-264248
-79764

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7243
SELECT ALL - + 84 AS col0, 85 DIV - MAX( - col2 ) col2 FROM tab0 AS cor0
----
-84
8

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7243
SELECT ALL - + 84 AS col0, 85 / - MAX ( - col2 ) col2 FROM tab0 AS cor0
----
-84
8

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7244
SELECT DISTINCT 66 DIV - + 30 + - col1 + - ( 56 ) AS col0 FROM tab0 AS cor0 WHERE NOT ( CAST( NULL AS SIGNED ) IS NOT NULL )
----
-139
-59
-79

skipif mysql # not compatible
query I rowsort label-7244
SELECT DISTINCT 66 / - + 30 + - col1 + - ( 56 ) AS col0 FROM tab0 AS cor0 WHERE NOT ( CAST ( NULL AS INTEGER ) IS NOT NULL )
----
-139
-59
-79

query III rowsort
SELECT * FROM tab1 WHERE NULL >= ( - col1 * - 86 + - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7246
SELECT ALL - 59 * - COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
531

skipif mysql # not compatible
query I rowsort label-7246
SELECT ALL - 59 * - COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
531

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7247
SELECT ALL - MIN( - - CAST( 46 AS SIGNED ) ) FROM tab0
----
-46

skipif mysql # not compatible
query I rowsort label-7247
SELECT ALL - MIN ( - - CAST ( 46 AS INTEGER ) ) FROM tab0
----
-46

query III rowsort
SELECT * FROM tab2 WHERE NULL BETWEEN - col1 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + + + 50 col0 FROM tab2 AS cor0
----
-8
10
27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7250
SELECT ALL + - 21 + + - CAST( NULL AS SIGNED ) + col2 + - col2 * + 83 * - col1 * + - 75 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7250
SELECT ALL + - 21 + + - CAST ( NULL AS INTEGER ) + col2 + - col2 * + 83 * - col1 * + - 75 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - col2 + - - col0 col1 FROM tab2 AS cor0
----
-1012
-2496
-4275

query I rowsort
SELECT DISTINCT - - col2 * col2 - col2 FROM tab2 AS cor0
----
1560
3306
506

query I rowsort
SELECT + - col2 * + - col0 + col0 * + col2 * + col1 - + col2 - - col2 * - col2 FROM tab2 AS cor0 WHERE NULL IN ( - 41 + - 51 * + + 68, - 43 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7254
SELECT ALL MIN( + + ( + + col2 ) ) + - - COUNT( * ) AS col1 FROM tab2 AS cor0
----
26

skipif mysql # not compatible
query I rowsort label-7254
SELECT ALL MIN ( + + ( + + col2 ) ) + - - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-7255
SELECT DISTINCT ( + COUNT( * ) ) FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-7255
SELECT DISTINCT ( + COUNT ( * ) ) FROM tab1 cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7256
SELECT ALL - SUM( ALL + col2 ) FROM tab0 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-7256
SELECT ALL - SUM ( ALL + col2 ) FROM tab0 AS cor0
----
-156

query III rowsort
SELECT * FROM tab1 WHERE ( NOT ( NOT NULL <= col1 * + - col1 * + + 66 * ( + 25 ) ) )
----

query I rowsort
SELECT DISTINCT - col1 * 73 FROM tab2
----
-3723
-4891
-5621

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7259
SELECT + COUNT( * ) * COUNT( * ) * 12 * - CAST( NULL AS SIGNED ) * + MIN( - + CAST( NULL AS SIGNED ) ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-7259
SELECT + COUNT ( * ) * COUNT ( * ) * 12 * - CAST ( NULL AS INTEGER ) * + MIN ( - + CAST ( NULL AS INTEGER ) ) FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7260
SELECT DISTINCT 96 + + COUNT( * ) FROM tab0
----
99

skipif mysql # not compatible
query I rowsort label-7260
SELECT DISTINCT 96 + + COUNT ( * ) FROM tab0
----
99

query IIIIII rowsort
SELECT * FROM tab1, tab0 AS cor0 WHERE + + 45 IS NOT NULL
----
54 values hashing to 058438fde5fb838f23bcbdd39266ddcf

onlyif mysql # aggregate syntax: 
query I rowsort label-7262
SELECT - COUNT( * ) * + 45 * + 19 FROM tab2
----
-2565

skipif mysql # not compatible
query I rowsort label-7262
SELECT - COUNT ( * ) * + 45 * + 19 FROM tab2
----
-2565

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 - - + col2 col2 FROM tab2
----
-17
-23
-24

query I rowsort
SELECT + col1 - + + 51 FROM tab0
----
-30
-50
30

query I rowsort
SELECT 64 - + - 25 * 10 * ( 51 ) AS col1 FROM tab2
----
12814
12814
12814

query I rowsort
SELECT ALL - 60 * - col2 + - col0 * 8 FROM tab1
----
2860
3352
5352

query II rowsort
SELECT DISTINCT + col1, col0 AS col0 FROM tab2
----
51
46
67
75
77
64

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab0 cor1 WHERE ( NULL ) <= NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT - col2 * + col1 <= col0 * 85 / 30
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND 91
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( col2 BETWEEN - + 29 AND NULL )
----

query II rowsort
SELECT ALL + + col1, 45 AS col2 FROM tab2 AS cor0
----
51
45
67
45
77
45

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7273
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN - col0 / - CAST( NULL AS SIGNED ) AND - - ( - - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-7273
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN - col0 / - CAST ( NULL AS INTEGER ) AND - - ( - - CAST ( NULL AS INTEGER ) )
----

query II rowsort
SELECT - + 73 * - 0 - - col0, col1 / + col2 FROM tab0 AS cor0 WHERE NOT ( NOT ( - col2 * col0 IS NULL ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7275
SELECT + + col0 col1, ( ( - col0 ) ) + + 48 + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
51
NULL
85
NULL
91
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7275
SELECT + + col0 col1, ( ( - col0 ) ) + + 48 + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
51
NULL
85
NULL
91
NULL

query II rowsort
SELECT - 83, col1 FROM tab0 AS cor0
----
-83
1
-83
21
-83
81

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7277
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + CAST( col1 AS SIGNED ) NOT BETWEEN NULL AND + - 89
----

skipif mysql # not compatible
query III rowsort label-7277
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + CAST ( col1 AS INTEGER ) NOT BETWEEN NULL AND + - 89
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7278
SELECT ALL - SUM( DISTINCT - - col2 ) AS col0 FROM tab0 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-7278
SELECT ALL - SUM ( DISTINCT - - col2 ) AS col0 FROM tab0 AS cor0
----
-156

onlyif mysql # aggregate syntax: 
query I rowsort label-7279
SELECT + - MAX( - + col2 ) AS col2 FROM tab1 cor0
----
59

skipif mysql # not compatible
query I rowsort label-7279
SELECT + - MAX ( - + col2 ) AS col2 FROM tab1 cor0
----
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - - col0 * - col2 col1 FROM tab1
----
-295885
-420784
-470016

query I rowsort
SELECT DISTINCT 35 + + 68 AS col0 FROM tab0
----
103

query I rowsort
SELECT ALL - 37 AS col1 FROM tab0
----
-37
-37
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-7283
SELECT ALL COUNT( + ( + 70 ) ) AS col2 FROM tab0 AS cor0 WHERE NOT + 36 > ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-7283
SELECT ALL COUNT ( + ( + 70 ) ) AS col2 FROM tab0 AS cor0 WHERE NOT + 36 > ( NULL )
----
0

query I rowsort
SELECT - 59 + - col2 - - + col2 FROM tab2 AS cor0
----
-59
-59
-59

query I rowsort
SELECT 68 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 599bee15ac4cc39b859854e07dfe7990

onlyif mysql # aggregate syntax: 
query I rowsort label-7286
SELECT DISTINCT + + COUNT( * ) - 13 AS col1 FROM tab1 cor0
----
-10

skipif mysql # not compatible
query I rowsort label-7286
SELECT DISTINCT + + COUNT ( * ) - 13 AS col1 FROM tab1 cor0
----
-10

query III rowsort
SELECT * FROM tab2 cor0 WHERE + col0 / + col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7288
SELECT col0 * + 64 - - - CAST( NULL AS SIGNED ) AS col1, col2 FROM tab0 AS cor0
----
NULL
10
NULL
47
NULL
99

skipif mysql # not compatible
query II rowsort label-7288
SELECT col0 * + 64 - - - CAST ( NULL AS INTEGER ) AS col1, col2 FROM tab0 AS cor0
----
NULL
10
NULL
47
NULL
99

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL < + col0 * 29
----

query I rowsort
SELECT - col2 * + col0 * + + 6 + 12 + - - 11 AS col0 FROM tab0 AS cor0
----
-4207
-5197
-57595

onlyif mysql # aggregate syntax: 
query I rowsort label-7291
SELECT ALL - - COUNT( + - col1 ) - - + COUNT( * ) FROM tab2 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-7291
SELECT ALL - - COUNT ( + - col1 ) - - + COUNT ( * ) FROM tab2 AS cor0
----
6

query I rowsort
SELECT 39 + + 79 FROM tab0
----
118
118
118

query III rowsort
SELECT * FROM tab2 WHERE + col2 BETWEEN 91 AND - col0 * col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7294
SELECT DISTINCT + COUNT( * ) - - ( 53 ) FROM tab0
----
56

skipif mysql # not compatible
query I rowsort label-7294
SELECT DISTINCT + COUNT ( * ) - - ( 53 ) FROM tab0
----
56

query I rowsort
SELECT DISTINCT + col0 * + - ( col1 ) AS col0 FROM tab2
----
-2346
-4928
-5025

query III rowsort
SELECT ALL * FROM tab0 WHERE col2 - + col0 IN ( - 75, ( + col1 ), + - col1 )
----

query III rowsort
SELECT * FROM tab1 WHERE + col0 BETWEEN NULL AND + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7298
SELECT ALL - MIN( DISTINCT - col2 ) * + 0 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-7298
SELECT ALL - MIN ( DISTINCT - col2 ) * + 0 FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7299
SELECT ALL - MAX( + - col0 ) + 33 col2 FROM tab2
----
79

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7299
SELECT ALL - MAX ( + - col0 ) + 33 col2 FROM tab2
----
79

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7300
SELECT * FROM tab2 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) = ( - col2 )
----

skipif mysql # not compatible
query III rowsort label-7300
SELECT * FROM tab2 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) = ( - col2 )
----

query I rowsort
SELECT ALL + col0 * 47 FROM tab1 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT DISTINCT + ( - 5 ) AS col2, 96 FROM tab0 AS cor0
----
-5
96

onlyif mysql # aggregate syntax: 
query II rowsort label-7303
SELECT DISTINCT + COUNT( - col2 ) AS col2, 62 AS col1 FROM tab0 AS cor0
----
3
62

skipif mysql # not compatible
query II rowsort label-7303
SELECT DISTINCT + COUNT ( - col2 ) AS col2, 62 AS col1 FROM tab0 AS cor0
----
3
62

onlyif mysql # aggregate syntax: 
query I rowsort label-7304
SELECT ALL + MAX( - - col0 ) FROM tab2 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-7304
SELECT ALL + MAX ( - - col0 ) FROM tab2 AS cor0
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-7305
SELECT DISTINCT ( + MIN( DISTINCT - 98 ) ) AS col0 FROM tab1 AS cor0
----
-98

skipif mysql # not compatible
query I rowsort label-7305
SELECT DISTINCT ( + MIN ( DISTINCT - 98 ) ) AS col0 FROM tab1 AS cor0
----
-98

query II rowsort
SELECT - 3 + + col0 AS col2, - 87 FROM tab0 AS cor0
----
12
-87
84
-87
94
-87

query I rowsort
SELECT 68 + - + 48 FROM tab0
----
20
20
20

query I rowsort
SELECT ALL 84 + col1 FROM tab1
----
131
89
98

query III rowsort
SELECT * FROM tab2 WHERE + - col1 - col2 * + col1 * - 0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-7310
SELECT DISTINCT COUNT( * ), - COUNT( * ) AS col1 FROM tab2
----
3
-3

skipif mysql # not compatible
query II rowsort label-7310
SELECT DISTINCT COUNT ( * ), - COUNT ( * ) AS col1 FROM tab2
----
3
-3

query II rowsort
SELECT - col1 AS col0, col1 * + 74 FROM tab2
----
-51
3774
-67
4958
-77
5698

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + col1 / - col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7313
SELECT + 26 AS col1 FROM tab0 AS cor0 WHERE ( + CAST( NULL AS SIGNED ) ) <> - col2 * 21
----

skipif mysql # not compatible
query I rowsort label-7313
SELECT + 26 AS col1 FROM tab0 AS cor0 WHERE ( + CAST ( NULL AS INTEGER ) ) <> - col2 * 21
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7314
SELECT - - CAST( - + 24 AS SIGNED ) * AVG ( DISTINCT col0 ) AS col2 FROM tab1 WHERE - - col1 = + col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7314
SELECT - - CAST ( - + 24 AS INTEGER ) * AVG ( DISTINCT col0 ) AS col2 FROM tab1 WHERE - - col1 = + col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7315
SELECT - 59 * + + COUNT( * ) + - 50 AS col1 FROM tab0
----
-227

skipif mysql # not compatible
query I rowsort label-7315
SELECT - 59 * + + COUNT ( * ) + - 50 AS col1 FROM tab0
----
-227

query I rowsort
SELECT - 56 FROM tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7317
SELECT col0 + - col1 DIV col2 AS col2 FROM tab2
----
44
63
74

skipif mysql # not compatible
query I rowsort label-7317
SELECT col0 + - col1 / col2 AS col2 FROM tab2
----
44
63
74

onlyif mysql # aggregate syntax: 
query I rowsort label-7318
SELECT - COUNT( * ) + 90 FROM tab1
----
87

skipif mysql # not compatible
query I rowsort label-7318
SELECT - COUNT ( * ) + 90 FROM tab1
----
87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7319
SELECT DISTINCT col1 + + CAST( 58 AS SIGNED ) FROM tab0 AS cor0
----
139
59
79

skipif mysql # not compatible
query I rowsort label-7319
SELECT DISTINCT col1 + + CAST ( 58 AS INTEGER ) FROM tab0 AS cor0
----
139
59
79

query I rowsort
SELECT + 67 - - 43 + + - 89 * - col2 AS col2 FROM tab2 AS cor0 WHERE col2 IS NOT NULL
----
2157
3670
5272

query III rowsort
SELECT * FROM tab2 cor0 WHERE NULL <= - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7322
SELECT DISTINCT - - ( - COUNT( * ) ) AS col2 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-7322
SELECT DISTINCT - - ( - COUNT ( * ) ) AS col2 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
-3

query I rowsort
SELECT ALL col1 * - col1 - - - 32 AS col1 FROM tab0 AS cor0
----
-33
-473
-6593

query I rowsort
SELECT 97 * + 45 FROM tab1
----
4365
4365
4365

query I rowsort
SELECT 15 * + 67 FROM tab2
----
1005
1005
1005

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7326
SELECT DISTINCT - col1 * + + col1 * - + CAST( NULL AS DECIMAL ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7326
SELECT DISTINCT - col1 * + + col1 * - + CAST ( NULL AS REAL ) FROM tab1
----
NULL

query I rowsort
SELECT 78 FROM tab0 WHERE NOT - - col1 IS NOT NULL
----

query I rowsort
SELECT ALL - col0 * + 30 AS col1 FROM tab0
----
-2610
-2910
-450

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7329
SELECT - - 89 * col0 - - CAST( - ( + + col0 ) AS SIGNED ) * - col0 AS col0 FROM tab2 AS cor0
----
12300
6210
9792

skipif mysql # not compatible
query I rowsort label-7329
SELECT - - 89 * col0 - - CAST ( - ( + + col0 ) AS INTEGER ) * - col0 AS col0 FROM tab2 AS cor0
----
12300
6210
9792

onlyif mysql # DIV for integer division: 
query I rowsort label-7330
SELECT ALL + col0 DIV 50 + + col1 * + 61 AS col1 FROM tab0 AS cor0
----
1282
4941
62

skipif mysql # not compatible
query I rowsort label-7330
SELECT ALL + col0 / 50 + + col1 * + 61 AS col1 FROM tab0 AS cor0
----
1282
4941
62

query I rowsort
SELECT ALL + + col0 + - ( - 83 ) AS col0 FROM tab2 AS cor0
----
129
147
158

query II rowsort
SELECT DISTINCT - col0, col2 FROM tab2 cor0
----
-46
23
-64
40
-75
58

query I rowsort
SELECT + ( - 24 ) AS col2 FROM tab1 AS cor0
----
-24
-24
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-7334
SELECT DISTINCT + COUNT( * ) * - 43 AS col1 FROM tab2 AS cor0
----
-129

skipif mysql # not compatible
query I rowsort label-7334
SELECT DISTINCT + COUNT ( * ) * - 43 AS col1 FROM tab2 AS cor0
----
-129

onlyif mysql # DIV for integer division: 
query I rowsort label-7335
SELECT - 38 DIV col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7335
SELECT - 38 / col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL col0 * - + 6 AS col0 FROM tab2 AS cor0
----
-276
-384
-450

onlyif mysql # DIV for integer division: 
query I rowsort label-7337
SELECT + col2 DIV - 8 AS col1 FROM tab0
----
-1
-12
-5

skipif mysql # not compatible
query I rowsort label-7337
SELECT + col2 / - 8 AS col1 FROM tab0
----
-1
-12
-5

query I rowsort
SELECT ALL col0 - - 12 FROM tab0 WHERE - col0 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7339
SELECT ALL col2 DIV - 46 FROM tab0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-7339
SELECT ALL col2 / - 46 FROM tab0
----
-1
-2
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7340
SELECT DISTINCT - ( - - 45 ) + - 78 + - - CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-7340
SELECT DISTINCT - ( - - 45 ) + - 78 + - - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7341
SELECT + SUM( ALL + + col2 ) AS col1, - MIN( ALL - 36 ) FROM tab0
----
156
36

skipif mysql # not compatible
query II rowsort label-7341
SELECT + SUM ( ALL + + col2 ) AS col1, - MIN ( ALL - 36 ) FROM tab0
----
156
36

onlyif mysql # DIV for integer division: 
query I rowsort label-7342
SELECT ALL - 55 + + + col2 DIV - col1 * - 4 - - - 75 FROM tab2 AS cor0
----
-130
-130
-130

skipif mysql # not compatible
query I rowsort label-7342
SELECT ALL - 55 + + + col2 / - col1 * - 4 - - - 75 FROM tab2 AS cor0
----
-130
-130
-130

query III rowsort
SELECT * FROM tab1 cor0 WHERE - 60 BETWEEN + + 45 + + + col1 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 col1 FROM tab0 AS cor0 WHERE NOT ( NULL IS NOT NULL )
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-7345
SELECT DISTINCT + COUNT( * ) + - - COUNT( * ) + + MIN( - col2 ) - + COUNT( * ) * COUNT( + - col0 ) FROM tab0
----
-102

skipif mysql # not compatible
query I rowsort label-7345
SELECT DISTINCT + COUNT ( * ) + - - COUNT ( * ) + + MIN ( - col2 ) - + COUNT ( * ) * COUNT ( + - col0 ) FROM tab0
----
-102

onlyif mysql # aggregate syntax: 
query I rowsort label-7346
SELECT COUNT( * ) - + 7 * - SUM( - - col2 ) AS col0 FROM tab1 AS cor0
----
1564

skipif mysql # not compatible
query I rowsort label-7346
SELECT COUNT ( * ) - + 7 * - SUM ( - - col2 ) AS col0 FROM tab1 AS cor0
----
1564

query I rowsort
SELECT + col0 + + col0 + + + col1 FROM tab2 AS cor0 WHERE col0 * col2 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7348
SELECT ALL MAX( DISTINCT - + col0 ) col2 FROM tab0 AS cor0
----
-15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7348
SELECT ALL MAX ( DISTINCT - + col0 ) col2 FROM tab0 AS cor0
----
-15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7349
SELECT CAST( - - col2 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
23
40
58

skipif mysql # not compatible
query I rowsort label-7349
SELECT CAST ( - - col2 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
23
40
58

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) = + - col2 * + col0
----

query II rowsort
SELECT 44 AS col1, - col2 FROM tab0 AS cor0
----
44
-10
44
-47
44
-99

query II rowsort
SELECT + 25 AS col1, 9 FROM tab2 AS cor0
----
25
9
25
9
25
9

query II rowsort
SELECT DISTINCT + - col0, - col2 AS col2 FROM tab1 cor0
----
-51
-96
-85
-59
-91
-68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7354
SELECT + col2 * - CAST( - col1 AS SIGNED ) AS col0 FROM tab0
----
210
3807
99

skipif mysql # not compatible
query I rowsort label-7354
SELECT + col2 * - CAST ( - col1 AS INTEGER ) AS col0 FROM tab0
----
210
3807
99

query III rowsort
SELECT * FROM tab1 WHERE NOT ( + ( + - col1 ) ) IS NOT NULL
----

query I rowsort
SELECT + col2 FROM tab0 WHERE NOT + + 42 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7357
SELECT ALL - COUNT( + 98 ) AS col2, + 68 FROM tab2
----
-3
68

skipif mysql # not compatible
query II rowsort label-7357
SELECT ALL - COUNT ( + 98 ) AS col2, + 68 FROM tab2
----
-3
68

query I rowsort
SELECT ( - 20 ) FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7359
SELECT DISTINCT - COUNT( - + col2 ) AS col1 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-7359
SELECT DISTINCT - COUNT ( - + col2 ) AS col1 FROM tab1
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-7360
SELECT DISTINCT - ( - + 72 ) col2, + COUNT( * ) FROM tab2 AS cor0
----
72
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7360
SELECT DISTINCT - ( - + 72 ) col2, + COUNT ( * ) FROM tab2 AS cor0
----
72
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7361
SELECT DISTINCT + CAST( - ( - COUNT( * ) ) AS SIGNED ) col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7361
SELECT DISTINCT + CAST ( - ( - COUNT ( * ) ) AS INTEGER ) col1 FROM tab1 AS cor0
----
3

query III rowsort
SELECT * FROM tab0 WHERE NOT - col1 * - col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 59 col1 FROM tab0
----
59
59
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7364
SELECT CAST( - + COUNT( * ) AS SIGNED ) * + + COUNT( * ) + - COUNT( * ) AS col2 FROM tab0
----
-12

skipif mysql # not compatible
query I rowsort label-7364
SELECT CAST ( - + COUNT ( * ) AS INTEGER ) * + + COUNT ( * ) + - COUNT ( * ) AS col2 FROM tab0
----
-12

query I rowsort
SELECT + col1 AS col0 FROM tab1 AS cor0 WHERE - col2 <> + col2
----
14
47
5

query I rowsort
SELECT ALL - col1 + col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) <= + - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7367
SELECT COUNT( * ) + + 25 * - COUNT( * ) FROM tab1 AS cor0
----
-72

skipif mysql # not compatible
query I rowsort label-7367
SELECT COUNT ( * ) + + 25 * - COUNT ( * ) FROM tab1 AS cor0
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-7368
SELECT + COUNT( * ) FROM tab2 AS cor0 WHERE ( NOT NULL IS NOT NULL )
----
3

skipif mysql # not compatible
query I rowsort label-7368
SELECT + COUNT ( * ) FROM tab2 AS cor0 WHERE ( NOT NULL IS NOT NULL )
----
3

query I rowsort
SELECT ALL col0 AS col1 FROM tab1 AS cor0 WHERE NOT 36 IS NULL
----
51
85
91

query I rowsort
SELECT ALL - col2 * 13 AS col2 FROM tab1 cor0
----
-1248
-767
-884

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7371
SELECT DISTINCT + 78 * + MIN( + + CAST( NULL AS SIGNED ) ) * 98 - + - COUNT( * ) col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7371
SELECT DISTINCT + 78 * + MIN ( + + CAST ( NULL AS INTEGER ) ) * 98 - + - COUNT ( * ) col0 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT col1 + ( + - 58 ) FROM tab1 cor0
----
-11
-44
-53

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - - 82 * col1 + col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7374
SELECT col1 * - col0 * CAST( + col2 AS SIGNED ) + - col2 FROM tab0
----
-18280
-57152
-9702

skipif mysql # not compatible
query I rowsort label-7374
SELECT col1 * - col0 * CAST ( + col2 AS INTEGER ) + - col2 FROM tab0
----
-18280
-57152
-9702

query I rowsort
SELECT - col2 * + + col0 AS col1 FROM tab1
----
-4896
-5015
-6188

onlyif mysql # aggregate syntax: 
query I rowsort label-7376
SELECT DISTINCT - COUNT( * ) + - + 28 AS col2 FROM tab0
----
-31

skipif mysql # not compatible
query I rowsort label-7376
SELECT DISTINCT - COUNT ( * ) + - + 28 AS col2 FROM tab0
----
-31

query I rowsort
SELECT + col1 * + 11 FROM tab2
----
561
737
847

query II rowsort
SELECT 94 AS col2, col1 FROM tab0
----
94
1
94
21
94
81

query II rowsort
SELECT - 78, + 55 AS col2 FROM tab1
----
-78
55
-78
55
-78
55

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7380
SELECT CAST( NULL AS SIGNED ), col1 AS col1 FROM tab0
----
NULL
1
NULL
21
NULL
81

skipif mysql # not compatible
query II rowsort label-7380
SELECT CAST ( NULL AS INTEGER ), col1 AS col1 FROM tab0
----
NULL
1
NULL
21
NULL
81

query I rowsort
SELECT ALL - col2 - - + col1 + + 23 FROM tab2 AS cor0
----
32
51
60

query I rowsort
SELECT ALL 25 - 49 FROM tab0
----
-24
-24
-24

onlyif mysql # DIV for integer division: 
query I rowsort label-7383
SELECT DISTINCT + 43 DIV + - ( - 16 ) FROM tab1 AS cor0
----
2

skipif mysql # not compatible
query I rowsort label-7383
SELECT DISTINCT + 43 / + - ( - 16 ) FROM tab1 AS cor0
----
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7384
SELECT DISTINCT - SUM( ALL 28 ) DIV - COUNT( * ) + - + SUM( col0 ) + + 95 FROM tab1 cor0
----
-104

skipif mysql # not compatible
query I rowsort label-7384
SELECT DISTINCT - SUM ( ALL 28 ) / - COUNT ( * ) + - + SUM ( col0 ) + + 95 FROM tab1 cor0
----
-104

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col2 * - col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL IN ( + col1, col2, col2, 88 * col2 - + col1 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7387
SELECT COUNT( * ) col1, - 98 FROM tab2
----
3
-98

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7387
SELECT COUNT ( * ) col1, - 98 FROM tab2
----
3
-98

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL NOT BETWEEN 91 AND col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7389
SELECT - 11 * - COUNT( * ) FROM tab1
----
33

skipif mysql # not compatible
query I rowsort label-7389
SELECT - 11 * - COUNT ( * ) FROM tab1
----
33

query I rowsort
SELECT - ( ( - - col2 ) ) FROM tab2
----
-23
-40
-58

query I rowsort
SELECT + col1 / col0 + col0 FROM tab0 WHERE NOT - 86 > NULL
----

query II rowsort
SELECT DISTINCT col1 AS col0, col1 * + ( col0 ) AS col1 FROM tab2
----
51
2346
67
5025
77
4928

onlyif mysql # DIV for integer division: 
query II rowsort label-7393
SELECT col2, + col2 DIV col2 FROM tab1
----
59
1
68
1
96
1

skipif mysql # not compatible
query II rowsort label-7393
SELECT col2, + col2 / col2 FROM tab1
----
59
1
68
1
96
1

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + 49 * col0 / ( - col1 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7395
SELECT ALL col1 * + ( CAST( NULL AS SIGNED ) ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7395
SELECT ALL col1 * + ( CAST ( NULL AS INTEGER ) ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7396
SELECT ALL CAST( NULL AS DECIMAL ) * - - col1 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7396
SELECT ALL CAST ( NULL AS REAL ) * - - col1 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT + col1 AS col2, 99 FROM tab1 AS cor0
----
14
99
47
99
5
99

query I rowsort
SELECT col1 + + - col0 FROM tab1 AS cor0
----
-37
-44
-80

query I rowsort
SELECT + col2 + + + 32 AS col1 FROM tab1 AS cor0 WHERE col2 IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - col1 * - - col0 * + 17 NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7401
SELECT ALL + COUNT( + col1 ) AS col2, + 74 FROM tab2 AS cor0
----
3
74

skipif mysql # not compatible
query II rowsort label-7401
SELECT ALL + COUNT ( + col1 ) AS col2, + 74 FROM tab2 AS cor0
----
3
74

query I rowsort
SELECT - - ( + 17 ) FROM tab1 AS cor0
----
17
17
17

query I rowsort
SELECT - col2 * 56 + + - ( - 2 ) + + col2 * - + col1 + col1 AS col0 FROM tab2 AS cor0
----
-2408
-5241
-7065

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7404
SELECT + + 20 + + col1 AS col2 FROM tab1 WHERE + CAST( - + col2 AS DECIMAL ) NOT BETWEEN + 43 AND NULL
----
25
34
67

skipif mysql # not compatible
query I rowsort label-7404
SELECT + + 20 + + col1 AS col2 FROM tab1 WHERE + CAST ( - + col2 AS REAL ) NOT BETWEEN + 43 AND NULL
----
25
34
67

query I rowsort
SELECT ALL ( - - col1 ) AS col2 FROM tab0 WHERE ( ( NOT + - 88 IS NOT NULL ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 18 col2 FROM tab2, tab2 cor0
----
9 values hashing to b95bafa733666df39c5d3f94760d010f

onlyif mysql # DIV for integer division: 
query I rowsort label-7407
SELECT - 59 * - col1 + - - col1 DIV + col2 FROM tab0 AS cor0
----
1241
4780
59

skipif mysql # not compatible
query I rowsort label-7407
SELECT - 59 * - col1 + - - col1 / + col2 FROM tab0 AS cor0
----
1241
4780
59

onlyif mysql # aggregate syntax: 
query I rowsort label-7408
SELECT + COUNT( * ) * + 24 * COUNT( * ) FROM tab0
----
216

skipif mysql # not compatible
query I rowsort label-7408
SELECT + COUNT ( * ) * + 24 * COUNT ( * ) FROM tab0
----
216

query I rowsort
SELECT DISTINCT + + 92 * - - col1 + - col1 * - col0 AS col2 FROM tab1 AS cor0
----
2002
8601
885

onlyif mysql # DIV for integer division: 
query I rowsort label-7410
SELECT DISTINCT + + 97 DIV + col2 AS col2 FROM tab0 AS cor0
----
0
2
9

skipif mysql # not compatible
query I rowsort label-7410
SELECT DISTINCT + + 97 / + col2 AS col2 FROM tab0 AS cor0
----
0
2
9

query I rowsort
SELECT ALL + 10 FROM tab2 cor0 WHERE NOT - col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7412
SELECT - SUM( DISTINCT col1 ) col1 FROM tab0 AS cor0
----
-103

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7412
SELECT - SUM ( DISTINCT col1 ) col1 FROM tab0 AS cor0
----
-103

query I rowsort
SELECT ALL ( - 69 ) AS col0 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT ALL col0, 21 FROM tab2 AS cor0
----
46
21
64
21
75
21

query II rowsort
SELECT ALL ( - col2 ) AS col1, - col0 - + 33 FROM tab1 AS cor0
----
-59
-118
-68
-124
-96
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-7416
SELECT ALL 31 + + - COUNT( * ) col2 FROM tab2 AS cor0 WHERE 47 IS NOT NULL
----
28

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7416
SELECT ALL 31 + + - COUNT ( * ) col2 FROM tab2 AS cor0 WHERE 47 IS NOT NULL
----
28

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7417
SELECT ALL - col0 / - CAST( NULL AS DECIMAL ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7417
SELECT ALL - col0 / - CAST ( NULL AS REAL ) FROM tab0
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT ( - col0 ), + col0 FROM tab2
----
-46
46
-64
64
-75
75

query I rowsort
SELECT ALL + + col2 + - + col2 + col1 * - col2 AS col2 FROM tab2 WHERE NOT - 73 BETWEEN - col2 + - ( - - ( + - col0 ) ) + + 12 AND NULL
----
-1173
-3080
-3886

query I rowsort
SELECT 60 * + + col0 * col2 FROM tab0 cor0
----
42300
52200
576180

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT NULL NOT BETWEEN col2 * + col0 AND col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7422
SELECT - 69 DIV + + col1 FROM tab2 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-7422
SELECT - 69 / + + col1 FROM tab2 AS cor0
----
-1
-1
0

query I rowsort
SELECT DISTINCT - - 49 FROM tab1 AS cor0
----
49

query III rowsort
SELECT ALL - 45, + 48 + + + 93 * 2 AS col1, - col0 AS col0 FROM tab0
----
9 values hashing to 67c0182dbc4bf090547228b4ff7981ef

onlyif mysql # aggregate syntax: 
query I rowsort label-7425
SELECT COUNT( * ) - - + 65 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
74

skipif mysql # not compatible
query I rowsort label-7425
SELECT COUNT ( * ) - - + 65 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
74

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7426
SELECT DISTINCT 22 DIV col1 + - CAST( + 25 AS SIGNED ) DIV - + col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-7426
SELECT DISTINCT 22 / col1 + - CAST ( + 25 AS INTEGER ) / - + col0 FROM tab2
----
0

query III rowsort
SELECT ALL * FROM tab1 WHERE ( NOT col2 <= + + col2 + - col2 * + ( ( col1 ) ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 48 FROM tab2, tab0 AS cor0
----
9 values hashing to 8b09cc2c99c2102036162d063e0e5a4b

query I rowsort
SELECT + - col1 + - + col0 FROM tab2 AS cor0
----
-141
-142
-97

query I rowsort
SELECT ALL - - 27 FROM tab0 AS cor0 WHERE NOT ( NULL ) = + 44
----

query III rowsort
SELECT * FROM tab2 WHERE + col1 < - 17
----

query I rowsort
SELECT col2 * + 31 AS col1 FROM tab1
----
1829
2108
2976

query I rowsort
SELECT ALL 98 * col1 AS col0 FROM tab0
----
2058
7938
98

onlyif mysql # aggregate syntax: 
query I rowsort label-7434
SELECT - - COUNT( * ) FROM tab0 WHERE + col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-7434
SELECT - - COUNT ( * ) FROM tab0 WHERE + col1 IS NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * col2 * + col2 + 54 col2 FROM tab2
----
-102346
-24280
-252246

query I rowsort
SELECT - col2 * 93 AS col1 FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7437
SELECT DISTINCT COUNT( * ) + - - COUNT( ALL + + CAST( col0 AS SIGNED ) ) * + COUNT( * ) AS col1, COUNT( * ) AS col2 FROM tab1
----
12
3

skipif mysql # not compatible
query II rowsort label-7437
SELECT DISTINCT COUNT ( * ) + - - COUNT ( ALL + + CAST ( col0 AS INTEGER ) ) * + COUNT ( * ) AS col1, COUNT ( * ) AS col2 FROM tab1
----
12
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7438
SELECT ALL col2 + + + ( + - CAST( NULL AS SIGNED ) ) * + ( ( + + 32 ) ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7438
SELECT ALL col2 + + + ( + - CAST ( NULL AS INTEGER ) ) * + ( ( + + 32 ) ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 56 NOT IN ( + ( - col1 ) + - col0 + - col1, col0 * + 41, + col0, - 25 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7440
SELECT ALL CAST( NULL AS SIGNED ) * - CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7440
SELECT ALL CAST ( NULL AS INTEGER ) * - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7441
SELECT DISTINCT + COUNT( - col2 ) * COUNT( * ) * COUNT( * ) FROM tab1
----
27

skipif mysql # not compatible
query I rowsort label-7441
SELECT DISTINCT + COUNT ( - col2 ) * COUNT ( * ) * COUNT ( * ) FROM tab1
----
27

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( + ( - 54 ) - + 30, col1 + + + col2 * 50, - 33, - - 57 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7443
SELECT DISTINCT ( SUM( - col1 ) ) AS col2, + COUNT( * ) FROM tab0 AS cor0 WHERE NOT 54 <= NULL
----
NULL
0

skipif mysql # not compatible
query II rowsort label-7443
SELECT DISTINCT ( SUM ( - col1 ) ) AS col2, + COUNT ( * ) FROM tab0 AS cor0 WHERE NOT 54 <= NULL
----
NULL
0

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT + 15 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7445
SELECT + + MIN( + col0 ) FROM tab1 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-7445
SELECT + + MIN ( + col0 ) FROM tab1 AS cor0
----
51

query I rowsort
SELECT ALL + + ( + 63 ) AS col2 FROM tab2 AS cor0
----
63
63
63

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 67 col2 FROM tab2 AS cor0
----
67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * + - 95 col2 FROM tab0
----
4465
9405
950

onlyif mysql # aggregate syntax: 
query I rowsort label-7449
SELECT COUNT( * ) * + 86 * COUNT( * ) FROM tab1
----
774

skipif mysql # not compatible
query I rowsort label-7449
SELECT COUNT ( * ) * + 86 * COUNT ( * ) FROM tab1
----
774

query II rowsort
SELECT + 39 AS col1, - col0 AS col0 FROM tab2
----
39
-46
39
-64
39
-75

onlyif mysql # DIV for integer division: 
query I rowsort label-7451
SELECT DISTINCT - 79 DIV col2 FROM tab2
----
-1
-3

skipif mysql # not compatible
query I rowsort label-7451
SELECT DISTINCT - 79 / col2 FROM tab2
----
-1
-3

query III rowsort
SELECT ALL * FROM tab2 WHERE ( - 24 NOT BETWEEN NULL AND - col1 * 0 * + col0 )
----

query I rowsort
SELECT ALL + 97 + - col2 AS col2 FROM tab1
----
1
29
38

onlyif mysql # aggregate syntax: 
query I rowsort label-7454
SELECT ALL + 84 + + MIN( ALL 84 ) * COUNT( * ) AS col0 FROM tab0 AS cor0
----
336

skipif mysql # not compatible
query I rowsort label-7454
SELECT ALL + 84 + + MIN ( ALL 84 ) * COUNT ( * ) AS col0 FROM tab0 AS cor0
----
336

onlyif mysql # aggregate syntax: 
query I rowsort label-7455
SELECT DISTINCT + COUNT( * ) * - + SUM( DISTINCT + + 16 ) + - ( - COUNT( * ) ) FROM tab1 AS cor0
----
-45

skipif mysql # not compatible
query I rowsort label-7455
SELECT DISTINCT + COUNT ( * ) * - + SUM ( DISTINCT + + 16 ) + - ( - COUNT ( * ) ) FROM tab1 AS cor0
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-7456
SELECT DISTINCT - COUNT( DISTINCT ( - 90 ) ) FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-7456
SELECT DISTINCT - COUNT ( DISTINCT ( - 90 ) ) FROM tab2 AS cor0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7457
SELECT ALL + - CAST( + col2 AS SIGNED ) FROM tab1 WHERE NULL >= NULL
----

skipif mysql # not compatible
query I rowsort label-7457
SELECT ALL + - CAST ( + col2 AS INTEGER ) FROM tab1 WHERE NULL >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7458
SELECT ALL + 74 + + COUNT( * ) * - + 17 - + MIN( - col2 ) AS col1 FROM tab1
----
119

skipif mysql # not compatible
query I rowsort label-7458
SELECT ALL + 74 + + COUNT ( * ) * - + 17 - + MIN ( - col2 ) AS col1 FROM tab1
----
119

query I rowsort
SELECT ALL 84 - - col1 + col2 + + col2 AS col0 FROM tab2 AS cor0
----
181
241
267

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 52 col2 FROM tab1 cor0
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-7461
SELECT COUNT( * ) - - 44 AS col2 FROM tab0 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-7461
SELECT COUNT ( * ) - - 44 AS col2 FROM tab0 AS cor0
----
47

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7462
SELECT - - COUNT( DISTINCT col2 ) - + - CAST( NULL AS DECIMAL ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7462
SELECT - - COUNT ( DISTINCT col2 ) - + - CAST ( NULL AS REAL ) AS col1 FROM tab2 AS cor0
----
NULL

query II rowsort
SELECT ALL + 12 - - col0 + col2 AS col1, col0 - + - col0 FROM tab1 AS cor0
----
156
170
159
102
171
182

query I rowsort
SELECT + col0 - + + 15 AS col2 FROM tab2 cor0
----
31
49
60

query I rowsort
SELECT 11 + - 7 FROM tab1
----
4
4
4

query II rowsort
SELECT ALL 29, 52 AS col1 FROM tab1
----
29
52
29
52
29
52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7467
SELECT DISTINCT + CAST( + + 86 AS SIGNED ) + col0 * - + col2 FROM tab1
----
-4810
-4929
-6102

skipif mysql # not compatible
query I rowsort label-7467
SELECT DISTINCT + CAST ( + + 86 AS INTEGER ) + col0 * - + col2 FROM tab1
----
-4810
-4929
-6102

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL <> + + col0 * - + col2 * col1 * col2 + - + ( + col0 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7469
SELECT CAST( NULL AS SIGNED ) * - - AVG ( ALL 11 ) * + + 81 - + COUNT( * ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-7469
SELECT CAST ( NULL AS INTEGER ) * - - AVG ( ALL 11 ) * + + 81 - + COUNT ( * ) FROM tab0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col0 * + col2 IS NULL
----

query I rowsort
SELECT DISTINCT + 63 * - + col0 AS col2 FROM tab1 AS cor0
----
-3213
-5355
-5733

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL NOT BETWEEN + + col2 AND NULL
----

query II rowsort
SELECT col2 * - - col0, - col1 AS col1 FROM tab2
----
1058
-51
2560
-77
4350
-67

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7474
SELECT - + MIN( DISTINCT + col1 ) DIV COUNT( * ) col0 FROM tab2 AS cor0
----
-17

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7474
SELECT - + MIN ( DISTINCT + col1 ) / COUNT ( * ) col0 FROM tab2 AS cor0
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-7475
SELECT - ( COUNT( * ) ) * - - COUNT( * ) - 82 FROM tab0 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-7475
SELECT - ( COUNT ( * ) ) * - - COUNT ( * ) - 82 FROM tab0 AS cor0
----
-91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7476
SELECT - COUNT( * ) DIV + ( - 93 ) col0 FROM tab2 cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7476
SELECT - COUNT ( * ) / + ( - 93 ) col0 FROM tab2 cor0
----
0

query I rowsort
SELECT + 69 * - col2 FROM tab1 AS cor0
----
-4071
-4692
-6624

query I rowsort
SELECT - 10 AS col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-10
-10
-10

query I rowsort
SELECT + col1 FROM tab2 WHERE NOT NULL > + col1 AND NULL IS NOT NULL
----

query II rowsort
SELECT + col0 AS col0, + col1 AS col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
51
14
85
5
91
47

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7481
SELECT ALL - COUNT( DISTINCT col0 ) DIV - 66 col0 FROM tab1
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7481
SELECT ALL - COUNT ( DISTINCT col0 ) / - 66 col0 FROM tab1
----
0

query III rowsort
SELECT ALL * FROM tab2 WHERE - + col2 NOT IN ( - col0, + col2, + col1, - col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-7483
SELECT DISTINCT + col1 DIV 26 FROM tab0
----
0
3

skipif mysql # not compatible
query I rowsort label-7483
SELECT DISTINCT + col1 / 26 FROM tab0
----
0
3

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - 49 + + 91 BETWEEN col1 AND + 27
----

query I rowsort
SELECT DISTINCT + 45 + - - col2 FROM tab2
----
103
68
85

onlyif mysql # aggregate syntax: 
query I rowsort label-7486
SELECT + MIN( ALL - 37 ) AS col1 FROM tab1
----
-37

skipif mysql # not compatible
query I rowsort label-7486
SELECT + MIN ( ALL - 37 ) AS col1 FROM tab1
----
-37

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7487
SELECT DISTINCT - COUNT( * ) DIV - COUNT( * ) + MIN( ALL - + 3 ) AS col1 FROM tab1
----
-2

skipif mysql # not compatible
query I rowsort label-7487
SELECT DISTINCT - COUNT ( * ) / - COUNT ( * ) + MIN ( ALL - + 3 ) AS col1 FROM tab1
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-7488
SELECT 58 * + + MAX( col0 ) FROM tab2
----
4350

skipif mysql # not compatible
query I rowsort label-7488
SELECT 58 * + + MAX ( col0 ) FROM tab2
----
4350

query I rowsort
SELECT ALL - 62 + - 63 FROM tab1
----
-125
-125
-125

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7490
SELECT col0 * - col0 * + CAST( - 74 AS SIGNED ) AS col1 FROM tab2
----
156584
303104
416250

skipif mysql # not compatible
query I rowsort label-7490
SELECT col0 * - col0 * + CAST ( - 74 AS INTEGER ) AS col1 FROM tab2
----
156584
303104
416250

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( col1 ) = - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - - 26 FROM ( tab0 cor0 CROSS JOIN tab2 AS cor1 )
----
26

query I rowsort
SELECT 12 + - - col1 * + + col0 AS col1 FROM tab1
----
4289
437
726

onlyif mysql # DIV for integer division: 
query I rowsort label-7494
SELECT DISTINCT - 8 + + col1 + - col0 DIV col2 AS col1 FROM tab2
----
41
58
68

skipif mysql # not compatible
query I rowsort label-7494
SELECT DISTINCT - 8 + + col1 + - col0 / col2 AS col1 FROM tab2
----
41
58
68

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7495
SELECT DISTINCT col2, - 30 FROM tab0 cor0 WHERE CAST( NULL AS SIGNED ) * + + 26 * ( col2 ) / 19 * 47 * - 83 <> NULL
----

skipif mysql # not compatible
query II rowsort label-7495
SELECT DISTINCT col2, - 30 FROM tab0 cor0 WHERE CAST ( NULL AS INTEGER ) * + + 26 * ( col2 ) / 19 * 47 * - 83 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7496
SELECT ALL - COUNT( * ) * ( 74 ) + + COUNT( * ) FROM tab1 AS cor0
----
-219

skipif mysql # not compatible
query I rowsort label-7496
SELECT ALL - COUNT ( * ) * ( 74 ) + + COUNT ( * ) FROM tab1 AS cor0
----
-219

onlyif mysql # aggregate syntax: 
query I rowsort label-7497
SELECT DISTINCT + - SUM( ALL - 3 ) - + COUNT( * ) FROM tab0 cor0
----
6

skipif mysql # not compatible
query I rowsort label-7497
SELECT DISTINCT + - SUM ( ALL - 3 ) - + COUNT ( * ) FROM tab0 cor0
----
6

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL > - 0
----

query I rowsort
SELECT - ( - 80 ) AS col2 FROM tab1 cor0
----
80
80
80

query III rowsort
SELECT ALL - 61 AS col2, + col0, col1 * - ( + + col1 ) AS col1 FROM tab2 AS cor0
----
9 values hashing to e24397b1e98f223342b50bfae8595a38

onlyif mysql # aggregate syntax: 
query I rowsort label-7501
SELECT ALL - SUM( - col1 ) - SUM( - 11 ) FROM tab2 AS cor0
----
228

skipif mysql # not compatible
query I rowsort label-7501
SELECT ALL - SUM ( - col1 ) - SUM ( - 11 ) FROM tab2 AS cor0
----
228

query I rowsort
SELECT + col0 * + + 62 FROM tab1 AS cor0 WHERE - col2 IS NOT NULL
----
3162
5270
5642

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7503
SELECT ALL - - COUNT( * ) + + CAST( NULL AS SIGNED ) AS col0 FROM tab0 WHERE NOT + col2 <= + 95
----
NULL

skipif mysql # not compatible
query I rowsort label-7503
SELECT ALL - - COUNT ( * ) + + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 WHERE NOT + col2 <= + 95
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * - - col1 col1 FROM tab2
----
-2601
-4489
-5929

query I rowsort
SELECT - col0 * + - col0 * + 95 FROM tab2
----
201020
389120
534375

query I rowsort
SELECT DISTINCT + - col0 + col1 AS col0 FROM tab1 WHERE NOT - + col1 IS NULL
----
-37
-44
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-7507
SELECT DISTINCT - COUNT( * ) * - 58 FROM tab1
----
174

skipif mysql # not compatible
query I rowsort label-7507
SELECT DISTINCT - COUNT ( * ) * - 58 FROM tab1
----
174

onlyif mysql # DIV for integer division: 
query I rowsort label-7508
SELECT - 44 DIV col1 col2 FROM tab0 AS cor0
----
-2
-44
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7508
SELECT - 44 / col1 col2 FROM tab0 AS cor0
----
-2
-44
0

query I rowsort
SELECT - col0 * - + 97 FROM tab0 AS cor0
----
1455
8439
9409

query II rowsort
SELECT - + col0, col2 AS col0 FROM tab0 AS cor0
----
-15
47
-87
10
-97
99

onlyif mysql # aggregate syntax: 
query I rowsort label-7511
SELECT ALL + + COUNT( col2 ) AS col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7511
SELECT ALL + + COUNT ( col2 ) AS col0 FROM tab0 AS cor0
----
3

query I rowsort
SELECT - col1 * ( - col1 ) FROM tab1 cor0
----
196
2209
25

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + col1 = + 3
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 33 col0 FROM tab0
----
-33
-33
-33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7515
SELECT DISTINCT - CAST( MIN( + col2 ) AS SIGNED ) FROM tab2
----
-23

skipif mysql # not compatible
query I rowsort label-7515
SELECT DISTINCT - CAST ( MIN ( + col2 ) AS INTEGER ) FROM tab2
----
-23

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - + col2 - + 26 = col0
----

query I rowsort
SELECT + col2 AS col2 FROM tab1 WHERE - col1 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7518
SELECT + SUM( ALL - + col2 ) AS col2 FROM tab1
----
-223

skipif mysql # not compatible
query I rowsort label-7518
SELECT + SUM ( ALL - + col2 ) AS col2 FROM tab1
----
-223

query I rowsort
SELECT - 84 / 81 AS col0 FROM tab0 WHERE 43 BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE NULL BETWEEN NULL AND - col1
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col2 - 8 BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 90 * + col0 IS NULL
----

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1 cor1 WHERE NOT ( NOT - - 67 IS NOT NULL )
----
54 values hashing to 33a0493e77bf8151676c948b0676d6b9

query I rowsort
SELECT 66 * - col0 FROM tab0
----
-5742
-6402
-990

onlyif mysql # DIV for integer division: 
query I rowsort label-7525
SELECT + col2 DIV - 55 FROM tab2
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-7525
SELECT + col2 / - 55 FROM tab2
----
-1
0
0

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + col1 - - - col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + - 6 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-6

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-7528
SELECT ALL - 96 / + col1 + CAST( NULL AS DECIMAL ) AS col2, - CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL
NULL
NULL
NULL
NULL
NULL

skipif mysql # not compatible
query II rowsort label-7528
SELECT ALL - 96 / + col1 + CAST ( NULL AS REAL ) AS col2, - CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL
NULL
NULL
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 64 AS col1 FROM tab2 AS cor0 WHERE + 9 BETWEEN + col0 + 32 AND NULL
----

query I rowsort
SELECT ALL - + col2 + - col2 * - col2 FROM tab0 AS cor0
----
2162
90
9702

query I rowsort
SELECT DISTINCT col2 - + col1 * + - 39 FROM tab1 cor0
----
1901
254
642

query I rowsort
SELECT col0 + - ( + col0 ) FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT - + col2 + + - ( + col1 ) * - + col1 FROM tab0 AS cor0
----
-98
431
6514

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2 col0, + 10 FROM tab2 AS cor0
----
23
10
40
10
58
10

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7535
SELECT + 79, - CAST( - + CAST( NULL AS SIGNED ) AS SIGNED ) AS col2 FROM tab0
----
79
NULL
79
NULL
79
NULL

skipif mysql # not compatible
query II rowsort label-7535
SELECT + 79, - CAST ( - + CAST ( NULL AS INTEGER ) AS INTEGER ) AS col2 FROM tab0
----
79
NULL
79
NULL
79
NULL

query I rowsort
SELECT ALL - + col0 AS col2 FROM tab1 WHERE NOT - + col2 * col1 IS NULL
----
-51
-85
-91

query II rowsort
SELECT DISTINCT col2, 64 AS col0 FROM tab2
----
23
64
40
64
58
64

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT 79 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7539
SELECT ALL COUNT( ALL + - 52 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-7539
SELECT ALL COUNT ( ALL + - 52 ) FROM tab1
----
3

query II rowsort
SELECT 55 AS col0, ( + - col0 ) FROM tab1
----
55
-51
55
-85
55
-91

query I rowsort
SELECT + 68 * + col0 FROM tab0
----
1020
5916
6596

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7542
SELECT CAST( NULL AS SIGNED ) * col0 / - 9 FROM tab1 WHERE NOT NULL BETWEEN NULL AND CAST( NULL AS SIGNED ) - + col1 + - col0 * col1 + - col2
----

skipif mysql # not compatible
query I rowsort label-7542
SELECT CAST ( NULL AS INTEGER ) * col0 / - 9 FROM tab1 WHERE NOT NULL BETWEEN NULL AND CAST ( NULL AS INTEGER ) - + col1 + - col0 * col1 + - col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7543
SELECT - + 82 DIV 14 * + 50 AS col2 FROM tab2 AS cor0
----
-250
-250
-250

skipif mysql # not compatible
query I rowsort label-7543
SELECT - + 82 / 14 * + 50 AS col2 FROM tab2 AS cor0
----
-250
-250
-250

query II rowsort
SELECT col0, + col2 FROM tab2 cor0
----
46
23
64
40
75
58

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7545
SELECT - col2 AS col1, + CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-23
NULL
-40
NULL
-58
NULL

skipif mysql # not compatible
query II rowsort label-7545
SELECT - col2 AS col1, + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-23
NULL
-40
NULL
-58
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7546
SELECT - 78 / - CAST( NULL AS DECIMAL ) / - ( + 2 ) * - - 46 + - - 5 + + 81 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7546
SELECT - 78 / - CAST ( NULL AS REAL ) / - ( + 2 ) * - - 46 + - - 5 + + 81 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7547
SELECT DISTINCT + - CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) - 42 - - + 10 * col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7547
SELECT DISTINCT + - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) - 42 - - + 10 * col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7548
SELECT + COUNT( * ) * + 79 * + MAX( - - col0 ) FROM tab0 AS cor0
----
22989

skipif mysql # not compatible
query I rowsort label-7548
SELECT + COUNT ( * ) * + 79 * + MAX ( - - col0 ) FROM tab0 AS cor0
----
22989

query I rowsort
SELECT - col1 * + ( - col2 ) - + 78 + - 34 AS col1 FROM tab1 AS cor0
----
1232
183
3084

query I rowsort
SELECT ALL - col1 FROM tab0 AS cor0 WHERE NOT + col1 * - col1 = NULL
----

query I rowsort
SELECT ALL + 3 * + col1 + - + 48 AS col1 FROM tab1 AS cor0
----
-33
-6
93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + col1 + 95 col0, - col2 FROM tab1 AS cor0
----
100
-59
109
-96
142
-68

query III rowsort
SELECT * FROM tab0 cor0 WHERE ( col2 ) >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7554
SELECT ALL * FROM tab0 WHERE + - col1 <> CAST( - 83 AS SIGNED ) + + col1 / + - 91
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-7554
SELECT ALL * FROM tab0 WHERE + - col1 <> CAST ( - 83 AS INTEGER ) + + col1 / + - 91
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7555
SELECT COUNT( * ) AS col2, COUNT( * ) DIV COUNT( + - col0 ) FROM tab2
----
3
1

skipif mysql # not compatible
query II rowsort label-7555
SELECT COUNT ( * ) AS col2, COUNT ( * ) / COUNT ( + - col0 ) FROM tab2
----
3
1

query II rowsort
SELECT + + 12 AS col1, - col2 * - col0 AS col2 FROM tab2 AS cor0
----
12
1058
12
2560
12
4350

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col2 - - 23 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL col1 * + 34 + col0 FROM tab1
----
1689
255
527

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE 66 NOT BETWEEN 31 AND ( - col2 - 9 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - 86 + + col1 AS col1 FROM tab1
----
-39
-72
-81

query I rowsort
SELECT 49 * col2 AS col1 FROM tab0
----
2303
4851
490

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( 3 ) < col0 + - col2 * col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - 65 AS col2 FROM tab1 WHERE NOT + 49 <= NULL
----

query I rowsort
SELECT 54 * - col0 FROM tab1
----
-2754
-4590
-4914

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT 63 > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7566
SELECT col1 * 18 - - 34 AS col0 FROM tab0 WHERE - 23 NOT BETWEEN col2 + + CAST( NULL AS SIGNED ) AND ( col1 )
----

skipif mysql # not compatible
query I rowsort label-7566
SELECT col1 * 18 - - 34 AS col0 FROM tab0 WHERE - 23 NOT BETWEEN col2 + + CAST ( NULL AS INTEGER ) AND ( col1 )
----

query I rowsort
SELECT ALL 40 * col2 FROM tab1
----
2360
2720
3840

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7568
SELECT + col1 * CAST( NULL AS SIGNED ) FROM tab2 WHERE - col1 > CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query I rowsort label-7568
SELECT + col1 * CAST ( NULL AS INTEGER ) FROM tab2 WHERE - col1 > CAST ( NULL AS REAL )
----

query I rowsort
SELECT - col0 + 51 FROM tab0
----
-36
-46
36

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - 63 + + col1 NOT IN ( 18 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7571
SELECT * FROM tab2 WHERE col1 NOT IN ( CAST( + 80 AS SIGNED ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-7571
SELECT * FROM tab2 WHERE col1 NOT IN ( CAST ( + 80 AS INTEGER ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7572
SELECT + COUNT( * ) - CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7572
SELECT + COUNT ( * ) - CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL <= - col0
----

query I rowsort
SELECT DISTINCT + 78 AS col1 FROM tab0 WHERE NULL <= - 11
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7575
SELECT DISTINCT CAST( NULL AS SIGNED ) - col2 * + col0 AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7575
SELECT DISTINCT CAST ( NULL AS INTEGER ) - col2 * + col0 AS col2 FROM tab1
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE - col0 BETWEEN ( NULL ) AND - 92
----

query I rowsort
SELECT DISTINCT - 21 - 57 AS col0 FROM tab2
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-7578
SELECT DISTINCT + MAX( ALL + col0 ) AS col2 FROM tab1
----
91

skipif mysql # not compatible
query I rowsort label-7578
SELECT DISTINCT + MAX ( ALL + col0 ) AS col2 FROM tab1
----
91

query I rowsort
SELECT 24 * col0 FROM tab2 WHERE col1 / col0 IN ( ( - col0 ) )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7580
SELECT COUNT( * ) * + 91 + + CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7580
SELECT COUNT ( * ) * + 91 + + CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7581
SELECT col1 * col2 - + col2 DIV + 96 AS col0 FROM tab2 WHERE col2 IS NOT NULL
----
1173
3080
3886

skipif mysql # not compatible
query I rowsort label-7581
SELECT col1 * col2 - + col2 / + 96 AS col0 FROM tab2 WHERE col2 IS NOT NULL
----
1173
3080
3886

onlyif mysql # aggregate syntax: 
query I rowsort label-7582
SELECT 63 + COUNT( * ) FROM tab1
----
66

skipif mysql # not compatible
query I rowsort label-7582
SELECT 63 + COUNT ( * ) FROM tab1
----
66

query I rowsort
SELECT - ( 32 ) * 97 AS col2 FROM tab2 AS cor0 WHERE NOT NULL = col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7584
SELECT - ( + CAST( NULL AS SIGNED ) ) + + col2 col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7584
SELECT - ( + CAST ( NULL AS INTEGER ) ) + + col2 col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col1 FROM tab1 WHERE NOT + col0 NOT IN ( + ( ( 27 ) ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7586
SELECT COUNT( 28 ) + - COUNT( * ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-7586
SELECT COUNT ( 28 ) + - COUNT ( * ) FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7587
SELECT + COUNT( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2
----
9

skipif mysql # not compatible
query I rowsort label-7587
SELECT + COUNT ( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-7588
SELECT DISTINCT + 56 * + COUNT( * ) + + COUNT( * ) AS col2 FROM tab2
----
171

skipif mysql # not compatible
query I rowsort label-7588
SELECT DISTINCT + 56 * + COUNT ( * ) + + COUNT ( * ) AS col2 FROM tab2
----
171

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL IN ( 65 * 18 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7590
SELECT DISTINCT + ( MAX( ALL ( 89 ) ) ) FROM tab2 AS cor0
----
89

skipif mysql # not compatible
query I rowsort label-7590
SELECT DISTINCT + ( MAX ( ALL ( 89 ) ) ) FROM tab2 AS cor0
----
89

query I rowsort
SELECT 8 * col1 AS col2 FROM tab1 AS cor0 WHERE ( + col0 + 9 ) IN ( - col1 * col2 )
----

query I rowsort
SELECT + col2 AS col2 FROM tab2 AS cor0 WHERE - col1 - - col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7593
SELECT + 84 * - SUM( ALL col2 ) AS col0 FROM tab0 AS cor0
----
-13104

skipif mysql # not compatible
query I rowsort label-7593
SELECT + 84 * - SUM ( ALL col2 ) AS col0 FROM tab0 AS cor0
----
-13104

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN NULL AND - 25
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7595
SELECT + 89 DIV - MAX( DISTINCT + col0 ) AS col2 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7595
SELECT + 89 / - MAX ( DISTINCT + col0 ) AS col2 FROM tab0 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7596
SELECT DISTINCT - + SUM( DISTINCT - ( col0 ) ) FROM tab1 AS cor0
----
227

skipif mysql # not compatible
query I rowsort label-7596
SELECT DISTINCT - + SUM ( DISTINCT - ( col0 ) ) FROM tab1 AS cor0
----
227

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN + col0 * col1 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7598
SELECT + COUNT( * ) * + 65 FROM tab2 AS cor0
----
195

skipif mysql # not compatible
query I rowsort label-7598
SELECT + COUNT ( * ) * + 65 FROM tab2 AS cor0
----
195

query I rowsort
SELECT + ( 80 ) FROM tab0 AS cor0
----
80
80
80

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 39 > - 37 + 85
----

query I rowsort
SELECT - 78 * ( 33 + col0 * col2 ) AS col2 FROM tab2 AS cor0
----
-202254
-341874
-85098

query I rowsort
SELECT DISTINCT 71 FROM tab2 WHERE NOT 81 IS NULL
----
71

query I rowsort
SELECT + col1 * 28 * + col0 FROM tab2
----
137984
140700
65688

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7604
SELECT DISTINCT * FROM tab2 WHERE NOT - CAST( NULL AS SIGNED ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-7604
SELECT DISTINCT * FROM tab2 WHERE NOT - CAST ( NULL AS INTEGER ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 17 FROM tab1 WHERE col0 + - 67 / 45 BETWEEN 39 AND NULL
----

query I rowsort
SELECT DISTINCT - col1 AS col0 FROM tab1 WHERE NOT ( + col1 ) = + col1 / - col2
----
-14
-47
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-7607
SELECT ALL 31 + - col1 DIV - 18 FROM tab0
----
31
32
35

skipif mysql # not compatible
query I rowsort label-7607
SELECT ALL 31 + - col1 / - 18 FROM tab0
----
31
32
35

onlyif mysql # aggregate syntax: 
query I rowsort label-7608
SELECT COUNT( * ) AS col0 FROM tab2 WHERE - col0 IN ( col0 )
----
0

skipif mysql # not compatible
query I rowsort label-7608
SELECT COUNT ( * ) AS col0 FROM tab2 WHERE - col0 IN ( col0 )
----
0

query I rowsort
SELECT 66 AS col0 FROM tab2 WHERE - 42 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7610
SELECT ALL ( 42 ) + + MIN( ALL col0 ) FROM tab1
----
93

skipif mysql # not compatible
query I rowsort label-7610
SELECT ALL ( 42 ) + + MIN ( ALL col0 ) FROM tab1
----
93

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col1 + 26 < NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col0 / col2 + col1 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7613
SELECT - + 15 DIV - col1 + col1 AS col2 FROM tab2 AS cor0
----
51
67
77

skipif mysql # not compatible
query I rowsort label-7613
SELECT - + 15 / - col1 + col1 AS col2 FROM tab2 AS cor0
----
51
67
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 17 col1 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 490d008f3fb5b70d3971cfc6d84503f4

query III rowsort
SELECT * FROM tab1 WHERE ( NULL BETWEEN NULL AND - col0 * 46 + col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 83 col0 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to d55748f39f403ec273099c0d87b0bfbb

query I rowsort
SELECT 73 * - 90 AS col1 FROM tab2
----
-6570
-6570
-6570

query I rowsort
SELECT col1 * + 59 AS col2 FROM tab2
----
3009
3953
4543

query II rowsort
SELECT - + 57 AS col0, col2 * + 42 AS col1 FROM tab1 AS cor0
----
-57
2478
-57
2856
-57
4032

onlyif mysql # DIV for integer division: 
query I rowsort label-7620
SELECT + 84 DIV - - col1 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-7620
SELECT + 84 / - - col1 FROM tab2 AS cor0
----
1
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7621
SELECT DISTINCT - col1 * - CAST( col0 AS SIGNED ) FROM tab0 AS cor0
----
1215
1827
97

skipif mysql # not compatible
query I rowsort label-7621
SELECT DISTINCT - col1 * - CAST ( col0 AS INTEGER ) FROM tab0 AS cor0
----
1215
1827
97

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT ( - col0 ) IN ( + col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT col0 * col0 + - ( + 50 ) FROM tab0 AS cor0
----
175
7519
9359

query II rowsort
SELECT ALL - col2 AS col0, 67 FROM tab1 AS cor0
----
-59
67
-68
67
-96
67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 col2, + ( - 97 ) FROM tab0 AS cor0
----
15
-97
87
-97
97
-97

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + 16 <> NULL
----

query II rowsort
SELECT + col0 AS col1, - 12 AS col2 FROM tab1 AS cor0
----
51
-12
85
-12
91
-12

query I rowsort
SELECT DISTINCT + - 76 AS col2 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
-76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7629
SELECT - ( - CAST( NULL AS SIGNED ) ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7629
SELECT - ( - CAST ( NULL AS INTEGER ) ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7630
SELECT + ( COUNT( * ) ) AS col1 FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-7630
SELECT + ( COUNT ( * ) ) AS col1 FROM tab2 cor0
----
3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( - col1 ) >= NULL
----

query I rowsort
SELECT DISTINCT 44 * - - 83 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col0 * + + ( 71 ) FROM tab1
----
-3621
-6035
-6461

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7634
SELECT DISTINCT CAST( NULL AS SIGNED ) * 48 + - 84 FROM tab0 WHERE NOT + col1 <= ( + - col0 + col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7634
SELECT DISTINCT CAST ( NULL AS INTEGER ) * 48 + - 84 FROM tab0 WHERE NOT + col1 <= ( + - col0 + col2 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7635
SELECT ALL - SUM( + 9 ) AS col1 FROM tab0 WHERE NULL NOT BETWEEN NULL AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7635
SELECT ALL - SUM ( + 9 ) AS col1 FROM tab0 WHERE NULL NOT BETWEEN NULL AND NULL
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT + col1 * + col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT 42 * + 48 AS col2, + col2 * - 4 AS col0 FROM tab1
----
2016
-236
2016
-272
2016
-384

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( 3 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7639
SELECT 49 * COUNT( * ) AS col2 FROM tab0
----
147

skipif mysql # not compatible
query I rowsort label-7639
SELECT 49 * COUNT ( * ) AS col2 FROM tab0
----
147

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7640
SELECT 14 AS col2 FROM tab0 WHERE NOT CAST( - - 9 AS DECIMAL ) + 57 IS NULL
----
14
14
14

skipif mysql # not compatible
query I rowsort label-7640
SELECT 14 AS col2 FROM tab0 WHERE NOT CAST ( - - 9 AS REAL ) + 57 IS NULL
----
14
14
14

onlyif mysql # aggregate syntax: 
query I rowsort label-7641
SELECT DISTINCT COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NOT ( - col2 * col0 - col0 * col1 ) IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-7641
SELECT DISTINCT COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NOT ( - col2 * col0 - col0 * col1 ) IS NULL
----
3

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col2 + col2 + - col2 + - col1 * + col2 * col1 IS NOT NULL
----

query I rowsort
SELECT ALL 87 FROM tab1 AS cor0 WHERE NOT - 25 + - + 42 IS NULL
----
87
87
87

query III rowsort
SELECT * FROM tab2 WHERE NOT col0 BETWEEN col1 AND NULL
----
46
51
23
64
77
40

query I rowsort
SELECT - col1 FROM tab0 WHERE NOT - col2 + - - 35 IS NULL
----
-1
-21
-81

query I rowsort
SELECT DISTINCT col2 + + 84 AS col0 FROM tab2
----
107
124
142

query I rowsort
SELECT ALL 79 + - 97 + + + 9 FROM tab1
----
-9
-9
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * + - col1 * + col0 + - 69 col0 FROM tab1 AS cor0
----
-25144
-290905
-68613

onlyif mysql # aggregate syntax: 
query I rowsort label-7649
SELECT - - COUNT( + 90 ) + + 72 AS col2 FROM tab1 AS cor0 WHERE 98 < - col2 + + col2
----
72

skipif mysql # not compatible
query I rowsort label-7649
SELECT - - COUNT ( + 90 ) + + 72 AS col2 FROM tab1 AS cor0 WHERE 98 < - col2 + + col2
----
72

query I rowsort
SELECT - col1 + 47 FROM tab0 AS cor0
----
-34
26
46

query I rowsort
SELECT col0 FROM tab2 AS cor0 WHERE ( NULL ) NOT BETWEEN NULL AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * - - 52 * col1 col0 FROM tab2 AS cor0
----
-121992
-256256
-261300

query I rowsort
SELECT ALL + + 73 * col1 + col1 FROM tab2 AS cor0
----
3774
4958
5698

query I rowsort
SELECT DISTINCT - ( ( - ( + col0 ) ) ) FROM tab1 cor0
----
51
85
91

query I rowsort
SELECT col2 / + col1 AS col1 FROM tab2 AS cor0 WHERE col1 * col2 BETWEEN - ( col2 ) AND 95
----

query I rowsort
SELECT + + col0 + 49 FROM tab2 AS cor0
----
113
124
95

onlyif mysql # aggregate syntax: 
query II rowsort label-7657
SELECT DISTINCT + COUNT( * ), COUNT( * ) FROM tab0
----
3
3

skipif mysql # not compatible
query II rowsort label-7657
SELECT DISTINCT + COUNT ( * ), COUNT ( * ) FROM tab0
----
3
3

query I rowsort
SELECT DISTINCT 84 * 89 - - col1 FROM tab0 WHERE NOT ( + ( - 70 ) BETWEEN NULL AND + col1 * col2 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7659
SELECT - 99 * + CAST( + + COUNT( * ) AS SIGNED ) AS col2 FROM tab0
----
-297

skipif mysql # not compatible
query I rowsort label-7659
SELECT - 99 * + CAST ( + + COUNT ( * ) AS INTEGER ) AS col2 FROM tab0
----
-297

query I rowsort
SELECT - ( + col2 ) AS col2 FROM tab0 WHERE - col0 + + col2 IS NOT NULL
----
-10
-47
-99

query III rowsort
SELECT * FROM tab0 WHERE ( ( + 25 ) < ( 6 ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7662
SELECT + CAST( NULL AS SIGNED ) * + col2 * + 94 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7662
SELECT + CAST ( NULL AS INTEGER ) * + col2 * + 94 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7663
SELECT - COUNT( * ) DIV + 52 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-7663
SELECT - COUNT ( * ) / + 52 FROM tab0
----
0

query I rowsort
SELECT + 33 * + - ( 50 ) AS col2 FROM tab1
----
-1650
-1650
-1650

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7665
SELECT ALL ( col1 ) * + + 54 * + - 56 / + col1 / - CAST( NULL AS SIGNED ) + ( col2 ) + - col0 * ( col1 * col2 ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7665
SELECT ALL ( col1 ) * + + 54 * + - 56 / + col1 / - CAST ( NULL AS INTEGER ) + ( col2 ) + - col0 * ( col1 * col2 ) FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - 96 / - 17 + - + 90 >= col1 + - col0 + + 32
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - 4 - + + col0 + 68 FROM tab1 AS cor0
----
-21
-27
13

query I rowsort
SELECT - - 89 - + 18 AS col2 FROM tab2 AS cor0
----
71
71
71

query I rowsort
SELECT DISTINCT 7 - - col2 AS col2 FROM tab0 cor0
----
106
17
54

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7670
SELECT ALL - CAST( + CAST( NULL AS DECIMAL ) AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7670
SELECT ALL - CAST ( + CAST ( NULL AS REAL ) AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 11 AS col1 FROM tab1 cor0
----
-11

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col2 / - col1 IN ( + + 50 / - col0 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL > ( - col1 )
----

query I rowsort
SELECT DISTINCT - col0 AS col2 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col0 * col1 NOT BETWEEN - col0 AND NULL
----

query II rowsort
SELECT col1 AS col0, - col1 * + - 4 AS col2 FROM tab1
----
14
56
47
188
5
20

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + col0 NOT BETWEEN + 31 AND ( NULL )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE - col0 * col0 + + - 37 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL BETWEEN NULL AND ( - col1 + 19 + - 30 - - + col0 * - - 24 * - col2 )
----

query I rowsort
SELECT - col1 * 72 FROM tab1
----
-1008
-3384
-360

query III rowsort
SELECT * FROM tab1 WHERE NOT + + col0 * - col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-7682
SELECT DISTINCT - MIN( ALL - col1 ) AS col2 FROM tab2
----
77

skipif mysql # not compatible
query I rowsort label-7682
SELECT DISTINCT - MIN ( ALL - col1 ) AS col2 FROM tab2
----
77

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT 15 BETWEEN + + 2 AND + + col0
----

query II rowsort
SELECT - col2 AS col1, - col0 + - + ( - col0 ) + + col0 FROM tab1
----
-59
85
-68
91
-96
51

query I rowsort
SELECT ALL + col2 AS col0 FROM tab2 WHERE col2 * col2 NOT IN ( - col0 )
----
23
40
58

query I rowsort
SELECT ALL - col1 * 3 * + col0 AS col1 FROM tab0 cor0
----
-291
-3645
-5481

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7687
SELECT + + COUNT( * ) + + 63 DIV - 82 - 61 + - COUNT( * ) * + + 11 AS col1 FROM tab2 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-7687
SELECT + + COUNT ( * ) + + 63 / - 82 - 61 + - COUNT ( * ) * + + 11 AS col1 FROM tab2 AS cor0
----
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7688
SELECT + 30 * CAST( NULL AS SIGNED ) * - - col0 - - + col0 + - - 56 col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7688
SELECT + 30 * CAST ( NULL AS INTEGER ) * - - col0 - - + col0 + - - 56 col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7689
SELECT - MAX( DISTINCT - 63 ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
63

skipif mysql # not compatible
query I rowsort label-7689
SELECT - MAX ( DISTINCT - 63 ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
63

onlyif mysql # DIV for integer division: 
query I rowsort label-7690
SELECT ALL - + 73 DIV 26 - 81 FROM tab0 cor0
----
-83
-83
-83

skipif mysql # not compatible
query I rowsort label-7690
SELECT ALL - + 73 / 26 - 81 FROM tab0 cor0
----
-83
-83
-83

query I rowsort
SELECT ALL + col1 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
1
21
81

query I rowsort
SELECT + - col0 AS col2 FROM tab2 AS cor0 WHERE ( NULL ) >= NULL
----

query I rowsort
SELECT - 30 * - 39 * + + 12 AS col1 FROM tab0 AS cor0
----
14040
14040
14040

onlyif mysql # aggregate syntax: 
query I rowsort label-7694
SELECT + + ( + COUNT( * ) ) - + - 7 AS col2 FROM tab0 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-7694
SELECT + + ( + COUNT ( * ) ) - + - 7 AS col2 FROM tab0 AS cor0
----
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7695
SELECT col0 - CAST( NULL AS SIGNED ) * col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7695
SELECT col0 - CAST ( NULL AS INTEGER ) * col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7696
SELECT DISTINCT + COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL < ( + col2 * col2 - 43 * - - 67 )
----
0

skipif mysql # not compatible
query I rowsort label-7696
SELECT DISTINCT + COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL < ( + col2 * col2 - 43 * - - 67 )
----
0

query III rowsort
SELECT * FROM tab2 WHERE col0 + - - col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7698
SELECT DISTINCT - SUM( + col0 ) AS col1 FROM tab1
----
-227

skipif mysql # not compatible
query I rowsort label-7698
SELECT DISTINCT - SUM ( + col0 ) AS col1 FROM tab1
----
-227

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL <= - 25 AND - col0 <= NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7700
SELECT ALL - COUNT( * ) DIV COUNT( * ) DIV - COUNT( * ) * - 69 AS col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-7700
SELECT ALL - COUNT ( * ) / COUNT ( * ) / - COUNT ( * ) * - 69 AS col1 FROM tab0
----
0

query II rowsort
SELECT - col0, col1 * col2 AS col1 FROM tab0 AS cor0
----
-15
3807
-87
210
-97
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7702
SELECT DISTINCT + col1 - + + CAST( col0 AS SIGNED ) FROM tab2 AS cor0
----
-8
13
5

skipif mysql # not compatible
query I rowsort label-7702
SELECT DISTINCT + col1 - + + CAST ( col0 AS INTEGER ) FROM tab2 AS cor0
----
-8
13
5

query I rowsort
SELECT DISTINCT col0 FROM tab2 AS cor0 WHERE + col2 >= + col2
----
46
64
75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7704
SELECT - + COUNT( * ) DIV COUNT( * ) FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-7704
SELECT - + COUNT ( * ) / COUNT ( * ) FROM tab2 AS cor0
----
-1

query II rowsort
SELECT ALL + + col0 AS col0, + col1 AS col0 FROM tab0 AS cor0
----
15
81
87
21
97
1

query II rowsort
SELECT - 40, 10 + - 29 AS col1 FROM tab1 AS cor0
----
-40
-19
-40
-19
-40
-19

query II rowsort
SELECT DISTINCT - 50, + col0 FROM tab1 AS cor0
----
-50
51
-50
85
-50
91

query II rowsort
SELECT - col1 AS col1, 22 FROM tab0 AS cor0
----
-1
22
-21
22
-81
22

query II rowsort
SELECT DISTINCT + + col1 AS col1, col1 * - col2 * col0 FROM tab0 AS cor0
----
1
-9603
21
-18270
81
-57105

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7710
SELECT CAST( + ( 89 ) AS SIGNED ) col0 FROM tab1 AS cor0
----
89
89
89

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7710
SELECT CAST ( + ( 89 ) AS INTEGER ) col0 FROM tab1 AS cor0
----
89
89
89

query I rowsort
SELECT + col0 AS col0 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col1 * - col1 NOT IN ( - + 89, ( + 94 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7713
SELECT ALL + - COUNT( - col1 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7713
SELECT ALL + - COUNT ( - col1 ) FROM tab1 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-7714
SELECT ALL + - COUNT( * ) FROM tab2 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-7714
SELECT ALL + - COUNT ( * ) FROM tab2 WHERE NULL IS NOT NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7715
SELECT DISTINCT CAST( NULL AS SIGNED ) * + CAST( - 49 AS SIGNED ) + ( - col1 ) + + col0 / + 44 * + CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7715
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + CAST ( - 49 AS INTEGER ) + ( - col1 ) + + col0 / + 44 * + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7716
SELECT + COUNT( DISTINCT - col1 ) AS col0 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-7716
SELECT + COUNT ( DISTINCT - col1 ) AS col0 FROM tab0
----
3

query III rowsort
SELECT * FROM tab0 WHERE NOT - col2 BETWEEN - col2 / + col1 AND NULL
----
15
81
47
87
21
10

query I rowsort
SELECT + ( - + 19 ) AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 339c9d62143bf2f7566b89a1b56eeeb4

query II rowsort
SELECT - + col0 * + 93, col0 AS col2 FROM tab2 AS cor0
----
-4278
46
-5952
64
-6975
75

query I rowsort
SELECT - + col1 * 55 * - 48 FROM tab0 AS cor0
----
213840
2640
55440

onlyif mysql # aggregate syntax: 
query II rowsort label-7721
SELECT 69 + + - COUNT( * ) * - 59 AS col1, + MIN( DISTINCT + col2 ) * + 87 * + - 98 FROM tab2
----
246
-196098

skipif mysql # not compatible
query II rowsort label-7721
SELECT 69 + + - COUNT ( * ) * - 59 AS col1, + MIN ( DISTINCT + col2 ) * + 87 * + - 98 FROM tab2
----
246
-196098

onlyif mysql # aggregate syntax: 
query I rowsort label-7722
SELECT + 54 + + + COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
63

skipif mysql # not compatible
query I rowsort label-7722
SELECT + 54 + + + COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
63

query II rowsort
SELECT 20 * + col1 + 3 AS col0, 51 FROM tab0
----
1623
51
23
51
423
51

onlyif mysql # aggregate syntax: 
query I rowsort label-7724
SELECT SUM( DISTINCT - + col1 ) + MIN( - 81 ) AS col2 FROM tab1 AS cor0
----
-147

skipif mysql # not compatible
query I rowsort label-7724
SELECT SUM ( DISTINCT - + col1 ) + MIN ( - 81 ) AS col2 FROM tab1 AS cor0
----
-147

query I rowsort
SELECT ALL - - col2 + + - 18 + col0 AS col2 FROM tab0 AS cor0
----
178
44
79

onlyif mysql # aggregate syntax: 
query I rowsort label-7726
SELECT + MAX( + - col0 ) + - COUNT( * ) - - COUNT( * ) AS col2 FROM tab2 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-7726
SELECT + MAX ( + - col0 ) + - COUNT ( * ) - - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-46

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 40 + + col1 col1 FROM tab2 AS cor0
----
11
27
37

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col2 NOT IN ( - col2 )
----

query I rowsort
SELECT 92 * + col1 * + col1 AS col0 FROM tab0
----
40572
603612
92

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7730
SELECT 2 FROM tab0 WHERE + - CAST( + col0 AS DECIMAL ) <> ( + col2 * - col0 - - col2 - + - 16 + col1 * - 97 )
----
2
2
2

skipif mysql # not compatible
query I rowsort label-7730
SELECT 2 FROM tab0 WHERE + - CAST ( + col0 AS REAL ) <> ( + col2 * - col0 - - col2 - + - 16 + col1 * - 97 )
----
2
2
2

onlyif mysql # aggregate syntax: 
query II rowsort label-7731
SELECT MIN( DISTINCT col0 ) AS col2, - 61 FROM tab1
----
51
-61

skipif mysql # not compatible
query II rowsort label-7731
SELECT MIN ( DISTINCT col0 ) AS col2, - 61 FROM tab1
----
51
-61

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL < - col2 + col2 + + col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7733
SELECT + 11 DIV - ( - + col1 ) * - 5 - - col2 AS col0 FROM tab2
----
23
40
58

skipif mysql # not compatible
query I rowsort label-7733
SELECT + 11 / - ( - + col1 ) * - 5 - - col2 AS col0 FROM tab2
----
23
40
58

query I rowsort
SELECT DISTINCT col2 + + 5 AS col2 FROM tab2
----
28
45
63

query I rowsort
SELECT ALL - col0 * col0 * + 22 AS col0 FROM tab0
----
-166518
-206998
-4950

onlyif mysql # aggregate syntax: 
query I rowsort label-7736
SELECT DISTINCT + SUM( - - 49 ) + 64 AS col2 FROM tab2
----
211

skipif mysql # not compatible
query I rowsort label-7736
SELECT DISTINCT + SUM ( - - 49 ) + 64 AS col2 FROM tab2
----
211

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7737
SELECT ALL + + CAST( CAST( - - 24 AS SIGNED ) AS SIGNED ) FROM tab0 AS cor0
----
24
24
24

skipif mysql # not compatible
query I rowsort label-7737
SELECT ALL + + CAST ( CAST ( - - 24 AS INTEGER ) AS INTEGER ) FROM tab0 AS cor0
----
24
24
24

query II rowsort
SELECT ALL + col1 * + + 75, 47 AS col2 FROM tab0 AS cor0 WHERE NOT 41 IS NULL
----
1575
47
6075
47
75
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7739
SELECT ALL - - col1 - - col1 AS col1 FROM tab0 WHERE NOT + CAST( - + col2 AS SIGNED ) + 85 <> - + col0 - 14
----

skipif mysql # not compatible
query I rowsort label-7739
SELECT ALL - - col1 - - col1 AS col1 FROM tab0 WHERE NOT + CAST ( - + col2 AS INTEGER ) + 85 <> - + col0 - 14
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7740
SELECT ALL + + COUNT( * ) AS col2 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-7740
SELECT ALL + + COUNT ( * ) AS col2 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-7741
SELECT - COUNT( ALL col1 ) AS col1 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-7741
SELECT - COUNT ( ALL col1 ) AS col1 FROM tab1
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-7742
SELECT + 60 AS col2, COUNT( - - 84 ) FROM tab2
----
60
3

skipif mysql # not compatible
query II rowsort label-7742
SELECT + 60 AS col2, COUNT ( - - 84 ) FROM tab2
----
60
3

query I rowsort
SELECT col0 * col1 * + col0 * + 77 FROM tab0
----
12239073
1403325
724493

query II rowsort
SELECT DISTINCT + + 17, + col2 FROM tab2 AS cor0
----
17
23
17
40
17
58

onlyif mysql # aggregate syntax: 
query I rowsort label-7745
SELECT DISTINCT - MAX( DISTINCT 13 ) AS col2 FROM tab0 AS cor0
----
-13

skipif mysql # not compatible
query I rowsort label-7745
SELECT DISTINCT - MAX ( DISTINCT 13 ) AS col2 FROM tab0 AS cor0
----
-13

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 AS col2, + col1 col1 FROM tab1 AS cor0
----
51
14
85
5
91
47

query I rowsort
SELECT DISTINCT - col1 + + 62 * - + 19 * - 62 * - - col1 FROM tab0
----
1533735
5915835
73035

query III rowsort
SELECT ALL * FROM tab2 WHERE col1 / 96 NOT IN ( - + 13 - col2 + + + 94 - 64 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-7749
SELECT COUNT( * ) FROM tab0 WHERE NOT NULL >= + + col1 * - col0
----
0

skipif mysql # not compatible
query I rowsort label-7749
SELECT COUNT ( * ) FROM tab0 WHERE NOT NULL >= + + col1 * - col0
----
0

query I rowsort
SELECT ALL + col2 + - col0 * - col0 FROM tab2
----
2139
4136
5683

onlyif mysql # aggregate syntax: 
query I rowsort label-7751
SELECT DISTINCT 85 * + 48 + + + COUNT( * ) AS col0 FROM tab1
----
4083

skipif mysql # not compatible
query I rowsort label-7751
SELECT DISTINCT 85 * + 48 + + + COUNT ( * ) AS col0 FROM tab1
----
4083

query I rowsort
SELECT ALL col2 + - + col1 + 42 FROM tab2
----
14
33
5

query I rowsort
SELECT DISTINCT + 67 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7754
SELECT DISTINCT - - CAST( NULL AS DECIMAL ) AS col2 FROM tab0 cor0 WHERE NOT + col0 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-7754
SELECT DISTINCT - - CAST ( NULL AS REAL ) AS col2 FROM tab0 cor0 WHERE NOT + col0 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7755
SELECT - - CAST( NULL AS SIGNED ) * - 50 + - MIN( DISTINCT + 94 ) AS col0 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7755
SELECT - - CAST ( NULL AS INTEGER ) * - 50 + - MIN ( DISTINCT + 94 ) AS col0 FROM tab0 cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7756
SELECT 13 + + + COUNT( * ) FROM tab0 AS cor0
----
16

skipif mysql # not compatible
query I rowsort label-7756
SELECT 13 + + + COUNT ( * ) FROM tab0 AS cor0
----
16

query III rowsort
SELECT * FROM tab1 WHERE - col2 - + col0 / + col1 > NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * + ( + - 71 ) + + - col1 * + 21 col1 FROM tab2
----
-4692
-6164
-7084

query I rowsort
SELECT + col1 - - col1 + + col0 FROM tab1 AS cor0
----
185
79
95

query I rowsort
SELECT DISTINCT + ( - col2 ) - - - col0 + col1 AS col1 FROM tab0 AS cor0
----
-195
-76
19

query I rowsort
SELECT DISTINCT - col0 + + col1 + + + col2 FROM tab0 AS cor0
----
-56
113
3

query I rowsort
SELECT ALL + col0 - + 8 AS col2 FROM tab2 AS cor0
----
38
56
67

query I rowsort
SELECT DISTINCT 95 * + col1 FROM tab2 AS cor0
----
4845
6365
7315

query II rowsort
SELECT DISTINCT + col0 * 76 * + col1 AS col0, col0 AS col0 FROM tab1 AS cor0
----
32300
85
325052
91
54264
51

query I rowsort
SELECT + 81 * - col2 + - + ( + col0 ) AS col2 FROM tab2 AS cor0
----
-1909
-3304
-4773

query I rowsort
SELECT - 3 + + 85 + - 68 * 40 FROM tab2 AS cor0
----
-2638
-2638
-2638

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + - 85 * col2 + ( col1 ) - + 90, col1 - - col0 col2 FROM tab1 AS cor0
----
-5100
90
-5823
138
-8236
65

query I rowsort
SELECT + 75 + 22 * - - col0 FROM tab0 cor0
----
1989
2209
405

onlyif mysql # aggregate syntax: 
query I rowsort label-7769
SELECT DISTINCT 18 * - - COUNT( * ) * - + 62 FROM tab0
----
-3348

skipif mysql # not compatible
query I rowsort label-7769
SELECT DISTINCT 18 * - - COUNT ( * ) * - + 62 FROM tab0
----
-3348

query I rowsort
SELECT + 97 + + + 68 FROM tab2
----
165
165
165

onlyif mysql # DIV for integer division: 
query I rowsort label-7771
SELECT DISTINCT 84 * col1 DIV col0 FROM tab2
----
101
75
93

skipif mysql # not compatible
query I rowsort label-7771
SELECT DISTINCT 84 * col1 / col0 FROM tab2
----
101
75
93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7772
SELECT ALL 2 * + CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7772
SELECT ALL 2 * + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7773
SELECT DISTINCT + col1 DIV 32 FROM tab1
----
0
1

skipif mysql # not compatible
query I rowsort label-7773
SELECT DISTINCT + col1 / 32 FROM tab1
----
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7774
SELECT ALL - COUNT( * ) * COUNT( * ) AS col0 FROM tab1
----
-9

skipif mysql # not compatible
query I rowsort label-7774
SELECT ALL - COUNT ( * ) * COUNT ( * ) AS col0 FROM tab1
----
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col1, + col1 col2 FROM tab0
----
-1
1
-21
21
-81
81

onlyif mysql # DIV for integer division: 
query I rowsort label-7776
SELECT DISTINCT + col2 DIV + - 57 col1 FROM tab2 AS cor0
----
-1
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7776
SELECT DISTINCT + col2 / + - 57 col1 FROM tab2 AS cor0
----
-1
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7777
SELECT DISTINCT + COUNT( 75 ) * + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7777
SELECT DISTINCT + COUNT ( 75 ) * + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT ( + - col0 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-7779
SELECT SUM( + col0 ) * - MAX( + ( - + col1 ) ) FROM tab2 AS cor0
----
9435

skipif mysql # not compatible
query I rowsort label-7779
SELECT SUM ( + col0 ) * - MAX ( + ( - + col1 ) ) FROM tab2 AS cor0
----
9435

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( ( + col0 > + + col2 ) )
----
15
81
47
97
1
99

query I rowsort
SELECT ALL - ( + 64 ) FROM tab0 AS cor0
----
-64
-64
-64

query II rowsort
SELECT ALL ( - col1 ) AS col0, - ( + 39 ) FROM tab0 AS cor0
----
-1
-39
-21
-39
-81
-39

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL IN ( col0 * + 44, - col0 - - col0 * col1, - + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7784
SELECT + - MAX( + col1 ) AS col0 FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-7784
SELECT + - MAX ( + col1 ) AS col0 FROM tab0 AS cor0
----
-81

query II rowsort
SELECT + col0 + + + col0 AS col2, - col2 + - - col1 FROM tab2 cor0
----
128
37
150
9
92
28

query I rowsort
SELECT ALL - - col1 * - col1 - - + 44 FROM tab1 AS cor0
----
-152
-2165
19

query II rowsort
SELECT DISTINCT 53, col0 + - col2 AS col2 FROM tab1
----
53
-45
53
23
53
26

onlyif mysql # aggregate syntax: 
query I rowsort label-7788
SELECT DISTINCT MAX( 36 ) AS col1 FROM tab1
----
36

skipif mysql # not compatible
query I rowsort label-7788
SELECT DISTINCT MAX ( 36 ) AS col1 FROM tab1
----
36

query I rowsort
SELECT ALL col0 + - + col2 AS col0 FROM tab0
----
-2
-32
77

query I rowsort
SELECT DISTINCT + 60 + + col2 * - 43 FROM tab0
----
-1961
-370
-4197

query I rowsort
SELECT DISTINCT + 54 + + - col0 AS col0 FROM tab2
----
-10
-21
8

onlyif mysql # aggregate syntax: 
query I rowsort label-7792
SELECT ( + COUNT( * ) ) + - AVG ( - col2 ) col2 FROM tab1 WHERE ( 51 * col1 ) IS NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7792
SELECT ( + COUNT ( * ) ) + - AVG ( - col2 ) col2 FROM tab1 WHERE ( 51 * col1 ) IS NULL
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7793
SELECT ALL - CAST( NULL AS SIGNED ) + + COUNT( * ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-7793
SELECT ALL - CAST ( NULL AS INTEGER ) + + COUNT ( * ) FROM tab0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - + col0 ) col1 FROM tab1 WHERE NULL <> - ( 93 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 77 / - - col0 - + + col1 - 95 * col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7796
SELECT - SUM( ALL + col0 ) AS col1 FROM tab1 AS cor0
----
-227

skipif mysql # not compatible
query I rowsort label-7796
SELECT - SUM ( ALL + col0 ) AS col1 FROM tab1 AS cor0
----
-227

query I rowsort
SELECT + + col2 * + 44 AS col0 FROM tab2 AS cor0
----
1012
1760
2552

query I rowsort
SELECT DISTINCT - col1 + - + col0 AS col2 FROM tab0 AS cor0
----
-108
-96
-98

query I rowsort
SELECT + col2 + 69 FROM tab0
----
116
168
79

query I rowsort
SELECT DISTINCT - + 99 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-99

query I rowsort
SELECT DISTINCT - 37 * col1 AS col1 FROM tab1
----
-1739
-185
-518

query I rowsort
SELECT ALL 21 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to c5272facdaaa11f884c8cc0d9d4f41c7

onlyif mysql # aggregate syntax: 
query I rowsort label-7803
SELECT + MAX( ALL - + col2 ) col0 FROM tab0 AS cor0
----
-10

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7803
SELECT + MAX ( ALL - + col2 ) col0 FROM tab0 AS cor0
----
-10

query II rowsort
SELECT DISTINCT col1 + - col1 AS col0, + col2 + + - col2 AS col1 FROM tab2 cor0
----
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7805
SELECT ALL + 15 + + + COUNT( * ) - - + 95 AS col0 FROM tab2 AS cor0
----
113

skipif mysql # not compatible
query I rowsort label-7805
SELECT ALL + 15 + + + COUNT ( * ) - - + 95 AS col0 FROM tab2 AS cor0
----
113

query I rowsort
SELECT - + col2 * + + col1 + + col1 AS col2 FROM tab0 AS cor0 WHERE col1 IS NOT NULL
----
-189
-3726
-98

query I rowsort
SELECT ALL - 31 + + col2 + - ( - col0 ) * + - ( ( col0 ) ) AS col1 FROM tab1 AS cor0
----
-2536
-7197
-8244

query I rowsort
SELECT DISTINCT + col2 * 0 AS col1 FROM tab1
----
0

query I rowsort
SELECT - 81 * 31 FROM tab2
----
-2511
-2511
-2511

onlyif mysql # aggregate syntax: 
query I rowsort label-7810
SELECT + ( + 82 ) * - COUNT( * ) AS col2 FROM tab0
----
-246

skipif mysql # not compatible
query I rowsort label-7810
SELECT + ( + 82 ) * - COUNT ( * ) AS col2 FROM tab0
----
-246

query III rowsort
SELECT * FROM tab2 WHERE NOT 81 + + col1 + - 67 * + 62 * + col1 + + col1 + col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NOT + 35 IS NOT NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + - 87 AS col1 FROM tab1 AS cor0 WHERE NULL <> - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7814
SELECT ALL - + 10 * - COUNT( * ) FROM tab1 AS cor0
----
30

skipif mysql # not compatible
query I rowsort label-7814
SELECT ALL - + 10 * - COUNT ( * ) FROM tab1 AS cor0
----
30

onlyif mysql # DIV for integer division: 
query I rowsort label-7815
SELECT col1 DIV + 46 AS col2 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-7815
SELECT col1 / + 46 AS col2 FROM tab2 AS cor0
----
1
1
1

query I rowsort
SELECT DISTINCT 93 * - 56 * col0 + - + col0 FROM tab0 AS cor0
----
-453183
-505273
-78135

onlyif mysql # aggregate syntax: 
query I rowsort label-7817
SELECT + + COUNT( - 56 ) + COUNT( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
18

skipif mysql # not compatible
query I rowsort label-7817
SELECT + + COUNT ( - 56 ) + COUNT ( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
18

query I rowsort
SELECT + col2 FROM tab0 WHERE NOT ( - - col0 ) IS NULL
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-7819
SELECT 16 * - MAX( DISTINCT - 86 ) AS col2 FROM tab0
----
1376

skipif mysql # not compatible
query I rowsort label-7819
SELECT 16 * - MAX ( DISTINCT - 86 ) AS col2 FROM tab0
----
1376

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col1 = - col1
----

query I rowsort
SELECT DISTINCT 49 + col2 AS col1 FROM tab1 AS cor0
----
108
117
145

onlyif mysql # aggregate syntax: 
query I rowsort label-7822
SELECT DISTINCT COUNT( * ) * + COUNT( * ) * - - MAX( col0 ) + + 25 FROM tab0 cor0
----
898

skipif mysql # not compatible
query I rowsort label-7822
SELECT DISTINCT COUNT ( * ) * + COUNT ( * ) * - - MAX ( col0 ) + + 25 FROM tab0 cor0
----
898

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7823
SELECT DISTINCT - - MIN( DISTINCT col2 ) * COUNT( * ) * - CAST( - 50 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
1500

skipif mysql # not compatible
query I rowsort label-7823
SELECT DISTINCT - - MIN ( DISTINCT col2 ) * COUNT ( * ) * - CAST ( - 50 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
1500

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col1 NOT BETWEEN NULL AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7825
SELECT + col0 DIV - col0 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-7825
SELECT + col0 / - col0 col1 FROM tab0 AS cor0
----
-1
-1
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7826
SELECT + 39 DIV + - COUNT( * ) AS col0 FROM tab1 AS cor0
----
-13

skipif mysql # not compatible
query I rowsort label-7826
SELECT + 39 / + - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-13

query II rowsort
SELECT DISTINCT + 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 DISTINCT 66 col1 FROM tab0
----
66

query I rowsort
SELECT DISTINCT 86 * - col2 AS col2 FROM tab2
----
-1978
-3440
-4988

query I rowsort
SELECT ALL - ( - col2 ) + - col2 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7831
SELECT DISTINCT SUM( 77 ) + - COUNT( * ) FROM tab0 WHERE - 62 NOT IN ( + - 39 * + 98, 48 )
----
228

skipif mysql # not compatible
query I rowsort label-7831
SELECT DISTINCT SUM ( 77 ) + - COUNT ( * ) FROM tab0 WHERE - 62 NOT IN ( + - 39 * + 98, 48 )
----
228

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col0 * col1 + 86 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 WHERE + - 11 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7834
SELECT ALL 88 - - 28 - + MIN( - 89 ) FROM tab0 AS cor0
----
205

skipif mysql # not compatible
query I rowsort label-7834
SELECT ALL 88 - - 28 - + MIN ( - 89 ) FROM tab0 AS cor0
----
205

query I rowsort
SELECT ALL 74 FROM tab1 WHERE NOT - col1 IS NULL
----
74
74
74

onlyif mysql # aggregate syntax: 
query I rowsort label-7836
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-7836
SELECT + MAX ( ALL col2 ) col2 FROM tab0
----
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( 23 ) col1 FROM tab0 AS cor0
----
23
23
23

onlyif mysql # DIV for integer division: 
query I rowsort label-7838
SELECT - - col2 DIV + - col0 AS col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7838
SELECT - - col2 / + - col0 AS col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL col1 * - + col2 FROM tab0 AS cor0
----
-210
-3807
-99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7840
SELECT ALL - CAST( + COUNT( * ) AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7840
SELECT ALL - CAST ( + COUNT ( * ) AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * col2 - col2 + - ( 2 ) col0 FROM tab0 AS cor0 WHERE 27 IS NULL
----

query I rowsort
SELECT ALL + + 37 * col1 FROM tab0 AS cor0
----
2997
37
777

onlyif mysql # aggregate syntax: 
query I rowsort label-7843
SELECT DISTINCT + ( 55 ) * - - COUNT( * ) FROM tab0
----
165

skipif mysql # not compatible
query I rowsort label-7843
SELECT DISTINCT + ( 55 ) * - - COUNT ( * ) FROM tab0
----
165

query III rowsort
SELECT * FROM tab1 WHERE NOT - + 38 * + col2 * - col0 * + 89 - col1 / - + col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-7845
SELECT 55 * COUNT( * ) FROM tab0 WHERE NOT ( - col0 * col1 * 93 * - - col0 ) IS NULL
----
165

skipif mysql # not compatible
query I rowsort label-7845
SELECT 55 * COUNT ( * ) FROM tab0 WHERE NOT ( - col0 * col1 * 93 * - - col0 ) IS NULL
----
165

query I rowsort
SELECT ALL + col1 AS col0 FROM tab0 WHERE NOT ( NULL ) < NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( - + col2 ) col0 FROM tab0
----
-10
-47
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-7848
SELECT DISTINCT MAX( - + col1 ) FROM tab1
----
-5

skipif mysql # not compatible
query I rowsort label-7848
SELECT DISTINCT MAX ( - + col1 ) FROM tab1
----
-5

query III rowsort
SELECT * FROM tab2 WHERE NOT + col2 - - col0 + 9 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7850
SELECT ALL MIN( DISTINCT + 99 ) FROM tab1 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-7850
SELECT ALL MIN ( DISTINCT + 99 ) FROM tab1 AS cor0
----
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7851
SELECT - COUNT( + + col1 ) * - + 93 * CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7851
SELECT - COUNT ( + + col1 ) * - + 93 * CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT - + 54 * - col1 AS col0 FROM tab0 cor0
----
1134
4374
54

query II rowsort
SELECT + 24, + col1 * + 38 - - 33 AS col1 FROM tab1 AS cor0
----
24
1819
24
223
24
565

query I rowsort
SELECT DISTINCT + 64 * - col1 AS col2 FROM tab0 AS cor0
----
-1344
-5184
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-7855
SELECT ALL COUNT( + col0 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7855
SELECT ALL COUNT ( + col0 ) FROM tab1 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 1 col2 FROM tab0 cor0
----
1
1
1

onlyif mysql # CAST syntax: DECIMAL type: 
query IIIIII rowsort label-7857
SELECT DISTINCT * FROM tab0, tab0 AS cor0 WHERE - + CAST( NULL AS DECIMAL ) IS NOT NULL
----

skipif mysql # not compatible
query IIIIII rowsort label-7857
SELECT DISTINCT * FROM tab0, tab0 AS cor0 WHERE - + CAST ( NULL AS REAL ) IS NOT NULL
----

query I rowsort
SELECT ALL 33 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 620d384286e82d1c6c8b1b2b109a7da5

onlyif mysql # aggregate syntax: 
query I rowsort label-7859
SELECT + MAX( 87 ) AS col0 FROM tab0
----
87

skipif mysql # not compatible
query I rowsort label-7859
SELECT + MAX ( 87 ) AS col0 FROM tab0
----
87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + + - col2 col0 FROM tab1
----
-45
23
26

query I rowsort
SELECT ALL 43 * + col0 AS col0 FROM tab0
----
3741
4171
645

query IIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL <= ( NULL )
----

query I rowsort
SELECT + col0 + 14 AS col2 FROM tab0 AS cor0
----
101
111
29

query I rowsort
SELECT ALL - - ( - - 1 ) * + col1 + - 14 AS col0 FROM tab0 AS cor0
----
-13
67
7

query II rowsort
SELECT - col1 + + - col2, ( + col1 ) FROM tab2 AS cor0
----
-117
77
-125
67
-74
51

query II rowsort
SELECT col0 + 65 AS col1, col0 AS col2 FROM tab1 AS cor0
----
116
51
150
85
156
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 30 * + 15 col1, + 99 + - + col2 * - 39 FROM tab1 AS cor0
----
-450
2400
-450
2751
-450
3843

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7868
SELECT DISTINCT - 1 DIV - 28, + 94 DIV COUNT( * ) AS col1 FROM tab0 AS cor0
----
0
31

skipif mysql # not compatible
query II rowsort label-7868
SELECT DISTINCT - 1 / - 28, + 94 / COUNT ( * ) AS col1 FROM tab0 AS cor0
----
0
31

query I rowsort
SELECT ALL - col1 - 37 AS col0 FROM tab1 WHERE NOT ( + 16 / col0 ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE + col0 * col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7871
SELECT DISTINCT - ( + CAST( - SUM( + + col1 ) AS SIGNED ) ) AS col2 FROM tab1
----
66

skipif mysql # not compatible
query I rowsort label-7871
SELECT DISTINCT - ( + CAST ( - SUM ( + + col1 ) AS INTEGER ) ) AS col2 FROM tab1
----
66

query II rowsort
SELECT + col1, - 53 - col1 AS col2 FROM tab2
----
51
-104
67
-120
77
-130

onlyif mysql # aggregate syntax: 
query I rowsort label-7873
SELECT ALL + 59 + + ( - COUNT( * ) ) col0 FROM tab1
----
56

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7873
SELECT ALL + 59 + + ( - COUNT ( * ) ) col0 FROM tab1
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-7874
SELECT DISTINCT + ( 35 ) + - + COUNT( * ) AS col2 FROM tab2
----
32

skipif mysql # not compatible
query I rowsort label-7874
SELECT DISTINCT + ( 35 ) + - + COUNT ( * ) AS col2 FROM tab2
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-7875
SELECT DISTINCT COUNT( * ) AS col0 FROM tab1 WHERE + + ( - + 96 ) * - col1 * + 25 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-7875
SELECT DISTINCT COUNT ( * ) AS col0 FROM tab1 WHERE + + ( - + 96 ) * - col1 * + 25 IS NOT NULL
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7876
SELECT col0 - + + CAST( NULL AS SIGNED ) * - col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7876
SELECT col0 - + + CAST ( NULL AS INTEGER ) * - col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL < + 81 / + + col1 * 27
----

query I rowsort
SELECT DISTINCT - 98 * - + ( - col1 ) AS col2 FROM tab2 AS cor0 WHERE + col0 * + + 18 IS NOT NULL
----
-4998
-6566
-7546

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7879
SELECT ALL 62 - - CAST( NULL AS SIGNED ) * + MIN( DISTINCT + - 16 ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7879
SELECT ALL 62 - - CAST ( NULL AS INTEGER ) * + MIN ( DISTINCT + - 16 ) FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + ( + + col0 ) IS NOT NULL
----

query I rowsort
SELECT - col0 * + col0 + 6 AS col1 FROM tab0
----
-219
-7563
-9403

query I rowsort
SELECT DISTINCT 87 * + col0 AS col2 FROM tab2
----
4002
5568
6525

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 45 BETWEEN - 93 AND ( 4 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - 88 * + - 24 * + 72 FROM tab2 cor0
----
152064
152064
152064

query II rowsort
SELECT DISTINCT 59 AS col1, 12 FROM tab1
----
59
12

query III rowsort
SELECT * FROM tab1 WHERE NOT + ( - col1 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7887
SELECT 66 * + ( - COUNT( * ) ) AS col1 FROM tab0
----
-198

skipif mysql # not compatible
query I rowsort label-7887
SELECT 66 * + ( - COUNT ( * ) ) AS col1 FROM tab0
----
-198

onlyif mysql # aggregate syntax: 
query I rowsort label-7888
SELECT SUM( DISTINCT - 83 ) FROM tab2
----
-83

skipif mysql # not compatible
query I rowsort label-7888
SELECT SUM ( DISTINCT - 83 ) FROM tab2
----
-83

onlyif mysql # DIV for integer division: 
query I rowsort label-7889
SELECT 82 DIV + 95 AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

skipif mysql # not compatible
query I rowsort label-7889
SELECT 82 / + 95 AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query I rowsort
SELECT + + 5 AS col2 FROM tab2 AS cor0 WHERE NOT NULL <= + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7891
SELECT ALL - COUNT( ALL + col1 ) AS col0 FROM tab2 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7891
SELECT ALL - COUNT ( ALL + col1 ) AS col0 FROM tab2 cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7892
SELECT + 58 + - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7892
SELECT + 58 + - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT ALL - 1, + col0 AS col1 FROM tab2
----
-1
46
-1
64
-1
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7894
SELECT - CAST( SUM( DISTINCT + + ( - col1 ) ) AS SIGNED ) AS col1 FROM tab2
----
195

skipif mysql # not compatible
query I rowsort label-7894
SELECT - CAST ( SUM ( DISTINCT + + ( - col1 ) ) AS INTEGER ) AS col1 FROM tab2
----
195

query I rowsort
SELECT 87 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to fa0cdd86483844cda3bb806e032d5c64

query I rowsort
SELECT ALL - 8 + col0 FROM tab2
----
38
56
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7897
SELECT DISTINCT COUNT( * ) * - - SUM( ALL - CAST( NULL AS SIGNED ) ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7897
SELECT DISTINCT COUNT ( * ) * - - SUM ( ALL - CAST ( NULL AS INTEGER ) ) AS col1 FROM tab1
----
NULL

query I rowsort
SELECT ALL - col2 + - 80 FROM tab1
----
-139
-148
-176

onlyif mysql # aggregate syntax: 
query I rowsort label-7899
SELECT DISTINCT + COUNT( ALL + - col0 ) FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-7899
SELECT DISTINCT + COUNT ( ALL + - col0 ) FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
0

query II rowsort
SELECT col1 * - + col0 AS col1, col0 AS col1 FROM tab0 AS cor0
----
-1215
15
-1827
87
-97
97

onlyif mysql # aggregate syntax: 
query I rowsort label-7901
SELECT - - 43 * + COUNT( * ) + - COUNT( * ) FROM tab0 AS cor0
----
126

skipif mysql # not compatible
query I rowsort label-7901
SELECT - - 43 * + COUNT ( * ) + - COUNT ( * ) FROM tab0 AS cor0
----
126

onlyif mysql # aggregate syntax: 
query I rowsort label-7902
SELECT DISTINCT + - ( - - MAX( ALL 52 ) ) + + - 44 FROM tab2 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-7902
SELECT DISTINCT + - ( - - MAX ( ALL 52 ) ) + + - 44 FROM tab2 AS cor0
----
-96

query II rowsort
SELECT DISTINCT - - col2 AS col2, - col2 * - - col1 + + + col0 FROM tab1 AS cor0
----
59
-210
68
-3105
96
-1293

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 14 * + col2 col2 FROM tab1 cor0
----
-1344
-826
-952

query I rowsort
SELECT - col2 * col0 - + + col0 AS col1 FROM tab1 AS cor0
----
-4947
-5100
-6279

query I rowsort
SELECT - AVG ( + + col2 ) AS col1 FROM tab2 AS cor0 WHERE ( + + col1 * - col1 - - 29 * + 16 IS NULL )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7907
SELECT + + COUNT( * ) * - + MAX( - 87 ) - + CAST( NULL AS DECIMAL ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7907
SELECT + + COUNT ( * ) * - + MAX ( - 87 ) - + CAST ( NULL AS REAL ) FROM tab2 AS cor0
----
NULL

query II rowsort
SELECT - 38 + - - col2 - - + 85 AS col1, - col2 FROM tab2
----
105
-58
70
-23
87
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-7909
SELECT - COUNT( * ) FROM tab1 WHERE - 16 >= - col2
----
-3

skipif mysql # not compatible
query I rowsort label-7909
SELECT - COUNT ( * ) FROM tab1 WHERE - 16 >= - col2
----
-3

query I rowsort
SELECT DISTINCT col2 + + col0 + - col1 * - ( + + col1 ) + - - col1 FROM tab2
----
2721
4689
6110

query I rowsort
SELECT ALL col0 - col1 + - col1 FROM tab1
----
-3
23
75

onlyif mysql # aggregate syntax: 
query I rowsort label-7912
SELECT - - COUNT( * ) + 19 FROM tab2 AS cor0
----
22

skipif mysql # not compatible
query I rowsort label-7912
SELECT - - COUNT ( * ) + 19 FROM tab2 AS cor0
----
22

query I rowsort
SELECT DISTINCT - 0 - col1 FROM tab1 AS cor0 WHERE NULL <= + col0
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7914
SELECT COUNT( ALL - col1 ) AS col2, + 64 FROM tab0 cor0
----
3
64

skipif mysql # not compatible
query II rowsort label-7914
SELECT COUNT ( ALL - col1 ) AS col2, + 64 FROM tab0 cor0
----
3
64

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 + - 3 IN ( - - col2, + col2 * col2 * - col0 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col0 - - 68 IS NULL
----

query II rowsort
SELECT - 72 AS col2, - 49 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
18 values hashing to 343ba814442d7222e6b29c8cbc4710c8

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( NOT ( NOT col1 = NULL ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7919
SELECT + ( - COUNT( * ) ) AS col0 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-7919
SELECT + ( - COUNT ( * ) ) AS col0 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
-9

query I rowsort
SELECT 38 * + col1 AS col2 FROM tab2
----
1938
2546
2926

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN - col2 + + col1 AND + col1 * + ( + - 94 ) * + - 1 - - - col2
----

query I rowsort
SELECT 81 * - + col0 AS col2 FROM tab2 AS cor0
----
-3726
-5184
-6075

onlyif mysql # aggregate syntax: 
query I rowsort label-7923
SELECT + 86 * COUNT( * ) AS col0 FROM tab2 AS cor0
----
258

skipif mysql # not compatible
query I rowsort label-7923
SELECT + 86 * COUNT ( * ) AS col0 FROM tab2 AS cor0
----
258

query I rowsort
SELECT + col1 * col0 * - col1 * - col1 AS col1 FROM tab2 AS cor0 WHERE NOT + col2 IS NOT NULL
----

query II rowsort
SELECT - - col0 AS col2, - 24 + - - ( + col2 ) + + - col1 * 82 * col0 FROM tab1 AS cor0
----
51
-58476
85
-34815
91
-350670

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7926
SELECT DISTINCT CAST( - 6 AS SIGNED ) col2 FROM tab0 AS cor0
----
-6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7926
SELECT DISTINCT CAST ( - 6 AS INTEGER ) col2 FROM tab0 AS cor0
----
-6

onlyif mysql # aggregate syntax: 
query II rowsort label-7927
SELECT + + 52 col0, - MIN( col2 ) + ( COUNT( * ) ) col1 FROM tab0 AS cor0
----
52
-7

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7927
SELECT + + 52 col0, - MIN ( col2 ) + ( COUNT ( * ) ) col1 FROM tab0 AS cor0
----
52
-7

query I rowsort
SELECT DISTINCT - - 71 AS col0 FROM tab0 AS cor0
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-7929
SELECT DISTINCT - ( - SUM( DISTINCT - col0 ) ) FROM tab0
----
-199

skipif mysql # not compatible
query I rowsort label-7929
SELECT DISTINCT - ( - SUM ( DISTINCT - col0 ) ) FROM tab0
----
-199

query I rowsort
SELECT ( - 54 ) AS col2 FROM tab2
----
-54
-54
-54

query I rowsort
SELECT + col1 * - + ( - col1 ) FROM tab0 WHERE NOT NULL IS NOT NULL
----
1
441
6561

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7932
SELECT + SUM( + CAST( NULL AS SIGNED ) ) / AVG ( + col1 ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7932
SELECT + SUM ( + CAST ( NULL AS INTEGER ) ) / AVG ( + col1 ) AS col1 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7933
SELECT ALL + MAX( - col0 ) FROM tab0 cor0 WHERE NOT - col2 BETWEEN NULL AND + col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7933
SELECT ALL + MAX ( - col0 ) FROM tab0 cor0 WHERE NOT - col2 BETWEEN NULL AND + col2
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE - + 61 <> col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7935
SELECT ALL - col2 + + + CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7935
SELECT ALL - col2 + + + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col0 + + - col0 AS col2 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7937
SELECT DISTINCT + col2 + - CAST( - - 51 AS SIGNED ), 16 AS col1 FROM tab1 AS cor0
----
17
16
45
16
8
16

skipif mysql # not compatible
query II rowsort label-7937
SELECT DISTINCT + col2 + - CAST ( - - 51 AS INTEGER ), 16 AS col1 FROM tab1 AS cor0
----
17
16
45
16
8
16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7938
SELECT DISTINCT col2 + - + col1 - - + 78 * - CAST( NULL AS SIGNED ) / - 9 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7938
SELECT DISTINCT col2 + - + col1 - - + 78 * - CAST ( NULL AS INTEGER ) / - 9 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL ( - 77 ) AS col2 FROM tab1 cor0
----
-77
-77
-77

query I rowsort
SELECT ALL - col0 FROM tab1 AS cor0 WHERE NOT + col0 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7941
SELECT col1 DIV + col2 * + col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7941
SELECT col1 / + col2 * + col2 FROM tab1
----
0
0
0

query I rowsort
SELECT DISTINCT 90 * - col0 AS col1 FROM tab0
----
-1350
-7830
-8730

query I rowsort
SELECT ALL col0 * + ( - - col2 ) AS col2 FROM tab0
----
705
870
9603

query I rowsort
SELECT ALL col1 + + col2 - ( 86 ) + - ( - - 82 ) + col1 - col2 * col2 * - + col2 AS col0 FROM tab2
----
12124
195136
64026

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 2 AS col2, - col1 * col0 col2 FROM tab2
----
2
-2346
2
-4928
2
-5025

query I rowsort
SELECT 27 AS col0 FROM tab2 WHERE ( NOT + col0 IS NOT NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + - 35 col2 FROM tab1
----
-40
-49
-82

query I rowsort
SELECT + col2 - - - col2 AS col1 FROM tab0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col0 ) - col0 * + ( - 95 ) col0 FROM tab2
----
4416
6144
7200

onlyif mysql # DIV for integer division: 
query I rowsort label-7950
SELECT ALL + col0 + + + 68 + + col0 DIV - col2 AS col1 FROM tab0
----
147
165
83

skipif mysql # not compatible
query I rowsort label-7950
SELECT ALL + col0 + + + 68 + + col0 / - col2 AS col1 FROM tab0
----
147
165
83

query I rowsort
SELECT ALL col1 + - - col1 + + col1 AS col2 FROM tab0
----
243
3
63

onlyif mysql # DIV for integer division: 
query I rowsort label-7952
SELECT - 23 - - 15 DIV col2 AS col2 FROM tab0 AS cor0
----
-22
-23
-23

skipif mysql # not compatible
query I rowsort label-7952
SELECT - 23 - - 15 / col2 AS col2 FROM tab0 AS cor0
----
-22
-23
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-7953
SELECT DISTINCT + 27 * + + COUNT( ALL - 38 ) FROM tab2
----
81

skipif mysql # not compatible
query I rowsort label-7953
SELECT DISTINCT + 27 * + + COUNT ( ALL - 38 ) FROM tab2
----
81

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL <> 34
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7955
SELECT DISTINCT - + CAST( NULL AS SIGNED ) * + - col2 * + - col0 FROM tab0 AS cor0 WHERE NOT NULL <> col1 + - col0
----

skipif mysql # not compatible
query I rowsort label-7955
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) * + - col2 * + - col0 FROM tab0 AS cor0 WHERE NOT NULL <> col1 + - col0
----

query I rowsort
SELECT - 54 + col1 AS col1 FROM tab0 cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT - ( + 86 ) * col2 * + col1 + + col2 * col1 FROM tab2 cor0
----
-261800
-330310
-99705

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 col0 FROM tab1 AS cor0 WHERE - col1 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7959
SELECT + col0 DIV + + 91 + - - col2 + 3 FROM tab0 AS cor0
----
103
13
50

skipif mysql # not compatible
query I rowsort label-7959
SELECT + col0 / + + 91 + - - col2 + 3 FROM tab0 AS cor0
----
103
13
50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7960
SELECT CAST( NULL AS SIGNED ), + CAST( NULL AS SIGNED ) * ( + COUNT( * ) ) col1 FROM tab0
----
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7960
SELECT CAST ( NULL AS INTEGER ), + CAST ( NULL AS INTEGER ) * ( + COUNT ( * ) ) col1 FROM tab0
----
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7961
SELECT ALL col0 * - - col1 * - col2 col2, col2 * - CAST( NULL AS SIGNED ) + - - col0 AS col2 FROM tab0
----
-18270
NULL
-57105
NULL
-9603
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7961
SELECT ALL col0 * - - col1 * - col2 col2, col2 * - CAST ( NULL AS INTEGER ) + - - col0 AS col2 FROM tab0
----
-18270
NULL
-57105
NULL
-9603
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE + col0 <> + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-7963
SELECT MIN( 70 ) AS col1 FROM tab2
----
70

skipif mysql # not compatible
query I rowsort label-7963
SELECT MIN ( 70 ) AS col1 FROM tab2
----
70

query I rowsort
SELECT DISTINCT + 36 * 21 FROM tab1
----
756

query I rowsort
SELECT ALL + + 84 * + + col1 AS col0 FROM tab2 WHERE NOT + col2 < - ( col1 )
----
4284
5628
6468

onlyif mysql # aggregate syntax: 
query I rowsort label-7966
SELECT ALL + ( - COUNT( * ) ) + - 52 AS col0 FROM tab0
----
-55

skipif mysql # not compatible
query I rowsort label-7966
SELECT ALL + ( - COUNT ( * ) ) + - 52 AS col0 FROM tab0
----
-55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7967
SELECT ALL CAST( - ( + col0 ) AS SIGNED ) FROM tab1 AS cor0
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-7967
SELECT ALL CAST ( - ( + col0 ) AS INTEGER ) FROM tab1 AS cor0
----
-51
-85
-91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col2 + + col0, 79 col1 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
144
79
147
79
159
79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7969
SELECT 88 * + COUNT( * ) + CAST( NULL AS SIGNED ) * - ( - - 8 ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-7969
SELECT 88 * + COUNT ( * ) + CAST ( NULL AS INTEGER ) * - ( - - 8 ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

query I rowsort
SELECT col1 * + 43 * - + col2 * + + col1 AS col0 FROM tab1
----
-63425
-6459116
-809088

query I rowsort
SELECT DISTINCT - col0 + + - col1 AS col0 FROM tab0 AS cor0
----
-108
-96
-98

query II rowsort
SELECT + 56 - - 91, col1 + - 45 AS col2 FROM tab0 AS cor0
----
147
-24
147
-44
147
36

query I rowsort
SELECT ALL col2 - + col0 AS col2 FROM tab1 AS cor0
----
-23
-26
45

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col0 * col2 BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL 64 AS col1 FROM tab0 AS cor0 WHERE NOT 77 > NULL
----

query I rowsort
SELECT DISTINCT 41 - + 86 - - col2 AS col0 FROM tab0 AS cor0
----
-35
2
54

onlyif mysql # aggregate syntax: 
query I rowsort label-7977
SELECT ALL - COUNT( * ) - - 30 FROM tab0 AS cor0
----
27

skipif mysql # not compatible
query I rowsort label-7977
SELECT ALL - COUNT ( * ) - - 30 FROM tab0 AS cor0
----
27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7978
SELECT + col2 + - + CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7978
SELECT + col2 + - + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col0 * + 18 * - col0 AS col1 FROM tab2
----
-101250
-38088
-73728

onlyif mysql # DIV for integer division: 
query I rowsort label-7980
SELECT - 99 + + col1 * - - col0 DIV col0 FROM tab2
----
-22
-32
-48

skipif mysql # not compatible
query I rowsort label-7980
SELECT - 99 + + col1 * - - col0 / col0 FROM tab2
----
-22
-32
-48

query I rowsort
SELECT - 13 + col1 AS col0 FROM tab1
----
-8
1
34

onlyif mysql # DIV for integer division: 
query I rowsort label-7982
SELECT DISTINCT + ( col2 ) + + 43 DIV + 75 FROM tab2
----
23
40
58

skipif mysql # not compatible
query I rowsort label-7982
SELECT DISTINCT + ( col2 ) + + 43 / + 75 FROM tab2
----
23
40
58

query I rowsort
SELECT ALL + 9 * + 78 FROM tab2
----
702
702
702

query I rowsort
SELECT + - 44 * col1 FROM tab1 AS cor0
----
-2068
-220
-616

onlyif mysql # DIV for integer division: 
query I rowsort label-7985
SELECT DISTINCT col0 DIV col2 DIV col0 AS col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-7985
SELECT DISTINCT col0 / col2 / col0 AS col0 FROM tab1
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 col0, col2 - 91 FROM tab1
----
51
5
85
-32
91
-23

query II rowsort
SELECT - col0 AS col2, col0 AS col2 FROM tab2
----
-46
46
-64
64
-75
75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7988
SELECT ALL 5 DIV - SUM( DISTINCT + 65 ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-7988
SELECT ALL 5 / - SUM ( DISTINCT + 65 ) FROM tab0
----
0

query I rowsort
SELECT DISTINCT - + col2 + - + 86 FROM tab2 AS cor0 WHERE NOT NULL < - col1
----

query I rowsort
SELECT + + ( - col1 ) * 89 * + col2 * + col0 AS col1 FROM tab2 AS cor0
----
-17543680
-25939050
-4802262

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7991
SELECT DISTINCT CAST( NULL AS SIGNED ) FROM tab1 AS cor0 WHERE NOT col1 <= - - col0
----

skipif mysql # not compatible
query I rowsort label-7991
SELECT DISTINCT CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 WHERE NOT col1 <= - - col0
----

query I rowsort
SELECT - col2 * + 92 AS col2 FROM tab2 cor0
----
-2116
-3680
-5336

query II rowsort
SELECT DISTINCT + col0 AS col1, col0 - - 44 AS col2 FROM tab1 AS cor0
----
51
95
85
129
91
135

query II rowsort
SELECT col1, 44 AS col0 FROM tab1 AS cor0
----
14
44
47
44
5
44

onlyif mysql # DIV for integer division: 
query I rowsort label-7995
SELECT + col0 * + col1 + + 7 DIV 76 AS col1 FROM tab2 AS cor0
----
2346
4928
5025

skipif mysql # not compatible
query I rowsort label-7995
SELECT + col0 * + col1 + + 7 / 76 AS col1 FROM tab2 AS cor0
----
2346
4928
5025

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7996
SELECT DISTINCT + col2 / - ( + col1 ) * col1 - - 43, + CAST( + + 41 AS SIGNED ) FROM tab2 AS cor0 WHERE + 20 IS NULL
----

skipif mysql # not compatible
query II rowsort label-7996
SELECT DISTINCT + col2 / - ( + col1 ) * col1 - - 43, + CAST ( + + 41 AS INTEGER ) FROM tab2 AS cor0 WHERE + 20 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7997
SELECT + 32 DIV + + col2 AS col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7997
SELECT + 32 / + + col2 AS col0 FROM tab1 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 + + 84 col0 FROM tab0 AS cor0
----
105
165
85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 4 col1 FROM tab0 WHERE NULL IS NULL
----
-4

query I rowsort
SELECT - ( + - 88 ) FROM tab0
----
88
88
88

query III rowsort
SELECT * FROM tab2 WHERE NOT col2 * + col2 + + - col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8002
SELECT COUNT( * ) AS col2 FROM tab1 WHERE + col0 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-8002
SELECT COUNT ( * ) AS col2 FROM tab1 WHERE + col0 IS NOT NULL
----
3

query III rowsort
SELECT ALL * FROM tab2 WHERE 20 < NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE + + 37 * + col1 = 55
----

query I rowsort
SELECT DISTINCT col0 + - col0 * + col1 AS col0 FROM tab1
----
-340
-4186
-663

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8006
SELECT ALL 77 DIV + col0 + - col0 + CAST( - 17 AS SIGNED ) * - - col1 FROM tab2 AS cor0
----
-1213
-1372
-912

skipif mysql # not compatible
query I rowsort label-8006
SELECT ALL 77 / + col0 + - col0 + CAST ( - 17 AS INTEGER ) * - - col1 FROM tab2 AS cor0
----
-1213
-1372
-912

query I rowsort
SELECT - + col2 - - col1 AS col0 FROM tab0 cor0 WHERE NULL BETWEEN ( NULL ) AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8008
SELECT COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE CAST( NULL AS SIGNED ) / col1 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-8008
SELECT COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE CAST ( NULL AS INTEGER ) / col1 IS NULL
----
3

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8009
SELECT + ( CAST( NULL AS DECIMAL ) ) + + col2 / + col1 * + + col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8009
SELECT + ( CAST ( NULL AS REAL ) ) + + col2 / + col1 * + + col2 FROM tab0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + - + 12 col0 FROM tab2
----
34
52
63

query I rowsort
SELECT ALL + - 80 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 4dde3bd5652d30396b9cadd0e2cfb680

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( + - 42 ) col2 FROM tab0 WHERE NOT - col1 IS NULL
----
-42

query I rowsort
SELECT DISTINCT 10 + 0 AS col1 FROM tab2
----
10

query I rowsort
SELECT + 58 + 45 AS col0 FROM tab2
----
103
103
103

query I rowsort
SELECT ALL col0 - + col2 + col0 + 97 FROM tab0 cor0
----
192
261
80

query I rowsort
SELECT DISTINCT - 46 - - + ( col2 ) AS col1 FROM tab0 AS cor0
----
-36
1
53

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 88 col1, 64 * + col2 * col2 FROM tab0 cor0
----
88
141376
88
627264
88
6400

onlyif mysql # DIV for integer division: 
query I rowsort label-8018
SELECT ALL - + col1 DIV - - col1 + - + col0 + - col1 + + col1 AS col0 FROM tab0 AS cor0
----
-16
-88
-98

skipif mysql # not compatible
query I rowsort label-8018
SELECT ALL - + col1 / - - col1 + - + col0 + - col1 + + col1 AS col0 FROM tab0 AS cor0
----
-16
-88
-98

query II rowsort
SELECT + col0, - col2 + - col1 FROM tab0 AS cor0
----
15
-128
87
-31
97
-100

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NOT + - col2 IS NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + ( ( + 45 ) ) FROM tab2 cor0
----
45
45
45

onlyif mysql # aggregate syntax: 
query II rowsort label-8022
SELECT DISTINCT 27, + SUM( ALL - + col2 ) AS col1 FROM tab0 AS cor0
----
27
-156

skipif mysql # not compatible
query II rowsort label-8022
SELECT DISTINCT 27, + SUM ( ALL - + col2 ) AS col1 FROM tab0 AS cor0
----
27
-156

query III rowsort
SELECT * FROM tab0 WHERE 88 * + col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8024
SELECT DISTINCT + COUNT( ALL - 92 ) AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-8024
SELECT DISTINCT + COUNT ( ALL - 92 ) AS col2 FROM tab2
----
3

query I rowsort
SELECT + ( + + 41 ) AS col1 FROM tab0
----
41
41
41

query I rowsort
SELECT col1 * + ( + + col1 ) AS col0 FROM tab0
----
1
441
6561

query I rowsort
SELECT DISTINCT + col0 FROM tab0 WHERE NOT NULL BETWEEN NULL AND col1
----

query I rowsort
SELECT 97 * ( - - col1 ) FROM tab0
----
2037
7857
97

onlyif mysql # DIV for integer division: 
query I rowsort label-8029
SELECT - 29 DIV + 84 AS col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8029
SELECT - 29 / + 84 AS col2 FROM tab2
----
0
0
0

query I rowsort
SELECT col2 * + 92 AS col0 FROM tab0
----
4324
9108
920

query I rowsort
SELECT + col2 - col1 AS col0 FROM tab2 WHERE NOT - 93 = NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + 92 * + 13 - + col2 + col0 <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8033
SELECT * FROM tab1 AS cor0 WHERE NOT + col2 + - CAST( NULL AS SIGNED ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-8033
SELECT * FROM tab1 AS cor0 WHERE NOT + col2 + - CAST ( NULL AS INTEGER ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8034
SELECT ALL + + CAST( - col1 AS SIGNED ) col2, 67 + + - col0 FROM tab2 AS cor0
----
-51
21
-67
-8
-77
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8034
SELECT ALL + + CAST ( - col1 AS INTEGER ) col2, 67 + + - col0 FROM tab2 AS cor0
----
-51
21
-67
-8
-77
3

query I rowsort
SELECT 2 * col1 AS col2 FROM tab2
----
102
134
154

onlyif mysql # aggregate syntax: 
query I rowsort label-8036
SELECT ALL + SUM( - col2 ) AS col0 FROM tab0 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-8036
SELECT ALL + SUM ( - col2 ) AS col0 FROM tab0 AS cor0
----
-156

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8037
SELECT ALL COUNT( * ) + - COUNT( * ) DIV 69 FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-8037
SELECT ALL COUNT ( * ) + - COUNT ( * ) / 69 FROM tab0 cor0
----
3

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL < + 60
----

query I rowsort
SELECT DISTINCT - + 33 AS col2 FROM tab0 AS cor0
----
-33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8040
SELECT DISTINCT MAX( - col1 ) / ( + 46 ) * + - ( - + CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8040
SELECT DISTINCT MAX ( - col1 ) / ( + 46 ) * + - ( - + CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0
----
NULL

query II rowsort
SELECT + col1 AS col0, col1 * - + 8 * ( - + col2 ) FROM tab0
----
1
792
21
1680
81
30456

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8042
SELECT DISTINCT 0 AS col0, - 52 / - 0 * + col2 * + CAST( NULL AS SIGNED ) + 65 FROM tab1
----
0
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL handles NULL in DIV/0 by differently
query II rowsort label-8042
SELECT DISTINCT 0 AS col0, - 52 / - 0 * + col2 * + CAST ( NULL AS INTEGER ) + 65 FROM tab1
----
0
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8043
SELECT ALL col0 + col1 + + col1 + col1 DIV + col0 + + col1 FROM tab2
----
200
276
296

skipif mysql # not compatible
query I rowsort label-8043
SELECT ALL col0 + col1 + + col1 + col1 / + col0 + + col1 FROM tab2
----
200
276
296

onlyif mysql # aggregate syntax: 
query I rowsort label-8044
SELECT ALL - COUNT( * ) + + + 97 + - 94 col0 FROM tab2
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8044
SELECT ALL - COUNT ( * ) + + + 97 + - 94 col0 FROM tab2
----
0

query I rowsort
SELECT - 75 + + + col1 FROM tab0 AS cor0
----
-54
-74
6

onlyif mysql # DIV for integer division: 
query I rowsort label-8046
SELECT col2 DIV - + col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8046
SELECT col2 / - + col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - 85 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-85

onlyif mysql # DIV for integer division: 
query I rowsort label-8048
SELECT - col2 - - - col2 + + + col2 DIV col2 AS col0 FROM tab1
----
-117
-135
-191

skipif mysql # not compatible
query I rowsort label-8048
SELECT - col2 - - - col2 + + + col2 / col2 AS col0 FROM tab1
----
-117
-135
-191

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8049
SELECT + + col2 - - - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8049
SELECT + + col2 - - - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - + 59 AS col2 FROM tab2 AS cor0
----
-59
-59
-59

query II rowsort
SELECT DISTINCT + col0, + col1 - + 57 AS col1 FROM tab1
----
51
-43
85
-52
91
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-8052
SELECT DISTINCT + MIN( col1 ) AS col0 FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-8052
SELECT DISTINCT + MIN ( col1 ) AS col0 FROM tab2
----
51

query II rowsort
SELECT ALL 30, - ( 87 ) AS col2 FROM tab2
----
30
-87
30
-87
30
-87

query I rowsort
SELECT + col2 * + + col0 AS col0 FROM tab1 AS cor0
----
4896
5015
6188

onlyif mysql # aggregate syntax: 
query I rowsort label-8055
SELECT ALL - SUM( ALL col2 ) AS col1 FROM tab1 AS cor0
----
-223

skipif mysql # not compatible
query I rowsort label-8055
SELECT ALL - SUM ( ALL col2 ) AS col1 FROM tab1 AS cor0
----
-223

query I rowsort
SELECT - AVG ( ALL col0 ) FROM tab1 AS cor0 WHERE NOT + 34 NOT BETWEEN - 75 AND ( NULL )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8057
SELECT - CAST( NULL AS SIGNED ), - col0 AS col0 FROM tab1 AS cor0
----
NULL
-51
NULL
-85
NULL
-91

skipif mysql # not compatible
query II rowsort label-8057
SELECT - CAST ( NULL AS INTEGER ), - col0 AS col0 FROM tab1 AS cor0
----
NULL
-51
NULL
-85
NULL
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8058
SELECT - - CAST( + col2 AS SIGNED ) AS col0 FROM tab0 cor0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-8058
SELECT - - CAST ( + col2 AS INTEGER ) AS col0 FROM tab0 cor0
----
10
47
99

query I rowsort
SELECT DISTINCT + 85 AS col2 FROM tab0 cor0
----
85

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 37 = ( - + 82 ) * + - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8061
SELECT COUNT( * ) * - 67 + - COUNT( * ) AS col0 FROM tab0
----
-204

skipif mysql # not compatible
query I rowsort label-8061
SELECT COUNT ( * ) * - 67 + - COUNT ( * ) AS col0 FROM tab0
----
-204

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8062
SELECT * FROM tab1 WHERE NOT - CAST( col0 AS SIGNED ) / - col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-8062
SELECT * FROM tab1 WHERE NOT - CAST ( col0 AS INTEGER ) / - col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - 29 AS col1 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8064
SELECT ALL - col0 + col1 FROM tab0 WHERE NOT + CAST( NULL AS SIGNED ) IS NOT NULL
----
-66
-96
66

skipif mysql # not compatible
query I rowsort label-8064
SELECT ALL - col0 + col1 FROM tab0 WHERE NOT + CAST ( NULL AS INTEGER ) IS NOT NULL
----
-66
-96
66

query III rowsort
SELECT * FROM tab2 WHERE + col1 BETWEEN NULL AND + ( - col0 )
----

query I rowsort
SELECT ALL + 35 * col2 + 69 AS col1 FROM tab1
----
2134
2449
3429

query I rowsort
SELECT ALL col1 * - 82 - + col0 FROM tab1
----
-1199
-3945
-495

query I rowsort
SELECT ALL 51 + + 48 AS col0 FROM tab0 WHERE col1 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - 64 * + col0 = 48 - col0
----

query III rowsort
SELECT ALL * FROM tab2 WHERE col0 <= 95 / col0 + + col2 * 47
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 WHERE + col2 + col2 * col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - 89 * col1 AS col0 FROM tab1
----
-1246
-4183
-445

query I rowsort
SELECT - col2 * 15 AS col2 FROM tab1
----
-1020
-1440
-885

query III rowsort
SELECT * FROM tab1 WHERE NOT ( col2 + - col1 ) >= col1
----
91
47
68

query I rowsort
SELECT 76 + col1 FROM tab0
----
157
77
97

query I rowsort
SELECT 13 + + col2 AS col2 FROM tab1
----
109
72
81

query I rowsort
SELECT - col1 + 4 FROM tab1
----
-1
-10
-43

query I rowsort
SELECT DISTINCT 93 * + 71 FROM tab0
----
6603

query I rowsort
SELECT - col2 + + col2 AS col1 FROM tab0 WHERE NOT - col2 BETWEEN - 90 + col0 AND ( NULL )
----
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8080
SELECT ALL MIN( + CAST( 20 AS SIGNED ) ) * 87 AS col2 FROM tab0
----
1740

skipif mysql # not compatible
query I rowsort label-8080
SELECT ALL MIN ( + CAST ( 20 AS INTEGER ) ) * 87 AS col2 FROM tab0
----
1740

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8081
SELECT ALL CAST( NULL AS SIGNED ) * + COUNT( * ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8081
SELECT ALL CAST ( NULL AS INTEGER ) * + COUNT ( * ) AS col1 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8082
SELECT ALL 83 + COUNT( * ) * + ( + MIN( col0 ) ) FROM tab2 AS cor0
----
221

skipif mysql # not compatible
query I rowsort label-8082
SELECT ALL 83 + COUNT ( * ) * + ( + MIN ( col0 ) ) FROM tab2 AS cor0
----
221

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8083
SELECT + ( ( + col1 ) ) AS col0 FROM tab2 AS cor0 WHERE CAST( col2 AS SIGNED ) IN ( 84 )
----

skipif mysql # not compatible
query I rowsort label-8083
SELECT + ( ( + col1 ) ) AS col0 FROM tab2 AS cor0 WHERE CAST ( col2 AS INTEGER ) IN ( 84 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8084
SELECT DISTINCT + MAX( - 22 ) * - 84 FROM tab0 cor0 WHERE NULL BETWEEN 6 AND col1 * 55 - + col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8084
SELECT DISTINCT + MAX ( - 22 ) * - 84 FROM tab0 cor0 WHERE NULL BETWEEN 6 AND col1 * 55 - + col0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 31 * col0 col1 FROM tab2 AS cor0
----
1426
1984
2325

query I rowsort
SELECT ALL col1 * col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN col1 AND col0 * col1 + + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8087
SELECT ALL - COUNT( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab2
----
-9

skipif mysql # not compatible
query I rowsort label-8087
SELECT ALL - COUNT ( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab2
----
-9

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1 WHERE ( + 44 ) NOT BETWEEN NULL AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8089
SELECT DISTINCT + 80 DIV ( + ( - col0 ) ) + col0 * - col2 AS col1 FROM tab1
----
-4897
-5015
-6188

skipif mysql # not compatible
query I rowsort label-8089
SELECT DISTINCT + 80 / ( + ( - col0 ) ) + col0 * - col2 AS col1 FROM tab1
----
-4897
-5015
-6188

query I rowsort
SELECT - 28 FROM tab1 AS cor0 WHERE NULL NOT IN ( col2 * 70 )
----

query I rowsort
SELECT ALL - 4 AS col2 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col2 + col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL 69 * - col0 AS col0 FROM tab0 AS cor0
----
-1035
-6003
-6693

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8094
SELECT ALL * FROM tab1 AS cor0 WHERE - CAST( NULL AS SIGNED ) / + 28 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-8094
SELECT ALL * FROM tab1 AS cor0 WHERE - CAST ( NULL AS INTEGER ) / + 28 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8095
SELECT 43 AS col1 FROM tab2 AS cor0 WHERE NOT ( - col0 * - CAST( NULL AS SIGNED ) ) = + col0
----

skipif mysql # not compatible
query I rowsort label-8095
SELECT 43 AS col1 FROM tab2 AS cor0 WHERE NOT ( - col0 * - CAST ( NULL AS INTEGER ) ) = + col0
----

query I rowsort
SELECT ALL col0 * + 42 AS col1 FROM tab2
----
1932
2688
3150

query I rowsort
SELECT DISTINCT + col2 * - - col2 * col2 FROM tab1
----
205379
314432
884736

query I rowsort
SELECT DISTINCT 80 FROM tab2 WHERE - 58 NOT BETWEEN + 17 AND NULL
----
80

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - col0 <= ( NULL )
----

query I rowsort
SELECT + col0 * - 97 * col2 FROM tab2
----
-102626
-248320
-421950

onlyif mysql # aggregate syntax: 
query I rowsort label-8101
SELECT - SUM( ALL - - col2 ) AS col0 FROM tab2
----
-121

skipif mysql # not compatible
query I rowsort label-8101
SELECT - SUM ( ALL - - col2 ) AS col0 FROM tab2
----
-121

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8102
SELECT * FROM tab1 WHERE NULL IS NULL OR NOT ( CAST( - col1 AS SIGNED ) ) NOT BETWEEN ( + col2 ) AND + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-8102
SELECT * FROM tab1 WHERE NULL IS NULL OR NOT ( CAST ( - col1 AS INTEGER ) ) NOT BETWEEN ( + col2 ) AND + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + 4 * + 74 + - col2 AS col0 FROM tab0 WHERE - col2 * col2 NOT IN ( - col1 ) OR NULL IS NOT NULL
----
197
249
286

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 8 col0 FROM tab0 WHERE col2 + + col0 NOT IN ( - 37 )
----
8

query I rowsort
SELECT - 17 * - col0 FROM tab0
----
1479
1649
255

query I rowsort
SELECT col0 * - 75 FROM tab2
----
-3450
-4800
-5625

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - col1 * 89 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 18 AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
18
18
18

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN col0 * + 39 AND - col1
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8110
SELECT 48 DIV COUNT( * ) FROM tab1 AS cor0 WHERE NOT 97 IS NULL
----
16

skipif mysql # not compatible
query I rowsort label-8110
SELECT 48 / COUNT ( * ) FROM tab1 AS cor0 WHERE NOT 97 IS NULL
----
16

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 20 + + + col0 + col0 * + col2 col0 FROM tab0 AS cor0
----
700
937
9680

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8112
SELECT DISTINCT - - COUNT( ALL + CAST( NULL AS SIGNED ) ) AS col1 FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-8112
SELECT DISTINCT - - COUNT ( ALL + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab1 cor0
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT col1 - - ( + 46 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col2 * - col2 + + col0 AS col1 FROM tab2
----
-1536
-3289
-483

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8115
SELECT 13 AS col0, SUM( ALL + - col0 ) DIV 18 FROM tab1
----
13
-12

skipif mysql # not compatible
query II rowsort label-8115
SELECT 13 AS col0, SUM ( ALL + - col0 ) / 18 FROM tab1
----
13
-12

query I rowsort
SELECT 30 / col1 - - col1 / col0 FROM tab2 WHERE NOT NULL <> ( + + col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8117
SELECT DISTINCT 23 + CAST( col0 AS SIGNED ) FROM tab1
----
108
114
74

skipif mysql # not compatible
query I rowsort label-8117
SELECT DISTINCT 23 + CAST ( col0 AS INTEGER ) FROM tab1
----
108
114
74

query III rowsort
SELECT * FROM tab1 WHERE + 0 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8119
SELECT ALL COUNT( * ) + - CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8119
SELECT ALL COUNT ( * ) + - CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL

query I rowsort
SELECT - 49 AS col0 FROM tab1 WHERE col0 BETWEEN ( - ( col2 ) + - col2 ) AND ( + 79 ) + + 22 / 20
----
-49

query I rowsort
SELECT ALL - + ( col2 ) AS col2 FROM tab2 cor0
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-8122
SELECT DISTINCT MIN( col2 ) + + COUNT( DISTINCT - 94 ) FROM tab2 AS cor0
----
24

skipif mysql # not compatible
query I rowsort label-8122
SELECT DISTINCT MIN ( col2 ) + + COUNT ( DISTINCT - 94 ) FROM tab2 AS cor0
----
24

query I rowsort
SELECT + col0 AS col0 FROM tab1 AS cor0 WHERE - 96 IS NULL
----

query I rowsort
SELECT col1 * + - 22 FROM tab2 AS cor0
----
-1122
-1474
-1694

query II rowsort
SELECT DISTINCT 69 AS col0, col1 AS col0 FROM tab0 AS cor0
----
69
1
69
21
69
81

onlyif mysql # aggregate syntax: 
query I rowsort label-8126
SELECT MIN( DISTINCT + col0 ) + + 23 + COUNT( ALL + col0 - + col0 ) FROM tab2 AS cor0
----
72

skipif mysql # not compatible
query I rowsort label-8126
SELECT MIN ( DISTINCT + col0 ) + + 23 + COUNT ( ALL + col0 - + col0 ) FROM tab2 AS cor0
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-8127
SELECT COUNT( * ) + + 69 * - SUM( DISTINCT + col0 ) + + COUNT( * ) AS col0 FROM tab1
----
-15657

skipif mysql # not compatible
query I rowsort label-8127
SELECT COUNT ( * ) + + 69 * - SUM ( DISTINCT + col0 ) + + COUNT ( * ) AS col0 FROM tab1
----
-15657

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8128
SELECT col0 + + col0 * - CAST( NULL AS SIGNED ) / 52 + 85 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8128
SELECT col0 + + col0 * - CAST ( NULL AS INTEGER ) / 52 + 85 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8129
SELECT MIN( ALL col2 ) + - COUNT( * ) FROM tab1
----
56

skipif mysql # not compatible
query I rowsort label-8129
SELECT MIN ( ALL col2 ) + - COUNT ( * ) FROM tab1
----
56

query I rowsort
SELECT + col2 + + - col1 AS col2 FROM tab0
----
-11
-34
98

query I rowsort
SELECT ALL - col2 - + col1 + + col0 + - + 57 * col0 * + ( 2 ) FROM tab0 cor0
----
-11061
-1823
-9862

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 73 col0 FROM tab0 AS cor0
----
73
73
73

query I rowsort
SELECT DISTINCT col1 - - - 51 + + col1 * - col0 + 68 AS col0 FROM tab2 AS cor0
----
-2278
-4834
-4941

query I rowsort
SELECT DISTINCT + col0 + - - 48 AS col2 FROM tab1 AS cor0
----
133
139
99

onlyif mysql # DIV for integer division: 
query I rowsort label-8135
SELECT ALL - - col1 DIV + + col1 - + 97 + 83 FROM tab1 AS cor0
----
-13
-13
-13

skipif mysql # not compatible
query I rowsort label-8135
SELECT ALL - - col1 / + + col1 - + 97 + 83 FROM tab1 AS cor0
----
-13
-13
-13

query I rowsort
SELECT ALL - 36 * 34 * - - col2 * col0 + - col0 AS col0 FROM tab0 AS cor0
----
-1064967
-11754169
-862935

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8137
SELECT DISTINCT - CAST( NULL AS SIGNED ) + + col0 FROM tab2 WHERE NOT col2 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-8137
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + + col0 FROM tab2 WHERE NOT col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col0 FROM tab2 WHERE 65 IS NOT NULL
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-8139
SELECT ALL - COUNT( DISTINCT + + col1 ) * + 76 col1 FROM tab0
----
-228

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8139
SELECT ALL - COUNT ( DISTINCT + + col1 ) * + 76 col1 FROM tab0
----
-228

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL NOT BETWEEN ( + col2 ) AND ( - col1 - 39 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col2 * + col0 - 73 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 36 * - 35 FROM tab2 AS cor0
----
-1260
-1260
-1260

onlyif mysql # aggregate syntax: 
query I rowsort label-8143
SELECT + - COUNT( * ) * + - 52 + - + 28 + - + 19 * - COUNT( ALL - col2 ) FROM tab2 cor0
----
185

skipif mysql # not compatible
query I rowsort label-8143
SELECT + - COUNT ( * ) * + - 52 + - + 28 + - + 19 * - COUNT ( ALL - col2 ) FROM tab2 cor0
----
185

onlyif mysql # aggregate syntax: 
query I rowsort label-8144
SELECT + MAX( ALL + col0 ) AS col0 FROM tab1 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-8144
SELECT + MAX ( ALL + col0 ) AS col0 FROM tab1 AS cor0
----
91

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col1 * + col0 NOT BETWEEN - + col0 + - col2 AND NULL
----

query I rowsort
SELECT + ( 29 ) FROM tab2 AS cor0
----
29
29
29

query I rowsort
SELECT ALL col2 * + 1 AS col2 FROM tab1 AS cor0
----
59
68
96

query I rowsort
SELECT - col2 + col2 AS col1 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND - col2 * 58 * + 70
----

query I rowsort
SELECT DISTINCT - col1 AS col2 FROM tab0 WHERE ( col1 ) > 16
----
-21
-81

query II rowsort
SELECT DISTINCT + 31 * + - 89 AS col2, col1 AS col0 FROM tab2
----
-2759
51
-2759
67
-2759
77

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + - col2 BETWEEN + col1 AND 13
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT DISTINCT col0 AS col0, + 1 * + + col2 + + col0 FROM tab2
----
46
69
64
104
75
133

onlyif mysql # DIV for integer division: 
query I rowsort label-8153
SELECT - + col1 * col1 * col1 + 90 + - col2 DIV + - 11 col1 FROM tab2 AS cor0
----
-132559
-300668
-456440

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8153
SELECT - + col1 * col1 * col1 + 90 + - col2 / + - 11 col1 FROM tab2 AS cor0
----
-132559
-300668
-456440

onlyif mysql # DIV for integer division: 
query I rowsort label-8154
SELECT col1 DIV - 69 AS col1 FROM tab2 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-8154
SELECT col1 / - 69 AS col1 FROM tab2 AS cor0
----
-1
0
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( 9 * - col1 / col1 ) > + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL >= + 43
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8157
SELECT DISTINCT col2 + - CAST( + col2 AS SIGNED ) AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-8157
SELECT DISTINCT col2 + - CAST ( + col2 AS INTEGER ) AS col1 FROM tab1
----
0

query I rowsort
SELECT + 43 + + + 60 AS col2 FROM tab0 cor0
----
103
103
103

onlyif mysql # aggregate syntax: 
query I rowsort label-8159
SELECT + 51 + 54 + + SUM( col1 ) * + COUNT( * ) + ( + - 20 ) + - 30 FROM tab2 AS cor0
----
640

skipif mysql # not compatible
query I rowsort label-8159
SELECT + 51 + 54 + + SUM ( col1 ) * + COUNT ( * ) + ( + - 20 ) + - 30 FROM tab2 AS cor0
----
640

query I rowsort
SELECT DISTINCT ( + col1 ) * + col1 AS col2 FROM tab2 cor0
----
2601
4489
5929

query I rowsort
SELECT - + col2 * + col0 + + col1 * + + 82 AS col2 FROM tab1 AS cor0
----
-2334
-3748
-4605

onlyif mysql # aggregate syntax: 
query I rowsort label-8162
SELECT ALL + - 20 + + COUNT( * ) FROM tab0 AS cor0
----
-17

skipif mysql # not compatible
query I rowsort label-8162
SELECT ALL + - 20 + + COUNT ( * ) FROM tab0 AS cor0
----
-17

query I rowsort
SELECT DISTINCT + col0 + - ( - col0 ) + + + 10 * - 48 AS col0 FROM tab2 AS cor0 WHERE - col1 * 37 > NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col2 * - - col0 <> ( + - col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8165
SELECT DISTINCT - 2 / - CAST( NULL AS SIGNED ) + ( - - col2 ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8165
SELECT DISTINCT - 2 / - CAST ( NULL AS INTEGER ) + ( - - col2 ) AS col1 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT + col1 * - 24 FROM tab2
----
-1224
-1608
-1848

query III rowsort
SELECT * FROM tab2 WHERE NULL = + - 50 * + - 88
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8168
SELECT + ( col1 ) DIV + col2 - col2 DIV - col1 col1 FROM tab1
----
1
11
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8168
SELECT + ( col1 ) / + col2 - col2 / - col1 col1 FROM tab1
----
1
11
6

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + - col0 / col2 + + ( col2 ) - + + col2 BETWEEN - col2 * - 72 AND 6 / + 75
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8170
SELECT - MAX( ALL - - 99 ) AS col0 FROM tab0
----
-99

skipif mysql # not compatible
query I rowsort label-8170
SELECT - MAX ( ALL - - 99 ) AS col0 FROM tab0
----
-99

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8171
SELECT DISTINCT * FROM tab0 WHERE NOT col0 >= + CAST( + - col0 AS SIGNED ) * col0 / - 61 - + col1
----
87
21
10
97
1
99

skipif mysql # not compatible
query III rowsort label-8171
SELECT DISTINCT * FROM tab0 WHERE NOT col0 >= + CAST ( + - col0 AS INTEGER ) * col0 / - 61 - + col1
----
87
21
10
97
1
99

query I rowsort
SELECT ALL col0 - - - 32 FROM tab1
----
19
53
59

query I rowsort
SELECT 29 - - col0 AS col1 FROM tab0
----
116
126
44

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 - - 51 col2 FROM tab1 AS cor0
----
-34
-40
0

query I rowsort
SELECT DISTINCT - ( - + col2 ) - + col0 AS col0 FROM tab2 AS cor0
----
-17
-23
-24

query I rowsort
SELECT ALL + col1 - - - 1 FROM tab0 AS cor0
----
0
20
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + col0 * col0 + - - col0 col0 FROM tab2 AS cor0
----
2208
4224
5775

query II rowsort
SELECT col0 AS col1, 12 FROM tab2 AS cor0 WHERE NULL < ( NULL )
----

query II rowsort
SELECT col2 * - col2, col1 AS col2 FROM tab2
----
-1600
77
-3364
67
-529
51

query I rowsort
SELECT DISTINCT 95 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-8181
SELECT ALL MAX( - + ( - 16 ) ) AS col1 FROM tab1
----
16

skipif mysql # not compatible
query I rowsort label-8181
SELECT ALL MAX ( - + ( - 16 ) ) AS col1 FROM tab1
----
16

query I rowsort
SELECT 69 FROM tab0 AS cor0 WHERE NOT NULL < - 77 * - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8183
SELECT ALL + + MIN( ALL + col2 ) FROM tab2 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-8183
SELECT ALL + + MIN ( ALL + col2 ) FROM tab2 AS cor0
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-8184
SELECT DISTINCT + - MAX( DISTINCT - col1 ) FROM tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-8184
SELECT DISTINCT + - MAX ( DISTINCT - col1 ) FROM tab1 AS cor0
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-8185
SELECT ( + - COUNT( * ) ) AS col2 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8185
SELECT ( + - COUNT ( * ) ) AS col2 FROM tab2 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8186
SELECT COUNT( DISTINCT col0 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8186
SELECT COUNT ( DISTINCT col0 ) FROM tab2 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8187
SELECT DISTINCT 43 AS col1 FROM tab2 AS cor0 WHERE 89 BETWEEN NULL AND + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-8187
SELECT DISTINCT 43 AS col1 FROM tab2 AS cor0 WHERE 89 BETWEEN NULL AND + CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT ALL - - col2 * + + col2 + - col2 FROM tab2 cor0
----
1560
3306
506

onlyif mysql # aggregate syntax: 
query I rowsort label-8189
SELECT MAX( DISTINCT - col1 ) AS col0 FROM tab2
----
-51

skipif mysql # not compatible
query I rowsort label-8189
SELECT MAX ( DISTINCT - col1 ) AS col0 FROM tab2
----
-51

query I rowsort
SELECT ALL + 71 * - col1 FROM tab1
----
-3337
-355
-994

query I rowsort
SELECT ALL 87 * - - 81 + col0 AS col1 FROM tab1 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col1 NOT BETWEEN - col1 + 33 AND NULL
----
97
1
99

onlyif mysql # aggregate syntax: 
query I rowsort label-8193
SELECT + COUNT( ALL - 69 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-8193
SELECT + COUNT ( ALL - 69 ) FROM tab2
----
3

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - 84 NOT IN ( - col0 )
----

query I rowsort
SELECT ALL col1 + col0 * 54 AS col2 FROM tab0
----
4719
5239
891

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( col2 ) = + + col0
----

query I rowsort
SELECT - - col1 * - 7 FROM tab1 AS cor0
----
-329
-35
-98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8198
SELECT ALL - 71 AS col1, - COUNT( - 11 ) * - 16 + + ( CAST( NULL AS SIGNED ) ) + + COUNT( * ) + MAX( DISTINCT - ( - + col2 ) ) * 23 + 13 AS col2 FROM tab0 AS cor0
----
-71
NULL

skipif mysql # not compatible
query II rowsort label-8198
SELECT ALL - 71 AS col1, - COUNT ( - 11 ) * - 16 + + ( CAST ( NULL AS INTEGER ) ) + + COUNT ( * ) + MAX ( DISTINCT - ( - + col2 ) ) * 23 + 13 AS col2 FROM tab0 AS cor0
----
-71
NULL

query I rowsort
SELECT + 25 - 12 + - - col1 + + col0 FROM tab2 AS cor0
----
110
154
155

query I rowsort
SELECT DISTINCT - 20 + - - 58 AS col2 FROM tab0 cor0
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-8201
SELECT + + MIN( ALL - - 72 ) - + - 36 FROM tab2 AS cor0
----
108

skipif mysql # not compatible
query I rowsort label-8201
SELECT + + MIN ( ALL - - 72 ) - + - 36 FROM tab2 AS cor0
----
108

onlyif mysql # aggregate syntax: 
query I rowsort label-8202
SELECT ALL COUNT( * ) - + 69 AS col2 FROM tab0 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-8202
SELECT ALL COUNT ( * ) - + 69 AS col2 FROM tab0 AS cor0
----
-66

onlyif mysql # aggregate syntax: 
query II rowsort label-8203
SELECT DISTINCT + 86, SUM( - 21 ) AS col2 FROM tab2 AS cor0
----
86
-63

skipif mysql # not compatible
query II rowsort label-8203
SELECT DISTINCT + 86, SUM ( - 21 ) AS col2 FROM tab2 AS cor0
----
86
-63

query I rowsort
SELECT - col2 + - + col2 * col0 FROM tab1 AS cor0
----
-4992
-5074
-6256

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8205
SELECT * FROM tab2 WHERE ( NOT col2 <= - - CAST( - col0 AS SIGNED ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-8205
SELECT * FROM tab2 WHERE ( NOT col2 <= - - CAST ( - col0 AS INTEGER ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - 49 * + col1 * 6 + - + col0 FROM tab2
----
-15040
-19773
-22702

query I rowsort
SELECT DISTINCT + + col1 AS col0 FROM tab0 WHERE NOT - col2 BETWEEN NULL AND - col2 + - - col2
----

query I rowsort
SELECT ALL 76 FROM tab2 WHERE NOT - - col0 + - - 10 IS NULL
----
76
76
76

query I rowsort
SELECT + ( + 22 ) * - 87 + + col2 FROM tab1
----
-1818
-1846
-1855

query III rowsort
SELECT * FROM tab2 WHERE - + col1 = + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8211
SELECT DISTINCT ( + - COUNT( * ) ) + COUNT( * ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-8211
SELECT DISTINCT ( + - COUNT ( * ) ) + COUNT ( * ) FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8212
SELECT ALL COUNT( * ) + ( - - ( + 17 ) ) FROM tab0 AS cor0
----
20

skipif mysql # not compatible
query I rowsort label-8212
SELECT ALL COUNT ( * ) + ( - - ( + 17 ) ) FROM tab0 AS cor0
----
20

onlyif mysql # DIV for integer division: 
query I rowsort label-8213
SELECT col1 DIV - + col1 + - 73 * - 69 AS col1 FROM tab0 AS cor0
----
5036
5036
5036

skipif mysql # not compatible
query I rowsort label-8213
SELECT col1 / - + col1 + - 73 * - 69 AS col1 FROM tab0 AS cor0
----
5036
5036
5036

onlyif mysql # DIV for integer division: 
query I rowsort label-8214
SELECT ALL + col1 DIV - 62 AS col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8214
SELECT ALL + col1 / - 62 AS col0 FROM tab1 AS cor0
----
0
0
0

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT NULL <> + - col0 * - col0 OR NOT - col1 IS NOT NULL
----

query II rowsort
SELECT ALL col1 AS col1, - col2 FROM tab0
----
1
-99
21
-10
81
-47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8217
SELECT ALL - 76 * CAST( - - 21 AS SIGNED ) FROM tab2 AS cor0
----
-1596
-1596
-1596

skipif mysql # not compatible
query I rowsort label-8217
SELECT ALL - 76 * CAST ( - - 21 AS INTEGER ) FROM tab2 AS cor0
----
-1596
-1596
-1596

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + + 36 ) col1 FROM tab1 AS cor0
----
36
36
36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8219
SELECT - + CAST( NULL AS SIGNED ) AS col1, COUNT( * ) FROM tab2 AS cor0
----
NULL
3

skipif mysql # not compatible
query II rowsort label-8219
SELECT - + CAST ( NULL AS INTEGER ) AS col1, COUNT ( * ) FROM tab2 AS cor0
----
NULL
3

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT 12 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8221
SELECT ALL - COUNT( * ) * - COUNT( * ) - + - COUNT( - col0 ) AS col0 FROM tab1 AS cor0 WHERE ( + col1 ) + col1 <= 65 + - + col1
----
6

skipif mysql # not compatible
query I rowsort label-8221
SELECT ALL - COUNT ( * ) * - COUNT ( * ) - + - COUNT ( - col0 ) AS col0 FROM tab1 AS cor0 WHERE ( + col1 ) + col1 <= 65 + - + col1
----
6

query I rowsort
SELECT - + 46 FROM tab0 cor0
----
-46
-46
-46

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 71 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 col1 FROM tab2 AS cor0 WHERE + col0 BETWEEN NULL AND + col2
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + 7 <= 67
----

query I rowsort
SELECT DISTINCT ( - col0 ) * - col1 AS col1 FROM tab0
----
1215
1827
97

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8227
SELECT ALL - col1 + CAST( NULL AS DECIMAL ) col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8227
SELECT ALL - col1 + CAST ( NULL AS REAL ) col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8228
SELECT COUNT( * ) * MAX( ALL - col2 ) FROM tab1
----
-177

skipif mysql # not compatible
query I rowsort label-8228
SELECT COUNT ( * ) * MAX ( ALL - col2 ) FROM tab1
----
-177

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8229
SELECT col2 * - ( - CAST( NULL AS DECIMAL ) ) * + + 53 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8229
SELECT col2 * - ( - CAST ( NULL AS REAL ) ) * + + 53 AS col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 93 + 81 + + - col0 * ( + col0 ) AS col0 FROM tab2
----
-1942
-3922
-5451

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8231
SELECT DISTINCT ( CAST( 30 AS SIGNED ) ) AS col0 FROM tab1 AS cor0
----
30

skipif mysql # not compatible
query I rowsort label-8231
SELECT DISTINCT ( CAST ( 30 AS INTEGER ) ) AS col0 FROM tab1 AS cor0
----
30

query I rowsort
SELECT - col0 * + col1 AS col2 FROM tab0 AS cor0 WHERE ( 90 ) + - col1 IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + 9 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8234
SELECT * FROM tab0 WHERE CAST( + - col2 AS SIGNED ) / - col1 IS NULL
----

skipif mysql # not compatible
query III rowsort label-8234
SELECT * FROM tab0 WHERE CAST ( + - col2 AS INTEGER ) / - col1 IS NULL
----

query I rowsort
SELECT DISTINCT 89 AS col1 FROM tab0, tab1 cor0
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-8236
SELECT DISTINCT + + COUNT( * ) FROM ( tab0 cor0 CROSS JOIN tab1 AS cor1 )
----
9

skipif mysql # not compatible
query I rowsort label-8236
SELECT DISTINCT + + COUNT ( * ) FROM ( tab0 cor0 CROSS JOIN tab1 AS cor1 )
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-8237
SELECT - COUNT( * ) + - - SUM( ALL + col2 ) AS col1 FROM tab0
----
153

skipif mysql # not compatible
query I rowsort label-8237
SELECT - COUNT ( * ) + - - SUM ( ALL + col2 ) AS col1 FROM tab0
----
153

query I rowsort
SELECT ALL + col1 + - + 81 AS col0 FROM tab1
----
-34
-67
-76

query I rowsort
SELECT 18 + + 61 + ( col1 ) FROM tab1 cor0
----
126
84
93

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL <> col0 - + + col0
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8241
SELECT + COUNT( * ), - COUNT( * ) col1 FROM tab0 AS cor0
----
3
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8241
SELECT + COUNT ( * ), - COUNT ( * ) col1 FROM tab0 AS cor0
----
3
-3

query I rowsort
SELECT - col0 FROM tab1 AS cor0 WHERE - col0 IS NOT NULL
----
-51
-85
-91

query I rowsort
SELECT + col2 FROM tab1 AS cor0 WHERE col0 IS NOT NULL
----
59
68
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 92, + col0 col1 FROM tab0 AS cor0 WHERE col2 IS NOT NULL
----
92
15
92
87
92
97

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col2 IN ( col0 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8246
SELECT ALL - ( + + COUNT( * ) ) AS col0, CAST( NULL AS SIGNED ) FROM tab1
----
-3
NULL

skipif mysql # not compatible
query II rowsort label-8246
SELECT ALL - ( + + COUNT ( * ) ) AS col0, CAST ( NULL AS INTEGER ) FROM tab1
----
-3
NULL

query I rowsort
SELECT + 65 - - + 80 FROM tab2
----
145
145
145

query I rowsort
SELECT col2 - + 10 AS col2 FROM tab0
----
0
37
89

query I rowsort
SELECT ALL + 19 * col1 FROM tab2 WHERE NOT + - col2 IS NOT NULL
----

query II rowsort
SELECT ALL col0 AS col0, - col1 FROM tab0 AS cor0
----
15
-81
87
-21
97
-1

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8251
SELECT * FROM tab1 AS cor0 WHERE NOT col2 / - ( - - col2 ) * + + CAST( NULL AS SIGNED ) NOT IN ( + 78, - 49 + col2 )
----

skipif mysql # not compatible
query III rowsort label-8251
SELECT * FROM tab1 AS cor0 WHERE NOT col2 / - ( - - col2 ) * + + CAST ( NULL AS INTEGER ) NOT IN ( + 78, - 49 + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8252
SELECT + SUM( + 39 ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
351

skipif mysql # not compatible
query I rowsort label-8252
SELECT + SUM ( + 39 ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
351

query I rowsort
SELECT - - 63 * + col1 AS col1 FROM tab0 AS cor0
----
1323
5103
63

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 53 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 83 col0 FROM tab1 AS cor0
----
-83
-83
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-8256
SELECT ALL - MAX( DISTINCT - 64 ) AS col2 FROM tab2 AS cor0
----
64

skipif mysql # not compatible
query I rowsort label-8256
SELECT ALL - MAX ( DISTINCT - 64 ) AS col2 FROM tab2 AS cor0
----
64

query I rowsort
SELECT + 44 AS col1 FROM tab2 cor0
----
44
44
44

onlyif mysql # DIV for integer division: 
query I rowsort label-8258
SELECT 0 DIV - 22 * - - col1 + col0 FROM tab0 AS cor0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-8258
SELECT 0 / - 22 * - - col1 + col0 FROM tab0 AS cor0
----
15
87
97

query II rowsort
SELECT + col1 * + - ( - ( + + ( + col2 ) ) ) * 23 AS col1, - 16 FROM tab2
----
26979
-16
70840
-16
89378
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-8260
SELECT - COUNT( DISTINCT - + col2 ) AS col2 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-8260
SELECT - COUNT ( DISTINCT - + col2 ) AS col2 FROM tab2
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8261
SELECT col1 + - CAST( NULL AS SIGNED ) - - + ( col1 ) AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8261
SELECT col1 + - CAST ( NULL AS INTEGER ) - - + ( col1 ) AS col1 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 WHERE NULL NOT IN ( + 24 * + 71, - col2 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8263
SELECT + 94 DIV MAX( col1 ) * 63 + - - ( 74 ) + + 82 col1 FROM tab2 AS cor0
----
219

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8263
SELECT + 94 / MAX ( col1 ) * 63 + - - ( 74 ) + + 82 col1 FROM tab2 AS cor0
----
219

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( + + col0 ) = ( + - 8 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-8265
SELECT - + col2 DIV + col0 + - - ( col2 ) DIV + - col2 AS col2 FROM tab1 AS cor0
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-8265
SELECT - + col2 / + col0 + - - ( col2 ) / + - col2 AS col2 FROM tab1 AS cor0
----
-1
-1
-2

query I rowsort
SELECT DISTINCT col1 FROM tab2 AS cor0 WHERE NOT NULL > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8267
SELECT + - COUNT( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
-9

skipif mysql # not compatible
query I rowsort label-8267
SELECT + - COUNT ( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
-9

query I rowsort
SELECT ( + + ( + col2 ) ) FROM tab2
----
23
40
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8269
SELECT ALL - - 84 + CAST( NULL AS SIGNED ) + - - 48 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8269
SELECT ALL - - 84 + CAST ( NULL AS INTEGER ) + - - 48 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 64 + col0 FROM tab0 AS cor0
----
151
161
79

query I rowsort
SELECT DISTINCT col2 + + 18 AS col0 FROM tab1 cor0
----
114
77
86

onlyif mysql # aggregate syntax: 
query I rowsort label-8272
SELECT ALL + 95 + COUNT( * ) FROM tab0 AS cor0
----
98

skipif mysql # not compatible
query I rowsort label-8272
SELECT ALL + 95 + COUNT ( * ) FROM tab0 AS cor0
----
98

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8273
SELECT DISTINCT * FROM tab0 cor0 WHERE ( + CAST( - 49 AS SIGNED ) ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-8273
SELECT DISTINCT * FROM tab0 cor0 WHERE ( + CAST ( - 49 AS INTEGER ) ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + col0 FROM tab2 AS cor0 WHERE + col2 IS NOT NULL
----
46
64
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8275
SELECT - + MIN( DISTINCT - 62 ) + + CAST( + + 66 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
128

skipif mysql # not compatible
query I rowsort label-8275
SELECT - + MIN ( DISTINCT - 62 ) + + CAST ( + + 66 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
128

query I rowsort
SELECT ALL col2 * + - col0 FROM tab0
----
-705
-870
-9603

query I rowsort
SELECT ( - 38 ) * col2 AS col2 FROM tab1
----
-2242
-2584
-3648

onlyif mysql # DIV for integer division: 
query II rowsort label-8278
SELECT DISTINCT 94 * + ( col2 ) * ( - + col1 ) col2, + col0 DIV + + ( - col1 ) AS col1 FROM tab2
----
-110262
0
-289520
0
-365284
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8278
SELECT DISTINCT 94 * + ( col2 ) * ( - + col1 ) col2, + col0 / + + ( - col1 ) AS col1 FROM tab2
----
-110262
0
-289520
0
-365284
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8279
SELECT DISTINCT - ( ( + 54 ) ) * - + COUNT( * ) AS col1 FROM tab2
----
162

skipif mysql # not compatible
query I rowsort label-8279
SELECT DISTINCT - ( ( + 54 ) ) * - + COUNT ( * ) AS col1 FROM tab2
----
162

query I rowsort
SELECT DISTINCT ( - ( - col1 ) ) * + col0 AS col2 FROM tab0
----
1215
1827
97

query I rowsort
SELECT DISTINCT col2 * + 73 AS col0 FROM tab0
----
3431
7227
730

query I rowsort
SELECT + 36 FROM tab2 WHERE NOT NULL NOT IN ( + 51, col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8283
SELECT MIN( + + col0 ) FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8283
SELECT MIN ( + + col0 ) FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
NULL

query I rowsort
SELECT ALL + col2 + + 39 AS col0 FROM tab2 AS cor0 WHERE NOT + col0 IS NOT NULL
----

query I rowsort
SELECT col2 + + 64 * ( col1 ) + + - col0 FROM tab0 AS cor0
----
1267
5216
66

onlyif mysql # aggregate syntax: 
query I rowsort label-8286
SELECT COUNT( * ) * - COUNT( * ) + COUNT( DISTINCT 78 ) FROM tab1 cor0
----
-8

skipif mysql # not compatible
query I rowsort label-8286
SELECT COUNT ( * ) * - COUNT ( * ) + COUNT ( DISTINCT 78 ) FROM tab1 cor0
----
-8

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8287
SELECT ALL * FROM tab2 WHERE + - col1 * - - CAST( NULL AS SIGNED ) + + 39 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-8287
SELECT ALL * FROM tab2 WHERE + - col1 * - - CAST ( NULL AS INTEGER ) + + 39 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8288
SELECT MIN( - col2 ) DIV + COUNT( * ) AS col1 FROM tab0
----
-33

skipif mysql # not compatible
query I rowsort label-8288
SELECT MIN ( - col2 ) / + COUNT ( * ) AS col1 FROM tab0
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-8289
SELECT DISTINCT - MAX( ALL - + 34 ) FROM tab2
----
34

skipif mysql # not compatible
query I rowsort label-8289
SELECT DISTINCT - MAX ( ALL - + 34 ) FROM tab2
----
34

query III rowsort
SELECT ALL * FROM tab0 WHERE col2 IN ( - col1, - 77, - 83 * - ( + col2 ) )
----

query III rowsort
SELECT * FROM tab1 WHERE 84 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8292
SELECT ALL CAST( NULL AS DECIMAL ) + - CAST( NULL AS SIGNED ) + + - 40 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8292
SELECT ALL CAST ( NULL AS REAL ) + - CAST ( NULL AS INTEGER ) + + - 40 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT ( - + 22 ) + ( - + col1 ) + col2 FROM tab1
----
-1
32
60

query I rowsort
SELECT DISTINCT ( + - 69 ) FROM tab0
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-8295
SELECT ALL MAX( - + 12 ) + + 44 FROM tab2 AS cor0
----
32

skipif mysql # not compatible
query I rowsort label-8295
SELECT ALL MAX ( - + 12 ) + + 44 FROM tab2 AS cor0
----
32

query I rowsort
SELECT - + col2 - col0 + + - 6 AS col1 FROM tab2 AS cor0
----
-110
-139
-75

query I rowsort
SELECT DISTINCT + col1 FROM tab1 AS cor0 WHERE NOT ( + ( col1 ) ) BETWEEN ( NULL ) AND NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( + ( + 7 ) ) > - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8299
SELECT DISTINCT col2 * + CAST( col0 AS SIGNED ) + - 90 AS col1 FROM tab1
----
4806
4925
6098

skipif mysql # not compatible
query I rowsort label-8299
SELECT DISTINCT col2 * + CAST ( col0 AS INTEGER ) + - 90 AS col1 FROM tab1
----
4806
4925
6098

query I rowsort
SELECT ALL + col1 * + 49 + col2 FROM tab1
----
2371
304
782

query I rowsort
SELECT ALL + 62 * - col2 * ( - col2 ) FROM tab0
----
136958
607662
6200

onlyif mysql # aggregate syntax: 
query I rowsort label-8302
SELECT ALL - 33 + - - COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-24

skipif mysql # not compatible
query I rowsort label-8302
SELECT ALL - 33 + - - COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-24

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8303
SELECT DISTINCT col0 - + col1 + - + CAST( NULL AS SIGNED ), col0 FROM tab2
----
NULL
46
NULL
64
NULL
75

skipif mysql # not compatible
query II rowsort label-8303
SELECT DISTINCT col0 - + col1 + - + CAST ( NULL AS INTEGER ), col0 FROM tab2
----
NULL
46
NULL
64
NULL
75

onlyif mysql # aggregate syntax: 
query I rowsort label-8304
SELECT DISTINCT + 84 * - ( - 31 ) + - COUNT( * ) col0 FROM tab0
----
2601

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8304
SELECT DISTINCT + 84 * - ( - 31 ) + - COUNT ( * ) col0 FROM tab0
----
2601

query I rowsort
SELECT ALL - col2 * - col2 * + col2 + - 70 AS col1 FROM tab2 AS cor0
----
12097
195042
63930

onlyif mysql # aggregate syntax: 
query I rowsort label-8306
SELECT DISTINCT - SUM( ALL - + col2 ) + + ( - ( - - COUNT( * ) ) ) FROM tab2 AS cor0
----
118

skipif mysql # not compatible
query I rowsort label-8306
SELECT DISTINCT - SUM ( ALL - + col2 ) + + ( - ( - - COUNT ( * ) ) ) FROM tab2 AS cor0
----
118

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8307
SELECT DISTINCT - col1 FROM tab2 AS cor0 WHERE NOT + col1 + - col2 + - col0 * - - 90 + - + CAST( NULL AS SIGNED ) >= col1
----

skipif mysql # not compatible
query I rowsort label-8307
SELECT DISTINCT - col1 FROM tab2 AS cor0 WHERE NOT + col1 + - col2 + - col0 * - - 90 + - + CAST ( NULL AS INTEGER ) >= col1
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8308
SELECT - + COUNT( * ) AS col2, COUNT( * ) FROM tab0 AS cor0
----
-3
3

skipif mysql # not compatible
query II rowsort label-8308
SELECT - + COUNT ( * ) AS col2, COUNT ( * ) FROM tab0 AS cor0
----
-3
3

query I rowsort
SELECT ALL + 73 - - col0 AS col0 FROM tab0 cor0
----
160
170
88

query I rowsort
SELECT ALL + col2 * - col2 * - 83 - + col1 * col0 AS col0 FROM tab0 AS cor0
----
182132
6473
813386

query I rowsort
SELECT + 48 * + - 22 AS col2 FROM tab1 AS cor0
----
-1056
-1056
-1056

query III rowsort
SELECT * FROM tab2 WHERE NOT + - 59 * + col2 NOT BETWEEN - col2 * col1 + col2 * col0 AND NULL
----

query I rowsort
SELECT ALL ( col0 ) * col0 AS col2 FROM tab0
----
225
7569
9409

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8314
SELECT * FROM tab0 WHERE NOT + - 97 * + col2 = - - col2 + - - col1 * + 81 / + - CAST( NULL AS SIGNED ) / - - col2 * ( + col2 )
----

skipif mysql # not compatible
query III rowsort label-8314
SELECT * FROM tab0 WHERE NOT + - 97 * + col2 = - - col2 + - - col1 * + 81 / + - CAST ( NULL AS INTEGER ) / - - col2 * ( + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8315
SELECT ALL + COUNT( * ) * - + SUM( ALL col0 ) FROM tab0
----
-597

skipif mysql # not compatible
query I rowsort label-8315
SELECT ALL + COUNT ( * ) * - + SUM ( ALL col0 ) FROM tab0
----
-597

query I rowsort
SELECT - col2 * + col1 AS col0 FROM tab1 WHERE NOT + col2 + + 48 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8317
SELECT 70 * - MIN( ALL - - col0 ) FROM tab2
----
-3220

skipif mysql # not compatible
query I rowsort label-8317
SELECT 70 * - MIN ( ALL - - col0 ) FROM tab2
----
-3220

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 98 * - 37 AS col2, 72 col2 FROM tab2 AS cor0
----
-3626
72
-3626
72
-3626
72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8319
SELECT CAST( + 72 AS SIGNED ) * COUNT( * ) FROM tab1
----
216

skipif mysql # not compatible
query I rowsort label-8319
SELECT CAST ( + 72 AS INTEGER ) * COUNT ( * ) FROM tab1
----
216

onlyif mysql # DIV for integer division: 
query I rowsort label-8320
SELECT ALL - 55 DIV 81 AS col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8320
SELECT ALL - 55 / 81 AS col2 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8321
SELECT DISTINCT - COUNT( ALL - col2 ) AS col1 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-8321
SELECT DISTINCT - COUNT ( ALL - col2 ) AS col1 FROM tab2
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8322
SELECT DISTINCT MIN( ALL + col1 ) FROM tab1
----
5

skipif mysql # not compatible
query I rowsort label-8322
SELECT DISTINCT MIN ( ALL + col1 ) FROM tab1
----
5

query I rowsort
SELECT ALL - 39 * col1 FROM tab0 AS cor0
----
-3159
-39
-819

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NOT col1 * + col1 > + ( col2 ) + 9 )
----
85
5
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8325
SELECT DISTINCT COUNT( * ) * - CAST( 12 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-36

skipif mysql # not compatible
query I rowsort label-8325
SELECT DISTINCT COUNT ( * ) * - CAST ( 12 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-36

query II rowsort
SELECT + col1 AS col1, + col0 - - col1 + 65 FROM tab1 AS cor0
----
14
130
47
203
5
155

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( col1 + col0 * + - col2 * - col0 + col2 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8328
SELECT - MAX( - - col1 ) FROM tab0 cor0
----
-81

skipif mysql # not compatible
query I rowsort label-8328
SELECT - MAX ( - - col1 ) FROM tab0 cor0
----
-81

onlyif mysql # aggregate syntax: 
query II rowsort label-8329
SELECT 95 AS col0, - COUNT( * ) + + 57 FROM tab2 AS cor0
----
95
54

skipif mysql # not compatible
query II rowsort label-8329
SELECT 95 AS col0, - COUNT ( * ) + + 57 FROM tab2 AS cor0
----
95
54

onlyif mysql # DIV for integer division: 
query I rowsort label-8330
SELECT ALL + col0 DIV col1 col2 FROM tab2
----
0
0
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8330
SELECT ALL + col0 / col1 col2 FROM tab2
----
0
0
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8331
SELECT ALL - col2 * + 52 + + CAST( - col2 AS SIGNED ) * + + col2 AS col0 FROM tab2
----
-1725
-3680
-6380

skipif mysql # not compatible
query I rowsort label-8331
SELECT ALL - col2 * + 52 + + CAST ( - col2 AS INTEGER ) * + + col2 AS col0 FROM tab2
----
-1725
-3680
-6380

query I rowsort
SELECT ALL 78 * + col0 FROM tab0
----
1170
6786
7566

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8333
SELECT DISTINCT MIN( DISTINCT CAST( NULL AS SIGNED ) ) * CAST( NULL AS SIGNED ) + - COUNT( ALL - + col2 ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8333
SELECT DISTINCT MIN ( DISTINCT CAST ( NULL AS INTEGER ) ) * CAST ( NULL AS INTEGER ) + - COUNT ( ALL - + col2 ) AS col0 FROM tab1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8334
SELECT + 53 * + col1 + + + CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8334
SELECT + 53 * + col1 + + + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT col2 * + + col0 + col1 FROM tab1
----
4910
5020
6235

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - col0 ) + - col0 col1 FROM tab0
----
-174
-194
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-8337
SELECT ( - - SUM( - col2 ) ) FROM tab1 AS cor0
----
-223

skipif mysql # not compatible
query I rowsort label-8337
SELECT ( - - SUM ( - col2 ) ) FROM tab1 AS cor0
----
-223

onlyif mysql # aggregate syntax: 
query I rowsort label-8338
SELECT ALL - COUNT( ALL col1 ) - - ( 89 ) AS col2 FROM tab0 AS cor0
----
86

skipif mysql # not compatible
query I rowsort label-8338
SELECT ALL - COUNT ( ALL col1 ) - - ( 89 ) AS col2 FROM tab0 AS cor0
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-8339
SELECT - SUM( + 3 ) FROM tab1 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-8339
SELECT - SUM ( + 3 ) FROM tab1 AS cor0
----
-9

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + ( col2 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT + 19 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-8342
SELECT ALL - COUNT( * ) AS col2 FROM tab2, tab2 cor0
----
-9

skipif mysql # not compatible
query I rowsort label-8342
SELECT ALL - COUNT ( * ) AS col2 FROM tab2, tab2 cor0
----
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-8343
SELECT 7 DIV col2 - + col0 FROM tab2
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-8343
SELECT 7 / col2 - + col0 FROM tab2
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query II rowsort label-8344
SELECT COUNT( + col1 ) AS col2, + COUNT( * ) FROM tab2 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-8344
SELECT COUNT ( + col1 ) AS col2, + COUNT ( * ) FROM tab2 AS cor0
----
3
3

onlyif mysql # DIV for integer division: 
query I rowsort label-8345
SELECT col2 DIV + col1 FROM tab0 cor0
----
0
0
99

skipif mysql # not compatible
query I rowsort label-8345
SELECT col2 / + col1 FROM tab0 cor0
----
0
0
99

onlyif mysql # aggregate syntax: 
query I rowsort label-8346
SELECT DISTINCT + COUNT( + col1 ) AS col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8346
SELECT DISTINCT + COUNT ( + col1 ) AS col0 FROM tab2 AS cor0
----
3

query I rowsort
SELECT ALL + col1 * 33 AS col0 FROM tab1 AS cor0
----
1551
165
462

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 5 col0, col2 * - col1 AS col1 FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8349
SELECT ALL CAST( NULL AS SIGNED ), col1 AS col0 FROM tab2
----
NULL
51
NULL
67
NULL
77

skipif mysql # not compatible
query II rowsort label-8349
SELECT ALL CAST ( NULL AS INTEGER ), col1 AS col0 FROM tab2
----
NULL
51
NULL
67
NULL
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2 col1, + 14 * col2 * col1 + + col2 FROM tab2
----
23
16445
40
43160
58
54462

query I rowsort
SELECT DISTINCT - ( 45 ) * + - col2 FROM tab1
----
2655
3060
4320

query II rowsort
SELECT ALL + col0, - ( 73 ) + - 73 AS col1 FROM tab2
----
46
-146
64
-146
75
-146

onlyif mysql # aggregate syntax: 
query I rowsort label-8353
SELECT - MIN( DISTINCT - col1 ) * - 0 AS col0 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-8353
SELECT - MIN ( DISTINCT - col1 ) * - 0 AS col0 FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8354
SELECT COUNT( DISTINCT 3 ) AS col0 FROM tab1 cor0
----
1

skipif mysql # not compatible
query I rowsort label-8354
SELECT COUNT ( DISTINCT 3 ) AS col0 FROM tab1 cor0
----
1

query I rowsort
SELECT ALL + - ( 6 ) AS col0 FROM tab0 AS cor0
----
-6
-6
-6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-8356
SELECT - 81 DIV - + COUNT( DISTINCT CAST( CAST( - col0 AS DECIMAL ) AS SIGNED ) ) FROM tab0 cor0
----
27

skipif mysql # not compatible
query I rowsort label-8356
SELECT - 81 / - + COUNT ( DISTINCT CAST ( CAST ( - col0 AS REAL ) AS INTEGER ) ) FROM tab0 cor0
----
27

query I rowsort
SELECT 21 FROM tab1 cor0
----
21
21
21

onlyif mysql # aggregate syntax: 
query I rowsort label-8358
SELECT ALL - - 64 * COUNT( * ) + COUNT( * ) col1 FROM tab1 AS cor0
----
195

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8358
SELECT ALL - - 64 * COUNT ( * ) + COUNT ( * ) col1 FROM tab1 AS cor0
----
195

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 AS col1, - ( + ( 59 ) ) col0 FROM tab0 AS cor0
----
15
-59
87
-59
97
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-8360
SELECT DISTINCT - ( - - MIN( DISTINCT - col1 ) ) AS col0 FROM tab1
----
47

skipif mysql # not compatible
query I rowsort label-8360
SELECT DISTINCT - ( - - MIN ( DISTINCT - col1 ) ) AS col0 FROM tab1
----
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8361
SELECT ALL 87 + - + CAST( NULL AS SIGNED ) AS col0, COUNT( DISTINCT + - col0 ) FROM tab1
----
NULL
3

skipif mysql # not compatible
query II rowsort label-8361
SELECT ALL 87 + - + CAST ( NULL AS INTEGER ) AS col0, COUNT ( DISTINCT + - col0 ) FROM tab1
----
NULL
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8362
SELECT DISTINCT + COUNT( * ) + - MAX( + col1 ) col1 FROM tab1 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8362
SELECT DISTINCT + COUNT ( * ) + - MAX ( + col1 ) col1 FROM tab1 WHERE NULL IS NOT NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + - 73 col2 FROM tab2 AS cor0
----
-27
-9
2

query I rowsort
SELECT - col1 + + ( col2 ) + - + 1 FROM tab2 AS cor0
----
-10
-29
-38

query II rowsort
SELECT + 53 + - + 11, ( - col2 ) AS col0 FROM tab1 AS cor0 WHERE ( 61 ) IS NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 1 + + - 38 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8367
SELECT ALL ( - col1 ) DIV col1 FROM tab0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-8367
SELECT ALL ( - col1 ) / col1 FROM tab0
----
-1
-1
-1

query I rowsort
SELECT DISTINCT - col0 * col0 + + ( + - col0 ) FROM tab2
----
-2162
-4160
-5700

query I rowsort
SELECT ALL - col2 + - 39 AS col1 FROM tab2
----
-62
-79
-97

query III rowsort
SELECT * FROM tab1 WHERE + + 23 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8371
SELECT + CAST( + col2 AS SIGNED ) * - col1 FROM tab2
----
-1173
-3080
-3886

skipif mysql # not compatible
query I rowsort label-8371
SELECT + CAST ( + col2 AS INTEGER ) * - col1 FROM tab2
----
-1173
-3080
-3886

query I rowsort
SELECT ALL col2 * col0 + - col1 AS col0 FROM tab1
----
4882
5010
6141

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL NOT BETWEEN - col0 AND NULL
----

query I rowsort
SELECT - col2 - - 80 FROM tab0 AS cor0
----
-19
33
70

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + col0 >= + col0 - 63
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - + col1 * + + col2 AS col0 FROM tab0 AS cor0
----
-210
-3807
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-8377
SELECT ALL - + COUNT( + + 25 ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8377
SELECT ALL - + COUNT ( + + 25 ) FROM tab0 AS cor0
----
-3

query II rowsort
SELECT + 62 AS col2, + 66 * 66 FROM tab0 AS cor0
----
62
4356
62
4356
62
4356

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( 62 IS NOT NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT DISTINCT col2 AS col2, - 55 * + 77 AS col0 FROM tab1 AS cor0
----
59
-4235
68
-4235
96
-4235

onlyif mysql # aggregate syntax: 
query I rowsort label-8381
SELECT + SUM( + - col1 ) FROM tab0
----
-103

skipif mysql # not compatible
query I rowsort label-8381
SELECT + SUM ( + - col1 ) FROM tab0
----
-103

query III rowsort
SELECT * FROM tab1 WHERE NOT ( + + col1 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8383
SELECT ALL + MIN( DISTINCT - + 18 ) FROM tab2
----
-18

skipif mysql # not compatible
query I rowsort label-8383
SELECT ALL + MIN ( DISTINCT - + 18 ) FROM tab2
----
-18

query I rowsort
SELECT - 11 * - col2 AS col1 FROM tab2
----
253
440
638

onlyif mysql # aggregate syntax: 
query I rowsort label-8385
SELECT DISTINCT + MAX( ALL col1 ) AS col0 FROM tab1
----
47

skipif mysql # not compatible
query I rowsort label-8385
SELECT DISTINCT + MAX ( ALL col1 ) AS col0 FROM tab1
----
47

query I rowsort
SELECT DISTINCT ( + - 27 ) * col0 FROM tab0
----
-2349
-2619
-405

query II rowsort
SELECT ALL + col1 * - - 69 AS col2, - col1 AS col0 FROM tab0 AS cor0
----
1449
-21
5589
-81
69
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8388
SELECT DISTINCT 31 * + + COUNT( * ) * - COUNT( * ) AS col0 FROM tab2 AS cor0
----
-279

skipif mysql # not compatible
query I rowsort label-8388
SELECT DISTINCT 31 * + + COUNT ( * ) * - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-279

query I rowsort
SELECT + 89 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 5c8428e9f1e7de3d09cb0814b4cc1743

query I rowsort
SELECT 5 * + - 27 AS col2 FROM tab1
----
-135
-135
-135

query I rowsort
SELECT ALL col0 * - col2 * + + col1 AS col1 FROM tab0
----
-18270
-57105
-9603

query I rowsort
SELECT ALL - col1 + 89 * - col1 AS col0 FROM tab0 AS cor0
----
-1890
-7290
-90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8393
SELECT DISTINCT - col0 + + - col0 * - col0 - + col2 + - CAST( + 86 AS SIGNED ) + - + 24 FROM tab0 AS cor0
----
53
7362
9103

skipif mysql # not compatible
query I rowsort label-8393
SELECT DISTINCT - col0 + + - col0 * - col0 - + col2 + - CAST ( + 86 AS INTEGER ) + - + 24 FROM tab0 AS cor0
----
53
7362
9103

query II rowsort
SELECT col2, col0 - - - ( col1 ) * - col2 AS col0 FROM tab2 AS cor0
----
23
1219
40
3144
58
3961

onlyif mysql # aggregate syntax: 
query I rowsort label-8395
SELECT SUM( ALL 28 ) FROM tab1 AS cor0
----
84

skipif mysql # not compatible
query I rowsort label-8395
SELECT SUM ( ALL 28 ) FROM tab1 AS cor0
----
84

query I rowsort
SELECT - - col2 + - col1 FROM tab1 AS cor0 WHERE col1 IS NOT NULL
----
21
54
82

query I rowsort
SELECT - - col0 - + 88 * + - col2 AS col0 FROM tab1 cor0
----
5277
6075
8499

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * + + col2 - + col0 col1 FROM tab2 AS cor0
----
-1219
-3144
-3961

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8399
SELECT + col1 + + CAST( NULL AS DECIMAL ) * + col0 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8399
SELECT + col1 + + CAST ( NULL AS REAL ) * + col0 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + - col1 - + 10 FROM tab1 AS cor0
----
-15
-24
-57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8401
SELECT ALL - 13 * 18 * - CAST( NULL AS SIGNED ) + col0 AS col2 FROM tab0 WHERE - col0 * col2 * 94 = NULL
----

skipif mysql # not compatible
query I rowsort label-8401
SELECT ALL - 13 * 18 * - CAST ( NULL AS INTEGER ) + col0 AS col2 FROM tab0 WHERE - col0 * col2 * 94 = NULL
----

query I rowsort
SELECT + col1 * col1 FROM tab2 WHERE + col2 + - - 8 <= NULL
----

query I rowsort
SELECT + 18 + + col1 AS col2 FROM tab2 WHERE - 36 <> - col0
----
69
85
95

onlyif mysql # aggregate syntax: 
query I rowsort label-8404
SELECT DISTINCT - ( - - 28 ) + - COUNT( * ) AS col1 FROM tab1
----
-31

skipif mysql # not compatible
query I rowsort label-8404
SELECT DISTINCT - ( - - 28 ) + - COUNT ( * ) AS col1 FROM tab1
----
-31

query I rowsort
SELECT ALL + ( + - col0 ) - - + 32 AS col0 FROM tab1 AS cor0
----
-19
-53
-59

query I rowsort
SELECT DISTINCT + 25 * col2 - - col2 * - col1 AS col0 FROM tab0 AS cor0
----
-2632
2376
40

query I rowsort
SELECT + col2 AS col1 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8408
SELECT + MIN( DISTINCT + col2 ) col0 FROM tab0 AS cor0
----
10

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8408
SELECT + MIN ( DISTINCT + col2 ) col0 FROM tab0 AS cor0
----
10

query II rowsort
SELECT ALL + + 59, + col2 AS col2 FROM tab0 AS cor0 WHERE NULL >= ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8410
SELECT ALL * FROM tab2 AS cor0 WHERE col0 + 9 + 53 + - 86 * - col2 / CAST( - col1 AS SIGNED ) + + col1 * col0 < - 39
----

skipif mysql # not compatible
query III rowsort label-8410
SELECT ALL * FROM tab2 AS cor0 WHERE col0 + 9 + 53 + - 86 * - col2 / CAST ( - col1 AS INTEGER ) + + col1 * col0 < - 39
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8411
SELECT - 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-8411
SELECT - CAST ( col2 AS INTEGER ) col2 FROM tab0
----
-10
-47
-99

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL <= + + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8413
SELECT DISTINCT ( - col0 ) + - CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8413
SELECT DISTINCT ( - col0 ) + - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE col2 * col0 NOT BETWEEN + col1 AND - col1 * - col2
----
75
67
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + + col2 + - 86 * + 97 * + + 31 col1 FROM tab2
----
-258486
-258522
-258556

query I rowsort
SELECT DISTINCT col0 + + 63 * + 42 + col1 AS col1 FROM tab1
----
2711
2736
2784

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN ( NULL ) AND - + col2 * + col2 * - col0 * - 93 - - + col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8418
SELECT col2 DIV col2 * + 36 FROM tab0 AS cor0
----
36
36
36

skipif mysql # not compatible
query I rowsort label-8418
SELECT col2 / col2 * + 36 FROM tab0 AS cor0
----
36
36
36

query II rowsort
SELECT ALL - col1, col1 AS col0 FROM tab2 AS cor0
----
-51
51
-67
67
-77
77

query I rowsort
SELECT DISTINCT + ( + 39 ) AS col2 FROM tab1 AS cor0
----
39

query I rowsort
SELECT DISTINCT col2 + + col2 + + ( col1 ) / - col2 * + col0 / + - col0 AS col1 FROM tab0 AS cor0 WHERE NOT NULL >= NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8422
SELECT + + COUNT( * ) + CAST( NULL AS SIGNED ) AS col2 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-8422
SELECT + + COUNT ( * ) + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
NULL

query I rowsort
SELECT 37 * col1 + - 51 FROM tab2
----
1836
2428
2798

onlyif mysql # aggregate syntax: 
query I rowsort label-8424
SELECT 5 + + + COUNT( * ) AS col0 FROM tab2 AS cor0
----
8

skipif mysql # not compatible
query I rowsort label-8424
SELECT 5 + + + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
8

query I rowsort
SELECT DISTINCT col2 AS col2 FROM tab1 AS cor0 WHERE NULL < col0 - col0
----

query I rowsort
SELECT ALL + col1 + + - 21 * 18 FROM tab1 AS cor0
----
-331
-364
-373

query I rowsort
SELECT DISTINCT + 23 + - ( + + ( + col0 ) ) FROM tab0 AS cor0
----
-64
-74
8

query I rowsort
SELECT DISTINCT - 67 AS col2 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
-67

query I rowsort
SELECT ALL + 13 AS col1 FROM tab0 AS cor0 WHERE NULL <> NULL
----

query I rowsort
SELECT + col2 AS col1 FROM tab0 WHERE NULL > col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8431
SELECT 74 * + CAST( + - col0 AS SIGNED ) AS col1 FROM tab0
----
-1110
-6438
-7178

skipif mysql # not compatible
query I rowsort label-8431
SELECT 74 * + CAST ( + - col0 AS INTEGER ) AS col1 FROM tab0
----
-1110
-6438
-7178

query I rowsort
SELECT + 33 - - + col2 AS col0 FROM tab2
----
56
73
91

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col2 >= - - col0 + 0 * - 71
----
85
5
59
91
47
68

query I rowsort
SELECT ALL ( + 78 ) * - + 97 * + - col2 AS col2 FROM tab1
----
446394
514488
726336

onlyif mysql # aggregate syntax: 
query I rowsort label-8435
SELECT COUNT( * ) - 60 FROM tab0
----
-57

skipif mysql # not compatible
query I rowsort label-8435
SELECT COUNT ( * ) - 60 FROM tab0
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-8436
SELECT MAX( col0 ) - - 83 FROM tab1
----
174

skipif mysql # not compatible
query I rowsort label-8436
SELECT MAX ( col0 ) - - 83 FROM tab1
----
174

query I rowsort
SELECT DISTINCT 0 + - + 25 FROM tab0
----
-25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8438
SELECT ALL ( - CAST( - col0 AS SIGNED ) ) + col1 FROM tab0
----
108
96
98

skipif mysql # not compatible
query I rowsort label-8438
SELECT ALL ( - CAST ( - col0 AS INTEGER ) ) + col1 FROM tab0
----
108
96
98

query I rowsort
SELECT + - 18 + 0 FROM tab1 AS cor0
----
-18
-18
-18

query I rowsort
SELECT DISTINCT + + col0 FROM tab0 AS cor0 WHERE + 57 * + col0 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 8 col0 FROM tab1 AS cor0
----
-8
-8
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-8442
SELECT COUNT( DISTINCT 33 ) AS col0 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-8442
SELECT COUNT ( DISTINCT 33 ) AS col0 FROM tab1
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8443
SELECT SUM( DISTINCT - CAST( NULL AS SIGNED ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8443
SELECT SUM ( DISTINCT - CAST ( NULL AS INTEGER ) ) FROM tab1
----
NULL

query I rowsort
SELECT - 46 * - col0 AS col2 FROM tab2
----
2116
2944
3450

onlyif mysql # aggregate syntax: 
query I rowsort label-8445
SELECT DISTINCT SUM( DISTINCT + col1 ) col2 FROM tab2 cor0
----
195

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8445
SELECT DISTINCT SUM ( DISTINCT + col1 ) col2 FROM tab2 cor0
----
195

query I rowsort
SELECT ALL + 54 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8447
SELECT DISTINCT MIN( ALL + col1 ) / - 93 + - 29 FROM tab2 AS cor0 WHERE NULL >= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8447
SELECT DISTINCT MIN ( ALL + col1 ) / - 93 + - 29 FROM tab2 AS cor0 WHERE NULL >= NULL
----
NULL

query I rowsort
SELECT - 4 * + 64 AS col1 FROM tab2
----
-256
-256
-256

onlyif mysql # aggregate syntax: 
query I rowsort label-8449
SELECT ( SUM( - - col2 ) ) FROM tab2
----
121

skipif mysql # not compatible
query I rowsort label-8449
SELECT ( SUM ( - - col2 ) ) FROM tab2
----
121

query II rowsort
SELECT ALL + 94 * - + ( + + col1 ) AS col1, 21 AS col0 FROM tab1
----
-1316
21
-4418
21
-470
21

query I rowsort
SELECT - 40 * - col1 + col0 * 37 FROM tab0
----
3629
3795
4059

query I rowsort
SELECT ALL - 67 + + 91 * - - col1 AS col1 FROM tab0
----
1844
24
7304

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col2 + 76 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( - col2 / col0 ) <= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8455
SELECT ALL + ( 28 ) * col2 DIV col2 + + col2 + + col2 AS col1 FROM tab0 AS cor0
----
122
226
48

skipif mysql # not compatible
query I rowsort label-8455
SELECT ALL + ( 28 ) * col2 / col2 + + col2 + + col2 AS col1 FROM tab0 AS cor0
----
122
226
48

query II rowsort
SELECT ALL 37 + col0 AS col2, 22 AS col1 FROM tab1
----
122
22
128
22
88
22

onlyif mysql # aggregate syntax: 
query I rowsort label-8457
SELECT DISTINCT + - COUNT( - col2 ) + - + 26 FROM tab0 cor0
----
-29

skipif mysql # not compatible
query I rowsort label-8457
SELECT DISTINCT + - COUNT ( - col2 ) + - + 26 FROM tab0 cor0
----
-29

query I rowsort
SELECT ALL - col0 - - 89 - + - col1 * col0 + + 50 FROM tab2 AS cor0
----
2439
5003
5089

onlyif mysql # aggregate syntax: 
query I rowsort label-8459
SELECT ALL + COUNT( * ) - - 71 AS col2 FROM tab2 AS cor0
----
74

skipif mysql # not compatible
query I rowsort label-8459
SELECT ALL + COUNT ( * ) - - 71 AS col2 FROM tab2 AS cor0
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-8460
SELECT ALL - + ( COUNT( + col2 ) ) + - + MAX( ALL + 60 ) FROM tab1 AS cor0
----
-63

skipif mysql # not compatible
query I rowsort label-8460
SELECT ALL - + ( COUNT ( + col2 ) ) + - + MAX ( ALL + 60 ) FROM tab1 AS cor0
----
-63

query I rowsort
SELECT col1 + + 86 * - - col0 AS col2 FROM tab0 AS cor0
----
1371
7503
8343

onlyif mysql # DIV for integer division: 
query I rowsort label-8462
SELECT ALL - 8 * 57 - + + 73 + + col1 DIV + 38 - - + col1 FROM tab0 AS cor0
----
-446
-508
-528

skipif mysql # not compatible
query I rowsort label-8462
SELECT ALL - 8 * 57 - + + 73 + + col1 / + 38 - - + col1 FROM tab0 AS cor0
----
-446
-508
-528

query II rowsort
SELECT ALL col1 * + 27 AS col0, col0 FROM tab1
----
1269
91
135
85
378
51

query I rowsort
SELECT col0 + + col1 + - + col0 + - + 9 AS col0 FROM tab1
----
-4
38
5

query I rowsort
SELECT DISTINCT col2 - 91 AS col2 FROM tab2
----
-33
-51
-68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8466
SELECT 92 * CAST( NULL AS SIGNED ) / - ( - col1 ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8466
SELECT 92 * CAST ( NULL AS INTEGER ) / - ( - col1 ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8467
SELECT ALL + - CAST( NULL AS DECIMAL ) FROM tab2, tab2 AS cor0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-8467
SELECT ALL + - CAST ( NULL AS REAL ) FROM tab2, tab2 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8468
SELECT ALL + - CAST( NULL AS SIGNED ) col0 FROM tab1 WHERE NOT - - col1 > - + ( col2 )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8468
SELECT ALL + - CAST ( NULL AS INTEGER ) col0 FROM tab1 WHERE NOT - - col1 > - + ( col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8469
SELECT DISTINCT COUNT( ALL + + 58 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-8469
SELECT DISTINCT COUNT ( ALL + + 58 ) FROM tab1
----
3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) <> - - col1
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col1 NOT BETWEEN 68 AND + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8472
SELECT + MIN( ALL - ( + ( + 81 ) ) ) AS col0 FROM tab2 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-8472
SELECT + MIN ( ALL - ( + ( + 81 ) ) ) AS col0 FROM tab2 AS cor0
----
-81

query II rowsort
SELECT ALL 10 * ( + - col1 ) * - col0 * - col0 + - 98, 64 AS col1 FROM tab0
----
-1589588
64
-182348
64
-94188
64

onlyif mysql # DIV for integer division: 
query I rowsort label-8474
SELECT col2 * col0 DIV - - ( 67 ) FROM tab0 AS cor0
----
10
12
143

skipif mysql # not compatible
query I rowsort label-8474
SELECT col2 * col0 / - - ( 67 ) FROM tab0 AS cor0
----
10
12
143

onlyif mysql # aggregate syntax: 
query II rowsort label-8475
SELECT DISTINCT - 82 AS col2, COUNT( * ) col0 FROM tab0 AS cor0 WHERE NOT 74 IS NULL
----
-82
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8475
SELECT DISTINCT - 82 AS col2, COUNT ( * ) col0 FROM tab0 AS cor0 WHERE NOT 74 IS NULL
----
-82
3

onlyif mysql # DIV for integer division: 
query I rowsort label-8476
SELECT col2 DIV + + 76 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-8476
SELECT col2 / + + 76 FROM tab0 AS cor0
----
0
0
1

query I rowsort
SELECT ALL - + ( - 32 ) * + col1 + + 39 AS col0 FROM tab2 AS cor0
----
1671
2183
2503

query I rowsort
SELECT + - col2 * - - 38 + - col1 + col1 AS col1 FROM tab0 cor0
----
-1786
-3762
-380

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL = - 90 + + + col1 * - - col2 + + col1 * + col1 * + - 52
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8480
SELECT DISTINCT ( SUM( - 55 ) ) FROM tab0 AS cor0
----
-165

skipif mysql # not compatible
query I rowsort label-8480
SELECT DISTINCT ( SUM ( - 55 ) ) FROM tab0 AS cor0
----
-165

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col1 * + 25 NOT BETWEEN col2 AND + col0 * - - 73
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8482
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - 60 + - CAST( - + col1 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-8482
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - 60 + - CAST ( - + col1 AS INTEGER ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8483
SELECT DISTINCT CAST( NULL AS SIGNED ) + - - 13 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8483
SELECT DISTINCT CAST ( NULL AS INTEGER ) + - - 13 FROM tab0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8484
SELECT + COUNT( * ) FROM tab0 WHERE NOT + CAST( NULL AS SIGNED ) - - col1 BETWEEN + col1 * + 77 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-8484
SELECT + COUNT ( * ) FROM tab0 WHERE NOT + CAST ( NULL AS INTEGER ) - - col1 BETWEEN + col1 * + 77 AND NULL
----
0

query III rowsort
SELECT * FROM tab1 WHERE NOT - col0 + + + 39 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT 29 AS col0 FROM tab2 WHERE - - col1 / + col0 IS NULL
----

query I rowsort
SELECT ALL col2 * - 49 * + col2 FROM tab0
----
-108241
-480249
-4900

query I rowsort
SELECT col1 * - + col0 AS col0 FROM tab1 WHERE - + col0 IN ( col2, - 18 * - col0 )
----

query I rowsort
SELECT DISTINCT - col0 * 89 + - 8 FROM tab1
----
-4547
-7573
-8107

onlyif mysql # aggregate syntax: 
query I rowsort label-8490
SELECT DISTINCT MAX( DISTINCT - 99 ) + + 95 col2 FROM tab0 WHERE NOT NULL <= - col2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8490
SELECT DISTINCT MAX ( DISTINCT - 99 ) + + 95 col2 FROM tab0 WHERE NOT NULL <= - col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8491
SELECT DISTINCT COUNT( * ) + - - 77 FROM tab1
----
80

skipif mysql # not compatible
query I rowsort label-8491
SELECT DISTINCT COUNT ( * ) + - - 77 FROM tab1
----
80

onlyif mysql # aggregate syntax: 
query II rowsort label-8492
SELECT - - ( - 57 ) AS col0, + COUNT( * ) AS col2 FROM tab0 AS cor0
----
-57
3

skipif mysql # not compatible
query II rowsort label-8492
SELECT - - ( - 57 ) AS col0, + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-57
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8493
SELECT - + CAST( NULL AS SIGNED ) / + col1 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8493
SELECT - + CAST ( NULL AS INTEGER ) / + col1 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col2 * - - col1 * + col1 * - col0 AS col0 FROM tab1 WHERE NOT - 97 - + + col2 IS NULL
----
125375
13669292
959616

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + + + col2 col1 FROM tab0
----
196
62
97

query III rowsort
SELECT * FROM tab1 WHERE 0 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 15 col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to d1d280d38bf9c2d5d5ec90dd43aeaffd

query I rowsort
SELECT ALL + 22 + + col1 - + col2 + + + 94 AS col0 FROM tab1
----
34
62
95

query I rowsort
SELECT ALL 92 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 516fa45c8b06f9f67d6e500bfd435c1a

query I rowsort
SELECT ALL 10 + - 20 FROM tab1 AS cor0
----
-10
-10
-10

onlyif mysql # DIV for integer division: 
query II rowsort label-8501
SELECT ALL + col2 + + - 58 + - ( - col2 ) DIV - ( - 94 ), + col2 FROM tab0 AS cor0
----
-11
47
-48
10
42
99

skipif mysql # not compatible
query II rowsort label-8501
SELECT ALL + col2 + + - 58 + - ( - col2 ) / - ( - 94 ), + col2 FROM tab0 AS cor0
----
-11
47
-48
10
42
99

onlyif mysql # aggregate syntax: 
query I rowsort label-8502
SELECT DISTINCT + 69 - MIN( col0 ) + - + COUNT( * ) - + 93 - ( COUNT( * ) ) col2 FROM tab2 AS cor0
----
-76

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8502
SELECT DISTINCT + 69 - MIN ( col0 ) + - + COUNT ( * ) - + 93 - ( COUNT ( * ) ) col2 FROM tab2 AS cor0
----
-76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8503
SELECT + 34 FROM tab1 AS cor0 WHERE CAST( NULL AS SIGNED ) / + - col0 + - + col2 < + + col0 + + + col1
----

skipif mysql # not compatible
query I rowsort label-8503
SELECT + 34 FROM tab1 AS cor0 WHERE CAST ( NULL AS INTEGER ) / + - col0 + - + col2 < + + col0 + + + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8504
SELECT ALL ( COUNT( * ) ) * + 58 FROM tab0 cor0
----
174

skipif mysql # not compatible
query I rowsort label-8504
SELECT ALL ( COUNT ( * ) ) * + 58 FROM tab0 cor0
----
174

query I rowsort
SELECT - + 6 - 36 AS col2 FROM tab2 AS cor0
----
-42
-42
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-8506
SELECT MAX( - + 28 ) FROM tab2
----
-28

skipif mysql # not compatible
query I rowsort label-8506
SELECT MAX ( - + 28 ) FROM tab2
----
-28

query I rowsort
SELECT + 52 * + 58 * 96 AS col2 FROM tab1
----
289536
289536
289536

query I rowsort
SELECT DISTINCT + ( - 49 ) AS col0 FROM tab0
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-8509
SELECT DISTINCT - - 99 * ( + - ( + COUNT( * ) ) ) AS col2 FROM tab1 AS cor0
----
-297

skipif mysql # not compatible
query I rowsort label-8509
SELECT DISTINCT - - 99 * ( + - ( + COUNT ( * ) ) ) AS col2 FROM tab1 AS cor0
----
-297

query I rowsort
SELECT ALL + - 72 * - - 24 + + col2 FROM tab1 AS cor0
----
-1632
-1660
-1669

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 65 * col1 col1 FROM tab2 AS cor0
----
3315
4355
5005

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8512
SELECT ALL col0 * + + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8512
SELECT ALL col0 * + + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8513
SELECT DISTINCT + COUNT( * ) * MAX( DISTINCT 66 ) * - COUNT( * ) FROM tab0 cor0
----
-594

skipif mysql # not compatible
query I rowsort label-8513
SELECT DISTINCT + COUNT ( * ) * MAX ( DISTINCT 66 ) * - COUNT ( * ) FROM tab0 cor0
----
-594

query I rowsort
SELECT + + 77 AS col1 FROM tab1 AS cor0
----
77
77
77

query I rowsort
SELECT col1 * - 88 * - col1 + - 48 - ( + 6 ) + col0 + - col0 * - col1 * col1 + + col2 * col2 FROM tab1 AS cor0 WHERE ( NULL ) NOT BETWEEN + - col0 AND - - 38 - - 95 + - + col0
----

query I rowsort
SELECT ALL + 2 * - 6 * + col1 FROM tab2 AS cor0
----
-612
-804
-924

query I rowsort
SELECT ALL + 27 * col2 + - col2 + + + 56 * - col1 * + col1 * col0 FROM tab1
----
-11255296
-117466
-557280

query II rowsort
SELECT + col0, col0 AS col1 FROM tab1
----
51
51
85
85
91
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8519
SELECT DISTINCT COUNT( * ) + - - CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8519
SELECT DISTINCT COUNT ( * ) + - - CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL

query I rowsort
SELECT 70 * + - col2 + - + 0 FROM tab1
----
-4130
-4760
-6720

query I rowsort
SELECT - 25 + + col1 FROM tab1
----
-11
-20
22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8522
SELECT ALL ( SUM( DISTINCT - - CAST( NULL AS SIGNED ) ) ) + + ( + - MIN( + 23 ) ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8522
SELECT ALL ( SUM ( DISTINCT - - CAST ( NULL AS INTEGER ) ) ) + + ( + - MIN ( + 23 ) ) FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT 79 + + col2 + + col0 * + + col2 AS col1 FROM tab2
----
1160
2679
4487

query I rowsort
SELECT DISTINCT - 7 AS col2 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col0 * - col0 = NULL
----

query I rowsort
SELECT 65 * 39 FROM tab1 AS cor0
----
2535
2535
2535

onlyif mysql # DIV for integer division: 
query I rowsort label-8527
SELECT - - 52 DIV - col1 FROM tab0 AS cor0
----
-2
-52
0

skipif mysql # not compatible
query I rowsort label-8527
SELECT - - 52 / - col1 FROM tab0 AS cor0
----
-2
-52
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8528
SELECT ALL - col1 * + col0 * col1 + - 60 + + 41 DIV + 72 AS col0 FROM tab1 AS cor0 WHERE NOT - 45 IS NULL
----
-10056
-201079
-2185

skipif mysql # not compatible
query I rowsort label-8528
SELECT ALL - col1 * + col0 * col1 + - 60 + + 41 / + 72 AS col0 FROM tab1 AS cor0 WHERE NOT - 45 IS NULL
----
-10056
-201079
-2185

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT 33 < NULL
----

query I rowsort
SELECT DISTINCT ( 12 ) AS col1 FROM tab2 WHERE NOT + ( 7 ) IS NOT NULL
----

query I rowsort
SELECT - 48 FROM tab0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT + 76 - col1 FROM tab1 WHERE NULL IS NULL
----
29
62
71

query I rowsort
SELECT - ( 52 ) FROM tab1
----
-52
-52
-52

query III rowsort
SELECT * FROM tab2 WHERE col1 + - 59 <> col2 / col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + 23 * + col0 AS col0 FROM tab1
----
1173
1955
2093

query I rowsort
SELECT ALL + 46 * col1 AS col1 FROM tab0
----
3726
46
966

query III rowsort
SELECT * FROM tab2 WHERE - 35 > NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE 10 + col1 / 51 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8539
SELECT col1 DIV 85 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8539
SELECT col1 / 85 FROM tab1
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8540
SELECT CAST( NULL AS SIGNED ) / - 50 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8540
SELECT CAST ( NULL AS INTEGER ) / - 50 FROM tab2
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 col2 FROM tab2 WHERE + 75 * + col0 < + 26 * col2
----

query I rowsort
SELECT ALL - col0 * + 47 AS col1 FROM tab1 WHERE ( NULL ) <> 69
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8543
SELECT 70 * COUNT( * ) FROM tab2
----
210

skipif mysql # not compatible
query I rowsort label-8543
SELECT 70 * COUNT ( * ) FROM tab2
----
210

query I rowsort
SELECT 39 - + 52 FROM tab2
----
-13
-13
-13

query I rowsort
SELECT DISTINCT + 12 + - ( col2 ) AS col2 FROM tab1
----
-47
-56
-84

query I rowsort
SELECT - 48 AS col2 FROM tab1 WHERE NOT - col0 BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8547
SELECT DISTINCT CAST( 92 AS SIGNED ) * + COUNT( * ) col1 FROM tab1 WHERE NULL BETWEEN ( NULL ) AND + col0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8547
SELECT DISTINCT CAST ( 92 AS INTEGER ) * + COUNT ( * ) col1 FROM tab1 WHERE NULL BETWEEN ( NULL ) AND + col0
----
0

query I rowsort
SELECT 62 FROM tab0 WHERE NOT NULL NOT BETWEEN - col1 AND 7 - + col2 * + col2
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8549
SELECT ALL 87 DIV COUNT( * ) FROM tab0
----
29

skipif mysql # not compatible
query I rowsort label-8549
SELECT ALL 87 / COUNT ( * ) FROM tab0
----
29

query III rowsort
SELECT * FROM tab2 WHERE + 32 <> NULL
----

query I rowsort
SELECT 1 FROM tab1 WHERE + col2 + col0 * 61 BETWEEN + 71 * col0 AND ( col0 / col1 - + col1 * - col2 )
----

query I rowsort
SELECT ALL 21 + - 2 AS col0 FROM tab2
----
19
19
19

query I rowsort
SELECT 94 + col2 FROM tab2
----
117
134
152

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT 2 * + col2 NOT IN ( + col2 + + col0 * col1 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8555
SELECT ALL - SUM( ALL + ( - CAST( NULL AS SIGNED ) ) ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8555
SELECT ALL - SUM ( ALL + ( - CAST ( NULL AS INTEGER ) ) ) AS col2 FROM tab1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8556
SELECT * FROM tab0 WHERE ( + col2 ) NOT IN ( + 14 * CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-8556
SELECT * FROM tab0 WHERE ( + col2 ) NOT IN ( + 14 * CAST ( NULL AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8557
SELECT + COUNT( * ) + 89 FROM tab1
----
92

skipif mysql # not compatible
query I rowsort label-8557
SELECT + COUNT ( * ) + 89 FROM tab1
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-8558
SELECT DISTINCT - SUM( ALL 95 ) FROM tab2 WHERE NOT col2 BETWEEN ( NULL ) AND - col2 * col1
----
-285

skipif mysql # not compatible
query I rowsort label-8558
SELECT DISTINCT - SUM ( ALL 95 ) FROM tab2 WHERE NOT col2 BETWEEN ( NULL ) AND - col2 * col1
----
-285

query I rowsort
SELECT DISTINCT 8 + - 89 FROM tab0 WHERE ( 91 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8560
SELECT ALL + COUNT( * ) + 58 AS col0 FROM tab0
----
61

skipif mysql # not compatible
query I rowsort label-8560
SELECT ALL + COUNT ( * ) + 58 AS col0 FROM tab0
----
61

query I rowsort
SELECT - col2 * 9 AS col1 FROM tab2 AS cor0
----
-207
-360
-522

onlyif mysql # aggregate syntax: 
query I rowsort label-8562
SELECT DISTINCT + MIN( ALL col2 ) AS col0 FROM tab1 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-8562
SELECT DISTINCT + MIN ( ALL col2 ) AS col0 FROM tab1 AS cor0
----
59

query I rowsort
SELECT ALL col0 FROM tab1 cor0 WHERE NOT col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8564
SELECT DISTINCT + COUNT( * ) * 21 col1 FROM tab0 AS cor0
----
63

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8564
SELECT DISTINCT + COUNT ( * ) * 21 col1 FROM tab0 AS cor0
----
63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8565
SELECT MAX( ALL col2 ) * 30 AS col0 FROM tab2 AS cor0 WHERE NOT + col2 IN ( CAST( NULL AS DECIMAL ) + + ( + CAST( - col2 AS SIGNED ) ) / + col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8565
SELECT MAX ( ALL col2 ) * 30 AS col0 FROM tab2 AS cor0 WHERE NOT + col2 IN ( CAST ( NULL AS REAL ) + + ( + CAST ( - col2 AS INTEGER ) ) / + col2 )
----
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE ( col2 ) = ( 20 * + col1 )
----

query I rowsort
SELECT ALL + col1 * + col1 + col1 AS col1 FROM tab2
----
2652
4556
6006

query I rowsort
SELECT DISTINCT 35 + + col2 AS col0 FROM tab1
----
103
131
94

query I rowsort
SELECT - 13 / + col0 AS col0 FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( - col0 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 66 * col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col2 + + 13 * 0 FROM tab2 AS cor0
----
-23
-40
-58

query I rowsort
SELECT + 72 + + 63 AS col0 FROM tab0 AS cor0
----
135
135
135

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8573
SELECT + CAST( + col1 AS SIGNED ) * col1 AS col1 FROM tab2 cor0
----
2601
4489
5929

skipif mysql # not compatible
query I rowsort label-8573
SELECT + CAST ( + col1 AS INTEGER ) * col1 AS col1 FROM tab2 cor0
----
2601
4489
5929

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL <> ( NULL )
----

query III rowsort
SELECT * FROM tab2 WHERE col0 > ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col1 IS NULL OR NULL IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8577
SELECT - 9 * - COUNT( * ) FROM tab1
----
27

skipif mysql # not compatible
query I rowsort label-8577
SELECT - 9 * - COUNT ( * ) FROM tab1
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-8578
SELECT ALL + SUM( + 45 ) FROM tab1 WHERE NOT ( + 21 - - col2 ) < ( - 86 * + col1 )
----
135

skipif mysql # not compatible
query I rowsort label-8578
SELECT ALL + SUM ( + 45 ) FROM tab1 WHERE NOT ( + 21 - - col2 ) < ( - 86 * + col1 )
----
135

query I rowsort
SELECT ALL col0 * + col2 + col2 AS col1 FROM tab2
----
1081
2600
4408

onlyif mysql # DIV for integer division: 
query I rowsort label-8580
SELECT DISTINCT 70 DIV - - col0 + col1 * 23 AS col0 FROM tab0
----
1867
23
483

skipif mysql # not compatible
query I rowsort label-8580
SELECT DISTINCT 70 / - - col0 + col1 * 23 AS col0 FROM tab0
----
1867
23
483

query I rowsort
SELECT DISTINCT + 84 + 86 FROM tab2 WHERE NULL <> ( + ( col2 ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8582
SELECT * FROM tab0 AS cor0 WHERE + col1 < ( ( CAST( NULL AS SIGNED ) ) )
----

skipif mysql # not compatible
query III rowsort label-8582
SELECT * FROM tab0 AS cor0 WHERE + col1 < ( ( CAST ( NULL AS INTEGER ) ) )
----

query I rowsort
SELECT DISTINCT + 45 * 89 * 27 - + col0 * 71 FROM tab1 AS cor0
----
101674
102100
104514

onlyif mysql # aggregate syntax: 
query I rowsort label-8584
SELECT 69 - - COUNT( * ) AS col1 FROM tab1 AS cor0
----
72

skipif mysql # not compatible
query I rowsort label-8584
SELECT 69 - - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
72

query I rowsort
SELECT - 13 + col1 FROM tab2 AS cor0
----
38
54
64

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 - - + col1 col0 FROM tab2 AS cor0
----
28
37
9

query I rowsort
SELECT + 77 AS col0 FROM tab1 cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 051bf10c50e061d74ad0a4d205a1c622

query I rowsort
SELECT DISTINCT + + 62 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
62

query I rowsort
SELECT col2 + - 15 AS col1 FROM tab0
----
-5
32
84

query I rowsort
SELECT ALL - 51 * + 6 FROM tab2
----
-306
-306
-306

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-8591
SELECT * FROM tab2 WHERE ( - 39 NOT IN ( CAST( NULL AS DECIMAL ) * CAST( NULL AS SIGNED ) ) )
----

skipif mysql # not compatible
query III rowsort label-8591
SELECT * FROM tab2 WHERE ( - 39 NOT IN ( CAST ( NULL AS REAL ) * CAST ( NULL AS INTEGER ) ) )
----

query I rowsort
SELECT DISTINCT col2 + + + col0 AS col0 FROM tab0
----
196
62
97

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( col1 * + col0 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8594
SELECT ALL - CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8594
SELECT ALL - CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col2 * - 5 * - + col2 + - col2 FROM tab2 AS cor0
----
16762
2622
7960

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col0 * col1 * col2 BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL + col2 * - ( - col1 ) FROM tab1 AS cor0 WHERE NULL NOT IN ( + 69 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 9 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8599
SELECT DISTINCT - COUNT( * ) * 90 AS col0 FROM tab2 AS cor0
----
-270

skipif mysql # not compatible
query I rowsort label-8599
SELECT DISTINCT - COUNT ( * ) * 90 AS col0 FROM tab2 AS cor0
----
-270

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8600
SELECT ALL + - CAST( - 53 AS SIGNED ) FROM tab2 AS cor0
----
53
53
53

skipif mysql # not compatible
query I rowsort label-8600
SELECT ALL + - CAST ( - 53 AS INTEGER ) FROM tab2 AS cor0
----
53
53
53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8601
SELECT + ( CAST( + col1 AS SIGNED ) ) FROM tab2
----
51
67
77

skipif mysql # not compatible
query I rowsort label-8601
SELECT + ( CAST ( + col1 AS INTEGER ) ) FROM tab2
----
51
67
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8602
SELECT DISTINCT + + CAST( NULL AS SIGNED ) col0 FROM tab1 WHERE NULL >= col0
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8602
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) col0 FROM tab1 WHERE NULL >= col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8603
SELECT DISTINCT - COUNT( * ) FROM tab1 WHERE ( 29 + - 9 ) IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-8603
SELECT DISTINCT - COUNT ( * ) FROM tab1 WHERE ( 29 + - 9 ) IS NOT NULL
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8604
SELECT ( + + COUNT( - - col1 ) ) AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-8604
SELECT ( + + COUNT ( - - col1 ) ) AS col2 FROM tab2
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 50 * + col1 col0 FROM tab0
----
1050
4050
50

query I rowsort
SELECT DISTINCT - col1 FROM tab0 WHERE NULL <= col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * ( ( col1 ) ) col1 FROM tab1
----
196
2209
25

onlyif mysql # DIV for integer division: 
query I rowsort label-8608
SELECT DISTINCT - 17 DIV - 40 * + col2 col0 FROM tab2
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8608
SELECT DISTINCT - 17 / - 40 * + col2 col0 FROM tab2
----
0

query I rowsort
SELECT + AVG ( DISTINCT 30 ) + + 54 AS col2 FROM tab0 WHERE NOT NULL = ( - col1 )
----
NULL

query I rowsort
SELECT + col1 * - col1 + - 8 * col0 AS col0 FROM tab2 WHERE NOT ( col2 ) IN ( - col2 + ( + 44 + ( col0 + col0 ) ) )
----
-2969
-5089
-6441

onlyif mysql # DIV for integer division: 
query I rowsort label-8611
SELECT DISTINCT 15 DIV + col0 * - - 16 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-8611
SELECT DISTINCT 15 / + col0 * - - 16 FROM tab2
----
0

query III rowsort
SELECT * FROM tab2 WHERE NOT + col1 NOT BETWEEN + + 23 - col1 AND col1 * col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NOT + 68 BETWEEN NULL AND ( - 17 ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 76 col0 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-8615
SELECT ALL COUNT( * ) + + - 42 AS col1 FROM tab2 cor0
----
-39

skipif mysql # not compatible
query I rowsort label-8615
SELECT ALL COUNT ( * ) + + - 42 AS col1 FROM tab2 cor0
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-8616
SELECT ALL COUNT( col1 ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN - ( - 53 ) AND + 78 + - col2 * - col1
----
0

skipif mysql # not compatible
query I rowsort label-8616
SELECT ALL COUNT ( col1 ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN - ( - 53 ) AND + 78 + - col2 * - col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8617
SELECT + MAX( DISTINCT + col1 ) AS col2 FROM tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-8617
SELECT + MAX ( DISTINCT + col1 ) AS col2 FROM tab0 AS cor0
----
81

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8618
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN NULL AND + CAST( col2 AS SIGNED ) * - col2 + + col1
----

skipif mysql # not compatible
query III rowsort label-8618
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN NULL AND + CAST ( col2 AS INTEGER ) * - col2 + + col1
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL IN ( 94 / ( + 5 ) * - - col2 * - 47 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8620
SELECT DISTINCT + col0, CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
15
NULL
87
NULL
97
NULL

skipif mysql # not compatible
query II rowsort label-8620
SELECT DISTINCT + col0, CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
15
NULL
87
NULL
97
NULL

query II rowsort
SELECT DISTINCT + col1, + 13 FROM tab2 AS cor0
----
51
13
67
13
77
13

query II rowsort
SELECT ALL - - 89, col1 AS col2 FROM tab2 cor0 WHERE NOT 45 IS NULL
----
89
51
89
67
89
77

onlyif mysql # aggregate syntax: 
query I rowsort label-8623
SELECT - COUNT( 23 ) AS col1 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8623
SELECT - COUNT ( 23 ) AS col1 FROM tab0 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8624
SELECT ( + col2 ) + - 21 + col2 + + - CAST( NULL AS SIGNED ) / col2 - + col0 * col2 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8624
SELECT ( + col2 ) + - 21 + col2 + + - CAST ( NULL AS INTEGER ) / col2 - + col0 * col2 AS col1 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 WHERE ( NULL <= ( NULL ) )
----

query I rowsort
SELECT 18 + 10 + col0 FROM tab0
----
115
125
43

onlyif mysql # aggregate syntax: 
query I rowsort label-8627
SELECT ALL + MIN( + 43 ) FROM tab0
----
43

skipif mysql # not compatible
query I rowsort label-8627
SELECT ALL + MIN ( + 43 ) FROM tab0
----
43

query III rowsort
SELECT * FROM tab2 WHERE - col1 * + col0 NOT IN ( - 58 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - 40 + + col1 AS col2 FROM tab1
----
-26
-35
7

query III rowsort
SELECT * FROM tab0 WHERE NULL IN ( 19 + - col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 1 col1 FROM tab1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8632
SELECT DISTINCT 11 * + + COUNT( * ) + + 61 FROM tab0
----
94

skipif mysql # not compatible
query I rowsort label-8632
SELECT DISTINCT 11 * + + COUNT ( * ) + + 61 FROM tab0
----
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8633
SELECT ALL - col0 + col1 + CAST( + col2 AS SIGNED ) * col0 AS col0 FROM tab2 AS cor0
----
1063
2573
4342

skipif mysql # not compatible
query I rowsort label-8633
SELECT ALL - col0 + col1 + CAST ( + col2 AS INTEGER ) * col0 AS col0 FROM tab2 AS cor0
----
1063
2573
4342

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8634
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col1 > + + CAST( NULL AS SIGNED ) + + col1 + + 56
----

skipif mysql # not compatible
query III rowsort label-8634
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col1 > + + CAST ( NULL AS INTEGER ) + + col1 + + 56
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8635
SELECT DISTINCT - COUNT( DISTINCT + 91 ) * - - COUNT( * ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-8635
SELECT DISTINCT - COUNT ( DISTINCT + 91 ) * - - COUNT ( * ) FROM tab0
----
-3

query I rowsort
SELECT DISTINCT - - 9 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8637
SELECT ALL 23 FROM tab0 AS cor0 WHERE ( NULL ) = - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-8637
SELECT ALL 23 FROM tab0 AS cor0 WHERE ( NULL ) = - CAST ( NULL AS INTEGER )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( + col2 NOT BETWEEN col1 - col2 - ( 89 ) - ( - 24 + ( - ( col1 ) ) ) AND NULL )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8639
SELECT 17 DIV - MAX( DISTINCT ( - ( - - 8 ) ) ) AS col1 FROM tab0 AS cor0
----
2

skipif mysql # not compatible
query I rowsort label-8639
SELECT 17 / - MAX ( DISTINCT ( - ( - - 8 ) ) ) AS col1 FROM tab0 AS cor0
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8640
SELECT + AVG ( ALL - CAST( NULL AS SIGNED ) ) FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8640
SELECT + AVG ( ALL - CAST ( NULL AS INTEGER ) ) FROM tab0 cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 34 * col0 + col1 - + 28 col0 FROM tab0 AS cor0
----
-2965
-3325
-457

query I rowsort
SELECT ALL + 33 * + 85 FROM tab2
----
2805
2805
2805

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL NOT IN ( - col0, - col2 )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT col0 NOT BETWEEN - col2 AND - 79
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - - 98 IS NOT NULL
----

query I rowsort
SELECT ALL - col2 * 92 FROM tab1
----
-5428
-6256
-8832

query III rowsort
SELECT * FROM tab0 WHERE NOT - col1 + - 24 IS NOT NULL
----

query I rowsort
SELECT col2 * - + 84 * - 77 * + 16 AS col0 FROM tab1
----
6105792
7037184
9934848

query I rowsort
SELECT ALL - + col2 * + 23 FROM tab1 AS cor0
----
-1357
-1564
-2208

query I rowsort
SELECT DISTINCT + 23 FROM tab1 cor0
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-8651
SELECT ALL - - COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE 65 + + - 40 - col0 * - col1 BETWEEN NULL AND - col0
----
0

skipif mysql # not compatible
query I rowsort label-8651
SELECT ALL - - COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE 65 + + - 40 - col0 * - col1 BETWEEN NULL AND - col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8652
SELECT COUNT( 71 ) AS col1 FROM tab2, tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-8652
SELECT COUNT ( 71 ) AS col1 FROM tab2, tab1 AS cor0
----
9

query I rowsort
SELECT - ( - + 14 ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 83e5779d2487d12495e7d816c797264f

query II rowsort
SELECT + 28 + - - 72 AS col0, + col0 * - col0 FROM tab0
----
100
-225
100
-7569
100
-9409

onlyif mysql # aggregate syntax: 
query I rowsort label-8655
SELECT ALL + 28 * - COUNT( * ) * 33 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
-8316

skipif mysql # not compatible
query I rowsort label-8655
SELECT ALL + 28 * - COUNT ( * ) * 33 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
-8316

query I rowsort
SELECT - col0 + - col2 + + col0 + - - 38 * - - 37 FROM tab2 AS cor0
----
1348
1366
1383

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT + 52 / ( col1 ) NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8658
SELECT ALL ( - MIN( DISTINCT col0 ) ) AS col0 FROM tab1 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-8658
SELECT ALL ( - MIN ( DISTINCT col0 ) ) AS col0 FROM tab1 AS cor0
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-8659
SELECT DISTINCT MIN( DISTINCT + col0 ) - + - 70 FROM tab2 AS cor0
----
116

skipif mysql # not compatible
query I rowsort label-8659
SELECT DISTINCT MIN ( DISTINCT + col0 ) - + - 70 FROM tab2 AS cor0
----
116

query I rowsort
SELECT + col0 * 76 AS col2 FROM tab0 AS cor0
----
1140
6612
7372

query I rowsort
SELECT DISTINCT - 90 + + + col2 - + 42 AS col2 FROM tab1 AS cor0
----
-36
-64
-73

query I rowsort
SELECT DISTINCT 73 * - + 53 FROM tab1 WHERE NOT - + col2 NOT BETWEEN 29 AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8663
SELECT 5 - + + CAST( NULL AS SIGNED ) * - MAX( ALL - col2 ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8663
SELECT 5 - + + CAST ( NULL AS INTEGER ) * - MAX ( ALL - col2 ) AS col2 FROM tab2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8664
SELECT CAST( - 7 AS SIGNED ) * 45 - - 74 * - col0 * + col1 * 62 FROM tab2
----
-10763763
-22609979
-23055015

skipif mysql # not compatible
query I rowsort label-8664
SELECT CAST ( - 7 AS INTEGER ) * 45 - - 74 * - col0 * + col1 * 62 FROM tab2
----
-10763763
-22609979
-23055015

query III rowsort
SELECT * FROM tab0 WHERE + 88 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * - - 40 col1 FROM tab2
----
1840
2560
3000

onlyif mysql # aggregate syntax: 
query I rowsort label-8667
SELECT ALL 81 + + + COUNT( * ) AS col1 FROM tab1
----
84

skipif mysql # not compatible
query I rowsort label-8667
SELECT ALL 81 + + + COUNT ( * ) AS col1 FROM tab1
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-8668
SELECT + + COUNT( DISTINCT - + 74 ) * - + COUNT( * ) + - 91 FROM tab1 AS cor0
----
-94

skipif mysql # not compatible
query I rowsort label-8668
SELECT + + COUNT ( DISTINCT - + 74 ) * - + COUNT ( * ) + - 91 FROM tab1 AS cor0
----
-94

onlyif mysql # DIV for integer division: 
query I rowsort label-8669
SELECT - - col2 + - 8 + col2 DIV - col0 - + 51 FROM tab2 AS cor0
----
-1
-19
-36

skipif mysql # not compatible
query I rowsort label-8669
SELECT - - col2 + - 8 + col2 / - col0 - + 51 FROM tab2 AS cor0
----
-1
-19
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-8670
SELECT ALL + 15 - + COUNT( * ) AS col0 FROM tab2 AS cor0
----
12

skipif mysql # not compatible
query I rowsort label-8670
SELECT ALL + 15 - + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
12

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col1 + + ( + 38 ) < col1 * + 18
----
15
81
47
87
21
10

query II rowsort
SELECT DISTINCT 9 * + 56 AS col0, - col2 + - - 57 - - col2 FROM tab2 AS cor0 WHERE NULL > NULL
----

query I rowsort
SELECT col1 / col2 FROM tab2 cor0 WHERE NOT ( + col1 ) NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8674
SELECT ALL - SUM( col2 ) * + - 43 * + - COUNT( * ), - COUNT( * ) AS col0 FROM tab0
----
-20124
-3

skipif mysql # not compatible
query II rowsort label-8674
SELECT ALL - SUM ( col2 ) * + - 43 * + - COUNT ( * ), - COUNT ( * ) AS col0 FROM tab0
----
-20124
-3

query II rowsort
SELECT + col1 * - + col2, + ( + + col1 ) * ( - + 19 ) AS col2 FROM tab0
----
-210
-399
-3807
-1539
-99
-19

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8676
SELECT col0, + CAST( NULL AS SIGNED ) * - + 50 FROM tab0 WHERE NOT NULL IN ( + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query II rowsort label-8676
SELECT col0, + CAST ( NULL AS INTEGER ) * - + 50 FROM tab0 WHERE NOT NULL IN ( + CAST ( NULL AS INTEGER ) )
----

query II rowsort
SELECT DISTINCT - col1, 31 AS col0 FROM tab0
----
-1
31
-21
31
-81
31

query II rowsort
SELECT ALL 61, ( - col0 ) AS col2 FROM tab2 cor0
----
61
-46
61
-64
61
-75

query I rowsort
SELECT 71 * - col1 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-3337
-355
-994

query I rowsort
SELECT ( - - 60 ) FROM tab0 AS cor0
----
60
60
60

query II rowsort
SELECT ALL 0 * col2 AS col1, + ( - 38 ) * + 73 FROM tab0 AS cor0
----
0
-2774
0
-2774
0
-2774

onlyif mysql # DIV for integer division: 
query I rowsort label-8682
SELECT DISTINCT col2 DIV + ( + + col2 ) AS col2 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-8682
SELECT DISTINCT col2 / + ( + + col2 ) AS col2 FROM tab2 AS cor0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-8683
SELECT col2 DIV - + ( - ( - + 61 ) ) + - col1 AS col0 FROM tab0 AS cor0
----
-2
-21
-81

skipif mysql # not compatible
query I rowsort label-8683
SELECT col2 / - + ( - ( - + 61 ) ) + - col1 AS col0 FROM tab0 AS cor0
----
-2
-21
-81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8684
SELECT DISTINCT CAST( NULL AS SIGNED ) * + col1 AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8684
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + col1 AS col0 FROM tab1
----
NULL

query II rowsort
SELECT ( - + 68 ), col2 FROM tab1
----
-68
59
-68
68
-68
96

query I rowsort
SELECT - 49 * col1 FROM tab1
----
-2303
-245
-686

onlyif mysql # aggregate syntax: 
query I rowsort label-8687
SELECT DISTINCT + COUNT( * ) FROM tab1 WHERE NOT - ( col2 ) < - 27
----
0

skipif mysql # not compatible
query I rowsort label-8687
SELECT DISTINCT + COUNT ( * ) FROM tab1 WHERE NOT - ( col2 ) < - 27
----
0

query I rowsort
SELECT ALL - + 11 * - - col1 AS col0 FROM tab1 AS cor0
----
-154
-517
-55

query I rowsort
SELECT DISTINCT + - 21 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-8690
SELECT ALL 19 + COUNT( * ) AS col0 FROM tab1
----
22

skipif mysql # not compatible
query I rowsort label-8690
SELECT ALL 19 + COUNT ( * ) AS col0 FROM tab1
----
22

query I rowsort
SELECT + 44 AS col1 FROM tab0 WHERE - ( - col2 ) <= NULL
----

query I rowsort
SELECT DISTINCT col0 + + + 1 AS col2 FROM tab1 AS cor0
----
52
86
92

query III rowsort
SELECT * FROM tab1 cor0 WHERE NULL >= col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + - col2 * + col2 col1 FROM tab1 AS cor0 WHERE NULL = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8695
SELECT DISTINCT SUM( DISTINCT + col2 ) * - 1 AS col1 FROM tab2 AS cor0
----
-121

skipif mysql # not compatible
query I rowsort label-8695
SELECT DISTINCT SUM ( DISTINCT + col2 ) * - 1 AS col1 FROM tab2 AS cor0
----
-121

query I rowsort
SELECT col1 + - 54 FROM tab2 AS cor0
----
-3
13
23

query I rowsort
SELECT - 2 + + 90 FROM tab0 AS cor0
----
88
88
88

query I rowsort
SELECT 30 + + col0 AS col0 FROM tab2 cor0
----
105
76
94

query I rowsort
SELECT col0 + + 5 FROM tab1 AS cor0
----
56
90
96

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - - col2 + col0 IS NOT NULL
----

query I rowsort
SELECT 77 + + - 40 AS col1 FROM tab2
----
37
37
37

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL BETWEEN - - 49 - + - col1 / col1 AND + - 19 + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8703
SELECT ALL SUM( ALL - 94 ) AS col2 FROM tab1
----
-282

skipif mysql # not compatible
query I rowsort label-8703
SELECT ALL SUM ( ALL - 94 ) AS col2 FROM tab1
----
-282

onlyif mysql # DIV for integer division: 
query I rowsort label-8704
SELECT ALL 21 DIV ( - ( + - col2 ) ) * + col1 + + - 82 AS col0 FROM tab2
----
-82
-82
-82

skipif mysql # not compatible
query I rowsort label-8704
SELECT ALL 21 / ( - ( + - col2 ) ) * + col1 + + - 82 AS col0 FROM tab2
----
-82
-82
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-8705
SELECT ALL + 4 * + COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE + col1 * - 70 NOT IN ( col2, ( - col2 ), + ( + 35 ) * - + col0 + - col1 )
----
12

skipif mysql # not compatible
query I rowsort label-8705
SELECT ALL + 4 * + COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE + col1 * - 70 NOT IN ( col2, ( - col2 ), + ( + 35 ) * - + col0 + - col1 )
----
12

query I rowsort
SELECT - 6 FROM tab2 cor0 WHERE NOT NULL IN ( col0, - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8707
SELECT DISTINCT + + 32 + + - COUNT( * ) AS col0 FROM tab1 cor0 CROSS JOIN tab0 cor1
----
23

skipif mysql # not compatible
query I rowsort label-8707
SELECT DISTINCT + + 32 + + - COUNT ( * ) AS col0 FROM tab1 cor0 CROSS JOIN tab0 cor1
----
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8708
SELECT DISTINCT CAST( 27 AS SIGNED ) AS col1 FROM tab1
----
27

skipif mysql # not compatible
query I rowsort label-8708
SELECT DISTINCT CAST ( 27 AS INTEGER ) AS col1 FROM tab1
----
27

query I rowsort
SELECT ALL - 59 FROM tab0 cor0
----
-59
-59
-59

query I rowsort
SELECT + - 68 * + 50 FROM tab2 AS cor0
----
-3400
-3400
-3400

query I rowsort
SELECT DISTINCT - 49 * + col1 AS col2 FROM tab1 AS cor0
----
-2303
-245
-686

onlyif mysql # aggregate syntax: 
query I rowsort label-8712
SELECT DISTINCT SUM( 99 ) AS col0 FROM tab1 AS cor0
----
297

skipif mysql # not compatible
query I rowsort label-8712
SELECT DISTINCT SUM ( 99 ) AS col0 FROM tab1 AS cor0
----
297

onlyif mysql # DIV for integer division: 
query II rowsort label-8713
SELECT + 1 DIV + 91 - 46 AS col2, - col0 FROM tab0 cor0
----
-46
-15
-46
-87
-46
-97

skipif mysql # not compatible
query II rowsort label-8713
SELECT + 1 / + 91 - 46 AS col2, - col0 FROM tab0 cor0
----
-46
-15
-46
-87
-46
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-8714
SELECT ( - col0 ) DIV + col1 + - ( + col0 ) * - col2 FROM tab0 AS cor0
----
705
866
9506

skipif mysql # not compatible
query I rowsort label-8714
SELECT ( - col0 ) / + col1 + - ( + col0 ) * - col2 FROM tab0 AS cor0
----
705
866
9506

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col0 + - - 81 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8716
SELECT - COUNT( * ) DIV + + 90 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8716
SELECT - COUNT ( * ) / + + 90 FROM tab2 AS cor0
----
0

query II rowsort
SELECT ALL + col2 AS col1, 32 AS col2 FROM tab2
----
23
32
40
32
58
32

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8718
SELECT DISTINCT * FROM tab2 WHERE NOT - CAST( NULL AS SIGNED ) <> - col0
----

skipif mysql # not compatible
query III rowsort label-8718
SELECT DISTINCT * FROM tab2 WHERE NOT - CAST ( NULL AS INTEGER ) <> - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8719
SELECT DISTINCT ( SUM( ALL - col1 ) ) * 87 + + - 94 FROM tab2
----
-17059

skipif mysql # not compatible
query I rowsort label-8719
SELECT DISTINCT ( SUM ( ALL - col1 ) ) * 87 + + - 94 FROM tab2
----
-17059

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 7 col0 FROM tab0
----
7
7
7

query I rowsort
SELECT - col0 * + 97 * + - col0 * + 33 FROM tab1
----
23127225
26507481
8325801

onlyif mysql # aggregate syntax: 
query II rowsort label-8722
SELECT + 97, COUNT( * ) col1 FROM tab0
----
97
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8722
SELECT + 97, COUNT ( * ) col1 FROM tab0
----
97
3

onlyif mysql # DIV for integer division: 
query I rowsort label-8723
SELECT ALL 37 DIV + - 16 + + - col1 AS col0 FROM tab2
----
-53
-69
-79

skipif mysql # not compatible
query I rowsort label-8723
SELECT ALL 37 / + - 16 + + - col1 AS col0 FROM tab2
----
-53
-69
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-8724
SELECT ALL - COUNT( * ) + - 73 * 71 * - COUNT( DISTINCT - col0 ) col1 FROM tab2
----
15546

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8724
SELECT ALL - COUNT ( * ) + - 73 * 71 * - COUNT ( DISTINCT - col0 ) col1 FROM tab2
----
15546

query II rowsort
SELECT col2, + col0 FROM tab1 AS cor0
----
59
85
68
91
96
51

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 8 NOT BETWEEN 72 + col0 AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT + 24, + col0 AS col0 FROM tab1 cor0
----
24
51
24
85
24
91

query II rowsort
SELECT DISTINCT - col1, col0 FROM tab1 AS cor0
----
-14
51
-47
91
-5
85

query III rowsort
SELECT ALL * FROM tab2 WHERE - col0 * + col0 NOT BETWEEN - col2 AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8730
SELECT - col0 * - CAST( - col2 AS SIGNED ) + + col0 + - col1 AS col0 FROM tab0
----
-771
-804
-9507

skipif mysql # not compatible
query I rowsort label-8730
SELECT - col0 * - CAST ( - col2 AS INTEGER ) + + col0 + - col1 AS col0 FROM tab0
----
-771
-804
-9507

onlyif mysql # aggregate syntax: 
query I rowsort label-8731
SELECT ALL COUNT( + - 52 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9

skipif mysql # not compatible
query I rowsort label-8731
SELECT ALL COUNT ( + - 52 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN - col1 AND + + col2 / + 32 + - col0
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col0 / - col0 NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8734
SELECT ALL - COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE NOT + 18 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-8734
SELECT ALL - COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE NOT + 18 IS NOT NULL
----
0

query I rowsort
SELECT col1 FROM tab1 cor0 WHERE ( NULL ) NOT BETWEEN col1 - - 53 AND + col2
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col2 < + 15
----

query I rowsort
SELECT ALL + ( - + ( - 82 ) ) FROM tab1 cor0
----
82
82
82

onlyif mysql # aggregate syntax: 
query I rowsort label-8738
SELECT ALL - MAX( + col0 ) AS col2 FROM tab0 WHERE NOT + col2 + - col0 + 68 > + col0 - + col1
----
-97

skipif mysql # not compatible
query I rowsort label-8738
SELECT ALL - MAX ( + col0 ) AS col2 FROM tab0 WHERE NOT + col2 + - col0 + 68 > + col0 - + col1
----
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8739
SELECT + CAST( + col0 AS SIGNED ) - + col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8739
SELECT + CAST ( + col0 AS INTEGER ) - + col0 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8740
SELECT SUM( + - ( col2 ) ) FROM tab1
----
-223

skipif mysql # not compatible
query I rowsort label-8740
SELECT SUM ( + - ( col2 ) ) FROM tab1
----
-223

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8741
SELECT + 68 DIV ( - COUNT( * ) ) AS col2, COUNT( * ) * + - 84 FROM tab0
----
-22
-252

skipif mysql # not compatible
query II rowsort label-8741
SELECT + 68 / ( - COUNT ( * ) ) AS col2, COUNT ( * ) * + - 84 FROM tab0
----
-22
-252

query I rowsort
SELECT DISTINCT - col0 * 98 * + col0 AS col2 FROM tab1
----
-254898
-708050
-811538

onlyif mysql # aggregate syntax: 
query II rowsort label-8743
SELECT 29 AS col1, MIN( - + col2 ) FROM tab2
----
29
-58

skipif mysql # not compatible
query II rowsort label-8743
SELECT 29 AS col1, MIN ( - + col2 ) FROM tab2
----
29
-58

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col2 BETWEEN ( NULL ) AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + 73 * + col1 <= ( + col0 )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL NOT IN ( - 49, 19 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8747
SELECT + - CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-8747
SELECT + - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT ALL col2 AS col1 FROM tab1 AS cor0 WHERE NOT - col0 IS NULL
----
59
68
96

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col1 <= col1
----

query I rowsort
SELECT ALL + col1 AS col0 FROM tab0 AS cor0 WHERE ( NULL ) < NULL
----

query I rowsort
SELECT - - col1 AS col1 FROM tab1 WHERE - col0 <= - - col0 + + col2
----
14
47
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 41 + - col2 + col2 col0 FROM tab0
----
-41
-41
-41

query I rowsort
SELECT ALL col1 + + - col0 FROM tab0 cor0
----
-66
-96
66

query I rowsort
SELECT + - 32 + + 28 FROM tab0 AS cor0
----
-4
-4
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-8755
SELECT - - MIN( 45 ) AS col2 FROM tab2 AS cor0
----
45

skipif mysql # not compatible
query I rowsort label-8755
SELECT - - MIN ( 45 ) AS col2 FROM tab2 AS cor0
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-8756
SELECT - 80 * - SUM( DISTINCT + + col1 ) FROM tab2
----
15600

skipif mysql # not compatible
query I rowsort label-8756
SELECT - 80 * - SUM ( DISTINCT + + col1 ) FROM tab2
----
15600

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8757
SELECT ALL ( 74 ) + + ( - col2 ) + - ( + CAST( + - col0 AS SIGNED ) ) AS col0 FROM tab0
----
151
42
72

skipif mysql # not compatible
query I rowsort label-8757
SELECT ALL ( 74 ) + + ( - col2 ) + - ( + CAST ( + - col0 AS INTEGER ) ) AS col0 FROM tab0
----
151
42
72

query I rowsort
SELECT DISTINCT + 63 / + + 88 / + 38 / - 46 - - + col1 FROM tab2 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL col0 * - 52 * + + 69 * + col0 + - 40 FROM tab2
----
-14696488
-20182540
-7592248

query I rowsort
SELECT DISTINCT + + col0 + + col0 FROM tab0 AS cor0 WHERE col2 IS NOT NULL
----
174
194
30

query I rowsort
SELECT DISTINCT - - col1 * - 29 + + 88 AS col1 FROM tab2 AS cor0
----
-1391
-1855
-2145

onlyif mysql # aggregate syntax: 
query I rowsort label-8762
SELECT DISTINCT - COUNT( * ) - + COUNT( * ) AS col2 FROM tab1 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-8762
SELECT DISTINCT - COUNT ( * ) - + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-6

query I rowsort
SELECT + + 53 + + col2 + col1 FROM tab2 AS cor0
----
127
170
178

query I rowsort
SELECT - 41 + + 86 FROM tab0 AS cor0
----
45
45
45

query I rowsort
SELECT + col2 + + col1 - - + col1 FROM tab2 AS cor0
----
125
192
194

query I rowsort
SELECT DISTINCT + ( col2 ) * - col0 AS col0 FROM tab2
----
-1058
-2560
-4350

onlyif mysql # aggregate syntax: 
query I rowsort label-8767
SELECT + 65 * + COUNT( * ) * + 93 AS col2 FROM tab1
----
18135

skipif mysql # not compatible
query I rowsort label-8767
SELECT + 65 * + COUNT ( * ) * + 93 AS col2 FROM tab1
----
18135

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8768
SELECT - CAST( + - 85 AS SIGNED ) FROM tab0
----
85
85
85

skipif mysql # not compatible
query I rowsort label-8768
SELECT - CAST ( + - 85 AS INTEGER ) FROM tab0
----
85
85
85

onlyif mysql # aggregate syntax: 
query I rowsort label-8769
SELECT + + COUNT( col1 ) + + 57 FROM tab0 WHERE NOT col2 * - - col0 >= ( - col2 )
----
57

skipif mysql # not compatible
query I rowsort label-8769
SELECT + + COUNT ( col1 ) + + 57 FROM tab0 WHERE NOT col2 * - - col0 >= ( - col2 )
----
57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8770
SELECT COUNT( * ) FROM tab1 WHERE NOT + CAST( - col2 AS SIGNED ) * - - col1 NOT IN ( + 87 )
----
0

skipif mysql # not compatible
query I rowsort label-8770
SELECT COUNT ( * ) FROM tab1 WHERE NOT + CAST ( - col2 AS INTEGER ) * - - col1 NOT IN ( + 87 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8771
SELECT ALL 86 * + ( + MIN( col0 ) ) AS col0 FROM tab0
----
1290

skipif mysql # not compatible
query I rowsort label-8771
SELECT ALL 86 * + ( + MIN ( col0 ) ) AS col0 FROM tab0
----
1290

query I rowsort
SELECT + 7 * + 53 FROM tab2 AS cor0
----
371
371
371

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( + col0 ) * - 51 col1 FROM tab0 AS cor0
----
-4437
-4947
-765

query II rowsort
SELECT - 65 AS col2, 99 AS col0 FROM tab1 WHERE NOT + - 36 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8775
SELECT + SUM( DISTINCT col0 ) AS col0 FROM tab2 WHERE NOT NULL = 40 - - col1 + col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8775
SELECT + SUM ( DISTINCT col0 ) AS col0 FROM tab2 WHERE NOT NULL = 40 - - col1 + col2
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - - col1 col2, 34 col0 FROM tab1 AS cor0
----
14
34
47
34
5
34

query I rowsort
SELECT DISTINCT 86 AS col2 FROM tab0 cor0
----
86

onlyif mysql # DIV for integer division: 
query I rowsort label-8778
SELECT - 84 * + - 47 + + col2 DIV 54 + - col2 FROM tab1 cor0
----
3853
3881
3890

skipif mysql # not compatible
query I rowsort label-8778
SELECT - 84 * + - 47 + + col2 / 54 + - col2 FROM tab1 cor0
----
3853
3881
3890

query I rowsort
SELECT - + 26 + + col2 AS col2 FROM tab0 AS cor0
----
-16
21
73

query II rowsort
SELECT DISTINCT col1 AS col2, - col0 - - ( + col0 ) + + - col0 AS col2 FROM tab0 AS cor0
----
1
-97
21
-87
81
-15

query III rowsort
SELECT * FROM tab2 WHERE + col1 - - col2 >= col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL BETWEEN 28 AND + + col2 + col1 * + col0
----

query III rowsort
SELECT ALL * FROM tab1 WHERE + 31 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 WHERE col1 * + 16 NOT IN ( col1 * - 86, col0 / + col1, - col1 * - col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + col0 AS col1 FROM tab0 WHERE + + col1 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 57 col1 FROM tab1 WHERE NULL IS NULL
----
-57
-57
-57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 47 * col2 col1 FROM tab2
----
1081
1880
2726

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8788
SELECT DISTINCT + ( col1 ) * - col0 + + - 14 + + col1 * col1 * - - col1 + CAST( + - 6 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-320
2010
99526

skipif mysql # not compatible
query I rowsort label-8788
SELECT DISTINCT + ( col1 ) * - col0 + + - 14 + + col1 * col1 * - - col1 + CAST ( + - 6 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-320
2010
99526

onlyif mysql # aggregate syntax: 
query I rowsort label-8789
SELECT ALL + - 75 + - - ( - 28 ) + + COUNT( * ) AS col2 FROM tab0 AS cor0
----
-100

skipif mysql # not compatible
query I rowsort label-8789
SELECT ALL + - 75 + - - ( - 28 ) + + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-100

query I rowsort
SELECT DISTINCT - col2 * - 85 AS col0 FROM tab0 AS cor0 WHERE NOT + col0 IS NOT NULL
----

query I rowsort
SELECT DISTINCT 95 + + col1 FROM tab0
----
116
176
96

query I rowsort
SELECT ALL - col2 AS col0 FROM tab2 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL + 51 * - - col0 AS col1 FROM tab2
----
2346
3264
3825

query I rowsort
SELECT ALL - col2 - col1 AS col0 FROM tab0 AS cor0
----
-100
-128
-31

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8795
SELECT ALL 21 + - - CAST( NULL AS SIGNED ) + + col2, + 62 * 74 AS col1 FROM tab0 AS cor0
----
NULL
4588
NULL
4588
NULL
4588

skipif mysql # not compatible
query II rowsort label-8795
SELECT ALL 21 + - - CAST ( NULL AS INTEGER ) + + col2, + 62 * 74 AS col1 FROM tab0 AS cor0
----
NULL
4588
NULL
4588
NULL
4588

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 78 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8797
SELECT COUNT( * ) col0 FROM tab1 AS cor0 WHERE NOT - col0 * + + col0 <= NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8797
SELECT COUNT ( * ) col0 FROM tab1 AS cor0 WHERE NOT - col0 * + + col0 <= NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8798
SELECT ALL + MIN( DISTINCT 96 ) * + ( - + MAX( ALL - col2 ) ) + 53 * + + 85 AS col0 FROM tab1 AS cor0
----
10169

skipif mysql # not compatible
query I rowsort label-8798
SELECT ALL + MIN ( DISTINCT 96 ) * + ( - + MAX ( ALL - col2 ) ) + 53 * + + 85 AS col0 FROM tab1 AS cor0
----
10169

query II rowsort
SELECT DISTINCT col0, + col0 * - 77 FROM tab1 AS cor0
----
51
-3927
85
-6545
91
-7007

query I rowsort
SELECT - col0 * + ( 84 ) AS col0 FROM tab2
----
-3864
-5376
-6300

query II rowsort
SELECT 10 AS col1, + 4 AS col0 FROM tab1
----
10
4
10
4
10
4

query I rowsort
SELECT DISTINCT - ( 45 ) * + col2 * - col2 FROM tab2
----
151380
23805
72000

query I rowsort
SELECT ALL - col0 * 97 AS col1 FROM tab0
----
-1455
-8439
-9409

query I rowsort
SELECT ALL + ( - - col2 ) + - - col2 FROM tab2 WHERE NOT - - col0 = ( - + col0 )
----
116
46
80

onlyif mysql # DIV for integer division: 
query I rowsort label-8805
SELECT ALL - 41 DIV ( col2 ) FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8805
SELECT ALL - 41 / ( col2 ) FROM tab1
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2 AS col1, - 66 col0 FROM tab0
----
10
-66
47
-66
99
-66

query II rowsort
SELECT ALL + col0, col0 + - - col1 FROM tab2
----
46
97
64
141
75
142

onlyif mysql # DIV for integer division: 
query I rowsort label-8808
SELECT col0 DIV + 58 + + col1 - + ( - + col2 ) FROM tab0 AS cor0
----
101
128
32

skipif mysql # not compatible
query I rowsort label-8808
SELECT col0 / + 58 + + col1 - + ( - + col2 ) FROM tab0 AS cor0
----
101
128
32

query I rowsort
SELECT ALL + + 0 FROM tab2 cor0
----
0
0
0

query I rowsort
SELECT col0 FROM tab2 AS cor0 WHERE NOT col0 + - - col0 IS NOT NULL
----

query I rowsort
SELECT - col2 FROM tab2 AS cor0 WHERE NOT 92 < - col1
----
-23
-40
-58

query I rowsort
SELECT ALL - - 53 * - - ( 99 ) AS col0 FROM tab1 AS cor0 WHERE NOT - col0 + 29 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8813
SELECT DISTINCT - CAST( NULL AS SIGNED ) AS col2, ( + col0 ) DIV - + col1 + - 73 FROM tab1 AS cor0
----
NULL
-74
NULL
-76
NULL
-90

skipif mysql # not compatible
query II rowsort label-8813
SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col2, ( + col0 ) / - + col1 + - 73 FROM tab1 AS cor0
----
NULL
-74
NULL
-76
NULL
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-8814
SELECT - - ( - COUNT( * ) ) AS col0 FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8814
SELECT - - ( - COUNT ( * ) ) AS col0 FROM tab0 cor0
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-8815
SELECT DISTINCT - 65 AS col1, - COUNT( * ) AS col1 FROM tab0 cor0
----
-65
-3

skipif mysql # not compatible
query II rowsort label-8815
SELECT DISTINCT - 65 AS col1, - COUNT ( * ) AS col1 FROM tab0 cor0
----
-65
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 col2 FROM tab0 AS cor0 WHERE NOT + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8817
SELECT + COUNT( * ) DIV 7 AS col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8817
SELECT + COUNT ( * ) / 7 AS col1 FROM tab0 AS cor0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8818
SELECT ALL + COUNT( * ) DIV MIN( ALL col1 ) AS col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8818
SELECT ALL + COUNT ( * ) / MIN ( ALL col1 ) AS col0 FROM tab1 AS cor0
----
0

query I rowsort
SELECT - - 59 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to a9b9966d749d1b2ce5955ed12394f9bc

onlyif mysql # DIV for integer division: 
query II rowsort label-8820
SELECT DISTINCT - col2 DIV col1, col1 FROM tab1
----
-1
47
-11
5
-6
14

skipif mysql # not compatible
query II rowsort label-8820
SELECT DISTINCT - col2 / col1, col1 FROM tab1
----
-1
47
-11
5
-6
14

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8821
SELECT COUNT( * ) DIV 80 AS col0 FROM tab0, tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8821
SELECT COUNT ( * ) / 80 AS col0 FROM tab0, tab0 AS cor0
----
0

query I rowsort
SELECT 49 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cb40783c0fff72e8802cdf0682e7cb55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8823
SELECT col1 AS col1 FROM tab1 AS cor0 WHERE NOT CAST( - 80 AS SIGNED ) * + + col1 IS NULL
----
14
47
5

skipif mysql # not compatible
query I rowsort label-8823
SELECT col1 AS col1 FROM tab1 AS cor0 WHERE NOT CAST ( - 80 AS INTEGER ) * + + col1 IS NULL
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-8824
SELECT ALL - COUNT( DISTINCT - 60 ) FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-8824
SELECT ALL - COUNT ( DISTINCT - 60 ) FROM tab0 AS cor0
----
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 7 col1 FROM tab2 cor0
----
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8826
SELECT ALL + CAST( NULL AS SIGNED ) * - col2 AS col0 FROM tab1 AS cor0 WHERE NOT - col2 NOT BETWEEN + col2 AND - col1 + 89
----

skipif mysql # not compatible
query I rowsort label-8826
SELECT ALL + CAST ( NULL AS INTEGER ) * - col2 AS col0 FROM tab1 AS cor0 WHERE NOT - col2 NOT BETWEEN + col2 AND - col1 + 89
----

query I rowsort
SELECT ALL ( - - 99 ) * - + 60 AS col2 FROM tab0 AS cor0
----
-5940
-5940
-5940

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8828
SELECT DISTINCT - - CAST( + + col0 AS SIGNED ) * + - col0 AS col0 FROM tab1 AS cor0
----
-2601
-7225
-8281

skipif mysql # not compatible
query I rowsort label-8828
SELECT DISTINCT - - CAST ( + + col0 AS INTEGER ) * + - col0 AS col0 FROM tab1 AS cor0
----
-2601
-7225
-8281

onlyif mysql # aggregate syntax: 
query I rowsort label-8829
SELECT ALL SUM( ALL col1 ) * - COUNT( * ) FROM tab0 AS cor0
----
-309

skipif mysql # not compatible
query I rowsort label-8829
SELECT ALL SUM ( ALL col1 ) * - COUNT ( * ) FROM tab0 AS cor0
----
-309

query II rowsort
SELECT ALL - col1 AS col0, - col0 AS col2 FROM tab2
----
-51
-46
-67
-75
-77
-64

query I rowsort
SELECT 96 * - + ( + col0 ) + + - 28 FROM tab2
----
-4444
-6172
-7228

onlyif mysql # DIV for integer division: 
query I rowsort label-8832
SELECT 9 + + - 46 DIV + col2 col1 FROM tab2
----
7
8
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8832
SELECT 9 + + - 46 / + col2 col1 FROM tab2
----
7
8
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 67 + + + 84 col0 FROM tab1
----
151
151
151

query I rowsort
SELECT col2 AS col0 FROM tab0 WHERE + col1 IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-8835
SELECT + col1, - CAST( NULL AS DECIMAL ) AS col2 FROM tab0 AS cor0
----
1
NULL
21
NULL
81
NULL

skipif mysql # not compatible
query II rowsort label-8835
SELECT + col1, - CAST ( NULL AS REAL ) AS col2 FROM tab0 AS cor0
----
1
NULL
21
NULL
81
NULL

query III rowsort
SELECT * FROM tab1 WHERE col1 * col2 / - - col2 + + 3 / - + col0 + col0 NOT BETWEEN - col1 AND 41
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8837
SELECT + 0 - - ( COUNT( * ) ) AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-8837
SELECT + 0 - - ( COUNT ( * ) ) AS col0 FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8838
SELECT ALL SUM( DISTINCT + + 16 ) FROM tab0 AS cor0
----
16

skipif mysql # not compatible
query I rowsort label-8838
SELECT ALL SUM ( DISTINCT + + 16 ) FROM tab0 AS cor0
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-8839
SELECT DISTINCT + - COUNT( DISTINCT 72 ) FROM tab2 cor0
----
-1

skipif mysql # not compatible
query I rowsort label-8839
SELECT DISTINCT + - COUNT ( DISTINCT 72 ) FROM tab2 cor0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8840
SELECT ALL - COUNT( DISTINCT + - CAST( col1 AS SIGNED ) ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8840
SELECT ALL - COUNT ( DISTINCT + - CAST ( col1 AS INTEGER ) ) FROM tab2 AS cor0
----
-3

query I rowsort
SELECT DISTINCT - col1 * - 67 AS col2 FROM tab1 AS cor0
----
3149
335
938

onlyif mysql # aggregate syntax: 
query I rowsort label-8842
SELECT - + SUM( ALL - col0 ) * + - 56 AS col1 FROM tab2 AS cor0
----
-10360

skipif mysql # not compatible
query I rowsort label-8842
SELECT - + SUM ( ALL - col0 ) * + - 56 AS col1 FROM tab2 AS cor0
----
-10360

query I rowsort
SELECT - 80 FROM tab1 cor0 WHERE NOT NULL <> NULL
----

query I rowsort
SELECT ALL - 14 * - col2 FROM tab1
----
1344
826
952

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - + 39 + - col1 >= NULL
----

query II rowsort
SELECT ALL - col2 + + ( + - 35 ), ( - col1 ) FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8847
SELECT + col1 AS col2, 96 / - - CAST( NULL AS SIGNED ) * col1 * - 71 * - col1 FROM tab0
----
1
NULL
21
NULL
81
NULL

skipif mysql # not compatible
query II rowsort label-8847
SELECT + col1 AS col2, 96 / - - CAST ( NULL AS INTEGER ) * col1 * - 71 * - col1 FROM tab0
----
1
NULL
21
NULL
81
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8848
SELECT DISTINCT + ( + - MAX( + + col0 ) ) FROM tab1
----
-91

skipif mysql # not compatible
query I rowsort label-8848
SELECT DISTINCT + ( + - MAX ( + + col0 ) ) FROM tab1
----
-91

query I rowsort
SELECT ALL + + col0 * col0 - 80 FROM tab2 AS cor0
----
2036
4016
5545

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL > - col2
----

query II rowsort
SELECT - 48 * col2 * col2 AS col0, col1 FROM tab0 AS cor0
----
-106032
81
-470448
1
-4800
21

query II rowsort
SELECT + 55, - 56 * + + col2 AS col0 FROM tab0 AS cor0
----
55
-2632
55
-5544
55
-560

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8853
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col2 + - CAST( - - 89 AS SIGNED ) BETWEEN - col2 AND NULL
----

skipif mysql # not compatible
query III rowsort label-8853
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col2 + - CAST ( - - 89 AS INTEGER ) BETWEEN - col2 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8854
SELECT ALL - 59 DIV - - col0 AS col2 FROM tab0
----
-3
0
0

skipif mysql # not compatible
query I rowsort label-8854
SELECT ALL - 59 / - - col0 AS col2 FROM tab0
----
-3
0
0

query I rowsort
SELECT + 45 + 75 * col2 AS col0 FROM tab1
----
4470
5145
7245

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL >= 22
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8857
SELECT + - col2 DIV - ( - col1 ) + + - col2 * - col2 AS col1 FROM tab1 AS cor0
----
3470
4623
9210

skipif mysql # not compatible
query I rowsort label-8857
SELECT + - col2 / - ( - col1 ) + + - col2 * - col2 AS col1 FROM tab1 AS cor0
----
3470
4623
9210

onlyif mysql # aggregate syntax: 
query I rowsort label-8858
SELECT DISTINCT - - MIN( 69 ) AS col2 FROM tab2 AS cor0 WHERE NOT ( NOT NULL IS NOT NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-8858
SELECT DISTINCT - - MIN ( 69 ) AS col2 FROM tab2 AS cor0 WHERE NOT ( NOT NULL IS NOT NULL )
----
NULL

query I rowsort
SELECT ALL col1 * col2 * - col0 + col1 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-25070
-290789
-68530

query I rowsort
SELECT DISTINCT ( 46 ) FROM tab0
----
46

query I rowsort
SELECT DISTINCT col0 + + 29 * - 45 AS col2 FROM tab2
----
-1230
-1241
-1259

query I rowsort
SELECT 40 - - ( + col2 ) FROM tab2
----
63
80
98

query III rowsort
SELECT ALL * FROM tab0 WHERE - col2 BETWEEN + col0 * + col0 - + - col2 AND + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8864
SELECT DISTINCT - col2 + - CAST( + col0 AS SIGNED ) FROM tab1
----
-144
-147
-159

skipif mysql # not compatible
query I rowsort label-8864
SELECT DISTINCT - col2 + - CAST ( + col0 AS INTEGER ) FROM tab1
----
-144
-147
-159

query I rowsort
SELECT DISTINCT col0 FROM tab1 WHERE NOT + col2 + - - 78 * 44 IS NULL
----
51
85
91

onlyif mysql # DIV for integer division: 
query I rowsort label-8866
SELECT - col2 DIV - 3 - + col2 col1 FROM tab0
----
-32
-66
-7

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8866
SELECT - col2 / - 3 - + col2 col1 FROM tab0
----
-32
-66
-7

query I rowsort
SELECT ALL - col1 - + + 24 + + - col2 FROM tab2
----
-141
-149
-98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8868
SELECT ALL + col0 + - CAST( NULL AS SIGNED ) * 17 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-8868
SELECT ALL + col0 + - CAST ( NULL AS INTEGER ) * 17 col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8869
SELECT * FROM tab1 AS cor0 WHERE CAST( NULL AS DECIMAL ) / 44 * - 73 NOT BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query III rowsort label-8869
SELECT * FROM tab1 AS cor0 WHERE CAST ( NULL AS REAL ) / 44 * - 73 NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8870
SELECT DISTINCT + COUNT( * ) AS col0, 95 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9
95

skipif mysql # not compatible
query II rowsort label-8870
SELECT DISTINCT + COUNT ( * ) AS col0, 95 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9
95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8871
SELECT DISTINCT + CAST( + COUNT( * ) AS SIGNED ) AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-8871
SELECT DISTINCT + CAST ( + COUNT ( * ) AS INTEGER ) AS col2 FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8872
SELECT ( SUM( ALL + col1 ) ) * - - 95 AS col0 FROM tab0
----
9785

skipif mysql # not compatible
query I rowsort label-8872
SELECT ( SUM ( ALL + col1 ) ) * - - 95 AS col0 FROM tab0
----
9785

query II rowsort
SELECT DISTINCT - + col1 AS col0, + 2 AS col2 FROM tab1 AS cor0
----
-14
2
-47
2
-5
2

query I rowsort
SELECT DISTINCT + col2 * - col2 * col2 AS col1 FROM tab0 AS cor0
----
-1000
-103823
-970299

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - 89 < + - 70 * - 1 / + 87 * col2 * + col1 + col1 + col0 + + col2 * - 90
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8876
SELECT DISTINCT - SUM( ALL + - col0 ) FROM tab2 AS cor0
----
185

skipif mysql # not compatible
query I rowsort label-8876
SELECT DISTINCT - SUM ( ALL + - col0 ) FROM tab2 AS cor0
----
185

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 34 col2 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8878
SELECT 16 * COUNT( * ) col1 FROM tab2 AS cor0 WHERE NOT 51 IS NOT NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8878
SELECT 16 * COUNT ( * ) col1 FROM tab2 AS cor0 WHERE NOT 51 IS NOT NULL
----
0

query II rowsort
SELECT DISTINCT + col0, - col2 AS col1 FROM tab1 cor0
----
51
-96
85
-59
91
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-8880
SELECT + COUNT( ALL + - 45 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-8880
SELECT + COUNT ( ALL + - 45 ) FROM tab0
----
3

query II rowsort
SELECT ALL - ( + col0 ) * - col0, 74 * - col2 FROM tab0 WHERE NOT - col0 NOT BETWEEN col1 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8882
SELECT COUNT( * ) * - 54 FROM tab0
----
-162

skipif mysql # not compatible
query I rowsort label-8882
SELECT COUNT ( * ) * - 54 FROM tab0
----
-162

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL <> col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8884
SELECT - - 58 + CAST( NULL AS SIGNED ) * - - col0 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8884
SELECT - - 58 + CAST ( NULL AS INTEGER ) * - - col0 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8885
SELECT + 45 * ( + - ( COUNT( * ) ) ) + + - CAST( NULL AS SIGNED ) FROM tab0 WHERE - col2 * - - col0 + + 99 + - + col0 / - - 1 / + col2 * 62 * - col1 * ( col2 ) <> NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8885
SELECT + 45 * ( + - ( COUNT ( * ) ) ) + + - CAST ( NULL AS INTEGER ) FROM tab0 WHERE - col2 * - - col0 + + 99 + - + col0 / - - 1 / + col2 * 62 * - col1 * ( col2 ) <> NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8886
SELECT ALL + col1 DIV - 82 - 10 FROM tab2 cor0
----
-10
-10
-10

skipif mysql # not compatible
query I rowsort label-8886
SELECT ALL + col1 / - 82 - 10 FROM tab2 cor0
----
-10
-10
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-8887
SELECT ALL - - COUNT( * ) - + COUNT( * ) AS col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8887
SELECT ALL - - COUNT ( * ) - + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8888
SELECT - COUNT( * ) + - 50 FROM tab1 AS cor0
----
-53

skipif mysql # not compatible
query I rowsort label-8888
SELECT - COUNT ( * ) + - 50 FROM tab1 AS cor0
----
-53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8889
SELECT CAST( col2 AS SIGNED ) + + ( - - col2 ) col0 FROM tab0
----
198
20
94

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8889
SELECT CAST ( col2 AS INTEGER ) + + ( - - col2 ) col0 FROM tab0
----
198
20
94

query I rowsort
SELECT DISTINCT + 39 * - col1 + + ( col0 ) + col0 FROM tab0
----
-3129
-645
155

onlyif mysql # DIV for integer division: 
query I rowsort label-8891
SELECT col1 DIV col0 + + col2 col2 FROM tab0
----
10
52
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8891
SELECT col1 / col0 + + col2 col2 FROM tab0
----
10
52
99

query II rowsort
SELECT ALL - col2 AS col0, + 60 AS col0 FROM tab1
----
-59
60
-68
60
-96
60

query I rowsort
SELECT ALL - 13 + - + col2 - - - 55 FROM tab2
----
-108
-126
-91

query III rowsort
SELECT * FROM tab1 WHERE ( NOT col1 >= - - ( - col0 ) )
----

query III rowsort
SELECT * FROM tab1 WHERE ( NOT ( - 65 ) * + col2 + - + col0 + col1 IS NOT NULL )
----

query IIIIII rowsort
SELECT ALL * FROM tab2, tab0 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8897
SELECT ALL MIN( + col1 ) + - 8 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-8897
SELECT ALL MIN ( + col1 ) + - 8 FROM tab1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8898
SELECT MIN( DISTINCT 32 ) AS col0 FROM tab0 AS cor0
----
32

skipif mysql # not compatible
query I rowsort label-8898
SELECT MIN ( DISTINCT 32 ) AS col0 FROM tab0 AS cor0
----
32

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * col0 * col1 * + col1 + - col1 col2 FROM tab1 AS cor0
----
180620
18292682
509782

onlyif mysql # DIV for integer division: 
query II rowsort label-8900
SELECT 58 DIV + col2 AS col2, - col0 AS col2 FROM tab1 AS cor0
----
0
-51
0
-85
0
-91

skipif mysql # not compatible
query II rowsort label-8900
SELECT 58 / + col2 AS col2, - col0 AS col2 FROM tab1 AS cor0
----
0
-51
0
-85
0
-91

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8901
SELECT ALL col0 / + col1 * + + CAST( NULL AS DECIMAL ) col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8901
SELECT ALL col0 / + col1 * + + CAST ( NULL AS REAL ) col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8902
SELECT DISTINCT MIN( 11 ) FROM tab1 AS cor0
----
11

skipif mysql # not compatible
query I rowsort label-8902
SELECT DISTINCT MIN ( 11 ) FROM tab1 AS cor0
----
11

query I rowsort
SELECT DISTINCT + 57 AS col2 FROM tab0 AS cor0 WHERE NOT ( - - col2 IS NULL )
----
57

query II rowsort
SELECT 75 * - ( col2 ), + col0 FROM tab2 AS cor0
----
-1725
46
-3000
64
-4350
75

onlyif mysql # DIV for integer division: 
query I rowsort label-8905
SELECT 9 DIV col1 * ( + ( ( - - 52 ) ) ) AS col2 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8905
SELECT 9 / col1 * ( + ( ( - - 52 ) ) ) AS col2 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL 74 + col2 - + + ( - 70 ) * + + 72 + - 73 AS col0 FROM tab2 AS cor0 WHERE NOT ( NOT NULL <> NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 47 col1 FROM tab1 AS cor0
----
-47
-47
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-8908
SELECT DISTINCT MAX( DISTINCT + + col1 ) FROM tab1
----
47

skipif mysql # not compatible
query I rowsort label-8908
SELECT DISTINCT MAX ( DISTINCT + + col1 ) FROM tab1
----
47

query I rowsort
SELECT DISTINCT + 89 * 88 * + - col0 + - + 93 + ( - 63 ) FROM tab0 WHERE NULL IS NULL
----
-117636
-681540
-759860

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + col0 col0 FROM tab0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8911
SELECT DISTINCT - col2 DIV - ( - col2 ) + - col2 * + 34 FROM tab2
----
-1361
-1973
-783

skipif mysql # not compatible
query I rowsort label-8911
SELECT DISTINCT - col2 / - ( - col2 ) + - col2 * + 34 FROM tab2
----
-1361
-1973
-783

query II rowsort
SELECT ALL col0, - col0 FROM tab0
----
15
-15
87
-87
97
-97

query I rowsort
SELECT - col0 AS col0 FROM tab1 WHERE NOT col1 <> NULL
----

query I rowsort
SELECT - ( - + col0 ) AS col2 FROM tab1 WHERE NOT NULL IN ( - col1, + col2 )
----

query I rowsort
SELECT ALL - - col2 * - - col1 AS col1 FROM tab0 WHERE NOT NULL IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + 96 ) col2 FROM tab0 AS cor0
----
-96
-96
-96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8917
SELECT COUNT( * ) * CAST( MIN( ALL + 70 ) AS SIGNED ) col1 FROM tab1 AS cor0
----
210

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8917
SELECT COUNT ( * ) * CAST ( MIN ( ALL + 70 ) AS INTEGER ) col1 FROM tab1 AS cor0
----
210

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 * + - 99 * col1 IS NULL
----

query II rowsort
SELECT col2, col2 + + + col0 AS col0 FROM tab2 AS cor0
----
23
69
40
104
58
133

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8920
SELECT + + MIN( ALL - CAST( - + 77 AS SIGNED ) ) FROM tab0 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-8920
SELECT + + MIN ( ALL - CAST ( - + 77 AS INTEGER ) ) FROM tab0 AS cor0
----
77

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col2 + col1 IN ( 72 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 WHERE ( NOT + 76 * - - ( + col2 ) + + col0 + col2 NOT BETWEEN NULL AND + - col0 )
----

query II rowsort
SELECT + col2 + + 22, + 93 + - col1 AS col2 FROM tab0
----
121
92
32
72
69
12

onlyif mysql # aggregate syntax: 
query II rowsort label-8924
SELECT - + 62 * + COUNT( * ) AS col0, + COUNT( * ) * + COUNT( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-558
81

skipif mysql # not compatible
query II rowsort label-8924
SELECT - + 62 * + COUNT ( * ) AS col0, + COUNT ( * ) * + COUNT ( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-558
81

query I rowsort
SELECT DISTINCT + + col1 * - col2 + - col0 AS col0 FROM tab1 AS cor0
----
-1395
-3287
-380

query I rowsort
SELECT ALL col2 + col2 + col1 AS col2 FROM tab1 AS cor0
----
123
183
206

onlyif mysql # aggregate syntax: 
query I rowsort label-8927
SELECT - - MAX( ALL - - 7 ) col0 FROM tab0 AS cor0
----
7

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8927
SELECT - - MAX ( ALL - - 7 ) col0 FROM tab0 AS cor0
----
7

query I rowsort
SELECT ALL 35 + - + col1 - - col2 AS col2 FROM tab2 cor0
----
-2
26
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 67 col2 FROM tab0 WHERE NULL < + col0 * + col1
----

query II rowsort
SELECT DISTINCT col1 + + + col0 + - col0 AS col1, col2 FROM tab0
----
1
99
21
10
81
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 4 - + col1 col1 FROM tab0
----
-25
-5
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-8932
SELECT ( - COUNT( 97 ) ) - + + 28 * + - COUNT( ALL + - col2 ) FROM tab1
----
81

skipif mysql # not compatible
query I rowsort label-8932
SELECT ( - COUNT ( 97 ) ) - + + 28 * + - COUNT ( ALL + - col2 ) FROM tab1
----
81

query I rowsort
SELECT DISTINCT + 25 * + - 80 AS col2 FROM tab0
----
-2000

onlyif mysql # aggregate syntax: 
query I rowsort label-8934
SELECT DISTINCT + COUNT( * ) * MAX( + ( - col2 ) ) AS col1 FROM tab0
----
-30

skipif mysql # not compatible
query I rowsort label-8934
SELECT DISTINCT + COUNT ( * ) * MAX ( + ( - col2 ) ) AS col1 FROM tab0
----
-30

query I rowsort
SELECT + col0 * - 97 + + - col0 AS col0 FROM tab2 AS cor0
----
-4508
-6272
-7350

query I rowsort
SELECT DISTINCT 90 * 42 FROM tab1 AS cor0
----
3780

query I rowsort
SELECT ALL - 63 - - - col2 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
-103
-121
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-8938
SELECT - COUNT( + col1 ) AS col0 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8938
SELECT - COUNT ( + col1 ) AS col0 FROM tab2 AS cor0
----
-3

query I rowsort
SELECT DISTINCT - col1 * 52 FROM tab0
----
-1092
-4212
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-8940
SELECT DISTINCT - SUM( 38 ) FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
-342

skipif mysql # not compatible
query I rowsort label-8940
SELECT DISTINCT - SUM ( 38 ) FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
-342

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 col0, 70 * + col2 FROM tab0
----
1
6930
21
700
81
3290

query II rowsort
SELECT col2 AS col2, - col0 AS col2 FROM tab1
----
59
-85
68
-91
96
-51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8943
SELECT DISTINCT CAST( NULL AS SIGNED ) * - - 94 AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8943
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - - 94 AS col1 FROM tab2
----
NULL

query II rowsort
SELECT ALL + 49, col2 FROM tab2
----
49
23
49
40
49
58

query II rowsort
SELECT DISTINCT + 43, + 62 + + 61 AS col1 FROM tab0 AS cor0
----
43
123

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 12 * + 74 * - + col1 col1 FROM tab1 AS cor0
----
12432
41736
4440

query I rowsort
SELECT ALL ( + - 30 ) AS col2 FROM tab2 cor0
----
-30
-30
-30

query II rowsort
SELECT DISTINCT + 12 AS col1, + col2 AS col0 FROM tab1 AS cor0
----
12
59
12
68
12
96

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col1 / + - col1 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 93 col1, col0 * + ( + ( + col1 ) ) FROM tab1 AS cor0
----
93
425
93
4277
93
714

query II rowsort
SELECT 48, 80 AS col0 FROM tab1 AS cor0
----
48
80
48
80
48
80

onlyif mysql # aggregate syntax: 
query I rowsort label-8952
SELECT COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NOT col2 >= + ( - col1 )
----
0

skipif mysql # not compatible
query I rowsort label-8952
SELECT COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NOT col2 >= + ( - col1 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8953
SELECT SUM( ALL 66 ) FROM tab1
----
198

skipif mysql # not compatible
query I rowsort label-8953
SELECT SUM ( ALL 66 ) FROM tab1
----
198

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8954
SELECT 54 DIV COUNT( * ) col1 FROM tab1
----
18

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8954
SELECT 54 / COUNT ( * ) col1 FROM tab1
----
18

query I rowsort
SELECT DISTINCT 56 + + + col0 FROM tab1
----
107
141
147

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8956
SELECT * FROM tab1 WHERE NOT + + col2 / - 71 - + col2 + col0 + - + col0 + - col0 * - - 40 * - + col0 * - CAST( + 37 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-8956
SELECT * FROM tab1 WHERE NOT + + col2 / - 71 - + col2 + col0 + - + col0 + - col0 * - - 40 * - + col0 * - CAST ( + 37 AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT ( - - 9 ) * + - 99 + - col1 * - col2 FROM tab1
----
-596
2305
453

query I rowsort
SELECT 18 * + + col2 FROM tab0 cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8959
SELECT col1 DIV - col1 + - col2 AS col1 FROM tab2 AS cor0
----
-24
-41
-59

skipif mysql # not compatible
query I rowsort label-8959
SELECT col1 / - col1 + - col2 AS col1 FROM tab2 AS cor0
----
-24
-41
-59

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8960
SELECT - + 54 * + CAST( NULL AS SIGNED ) AS col2, + col1 + - + 82 - - col2 col2 FROM tab1 AS cor0
----
NULL
-18
NULL
28
NULL
33

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8960
SELECT - + 54 * + CAST ( NULL AS INTEGER ) AS col2, + col1 + - + 82 - - col2 col2 FROM tab1 AS cor0
----
NULL
-18
NULL
28
NULL
33

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * + + 4 col1 FROM tab2
----
-204
-268
-308

onlyif mysql # aggregate syntax: 
query I rowsort label-8962
SELECT SUM( + 39 ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
351

skipif mysql # not compatible
query I rowsort label-8962
SELECT SUM ( + 39 ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
351

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8963
SELECT - CAST( NULL AS SIGNED ) * + col0 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8963
SELECT - CAST ( NULL AS INTEGER ) * + col0 AS col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT - 54 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 4ecdb0f1b85f0d4fdc3a826efd9f2342

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8965
SELECT DISTINCT + col2 * 71 + - - 23, - CAST( NULL AS SIGNED ) + - col2 - - col0 col1 FROM tab1
----
4212
NULL
4851
NULL
6839
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8965
SELECT DISTINCT + col2 * 71 + - - 23, - CAST ( NULL AS INTEGER ) + - col2 - - col0 col1 FROM tab1
----
4212
NULL
4851
NULL
6839
NULL

query I rowsort
SELECT - col0 - 71 FROM tab1
----
-122
-156
-162

onlyif mysql # aggregate syntax: 
query I rowsort label-8967
SELECT ALL - - COUNT( * ) + - + COUNT( * ) col2 FROM tab2 cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8967
SELECT ALL - - COUNT ( * ) + - + COUNT ( * ) col2 FROM tab2 cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8968
SELECT DISTINCT - 49 - - COUNT( * ) AS col1 FROM tab1 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-8968
SELECT DISTINCT - 49 - - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-46

query I rowsort
SELECT - - 9 + col2 + col1 AS col1 FROM tab1 AS cor0
----
119
124
73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8970
SELECT + 98 + + CAST( NULL AS SIGNED ) + col0 / + - CAST( col0 AS SIGNED ) col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8970
SELECT + 98 + + CAST ( NULL AS INTEGER ) + col0 / + - CAST ( col0 AS INTEGER ) col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8971
SELECT col1 + + col1 DIV 90 FROM tab0 AS cor0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-8971
SELECT col1 + + col1 / 90 FROM tab0 AS cor0
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-8972
SELECT DISTINCT - SUM( ALL + 32 ) AS col1 FROM tab2 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-8972
SELECT DISTINCT - SUM ( ALL + 32 ) AS col1 FROM tab2 AS cor0
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-8973
SELECT DISTINCT + COUNT( ALL + col0 ) col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8973
SELECT DISTINCT + COUNT ( ALL + col0 ) col2 FROM tab1 AS cor0
----
3

query I rowsort
SELECT col0 * - ( 14 ) FROM tab1
----
-1190
-1274
-714

onlyif mysql # aggregate syntax: 
query I rowsort label-8975
SELECT ALL MIN( - 0 ) - 10 AS col0 FROM tab0
----
-10

skipif mysql # not compatible
query I rowsort label-8975
SELECT ALL MIN ( - 0 ) - 10 AS col0 FROM tab0
----
-10

query I rowsort
SELECT DISTINCT 93 * + 6 + col1 * - 98 AS col1 FROM tab2
----
-4440
-6008
-6988

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8977
SELECT ALL COUNT( * ) * + COUNT( * ) * + MIN( DISTINCT 66 ) * - 23 * + + CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8977
SELECT ALL COUNT ( * ) * + COUNT ( * ) * + MIN ( DISTINCT 66 ) * - 23 * + + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

query I rowsort
SELECT + col1 * col1 - + col2 AS col2 FROM tab2 AS cor0
----
2578
4431
5889

onlyif mysql # aggregate syntax: 
query I rowsort label-8979
SELECT - COUNT( + 53 ) AS col2 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8979
SELECT - COUNT ( + 53 ) AS col2 FROM tab1 AS cor0
----
-3

query I rowsort
SELECT - + ( - - col0 ) AS col0 FROM tab0 AS cor0
----
-15
-87
-97

query I rowsort
SELECT + 34 * - - 15 AS col0 FROM tab1 AS cor0
----
510
510
510

onlyif mysql # aggregate syntax: 
query I rowsort label-8982
SELECT ALL MAX( ALL - - col1 ) FROM tab0
----
81

skipif mysql # not compatible
query I rowsort label-8982
SELECT ALL MAX ( ALL - - col1 ) FROM tab0
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-8983
SELECT DISTINCT + 70 * COUNT( * ) * - - 77 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
48510

skipif mysql # not compatible
query I rowsort label-8983
SELECT DISTINCT + 70 * COUNT ( * ) * - - 77 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
48510

onlyif mysql # aggregate syntax: 
query I rowsort label-8984
SELECT DISTINCT + + COUNT( * ) FROM tab1 AS cor0 WHERE NOT NULL BETWEEN col2 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-8984
SELECT DISTINCT + + COUNT ( * ) FROM tab1 AS cor0 WHERE NOT NULL BETWEEN col2 AND NULL
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8985
SELECT + - COUNT( * ) DIV + COUNT( * ) FROM tab1 cor0
----
-1

skipif mysql # not compatible
query I rowsort label-8985
SELECT + - COUNT ( * ) / + COUNT ( * ) FROM tab1 cor0
----
-1

query I rowsort
SELECT ALL - - 18 FROM tab1 cor0
----
18
18
18

onlyif mysql # aggregate syntax: 
query I rowsort label-8987
SELECT - SUM( DISTINCT - + ( + + col0 ) ) + - 54 FROM tab2 AS cor0
----
131

skipif mysql # not compatible
query I rowsort label-8987
SELECT - SUM ( DISTINCT - + ( + + col0 ) ) + - 54 FROM tab2 AS cor0
----
131

onlyif mysql # DIV for integer division: 
query I rowsort label-8988
SELECT + 62 DIV - col0 + - 43 * col0 FROM tab0 AS cor0
----
-3741
-4171
-649

skipif mysql # not compatible
query I rowsort label-8988
SELECT + 62 / - col0 + - 43 * col0 FROM tab0 AS cor0
----
-3741
-4171
-649

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8989
SELECT - - 50 + CAST( NULL AS SIGNED ) + col1 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8989
SELECT - - 50 + CAST ( NULL AS INTEGER ) + col1 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 99 + + 2 FROM tab2 AS cor0
----
101
101
101

onlyif mysql # aggregate syntax: 
query I rowsort label-8991
SELECT DISTINCT COUNT( ALL - 92 ) * - MAX( ALL - col0 ) AS col2 FROM tab1 AS cor0
----
153

skipif mysql # not compatible
query I rowsort label-8991
SELECT DISTINCT COUNT ( ALL - 92 ) * - MAX ( ALL - col0 ) AS col2 FROM tab1 AS cor0
----
153

onlyif mysql # DIV for integer division: 
query I rowsort label-8992
SELECT DISTINCT + 9 DIV - col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-8992
SELECT DISTINCT + 9 / - col1 FROM tab2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8993
SELECT ALL col0 + CAST( + + col1 AS SIGNED ) AS col1 FROM tab1
----
138
65
90

skipif mysql # not compatible
query I rowsort label-8993
SELECT ALL col0 + CAST ( + + col1 AS INTEGER ) AS col1 FROM tab1
----
138
65
90

query II rowsort
SELECT 20, + col0 FROM tab1
----
20
51
20
85
20
91

query I rowsort
SELECT DISTINCT + col0 + + col1 * + 95 FROM tab0
----
192
2082
7710

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8996
SELECT ALL col2 + - CAST( col2 AS SIGNED ) + + col2 AS col0 FROM tab1
----
59
68
96

skipif mysql # not compatible
query I rowsort label-8996
SELECT ALL col2 + - CAST ( col2 AS INTEGER ) + + col2 AS col0 FROM tab1
----
59
68
96

query I rowsort
SELECT ALL - ( + - 89 ) AS col0 FROM tab2
----
89
89
89

query I rowsort
SELECT ALL ( - + col0 ) + - 39 AS col2 FROM tab2 AS cor0
----
-103
-114
-85

query I rowsort
SELECT + - col1 * - - 75 AS col1 FROM tab1 AS cor0
----
-1050
-3525
-375

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + - 20 + 40 * + 52 + - - col1 * col2 - + col1 / - col1 col0 FROM tab1 AS cor0 WHERE col1 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9001
SELECT DISTINCT - COUNT( * ) + + CAST( NULL AS SIGNED ) * - 54 AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9001
SELECT DISTINCT - COUNT ( * ) + + CAST ( NULL AS INTEGER ) * - 54 AS col0 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT + col0 + + 13 FROM tab2 AS cor0
----
59
77
88

query II rowsort
SELECT - + ( - 90 ), col0 FROM tab1 cor0
----
90
51
90
85
90
91

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9004
SELECT - CAST( - - col1 AS SIGNED ) AS col2, ( - col0 ) AS col2 FROM tab0 cor0
----
-1
-97
-21
-87
-81
-15

skipif mysql # not compatible
query II rowsort label-9004
SELECT - CAST ( - - col1 AS INTEGER ) AS col2, ( - col0 ) AS col2 FROM tab0 cor0
----
-1
-97
-21
-87
-81
-15

query I rowsort
SELECT ALL + + 96 * - ( + col1 ) FROM tab0 cor0 WHERE - col1 - 36 = + 74
----

query I rowsort
SELECT DISTINCT + col1 - + + 43 * col2 FROM tab1 AS cor0
----
-2532
-2877
-4114

query I rowsort
SELECT DISTINCT - + 26 - + + col0 FROM tab2 AS cor0
----
-101
-72
-90

query I rowsort
SELECT DISTINCT + 19 * - col2 * 61 * - + col0 - - col2 AS col0 FROM tab1 AS cor0
----
5674560
5812444
7171960

onlyif mysql # aggregate syntax: 
query II rowsort label-9009
SELECT MAX( - 16 ), COUNT( * ) * + 97 AS col1 FROM tab1 AS cor0
----
-16
291

skipif mysql # not compatible
query II rowsort label-9009
SELECT MAX ( - 16 ), COUNT ( * ) * + 97 AS col1 FROM tab1 AS cor0
----
-16
291

onlyif mysql # aggregate syntax: 
query I rowsort label-9010
SELECT ALL + 76 * COUNT( - col2 ) AS col1 FROM tab1
----
228

skipif mysql # not compatible
query I rowsort label-9010
SELECT ALL + 76 * COUNT ( - col2 ) AS col1 FROM tab1
----
228

onlyif mysql # aggregate syntax: 
query I rowsort label-9011
SELECT COUNT( ALL - ( - col2 ) ) AS col1 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-9011
SELECT COUNT ( ALL - ( - col2 ) ) AS col1 FROM tab0
----
3

query I rowsort
SELECT 21 * + 8 * col2 FROM tab2
----
3864
6720
9744

query I rowsort
SELECT + 92 * + + 63 AS col2 FROM tab1
----
5796
5796
5796

query I rowsort
SELECT DISTINCT ( + + 50 ) FROM tab2
----
50

query I rowsort
SELECT col2 * + 87 AS col2 FROM tab0
----
4089
8613
870

query I rowsort
SELECT col1 * + ( + - 25 ) FROM tab2
----
-1275
-1675
-1925

query I rowsort
SELECT 70 * + col1 AS col0 FROM tab0
----
1470
5670
70

query II rowsort
SELECT + col1, - col2 AS col0 FROM tab1 cor0
----
14
-96
47
-68
5
-59

query I rowsort
SELECT + 35 * - col0 * - col1 * - + col0 AS col1 FROM tab1 AS cor0
----
-1264375
-1274490
-13622245

query II rowsort
SELECT ALL + + col0 AS col1, + col0 * + 99 FROM tab0 AS cor0
----
15
1485
87
8613
97
9603

query III rowsort
SELECT * FROM tab2 WHERE NOT 39 > NULL
----

query I rowsort
SELECT - 93 + col2 FROM tab1 WHERE ( NULL ) < ( NULL )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NULL ) NOT BETWEEN NULL AND - 90 * 6 + - 99 / col0
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL >= - col0 * col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9025
SELECT SUM( ALL + col0 ) AS col1 FROM tab1
----
227

skipif mysql # not compatible
query I rowsort label-9025
SELECT SUM ( ALL + col0 ) AS col1 FROM tab1
----
227

query III rowsort
SELECT ALL * FROM tab2 WHERE col2 * 45 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * col2 + col1 * ( + col1 ) col0 FROM tab0 WHERE ( - col2 * col0 ) >= 58 / col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9028
SELECT ALL + COUNT( * ) AS col1 FROM tab1 WHERE 29 + col2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-9028
SELECT ALL + COUNT ( * ) AS col1 FROM tab1 WHERE 29 + col2 IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9029
SELECT COUNT( * ) - 27 FROM tab2 WHERE NOT ( - col1 ) IS NULL
----
-24

skipif mysql # not compatible
query I rowsort label-9029
SELECT COUNT ( * ) - 27 FROM tab2 WHERE NOT ( - col1 ) IS NULL
----
-24

query I rowsort
SELECT col1 FROM tab2 WHERE NOT NULL NOT IN ( + 11 - - col0 )
----

query I rowsort
SELECT + ( - 11 ) AS col2 FROM tab2
----
-11
-11
-11

query I rowsort
SELECT 19 - col1 FROM tab1
----
-28
14
5

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( col0 ) NOT IN ( + col2 * - col0 )
----

query I rowsort
SELECT 56 - col2 FROM tab2
----
-2
16
33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9035
SELECT ALL AVG ( ALL + CAST( NULL AS SIGNED ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9035
SELECT ALL AVG ( ALL + CAST ( NULL AS INTEGER ) ) FROM tab1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9036
SELECT + ( CAST( + 67 AS SIGNED ) ) AS col0 FROM tab2
----
67
67
67

skipif mysql # not compatible
query I rowsort label-9036
SELECT + ( CAST ( + 67 AS INTEGER ) ) AS col0 FROM tab2
----
67
67
67

query I rowsort
SELECT col0 + + 75 FROM tab0
----
162
172
90

onlyif mysql # aggregate syntax: 
query I rowsort label-9038
SELECT COUNT( ALL 90 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-9038
SELECT COUNT ( ALL 90 ) FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9039
SELECT DISTINCT COUNT( * ) AS col1 FROM tab0 WHERE NOT ( NULL ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-9039
SELECT DISTINCT COUNT ( * ) AS col1 FROM tab0 WHERE NOT ( NULL ) IS NULL
----
0

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL > ( + col0 )
----

query I rowsort
SELECT ALL - col2 AS col2 FROM tab0 WHERE NOT ( - 46 ) NOT BETWEEN col1 * + col0 AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - col1 BETWEEN ( + col2 ) AND + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9043
SELECT SUM( ALL CAST( NULL AS DECIMAL ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9043
SELECT SUM ( ALL CAST ( NULL AS REAL ) ) FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9044
SELECT MIN( + ( - col2 ) ) FROM tab2
----
-58

skipif mysql # not compatible
query I rowsort label-9044
SELECT MIN ( + ( - col2 ) ) FROM tab2
----
-58

query III rowsort
SELECT * FROM tab1 WHERE NULL < 77 - - col0
----

query I rowsort
SELECT 29 * 54 FROM tab1
----
1566
1566
1566

query I rowsort
SELECT ALL col0 * - ( col0 ) + + 9 FROM tab1
----
-2592
-7216
-8272

query I rowsort
SELECT ALL 65 FROM tab0 WHERE + 58 - 95 NOT IN ( - col2 )
----
65
65
65

query I rowsort
SELECT DISTINCT col2 - ( col2 + + col1 ) AS col1 FROM tab2
----
-51
-67
-77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9050
SELECT + ( 71 ) + COUNT( * ) * CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9050
SELECT + ( 71 ) + COUNT ( * ) * CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

query I rowsort
SELECT - col2 * + 35 AS col0 FROM tab1
----
-2065
-2380
-3360

query I rowsort
SELECT + col2 + + ( - col1 ) FROM tab0
----
-11
-34
98

query III rowsort
SELECT * FROM tab0 WHERE col1 IN ( + 90 )
----

query I rowsort
SELECT - col1 * 45 AS col2 FROM tab1 AS cor0
----
-2115
-225
-630

query I rowsort
SELECT + 70 * + col1 AS col2 FROM tab0 AS cor0
----
1470
5670
70

onlyif mysql # DIV for integer division: 
query I rowsort label-9056
SELECT col2 DIV - 49 AS col2 FROM tab2
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-9056
SELECT col2 / - 49 AS col2 FROM tab2
----
-1
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9057
SELECT DISTINCT - COUNT( * ) col1 FROM tab1 AS cor0 CROSS JOIN tab2
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9057
SELECT DISTINCT - COUNT ( * ) col1 FROM tab1 AS cor0 CROSS JOIN tab2
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9058
SELECT ALL - col2 - - CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9058
SELECT ALL - col2 - - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9059
SELECT - - ( - 67 ) / + COUNT( * ) + - CAST( NULL AS DECIMAL ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9059
SELECT - - ( - 67 ) / + COUNT ( * ) + - CAST ( NULL AS REAL ) AS col0 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT + col2 + 52 * col0 FROM tab2 cor0
----
2415
3368
3958

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9061
SELECT + + 69 * CAST( col0 + 0 * - col0 AS SIGNED ) FROM tab2 AS cor0
----
3174
4416
5175

skipif mysql # not compatible
query I rowsort label-9061
SELECT + + 69 * CAST ( col0 + 0 * - col0 AS INTEGER ) FROM tab2 AS cor0
----
3174
4416
5175

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9062
SELECT ALL CAST( + col1 AS SIGNED ) * + col0 FROM tab1 AS cor0
----
425
4277
714

skipif mysql # not compatible
query I rowsort label-9062
SELECT ALL CAST ( + col1 AS INTEGER ) * + col0 FROM tab1 AS cor0
----
425
4277
714

onlyif mysql # DIV for integer division: 
query I rowsort label-9063
SELECT DISTINCT 58 DIV - 23 AS col0 FROM tab2 AS cor0
----
-2

skipif mysql # not compatible
query I rowsort label-9063
SELECT DISTINCT 58 / - 23 AS col0 FROM tab2 AS cor0
----
-2

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( + ( - 77 ) * col2 )
----

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE - col1 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9066
SELECT - MAX( + 10 ) * 16 + + 22 FROM tab1 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9066
SELECT - MAX ( + 10 ) * 16 + + 22 FROM tab1 WHERE NOT NULL IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9067
SELECT DISTINCT COUNT( DISTINCT - - col1 ) AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-9067
SELECT DISTINCT COUNT ( DISTINCT - - col1 ) AS col2 FROM tab2
----
3

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + col2 <> - col0
----

query I rowsort
SELECT DISTINCT - col1 * - 6 AS col2 FROM tab1 WHERE NOT + col1 + + col1 IS NULL
----
282
30
84

onlyif mysql # aggregate syntax: 
query I rowsort label-9070
SELECT DISTINCT - COUNT( * ) AS col0 FROM tab0 WHERE NOT ( - col1 ) IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-9070
SELECT DISTINCT - COUNT ( * ) AS col0 FROM tab0 WHERE NOT ( - col1 ) IS NULL
----
-3

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + 62 >= 25 + - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9072
SELECT DISTINCT col1 * col1 - + col2 col2 FROM tab0 WHERE NOT 89 BETWEEN col2 AND - CAST( - 17 AS SIGNED ) * - col0
----
-98
431
6514

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9072
SELECT DISTINCT col1 * col1 - + col2 col2 FROM tab0 WHERE NOT 89 BETWEEN col2 AND - CAST ( - 17 AS INTEGER ) * - col0
----
-98
431
6514

query I rowsort
SELECT col1 * - - col1 * - 35 FROM tab1 AS cor0
----
-6860
-77315
-875

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9074
SELECT ALL + ( ( - SUM( DISTINCT - CAST( NULL AS SIGNED ) ) ) ) / COUNT( * ) FROM tab2 AS cor0 WHERE NOT col0 BETWEEN NULL AND col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9074
SELECT ALL + ( ( - SUM ( DISTINCT - CAST ( NULL AS INTEGER ) ) ) ) / COUNT ( * ) FROM tab2 AS cor0 WHERE NOT col0 BETWEEN NULL AND col2
----
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col1 NOT BETWEEN - col2 AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9076
SELECT DISTINCT + + ( - + CAST( COUNT( * ) AS SIGNED ) ) AS col0 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9076
SELECT DISTINCT + + ( - + CAST ( COUNT ( * ) AS INTEGER ) ) AS col0 FROM tab0 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9077
SELECT + + MAX( + ( col0 ) ) AS col2 FROM tab1 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-9077
SELECT + + MAX ( + ( col0 ) ) AS col2 FROM tab1 AS cor0
----
91

query I rowsort
SELECT + 29 + col0 AS col2 FROM tab0 AS cor0 WHERE NOT ( + col2 ) IS NULL
----
116
126
44

query I rowsort
SELECT DISTINCT - - 26 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
26

query I rowsort
SELECT ALL - col1 + 40 * col0 AS col0 FROM tab1
----
2026
3395
3593

query I rowsort
SELECT col0 + - 99 + + col0 FROM tab0
----
-69
75
95

query I rowsort
SELECT + col2 + col1 - - - col0 * col2 FROM tab2 AS cor0
----
-2443
-4225
-984

onlyif mysql # aggregate syntax: 
query I rowsort label-9083
SELECT + COUNT( * ) + - 10 AS col1 FROM tab1 AS cor0
----
-7

skipif mysql # not compatible
query I rowsort label-9083
SELECT + COUNT ( * ) + - 10 AS col1 FROM tab1 AS cor0
----
-7

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( col2 ) IS NULL
----

query I rowsort
SELECT - col2 + ( - col2 ) AS col1 FROM tab2 cor0
----
-116
-46
-80

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9086
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT 67 + + CAST( NULL AS SIGNED ) + 83 <> ( 19 )
----

skipif mysql # not compatible
query III rowsort label-9086
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT 67 + + CAST ( NULL AS INTEGER ) + 83 <> ( 19 )
----

query I rowsort
SELECT ALL - - ( - 66 ) * + col1 AS col0 FROM tab2 AS cor0
----
-3366
-4422
-5082

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 58 col0 FROM tab0 AS cor0 WHERE ( col0 ) BETWEEN + 7 * col0 + col1 AND ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + 13 ) / col1 + 14 col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT + + col0 * - - col0 + + col1 * col0 AS col2 FROM tab2 cor0
----
10650
4462
9024

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) IN ( + + col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col0 * + col1 * col0 col2 FROM tab1 AS cor0
----
-36125
-36414
-389207

query I rowsort
SELECT ALL - 89 FROM tab1 AS cor0 WHERE NULL IS NOT NULL OR ( + col2 ) IS NOT NULL
----
-89
-89
-89

query III rowsort
SELECT * FROM tab2 WHERE ( + - col0 * 39 * + col2 - 62 ) <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9095
SELECT - CAST( NULL AS SIGNED ) / col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9095
SELECT - CAST ( NULL AS INTEGER ) / col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col0 + + col2 FROM tab1 WHERE NOT col2 * col1 IS NULL
----
144
147
159

onlyif mysql # aggregate syntax: 
query I rowsort label-9097
SELECT ALL MIN( col1 ) FROM tab0 WHERE - col1 IS NOT NULL
----
1

skipif mysql # not compatible
query I rowsort label-9097
SELECT ALL MIN ( col1 ) FROM tab0 WHERE - col1 IS NOT NULL
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 52 col2 FROM tab1
----
52

query I rowsort
SELECT DISTINCT 67 + + col2 - 30 * + 89 * - col1 AS col1 FROM tab0
----
216384
2836
56147

query I rowsort
SELECT - 12 - - 62 * col0 AS col0 FROM tab0
----
5382
6002
918

query I rowsort
SELECT DISTINCT col0 + - 19 * + - col1 FROM tab2
----
1015
1348
1527

onlyif mysql # DIV for integer division: 
query I rowsort label-9102
SELECT col0 DIV col2 FROM tab0 AS cor0 WHERE ( ( - col2 ) ) BETWEEN ( - col0 ) AND ( 27 )
----
8

skipif mysql # not compatible
query I rowsort label-9102
SELECT col0 / col2 FROM tab0 AS cor0 WHERE ( ( - col2 ) ) BETWEEN ( - col0 ) AND ( 27 )
----
8

onlyif mysql # DIV for integer division: 
query I rowsort label-9103
SELECT ALL + + col1 DIV col2 - - - col1 AS col1 FROM tab1 AS cor0
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-9103
SELECT ALL + + col1 / col2 - - - col1 AS col1 FROM tab1 AS cor0
----
-14
-47
-5

query I rowsort
SELECT ALL - col2 * + 11 * col0 + col2 FROM tab1 AS cor0
----
-53760
-55106
-68000

query I rowsort
SELECT - 5 + col2 AS col0 FROM tab2 AS cor0
----
18
35
53

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 70 + 1 IS NULL
----

query I rowsort
SELECT - - col0 + 34 + + col0 + + col0 FROM tab1 AS cor0
----
187
289
307

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( 39 * - col2 ) <> col1
----

query I rowsort
SELECT DISTINCT + 72 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
72

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE + 8 IS NOT NULL
----
54 values hashing to 058438fde5fb838f23bcbdd39266ddcf

onlyif mysql # DIV for integer division: 
query I rowsort label-9111
SELECT DISTINCT - 2 DIV + col1 AS col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-9111
SELECT DISTINCT - 2 / + col1 AS col1 FROM tab2
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( 66 * + + col2 ) = NULL
----

query II rowsort
SELECT - - col1 AS col1, col0 AS col1 FROM tab2 AS cor0
----
51
46
67
75
77
64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9114
SELECT ALL + col2 * + CAST( - 73 AS SIGNED ) FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-9114
SELECT ALL + col2 * + CAST ( - 73 AS INTEGER ) FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9115
SELECT ALL * FROM tab2 AS cor0 WHERE CAST( col2 AS SIGNED ) IN ( + + col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-9115
SELECT ALL * FROM tab2 AS cor0 WHERE CAST ( col2 AS INTEGER ) IN ( + + col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col0 + + 21 / - + 3 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9117
SELECT ALL * FROM tab1 WHERE ( + col0 ) < ( col1 * CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-9117
SELECT ALL * FROM tab1 WHERE ( + col0 ) < ( col1 * CAST ( NULL AS INTEGER ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9118
SELECT - ( + 37 ) * CAST( - col0 AS SIGNED ) col2 FROM tab2
----
1702
2368
2775

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9118
SELECT - ( + 37 ) * CAST ( - col0 AS INTEGER ) col2 FROM tab2
----
1702
2368
2775

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9119
SELECT DISTINCT + 80 * CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9119
SELECT DISTINCT + 80 * CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - ( - + 48 ) <= ( + ( 64 ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - 19 * + 37 * - col0 FROM tab2
----
32338
44992
52725

onlyif mysql # aggregate syntax: 
query I rowsort label-9122
SELECT ALL MIN( DISTINCT + col0 ) * - 6 AS col1 FROM tab0
----
-90

skipif mysql # not compatible
query I rowsort label-9122
SELECT ALL MIN ( DISTINCT + col0 ) * - 6 AS col1 FROM tab0
----
-90

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9123
SELECT - CAST( NULL AS DECIMAL ) * + col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9123
SELECT - CAST ( NULL AS REAL ) * + col0 FROM tab0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 66 AS col2, 95 col0 FROM tab0
----
66
95
66
95
66
95

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( - col2 IS NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9126
SELECT - COUNT( * ) * - 33 FROM tab0
----
99

skipif mysql # not compatible
query I rowsort label-9126
SELECT - COUNT ( * ) * - 33 FROM tab0
----
99

query I rowsort
SELECT col0 AS col1 FROM tab1 AS cor0 WHERE NOT + 52 + col0 + - - col2 * + col2 NOT BETWEEN + - col2 AND - 64 * - col1
----

query I rowsort
SELECT DISTINCT - ( col0 ) AS col0 FROM tab2 AS cor0 WHERE NOT 44 IS NULL
----
-46
-64
-75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9129
SELECT ALL COUNT( * ) DIV - ( - 18 ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9129
SELECT ALL COUNT ( * ) / - ( - 18 ) FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9130
SELECT COUNT( * ) DIV + COUNT( * ) FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-9130
SELECT COUNT ( * ) / + COUNT ( * ) FROM tab0 AS cor0
----
1

query I rowsort
SELECT ALL + - 92 AS col0 FROM tab2 WHERE NOT col2 IS NULL
----
-92
-92
-92

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 12 NOT BETWEEN + - 32 AND + - col1
----
51
14
96
91
47
68

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col2 + + 14 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( - col1 IS NOT NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT DISTINCT 28 + - col0, + col0 FROM tab0 AS cor0
----
-59
87
-69
97
13
15

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col1 <> 87
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL IN ( - 87 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + + col1 * - col1 + - + 6 * - col1 * + + col2 col0 FROM tab2 AS cor0
----
12591
18885
4460

query I rowsort
SELECT ( + 12 ) + - col1 + col2 AS col0 FROM tab2 AS cor0
----
-16
-25
3

query I rowsort
SELECT + col0 + - col1 AS col1 FROM tab2 cor0
----
-13
-5
8

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9141
SELECT - 52 * - - COUNT( * ) + CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9141
SELECT - 52 * - - COUNT ( * ) + CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL + col2 + + + col1 AS col0 FROM tab0
----
100
128
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9143
SELECT + COUNT( DISTINCT - - 74 ) + + + MIN( - - CAST( NULL AS SIGNED ) ) * - AVG ( - col0 ) - - 2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9143
SELECT + COUNT ( DISTINCT - - 74 ) + + + MIN ( - - CAST ( NULL AS INTEGER ) ) * - AVG ( - col0 ) - - 2 FROM tab2
----
NULL

query I rowsort
SELECT ALL col1 - col1 FROM tab2 WHERE NOT + - col1 = + 45
----
0
0
0

query I rowsort
SELECT ( + ( - col0 ) ) + - col0 - ( - + col2 ) AS col2 FROM tab1
----
-111
-114
-6

query I rowsort
SELECT + col2 + 90 - - col2 FROM tab0
----
110
184
288

query I rowsort
SELECT DISTINCT + + ( - col1 ) + col0 FROM tab0 AS cor0
----
-66
66
96

query I rowsort
SELECT + col2 * - 75 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 23 col2 FROM tab1 cor0
----
23
23
23

query II rowsort
SELECT + 27, - 56 AS col1 FROM tab1 AS cor0
----
27
-56
27
-56
27
-56

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + ( 18 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col2 * 90 - col1 FROM tab1 AS cor0
----
-5315
-6167
-8654

onlyif mysql # aggregate syntax: 
query I rowsort label-9153
SELECT - - COUNT( - - col2 ) FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-9153
SELECT - - COUNT ( - - col2 ) FROM tab1 cor0
----
3

query II rowsort
SELECT + 90 AS col1, ( 95 ) * + col2 FROM tab0 cor0
----
90
4465
90
9405
90
950

query I rowsort
SELECT - 54 - - 26 + col2 + - 43 * col2 AS col0 FROM tab2 AS cor0
----
-1708
-2464
-994

onlyif mysql # DIV for integer division: 
query I rowsort label-9156
SELECT - + col1 DIV 85 DIV col0 * + col2 DIV - col2 - - - col2 FROM tab0 AS cor0
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-9156
SELECT - + col1 / 85 / col0 * + col2 / - col2 - - - col2 FROM tab0 AS cor0
----
-10
-47
-99

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT ( NOT ( NULL ) IS NOT NULL )
----

query I rowsort
SELECT 89 * col2 AS col2 FROM tab1
----
5251
6052
8544

query II rowsort
SELECT 78 * col0 AS col1, + 84 FROM tab2
----
3588
84
4992
84
5850
84

query II rowsort
SELECT ALL + col0 * - + ( + 82 ) * - - col1 AS col0, col1 AS col0 FROM tab0
----
-149814
21
-7954
1
-99630
81

query III rowsort
SELECT * FROM tab0 WHERE NOT + 93 * col1 BETWEEN - col2 AND NULL
----

query I rowsort
SELECT ALL - + 44 AS col1 FROM tab0 AS cor0
----
-44
-44
-44

query I rowsort
SELECT ALL + + col0 * col1 AS col1 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
1215
1827
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 58 col0 FROM tab1 AS cor0
----
58

query II rowsort
SELECT ALL + 10 AS col2, col1 AS col2 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT - - col1 * + - 41 FROM tab2 AS cor0
----
-2091
-2747
-3157

onlyif mysql # DIV for integer division: 
query I rowsort label-9167
SELECT DISTINCT 1 * - 54 DIV + col1 FROM tab2
----
-1
0

skipif mysql # not compatible
query I rowsort label-9167
SELECT DISTINCT 1 * - 54 / + col1 FROM tab2
----
-1
0

query II rowsort
SELECT ALL + + col2, - col1 FROM tab1 WHERE - col2 NOT BETWEEN + - 88 AND NULL
----
96
-14

query III rowsort
SELECT ALL * FROM tab0 WHERE + 87 + + - 17 * + + col0 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9170
SELECT ( - 5 ) * + MAX( + col2 ) * - 9 AS col2 FROM tab1
----
4320

skipif mysql # not compatible
query I rowsort label-9170
SELECT ( - 5 ) * + MAX ( + col2 ) * - 9 AS col2 FROM tab1
----
4320

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9171
SELECT ALL col0 * + 82 / + CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9171
SELECT ALL col0 * + 82 / + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9172
SELECT SUM( + ( + col1 ) ) + + ( - 92 ) AS col2 FROM tab1
----
-26

skipif mysql # not compatible
query I rowsort label-9172
SELECT SUM ( + ( + col1 ) ) + + ( - 92 ) AS col2 FROM tab1
----
-26

query I rowsort
SELECT - 34 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 40442a74794ded4c78101eefe525a5bb

query I rowsort
SELECT col0 + + col1 * col0 * - - col1 FROM tab0 AS cor0
----
194
38454
98430

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col0 + + + 24 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-9176
SELECT - - COUNT( * ), - 32 AS col2 FROM tab0 AS cor0
----
3
-32

skipif mysql # not compatible
query II rowsort label-9176
SELECT - - COUNT ( * ), - 32 AS col2 FROM tab0 AS cor0
----
3
-32

query I rowsort
SELECT DISTINCT col1 * + col0 * + col0 - + col2 FROM tab1 AS cor0
----
36066
36318
389139

query II rowsort
SELECT + + col0 AS col0, + col1 AS col1 FROM tab2 AS cor0
----
46
51
64
77
75
67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + - col0 ) + - col0 col1 FROM tab0 AS cor0 WHERE ( + 19 ) < NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 30 col1 FROM tab2
----
30
30
30

onlyif mysql # aggregate syntax: 
query I rowsort label-9181
SELECT DISTINCT + - COUNT( * ) * - + ( + + COUNT( * ) ) FROM tab0 WHERE NOT ( NULL NOT BETWEEN 46 AND NULL )
----
0

skipif mysql # not compatible
query I rowsort label-9181
SELECT DISTINCT + - COUNT ( * ) * - + ( + + COUNT ( * ) ) FROM tab0 WHERE NOT ( NULL NOT BETWEEN 46 AND NULL )
----
0

query II rowsort
SELECT col1 - + - col0 AS col2, 54 AS col0 FROM tab1
----
138
54
65
54
90
54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9183
SELECT DISTINCT ( + 41 ) * - col1 - + col0 + - CAST( 67 AS SIGNED ) FROM tab1
----
-2085
-357
-692

skipif mysql # not compatible
query I rowsort label-9183
SELECT DISTINCT ( + 41 ) * - col1 - + col0 + - CAST ( 67 AS INTEGER ) FROM tab1
----
-2085
-357
-692

query I rowsort
SELECT col2 + + 66 + col0 FROM tab0 AS cor0
----
128
163
262

query I rowsort
SELECT col0 + - + 60 + - - col2 / - col2 + col2 + + 97 / 63 FROM tab0 AS cor0 WHERE NOT - col0 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9186
SELECT + COUNT( * ) AS col0 FROM tab0 WHERE NOT 5 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-9186
SELECT + COUNT ( * ) AS col0 FROM tab0 WHERE NOT 5 IS NOT NULL
----
0

query I rowsort
SELECT 6 * 55 * + 31 AS col0 FROM tab0
----
10230
10230
10230

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - 50 IS NULL
----

query I rowsort
SELECT ALL + col0 + - + col2 * + col1 + - 27 + + col2 AS col2 FROM tab1 AS cor0 WHERE NULL <= col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9190
SELECT - + COUNT( * ) FROM tab0 WHERE NOT + 9 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-9190
SELECT - + COUNT ( * ) FROM tab0 WHERE NOT + 9 IS NOT NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9191
SELECT ALL 92 DIV + col2 AS col2 FROM tab0
----
0
1
9

skipif mysql # not compatible
query I rowsort label-9191
SELECT ALL 92 / + col2 AS col2 FROM tab0
----
0
1
9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9192
SELECT DISTINCT 10 DIV - + MAX( - 98 ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-9192
SELECT DISTINCT 10 / - + MAX ( - 98 ) FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9193
SELECT DISTINCT MAX( + 36 ) AS col2 FROM tab1
----
36

skipif mysql # not compatible
query I rowsort label-9193
SELECT DISTINCT MAX ( + 36 ) AS col2 FROM tab1
----
36

query I rowsort
SELECT 1 AS col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
1
1
1

query I rowsort
SELECT col2 + 86 FROM tab2
----
109
126
144

onlyif mysql # aggregate syntax: 
query I rowsort label-9196
SELECT - COUNT( * ) + + SUM( - + 41 ) * + + 37 * - COUNT( + - col2 ) FROM tab2
----
13650

skipif mysql # not compatible
query I rowsort label-9196
SELECT - COUNT ( * ) + + SUM ( - + 41 ) * + + 37 * - COUNT ( + - col2 ) FROM tab2
----
13650

query I rowsort
SELECT DISTINCT 59 + + 23 FROM tab2 WHERE NOT - - 38 > - + 86
----

query I rowsort
SELECT DISTINCT + + col2 * - - col0 AS col2 FROM tab2 cor0
----
1058
2560
4350

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 + + - col2 < 82
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9200
SELECT DISTINCT CAST( + + col0 AS SIGNED ) + + col1 col0, col1 col1 FROM tab1
----
138
47
65
14
90
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9200
SELECT DISTINCT CAST ( + + col0 AS INTEGER ) + + col1 col0, col1 col1 FROM tab1
----
138
47
65
14
90
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9201
SELECT DISTINCT CAST( NULL AS SIGNED ) + ( - 3 ) + col2 AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9201
SELECT DISTINCT CAST ( NULL AS INTEGER ) + ( - 3 ) + col2 AS col1 FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL <> col1 * + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9203
SELECT + SUM( - - col1 ) + + 77 AS col1 FROM tab2 AS cor0
----
272

skipif mysql # not compatible
query I rowsort label-9203
SELECT + SUM ( - - col1 ) + + 77 AS col1 FROM tab2 AS cor0
----
272

onlyif mysql # aggregate syntax: 
query I rowsort label-9204
SELECT ALL + + COUNT( * ) FROM tab1 AS cor0 WHERE NOT 5 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-9204
SELECT ALL + + COUNT ( * ) FROM tab1 AS cor0 WHERE NOT 5 IS NOT NULL
----
0

query II rowsort
SELECT DISTINCT + 1 - - col0 * col0, + col2 FROM tab1 cor0
----
2602
96
7226
59
8282
68

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + 14 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( col1 ) BETWEEN ( NULL ) AND ( - - col0 )
----

query I rowsort
SELECT - col1 * + + col1 + 19 FROM tab2 AS cor0
----
-2582
-4470
-5910

onlyif mysql # aggregate syntax: 
query I rowsort label-9209
SELECT ALL + COUNT( ALL + + 57 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9209
SELECT ALL + COUNT ( ALL + + 57 ) FROM tab0 AS cor0
----
3

query I rowsort
SELECT + 50 + + col0 * - + col0 FROM tab2 cor0
----
-2066
-4046
-5575

query I rowsort
SELECT col2 * - col2 + - 37 AS col2 FROM tab1
----
-3518
-4661
-9253

onlyif mysql # aggregate syntax: 
query I rowsort label-9212
SELECT DISTINCT + ( MAX( + 98 ) ) AS col1 FROM tab2
----
98

skipif mysql # not compatible
query I rowsort label-9212
SELECT DISTINCT + ( MAX ( + 98 ) ) AS col1 FROM tab2
----
98

query I rowsort
SELECT DISTINCT + 5 + col1 AS col1 FROM tab1
----
10
19
52

query II rowsort
SELECT - col2 * + + 91 AS col1, 53 AS col2 FROM tab1
----
-5369
53
-6188
53
-8736
53

query I rowsort
SELECT - + col2 AS col2 FROM tab2 WHERE NULL IS NULL
----
-23
-40
-58

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9216
SELECT DISTINCT * FROM tab0 WHERE NOT ( col1 + - + CAST( NULL AS SIGNED ) * + 22 ) BETWEEN ( + col0 ) AND - col2
----

skipif mysql # not compatible
query III rowsort label-9216
SELECT DISTINCT * FROM tab0 WHERE NOT ( col1 + - + CAST ( NULL AS INTEGER ) * + 22 ) BETWEEN ( + col0 ) AND - col2
----

query I rowsort
SELECT DISTINCT + 63 - + col1 * col0 FROM tab2 WHERE 72 * col0 - + ( - - col2 ) <= + col2
----

query II rowsort
SELECT ALL 46, ( - + col1 ) AS col1 FROM tab2
----
46
-51
46
-67
46
-77

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT NULL >= col2 - - col1 - - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9220
SELECT ALL - MIN( - 36 ) FROM tab1 AS cor0
----
36

skipif mysql # not compatible
query I rowsort label-9220
SELECT ALL - MIN ( - 36 ) FROM tab1 AS cor0
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-9221
SELECT + - ( + 52 ) * COUNT( + + col2 ) AS col0 FROM tab1 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-9221
SELECT + - ( + 52 ) * COUNT ( + + col2 ) AS col0 FROM tab1 AS cor0
----
-156

onlyif mysql # aggregate syntax: 
query I rowsort label-9222
SELECT - COUNT( * ) * SUM( col2 ) FROM tab1 AS cor0
----
-669

skipif mysql # not compatible
query I rowsort label-9222
SELECT - COUNT ( * ) * SUM ( col2 ) FROM tab1 AS cor0
----
-669

onlyif mysql # DIV for integer division: 
query I rowsort label-9223
SELECT - ( - col0 ) DIV col2 FROM tab1 cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-9223
SELECT - ( - col0 ) / col2 FROM tab1 cor0
----
0
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9224
SELECT ALL - + COUNT( * ) FROM tab0 cor0 WHERE ( col1 ) < col1
----
0

skipif mysql # not compatible
query I rowsort label-9224
SELECT ALL - + COUNT ( * ) FROM tab0 cor0 WHERE ( col1 ) < col1
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2 * - - col1, col1 + - 45 col2 FROM tab2 AS cor0
----
1173
6
3080
32
3886
22

onlyif mysql # DIV for integer division: 
query I rowsort label-9226
SELECT 57 DIV + col0 FROM tab2
----
0
0
1

skipif mysql # not compatible
query I rowsort label-9226
SELECT 57 / + col0 FROM tab2
----
0
0
1

query I rowsort
SELECT ALL - col1 + + col2 * + ( + + col0 ) - - - ( + 51 ) AS col0 FROM tab0
----
573
798
9551

query I rowsort
SELECT - col0 * + 76 AS col0 FROM tab1
----
-3876
-6460
-6916

onlyif mysql # aggregate syntax: 
query II rowsort label-9229
SELECT DISTINCT 9 AS col1, + COUNT( * ) / ( - 41 ) * SUM( ALL - + 3 ) FROM tab1 WHERE NULL IS NOT NULL
----
9
NULL

skipif mysql # not compatible
query II rowsort label-9229
SELECT DISTINCT 9 AS col1, + COUNT ( * ) / ( - 41 ) * SUM ( ALL - + 3 ) FROM tab1 WHERE NULL IS NOT NULL
----
9
NULL

query I rowsort
SELECT DISTINCT - - col2 + 42 FROM tab1 AS cor0
----
101
110
138

query I rowsort
SELECT DISTINCT + + 68 + - + col1 + + 95 * + 13 * - 23 FROM tab2 cor0
----
-28388
-28404
-28414

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9232
SELECT DISTINCT + COUNT( * ) DIV - 29 AS col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9232
SELECT DISTINCT + COUNT ( * ) / - 29 AS col0 FROM tab0 AS cor0
----
0

query I rowsort
SELECT DISTINCT - 5 + + - 30 * - 38 AS col0 FROM tab1
----
1135

onlyif mysql # aggregate syntax: 
query I rowsort label-9234
SELECT DISTINCT - 64 + - COUNT( * ) AS col0 FROM tab2
----
-67

skipif mysql # not compatible
query I rowsort label-9234
SELECT DISTINCT - 64 + - COUNT ( * ) AS col0 FROM tab2
----
-67

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT - ( - + 18 ) IS NULL
----
54 values hashing to 375f372843089b03f23b00160007527a

query I rowsort
SELECT DISTINCT - - col2 * 37 - - col0 FROM tab0 AS cor0
----
1754
3760
457

query I rowsort
SELECT - + 83 * - col2 AS col0 FROM tab1 AS cor0
----
4897
5644
7968

query II rowsort
SELECT - col2 * col1, - col1 AS col2 FROM tab2 AS cor0
----
-1173
-51
-3080
-77
-3886
-67

query I rowsort
SELECT ALL + - 69 - - col2 AS col1 FROM tab2 cor0
----
-11
-29
-46

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( + ( - - ( - + col0 ) ) ) col2 FROM tab1 AS cor0
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-9241
SELECT ALL + MAX( - 65 ) AS col2 FROM tab0
----
-65

skipif mysql # not compatible
query I rowsort label-9241
SELECT ALL + MAX ( - 65 ) AS col2 FROM tab0
----
-65

query I rowsort
SELECT ALL 80 - + - 87 + - ( 50 ) AS col1 FROM tab1
----
117
117
117

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * 52 col0 FROM tab1
----
3068
3536
4992

query II rowsort
SELECT - ( + 82 ) * col0 AS col1, + col2 FROM tab1
----
-4182
96
-6970
59
-7462
68

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9245
SELECT DISTINCT * FROM tab1 WHERE NOT - + 80 - + CAST( NULL AS SIGNED ) BETWEEN ( NULL ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-9245
SELECT DISTINCT * FROM tab1 WHERE NOT - + 80 - + CAST ( NULL AS INTEGER ) BETWEEN ( NULL ) AND NULL
----

query II rowsort
SELECT ALL - col0 + - + col1 * 49, 1 AS col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-1116
1
-146
1
-3984
1

query I rowsort
SELECT DISTINCT ( - 88 ) AS col0 FROM tab0
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-9248
SELECT ALL - ( + COUNT( * ) ) col2 FROM tab1 cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9248
SELECT ALL - ( + COUNT ( * ) ) col2 FROM tab1 cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9249
SELECT + SUM( DISTINCT - 11 ) col1 FROM tab0 AS cor0
----
-11

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9249
SELECT + SUM ( DISTINCT - 11 ) col1 FROM tab0 AS cor0
----
-11

query I rowsort
SELECT - - col1 * - col2 * - 18 AS col1 FROM tab0 AS cor0
----
1782
3780
68526

query II rowsort
SELECT ALL col0, col2 AS col2 FROM tab0 AS cor0
----
15
47
87
10
97
99

query II rowsort
SELECT ALL - col1 AS col2, 63 FROM tab2 cor0
----
-51
63
-67
63
-77
63

onlyif mysql # aggregate syntax: 
query I rowsort label-9253
SELECT DISTINCT + + ( + COUNT( * ) ) FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-9253
SELECT DISTINCT + + ( + COUNT ( * ) ) FROM tab0 cor0
----
3

query II rowsort
SELECT DISTINCT - + col1 AS col1, 29 + - col2 FROM tab2 AS cor0
----
-51
6
-67
-29
-77
-11

query I rowsort
SELECT 67 AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
67
67
67

query II rowsort
SELECT + 5 AS col2, col0 AS col0 FROM tab1 cor0
----
5
51
5
85
5
91

onlyif mysql # aggregate syntax: 
query II rowsort label-9257
SELECT ALL + - COUNT( * ) AS col1, ( + - 25 ) * + 53 FROM tab1 AS cor0
----
-3
-1325

skipif mysql # not compatible
query II rowsort label-9257
SELECT ALL + - COUNT ( * ) AS col1, ( + - 25 ) * + 53 FROM tab1 AS cor0
----
-3
-1325

onlyif mysql # aggregate syntax: 
query I rowsort label-9258
SELECT - MAX( + - col2 ) AS col2 FROM tab2 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-9258
SELECT - MAX ( + - col2 ) AS col2 FROM tab2 AS cor0
----
23

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9259
SELECT * FROM tab2 cor0 WHERE NOT CAST( NULL AS SIGNED ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-9259
SELECT * FROM tab2 cor0 WHERE NOT CAST ( NULL AS INTEGER ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT ALL 26 AS col1, col0 * - col0 AS col2 FROM tab0 AS cor0
----
26
-225
26
-7569
26
-9409

query I rowsort
SELECT ALL + - 52 * + + ( + - col1 ) * - 26 AS col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-109512
-1352
-28392

query I rowsort
SELECT ALL - col1 + - + ( + 80 ) FROM tab2
----
-131
-147
-157

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9263
SELECT ALL col1 * - 91 * - col0 AS col2 FROM tab2 WHERE + col1 BETWEEN col2 * 89 AND - - col2 + - - col0 AND NOT - col2 NOT BETWEEN NULL AND - CAST( + col1 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-9263
SELECT ALL col1 * - 91 * - col0 AS col2 FROM tab2 WHERE + col1 BETWEEN col2 * 89 AND - - col2 + - - col0 AND NOT - col2 NOT BETWEEN NULL AND - CAST ( + col1 AS INTEGER )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9264
SELECT CAST( NULL AS SIGNED ) + - - COUNT( * ) col2 FROM tab0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9264
SELECT CAST ( NULL AS INTEGER ) + - - COUNT ( * ) col2 FROM tab0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9265
SELECT DISTINCT + col1 + + + col1 AS col0, + col1 / + ( col0 ) * + 1 * + CAST( NULL AS SIGNED ) - + col0 col0 FROM tab1
----
10
NULL
28
NULL
94
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9265
SELECT DISTINCT + col1 + + + col1 AS col0, + col1 / + ( col0 ) * + 1 * + CAST ( NULL AS INTEGER ) - + col0 col0 FROM tab1
----
10
NULL
28
NULL
94
NULL

query I rowsort
SELECT col2 + 56 AS col0 FROM tab1
----
115
124
152

query I rowsort
SELECT ALL + col1 + col2 - - 18 * + col2 AS col2 FROM tab2
----
1169
488
837

query I rowsort
SELECT + + 77 FROM tab1 AS cor0 WHERE + col2 * + - col0 IS NULL
----

query I rowsort
SELECT ALL 82 * + - col0 * - + 90 - + col0 FROM tab0 AS cor0
----
110685
641973
715763

query I rowsort
SELECT 31 * + col2 * + col1 FROM tab2
----
120466
36363
95480

onlyif mysql # DIV for integer division: 
query I rowsort label-9271
SELECT 23 DIV - col0 AS col2 FROM tab0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-9271
SELECT 23 / - col0 AS col2 FROM tab0
----
-1
0
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( col0 - - - col2 ) <= ( + 99 )
----

query I rowsort
SELECT ALL - 39 + col1 FROM tab2
----
12
28
38

query I rowsort
SELECT DISTINCT + 5 + + col2 AS col1 FROM tab1
----
101
64
73

onlyif mysql # aggregate syntax: 
query I rowsort label-9275
SELECT ALL 3 + COUNT( * ) col0 FROM tab1
----
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9275
SELECT ALL 3 + COUNT ( * ) col0 FROM tab1
----
6

query I rowsort
SELECT ALL - + col2 + col2 FROM tab0 cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + - 75 + + 4 FROM tab0 AS cor0
----
-71

query I rowsort
SELECT ALL 53 + + 69 FROM tab0 cor0
----
122
122
122

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col2 * - + 71 IS NULL
----

query II rowsort
SELECT + - col1, 7 AS col0 FROM tab2 AS cor0
----
-51
7
-67
7
-77
7

query I rowsort
SELECT DISTINCT + col0 * - 33 AS col0 FROM tab0
----
-2871
-3201
-495

onlyif mysql # aggregate syntax: 
query I rowsort label-9282
SELECT ALL + SUM( + 46 ) * + 51 FROM tab1
----
7038

skipif mysql # not compatible
query I rowsort label-9282
SELECT ALL + SUM ( + 46 ) * + 51 FROM tab1
----
7038

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9283
SELECT ALL * FROM tab2 WHERE NOT NULL < ( + - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-9283
SELECT ALL * FROM tab2 WHERE NOT NULL < ( + - CAST ( NULL AS INTEGER ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 50 col1 FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND 30
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9285
SELECT ALL + CAST( NULL AS DECIMAL ) * 23 * - - 45 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9285
SELECT ALL + CAST ( NULL AS REAL ) * 23 * - - 45 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 83 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9287
SELECT DISTINCT + + COUNT( DISTINCT col2 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9287
SELECT DISTINCT + + COUNT ( DISTINCT col2 ) FROM tab0 AS cor0
----
3

query I rowsort
SELECT - col1 + 6 + - 74 * 80 AS col0 FROM tab0 AS cor0
----
-5915
-5935
-5995

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT + 1 * + + col0 * 68 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9290
SELECT MIN( + - col1 ) + - - ( - 43 ) AS col1 FROM tab2 AS cor0
----
-120

skipif mysql # not compatible
query I rowsort label-9290
SELECT MIN ( + - col1 ) + - - ( - 43 ) AS col1 FROM tab2 AS cor0
----
-120

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 89 * - col0 + + 56 - - col2 col2 FROM tab0 AS cor0
----
1438
7809
8788

query I rowsort
SELECT - col1 * + - ( + col2 ) + - + col2 AS col1 FROM tab2 cor0
----
1150
3040
3828

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 * - - ( - 25 ) col2 FROM tab2 cor0
----
-1150
-1600
-1875

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col1 <> - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT col2 AS col2, col2 AS col0 FROM tab2
----
23
23
40
40
58
58

onlyif mysql # aggregate syntax: 
query I rowsort label-9296
SELECT DISTINCT COUNT( * ) + - SUM( DISTINCT col1 ) FROM tab1
----
-63

skipif mysql # not compatible
query I rowsort label-9296
SELECT DISTINCT COUNT ( * ) + - SUM ( DISTINCT col1 ) FROM tab1
----
-63

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9297
SELECT 26 col0, CAST( + col0 AS SIGNED ) * + CAST( - - col0 AS SIGNED ) col0 FROM tab1
----
26
2601
26
7225
26
8281

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9297
SELECT 26 col0, CAST ( + col0 AS INTEGER ) * + CAST ( - - col0 AS INTEGER ) col0 FROM tab1
----
26
2601
26
7225
26
8281

onlyif mysql # DIV for integer division: 
query I rowsort label-9298
SELECT ALL col1 DIV + 72 + 77 AS col1 FROM tab1
----
77
77
77

skipif mysql # not compatible
query I rowsort label-9298
SELECT ALL col1 / + 72 + 77 AS col1 FROM tab1
----
77
77
77

onlyif mysql # aggregate syntax: 
query II rowsort label-9299
SELECT ALL COUNT( * ) AS col1, + 30 FROM tab0
----
3
30

skipif mysql # not compatible
query II rowsort label-9299
SELECT ALL COUNT ( * ) AS col1, + 30 FROM tab0
----
3
30

query I rowsort
SELECT + col1 * + col2 / + + col1 AS col0 FROM tab0 WHERE 42 IS NULL
----

query I rowsort
SELECT ALL + - 68 * + col0 * + col2 AS col0 FROM tab0 WHERE NULL <= col0 * + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9302
SELECT - col0 - - + CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9302
SELECT - col0 - - + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + + 43 + ( - col2 ) FROM tab2 AS cor0
----
-15
20
3

query II rowsort
SELECT ALL + 84 AS col2, + col1 AS col1 FROM tab0 AS cor0
----
84
1
84
21
84
81

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT 59 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9306
SELECT ALL + + 0 + MAX( col1 ) * 54 FROM tab0 AS cor0
----
4374

skipif mysql # not compatible
query I rowsort label-9306
SELECT ALL + + 0 + MAX ( col1 ) * 54 FROM tab0 AS cor0
----
4374

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9307
SELECT ALL * FROM tab0 cor0 WHERE col0 BETWEEN + CAST( NULL AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-9307
SELECT ALL * FROM tab0 cor0 WHERE col0 BETWEEN + CAST ( NULL AS INTEGER ) AND NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) > 30 + col1
----

query I rowsort
SELECT ALL - - ( + 34 ) FROM tab1 AS cor0
----
34
34
34

onlyif mysql # aggregate syntax: 
query I rowsort label-9310
SELECT ALL COUNT( * ) FROM tab2 WHERE NULL <> ( + col1 ) * + col1 * + 16 + col2 + - - col1 / + col1
----
0

skipif mysql # not compatible
query I rowsort label-9310
SELECT ALL COUNT ( * ) FROM tab2 WHERE NULL <> ( + col1 ) * + col1 * + 16 + col2 + - - col1 / + col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9311
SELECT - MAX( ALL - 3 ) AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-9311
SELECT - MAX ( ALL - 3 ) AS col1 FROM tab2
----
3

query II rowsort
SELECT ALL 9 AS col1, col0 FROM tab0
----
9
15
9
87
9
97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9313
SELECT DISTINCT + COUNT( * ) DIV - 46 AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-9313
SELECT DISTINCT + COUNT ( * ) / - 46 AS col2 FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9314
SELECT ALL - 53 AS col1, + SUM( DISTINCT - col2 ) FROM tab0
----
-53
-156

skipif mysql # not compatible
query II rowsort label-9314
SELECT ALL - 53 AS col1, + SUM ( DISTINCT - col2 ) FROM tab0
----
-53
-156

query I rowsort
SELECT - - ( - - col0 ) AS col1 FROM tab2 AS cor0
----
46
64
75

query I rowsort
SELECT DISTINCT col2 * + + 68 AS col0 FROM tab0 AS cor0
----
3196
6732
680

onlyif mysql # DIV for integer division: 
query I rowsort label-9317
SELECT + + 84 DIV + 18 AS col0 FROM tab2 AS cor0
----
4
4
4

skipif mysql # not compatible
query I rowsort label-9317
SELECT + + 84 / + 18 AS col0 FROM tab2 AS cor0
----
4
4
4

query II rowsort
SELECT DISTINCT - 63, col2 AS col1 FROM tab0 cor0
----
-63
10
-63
47
-63
99

onlyif mysql # aggregate syntax: 
query I rowsort label-9319
SELECT ALL COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE ( NULL ) BETWEEN - col0 AND - 13
----
0

skipif mysql # not compatible
query I rowsort label-9319
SELECT ALL COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE ( NULL ) BETWEEN - col0 AND - 13
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9320
SELECT + SUM( ALL col2 ) col0 FROM tab0
----
156

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9320
SELECT + SUM ( ALL col2 ) col0 FROM tab0
----
156

query I rowsort
SELECT + - ( + + col1 ) AS col0 FROM tab0 AS cor0
----
-1
-21
-81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9322
SELECT DISTINCT + - 61 + + ( - - CAST( - ( MAX( col1 ) ) AS SIGNED ) ) * + 63 AS col2 FROM tab0 AS cor0
----
-5164

skipif mysql # not compatible
query I rowsort label-9322
SELECT DISTINCT + - 61 + + ( - - CAST ( - ( MAX ( col1 ) ) AS INTEGER ) ) * + 63 AS col2 FROM tab0 AS cor0
----
-5164

query I rowsort
SELECT ( - col1 ) FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9324
SELECT DISTINCT 6 DIV + col2 AS col0 FROM tab0 cor0
----
0

skipif mysql # not compatible
query I rowsort label-9324
SELECT DISTINCT 6 / + col2 AS col0 FROM tab0 cor0
----
0

query I rowsort
SELECT ALL - 91 * 65 FROM tab1 AS cor0
----
-5915
-5915
-5915

query I rowsort
SELECT + 79 + 87 FROM tab1 AS cor0
----
166
166
166

query I rowsort
SELECT + col1 + - - col2 FROM tab2
----
117
125
74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9328
SELECT ALL ( + CAST( NULL AS SIGNED ) ) AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9328
SELECT ALL ( + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9329
SELECT ALL + 66 + MIN( DISTINCT + col0 ) * + - 55 AS col0 FROM tab1
----
-2739

skipif mysql # not compatible
query I rowsort label-9329
SELECT ALL + 66 + MIN ( DISTINCT + col0 ) * + - 55 AS col0 FROM tab1
----
-2739

query I rowsort
SELECT ALL + 25 AS col0 FROM tab2 WHERE NULL IS NULL
----
25
25
25

query I rowsort
SELECT - col0 + - 39 * - + col0 * - ( - col1 ) FROM tab1
----
16490
166712
27795

query II rowsort
SELECT DISTINCT - ( - + ( + 92 ) ) - - + col2 * + col1, + col1 * - col1 * + 69 AS col0 FROM tab1
----
1436
-13524
3288
-152421
387
-1725

onlyif mysql # aggregate syntax: 
query I rowsort label-9333
SELECT ALL - COUNT( * ) + 79 AS col2 FROM tab1 cor0
----
76

skipif mysql # not compatible
query I rowsort label-9333
SELECT ALL - COUNT ( * ) + 79 AS col2 FROM tab1 cor0
----
76

query I rowsort
SELECT DISTINCT + - ( - 2 ) + - col1 * + + 76 AS col1 FROM tab1 AS cor0
----
-1062
-3570
-378

onlyif mysql # aggregate syntax: 
query I rowsort label-9335
SELECT DISTINCT MIN( ALL col2 ) AS col0 FROM tab0 AS cor0 WHERE + col2 >= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9335
SELECT DISTINCT MIN ( ALL col2 ) AS col0 FROM tab0 AS cor0 WHERE + col2 >= NULL
----
NULL

query I rowsort
SELECT + 48 * + 46 FROM tab2 AS cor0
----
2208
2208
2208

query I rowsort
SELECT - - 12 - + col0 FROM tab0 AS cor0
----
-3
-75
-85

query I rowsort
SELECT ALL - col1 - - col2 + - - col0 * col1 FROM tab0
----
1181
1816
195

onlyif mysql # aggregate syntax: 
query I rowsort label-9339
SELECT DISTINCT + + SUM( + 86 ) FROM tab1 AS cor0
----
258

skipif mysql # not compatible
query I rowsort label-9339
SELECT DISTINCT + + SUM ( + 86 ) FROM tab1 AS cor0
----
258

query II rowsort
SELECT - col2 AS col2, + col1 FROM tab1 AS cor0
----
-59
5
-68
47
-96
14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9341
SELECT DISTINCT + 98 * - + MAX( ALL + + CAST( + - 19 AS SIGNED ) ) + - + 70 AS col2 FROM tab1 AS cor0
----
1792

skipif mysql # not compatible
query I rowsort label-9341
SELECT DISTINCT + 98 * - + MAX ( ALL + + CAST ( + - 19 AS INTEGER ) ) + - + 70 AS col2 FROM tab1 AS cor0
----
1792

onlyif mysql # aggregate syntax: 
query I rowsort label-9342
SELECT ALL + MAX( ALL + col1 ) * + - 53 FROM tab1
----
-2491

skipif mysql # not compatible
query I rowsort label-9342
SELECT ALL + MAX ( ALL + col1 ) * + - 53 FROM tab1
----
-2491

query II rowsort
SELECT DISTINCT + 38 * - - 56 AS col0, + ( + col1 ) AS col0 FROM tab1
----
2128
14
2128
47
2128
5

onlyif mysql # aggregate syntax: 
query I rowsort label-9344
SELECT DISTINCT - - SUM( - 93 ) AS col2 FROM tab1 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9344
SELECT DISTINCT - - SUM ( - 93 ) AS col2 FROM tab1 WHERE NOT NULL IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9345
SELECT DISTINCT COUNT( ALL + + 85 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-9345
SELECT DISTINCT COUNT ( ALL + + 85 ) FROM tab2
----
3

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL = - - ( + col1 ) + + col0
----

query I rowsort
SELECT 32 * - - col0 - col0 FROM tab0 AS cor0
----
2697
3007
465

onlyif mysql # DIV for integer division: 
query I rowsort label-9348
SELECT + - col0 DIV + - col0 AS col2 FROM tab0 cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-9348
SELECT + - col0 / + - col0 AS col2 FROM tab0 cor0
----
1
1
1

query I rowsort
SELECT DISTINCT + 71 AS col2 FROM tab1 AS cor0 WHERE NOT - 7 NOT BETWEEN NULL AND - + col2 * col0 * + + 20
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9350
SELECT ALL ( - ( + COUNT( * ) ) ) col2, COUNT( * ) col1 FROM tab0 AS cor0
----
-3
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9350
SELECT ALL ( - ( + COUNT ( * ) ) ) col2, COUNT ( * ) col1 FROM tab0 AS cor0
----
-3
3

query II rowsort
SELECT + 67, col1 FROM tab0
----
67
1
67
21
67
81

onlyif mysql # aggregate syntax: 
query II rowsort label-9352
SELECT ALL - COUNT( * ), + 82 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
-9
82

skipif mysql # not compatible
query II rowsort label-9352
SELECT ALL - COUNT ( * ), + 82 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
-9
82

query III rowsort
SELECT * FROM tab0 WHERE + - col2 - + + 33 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9354
SELECT DISTINCT - ( MIN( + + 44 ) ) FROM tab1 AS cor0
----
-44

skipif mysql # not compatible
query I rowsort label-9354
SELECT DISTINCT - ( MIN ( + + 44 ) ) FROM tab1 AS cor0
----
-44

query I rowsort
SELECT + 85 + col0 + - col2 FROM tab1 cor0
----
108
111
40

query I rowsort
SELECT 4 * - ( - + 44 ) + col1 FROM tab0 AS cor0
----
177
197
257

query II rowsort
SELECT + + col0, 65 + + col0 AS col1 FROM tab1 cor0
----
51
116
85
150
91
156

query I rowsort
SELECT ALL col1 * - col2 + + col1 FROM tab2 AS cor0
----
-1122
-3003
-3819

query I rowsort
SELECT ALL ( + + 65 ) - + - col0 AS col1 FROM tab2 AS cor0
----
111
129
140

query I rowsort
SELECT DISTINCT - + col0 FROM tab1 WHERE col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9361
SELECT - CAST( NULL AS SIGNED ) * - 68 - - col2 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9361
SELECT - CAST ( NULL AS INTEGER ) * - 68 - - col2 AS col0 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9362
SELECT + col1 / + - col1 * CAST( - + CAST( NULL AS SIGNED ) AS SIGNED ) - col1 AS col0, 34 + col0 * + - 78 * + - col0 AS col0 FROM tab1
----
NULL
202912
NULL
563584
NULL
645952

skipif mysql # not compatible
query II rowsort label-9362
SELECT + col1 / + - col1 * CAST ( - + CAST ( NULL AS INTEGER ) AS INTEGER ) - col1 AS col0, 34 + col0 * + - 78 * + - col0 AS col0 FROM tab1
----
NULL
202912
NULL
563584
NULL
645952

query I rowsort
SELECT - col0 + - col2 + 84 + col1 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9364
SELECT col2 DIV - 67 - col2 FROM tab0
----
-10
-100
-47

skipif mysql # not compatible
query I rowsort label-9364
SELECT col2 / - 67 - col2 FROM tab0
----
-10
-100
-47

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9365
SELECT CAST( 70 AS SIGNED ) - col1 + - col2 AS col0, + col2 FROM tab0
----
-30
99
-58
47
39
10

skipif mysql # not compatible
query II rowsort label-9365
SELECT CAST ( 70 AS INTEGER ) - col1 + - col2 AS col0, + col2 FROM tab0
----
-30
99
-58
47
39
10

query II rowsort
SELECT DISTINCT 7 + - col0, - ( - - col0 ) + + col0 + - ( + col1 ) AS col0 FROM tab0
----
-8
-81
-80
-21
-90
-1

query I rowsort
SELECT ALL col2 * - col1 + col1 AS col1 FROM tab0
----
-189
-3726
-98

query I rowsort
SELECT ALL + 5 - col0 AS col1 FROM tab2
----
-41
-59
-70

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col2 <> + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - - 3 + - 12 AS col0 FROM tab0 AS cor0
----
-9
-9
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-9371
SELECT + col2 + - col0 DIV - 12 AS col1 FROM tab1 cor0
----
100
66
75

skipif mysql # not compatible
query I rowsort label-9371
SELECT + col2 + - col0 / - 12 AS col1 FROM tab1 cor0
----
100
66
75

query III rowsort
SELECT * FROM tab1 cor0 WHERE col0 = + - col1
----

query I rowsort
SELECT + 28 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to aad32232c428b3ecb5ada63f7e9b0a97

onlyif mysql # aggregate syntax: 
query I rowsort label-9374
SELECT - COUNT( * ) * - 66 AS col2 FROM tab2 AS cor0
----
198

skipif mysql # not compatible
query I rowsort label-9374
SELECT - COUNT ( * ) * - 66 AS col2 FROM tab2 AS cor0
----
198

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9375
SELECT - + CAST( NULL AS SIGNED ) * - ( - + 62 ) * - col0 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9375
SELECT - + CAST ( NULL AS INTEGER ) * - ( - + 62 ) * - col0 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9376
SELECT DISTINCT - SUM( 0 ) FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-9376
SELECT DISTINCT - SUM ( 0 ) FROM tab2 cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9377
SELECT ALL + - 12 * - CAST( NULL AS SIGNED ) * + - CAST( 0 AS SIGNED ) * col2 + 15 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9377
SELECT ALL + - 12 * - CAST ( NULL AS INTEGER ) * + - CAST ( 0 AS INTEGER ) * col2 + 15 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 94 + 47 col1 FROM tab0 AS cor0 WHERE - col1 * + col1 * + 10 * + - col2 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9379
SELECT ALL - COUNT( * ) FROM tab0 AS cor0 WHERE col0 + + CAST( NULL AS SIGNED ) + - col0 <> - col1 + - 73
----
0

skipif mysql # not compatible
query I rowsort label-9379
SELECT ALL - COUNT ( * ) FROM tab0 AS cor0 WHERE col0 + + CAST ( NULL AS INTEGER ) + - col0 <> - col1 + - 73
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9380
SELECT DISTINCT + SUM( 70 ) AS col2 FROM tab1 AS cor0
----
210

skipif mysql # not compatible
query I rowsort label-9380
SELECT DISTINCT + SUM ( 70 ) AS col2 FROM tab1 AS cor0
----
210

query I rowsort
SELECT col1 + + col0 FROM tab0 AS cor0 WHERE NOT col0 IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9382
SELECT * FROM tab1 cor0 WHERE NOT ( NULL ) BETWEEN + 30 AND ( + - 21 ) * CAST( NULL AS DECIMAL ) * - - 52 + col1 * col2
----

skipif mysql # not compatible
query III rowsort label-9382
SELECT * FROM tab1 cor0 WHERE NOT ( NULL ) BETWEEN + 30 AND ( + - 21 ) * CAST ( NULL AS REAL ) * - - 52 + col1 * col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9383
SELECT + col1 AS col0, col2 * + CAST( + col2 AS SIGNED ) FROM tab2
----
51
529
67
3364
77
1600

skipif mysql # not compatible
query II rowsort label-9383
SELECT + col1 AS col0, col2 * + CAST ( + col2 AS INTEGER ) FROM tab2
----
51
529
67
3364
77
1600

query I rowsort
SELECT + 61 * + col2 AS col2 FROM tab1
----
3599
4148
5856

onlyif mysql # aggregate syntax: 
query I rowsort label-9385
SELECT ALL - COUNT( * ) AS col2 FROM tab1 WHERE 83 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-9385
SELECT ALL - COUNT ( * ) AS col2 FROM tab1 WHERE 83 IS NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9386
SELECT ( + CAST( NULL AS SIGNED ) ) AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9386
SELECT ( + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab2
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT + col2 AS col2, 19 AS col2 FROM tab2
----
23
19
40
19
58
19

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9388
SELECT ALL CAST( col1 AS SIGNED ) AS col0, - col0 FROM tab0
----
1
-97
21
-87
81
-15

skipif mysql # not compatible
query II rowsort label-9388
SELECT ALL CAST ( col1 AS INTEGER ) AS col0, - col0 FROM tab0
----
1
-97
21
-87
81
-15

onlyif mysql # DIV for integer division: 
query I rowsort label-9389
SELECT + col2 + - 93 - 38 DIV - 99 AS col0 FROM tab0
----
-46
-83
6

skipif mysql # not compatible
query I rowsort label-9389
SELECT + col2 + - 93 - 38 / - 99 AS col0 FROM tab0
----
-46
-83
6

onlyif mysql # aggregate syntax: 
query I rowsort label-9390
SELECT - MAX( ALL 28 ) FROM tab2 cor0
----
-28

skipif mysql # not compatible
query I rowsort label-9390
SELECT - MAX ( ALL 28 ) FROM tab2 cor0
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-9391
SELECT COUNT( * ) * + ( + + 40 ) + - SUM( DISTINCT - - 30 ) AS col1 FROM tab0 AS cor0
----
90

skipif mysql # not compatible
query I rowsort label-9391
SELECT COUNT ( * ) * + ( + + 40 ) + - SUM ( DISTINCT - - 30 ) AS col1 FROM tab0 AS cor0
----
90

onlyif mysql # aggregate syntax: 
query II rowsort label-9392
SELECT ALL COUNT( * ) + - COUNT( * ), SUM( - 76 ) * - - 17 AS col1 FROM tab2 AS cor0
----
0
-3876

skipif mysql # not compatible
query II rowsort label-9392
SELECT ALL COUNT ( * ) + - COUNT ( * ), SUM ( - 76 ) * - - 17 AS col1 FROM tab2 AS cor0
----
0
-3876

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9393
SELECT ALL + CAST( NULL AS SIGNED ) * ( + AVG ( DISTINCT - col1 ) ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9393
SELECT ALL + CAST ( NULL AS INTEGER ) * ( + AVG ( DISTINCT - col1 ) ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - - 68 + col0 FROM tab2 AS cor0
----
114
132
143

onlyif mysql # DIV for integer division: 
query I rowsort label-9395
SELECT DISTINCT col2 DIV + 93 + + col2 FROM tab0 AS cor0
----
10
100
47

skipif mysql # not compatible
query I rowsort label-9395
SELECT DISTINCT col2 / + 93 + + col2 FROM tab0 AS cor0
----
10
100
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * col0 + + col0 - col2 col2 FROM tab0 AS cor0
----
1183
1904
95

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9397
SELECT + CAST( - 43 AS SIGNED ) * - col2 * + col0 + col2 DIV - col0 AS col0 FROM tab1
----
210527
215645
266084

skipif mysql # not compatible
query I rowsort label-9397
SELECT + CAST ( - 43 AS INTEGER ) * - col2 * + col0 + col2 / - col0 AS col0 FROM tab1
----
210527
215645
266084

query II rowsort
SELECT + 65 + - col1 * + ( col0 ) AS col1, + 52 AS col2 FROM tab2
----
-2281
52
-4863
52
-4960
52

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL >= 84 * 27
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + col0 > 70
----
46
51
23
64
77
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9401
SELECT ALL CAST( NULL AS SIGNED ) + + 56 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9401
SELECT ALL CAST ( NULL AS INTEGER ) + + 56 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 WHERE + ( + col0 ) * + + col0 NOT BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9403
SELECT DISTINCT - ( 97 ) * - 11 + + CAST( - col0 AS SIGNED ) * - 34 AS col1 FROM tab0 AS cor0
----
1577
4025
4365

skipif mysql # not compatible
query I rowsort label-9403
SELECT DISTINCT - ( 97 ) * - 11 + + CAST ( - col0 AS INTEGER ) * - 34 AS col1 FROM tab0 AS cor0
----
1577
4025
4365

onlyif mysql # aggregate syntax: 
query I rowsort label-9404
SELECT - SUM( DISTINCT 72 ) AS col0 FROM tab1 AS cor0
----
-72

skipif mysql # not compatible
query I rowsort label-9404
SELECT - SUM ( DISTINCT 72 ) AS col0 FROM tab1 AS cor0
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-9405
SELECT MIN( DISTINCT col0 ) FROM tab2 cor0
----
46

skipif mysql # not compatible
query I rowsort label-9405
SELECT MIN ( DISTINCT col0 ) FROM tab2 cor0
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-9406
SELECT - + COUNT( 16 ) AS col2 FROM tab1 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9406
SELECT - + COUNT ( 16 ) AS col2 FROM tab1 cor0
----
-3

query I rowsort
SELECT ALL - 46 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 491ad1fb79fec0b5715ea54949d1aa2d

query I rowsort
SELECT DISTINCT - + 35 * + 4 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-140

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL > - 67
----

query I rowsort
SELECT + + col1 * + - col1 FROM tab0 AS cor0
----
-1
-441
-6561

onlyif mysql # aggregate syntax: 
query I rowsort label-9411
SELECT - - 67 * - MIN( - - ( + col2 ) ) + 18 FROM tab1 cor0
----
-3935

skipif mysql # not compatible
query I rowsort label-9411
SELECT - - 67 * - MIN ( - - ( + col2 ) ) + 18 FROM tab1 cor0
----
-3935

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9412
SELECT ALL + + 40 * + - col0 * - CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9412
SELECT ALL + + 40 * + - col0 * - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 WHERE NOT + 71 * - + 54 + - col0 * 86 > + col0 * col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9414
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NOT + col2 + CAST( ( 81 ) AS SIGNED ) * - 44 IS NULL )
----

skipif mysql # not compatible
query III rowsort label-9414
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NOT + col2 + CAST ( ( 81 ) AS INTEGER ) * - 44 IS NULL )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NOT - 76 / 56 * 23 <> + 38 )
----

query II rowsort
SELECT ALL - 3, col2 FROM tab2
----
-3
23
-3
40
-3
58

query III rowsort
SELECT * FROM tab1 WHERE - col2 * - - col2 <> 49 - + + 85
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 31 + + - col1 col0 FROM tab2
----
-20
-36
-46

query I rowsort
SELECT 90 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 96f7a90428db93f472e0d219bab64853

onlyif mysql # DIV for integer division: 
query III rowsort label-9420
SELECT - 19, col2, - - 72 DIV + col1 col0 FROM tab1 AS cor0
----
9 values hashing to c40d580502b1eb5e7f72a3a9a7d676dc

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort label-9420
SELECT - 19, col2, - - 72 / + col1 col0 FROM tab1 AS cor0
----
9 values hashing to c40d580502b1eb5e7f72a3a9a7d676dc

onlyif mysql # DIV for integer division: 
query I rowsort label-9421
SELECT DISTINCT col2 DIV - 25 + - + 23 AS col1 FROM tab0 AS cor0
----
-23
-24
-26

skipif mysql # not compatible
query I rowsort label-9421
SELECT DISTINCT col2 / - 25 + - + 23 AS col1 FROM tab0 AS cor0
----
-23
-24
-26

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 52 + + 68 BETWEEN - ( - - 1 ) AND - col0
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9423
SELECT MAX( ALL 64 ) AS col1, - COUNT( * ) FROM tab2 AS cor0
----
64
-3

skipif mysql # not compatible
query II rowsort label-9423
SELECT MAX ( ALL 64 ) AS col1, - COUNT ( * ) FROM tab2 AS cor0
----
64
-3

query I rowsort
SELECT - - ( + 62 ) FROM tab1 AS cor0
----
62
62
62

query II rowsort
SELECT - + ( - col2 ) AS col0, - 35 * + 69 FROM tab0 AS cor0
----
10
-2415
47
-2415
99
-2415

query I rowsort
SELECT ALL col1 / + col2 * col0 + - col0 FROM tab2 AS cor0 WHERE - col0 + - 42 - - 8 + 55 * + col0 + + - col0 * + + col2 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9427
SELECT DISTINCT + SUM( DISTINCT - ( + col1 ) ) FROM tab1 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-9427
SELECT DISTINCT + SUM ( DISTINCT - ( + col1 ) ) FROM tab1 AS cor0
----
-66

query II rowsort
SELECT + col2 AS col1, + col2 FROM tab0 AS cor0
----
10
10
47
47
99
99

query II rowsort
SELECT ALL + col2, - 94 AS col0 FROM tab2 AS cor0
----
23
-94
40
-94
58
-94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 43 - 14 + col2 col0 FROM tab0
----
128
39
76

query II rowsort
SELECT col0 * 69 - + + col1, col1 AS col0 FROM tab0
----
5982
21
6692
1
954
81

query IIIIII rowsort
SELECT ALL * FROM tab1, tab0 cor0 WHERE NULL IS NULL
----
54 values hashing to 058438fde5fb838f23bcbdd39266ddcf

query I rowsort
SELECT DISTINCT 29 + + 85 * col2 + + - col0 + col2 - col1 * + col2 * - col2 * + col1 FROM tab2
----
1377890
15105938
9489805

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 3 * - col1 col2 FROM tab1 AS cor0
----
141
15
42

onlyif mysql # aggregate syntax: 
query I rowsort label-9435
SELECT ALL COUNT( + + col2 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9435
SELECT ALL COUNT ( + + col2 ) FROM tab1 AS cor0
----
3

query I rowsort
SELECT ALL 68 * 28 AS col0 FROM tab2 cor0
----
1904
1904
1904

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NULL ) <> 17
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 col0, 16 AS col2 FROM tab0
----
10
16
47
16
99
16

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9439
SELECT DISTINCT + 5 DIV COUNT( * ) FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-9439
SELECT DISTINCT + 5 / COUNT ( * ) FROM tab1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9440
SELECT ALL - CAST( - 45 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
45
45
45

skipif mysql # not compatible
query I rowsort label-9440
SELECT ALL - CAST ( - 45 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
45
45
45

query I rowsort
SELECT DISTINCT - col1 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN NULL AND ( NULL )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL <> - col0
----

query I rowsort
SELECT col0 * - col1 + + col2 + 6 FROM tab2 AS cor0
----
-2317
-4882
-4961

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9444
SELECT DISTINCT + + CAST( NULL AS SIGNED ) + - - 85 col1 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9444
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) + - - 85 col1 FROM tab1 cor0
----
NULL

query I rowsort
SELECT + col1 + 40 AS col1 FROM tab2
----
107
117
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col2 ) + + col2 * col2 col1 FROM tab2
----
1640
3422
552

query I rowsort
SELECT DISTINCT col2 + col1 AS col0 FROM tab2 WHERE NOT ( - + col2 ) <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9448
SELECT + 80 + - - ( + + COUNT( * ) ) AS col1 FROM tab1
----
83

skipif mysql # not compatible
query I rowsort label-9448
SELECT + 80 + - - ( + + COUNT ( * ) ) AS col1 FROM tab1
----
83

query I rowsort
SELECT col2 + - col0 + + 36 AS col1 FROM tab2
----
12
13
19

query I rowsort
SELECT DISTINCT 86 + + + 63 * 73 FROM tab1
----
4685

query I rowsort
SELECT DISTINCT + + col2 FROM tab0 AS cor0 WHERE NOT ( - - 92 ) / + 5 BETWEEN - col1 AND 59
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE NULL >= + 41
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9453
SELECT + CAST( + - 15 AS SIGNED ) / - AVG ( DISTINCT - 73 ) * + CAST( NULL AS SIGNED ) - - + 87 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9453
SELECT + CAST ( + - 15 AS INTEGER ) / - AVG ( DISTINCT - 73 ) * + CAST ( NULL AS INTEGER ) - - + 87 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - 53 - col1 AS col2 FROM tab2 WHERE NOT + col2 IS NOT NULL
----

query I rowsort
SELECT ALL col0 - - - col0 FROM tab0 cor0
----
0
0
0

query I rowsort
SELECT - 95 + - col2 AS col1 FROM tab2 cor0
----
-118
-135
-153

query I rowsort
SELECT + 98 + + 72 AS col2 FROM tab1 cor0
----
170
170
170

onlyif mysql # aggregate syntax: 
query I rowsort label-9458
SELECT DISTINCT + + SUM( - col1 ) + 99 FROM tab0 AS cor0
----
-4

skipif mysql # not compatible
query I rowsort label-9458
SELECT DISTINCT + + SUM ( - col1 ) + 99 FROM tab0 AS cor0
----
-4

query I rowsort
SELECT ALL - ( - + 22 ) - col1 FROM tab2 AS cor0
----
-29
-45
-55

query I rowsort
SELECT col0 + - + ( - ( - 47 ) ) AS col0 FROM tab0 AS cor0
----
-32
40
50

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - 22 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - 12 + + col1 FROM tab2 cor0
----
39
55
65

query II rowsort
SELECT ALL 78, col2 FROM tab1 AS cor0
----
78
59
78
68
78
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9464
SELECT col0 * - - 99 * + CAST( NULL AS SIGNED ) + + - col0 + - + 81 + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9464
SELECT col0 * - - 99 * + CAST ( NULL AS INTEGER ) + + - col0 + - + 81 + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9465
SELECT DISTINCT + MIN( DISTINCT col1 ) * 14 AS col1 FROM tab2
----
714

skipif mysql # not compatible
query I rowsort label-9465
SELECT DISTINCT + MIN ( DISTINCT col1 ) * 14 AS col1 FROM tab2
----
714

query I rowsort
SELECT ALL col0 * - + 26 FROM tab0
----
-2262
-2522
-390

onlyif mysql # DIV for integer division: 
query I rowsort label-9467
SELECT ALL - 61 DIV - 75 * col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9467
SELECT ALL - 61 / - 75 * col1 FROM tab2
----
0
0
0

query I rowsort
SELECT ALL - col1 * col1 AS col1 FROM tab2 WHERE NOT 79 * - ( - 18 ) * ( - col2 ) + + 69 IS NULL
----
-2601
-4489
-5929

onlyif mysql # DIV for integer division: 
query I rowsort label-9469
SELECT 67 DIV - col1 FROM tab2
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-9469
SELECT 67 / - col1 FROM tab2
----
-1
-1
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9470
SELECT - CAST( NULL AS DECIMAL ) * + - col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9470
SELECT - CAST ( NULL AS REAL ) * + - col0 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL IN ( - col2 - 23, col2 )
----

query I rowsort
SELECT + + 20 AS col0 FROM tab0 AS cor0
----
20
20
20

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab0 cor1 WHERE NOT + 25 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9474
SELECT DISTINCT COUNT( * ) AS col2 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-9474
SELECT DISTINCT COUNT ( * ) AS col2 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9

query II rowsort
SELECT 61 + + col2 AS col0, col0 * - col0 * + col0 * - col2 - + col0 - - 97 FROM tab0 AS cor0
----
108
158707
160
90354627
71
6585040

query I rowsort
SELECT + col2 * col1 * col1 + 51 + + + col0 + - col2 FROM tab1 AS cor0
----
150286
1552
18822

onlyif mysql # aggregate syntax: 
query I rowsort label-9477
SELECT + ( - SUM( 87 ) ) * MIN( 55 ) + + - COUNT( * ) FROM tab2 AS cor0
----
-14358

skipif mysql # not compatible
query I rowsort label-9477
SELECT + ( - SUM ( 87 ) ) * MIN ( 55 ) + + - COUNT ( * ) FROM tab2 AS cor0
----
-14358

onlyif mysql # aggregate syntax: 
query I rowsort label-9478
SELECT 76 + - + ( COUNT( * ) ) * SUM( - col0 ) FROM tab0 AS cor0
----
673

skipif mysql # not compatible
query I rowsort label-9478
SELECT 76 + - + ( COUNT ( * ) ) * SUM ( - col0 ) FROM tab0 AS cor0
----
673

query II rowsort
SELECT ( + 40 ) AS col0, 94 FROM tab2 AS cor0
----
40
94
40
94
40
94

query I rowsort
SELECT ALL col2 * + col1 AS col1 FROM tab2 AS cor0 WHERE NOT col0 IS NULL
----
1173
3080
3886

query I rowsort
SELECT DISTINCT - col1 - 77 FROM tab1 cor0 WHERE NOT - 53 IS NULL
----
-124
-82
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9482
SELECT DISTINCT - CAST( - col1 AS SIGNED ) + - - 48 AS col2 FROM tab1
----
53
62
95

skipif mysql # not compatible
query I rowsort label-9482
SELECT DISTINCT - CAST ( - col1 AS INTEGER ) + - - 48 AS col2 FROM tab1
----
53
62
95

onlyif mysql # aggregate syntax: 
query I rowsort label-9483
SELECT - SUM( 15 ) AS col0 FROM tab2
----
-45

skipif mysql # not compatible
query I rowsort label-9483
SELECT - SUM ( 15 ) AS col0 FROM tab2
----
-45

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( NOT ( ( + col2 ) ) + 74 IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9485
SELECT COUNT( * ), - COUNT( * ) + + COUNT( ALL - col0 ) AS col2 FROM tab0
----
3
0

skipif mysql # not compatible
query II rowsort label-9485
SELECT COUNT ( * ), - COUNT ( * ) + + COUNT ( ALL - col0 ) AS col2 FROM tab0
----
3
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9486
SELECT 29 * + col1 DIV col1 * + col2 FROM tab2
----
1160
1682
667

skipif mysql # not compatible
query I rowsort label-9486
SELECT 29 * + col1 / col1 * + col2 FROM tab2
----
1160
1682
667

query I rowsort
SELECT DISTINCT 15 + + 27 * - + col0 * col2 * - col0 * - col0 AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-283115505
-60445641
-660656235

onlyif mysql # aggregate syntax: 
query I rowsort label-9488
SELECT DISTINCT + 5 - - COUNT( 25 ) FROM tab2 AS cor0
----
8

skipif mysql # not compatible
query I rowsort label-9488
SELECT DISTINCT + 5 - - COUNT ( 25 ) FROM tab2 AS cor0
----
8

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( + col2 + + col1 ) = - ( 61 )
----

query I rowsort
SELECT + 18 * - col2 FROM tab1
----
-1062
-1224
-1728

query I rowsort
SELECT ALL + col0 * + ( col2 ) + + col1 AS col2 FROM tab2
----
1109
2637
4417

onlyif mysql # aggregate syntax: 
query I rowsort label-9492
SELECT DISTINCT COUNT( * ) AS col1 FROM tab2 WHERE NOT NULL <= + col2
----
0

skipif mysql # not compatible
query I rowsort label-9492
SELECT DISTINCT COUNT ( * ) AS col1 FROM tab2 WHERE NOT NULL <= + col2
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 63 * - col1 col2 FROM tab1
----
-2961
-315
-882

onlyif mysql # aggregate syntax: 
query I rowsort label-9494
SELECT DISTINCT - 78 + MIN( col0 ) FROM tab1 WHERE NOT NULL NOT BETWEEN col2 AND 24 * + ( - ( - col1 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9494
SELECT DISTINCT - 78 + MIN ( col0 ) FROM tab1 WHERE NOT NULL NOT BETWEEN col2 AND 24 * + ( - ( - col1 ) )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9495
SELECT - col0 DIV col1 - + col0 AS col1 FROM tab1
----
-102
-54
-92

skipif mysql # not compatible
query I rowsort label-9495
SELECT - col0 / col1 - + col0 AS col1 FROM tab1
----
-102
-54
-92

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9496
SELECT * FROM tab0 WHERE ( NULL ) > CAST( 11 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-9496
SELECT * FROM tab0 WHERE ( NULL ) > CAST ( 11 AS INTEGER )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9497
SELECT * FROM tab2 WHERE NOT - CAST( - 51 AS SIGNED ) + col1 >= NULL
----

skipif mysql # not compatible
query III rowsort label-9497
SELECT * FROM tab2 WHERE NOT - CAST ( - 51 AS INTEGER ) + col1 >= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9498
SELECT ALL - 65 DIV - ( + col2 ) AS col0 FROM tab2
----
1
1
2

skipif mysql # not compatible
query I rowsort label-9498
SELECT ALL - 65 / - ( + col2 ) AS col0 FROM tab2
----
1
1
2

query I rowsort
SELECT - ( ( 6 ) ) AS col2 FROM tab2
----
-6
-6
-6

query III rowsort
SELECT * FROM tab1 WHERE NOT col2 / col2 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT col2 IN ( 71 * - col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - 69 + + 74 * 79 FROM tab2
----
5777

query I rowsort
SELECT col0 - - 89 FROM tab2
----
135
153
164

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9504
SELECT - ( col0 ) * CAST( + 44 AS SIGNED ) AS col0 FROM tab0 WHERE NOT - col2 * 57 IS NULL
----
-3828
-4268
-660

skipif mysql # not compatible
query I rowsort label-9504
SELECT - ( col0 ) * CAST ( + 44 AS INTEGER ) AS col0 FROM tab0 WHERE NOT - col2 * 57 IS NULL
----
-3828
-4268
-660

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( + 50 + - 25 * + col1 ) = + 13
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + + col1 col2 FROM tab0
----
108
96
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9507
SELECT DISTINCT + CAST( + COUNT( * ) AS SIGNED ) + 24 FROM tab2
----
27

skipif mysql # not compatible
query I rowsort label-9507
SELECT DISTINCT + CAST ( + COUNT ( * ) AS INTEGER ) + 24 FROM tab2
----
27

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9508
SELECT DISTINCT * FROM tab2 WHERE NOT NULL IN ( CAST( NULL AS DECIMAL ) )
----

skipif mysql # not compatible
query III rowsort label-9508
SELECT DISTINCT * FROM tab2 WHERE NOT NULL IN ( CAST ( NULL AS REAL ) )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( + col1 ) * + col2 NOT IN ( col0 - col1 )
----

query I rowsort
SELECT ALL - 7 AS col0 FROM tab0 cor0
----
-7
-7
-7

query I rowsort
SELECT ALL - ( col1 ) * 34 AS col0 FROM tab1 AS cor0
----
-1598
-170
-476

onlyif mysql # aggregate syntax: 
query I rowsort label-9512
SELECT DISTINCT - 5 * + COUNT( * ) AS col2 FROM tab0 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-9512
SELECT DISTINCT - 5 * + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-15

query I rowsort
SELECT 55 FROM tab1 AS cor0 CROSS JOIN tab2
----
9 values hashing to 1626bd3008abd9f18cc88cdecf7b64d0

onlyif mysql # aggregate syntax: 
query I rowsort label-9514
SELECT ALL ( MAX( - 10 ) ) + + COUNT( * ) * - 30 AS col0 FROM tab1
----
-100

skipif mysql # not compatible
query I rowsort label-9514
SELECT ALL ( MAX ( - 10 ) ) + + COUNT ( * ) * - 30 AS col0 FROM tab1
----
-100

onlyif mysql # aggregate syntax: 
query I rowsort label-9515
SELECT + COUNT( * ) FROM tab1 cor0 CROSS JOIN tab2
----
9

skipif mysql # not compatible
query I rowsort label-9515
SELECT + COUNT ( * ) FROM tab1 cor0 CROSS JOIN tab2
----
9

query I rowsort
SELECT ALL 96 + - 18 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1
----
9 values hashing to 2aff42d3e015022a738905090a20dfd4

onlyif mysql # aggregate syntax: 
query I rowsort label-9517
SELECT ALL + COUNT( * ) + + 67 * + 68 AS col2 FROM tab0
----
4559

skipif mysql # not compatible
query I rowsort label-9517
SELECT ALL + COUNT ( * ) + + 67 * + 68 AS col2 FROM tab0
----
4559

onlyif mysql # aggregate syntax: 
query I rowsort label-9518
SELECT DISTINCT - COUNT( * ) * + COUNT( ALL col2 ) col0 FROM tab0 AS cor0
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9518
SELECT DISTINCT - COUNT ( * ) * + COUNT ( ALL col2 ) col0 FROM tab0 AS cor0
----
-9

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col1 < + col2
----
97
1
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9520
SELECT ALL + - CAST( 28 AS SIGNED ) * COUNT( * ) col2 FROM tab1 AS cor0
----
-84

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9520
SELECT ALL + - CAST ( 28 AS INTEGER ) * COUNT ( * ) col2 FROM tab1 AS cor0
----
-84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( col1 ) * col1 col0 FROM tab2 cor0
----
2601
4489
5929

query I rowsort
SELECT + - 36 * - col1 AS col0 FROM tab1 cor0
----
1692
180
504

query I rowsort
SELECT DISTINCT col0 * + 81 AS col0 FROM tab0 cor0
----
1215
7047
7857

onlyif mysql # DIV for integer division: 
query I rowsort label-9524
SELECT DISTINCT 68 DIV + 99 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9524
SELECT DISTINCT 68 / + 99 FROM tab2 AS cor0
----
0

query I rowsort
SELECT col1 / + col0 + 63 AS col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT - 71 AS col0 FROM tab0 cor0 WHERE - col1 + + col2 * + col1 IS NOT NULL
----
-71
-71
-71

onlyif mysql # DIV for integer division: 
query I rowsort label-9527
SELECT ALL - - 70 DIV + col1 FROM tab1 AS cor0
----
1
14
5

skipif mysql # not compatible
query I rowsort label-9527
SELECT ALL - - 70 / + col1 FROM tab1 AS cor0
----
1
14
5

query I rowsort
SELECT ALL col0 FROM tab2 AS cor0 WHERE NOT ( + col1 + - col1 ) < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9529
SELECT DISTINCT COUNT( * ) AS col0 FROM tab1 cor0 WHERE ( NULL ) <= ( - col2 * + col0 + col2 * 11 )
----
0

skipif mysql # not compatible
query I rowsort label-9529
SELECT DISTINCT COUNT ( * ) AS col0 FROM tab1 cor0 WHERE ( NULL ) <= ( - col2 * + col0 + col2 * 11 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9530
SELECT DISTINCT SUM( - col1 ) + COUNT( * ) FROM tab0
----
-100

skipif mysql # not compatible
query I rowsort label-9530
SELECT DISTINCT SUM ( - col1 ) + COUNT ( * ) FROM tab0
----
-100

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( 91 ) BETWEEN col2 + 4 AND - col2 - - 15 * col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab0 WHERE ( ( + 21 ) ) + - col2 IS NULL
----

query I rowsort
SELECT - 7 + + 13 AS col1 FROM tab2
----
6
6
6

query I rowsort
SELECT col1 FROM tab1 WHERE col2 * + col2 + 97 IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE ( NULL ) NOT BETWEEN ( NULL ) AND ( - col1 )
----

query I rowsort
SELECT ALL + 24 FROM tab1 WHERE col2 * 1 IS NOT NULL
----
24
24
24

onlyif mysql # aggregate syntax: 
query I rowsort label-9537
SELECT ALL COUNT( * ) + + - 14 FROM tab0
----
-11

skipif mysql # not compatible
query I rowsort label-9537
SELECT ALL COUNT ( * ) + + - 14 FROM tab0
----
-11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9538
SELECT DISTINCT col0 + + CAST( + 62 AS SIGNED ) FROM tab0
----
149
159
77

skipif mysql # not compatible
query I rowsort label-9538
SELECT DISTINCT col0 + + CAST ( + 62 AS INTEGER ) FROM tab0
----
149
159
77

query I rowsort
SELECT - 40 + + ( col0 ) FROM tab0
----
-25
47
57

query III rowsort
SELECT * FROM tab1 WHERE + 86 <> NULL
----

query I rowsort
SELECT ALL 79 + - - col1 FROM tab0
----
100
160
80

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - 4 + col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-9543
SELECT ALL col1 DIV + + 47 - + col1 AS col2 FROM tab2 AS cor0
----
-50
-66
-76

skipif mysql # not compatible
query I rowsort label-9543
SELECT ALL col1 / + + 47 - + col1 AS col2 FROM tab2 AS cor0
----
-50
-66
-76

onlyif mysql # DIV for integer division: 
query I rowsort label-9544
SELECT DISTINCT + - 88 DIV col2 + - col1 - - 27 col0 FROM tab1 AS cor0
----
-21
13
21

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9544
SELECT DISTINCT + - 88 / col2 + - col1 - - 27 col0 FROM tab1 AS cor0
----
-21
13
21

query III rowsort
SELECT * FROM tab1 cor0 WHERE + col0 * col2 NOT IN ( - 23 * 72 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9546
SELECT MAX( ALL + col1 ) * ( COUNT( * ) + CAST( + 92 AS SIGNED ) ) FROM tab1 AS cor0
----
4465

skipif mysql # not compatible
query I rowsort label-9546
SELECT MAX ( ALL + col1 ) * ( COUNT ( * ) + CAST ( + 92 AS INTEGER ) ) FROM tab1 AS cor0
----
4465

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9547
SELECT ALL + col0 / - CAST( NULL AS DECIMAL ) - col2 * 98 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9547
SELECT ALL + col0 / - CAST ( NULL AS REAL ) - col2 * 98 FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 WHERE - col2 * + col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 96 - + + 66 FROM tab2
----
30
30
30

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL >= - 17 + col2
----

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 JOIN tab2 cor1 ON NULL = ( 25 - + 42 * - 72 )
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT + 87 = ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9553
SELECT MIN( + - 55 ) FROM tab1 AS cor0
----
-55

skipif mysql # not compatible
query I rowsort label-9553
SELECT MIN ( + - 55 ) FROM tab1 AS cor0
----
-55

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9554
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NULL ) <> CAST( 69 AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-9554
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NULL ) <> CAST ( 69 AS REAL )
----

query I rowsort
SELECT - col0 * - 3 + ( + col0 ) AS col1 FROM tab2 cor0 WHERE NOT NULL <> ( - 93 )
----

query I rowsort
SELECT ALL 32 FROM tab0 AS cor0 WHERE - col1 IN ( - - 45 * - 58 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1, col2 + - - col2 * col2 col2 FROM tab2 AS cor0
----
-51
552
-67
3422
-77
1640

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col1 + - + col0 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 87 col0 FROM tab1 AS cor0
----
87
87
87

onlyif mysql # aggregate syntax: 
query I rowsort label-9560
SELECT MAX( ALL 98 ) FROM tab2 AS cor0
----
98

skipif mysql # not compatible
query I rowsort label-9560
SELECT MAX ( ALL 98 ) FROM tab2 AS cor0
----
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9561
SELECT - CAST( NULL AS SIGNED ) AS col2, - 96 - + 63 * COUNT( * ) FROM tab1 cor0
----
NULL
-285

skipif mysql # not compatible
query II rowsort label-9561
SELECT - CAST ( NULL AS INTEGER ) AS col2, - 96 - + 63 * COUNT ( * ) FROM tab1 cor0
----
NULL
-285

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE ( NULL ) >= ( NULL )
----

query II rowsort
SELECT DISTINCT + 27 AS col1, col2 AS col2 FROM tab0 AS cor0
----
27
10
27
47
27
99

query II rowsort
SELECT - 72, - 96 AS col1 FROM tab0 AS cor0
----
-72
-96
-72
-96
-72
-96

query I rowsort
SELECT DISTINCT col0 * + 23 AS col0 FROM tab0 AS cor0
----
2001
2231
345

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT + 79 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9567
SELECT MAX( DISTINCT 89 ) AS col0 FROM tab1
----
89

skipif mysql # not compatible
query I rowsort label-9567
SELECT MAX ( DISTINCT 89 ) AS col0 FROM tab1
----
89

query I rowsort
SELECT ALL col0 * + col0 AS col1 FROM tab0 WHERE ( NULL ) <> 63
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9569
SELECT COUNT( 74 ) FROM tab1 WHERE NOT - ( - col1 ) IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-9569
SELECT COUNT ( 74 ) FROM tab1 WHERE NOT - ( - col1 ) IS NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9570
SELECT DISTINCT - MIN( DISTINCT + ( - 81 ) ) col2 FROM tab2
----
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9570
SELECT DISTINCT - MIN ( DISTINCT + ( - 81 ) ) col2 FROM tab2
----
81

query III rowsort
SELECT ALL * FROM tab2 WHERE + - 37 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL NOT BETWEEN ( + - col0 ) AND NULL
----

query I rowsort
SELECT DISTINCT ( - - col2 ) FROM tab2 cor0
----
23
40
58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9574
SELECT + - COUNT( * ) DIV 4 + 36 * + COUNT( DISTINCT col0 ) FROM tab1 AS cor0
----
108

skipif mysql # not compatible
query I rowsort label-9574
SELECT + - COUNT ( * ) / 4 + 36 * + COUNT ( DISTINCT col0 ) FROM tab1 AS cor0
----
108

onlyif mysql # aggregate syntax: 
query I rowsort label-9575
SELECT ALL - COUNT( - - col1 ) AS col1 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-9575
SELECT ALL - COUNT ( - - col1 ) AS col1 FROM tab1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9576
SELECT DISTINCT - COUNT( * ) + + MIN( + col0 ) AS col0 FROM tab1
----
48

skipif mysql # not compatible
query I rowsort label-9576
SELECT DISTINCT - COUNT ( * ) + + MIN ( + col0 ) AS col0 FROM tab1
----
48

onlyif mysql # aggregate syntax: 
query II rowsort label-9577
SELECT DISTINCT - SUM( + - 2 ) * - + 33 AS col2, 49 AS col2 FROM tab2 AS cor0
----
-198
49

skipif mysql # not compatible
query II rowsort label-9577
SELECT DISTINCT - SUM ( + - 2 ) * - + 33 AS col2, 49 AS col2 FROM tab2 AS cor0
----
-198
49

query I rowsort
SELECT ALL + col0 * - - 65 FROM tab2 AS cor0
----
2990
4160
4875

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9579
SELECT ALL * FROM tab2 cor0 WHERE NOT + col0 * + 59 NOT BETWEEN NULL AND + CAST( NULL AS DECIMAL ) + col1 * 70
----

skipif mysql # not compatible
query III rowsort label-9579
SELECT ALL * FROM tab2 cor0 WHERE NOT + col0 * + 59 NOT BETWEEN NULL AND + CAST ( NULL AS REAL ) + col1 * 70
----

query I rowsort
SELECT - - 58 + + + col1 + + + col2 FROM tab0 AS cor0
----
158
186
89

onlyif mysql # aggregate syntax: 
query I rowsort label-9581
SELECT DISTINCT + - 77 * + + SUM( - 14 ) FROM tab2 AS cor0
----
3234

skipif mysql # not compatible
query I rowsort label-9581
SELECT DISTINCT + - 77 * + + SUM ( - 14 ) FROM tab2 AS cor0
----
3234

query I rowsort
SELECT + + col2 * - col1 + + col0 AS col1 FROM tab0 AS cor0
----
-123
-2
-3792

onlyif mysql # aggregate syntax: 
query I rowsort label-9583
SELECT ALL - COUNT( - 8 ) * - COUNT( * ) FROM tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-9583
SELECT ALL - COUNT ( - 8 ) * - COUNT ( * ) FROM tab1 AS cor0
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9584
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + CAST( col1 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-9584
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + CAST ( col1 AS INTEGER ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 80 + col2 NOT BETWEEN - col2 AND - ( col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9586
SELECT + - 0 * - - COUNT( * ) AS col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9586
SELECT + - 0 * - - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
0

query I rowsort
SELECT + 83 * - 24 * col1 FROM tab2
----
-101592
-133464
-153384

query III rowsort
SELECT * FROM tab0 WHERE ( ( - 23 + - 0 ) IS NOT NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9589
SELECT DISTINCT - - ( MAX( DISTINCT col1 ) ) col2 FROM tab2 WHERE NOT NULL <= - col2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9589
SELECT DISTINCT - - ( MAX ( DISTINCT col1 ) ) col2 FROM tab2 WHERE NOT NULL <= - col2
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 - ( col1 ) - - 95 col0 FROM tab0
----
95
95
95

query I rowsort
SELECT 22 - col0 * + - 80 AS col1 FROM tab0
----
1222
6982
7782

query III rowsort
SELECT ALL * FROM tab2 WHERE ( - 56 + 7 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + ( col1 ) AS col0 FROM tab1 cor0 WHERE NULL <> + col1
----

query I rowsort
SELECT 64 + + + col1 - 70 AS col1 FROM tab0 AS cor0
----
-5
15
75

onlyif mysql # aggregate syntax: 
query II rowsort label-9595
SELECT DISTINCT + 66 * + - 3, 25 * + + COUNT( * ) AS col2 FROM tab1
----
-198
75

skipif mysql # not compatible
query II rowsort label-9595
SELECT DISTINCT + 66 * + - 3, 25 * + + COUNT ( * ) AS col2 FROM tab1
----
-198
75

onlyif mysql # DIV for integer division: 
query I rowsort label-9596
SELECT col1 DIV col0 * + 11 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9596
SELECT col1 / col0 * + 11 FROM tab1
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 24 * - col0 col0 FROM tab1
----
-1224
-2040
-2184

onlyif mysql # DIV for integer division: 
query I rowsort label-9598
SELECT + 45 DIV 81 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9598
SELECT + 45 / 81 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT - 47 * + + 43 FROM tab2 AS cor0
----
-2021
-2021
-2021

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col0 * 34 + - 77 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9601
SELECT - MIN( DISTINCT 73 ) col2 FROM tab1 AS cor0
----
-73

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9601
SELECT - MIN ( DISTINCT 73 ) col2 FROM tab1 AS cor0
----
-73

query I rowsort
SELECT DISTINCT 48 AS col0 FROM tab2 cor0
----
48

query III rowsort
SELECT * FROM tab2 WHERE NOT - - 91 < NULL
----

query II rowsort
SELECT col2 AS col2, - ( - col0 ) FROM tab2
----
23
46
40
64
58
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9605
SELECT DISTINCT ( CAST( col0 AS SIGNED ) ) col2 FROM tab0
----
15
87
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9605
SELECT DISTINCT ( CAST ( col0 AS INTEGER ) ) col2 FROM tab0
----
15
87
97

query I rowsort
SELECT DISTINCT - col1 + + 24 * + col0 AS col0 FROM tab2 WHERE NOT ( col2 ) IS NULL
----
1053
1459
1733

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9607
SELECT ALL * FROM tab0 WHERE col1 * ( - col1 ) * + col2 + + - CAST( + + 92 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-9607
SELECT ALL * FROM tab0 WHERE col1 * ( - col1 ) * + col2 + + - CAST ( + + 92 AS INTEGER ) IS NULL
----

query II rowsort
SELECT col0 AS col0, - 43 FROM tab0
----
15
-43
87
-43
97
-43

query III rowsort
SELECT * FROM tab1 WHERE NOT - col1 * - col2 BETWEEN + 17 AND NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9610
SELECT COUNT( * ) AS col1, + ( - + COUNT( * ) ) AS col2 FROM tab0
----
3
-3

skipif mysql # not compatible
query II rowsort label-9610
SELECT COUNT ( * ) AS col1, + ( - + COUNT ( * ) ) AS col2 FROM tab0
----
3
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-9611
SELECT ( + col0 ) DIV + 50 FROM tab0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-9611
SELECT ( + col0 ) / + 50 FROM tab0
----
0
1
1

query I rowsort
SELECT 0 * - + 80 FROM tab1
----
0
0
0

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT + 69 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9614
SELECT DISTINCT + MAX( ALL 26 ) AS col2 FROM tab2 AS cor0
----
26

skipif mysql # not compatible
query I rowsort label-9614
SELECT DISTINCT + MAX ( ALL 26 ) AS col2 FROM tab2 AS cor0
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-9615
SELECT DISTINCT - SUM( - col1 ) AS col2 FROM tab2
----
195

skipif mysql # not compatible
query I rowsort label-9615
SELECT DISTINCT - SUM ( - col1 ) AS col2 FROM tab2
----
195

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9616
SELECT ALL 82 + - CAST( + 98 AS SIGNED ) + - ( - CAST( NULL AS SIGNED ) ) * - - CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9616
SELECT ALL 82 + - CAST ( + 98 AS INTEGER ) + - ( - CAST ( NULL AS INTEGER ) ) * - - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col1 * + - 41 AS col0 FROM tab1
----
-1927
-205
-574

query I rowsort
SELECT + + 82 + + + col2 FROM tab1 AS cor0
----
141
150
178

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( - col2 ) NOT BETWEEN ( + col1 ) AND + col0
----

query I rowsort
SELECT DISTINCT col1 - + + 21 AS col2 FROM tab2 AS cor0
----
30
46
56

onlyif mysql # aggregate syntax: 
query II rowsort label-9621
SELECT DISTINCT + ( + MIN( + col1 ) ), + MAX( ALL col0 ) AS col1 FROM tab0
----
1
97

skipif mysql # not compatible
query II rowsort label-9621
SELECT DISTINCT + ( + MIN ( + col1 ) ), + MAX ( ALL col0 ) AS col1 FROM tab0
----
1
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9622
SELECT - CAST( NULL AS SIGNED ) + - ( 85 ) + - - 84 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9622
SELECT - CAST ( NULL AS INTEGER ) + - ( 85 ) + - - 84 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9623
SELECT COUNT( * ) * + + 58 + + + ( + COUNT( * ) ) AS col0 FROM tab2
----
177

skipif mysql # not compatible
query I rowsort label-9623
SELECT COUNT ( * ) * + + 58 + + + ( + COUNT ( * ) ) AS col0 FROM tab2
----
177

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9624
SELECT col1 + col2 * + - CAST( - - col1 AS SIGNED ) FROM tab1
----
-1330
-290
-3149

skipif mysql # not compatible
query I rowsort label-9624
SELECT col1 + col2 * + - CAST ( - - col1 AS INTEGER ) FROM tab1
----
-1330
-290
-3149

query I rowsort
SELECT col2 + + col1 AS col0 FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9626
SELECT - SUM( ALL - - col2 ) col0 FROM tab2 AS cor0
----
-121

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9626
SELECT - SUM ( ALL - - col2 ) col0 FROM tab2 AS cor0
----
-121

query I rowsort
SELECT ALL - 18 - - 8 AS col2 FROM tab1 cor0 WHERE - col2 > NULL
----

query I rowsort
SELECT DISTINCT - - ( - col2 ) - + 73 * col0 FROM tab0 AS cor0
----
-1142
-6361
-7180

onlyif mysql # aggregate syntax: 
query I rowsort label-9629
SELECT ALL COUNT( * ) * - ( - - 9 ) FROM tab2
----
-27

skipif mysql # not compatible
query I rowsort label-9629
SELECT ALL COUNT ( * ) * - ( - - 9 ) FROM tab2
----
-27

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9630
SELECT DISTINCT + COUNT( * ) DIV - 54 AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-9630
SELECT DISTINCT + COUNT ( * ) / - 54 AS col1 FROM tab1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9631
SELECT ALL 74 DIV - + col0 AS col0 FROM tab0
----
-4
0
0

skipif mysql # not compatible
query I rowsort label-9631
SELECT ALL 74 / - + col0 AS col0 FROM tab0
----
-4
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9632
SELECT - + ( - - MIN( col2 ) ) FROM tab1 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-9632
SELECT - + ( - - MIN ( col2 ) ) FROM tab1 AS cor0
----
-59

query II rowsort
SELECT DISTINCT + col0 AS col2, - col1 - col1 FROM tab2 AS cor0
----
46
-102
64
-154
75
-134

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9634
SELECT + 81 AS col2, 84 DIV COUNT( * ) FROM tab0 AS cor0
----
81
28

skipif mysql # not compatible
query II rowsort label-9634
SELECT + 81 AS col2, 84 / COUNT ( * ) FROM tab0 AS cor0
----
81
28

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 AS col2, col2 col2 FROM tab1 AS cor0
----
-51
96
-85
59
-91
68

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( - col1 IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 89 * - - col2 AS col1 FROM tab1
----
5251
6052
8544

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE - ( + col2 ) < ( + 52 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 11 AS col0 FROM tab1 cor0
----
11
11
11

query I rowsort
SELECT - col2 + + col2 * - - col2 FROM tab0 AS cor0
----
2162
90
9702

query I rowsort
SELECT DISTINCT - col1 * col0 + - 20 FROM tab2
----
-2366
-4948
-5045

query I rowsort
SELECT ALL col0 * - - 81 + - - ( - + col1 ) FROM tab1
----
4117
6880
7324

onlyif mysql # DIV for integer division: 
query I rowsort label-9643
SELECT + col1 DIV + col2 + + + col2 FROM tab2
----
25
41
59

skipif mysql # not compatible
query I rowsort label-9643
SELECT + col1 / + col2 + + + col2 FROM tab2
----
25
41
59

query I rowsort
SELECT DISTINCT + 34 + - + 87 FROM tab0 AS cor0
----
-53

query I rowsort
SELECT + 0 * - 73 AS col0 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9646
SELECT ALL - + MAX( DISTINCT - + 53 ) AS col1 FROM tab2 AS cor0
----
53

skipif mysql # not compatible
query I rowsort label-9646
SELECT ALL - + MAX ( DISTINCT - + 53 ) AS col1 FROM tab2 AS cor0
----
53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9647
SELECT ALL - CAST( NULL AS SIGNED ) * - col1 - + - col2 AS col1 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9647
SELECT ALL - CAST ( NULL AS INTEGER ) * - col1 - + - col2 AS col1 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 15 AS col2 FROM tab2 cor0
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-9649
SELECT - SUM( DISTINCT ( - col1 ) ) col0 FROM tab1 AS cor0 WHERE col2 <= NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9649
SELECT - SUM ( DISTINCT ( - col1 ) ) col0 FROM tab1 AS cor0 WHERE col2 <= NULL
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE NULL IN ( - + col0 )
----

query I rowsort
SELECT ALL - 66 FROM tab0 WHERE NOT - + 17 IS NULL
----
-66
-66
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-9652
SELECT DISTINCT + ( - - 81 ) + - - COUNT( * ) FROM tab2
----
84

skipif mysql # not compatible
query I rowsort label-9652
SELECT DISTINCT + ( - - 81 ) + - - COUNT ( * ) FROM tab2
----
84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9653
SELECT DISTINCT CAST( NULL AS SIGNED ) + + - col1 + + + col1 * + + 46 - + col2 AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9653
SELECT DISTINCT CAST ( NULL AS INTEGER ) + + - col1 + + + col1 * + + 46 - + col2 AS col1 FROM tab1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9654
SELECT ALL col0 + + - col2 DIV + col1 FROM tab0 AS cor0
----
-2
15
87

skipif mysql # not compatible
query I rowsort label-9654
SELECT ALL col0 + + - col2 / + col1 FROM tab0 AS cor0
----
-2
15
87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 55 col1 FROM tab2 AS cor0
----
-55

query II rowsort
SELECT - 83 * + ( 84 ) AS col1, ( - col1 ) FROM tab0
----
-6972
-1
-6972
-21
-6972
-81

query II rowsort
SELECT ALL ( ( - col1 ) ), col1 AS col1 FROM tab2
----
-51
51
-67
67
-77
77

query I rowsort
SELECT DISTINCT 84 * - col1 * - 55 AS col0 FROM tab1
----
217140
23100
64680

onlyif mysql # DIV for integer division: 
query I rowsort label-9659
SELECT ALL col0 * + ( - 85 ) * + col0 DIV - ( - col0 ) + + - col2 FROM tab0
----
-1322
-7405
-8344

skipif mysql # not compatible
query I rowsort label-9659
SELECT ALL col0 * + ( - 85 ) * + col0 / - ( - col0 ) + + - col2 FROM tab0
----
-1322
-7405
-8344

query I rowsort
SELECT + 48 * 57 FROM tab2
----
2736
2736
2736

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9661
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL IN ( col2, - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-9661
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL IN ( col2, - CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT - + ( + 5 ) AS col1 FROM tab0 AS cor0
----
-5
-5
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9663
SELECT - - 8 AS col2, - COUNT( * ) + + CAST( NULL AS SIGNED ) col0 FROM tab0 AS cor0
----
8
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9663
SELECT - - 8 AS col2, - COUNT ( * ) + + CAST ( NULL AS INTEGER ) col0 FROM tab0 AS cor0
----
8
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9664
SELECT ALL - MAX( + 38 ) AS col1 FROM tab0 AS cor0
----
-38

skipif mysql # not compatible
query I rowsort label-9664
SELECT ALL - MAX ( + 38 ) AS col1 FROM tab0 AS cor0
----
-38

query I rowsort
SELECT DISTINCT + ( col1 ) AS col1 FROM tab1 AS cor0 WHERE - ( col1 ) + - col0 + - - col2 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9666
SELECT DISTINCT 2 DIV + col1 FROM tab0
----
0
2

skipif mysql # not compatible
query I rowsort label-9666
SELECT DISTINCT 2 / + col1 FROM tab0
----
0
2

onlyif mysql # aggregate syntax: 
query I rowsort label-9667
SELECT COUNT( * ) AS col2 FROM tab1 WHERE NOT + 79 NOT BETWEEN - - col0 AND + col0
----
0

skipif mysql # not compatible
query I rowsort label-9667
SELECT COUNT ( * ) AS col2 FROM tab1 WHERE NOT + 79 NOT BETWEEN - - col0 AND + col0
----
0

query I rowsort
SELECT ALL - 1 * + col1 AS col0 FROM tab0
----
-1
-21
-81

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL IN ( + + col0 * + - col2 * col0 * - col0, - col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col0 col0, + 58 FROM tab0
----
-15
58
-87
58
-97
58

query II rowsort
SELECT DISTINCT - col2, col1 * - col0 AS col1 FROM tab1
----
-59
-425
-68
-4277
-96
-714

query II rowsort
SELECT ALL col2 AS col1, + 17 FROM tab2
----
23
17
40
17
58
17

query II rowsort
SELECT 55, col1 FROM tab2
----
55
51
55
67
55
77

query I rowsort
SELECT - 48 + + col0 FROM tab1
----
3
37
43

onlyif mysql # aggregate syntax: 
query I rowsort label-9675
SELECT ALL - ( - 92 ) * COUNT( * ) AS col1 FROM tab1
----
276

skipif mysql # not compatible
query I rowsort label-9675
SELECT ALL - ( - 92 ) * COUNT ( * ) AS col1 FROM tab1
----
276

onlyif mysql # aggregate syntax: 
query II rowsort label-9676
SELECT ALL - COUNT( * ), + 10 AS col2 FROM tab0
----
-3
10

skipif mysql # not compatible
query II rowsort label-9676
SELECT ALL - COUNT ( * ), + 10 AS col2 FROM tab0
----
-3
10

query I rowsort
SELECT - + 90 * - col0 + + 91 AS col2 FROM tab2 AS cor0
----
4231
5851
6841

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NOT ( NOT NULL IS NOT NULL ) )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) NOT IN ( + + col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9680
SELECT ALL - CAST( NULL AS SIGNED ) * col1 + col2 * CAST( NULL AS SIGNED ) AS col1, 36 + - 11 AS col1 FROM tab2 AS cor0
----
NULL
25
NULL
25
NULL
25

skipif mysql # not compatible
query II rowsort label-9680
SELECT ALL - CAST ( NULL AS INTEGER ) * col1 + col2 * CAST ( NULL AS INTEGER ) AS col1, 36 + - 11 AS col1 FROM tab2 AS cor0
----
NULL
25
NULL
25
NULL
25

query I rowsort
SELECT DISTINCT + ( + 82 ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-9682
SELECT - ( - COUNT( * ) ) + + COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
18

skipif mysql # not compatible
query I rowsort label-9682
SELECT - ( - COUNT ( * ) ) + + COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9683
SELECT COUNT( * ) + CAST( NULL AS SIGNED ) FROM tab0 AS cor0 WHERE NULL <= - 33
----
NULL

skipif mysql # not compatible
query I rowsort label-9683
SELECT COUNT ( * ) + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE NULL <= - 33
----
NULL

query I rowsort
SELECT - 60 + ( - col1 ) AS col1 FROM tab0 AS cor0
----
-141
-61
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-9685
SELECT DISTINCT + MIN( ALL col0 ) FROM tab0 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-9685
SELECT DISTINCT + MIN ( ALL col0 ) FROM tab0 AS cor0
----
15

query II rowsort
SELECT DISTINCT + ( - + col1 ), col2 FROM tab2 AS cor0
----
-51
23
-67
58
-77
40

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + ( + + col1 ) * + - col2 col0 FROM tab0
----
-200
-3760
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9688
SELECT ALL 37 AS col1, + COUNT( * ) FROM tab2
----
37
3

skipif mysql # not compatible
query II rowsort label-9688
SELECT ALL 37 AS col1, + COUNT ( * ) FROM tab2
----
37
3

query I rowsort
SELECT DISTINCT - col1 * 93 * - col1 AS col0 FROM tab2
----
241893
417477
551397

query I rowsort
SELECT + col1 AS col0 FROM tab1 WHERE - - 7 IS NOT NULL
----
14
47
5

query I rowsort
SELECT col1 * + - 20 AS col2 FROM tab0
----
-1620
-20
-420

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9692
SELECT - + CAST( NULL AS SIGNED ) AS col2, + col2 AS col2 FROM tab1 cor0
----
NULL
59
NULL
68
NULL
96

skipif mysql # not compatible
query II rowsort label-9692
SELECT - + CAST ( NULL AS INTEGER ) AS col2, + col2 AS col2 FROM tab1 cor0
----
NULL
59
NULL
68
NULL
96

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col2 <= - 51
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT + col2 IS NOT NULL
----

query I rowsort
SELECT - - 62 AS col1 FROM tab2 AS cor0
----
62
62
62

onlyif mysql # aggregate syntax: 
query I rowsort label-9696
SELECT SUM( ALL + col1 ) FROM tab2 AS cor0
----
195

skipif mysql # not compatible
query I rowsort label-9696
SELECT SUM ( ALL + col1 ) FROM tab2 AS cor0
----
195

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + - - col2 col0 FROM tab1 AS cor0 WHERE NOT 80 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9698
SELECT DISTINCT - + 82 DIV col0 * + col2 AS col1 FROM tab2 AS cor0
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-9698
SELECT DISTINCT - + 82 / col0 * + col2 AS col1 FROM tab2 AS cor0
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-9699
SELECT - COUNT( * ) col2 FROM tab0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9699
SELECT - COUNT ( * ) col2 FROM tab0 WHERE NOT NULL IS NULL
----
0

query I rowsort
SELECT DISTINCT + + 71 FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9701
SELECT DISTINCT - ( + col2 ) + - col1 + - 94 * 82, - CAST( NULL AS SIGNED ) * + - col2 + col2 col2 FROM tab1
----
-7772
NULL
-7818
NULL
-7823
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9701
SELECT DISTINCT - ( + col2 ) + - col1 + - 94 * 82, - CAST ( NULL AS INTEGER ) * + - col2 + col2 col2 FROM tab1
----
-7772
NULL
-7818
NULL
-7823
NULL

query I rowsort
SELECT ALL - 40 + + ( + - 99 ) AS col0 FROM tab2
----
-139
-139
-139

onlyif mysql # aggregate syntax: 
query I rowsort label-9703
SELECT ALL + COUNT( DISTINCT - + 18 ) FROM tab1 WHERE NULL IS NULL
----
1

skipif mysql # not compatible
query I rowsort label-9703
SELECT ALL + COUNT ( DISTINCT - + 18 ) FROM tab1 WHERE NULL IS NULL
----
1

query I rowsort
SELECT ALL 11 * ( - - 54 ) AS col0 FROM tab0
----
594
594
594

onlyif mysql # DIV for integer division: 
query I rowsort label-9705
SELECT + ( + col1 ) * ( + + col0 ) DIV - - col2 AS col1 FROM tab2
----
102
123
86

skipif mysql # not compatible
query I rowsort label-9705
SELECT + ( + col1 ) * ( + + col0 ) / - - col2 AS col1 FROM tab2
----
102
123
86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9706
SELECT ALL - CAST( NULL AS SIGNED ) * col2 + col1 + + + col2 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9706
SELECT ALL - CAST ( NULL AS INTEGER ) * col2 + col1 + + + col2 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 55 + 69 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
124

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL <= 96
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9709
SELECT ALL CAST( AVG ( ALL - + 50 ) AS SIGNED ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-50

skipif mysql # not compatible
query I rowsort label-9709
SELECT ALL CAST ( AVG ( ALL - + 50 ) AS INTEGER ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-50

query I rowsort
SELECT DISTINCT + - 3 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 AS col0, - 44 col1 FROM tab0 AS cor0
----
15
-44
87
-44
97
-44

query I rowsort
SELECT ALL + col0 * + + col0 + col1 FROM tab1 AS cor0
----
2615
7230
8328

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9713
SELECT - + CAST( NULL AS SIGNED ) * + col0 AS col0 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9713
SELECT - + CAST ( NULL AS INTEGER ) * + col0 AS col0 FROM tab2 cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col0 / - col2 * + + col2 + + + col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9715
SELECT DISTINCT + + CAST( NULL AS DECIMAL ) + - 16 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9715
SELECT DISTINCT + + CAST ( NULL AS REAL ) + - 16 FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9716
SELECT - - MAX( ALL - col2 ) - - + ( - - MAX( DISTINCT CAST( NULL AS DECIMAL ) ) ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9716
SELECT - - MAX ( ALL - col2 ) - - + ( - - MAX ( DISTINCT CAST ( NULL AS REAL ) ) ) AS col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + col2 * - col2 + + - col2 - col0 - col0 - - col1 * - + col0 FROM tab2 cor0
----
-2990
-6696
-8597

query I rowsort
SELECT - - 91 - - 68 FROM tab1 AS cor0
----
159
159
159

query I rowsort
SELECT ALL - col1 * col1 - + col0 AS col2 FROM tab1 AS cor0
----
-110
-2300
-247

query I rowsort
SELECT DISTINCT + - 94 - + col1 FROM tab1 AS cor0
----
-108
-141
-99

query II rowsort
SELECT DISTINCT + col0, col0 * col1 FROM tab0 cor0
----
15
1215
87
1827
97
97

query II rowsort
SELECT - col2, col0 FROM tab1 WHERE NOT NULL <> ( - + 69 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9723
SELECT DISTINCT + SUM( + col1 ) col1 FROM tab0 WHERE NOT - col1 IS NULL
----
103

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9723
SELECT DISTINCT + SUM ( + col1 ) col1 FROM tab0 WHERE NOT - col1 IS NULL
----
103

query I rowsort
SELECT ALL col1 AS col2 FROM tab0 AS cor0 WHERE NULL = NULL
----

query II rowsort
SELECT - col1 * + 49 AS col1, - col2 AS col1 FROM tab2 AS cor0
----
-2499
-23
-3283
-58
-3773
-40

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col1 = + - col1
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9727
SELECT + 93 AS col0, MIN( + 90 ) AS col2 FROM tab2
----
93
90

skipif mysql # not compatible
query II rowsort label-9727
SELECT + 93 AS col0, MIN ( + 90 ) AS col2 FROM tab2
----
93
90

onlyif mysql # aggregate syntax: 
query I rowsort label-9728
SELECT MIN( DISTINCT + 0 ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-9728
SELECT MIN ( DISTINCT + 0 ) FROM tab2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9729
SELECT ALL - - col2 * col0 DIV col0 - - col2 * + col2 + 51 FROM tab2 AS cor0
----
1691
3473
603

skipif mysql # not compatible
query I rowsort label-9729
SELECT ALL - - col2 * col0 / col0 - - col2 * + col2 + 51 FROM tab2 AS cor0
----
1691
3473
603

onlyif mysql # aggregate syntax: 
query I rowsort label-9730
SELECT - - MIN( ALL col0 ) AS col2 FROM tab0 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-9730
SELECT - - MIN ( ALL col0 ) AS col2 FROM tab0 AS cor0
----
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9731
SELECT + col0 * - 40 + - CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9731
SELECT + col0 * - 40 + - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query II rowsort
SELECT + col0 AS col0, col1 FROM tab1 WHERE + col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9733
SELECT + 43 + - - COUNT( * ) AS col1 FROM tab1
----
46

skipif mysql # not compatible
query I rowsort label-9733
SELECT + 43 + - - COUNT ( * ) AS col1 FROM tab1
----
46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9734
SELECT - col2 * - col2 + + CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9734
SELECT - col2 * - col2 + + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9735
SELECT DISTINCT col0 DIV + + col1 + + col2 * - col0 AS col0 FROM tab0
----
-705
-866
-9506

skipif mysql # not compatible
query I rowsort label-9735
SELECT DISTINCT col0 / + + col1 + + col2 * - col0 AS col0 FROM tab0
----
-705
-866
-9506

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 col1 FROM tab2 WHERE NULL >= NULL
----

query III rowsort
SELECT * FROM tab0 WHERE 51 BETWEEN ( - 86 ) AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9738
SELECT DISTINCT - - CAST( NULL AS SIGNED ) * - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9738
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) * - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT - col1 + - col2 * + - 51 AS col2 FROM tab0 AS cor0 WHERE NULL IS NULL
----
2316
489
5048

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col2 * col0 * - col0 + + + 85 + col1 + col2 BETWEEN + col0 * + - col0 + + 2 AND + 8 + + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 14 col1 FROM tab0
----
-14
-14
-14

query I rowsort
SELECT DISTINCT 13 + - + col1 AS col0 FROM tab1
----
-1
-34
8

onlyif mysql # aggregate syntax: 
query I rowsort label-9743
SELECT ALL + 95 + 12 - COUNT( * ) FROM tab0
----
104

skipif mysql # not compatible
query I rowsort label-9743
SELECT ALL + 95 + 12 - COUNT ( * ) FROM tab0
----
104

onlyif mysql # aggregate syntax: 
query I rowsort label-9744
SELECT DISTINCT - MIN( DISTINCT - 80 ) + - COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9744
SELECT DISTINCT - MIN ( DISTINCT - 80 ) + - COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9745
SELECT DISTINCT COUNT( * ) + - - 51 AS col1 FROM tab2 AS cor0
----
54

skipif mysql # not compatible
query I rowsort label-9745
SELECT DISTINCT COUNT ( * ) + - - 51 AS col1 FROM tab2 AS cor0
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-9746
SELECT ALL + COUNT( * ) + + - 8 FROM tab1 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-9746
SELECT ALL + COUNT ( * ) + + - 8 FROM tab1 AS cor0
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-9747
SELECT + MAX( - + ( - col1 ) ) AS col2 FROM tab0 cor0
----
81

skipif mysql # not compatible
query I rowsort label-9747
SELECT + MAX ( - + ( - col1 ) ) AS col2 FROM tab0 cor0
----
81

query I rowsort
SELECT + 9 * + 61 * + - 86 FROM tab2 AS cor0
----
-47214
-47214
-47214

onlyif mysql # aggregate syntax: 
query I rowsort label-9749
SELECT ALL + - SUM( - 85 ) AS col1 FROM tab0 AS cor0
----
255

skipif mysql # not compatible
query I rowsort label-9749
SELECT ALL + - SUM ( - 85 ) AS col1 FROM tab0 AS cor0
----
255

query I rowsort
SELECT + ( col1 ) + ( + col2 ) AS col0 FROM tab1 cor0 WHERE NOT NULL IS NOT NULL
----
110
115
64

onlyif mysql # aggregate syntax: 
query I rowsort label-9751
SELECT - COUNT( - 76 ) AS col2 FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9751
SELECT - COUNT ( - 76 ) AS col2 FROM tab0 cor0
----
-3

query I rowsort
SELECT DISTINCT - ( + col0 ) * 6 AS col0 FROM tab1
----
-306
-510
-546

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9753
SELECT + col1 * + CAST( + - 22 AS SIGNED ) AS col0 FROM tab2
----
-1122
-1474
-1694

skipif mysql # not compatible
query I rowsort label-9753
SELECT + col1 * + CAST ( + - 22 AS INTEGER ) AS col0 FROM tab2
----
-1122
-1474
-1694

onlyif mysql # aggregate syntax: 
query I rowsort label-9754
SELECT DISTINCT - MAX( DISTINCT - col1 ) AS col0 FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-9754
SELECT DISTINCT - MAX ( DISTINCT - col1 ) AS col0 FROM tab2
----
51

query II rowsort
SELECT + col2 * - - col2 AS col0, col1 AS col1 FROM tab0
----
100
21
2209
81
9801
1

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9756
SELECT * FROM tab0 WHERE NOT + col0 * col1 + - col0 <> - col0 + + col1 - 52 + - 9 * - + CAST( NULL AS SIGNED ) + col0 * + - 19
----

skipif mysql # not compatible
query III rowsort label-9756
SELECT * FROM tab0 WHERE NOT + col0 * col1 + - col0 <> - col0 + + col1 - 52 + - 9 * - + CAST ( NULL AS INTEGER ) + col0 * + - 19
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9757
SELECT - CAST( - + col1 AS SIGNED ) AS col1 FROM tab0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-9757
SELECT - CAST ( - + col1 AS INTEGER ) AS col1 FROM tab0
----
1
21
81

query I rowsort
SELECT + + col2 FROM tab0 WHERE NOT - 79 < + 76
----

query I rowsort
SELECT ALL - + 97 AS col1 FROM tab1 WHERE NOT ( + + col0 ) BETWEEN ( NULL ) AND - col0 * + ( col1 ) + + - col2 + + - col0 * 41
----
-97
-97
-97

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT + col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9761
SELECT - 97 + + COUNT( * ) FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-94

skipif mysql # not compatible
query I rowsort label-9761
SELECT - 97 + + COUNT ( * ) FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-94

query II rowsort
SELECT DISTINCT col2, 65 FROM tab2 AS cor0
----
23
65
40
65
58
65

query I rowsort
SELECT + - ( + 1 ) AS col1 FROM tab1 AS cor0
----
-1
-1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9764
SELECT - SUM( + col2 ) AS col0 FROM tab1 cor0
----
-223

skipif mysql # not compatible
query I rowsort label-9764
SELECT - SUM ( + col2 ) AS col0 FROM tab1 cor0
----
-223

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9765
SELECT ALL CAST( + 77 AS SIGNED ) AS col0, 74 AS col2 FROM tab0
----
77
74
77
74
77
74

skipif mysql # not compatible
query II rowsort label-9765
SELECT ALL CAST ( + 77 AS INTEGER ) AS col0, 74 AS col2 FROM tab0
----
77
74
77
74
77
74

query I rowsort
SELECT - col1 + - - 1 * + col2 AS col2 FROM tab2 AS cor0
----
-28
-37
-9

query I rowsort
SELECT - ( - - 24 ) FROM tab1 AS cor0 WHERE NOT - col2 IS NULL
----
-24
-24
-24

query I rowsort
SELECT + + col1 * 54 * - 73 + + col1 + - col0 * + col2 FROM tab0 AS cor0
----
-13544
-319926
-83631

onlyif mysql # aggregate syntax: 
query I rowsort label-9769
SELECT SUM( + - 93 ) AS col1 FROM tab1 cor0
----
-279

skipif mysql # not compatible
query I rowsort label-9769
SELECT SUM ( + - 93 ) AS col1 FROM tab1 cor0
----
-279

query II rowsort
SELECT + ( 20 ) AS col2, col2 FROM tab0 cor0
----
20
10
20
47
20
99

onlyif mysql # aggregate syntax: 
query I rowsort label-9771
SELECT ( + 17 ) * MAX( - col1 ) + 94 - + COUNT( col1 ) AS col1 FROM tab0 AS cor0
----
74

skipif mysql # not compatible
query I rowsort label-9771
SELECT ( + 17 ) * MAX ( - col1 ) + 94 - + COUNT ( col1 ) AS col1 FROM tab0 AS cor0
----
74

query III rowsort
SELECT * FROM tab1 WHERE + + col1 * + col0 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL col1 * + - col1 AS col0 FROM tab2
----
-2601
-4489
-5929

query I rowsort
SELECT ALL 6 + + col2 + - - ( col1 ) * + + ( - col0 ) * - col2 + + + 77 - 39 AS col2 FROM tab1
----
25178
290948
68684

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9775
SELECT + 89 * - col2 * CAST( NULL AS SIGNED ) + + col2 AS col0 FROM tab0 WHERE NULL NOT BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query I rowsort label-9775
SELECT + 89 * - col2 * CAST ( NULL AS INTEGER ) + + col2 AS col0 FROM tab0 WHERE NULL NOT BETWEEN NULL AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 12 - + + col1 col2 FROM tab1
----
-2
-35
7

onlyif mysql # aggregate syntax: 
query I rowsort label-9777
SELECT DISTINCT 4 + + COUNT( * ) + 84 FROM tab2
----
91

skipif mysql # not compatible
query I rowsort label-9777
SELECT DISTINCT 4 + + COUNT ( * ) + 84 FROM tab2
----
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - - col1 + - col1 + col2 * - col2 col2, col1 AS col2 FROM tab0 AS cor0
----
-100
21
-2209
81
-9801
1

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - 21 IS NOT NULL
----

query I rowsort
SELECT + + ( + 71 ) * 16 + + + 23 AS col0 FROM tab0 AS cor0
----
1159
1159
1159

query III rowsort
SELECT * FROM tab0 WHERE col0 NOT BETWEEN + + col2 / + col1 AND + - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9782
SELECT ALL + ( - COUNT( * ) ) FROM tab1 WHERE NOT + + 32 * - col1 + + 11 + col0 - - - CAST( NULL AS SIGNED ) IN ( col1 / + 95, + CAST( - 96 AS SIGNED ) + - - col0, + 75 )
----
0

skipif mysql # not compatible
query I rowsort label-9782
SELECT ALL + ( - COUNT ( * ) ) FROM tab1 WHERE NOT + + 32 * - col1 + + 11 + col0 - - - CAST ( NULL AS INTEGER ) IN ( col1 / + 95, + CAST ( - 96 AS INTEGER ) + - - col0, + 75 )
----
0

query I rowsort
SELECT DISTINCT - col1 AS col1 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
-1
-21
-81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 * - col2, 60 * + col1 col0 FROM tab2 AS cor0
----
-1173
3060
-3080
4620
-3886
4020

query I rowsort
SELECT DISTINCT col1 - col0 * 90 AS col2 FROM tab2 AS cor0 WHERE - col2 <> ( + col1 )
----
-4089
-5683
-6683

query I rowsort
SELECT ALL + 73 + - + col0 AS col1 FROM tab1 AS cor0 WHERE NULL BETWEEN + col1 AND - 40 * col1 + - - ( + + 88 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9787
SELECT ALL + + col1 * CAST( - 13 AS SIGNED ) FROM tab0 cor0
----
-1053
-13
-273

skipif mysql # not compatible
query I rowsort label-9787
SELECT ALL + + col1 * CAST ( - 13 AS INTEGER ) FROM tab0 cor0
----
-1053
-13
-273

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9788
SELECT * FROM tab2 AS cor0 WHERE NOT + ( + + CAST( NULL AS SIGNED ) ) <> NULL
----

skipif mysql # not compatible
query III rowsort label-9788
SELECT * FROM tab2 AS cor0 WHERE NOT + ( + + CAST ( NULL AS INTEGER ) ) <> NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NOT + col1 IS NULL )
----

query I rowsort
SELECT col0 * 81 * col1 AS col2 FROM tab0
----
147987
7857
98415

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9791
SELECT DISTINCT - 24 DIV + ( - COUNT( * ) ) FROM tab1
----
8

skipif mysql # not compatible
query I rowsort label-9791
SELECT DISTINCT - 24 / + ( - COUNT ( * ) ) FROM tab1
----
8

query I rowsort
SELECT 85 * - col0 AS col1 FROM tab0
----
-1275
-7395
-8245

query II rowsort
SELECT 21 AS col2, - col1 AS col0 FROM tab1
----
21
-14
21
-47
21
-5

query I rowsort
SELECT - col2 * + ( - col2 ) FROM tab0
----
100
2209
9801

query I rowsort
SELECT DISTINCT - col1 * 66 AS col2 FROM tab0
----
-1386
-5346
-66

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9796
SELECT * FROM tab2 WHERE NOT ( col0 IN ( + 14, + 4, CAST( NULL AS SIGNED ) ) )
----

skipif mysql # not compatible
query III rowsort label-9796
SELECT * FROM tab2 WHERE NOT ( col0 IN ( + 14, + 4, CAST ( NULL AS INTEGER ) ) )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + col1 IN ( + - 44, col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9798
SELECT DISTINCT MIN( - col2 ) col0 FROM tab1 cor0
----
-96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9798
SELECT DISTINCT MIN ( - col2 ) col0 FROM tab1 cor0
----
-96

query I rowsort
SELECT + col2 AS col1 FROM tab0 AS cor0 WHERE NOT 98 NOT BETWEEN - 93 AND NULL
----

query II rowsort
SELECT DISTINCT + col0 AS col2, col1 + - 56 FROM tab1
----
51
-42
85
-51
91
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-9801
SELECT DISTINCT + - COUNT( * ) FROM tab0 WHERE NULL IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-9801
SELECT DISTINCT + - COUNT ( * ) FROM tab0 WHERE NULL IS NULL
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9802
SELECT COUNT( ALL + 51 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-9802
SELECT COUNT ( ALL + 51 ) FROM tab0
----
3

query II rowsort
SELECT col0 AS col0, - col0 * + 8 AS col2 FROM tab2
----
46
-368
64
-512
75
-600

onlyif mysql # aggregate syntax: 
query I rowsort label-9804
SELECT ALL - + COUNT( DISTINCT col2 ) FROM tab2 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9804
SELECT ALL - + COUNT ( DISTINCT col2 ) FROM tab2 cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9805
SELECT DISTINCT + + COUNT( DISTINCT - 31 ) AS col2 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-9805
SELECT DISTINCT + + COUNT ( DISTINCT - 31 ) AS col2 FROM tab2 AS cor0
----
1

query I rowsort
SELECT ALL + ( - + col2 ) + - col1 FROM tab2 AS cor0
----
-117
-125
-74

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL = - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9808
SELECT + COUNT( * ) + + - 89 * - 75 AS col2 FROM tab1 AS cor0
----
6678

skipif mysql # not compatible
query I rowsort label-9808
SELECT + COUNT ( * ) + + - 89 * - 75 AS col2 FROM tab1 AS cor0
----
6678

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 80 + - 33 col2 FROM tab0 AS cor0
----
47
47
47

onlyif mysql # DIV for integer division: 
query I rowsort label-9810
SELECT col0 + + + col0 DIV + col0 AS col0 FROM tab1
----
52
86
92

skipif mysql # not compatible
query I rowsort label-9810
SELECT col0 + + + col0 / + col0 AS col0 FROM tab1
----
52
86
92

query I rowsort
SELECT + col2 + 89 * - col2 AS col2 FROM tab0
----
-4136
-8712
-880

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9812
SELECT COUNT( * ) + COUNT( * ) AS col1, CAST( NULL AS SIGNED ) FROM tab0
----
6
NULL

skipif mysql # not compatible
query II rowsort label-9812
SELECT COUNT ( * ) + COUNT ( * ) AS col1, CAST ( NULL AS INTEGER ) FROM tab0
----
6
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9813
SELECT DISTINCT COUNT( ALL col1 ) + - CAST( NULL AS DECIMAL ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9813
SELECT DISTINCT COUNT ( ALL col1 ) + - CAST ( NULL AS REAL ) AS col0 FROM tab2
----
NULL

query II rowsort
SELECT ALL col0 + - + col2 AS col1, 6 + + col0 AS col0 FROM tab2
----
17
81
23
52
24
70

onlyif mysql # aggregate syntax: 
query I rowsort label-9815
SELECT COUNT( * ) - MAX( DISTINCT - - col0 ) AS col2 FROM tab0 AS cor0
----
-94

skipif mysql # not compatible
query I rowsort label-9815
SELECT COUNT ( * ) - MAX ( DISTINCT - - col0 ) AS col2 FROM tab0 AS cor0
----
-94

query I rowsort
SELECT + 85 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to aafa8e5cfb9e02cea8717833e7581f7b

onlyif mysql # aggregate syntax: 
query I rowsort label-9817
SELECT DISTINCT COUNT( * ) * + - 67 * - 56 + COUNT( * ) + - - ( 84 ) - + COUNT( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
33852

skipif mysql # not compatible
query I rowsort label-9817
SELECT DISTINCT COUNT ( * ) * + - 67 * - 56 + COUNT ( * ) + - - ( 84 ) - + COUNT ( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
33852

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 col1, col1 FROM tab0 AS cor0
----
1
1
21
21
81
81

onlyif mysql # aggregate syntax: 
query I rowsort label-9819
SELECT DISTINCT MIN( DISTINCT col1 ) col0 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9819
SELECT DISTINCT MIN ( DISTINCT col1 ) col0 FROM tab0 AS cor0
----
1

query I rowsort
SELECT + col0 * + - col2 FROM tab0 AS cor0
----
-705
-870
-9603

query I rowsort
SELECT DISTINCT - - 58 * - col1 AS col1 FROM tab2 AS cor0
----
-2958
-3886
-4466

onlyif mysql # aggregate syntax: 
query I rowsort label-9822
SELECT ALL 75 * - COUNT( + - 90 ) AS col0 FROM tab1 AS cor0
----
-225

skipif mysql # not compatible
query I rowsort label-9822
SELECT ALL 75 * - COUNT ( + - 90 ) AS col0 FROM tab1 AS cor0
----
-225

query I rowsort
SELECT DISTINCT - col1 * - + 65 AS col2 FROM tab2 AS cor0
----
3315
4355
5005

query II rowsort
SELECT DISTINCT + ( - col1 ) * - 59 AS col2, col1 AS col1 FROM tab1 AS cor0
----
2773
47
295
5
826
14

query I rowsort
SELECT + col2 AS col1 FROM tab2 AS cor0 WHERE NOT ( + + col1 ) <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9826
SELECT DISTINCT + 63 * + COUNT( DISTINCT - col2 ) AS col2 FROM tab1
----
189

skipif mysql # not compatible
query I rowsort label-9826
SELECT DISTINCT + 63 * + COUNT ( DISTINCT - col2 ) AS col2 FROM tab1
----
189

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-9827
SELECT DISTINCT + 28 * CAST( NULL AS DECIMAL ) AS col0, col1 FROM tab0
----
NULL
1
NULL
21
NULL
81

skipif mysql # not compatible
query II rowsort label-9827
SELECT DISTINCT + 28 * CAST ( NULL AS REAL ) AS col0, col1 FROM tab0
----
NULL
1
NULL
21
NULL
81

query I rowsort
SELECT 87 AS col2 FROM tab1 AS cor0 WHERE NOT ( ( + ( - ( - + col0 ) ) ) IS NULL )
----
87
87
87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * - + 89 * - - col2 * - col0 + - col1 + - + col1 col2 FROM tab0 AS cor0
----
1625988
5082183
854665

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL <> - col2 * - col2
----

query I rowsort
SELECT + 27 * + - col0 AS col0 FROM tab1 WHERE NOT - - col2 * - 52 + - + col1 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9832
SELECT ALL + col1 * CAST( NULL AS SIGNED ) + col1, col0 FROM tab1
----
NULL
51
NULL
85
NULL
91

skipif mysql # not compatible
query II rowsort label-9832
SELECT ALL + col1 * CAST ( NULL AS INTEGER ) + col1, col0 FROM tab1
----
NULL
51
NULL
85
NULL
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 74 * - + col2 col1 FROM tab2
----
-1702
-2960
-4292

onlyif mysql # aggregate syntax: 
query I rowsort label-9834
SELECT DISTINCT 92 + + COUNT( * ) + + 59 + - + COUNT( * ) AS col0 FROM tab2
----
151

skipif mysql # not compatible
query I rowsort label-9834
SELECT DISTINCT 92 + + COUNT ( * ) + + 59 + - + COUNT ( * ) AS col0 FROM tab2
----
151

query I rowsort
SELECT DISTINCT + + col0 + - + 70 * + col2 AS col2 FROM tab1 AS cor0
----
-4045
-4669
-6669

query I rowsort
SELECT + + 13 AS col2 FROM tab2 cor0
----
13
13
13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9837
SELECT ALL + col0 * - 35 + CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9837
SELECT ALL + col0 * - 35 + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT + 6 * col1 + - 71 AS col2, 52 AS col0 FROM tab2 AS cor0
----
235
52
331
52
391
52

onlyif mysql # aggregate syntax: 
query I rowsort label-9839
SELECT ALL - 56 + - COUNT( * ) FROM tab2 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-9839
SELECT ALL - 56 + - COUNT ( * ) FROM tab2 AS cor0
----
-59

query I rowsort
SELECT ALL + + 33 AS col1 FROM tab1 AS cor0
----
33
33
33

query I rowsort
SELECT - col0 FROM tab1 AS cor0 WHERE col0 >= + col1 * col0 - + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9842
SELECT ALL col0 FROM tab2 AS cor0 WHERE - col2 <= CAST( - 60 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-9842
SELECT ALL col0 FROM tab2 AS cor0 WHERE - col2 <= CAST ( - 60 AS INTEGER )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + col0 >= - col1
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 79 + + col0 IS NULL
----

query I rowsort
SELECT ALL col0 * - - col1 AS col0 FROM tab0
----
1215
1827
97

query I rowsort
SELECT DISTINCT + + 73 * + col2 AS col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
1679
2920
4234

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + - 82 col0 FROM tab2
----
-24
-42
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-9848
SELECT DISTINCT - COUNT( * ) FROM tab1 WHERE ( - col1 * col1 ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-9848
SELECT DISTINCT - COUNT ( * ) FROM tab1 WHERE ( - col1 * col1 ) IS NULL
----
0

query III rowsort
SELECT * FROM tab0 WHERE ( NOT NULL > + col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9850
SELECT ALL + 95 DIV + col0 FROM tab2
----
1
1
2

skipif mysql # not compatible
query I rowsort label-9850
SELECT ALL + 95 / + col0 FROM tab2
----
1
1
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9851
SELECT + MIN( - CAST( NULL AS SIGNED ) ) - + - COUNT( * ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9851
SELECT + MIN ( - CAST ( NULL AS INTEGER ) ) - + - COUNT ( * ) AS col0 FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT + 35 + - + ( - 18 ) * + col0 AS col2 FROM tab0
----
1601
1781
305

onlyif mysql # aggregate syntax: 
query I rowsort label-9853
SELECT COUNT( * ) * 13 * - 77 + - SUM( ALL + 81 ) AS col1 FROM tab2
----
-3246

skipif mysql # not compatible
query I rowsort label-9853
SELECT COUNT ( * ) * 13 * - 77 + - SUM ( ALL + 81 ) AS col1 FROM tab2
----
-3246

onlyif mysql # aggregate syntax: 
query I rowsort label-9854
SELECT + + COUNT( * ) + + + 54 FROM tab2 AS cor0 WHERE ( NULL ) <= col1
----
54

skipif mysql # not compatible
query I rowsort label-9854
SELECT + + COUNT ( * ) + + + 54 FROM tab2 AS cor0 WHERE ( NULL ) <= col1
----
54

query II rowsort
SELECT ALL 2 - - + col2, - 2 - - 10 AS col0 FROM tab1 AS cor0
----
61
8
70
8
98
8

query III rowsort
SELECT * FROM tab0 cor0 WHERE col0 < + col1
----
15
81
47

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 69 <= + col2 / - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col2 col2, - col1 * - col0 FROM tab1 AS cor0
----
59
425
68
4277
96
714

query I rowsort
SELECT DISTINCT col2 + + col1 FROM tab1 WHERE 44 >= 29
----
110
115
64

query III rowsort
SELECT * FROM tab1 WHERE ( NULL ) IS NULL AND NOT - col1 > + - 91
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + ( + col0 ), 63 col1 FROM tab2
----
46
63
64
63
75
63

onlyif mysql # DIV for integer division: 
query I rowsort label-9862
SELECT + col1 * 16 DIV + col0 AS col0 FROM tab1 AS cor0
----
0
4
8

skipif mysql # not compatible
query I rowsort label-9862
SELECT + col1 * 16 / + col0 AS col0 FROM tab1 AS cor0
----
0
4
8

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 11 <= - 76
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + ( - - 61 ) FROM tab1 cor0
----
61
61
61

query I rowsort
SELECT DISTINCT 34 * + - col0 AS col2 FROM tab1 AS cor0
----
-1734
-2890
-3094

query II rowsort
SELECT DISTINCT - + 87 * + - col0 AS col1, col1 * col2 AS col2 FROM tab1 cor0
----
4437
1344
7395
295
7917
3196

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9867
SELECT ALL * FROM tab1 AS cor0 WHERE - CAST( - ( + 29 ) AS DECIMAL ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-9867
SELECT ALL * FROM tab1 AS cor0 WHERE - CAST ( - ( + 29 ) AS REAL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9868
SELECT + COUNT( ALL - col1 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-9868
SELECT + COUNT ( ALL - col1 ) FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9869
SELECT ALL + MAX( ALL + - 38 ) FROM tab1
----
-38

skipif mysql # not compatible
query I rowsort label-9869
SELECT ALL + MAX ( ALL + - 38 ) FROM tab1
----
-38

query II rowsort
SELECT + + col0, col1 FROM tab1 WHERE NOT + + col1 IS NOT NULL
----

query I rowsort
SELECT + ( 15 ) AS col0 FROM tab1
----
15
15
15

query III rowsort
SELECT ALL * FROM tab2 WHERE - 39 + + + col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9873
SELECT - COUNT( * ) + - 3 AS col0 FROM tab0
----
-6

skipif mysql # not compatible
query I rowsort label-9873
SELECT - COUNT ( * ) + - 3 AS col0 FROM tab0
----
-6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9874
SELECT DISTINCT + 94 - + - col2 AS col2 FROM tab0 AS cor0 WHERE NOT CAST( + 94 AS SIGNED ) >= NULL
----

skipif mysql # not compatible
query I rowsort label-9874
SELECT DISTINCT + 94 - + - col2 AS col2 FROM tab0 AS cor0 WHERE NOT CAST ( + 94 AS INTEGER ) >= NULL
----

query I rowsort
SELECT DISTINCT + - col1 * 54 FROM tab2 AS cor0
----
-2754
-3618
-4158

onlyif mysql # aggregate syntax: 
query I rowsort label-9876
SELECT ALL + - COUNT( * ) * - + COUNT( * ) + - COUNT( DISTINCT - col1 ) AS col1 FROM tab1 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-9876
SELECT ALL + - COUNT ( * ) * - + COUNT ( * ) + - COUNT ( DISTINCT - col1 ) AS col1 FROM tab1 AS cor0
----
6

query III rowsort
SELECT * FROM tab2 WHERE ( + col1 / + col2 * col2 + + 92 >= NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-9878
SELECT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE 80 * - CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query IIIIII rowsort label-9878
SELECT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE 80 * - CAST ( NULL AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT col0 + - - col0 * + col1 FROM tab0
----
1230
1914
194

query I rowsort
SELECT ALL + + col0 + + + 87 FROM tab2 AS cor0
----
133
151
162

query I rowsort
SELECT DISTINCT + 31 * + col0 - - + col2 FROM tab1 AS cor0
----
1677
2694
2889

onlyif mysql # DIV for integer division: 
query I rowsort label-9882
SELECT col0 DIV 69 AS col1 FROM tab0 AS cor0 WHERE 37 * col1 IS NOT NULL
----
0
1
1

skipif mysql # not compatible
query I rowsort label-9882
SELECT col0 / 69 AS col1 FROM tab0 AS cor0 WHERE 37 * col1 IS NOT NULL
----
0
1
1

query I rowsort
SELECT DISTINCT - 99 + - - col2 AS col1 FROM tab0 AS cor0
----
-52
-89
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9884
SELECT ALL + MIN( ALL col0 ) - + - 38 AS col0 FROM tab0 AS cor0
----
53

skipif mysql # not compatible
query I rowsort label-9884
SELECT ALL + MIN ( ALL col0 ) - + - 38 AS col0 FROM tab0 AS cor0
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-9885
SELECT + + COUNT( * ) * 61 * + - COUNT( * ) + + COUNT( * ) - ( - 58 ) FROM tab1 AS cor0
----
-488

skipif mysql # not compatible
query I rowsort label-9885
SELECT + + COUNT ( * ) * 61 * + - COUNT ( * ) + + COUNT ( * ) - ( - 58 ) FROM tab1 AS cor0
----
-488

query I rowsort
SELECT + col2 + - + 23 FROM tab2
----
0
17
35

onlyif mysql # aggregate syntax: 
query I rowsort label-9887
SELECT DISTINCT - MAX( 49 ) AS col1 FROM tab0
----
-49

skipif mysql # not compatible
query I rowsort label-9887
SELECT DISTINCT - MAX ( 49 ) AS col1 FROM tab0
----
-49

query III rowsort
SELECT * FROM tab2 WHERE + col1 * - + col1 >= 70
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 23 + + ( + col2 ) * - 24 col1 FROM tab0
----
-1105
-217
-2353

query I rowsort
SELECT ALL - 34 + + 89 - - - ( - ( 89 ) ) FROM tab0
----
144
144
144

onlyif mysql # DIV for integer division: 
query I rowsort label-9891
SELECT ALL - ( + + col2 ) DIV + col0 AS col1 FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9891
SELECT ALL - ( + + col2 ) / + col0 AS col1 FROM tab2 cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9892
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( col2 * - - 85 - + CAST( - col0 AS SIGNED ) IS NOT NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-9892
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( col2 * - - 85 - + CAST ( - col0 AS INTEGER ) IS NOT NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9893
SELECT ALL CAST( + ( - - 60 ) AS SIGNED ) AS col2 FROM tab1 AS cor0
----
60
60
60

skipif mysql # not compatible
query I rowsort label-9893
SELECT ALL CAST ( + ( - - 60 ) AS INTEGER ) AS col2 FROM tab1 AS cor0
----
60
60
60

query II rowsort
SELECT + - col2 AS col0, 29 FROM tab2 AS cor0
----
-23
29
-40
29
-58
29

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE col1 <= NULL
----

query II rowsort
SELECT DISTINCT + + col1 AS col2, + col1 * + - col0 - - col1 + + 58 FROM tab2 AS cor0
----
51
-2237
67
-4900
77
-4793

onlyif mysql # aggregate syntax: 
query II rowsort label-9897
SELECT + 48, COUNT( * ) AS col1 FROM tab1
----
48
3

skipif mysql # not compatible
query II rowsort label-9897
SELECT + 48, COUNT ( * ) AS col1 FROM tab1
----
48
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9898
SELECT col2 AS col0, col2 + col0 - + 51 - - - CAST( + - col1 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
23
69
40
130
58
149

skipif mysql # not compatible
query II rowsort label-9898
SELECT col2 AS col0, col2 + col0 - + 51 - - - CAST ( + - col1 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
23
69
40
130
58
149

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( - 96 ) col1 FROM tab0 AS cor0
----
-96
-96
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + col2 col1, - 67 * - + col2 AS col0 FROM tab2 AS cor0
----
23
1541
40
2680
58
3886

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 * + col0 + - + col0 col0 FROM tab0 AS cor0
----
0
1200
1740

query II rowsort
SELECT ALL 1, + col0 AS col2 FROM tab0 AS cor0
----
1
15
1
87
1
97

query II rowsort
SELECT DISTINCT - 83 AS col1, col2 AS col0 FROM tab2 AS cor0
----
-83
23
-83
40
-83
58

query II rowsort
SELECT + col0 * col0 AS col2, col2 AS col2 FROM tab2 AS cor0
----
2116
23
4096
40
5625
58

query I rowsort
SELECT + + ( - + 96 ) AS col1 FROM tab2 AS cor0
----
-96
-96
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-9906
SELECT - MIN( ALL col0 ) AS col0 FROM tab2 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-9906
SELECT - MIN ( ALL col0 ) AS col0 FROM tab2 AS cor0
----
-46

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9907
SELECT DISTINCT - - 12, - CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
12
NULL

skipif mysql # not compatible
query II rowsort label-9907
SELECT DISTINCT - - 12, - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
12
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9908
SELECT ALL SUM( - col2 ) FROM tab1 AS cor0
----
-223

skipif mysql # not compatible
query I rowsort label-9908
SELECT ALL SUM ( - col2 ) FROM tab1 AS cor0
----
-223

onlyif mysql # aggregate syntax: 
query II rowsort label-9909
SELECT - - COUNT( * ) AS col0, COUNT( * ) FROM tab1 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-9909
SELECT - - COUNT ( * ) AS col0, COUNT ( * ) FROM tab1 AS cor0
----
3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9910
SELECT DISTINCT + COUNT( col2 ) FROM tab2 WHERE - col2 < NULL
----
0

skipif mysql # not compatible
query I rowsort label-9910
SELECT DISTINCT + COUNT ( col2 ) FROM tab2 WHERE - col2 < NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9911
SELECT - ( - + COUNT( 53 ) ) AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-9911
SELECT - ( - + COUNT ( 53 ) ) AS col1 FROM tab2
----
3

onlyif mysql # CAST syntax: DECIMAL type: 
query IIIIII rowsort label-9912
SELECT DISTINCT * FROM tab1, tab1 AS cor0 WHERE + + CAST( NULL AS DECIMAL ) BETWEEN NULL AND 86
----

skipif mysql # not compatible
query IIIIII rowsort label-9912
SELECT DISTINCT * FROM tab1, tab1 AS cor0 WHERE + + CAST ( NULL AS REAL ) BETWEEN NULL AND 86
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9913
SELECT DISTINCT - COUNT( * ) * - + 52 FROM tab0
----
156

skipif mysql # not compatible
query I rowsort label-9913
SELECT DISTINCT - COUNT ( * ) * - + 52 FROM tab0
----
156

query I rowsort
SELECT ALL col2 + + - 91 FROM tab0
----
-44
-81
8

query III rowsort
SELECT * FROM tab2 WHERE ( ( - - col0 IS NULL ) )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN - 78 AND ( - + col1 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN NULL AND col1 / 71 + - + col1
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9918
SELECT ALL + COUNT( DISTINCT - + CAST( - col1 AS SIGNED ) ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9918
SELECT ALL + COUNT ( DISTINCT - + CAST ( - col1 AS INTEGER ) ) AS col1 FROM tab1 AS cor0
----
3

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NULL ) BETWEEN NULL AND + 19
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9920
SELECT COUNT( * ) AS col1, + MIN( ALL - col2 ) AS col2 FROM tab2
----
3
-58

skipif mysql # not compatible
query II rowsort label-9920
SELECT COUNT ( * ) AS col1, + MIN ( ALL - col2 ) AS col2 FROM tab2
----
3
-58

onlyif mysql # aggregate syntax: 
query II rowsort label-9921
SELECT 42, COUNT( * ) + MIN( + + col1 ) * + 1 + ( 98 ) AS col2 FROM tab0
----
42
102

skipif mysql # not compatible
query II rowsort label-9921
SELECT 42, COUNT ( * ) + MIN ( + + col1 ) * + 1 + ( 98 ) AS col2 FROM tab0
----
42
102

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9922
SELECT DISTINCT 56 * + 55 - + CAST( NULL AS DECIMAL ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9922
SELECT DISTINCT 56 * + 55 - + CAST ( NULL AS REAL ) AS col0 FROM tab2 AS cor0
----
NULL

query II rowsort
SELECT ALL + 62, + col0 + - col0 AS col2 FROM tab1 AS cor0
----
62
0
62
0
62
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9924
SELECT ( COUNT( * ) ) * COUNT( - - ( + - 99 ) ) * + COUNT( * ) AS col0, MAX( - col2 ) FROM tab2 AS cor0
----
27
-23

skipif mysql # not compatible
query II rowsort label-9924
SELECT ( COUNT ( * ) ) * COUNT ( - - ( + - 99 ) ) * + COUNT ( * ) AS col0, MAX ( - col2 ) FROM tab2 AS cor0
----
27
-23

query I rowsort
SELECT + + 8 * + + col1 FROM tab0 AS cor0 WHERE + 37 + col2 IS NULL
----

query I rowsort
SELECT ( + 45 ) AS col2 FROM tab0 AS cor0
----
45
45
45

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9927
SELECT ALL + - CAST( NULL AS SIGNED ), + col1 AS col2 FROM tab2 AS cor0
----
NULL
51
NULL
67
NULL
77

skipif mysql # not compatible
query II rowsort label-9927
SELECT ALL + - CAST ( NULL AS INTEGER ), + col1 AS col2 FROM tab2 AS cor0
----
NULL
51
NULL
67
NULL
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 6 - col2 col2 FROM tab1
----
-102
-65
-74

query I rowsort
SELECT ALL - col0 * + col0 AS col1 FROM tab1 WHERE NOT NULL <= NULL
----

query I rowsort
SELECT + col1 - col2 + col1 FROM tab2
----
114
76
79

query I rowsort
SELECT - 72 + + col0 FROM tab2
----
-26
-8
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9932
SELECT MIN( 77 ) * + 34 FROM tab1
----
2618

skipif mysql # not compatible
query I rowsort label-9932
SELECT MIN ( 77 ) * + 34 FROM tab1
----
2618

onlyif mysql # aggregate syntax: 
query II rowsort label-9933
SELECT SUM( DISTINCT + + col0 ) AS col1, 88 + + 86 FROM tab2
----
185
174

skipif mysql # not compatible
query II rowsort label-9933
SELECT SUM ( DISTINCT + + col0 ) AS col1, 88 + + 86 FROM tab2
----
185
174

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col0 / - + col2 * + + ( + col2 ) + ( 82 ) IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT NULL NOT BETWEEN NULL AND - col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 17 col1 FROM tab1 cor0
----
-17
-17
-17

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col1 / + col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - ( col1 ) > + 65 * - + 76 + + - 3 + + - 54 * ( - col2 )
----
97
1
99

onlyif mysql # DIV for integer division: 
query I rowsort label-9939
SELECT ALL col0 DIV - + col1 FROM tab1
----
-1
-17
-3

skipif mysql # not compatible
query I rowsort label-9939
SELECT ALL col0 / - + col1 FROM tab1
----
-1
-17
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9940
SELECT + 88 * + COUNT( * ) * + COUNT( * ) AS col2 FROM tab1 AS cor0
----
792

skipif mysql # not compatible
query I rowsort label-9940
SELECT + 88 * + COUNT ( * ) * + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
792

onlyif mysql # aggregate syntax: 
query I rowsort label-9941
SELECT ALL COUNT( - col1 ) col2 FROM tab0 cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9941
SELECT ALL COUNT ( - col1 ) col2 FROM tab0 cor0
----
3

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9942
SELECT + col2 AS col0 FROM tab0 cor0 WHERE NOT CAST( 94 AS DECIMAL ) IS NULL
----
10
47
99

skipif mysql # not compatible
query I rowsort label-9942
SELECT + col2 AS col0 FROM tab0 cor0 WHERE NOT CAST ( 94 AS REAL ) IS NULL
----
10
47
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 71 col0, col0 FROM tab0 AS cor0
----
71
15
71
87
71
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9944
SELECT + CAST( - 44 AS SIGNED ) + + 61 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
17
17
17

skipif mysql # not compatible
query I rowsort label-9944
SELECT + CAST ( - 44 AS INTEGER ) + + 61 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
17
17
17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9945
SELECT + col1 + 29 + col0 + + 5 * - col1 / + - col2 * + - 30 * - - CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9945
SELECT + col1 + 29 + col0 + + 5 * - col1 / + - col2 * + - 30 * - - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9946
SELECT col2 DIV col0 + + - 75 FROM tab2
----
-75
-75
-75

skipif mysql # not compatible
query I rowsort label-9946
SELECT col2 / col0 + + - 75 FROM tab2
----
-75
-75
-75

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE 70 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9948
SELECT SUM( DISTINCT - col1 ) + 67 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-9948
SELECT SUM ( DISTINCT - col1 ) + 67 FROM tab1
----
1

query I rowsort
SELECT ALL + + col0 AS col2 FROM tab2 AS cor0 WHERE NOT 40 + - + col2 * - 65 BETWEEN NULL AND - 80
----
46
64
75

query I rowsort
SELECT + col2 - - col2 FROM tab0 AS cor0 WHERE ( - 40 ) IS NULL
----

query II rowsort
SELECT ALL - ( - - 18 ) + + col2 + - col0 AS col0, col1 / + - 19 FROM tab1 AS cor0 WHERE NOT col1 IS NOT NULL
----

query II rowsort
SELECT - + col2, + ( col2 ) FROM tab0 AS cor0
----
-10
10
-47
47
-99
99

query II rowsort
SELECT ALL 99 AS col1, 89 + + + col0 * col2 FROM tab0 AS cor0
----
99
794
99
959
99
9692

query III rowsort
SELECT * FROM tab2 WHERE - + col0 <= - + col1 + - 29 + - col2
----

query I rowsort
SELECT + col2 - + col0 * + ( - - col2 ) AS col0 FROM tab1
----
-4800
-4956
-6120

onlyif mysql # aggregate syntax: 
query I rowsort label-9956
SELECT DISTINCT COUNT( * ) * + - 55 AS col2 FROM tab0
----
-165

skipif mysql # not compatible
query I rowsort label-9956
SELECT DISTINCT COUNT ( * ) * + - 55 AS col2 FROM tab0
----
-165

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col1 * 87 - - col2 + - col0 IS NULL
----

query I rowsort
SELECT - col2 + col1 AS col0 FROM tab1 AS cor0 WHERE - 11 + - col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9959
SELECT ALL - + SUM( col1 ) * - - 49 col0 FROM tab0 AS cor0
----
-5047

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9959
SELECT ALL - + SUM ( col1 ) * - - 49 col0 FROM tab0 AS cor0
----
-5047

onlyif mysql # aggregate syntax: 
query I rowsort label-9960
SELECT - MIN( ALL - 35 ) AS col2 FROM tab1
----
35

skipif mysql # not compatible
query I rowsort label-9960
SELECT - MIN ( ALL - 35 ) AS col2 FROM tab1
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-9961
SELECT ALL COUNT( * ) * + - ( - 47 ) AS col1 FROM tab0
----
141

skipif mysql # not compatible
query I rowsort label-9961
SELECT ALL COUNT ( * ) * + - ( - 47 ) AS col1 FROM tab0
----
141

onlyif mysql # DIV for integer division: 
query I rowsort label-9962
SELECT DISTINCT - col1 * 81 DIV - col0 FROM tab2
----
72
89
97

skipif mysql # not compatible
query I rowsort label-9962
SELECT DISTINCT - col1 * 81 / - col0 FROM tab2
----
72
89
97

onlyif mysql # aggregate syntax: 
query I rowsort label-9963
SELECT 7 * - COUNT( * ) AS col2 FROM tab2
----
-21

skipif mysql # not compatible
query I rowsort label-9963
SELECT 7 * - COUNT ( * ) AS col2 FROM tab2
----
-21

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 51 * 81 col1 FROM tab1
----
-4131
-4131
-4131

query II rowsort
SELECT DISTINCT + 81, + 62 AS col0 FROM tab0
----
81
62

query I rowsort
SELECT ALL col0 * - - col2 FROM tab2 AS cor0
----
1058
2560
4350

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9968
SELECT DISTINCT ( CAST( NULL AS SIGNED ) ) AS col2 FROM tab1 WHERE NOT ( NULL ) BETWEEN - col0 * - 89 AND NULL
----

skipif mysql # not compatible
query I rowsort label-9968
SELECT DISTINCT ( CAST ( NULL AS INTEGER ) ) AS col2 FROM tab1 WHERE NOT ( NULL ) BETWEEN - col0 * - 89 AND NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT - col1 * col2 BETWEEN - col2 AND 32
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 WHERE + 78 IN ( + col2 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL NOT IN ( + 41 + + col1 )
----

query I rowsort
SELECT DISTINCT 55 + 14 FROM tab2 WHERE NOT col1 IS NOT NULL
----

query I rowsort
SELECT ALL + 63 * ( + col0 ) AS col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
3213
5355
5733

query I rowsort
SELECT 30 - col1 FROM tab0
----
-51
29
9

query I rowsort
SELECT col1 FROM tab0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL - 60 + col2 AS col1 FROM tab1
----
-1
36
8

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + col1 NOT IN ( + col2 - col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9978
SELECT + COUNT( ALL - col0 ) AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-9978
SELECT + COUNT ( ALL - col0 ) AS col0 FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9979
SELECT + MAX( ALL - col2 ) FROM tab0
----
-10

skipif mysql # not compatible
query I rowsort label-9979
SELECT + MAX ( ALL - col2 ) FROM tab0
----
-10

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9980
SELECT * FROM tab1 WHERE CAST( col0 AS SIGNED ) <> + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-9980
SELECT * FROM tab1 WHERE CAST ( col0 AS INTEGER ) <> + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9981
SELECT DISTINCT * FROM tab0 WHERE NOT ( NULL ) = ( + 13 * ( col1 * 57 ) + CAST( - col2 + - col0 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-9981
SELECT DISTINCT * FROM tab0 WHERE NOT ( NULL ) = ( + 13 * ( col1 * 57 ) + CAST ( - col2 + - col0 AS INTEGER ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( + col2 ) col0 FROM tab1
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-9983
SELECT - 51 + COUNT( * ) FROM tab2
----
-48

skipif mysql # not compatible
query I rowsort label-9983
SELECT - 51 + COUNT ( * ) FROM tab2
----
-48

query I rowsort
SELECT ALL ( - col1 ) * - col1 FROM tab2
----
2601
4489
5929

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 18 - 95 * + col1 col1 FROM tab1
----
-1312
-4447
-457

query I rowsort
SELECT - col0 + - 0 FROM tab1 AS cor0
----
-51
-85
-91

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + 34 * col2 IN ( - col1 * 80 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN ( col1 ) AND NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( - col0 + - col2 ) = ( col1 )
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 34 + col1 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + ( 72 ) AS col0 FROM tab0 AS cor0
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-9992
SELECT DISTINCT COUNT( col0 ) + 89 AS col0 FROM tab1 AS cor0 WHERE NOT col1 + + col1 * - 24 IS NOT NULL
----
89

skipif mysql # not compatible
query I rowsort label-9992
SELECT DISTINCT COUNT ( col0 ) + 89 AS col0 FROM tab1 AS cor0 WHERE NOT col1 + + col1 * - 24 IS NOT NULL
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-9993
SELECT - COUNT( * ) FROM tab2 WHERE col0 NOT IN ( col2 + - col1 )
----
-3

skipif mysql # not compatible
query I rowsort label-9993
SELECT - COUNT ( * ) FROM tab2 WHERE col0 NOT IN ( col2 + - col1 )
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9994
SELECT + COUNT( * ) * - COUNT( col2 ) FROM tab2
----
-9

skipif mysql # not compatible
query I rowsort label-9994
SELECT + COUNT ( * ) * - COUNT ( col2 ) FROM tab2
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-9995
SELECT - MAX( 18 ) FROM tab2
----
-18

skipif mysql # not compatible
query I rowsort label-9995
SELECT - MAX ( 18 ) FROM tab2
----
-18

query I rowsort
SELECT - col2 * 48 AS col2 FROM tab0
----
-2256
-4752
-480

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9997
SELECT DISTINCT + COUNT( * ) - - COUNT( * ) DIV + 33 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-9997
SELECT DISTINCT + COUNT ( * ) - - COUNT ( * ) / + 33 FROM tab2
----
3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col1 <= ( NULL )
----

query I rowsort
SELECT col1 - 17 FROM tab0 AS cor0
----
-16
4
64

