sqllogictest
Artifact Content
Not logged in

Artifact 63a0f5358891c0ce3630d876bf1eaa389512dfd9:


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 ro