sqllogictest
Artifact Content
Not logged in

Artifact 0eca1202dc9a7a611bbf64ebac17946e44d56835:


hash-threshold 8

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

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

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

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

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

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

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

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

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

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

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

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

query I rowsort
SELECT - 76 AS col0 FROM tab1 WHERE + - col0 < col1
----
-76
-76
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-1
SELECT ALL SUM( - - 52 ) AS col2 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
468

skipif mysql # not compatible
query I rowsort label-1
SELECT ALL SUM ( - - 52 ) AS col2 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
468

onlyif mysql # DIV for integer division: 
query I rowsort label-2
SELECT ALL + 74 * col1 DIV + col1 + - col1 FROM tab1 cor0
----
27
60
69

skipif mysql # not compatible
query I rowsort label-2
SELECT ALL + 74 * col1 / + col1 + - col1 FROM tab1 cor0
----
27
60
69

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3
SELECT * FROM tab1 cor0 WHERE ( - ( col0 ) - CAST( NULL AS SIGNED ) ) NOT BETWEEN ( NULL ) AND col2 * 52
----

skipif mysql # not compatible
query III rowsort label-3
SELECT * FROM tab1 cor0 WHERE ( - ( col0 ) - CAST ( NULL AS INTEGER ) ) NOT BETWEEN ( NULL ) AND col2 * 52
----

query II rowsort
SELECT col0, 52 * col1 AS col2 FROM tab0 AS cor0 WHERE - 29 IS NOT NULL
----
15
4212
87
1092
97
52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5
SELECT DISTINCT + + col1 * + 95 + - CAST( col2 AS SIGNED ) FROM tab0 AS cor0
----
-4
1985
7648

skipif mysql # not compatible
query I rowsort label-5
SELECT DISTINCT + + col1 * + 95 + - CAST ( col2 AS INTEGER ) FROM tab0 AS cor0
----
-4
1985
7648

query I rowsort
SELECT DISTINCT col1 - + + col2 - + col2 * - col2 FROM tab0 AS cor0
----
111
2243
9703

query I rowsort
SELECT DISTINCT - 36 + col2 AS col2 FROM tab1 cor0
----
23
32
60

query I rowsort
SELECT DISTINCT 23 + + + 37 + - + col2 FROM tab0 AS cor0
----
-39
13
50

query I rowsort
SELECT - col0 - 20 AS col2 FROM tab2 cor0
----
-66
-84
-95

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-10
SELECT + COUNT( * ) - - 85 + + 45 DIV SUM( DISTINCT + 43 ) FROM tab1 AS cor0
----
89

skipif mysql # not compatible
query I rowsort label-10
SELECT + COUNT ( * ) - - 85 + + 45 / SUM ( DISTINCT + 43 ) FROM tab1 AS cor0
----
89

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

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

query I rowsort
SELECT DISTINCT + col2 * - 30 + + - col0 FROM tab2
----
-1264
-1815
-736

onlyif mysql # aggregate syntax: 
query I rowsort label-13
SELECT ALL + COUNT( * ) * + - MAX( + + ( - col0 ) ) + 38 FROM tab1
----
191

skipif mysql # not compatible
query I rowsort label-13
SELECT ALL + COUNT ( * ) * + - MAX ( + + ( - col0 ) ) + 38 FROM tab1
----
191

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-14
SELECT DISTINCT col0 + + CAST( NULL AS DECIMAL ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-14
SELECT DISTINCT col0 + + CAST ( NULL AS REAL ) FROM tab2
----
NULL

query I rowsort
SELECT ALL col1 FROM tab1 WHERE - col2 * + - 23 NOT BETWEEN NULL AND NULL AND NULL BETWEEN col0 * + col1 AND - - 47
----

query I rowsort
SELECT DISTINCT - col0 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
-15
-87
-97

query I rowsort
SELECT DISTINCT + 91 * col0 - - 49 FROM tab1 AS cor0
----
4690
7784
8330

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-19
SELECT DISTINCT ( 7 ) DIV - + col0 AS col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-19
SELECT DISTINCT ( 7 ) / - + col0 AS col0 FROM tab0 AS cor0
----
0

query I rowsort
SELECT - col0 * + + col1 * + + col2 AS col1 FROM tab2 AS cor0
----
-197120
-291450
-53958

onlyif mysql # aggregate syntax: 
query I rowsort label-21
SELECT - COUNT( * ) + MAX( DISTINCT col0 ) FROM tab1 AS cor0 WHERE NOT 8 IS NULL
----
88

skipif mysql # not compatible
query I rowsort label-21
SELECT - COUNT ( * ) + MAX ( DISTINCT col0 ) FROM tab1 AS cor0 WHERE NOT 8 IS NULL
----
88

query I rowsort
SELECT + 4 AS col2 FROM tab1 cor0
----
4
4
4

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-24
SELECT ALL - + ( col1 ) FROM tab2 AS cor0 WHERE - CAST( NULL AS DECIMAL ) + col2 <= NULL
----

skipif mysql # not compatible
query I rowsort label-24
SELECT ALL - + ( col1 ) FROM tab2 AS cor0 WHERE - CAST ( NULL AS REAL ) + col2 <= NULL
----

query I rowsort
SELECT DISTINCT ( 92 ) FROM tab0
----
92

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col1 <> - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 WHERE - 98 + - col0 * + - col2 + - 59 >= - 91 + - 16
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

query I rowsort
SELECT + ( - col1 ) + - + 12 AS col2 FROM tab2
----
-63
-79
-89

query I rowsort
SELECT - 75 + 88 FROM tab2 AS cor0
----
13
13
13

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-32
SELECT ALL + CAST( - + col1 AS SIGNED ) DIV ( + col1 ) + + col0 - + 96 AS col2 FROM tab0
----
-10
-82
0

skipif mysql # not compatible
query I rowsort label-32
SELECT ALL + CAST ( - + col1 AS INTEGER ) / ( + col1 ) + + col0 - + 96 AS col2 FROM tab0
----
-10
-82
0

onlyif mysql # aggregate syntax: 
query I rowsort label-33
SELECT - SUM( + + 29 ) - - 88 + - 65 FROM tab1
----
-64

skipif mysql # not compatible
query I rowsort label-33
SELECT - SUM ( + + 29 ) - - 88 + - 65 FROM tab1
----
-64

query I rowsort
SELECT - col2 + 30 AS col1 FROM tab2 AS cor0
----
-10
-28
7

query I rowsort
SELECT - 62 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-36
SELECT + - 83 * - 11 + + - 91 DIV + - COUNT( * ) FROM tab2 AS cor0
----
943

skipif mysql # not compatible
query I rowsort label-36
SELECT + - 83 * - 11 + + - 91 / + - COUNT ( * ) FROM tab2 AS cor0
----
943

query I rowsort
SELECT - col1 + ( + + 59 ) FROM tab1 cor0
----
12
45
54

query I rowsort
SELECT 71 * + col2 AS col2 FROM tab2
----
1633
2840
4118

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL BETWEEN - + col0 / - - col1 AND col0 + 44
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-40
SELECT DISTINCT - 77 AS col0, 37 FROM tab0 WHERE NOT - 8 + col2 / + ( - + CAST( + col2 AS SIGNED ) ) IS NULL
----
-77
37

skipif mysql # not compatible
query II rowsort label-40
SELECT DISTINCT - 77 AS col0, 37 FROM tab0 WHERE NOT - 8 + col2 / + ( - + CAST ( + col2 AS INTEGER ) ) IS NULL
----
-77
37

onlyif mysql # aggregate syntax: 
query I rowsort label-41
SELECT DISTINCT - 60 * - + COUNT( * ) col0 FROM tab2
----
180

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-41
SELECT DISTINCT - 60 * - + COUNT ( * ) col0 FROM tab2
----
180

query I rowsort
SELECT 12 * + + col2 AS col0 FROM tab2
----
276
480
696

query II rowsort
SELECT ALL ( + - 24 ) * - 61, ( + ( + col0 ) ) AS col1 FROM tab0
----
1464
15
1464
87
1464
97

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

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

query I rowsort
SELECT ALL col2 AS col0 FROM tab2 WHERE NOT + - 88 IS NULL
----
23
40
58

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

skipif mysql # not compatible
query I rowsort label-46
SELECT COUNT ( ALL col0 ) FROM tab2
----
3

query II rowsort
SELECT DISTINCT - col2 * + 59 * + 70, + col1 AS col2 FROM tab2
----
-165200
77
-239540
67
-94990
51

onlyif mysql # aggregate syntax: 
query I rowsort label-48
SELECT ALL + 66 + COUNT( * ) FROM tab1 WHERE + - 88 * + col1 <> + + col2 * + + col0 * + + ( col2 )
----
69

skipif mysql # not compatible
query I rowsort label-48
SELECT ALL + 66 + COUNT ( * ) FROM tab1 WHERE + - 88 * + col1 <> + + col2 * + + col0 * + + ( col2 )
----
69

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

query II rowsort
SELECT ALL - col2 AS col2, col2 FROM tab2 AS cor0
----
-23
23
-40
40
-58
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 33, 54 col2 FROM tab0 AS cor0
----
-33
54
-33
54
-33
54

onlyif mysql # aggregate syntax: 
query I rowsort label-52
SELECT 6 * - - SUM( - 8 ) AS col1 FROM tab0
----
-144

skipif mysql # not compatible
query I rowsort label-52
SELECT 6 * - - SUM ( - 8 ) AS col1 FROM tab0
----
-144

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-53
SELECT DISTINCT + COUNT ( * ) / - 23 col0 FROM tab2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-54
SELECT ALL - col1 DIV ( - 52 ) FROM tab2 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-54
SELECT ALL - col1 / ( - 52 ) FROM tab2 AS cor0
----
0
1
1

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

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

query I rowsort
SELECT + 88 FROM tab2 WHERE NULL BETWEEN + col0 AND NULL
----

query II rowsort
SELECT 16 AS col2, + col2 AS col2 FROM tab2
----
16
23
16
40
16
58

query I rowsort
SELECT DISTINCT - 66 + - 38 FROM tab0
----
-104

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

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

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

query I rowsort
SELECT ALL + col2 * - 97 + col0 AS col2 FROM tab1
----
-5638
-6505
-9261

query I rowsort
SELECT DISTINCT - col1 FROM tab2 AS cor0 WHERE NOT col1 * + 71 IS NULL
----
-51
-67
-77

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 77 col0, - 64 AS col2 FROM tab1 AS cor0
----
77
-64
77
-64
77
-64

query I rowsort
SELECT DISTINCT + col1 + + - col2 AS col0 FROM tab2 cor0
----
28
37
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-68
SELECT - 44 + col2 * CAST( - 62 AS SIGNED ) * col2 + + 95 * - + 0 FROM tab2 AS cor0
----
-208612
-32842
-99244

skipif mysql # not compatible
query I rowsort label-68
SELECT - 44 + col2 * CAST ( - 62 AS INTEGER ) * col2 + + 95 * - + 0 FROM tab2 AS cor0
----
-208612
-32842
-99244

query I rowsort
SELECT - col1 + - 53 + 29 + - - col0 FROM tab1 AS cor0
----
13
20
56

query II rowsort
SELECT DISTINCT col1 + - col1 AS col1, + 55 AS col1 FROM tab2
----
0
55

onlyif mysql # CAST syntax: DECIMAL type: 
query IIIIII rowsort label-71
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE - ( + CAST( NULL AS DECIMAL ) ) IS NOT NULL
----

skipif mysql # not compatible
query IIIIII rowsort label-71
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE - ( + CAST ( NULL AS REAL ) ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE + 75 / + + col2 IS NULL
----

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

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-77
SELECT - col2 DIV - CAST( - + 60 AS SIGNED ) FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-77
SELECT - col2 / - CAST ( - + 60 AS INTEGER ) FROM tab2 cor0
----
0
0
0

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 96 * 20 col2 FROM tab0 AS cor0
----
1920
1920
1920

query II rowsort
SELECT + col0 * + - col1 AS col1, 3 FROM tab2
----
-2346
3
-4928
3
-5025
3

query III rowsort
SELECT * FROM tab0 WHERE NOT 76 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-82
SELECT ALL - ( + - col2 ) * + - CAST( - + 85 AS SIGNED ) AS col1 FROM tab0
----
3995
8415
850

skipif mysql # not compatible
query I rowsort label-82
SELECT ALL - ( + - col2 ) * + - CAST ( - + 85 AS INTEGER ) AS col1 FROM tab0
----
3995
8415
850

onlyif mysql # aggregate syntax: 
query II rowsort label-83
SELECT ALL + + 1, COUNT( * ) AS col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
1
3

skipif mysql # not compatible
query II rowsort label-83
SELECT ALL + + 1, COUNT ( * ) AS col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
1
3

onlyif mysql # aggregate syntax: 
query I rowsort label-84
SELECT DISTINCT + 6 * + COUNT( * ) col1 FROM tab1
----
18

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-84
SELECT DISTINCT + 6 * + COUNT ( * ) col1 FROM tab1
----
18

onlyif mysql # DIV for integer division: 
query I rowsort label-85
SELECT DISTINCT - col0 * - 98 + - col1 DIV - col2 FROM tab2 WHERE NOT + - col1 IS NULL
----
4510
6273
7351

skipif mysql # not compatible
query I rowsort label-85
SELECT DISTINCT - col0 * - 98 + - col1 / - col2 FROM tab2 WHERE NOT + - col1 IS NULL
----
4510
6273
7351

onlyif mysql # aggregate syntax: 
query I rowsort label-86
SELECT ( - SUM( col1 ) ) AS col1 FROM tab1
----
-66

skipif mysql # not compatible
query I rowsort label-86
SELECT ( - SUM ( col1 ) ) AS col1 FROM tab1
----
-66

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-88
SELECT DISTINCT - CAST( NULL AS SIGNED ) * + col2 FROM tab1 AS cor0 WHERE col1 BETWEEN col2 + + col0 AND 14
----

skipif mysql # not compatible
query I rowsort label-88
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + col2 FROM tab1 AS cor0 WHERE col1 BETWEEN col2 + + col0 AND 14
----

query I rowsort
SELECT + + 38 * - - 85 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 37a8aaa6f2d8d3a0c4b2c687c1d12b33

onlyif mysql # DIV for integer division: 
query I rowsort label-90
SELECT DISTINCT 57 * col2 DIV - - 14 FROM tab2
----
162
236
93

skipif mysql # not compatible
query I rowsort label-90
SELECT DISTINCT 57 * col2 / - - 14 FROM tab2
----
162
236
93

query I rowsort
SELECT ALL + 10 + - - col2 FROM tab0
----
109
20
57

onlyif mysql # aggregate syntax: 
query I rowsort label-92
SELECT + 71 * - COUNT( * ) AS col1 FROM tab2 AS cor0
----
-213

skipif mysql # not compatible
query I rowsort label-92
SELECT + 71 * - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-213

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

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

query II rowsort
SELECT col1 AS col2, + ( - + 38 ) FROM tab2 AS cor0
----
51
-38
67
-38
77
-38

query II rowsort
SELECT - 55 AS col0, 20 + 19 + + col1 FROM tab1 AS cor0
----
-55
44
-55
53
-55
86

query II rowsort
SELECT ALL + - col1 AS col0, - ( - + 58 ) * + - 58 AS col2 FROM tab1 AS cor0
----
-14
-3364
-47
-3364
-5
-3364

onlyif mysql # aggregate syntax: 
query I rowsort label-97
SELECT DISTINCT + COUNT( * ) + - 9 AS col0 FROM tab2 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-97
SELECT DISTINCT + COUNT ( * ) + - 9 AS col0 FROM tab2 AS cor0
----
-6

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 82 - col0 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-99
SELECT ALL 65 * + - 13 + + - MIN( ALL - 95 ) AS col1 FROM tab0
----
-750

skipif mysql # not compatible
query I rowsort label-99
SELECT ALL 65 * + - 13 + + - MIN ( ALL - 95 ) AS col1 FROM tab0
----
-750

query III rowsort
SELECT * FROM tab0 WHERE col2 IN ( + ( - 63 ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + 39 + + 78 col2 FROM tab2 AS cor0
----
1638
2340
975

onlyif mysql # aggregate syntax: 
query I rowsort label-102
SELECT ALL COUNT( * ) * - COUNT( * ) AS col1 FROM tab2, tab1 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-102
SELECT ALL COUNT ( * ) * - COUNT ( * ) AS col1 FROM tab2, tab1 AS cor0
----
-81

query I rowsort
SELECT ALL - 47 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 6942a0d9558277afd0d00408d65cf5aa

query I rowsort
SELECT DISTINCT 62 * + 99 AS col2 FROM tab1 AS cor0
----
6138

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-107
SELECT 85 FROM tab1 AS cor0 WHERE NOT - 34 BETWEEN + + col0 AND CAST( - + col2 AS SIGNED )
----
85
85
85

skipif mysql # not compatible
query I rowsort label-107
SELECT 85 FROM tab1 AS cor0 WHERE NOT - 34 BETWEEN + + col0 AND CAST ( - + col2 AS INTEGER )
----
85
85
85

query I rowsort
SELECT ALL - ( + 33 ) AS col0 FROM tab2 AS cor0
----
-33
-33
-33

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 83 <> - 74
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-111
SELECT ALL - - 90 * + SUM( + - 64 ) AS col1 FROM tab1 AS cor0
----
-17280

skipif mysql # not compatible
query I rowsort label-111
SELECT ALL - - 90 * + SUM ( + - 64 ) AS col1 FROM tab1 AS cor0
----
-17280

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-112
SELECT ALL - CAST( NULL AS DECIMAL ) * + - ( - 63 ) * 15 col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-112
SELECT ALL - CAST ( NULL AS REAL ) * + - ( - 63 ) * 15 col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT + 20 * - + 13 FROM tab2
----
-260
-260
-260

query II rowsort
SELECT ALL + col2, + ( + + col2 ) * - + col0 * + - 39 FROM tab2
----
23
41262
40
99840
58
169650

query II rowsort
SELECT DISTINCT + ( 17 ), + col1 / 98 FROM tab1 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + + 33 / + 61 IS NOT NULL
----

query II rowsort
SELECT + col0 * 88, 80 AS col1 FROM tab1
----
4488
80
7480
80
8008
80

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - ( + col2 ) * - 70 * - + col1 > + 21 * - ( col0 )
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-120
SELECT DISTINCT 83 * COUNT( * ) + - 25 FROM tab0 cor0
----
224

skipif mysql # not compatible
query I rowsort label-120
SELECT DISTINCT 83 * COUNT ( * ) + - 25 FROM tab0 cor0
----
224

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + 85 IS NULL
----

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

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

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

query II rowsort
SELECT + col2, - 16 AS col1 FROM tab0 AS cor0
----
10
-16
47
-16
99
-16

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-126
SELECT 59 AS col2 FROM tab2 cor0 WHERE + CAST( NULL AS SIGNED ) <> - col2
----

skipif mysql # not compatible
query I rowsort label-126
SELECT 59 AS col2 FROM tab2 cor0 WHERE + CAST ( NULL AS INTEGER ) <> - col2
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL <= + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-128
SELECT + - COUNT( * ) * + COUNT( * ) - - 35 AS col1 FROM tab0 AS cor0
----
26

skipif mysql # not compatible
query I rowsort label-128
SELECT + - COUNT ( * ) * + COUNT ( * ) - - 35 AS col1 FROM tab0 AS cor0
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-129
SELECT ALL - + 46 + MIN( + col2 ) AS col1 FROM tab0 AS cor0
----
-36

skipif mysql # not compatible
query I rowsort label-129
SELECT ALL - + 46 + MIN ( + col2 ) AS col1 FROM tab0 AS cor0
----
-36

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

query I rowsort
SELECT ALL col1 + - - 23 AS col2 FROM tab1
----
28
37
70

query III rowsort
SELECT * FROM tab1 WHERE 63 >= - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-133
SELECT DISTINCT COUNT( * ) AS col0 FROM tab2 WHERE NULL BETWEEN + ( + - 4 ) AND - + 76 * + - ( + ( col1 ) )
----
0

skipif mysql # not compatible
query I rowsort label-133
SELECT DISTINCT COUNT ( * ) AS col0 FROM tab2 WHERE NULL BETWEEN + ( + - 4 ) AND - + 76 * + - ( + ( col1 ) )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-134
SELECT ALL - col0 DIV col1 AS col2 FROM tab1 cor0
----
-1
-17
-3

skipif mysql # not compatible
query I rowsort label-134
SELECT ALL - col0 / col1 AS col2 FROM tab1 cor0
----
-1
-17
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-135
SELECT COUNT( ALL + ( 6 ) ) + + SUM( DISTINCT - - col0 ) FROM tab1 AS cor0
----
230

skipif mysql # not compatible
query I rowsort label-135
SELECT COUNT ( ALL + ( 6 ) ) + + SUM ( DISTINCT - - col0 ) FROM tab1 AS cor0
----
230

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-138
SELECT - + 83 DIV 98 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-138
SELECT - + 83 / 98 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-139
SELECT CAST( NULL AS SIGNED ) + ( + SUM( CAST( NULL AS SIGNED ) ) + + SUM( ALL col0 ) ) AS col1 FROM tab1 WHERE NOT ( + 68 ) > 14 * col0
----
NULL

skipif mysql # not compatible
query I rowsort label-139
SELECT CAST ( NULL AS INTEGER ) + ( + SUM ( CAST ( NULL AS INTEGER ) ) + + SUM ( ALL col0 ) ) AS col1 FROM tab1 WHERE NOT ( + 68 ) > 14 * col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-140
SELECT ALL + col2 DIV - 25 AS col0 FROM tab2 WHERE NOT - 69 IS NULL
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-140
SELECT ALL + col2 / - 25 AS col0 FROM tab2 WHERE NOT - 69 IS NULL
----
-1
-2
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-143
SELECT - SUM( col0 ) FROM tab0
----
-199

skipif mysql # not compatible
query I rowsort label-143
SELECT - SUM ( col0 ) FROM tab0
----
-199

query I rowsort
SELECT ( col2 ) * col1 + - 15 AS col1 FROM tab2
----
1158
3065
3871

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-145
SELECT - 44 + - COUNT( * ) DIV - MIN( DISTINCT 64 ) AS col1 FROM tab1
----
-44

skipif mysql # not compatible
query I rowsort label-145
SELECT - 44 + - COUNT ( * ) / - MIN ( DISTINCT 64 ) AS col1 FROM tab1
----
-44

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

onlyif mysql # aggregate syntax: 
query I rowsort label-147
SELECT - 95 * - MAX( ALL - ( 31 ) * 22 ) FROM tab0 WHERE + 57 / - col2 = + col0
----
NULL

skipif mysql # not compatible
query I rowsort label-147
SELECT - 95 * - MAX ( ALL - ( 31 ) * 22 ) FROM tab0 WHERE + 57 / - col2 = + col0
----
NULL

query I rowsort
SELECT ALL + col1 + 41 FROM tab1
----
46
55
88

query III rowsort
SELECT * FROM tab0 WHERE NOT 11 BETWEEN NULL AND + col1
----
97
1
99

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-152
SELECT - COUNT( * ) FROM tab1 WHERE - 63 BETWEEN + 25 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-152
SELECT - COUNT ( * ) FROM tab1 WHERE - 63 BETWEEN + 25 AND NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-153
SELECT ALL - MIN( + 59 ) AS col0 FROM tab2
----
-59

skipif mysql # not compatible
query I rowsort label-153
SELECT ALL - MIN ( + 59 ) AS col0 FROM tab2
----
-59

query I rowsort
SELECT DISTINCT col2 * col2 FROM tab0 WHERE NOT col2 + 11 IN ( col2 + + col0 )
----
100
2209
9801

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

skipif mysql # not compatible
query I rowsort label-155
SELECT DISTINCT - COUNT ( * ) FROM tab0 WHERE NOT ( + col2 ) < + col1 - col1
----
-3

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

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

query I rowsort
SELECT - col0 / ( col1 ) AS col0 FROM tab1 WHERE ( - col0 ) IS NULL
----

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

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

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

query I rowsort
SELECT - col0 FROM tab1 WHERE + 26 < col1 / col0
----

query I rowsort
SELECT 22 + 90 FROM tab2 AS cor0
----
112
112
112

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-163
SELECT DISTINCT col1 * 78 + + col2 * - CAST( - col1 AS SIGNED ) FROM tab1 AS cor0
----
2436
685
6862

skipif mysql # not compatible
query I rowsort label-163
SELECT DISTINCT col1 * 78 + + col2 * - CAST ( - col1 AS INTEGER ) FROM tab1 AS cor0
----
2436
685
6862

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-164
SELECT ALL + 27 + ( CAST( + col1 AS SIGNED ) ) AS col0 FROM tab0 AS cor0
----
108
28
48

skipif mysql # not compatible
query I rowsort label-164
SELECT ALL + 27 + ( CAST ( + col1 AS INTEGER ) ) AS col0 FROM tab0 AS cor0
----
108
28
48

query I rowsort
SELECT ALL + 64 FROM tab2 AS cor0 CROSS JOIN tab1
----
9 values hashing to 60ab040e931c5c85db7ba19364eacc8e

query III rowsort
SELECT * FROM tab0 WHERE 2 * col1 < + col0 + col1
----
87
21
10
97
1
99

onlyif mysql # aggregate syntax: 
query I rowsort label-167
SELECT + - 87 * + COUNT( * ) FROM tab1 AS cor0
----
-261

skipif mysql # not compatible
query I rowsort label-167
SELECT + - 87 * + COUNT ( * ) FROM tab1 AS cor0
----
-261

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-168
SELECT + 28 DIV - COUNT( DISTINCT ( col0 ) ) FROM tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-168
SELECT + 28 / - COUNT ( DISTINCT ( col0 ) ) FROM tab2 AS cor0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-169
SELECT DISTINCT - 98 * + COUNT( * ) FROM tab1 AS cor0
----
-294

skipif mysql # not compatible
query I rowsort label-169
SELECT DISTINCT - 98 * + COUNT ( * ) FROM tab1 AS cor0
----
-294

query I rowsort
SELECT ALL + col2 * + 90 AS col2 FROM tab0 AS cor0
----
4230
8910
900

query I rowsort
SELECT ALL - 48 * + ( col2 ) FROM tab1 AS cor0
----
-2832
-3264
-4608

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

query I rowsort
SELECT DISTINCT - - col1 + + 85 * 2 AS col1 FROM tab0 AS cor0
----
171
191
251

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - col2 + - 53 col1 FROM tab1 AS cor0
----
-3534
-4677
-9269

query I rowsort
SELECT DISTINCT + + col1 * - 65 AS col0 FROM tab1 AS cor0
----
-3055
-325
-910

query I rowsort
SELECT DISTINCT ( 86 ) * - col0 FROM tab0 AS cor0
----
-1290
-7482
-8342

query I rowsort
SELECT + 50 * col2 AS col2 FROM tab1 AS cor0 WHERE ( NULL ) NOT IN ( 87 + col1 )
----

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - ( 86 ) IS NULL
----

query I rowsort
SELECT DISTINCT - 48 AS col1 FROM tab1 cor0
----
-48

query I rowsort
SELECT ALL - col0 + - - col0 FROM tab1
----
0
0
0

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

query I rowsort
SELECT ALL col0 + - - col2 AS col0 FROM tab0
----
196
62
97

query III rowsort
SELECT * FROM tab0 WHERE ( col2 ) >= ( - 23 * + col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 46 + col1 + - 92 FROM tab0
----
-25
-45
35

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-186
SELECT DISTINCT col1 / - CAST( NULL AS SIGNED ) + - CAST( NULL AS DECIMAL ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-186
SELECT DISTINCT col1 / - CAST ( NULL AS INTEGER ) + - CAST ( NULL AS REAL ) FROM tab2
----
NULL

query I rowsort
SELECT ALL + col0 + + 55 AS col2 FROM tab1
----
106
140
146

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 - - - col1 col2 FROM tab0
----
-11
-34
98

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col0 / + col0 + - col2 * - col1 <> 13
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-190
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + 97 NOT IN ( CAST( col2 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-190
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + 97 NOT IN ( CAST ( col2 AS INTEGER ) )
----

query I rowsort
SELECT - 47 * col1 FROM tab1 AS cor0
----
-2209
-235
-658

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

skipif mysql # not compatible
query I rowsort label-192
SELECT DISTINCT - col0 - + - ( - CAST ( NULL AS INTEGER ) ) - - 38 FROM tab1 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-193
SELECT ALL 71 DIV - 70 AS col0 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-193
SELECT ALL 71 / - 70 AS col0 FROM tab1 AS cor0
----
-1
-1
-1

query I rowsort
SELECT DISTINCT - 6 AS col2 FROM tab2 cor0
----
-6

query I rowsort
SELECT DISTINCT 23 FROM tab2 AS cor0 WHERE NOT 84 * col1 IS NULL
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-196
SELECT SUM( 35 ) AS col0 FROM tab0
----
105

skipif mysql # not compatible
query I rowsort label-196
SELECT SUM ( 35 ) AS col0 FROM tab0
----
105

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * + - 38 col2 FROM tab0
----
-3078
-38
-798

query II rowsort
SELECT col1, + 48 FROM tab0
----
1
48
21
48
81
48

query I rowsort
SELECT ALL + 99 * col1 AS col1 FROM tab0
----
2079
8019
99

onlyif mysql # aggregate syntax: 
query I rowsort label-200
SELECT COUNT( * ) * + - COUNT( DISTINCT + col2 ) FROM tab2
----
-9

skipif mysql # not compatible
query I rowsort label-200
SELECT COUNT ( * ) * + - COUNT ( DISTINCT + col2 ) FROM tab2
----
-9

query I rowsort
SELECT DISTINCT col1 * + ( - 43 ) AS col0 FROM tab2
----
-2193
-2881
-3311

onlyif mysql # aggregate syntax: 
query I rowsort label-202
SELECT - 19 * + SUM( ALL 5 ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE + 37 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-202
SELECT - 19 * + SUM ( ALL 5 ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE + 37 IS NULL
----
NULL

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * - - 43 col1 FROM tab2
----
1978
2752
3225

onlyif mysql # DIV for integer division: 
query I rowsort label-205
SELECT DISTINCT ( col2 ) DIV + col0 FROM tab0 AS cor0
----
0
1
3

skipif mysql # not compatible
query I rowsort label-205
SELECT DISTINCT ( col2 ) / + col0 FROM tab0 AS cor0
----
0
1
3

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-208
SELECT ALL MAX( DISTINCT ( + col1 ) ) FROM tab1 AS cor0 WHERE ( 5 * - col2 ) NOT BETWEEN 24 AND NULL
----
47

skipif mysql # not compatible
query I rowsort label-208
SELECT ALL MAX ( DISTINCT ( + col1 ) ) FROM tab1 AS cor0 WHERE ( 5 * - col2 ) NOT BETWEEN 24 AND NULL
----
47

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-212
SELECT - - COUNT( * ) col2 FROM tab0 WHERE NOT NULL <> + col0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-212
SELECT - - COUNT ( * ) col2 FROM tab0 WHERE NOT NULL <> + col0
----
0

query I rowsort
SELECT DISTINCT col1 + + 38 AS col1 FROM tab2 WHERE NOT - 68 > + col0
----
105
115
89

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

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

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

query II rowsort
SELECT col1 * - col2 AS col0, col0 AS col2 FROM tab0
----
-210
87
-3807
15
-99
97

onlyif mysql # aggregate syntax: 
query I rowsort label-217
SELECT COUNT( * ) * - COUNT( * ) AS col1 FROM tab2
----
-9

skipif mysql # not compatible
query I rowsort label-217
SELECT COUNT ( * ) * - COUNT ( * ) AS col1 FROM tab2
----
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * col1 col2 FROM tab2 WHERE NOT NULL > + 42 + - + 96
----

onlyif mysql # aggregate syntax: 
query I rowsort label-219
SELECT - MIN( 32 ) FROM tab1 AS cor0
----
-32

skipif mysql # not compatible
query I rowsort label-219
SELECT - MIN ( 32 ) FROM tab1 AS cor0
----
-32

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT col0 / - + 43 * - - 63 * + col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL col2 / 41 FROM tab0 AS cor0 WHERE col0 * col0 + 7 / - col0 IS NULL
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-224
SELECT DISTINCT * FROM tab0 WHERE + CAST( NULL AS SIGNED ) / + col1 = - + col1 * 47
----

skipif mysql # not compatible
query III rowsort label-224
SELECT DISTINCT * FROM tab0 WHERE + CAST ( NULL AS INTEGER ) / + col1 = - + col1 * 47
----

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

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

query I rowsort
SELECT - 47 + - - 14 FROM tab1
----
-33
-33
-33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-228
SELECT ALL + ( COUNT( * ) ) + CAST( + ( + 40 ) AS SIGNED ) + 46 FROM tab1
----
89

skipif mysql # not compatible
query I rowsort label-228
SELECT ALL + ( COUNT ( * ) ) + CAST ( + ( + 40 ) AS INTEGER ) + 46 FROM tab1
----
89

query I rowsort
SELECT DISTINCT - col2 * + - col2 FROM tab0 AS cor0
----
100
2209
9801

onlyif mysql # DIV for integer division: 
query I rowsort label-230
SELECT - 0 * col1 DIV - col1 + + col0 * + 29 AS col1 FROM tab2 AS cor0
----
1334
1856
2175

skipif mysql # not compatible
query I rowsort label-230
SELECT - 0 * col1 / - col1 + + col0 * + 29 AS col1 FROM tab2 AS cor0
----
1334
1856
2175

onlyif mysql # aggregate syntax: 
query I rowsort label-231
SELECT DISTINCT + SUM( - 15 ) FROM tab1 AS cor0
----
-45

skipif mysql # not compatible
query I rowsort label-231
SELECT DISTINCT + SUM ( - 15 ) FROM tab1 AS cor0
----
-45

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-233
SELECT - 62 + + col1 + - - 93 + - col0 * + CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0 WHERE 86 IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-233
SELECT - 62 + + col1 + - - 93 + - col0 * + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0 WHERE 86 IS NOT NULL
----
NULL
NULL
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-236
SELECT - + COUNT( DISTINCT + col2 ) * COUNT( * ) FROM tab2 cor0
----
-9

skipif mysql # not compatible
query I rowsort label-236
SELECT - + COUNT ( DISTINCT + col2 ) * COUNT ( * ) FROM tab2 cor0
----
-9

query I rowsort
SELECT DISTINCT col0 + - 69 FROM tab2 AS cor0
----
-23
-5
6

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

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

query I rowsort
SELECT DISTINCT + 21 * 95 * col2 - + 86 + - ( + ( - 23 ) ) FROM tab1
----
117642
135597
191457

query III rowsort
SELECT * FROM tab2 WHERE col0 / + 80 * + 86 * + col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-243
SELECT DISTINCT - + ( ( - COUNT( - + 11 ) ) ) * - COUNT( * ) * + 80 AS col0 FROM tab0 AS cor0
----
-720

skipif mysql # not compatible
query I rowsort label-243
SELECT DISTINCT - + ( ( - COUNT ( - + 11 ) ) ) * - COUNT ( * ) * + 80 AS col0 FROM tab0 AS cor0
----
-720

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

skipif mysql # not compatible
query I rowsort label-244
SELECT DISTINCT + - CAST ( - + SUM ( DISTINCT - col0 ) AS INTEGER ) FROM tab2 AS cor0
----
-185

query I rowsort
SELECT + col1 * + + col1 FROM tab2 AS cor0
----
2601
4489
5929

query I rowsort
SELECT ALL + col0 * - + col0 FROM tab0 cor0
----
-225
-7569
-9409

onlyif mysql # aggregate syntax: 
query I rowsort label-247
SELECT MIN( ALL + 64 ) * + 55 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT ( 33 ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-247
SELECT MIN ( ALL + 64 ) * + 55 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT ( 33 ) IS NOT NULL
----
NULL

query I rowsort
SELECT ALL - col2 FROM tab2 WHERE NOT ( - - col0 * + 99 * col2 ) IS NULL
----
-23
-40
-58

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-249
SELECT ALL * FROM tab2 WHERE NOT NULL BETWEEN ( - + CAST( ( + - col0 ) AS SIGNED ) ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-249
SELECT ALL * FROM tab2 WHERE NOT NULL BETWEEN ( - + CAST ( ( + - col0 ) AS INTEGER ) ) AND NULL
----

query I rowsort
SELECT DISTINCT col2 * - 97 AS col0 FROM tab0
----
-4559
-9603
-970

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-251
SELECT ALL - MIN( DISTINCT + col0 ) DIV ( - 18 ) AS col1 FROM tab2 cor0
----
2

skipif mysql # not compatible
query I rowsort label-251
SELECT ALL - MIN ( DISTINCT + col0 ) / ( - 18 ) AS col1 FROM tab2 cor0
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-252
SELECT DISTINCT col1 DIV - - 32 AS col2 FROM tab2 AS cor0
----
1
2

skipif mysql # not compatible
query I rowsort label-252
SELECT DISTINCT col1 / - - 32 AS col2 FROM tab2 AS cor0
----
1
2

query I rowsort
SELECT ALL col2 FROM tab0 AS cor0 WHERE 92 * - col2 < NULL
----

query II rowsort
SELECT + ( col2 ), + col1 FROM tab2 AS cor0
----
23
51
40
77
58
67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 2, + col2 col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-2
10
-2
47
-2
99

query I rowsort
SELECT - col1 + - + 46 FROM tab1
----
-51
-60
-93

query I rowsort
SELECT + - 7 + col0 - - 78 FROM tab1 AS cor0
----
122
156
162

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 87 > - - 74
----

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

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

query I rowsort
SELECT DISTINCT + - col2 * 84 FROM tab1 WHERE NOT + - col1 IS NULL
----
-4956
-5712
-8064

query I rowsort
SELECT + 67 + + ( - - 89 ) FROM tab2 AS cor0
----
156
156
156

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-264
SELECT ALL - - CAST( col1 AS SIGNED ) AS col2, 94 DIV - + col1 FROM tab2 AS cor0
----
51
-1
67
-1
77
-1

skipif mysql # not compatible
query II rowsort label-264
SELECT ALL - - CAST ( col1 AS INTEGER ) AS col2, 94 / - + col1 FROM tab2 AS cor0
----
51
-1
67
-1
77
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-265
SELECT DISTINCT - 1 DIV + col2 + 80 AS col0 FROM tab0 AS cor0
----
80

skipif mysql # not compatible
query I rowsort label-265
SELECT DISTINCT - 1 / + col2 + 80 AS col0 FROM tab0 AS cor0
----
80

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-266
SELECT DISTINCT - CAST( NULL AS DECIMAL ) + + + COUNT( * ) FROM tab1
----
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-267
SELECT DISTINCT * FROM tab2 WHERE NOT col0 + + col0 + - CAST( NULL AS SIGNED ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-267
SELECT DISTINCT * FROM tab2 WHERE NOT col0 + + col0 + - CAST ( NULL AS INTEGER ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

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

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

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

query I rowsort
SELECT DISTINCT 49 * + - col0 AS col2 FROM tab1
----
-2499
-4165
-4459

query I rowsort
SELECT - ( + + 84 ) FROM tab2
----
-84
-84
-84

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-273
SELECT DISTINCT - col1 col2, - col1 / - 44 AS col0 FROM tab1 cor0
----
-14
0
-47
1
-5
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-275
SELECT MAX( - ( 70 ) ) FROM tab2
----
-70

skipif mysql # not compatible
query I rowsort label-275
SELECT MAX ( - ( 70 ) ) FROM tab2
----
-70

query I rowsort
SELECT ALL - col1 FROM tab2 AS cor0 WHERE NOT NULL < NULL
----

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL > + col0 + - 92 * - col1
----

query I rowsort
SELECT DISTINCT 66 FROM tab2 AS cor0 WHERE NOT 39 IN ( + 74 )
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-280
SELECT + COUNT( * ) AS col2 FROM tab0 cor0 WHERE NOT 75 > - - col2 - 80
----
0

skipif mysql # not compatible
query I rowsort label-280
SELECT + COUNT ( * ) AS col2 FROM tab0 cor0 WHERE NOT 75 > - - col2 - 80
----
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 98 >= 1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-284
SELECT DISTINCT + 10 DIV + 19 + - 75 AS col0 FROM tab1
----
-75

skipif mysql # not compatible
query I rowsort label-284
SELECT DISTINCT + 10 / + 19 + - 75 AS col0 FROM tab1
----
-75

query I rowsort
SELECT - ( col1 ) * - col2 AS col0 FROM tab1 WHERE - + col1 IS NULL
----

query I rowsort
SELECT ALL 8 AS col0 FROM tab1 cor0
----
8
8
8

query I rowsort
SELECT col2 + col1 * - + col1 AS col0 FROM tab2 AS cor0
----
-2578
-4431
-5889

query I rowsort
SELECT col2 + - col2 + - 34 AS col0 FROM tab2 cor0
----
-34
-34
-34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-289
SELECT DISTINCT MIN( DISTINCT + 22 ) * - CAST( + + 18 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-396

skipif mysql # not compatible
query I rowsort label-289
SELECT DISTINCT MIN ( DISTINCT + 22 ) * - CAST ( + + 18 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-396

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

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

query I rowsort
SELECT ALL + col0 + - ( - + col1 ) - - col2 AS col1 FROM tab2
----
120
181
200

onlyif mysql # aggregate syntax: 
query II rowsort label-292
SELECT ALL - COUNT( * ) col0, - COUNT( * ) + - - 75 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-9
66

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-292
SELECT ALL - COUNT ( * ) col0, - COUNT ( * ) + - - 75 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-9
66

query I rowsort
SELECT + col2 * + ( - + 13 ) * - col0 + - + col2 AS col1 FROM tab0
----
11300
124740
9118

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

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

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

query I rowsort
SELECT ALL + col1 - - 80 + + - 14 * + 64 AS col2 FROM tab2 AS cor0
----
-739
-749
-765

onlyif mysql # aggregate syntax: 
query I rowsort label-297
SELECT MAX( + col0 ) * 26 col2 FROM tab1 AS cor0
----
2366

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-297
SELECT MAX ( + col0 ) * 26 col2 FROM tab1 AS cor0
----
2366

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-298
SELECT * FROM tab2 cor0 WHERE ( NOT ( + 75 + - col2 * - col1 * - CAST( NULL AS DECIMAL ) * - col0 ) > + 88 * + + ( col0 ) )
----

skipif mysql # not compatible
query III rowsort label-298
SELECT * FROM tab2 cor0 WHERE ( NOT ( + 75 + - col2 * - col1 * - CAST ( NULL AS REAL ) * - col0 ) > + 88 * + + ( col0 ) )
----

query I rowsort
SELECT - 46 - - 61 AS col1 FROM tab2 AS cor0
----
15
15
15

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

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

query I rowsort
SELECT DISTINCT - 63 + - col2 AS col1 FROM tab2 AS cor0
----
-103
-121
-86

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - 39 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL IN ( - - col2, 39 )
----

query I rowsort
SELECT ALL - ( + + col2 ) FROM tab0 WHERE + 71 NOT BETWEEN NULL AND + + col0
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-305
SELECT COUNT( * ) + - 56 FROM tab1 AS cor0 WHERE NOT + col2 > ( col0 + + - ( + col2 ) * - col2 * + col1 + + - col0 )
----
-53

skipif mysql # not compatible
query I rowsort label-305
SELECT COUNT ( * ) + - 56 FROM tab1 AS cor0 WHERE NOT + col2 > ( col0 + + - ( + col2 ) * - col2 * + col1 + + - col0 )
----
-53

query IIIIII rowsort
SELECT DISTINCT * FROM tab2, tab2 AS cor0 WHERE NOT - 19 IS NOT NULL
----

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-309
SELECT + + 13 DIV + col1 AS col0 FROM tab0 AS cor0
----
0
0
13

skipif mysql # not compatible
query I rowsort label-309
SELECT + + 13 / + col1 AS col0 FROM tab0 AS cor0
----
0
0
13

query I rowsort
SELECT + - 98 * col1 + + + col1 AS col2 FROM tab2 AS cor0
----
-4947
-6499
-7469

query I rowsort
SELECT DISTINCT + 58 + 28 FROM tab2 AS cor0
----
86

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-312
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) > - ( - 23 ) * + + CAST( + col1 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-312
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) > - ( - 23 ) * + + CAST ( + col1 AS INTEGER )
----

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( + 58 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-315
SELECT DISTINCT - ( - COUNT( * ) ) + - - 57 AS col0 FROM tab1
----
60

skipif mysql # not compatible
query I rowsort label-315
SELECT DISTINCT - ( - COUNT ( * ) ) + - - 57 AS col0 FROM tab1
----
60

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

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

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

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

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

query I rowsort
SELECT ALL + col2 * - + col2 FROM tab0
----
-100
-2209
-9801

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-320
SELECT col1 + + col2 FROM tab2 WHERE + 35 < + - col1 * + ( + + col2 ) * + - ( + CAST( NULL AS DECIMAL ) )
----

skipif mysql # not compatible
query I rowsort label-320
SELECT col1 + + col2 FROM tab2 WHERE + 35 < + - col1 * + ( + + col2 ) * + - ( + CAST ( NULL AS REAL ) )
----

query I rowsort
SELECT DISTINCT 78 + - col0 AS col0 FROM tab0
----
-19
-9
63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-322
SELECT SUM( ALL CAST( + + col2 AS SIGNED ) ) AS col0 FROM tab0 WHERE NULL BETWEEN NULL AND ( NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-322
SELECT SUM ( ALL CAST ( + + col2 AS INTEGER ) ) AS col0 FROM tab0 WHERE NULL BETWEEN NULL AND ( NULL )
----
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 8 + - 64 + - - 59 <= col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + ( + - col1 ) AS col0 FROM tab1 AS cor0
----
-14
-47
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-325
SELECT ALL - + CAST( NULL AS SIGNED ) * 54 - - 66 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-325
SELECT ALL - + CAST ( NULL AS INTEGER ) * 54 - - 66 col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

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

query I rowsort
SELECT DISTINCT + col1 * + 19 FROM tab0 AS cor0
----
1539
19
399

query I rowsort
SELECT ALL - col2 AS col1 FROM tab1 AS cor0 WHERE ( NULL ) <= NULL
----

query I rowsort
SELECT - 93 FROM tab2 WHERE - - col0 = + col0 - + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-330
SELECT ALL - 54 - - col1 - CAST( NULL AS SIGNED ) - + 96 - - 64 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-330
SELECT ALL - 54 - - col1 - CAST ( NULL AS INTEGER ) - + 96 - - 64 col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-331
SELECT DISTINCT - 24 DIV - COUNT( DISTINCT col2 ) FROM tab2 AS cor0
----
8

skipif mysql # not compatible
query I rowsort label-331
SELECT DISTINCT - 24 / - COUNT ( DISTINCT col2 ) FROM tab2 AS cor0
----
8

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-333
SELECT ALL + + MAX ( - col0 ) col2 FROM tab1 AS cor0
----
-51

query I rowsort
SELECT ALL - - 73 * + - 80 FROM tab0 AS cor0
----
-5840
-5840
-5840

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

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

query I rowsort
SELECT col0 * - - 99 FROM tab2
----
4554
6336
7425

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col1 IN ( + 1, - ( + col1 ) + 38, - 37, - 28 + + 71 * col1 )
----
15
81
47
87
21
10

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

query I rowsort
SELECT col0 * + ( - col2 ) FROM tab1 cor0
----
-4896
-5015
-6188

query I rowsort
SELECT col2 * - + 99 * + 95 FROM tab0
----
-442035
-931095
-94050

query I rowsort
SELECT DISTINCT - col0 * + + col2 + - 34 AS col0 FROM tab1 AS cor0
----
-4930
-5049
-6222

onlyif mysql # aggregate syntax: 
query I rowsort label-343
SELECT - + COUNT( + + 68 ) * - + 92 FROM tab2 AS cor0
----
276

skipif mysql # not compatible
query I rowsort label-343
SELECT - + COUNT ( + + 68 ) * - + 92 FROM tab2 AS cor0
----
276

query I rowsort
SELECT DISTINCT - col1 + - - 43 FROM tab1
----
-4
29
38

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-345
SELECT ALL ( - ( + CAST( + 13 AS SIGNED ) ) ) + + + col0, 28 AS col0 FROM tab0
----
2
28
74
28
84
28

skipif mysql # not compatible
query II rowsort label-345
SELECT ALL ( - ( + CAST ( + 13 AS INTEGER ) ) ) + + + col0, 28 AS col0 FROM tab0
----
2
28
74
28
84
28

onlyif mysql # aggregate syntax: 
query I rowsort label-346
SELECT + MAX( - - col2 ) AS col1 FROM tab0
----
99

skipif mysql # not compatible
query I rowsort label-346
SELECT + MAX ( - - col2 ) AS col1 FROM tab0
----
99

query III rowsort
SELECT ALL * FROM tab1 WHERE + col2 * - col0 = + - col1 + - + col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + + col0 + + - col1 + col2 col2 FROM tab0
----
-100
194
55

onlyif mysql # DIV for integer division: 
query I rowsort label-349
SELECT ALL + col0 DIV + col0 col0 FROM tab0
----
1
1
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-349
SELECT ALL + col0 / + col0 col0 FROM tab0
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-350
SELECT DISTINCT - - COUNT( * ) - COUNT( * ) FROM tab0 cor0
----
0

skipif mysql # not compatible
query I rowsort label-350
SELECT DISTINCT - - COUNT ( * ) - COUNT ( * ) FROM tab0 cor0
----
0

query I rowsort
SELECT ( + - col0 ) + + - ( col2 ) FROM tab0 AS cor0
----
-196
-62
-97

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

query I rowsort
SELECT DISTINCT col1 - - - 50 AS col0 FROM tab1
----
-3
-36
-45

query I rowsort
SELECT DISTINCT + col2 * col2 * + col0 + + col0 FROM tab2
----
102464
24380
252375

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-355
SELECT * FROM tab0 WHERE NOT NULL < - - CAST( + 77 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-355
SELECT * FROM tab0 WHERE NOT NULL < - - CAST ( + 77 AS INTEGER )
----

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-358
SELECT DISTINCT + col0 DIV - 99 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-358
SELECT DISTINCT + col0 / - 99 FROM tab0 AS cor0
----
0

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

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

query II rowsort
SELECT + + ( + col2 ) AS col2, col2 AS col1 FROM tab0 AS cor0
----
10
10
47
47
99
99

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 89, ( + col0 ) col1 FROM tab0 AS cor0
----
89
15
89
87
89
97

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

onlyif mysql # aggregate syntax: 
query I rowsort label-364
SELECT SUM( + 2 ) FROM tab1
----
6

skipif mysql # not compatible
query I rowsort label-364
SELECT SUM ( + 2 ) FROM tab1
----
6

query I rowsort
SELECT DISTINCT - col1 * - 3 FROM tab0
----
243
3
63

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-366
SELECT COUNT( * ) DIV 85 AS col1, 75 AS col0 FROM tab2
----
0
75

skipif mysql # not compatible
query II rowsort label-366
SELECT COUNT ( * ) / 85 AS col1, 75 AS col0 FROM tab2
----
0
75

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-367
SELECT ALL - 3 / + - col1 AS col2, + col2 col0 FROM tab1 AS cor0
----
0
59
0
68
0
96

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-370
SELECT + COUNT( * ) * - MIN( DISTINCT - - 45 ) AS col0 FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 )
----
-405

skipif mysql # not compatible
query I rowsort label-370
SELECT + COUNT ( * ) * - MIN ( DISTINCT - - 45 ) AS col0 FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 )
----
-405

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL = - - 90
----

query II rowsort
SELECT DISTINCT col2, 82 * col1 FROM tab0
----
10
1722
47
6642
99
82

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col0 <> + + 81
----

query II rowsort
SELECT 13 * ( - + 56 ) AS col0, 73 AS col2 FROM tab0 AS cor0
----
-728
73
-728
73
-728
73

query I rowsort
SELECT + + col1 * - + col0 + - col2 AS col2 FROM tab1 AS cor0
----
-4345
-484
-810

query I rowsort
SELECT - - 21 * ( - - col2 ) + col1 FROM tab2 AS cor0
----
1285
534
917

query I rowsort
SELECT - 82 + - col2 * + + col1 + - + ( - 98 ) FROM tab2 AS cor0
----
-1157
-3064
-3870

query I rowsort
SELECT - 11 * - col0 + + - col0 FROM tab2 AS cor0
----
460
640
750

query II rowsort
SELECT DISTINCT + - 26 * + - col1 + col1 AS col1, col0 AS col1 FROM tab2 AS cor0
----
1377
46
1809
75
2079
64

query I rowsort
SELECT ALL - 23 + + + col1 AS col2 FROM tab2
----
28
44
54

onlyif mysql # aggregate syntax: 
query I rowsort label-381
SELECT DISTINCT + 96 + + COUNT( * ) FROM tab2
----
99

skipif mysql # not compatible
query I rowsort label-381
SELECT DISTINCT + 96 + + COUNT ( * ) FROM tab2
----
99

query I rowsort
SELECT DISTINCT + col2 + + col0 * - col1 FROM tab1
----
-366
-4209
-618

query I rowsort
SELECT ALL + 96 + 82 AS col1 FROM tab0
----
178
178
178

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 72 * - ( - - col1 ) col2 FROM tab1 WHERE 94 > NULL
----

query I rowsort
SELECT DISTINCT - col2 - - - col2 * 81 FROM tab2
----
-1886
-3280
-4756

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-387
SELECT DISTINCT * FROM tab2 WHERE NOT - 53 BETWEEN - col2 + - CAST( NULL AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-387
SELECT DISTINCT * FROM tab2 WHERE NOT - 53 BETWEEN - col2 + - CAST ( NULL AS INTEGER ) AND NULL
----

query I rowsort
SELECT DISTINCT + - 64 AS col1 FROM tab2 AS cor0
----
-64

query I rowsort
SELECT - col0 * + 11 FROM tab0 AS cor0
----
-1067
-165
-957

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( + col2 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query II rowsort label-391
SELECT 35, + COUNT( * ) AS col2 FROM tab2
----
35
3

skipif mysql # not compatible
query II rowsort label-391
SELECT 35, + COUNT ( * ) AS col2 FROM tab2
----
35
3

onlyif mysql # aggregate syntax: 
query I rowsort label-392
SELECT DISTINCT + 63 * + - COUNT( ALL - - col0 ) FROM tab1
----
-189

skipif mysql # not compatible
query I rowsort label-392
SELECT DISTINCT + 63 * + - COUNT ( ALL - - col0 ) FROM tab1
----
-189

onlyif mysql # DIV for integer division: 
query I rowsort label-393
SELECT DISTINCT + col1 DIV + + ( - - 21 ) FROM tab0
----
0
1
3

skipif mysql # not compatible
query I rowsort label-393
SELECT DISTINCT + col1 / + + ( - - 21 ) FROM tab0
----
0
1
3

query I rowsort
SELECT - 76 * - ( + col2 ) AS col1 FROM tab1
----
4484
5168
7296

onlyif mysql # DIV for integer division: 
query I rowsort label-395
SELECT col1 DIV - 12 col0 FROM tab0
----
-1
-6
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-395
SELECT col1 / - 12 col0 FROM tab0
----
-1
-6
0

onlyif mysql # aggregate syntax: 
query I rowsort label-396
SELECT 45 * 99 + + 0 * - COUNT( * ) - - + 63 AS col1 FROM tab0 WHERE NOT + 22 <= NULL
----
4518

skipif mysql # not compatible
query I rowsort label-396
SELECT 45 * 99 + + 0 * - COUNT ( * ) - - + 63 AS col1 FROM tab0 WHERE NOT + 22 <= NULL
----
4518

query I rowsort
SELECT DISTINCT - + col2 FROM tab0 WHERE NOT 21 IS NULL
----
-10
-47
-99

query II rowsort
SELECT DISTINCT + 5, + 29 FROM tab1 WHERE NOT - - col0 * 70 BETWEEN - col2 AND NULL
----

query I rowsort
SELECT - col1 * + 65 AS col2 FROM tab2
----
-3315
-4355
-5005

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

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

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

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-402
SELECT + + CAST( - col0 AS SIGNED ) * - - col2 + + CAST( NULL AS DECIMAL ) AS col1 FROM tab2 cor0 WHERE NOT NULL >= ( + - col2 ) * - - col0
----

skipif mysql # not compatible
query I rowsort label-402
SELECT + + CAST ( - col0 AS INTEGER ) * - - col2 + + CAST ( NULL AS REAL ) AS col1 FROM tab2 cor0 WHERE NOT NULL >= ( + - col2 ) * - - col0
----

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

query II rowsort
SELECT DISTINCT 61 + + col2, 71 AS col1 FROM tab1
----
120
71
129
71
157
71

onlyif mysql # DIV for integer division: 
query I rowsort label-405
SELECT ALL 4 DIV + col1 + col0 + - 11 FROM tab0
----
4
76
90

skipif mysql # not compatible
query I rowsort label-405
SELECT ALL 4 / + col1 + col0 + - 11 FROM tab0
----
4
76
90

query IIIIII rowsort
SELECT * FROM tab0 cor0 CROSS JOIN tab1 cor1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT - + col2 * + col1 + + - col2 + + col0 + + col1 * + - col2 AS col0 FROM tab2 AS cor0
----
-2323
-6136
-7755

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

skipif mysql # not compatible
query I rowsort label-408
SELECT DISTINCT - SUM ( + 31 ) + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-90

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NULL ) < + col1 + + col1 + - + 62
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-410
SELECT AVG ( DISTINCT - ( + ( + CAST( NULL AS SIGNED ) ) ) ) / - 38 AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-410
SELECT AVG ( DISTINCT - ( + ( + CAST ( NULL AS INTEGER ) ) ) ) / - 38 AS col2 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT + + 72 AS col0 FROM tab1 AS cor0
----
72
72
72

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-413
SELECT CAST( NULL AS SIGNED ) AS col2, + col0 * - col1 * - - col1 FROM tab1
----
NULL
-201019
NULL
-2125
NULL
-9996

skipif mysql # not compatible
query II rowsort label-413
SELECT CAST ( NULL AS INTEGER ) AS col2, + col0 * - col1 * - - col1 FROM tab1
----
NULL
-201019
NULL
-2125
NULL
-9996

query I rowsort
SELECT col2 - 92 + - col2 AS col1 FROM tab0
----
-92
-92
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-415
SELECT ( COUNT( * ) ) - + 45 AS col2 FROM tab1
----
-42

skipif mysql # not compatible
query I rowsort label-415
SELECT ( COUNT ( * ) ) - + 45 AS col2 FROM tab1
----
-42

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - 43 - + col2 col2 FROM tab2
----
-1012
-1760
-2552

query I rowsort
SELECT DISTINCT - col1 + + + 6 + col0 * + col1 AS col0 FROM tab2
----
2301
4857
4964

query I rowsort
SELECT DISTINCT - col1 - + col1 AS col1 FROM tab1
----
-10
-28
-94

query I rowsort
SELECT + 62 FROM tab0 WHERE NULL IS NULL
----
62
62
62

onlyif mysql # aggregate syntax: 
query I rowsort label-420
SELECT 75 - + COUNT( * ) FROM tab1
----
72

skipif mysql # not compatible
query I rowsort label-420
SELECT 75 - + COUNT ( * ) FROM tab1
----
72

query I rowsort
SELECT ALL 35 + - col0 - + - ( - 31 ) + 35 + - 86 + - + col0 FROM tab1
----
-149
-217
-229

query I rowsort
SELECT + 13 + - 46 AS col1 FROM tab2
----
-33
-33
-33

query I rowsort
SELECT DISTINCT - 75 * - - col1 + - col0 - - + col1 + + col0 * col2 FROM tab0
----
-5304
-771
9432

query I rowsort
SELECT + col2 + - col1 - + col2 * + - ( - + col2 ) FROM tab2 AS cor0
----
-1637
-3373
-557

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-425
SELECT ALL * FROM tab1 AS cor0 WHERE - ( + col2 ) NOT IN ( + col0, col0 * + CAST( NULL AS SIGNED ), 53 )
----

skipif mysql # not compatible
query III rowsort label-425
SELECT ALL * FROM tab1 AS cor0 WHERE - ( + col2 ) NOT IN ( + col0, col0 * + CAST ( NULL AS INTEGER ), 53 )
----

query I rowsort
SELECT - + 94 FROM tab0 cor0
----
-94
-94
-94

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

query I rowsort
SELECT col2 * - col1 * - 56 + - ( 45 ) AS col2 FROM tab1 AS cor0
----
16475
178931
75219

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

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

skipif mysql # not compatible
query III rowsort label-430
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT col1 > - CAST ( col1 AS INTEGER )
----

query II rowsort
SELECT ALL + ( + col2 ) * - ( + - 0 ) AS col1, 43 FROM tab1 AS cor0
----
0
43
0
43
0
43

onlyif mysql # aggregate syntax: 
query I rowsort label-432
SELECT COUNT( * ) * MAX( - col0 ) AS col2 FROM tab2 AS cor0
----
-138

skipif mysql # not compatible
query I rowsort label-432
SELECT COUNT ( * ) * MAX ( - col0 ) AS col2 FROM tab2 AS cor0
----
-138

query II rowsort
SELECT col0, 15 * col0 FROM tab0
----
15
225
87
1305
97
1455

query II rowsort
SELECT DISTINCT col2, ( + - col0 ) + + col1 FROM tab2
----
23
5
40
13
58
-8

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

skipif mysql # not compatible
query I rowsort label-435
SELECT DISTINCT COUNT ( - - 51 ) AS col2 FROM tab1
----
3

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-438
SELECT ALL - ( + - MIN( - col1 ) ) AS col2 FROM tab2 WHERE NOT + col1 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-438
SELECT ALL - ( + - MIN ( - col1 ) ) AS col2 FROM tab2 WHERE NOT + col1 IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-439
SELECT COUNT( * ) DIV + - 42 + + COUNT( * ) FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-439
SELECT COUNT ( * ) / + - 42 + + COUNT ( * ) FROM tab2 cor0
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-440
SELECT COUNT( * ) AS col1, 49 FROM tab1 AS cor0
----
3
49

skipif mysql # not compatible
query II rowsort label-440
SELECT COUNT ( * ) AS col1, 49 FROM tab1 AS cor0
----
3
49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-441
SELECT ALL CAST( + 70 AS SIGNED ) * col1 + col2 col0 FROM tab1
----
1076
3358
409

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-441
SELECT ALL CAST ( + 70 AS INTEGER ) * col1 + col2 col0 FROM tab1
----
1076
3358
409

query I rowsort
SELECT DISTINCT + col1 - + col0 - - col1 FROM tab1
----
-23
-75
3

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

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

query I rowsort
SELECT col0 + - + ( + - 43 ) AS col1 FROM tab0 cor0
----
130
140
58

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-445
SELECT + - col2 + - col0 AS col2, + CAST( - col0 AS SIGNED ), - col1 AS col2 FROM tab1 AS cor0
----
9 values hashing to 89cb35d18eb39316f92af145714eab91

skipif mysql # not compatible
query III rowsort label-445
SELECT + - col2 + - col0 AS col2, + CAST ( - col0 AS INTEGER ), - col1 AS col2 FROM tab1 AS cor0
----
9 values hashing to 89cb35d18eb39316f92af145714eab91

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-449
SELECT DISTINCT + + SUM( 56 ), COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE NOT - col2 IS NULL
----
168
3

skipif mysql # not compatible
query II rowsort label-449
SELECT DISTINCT + + SUM ( 56 ), COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE NOT - col2 IS NULL
----
168
3

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

query II rowsort
SELECT - col0 + + + 73 + + col1 * + col1 * - 46 AS col1, - 80 FROM tab0
----
-20300
-80
-301748
-80
-70
-80

query III rowsort
SELECT ALL * FROM tab1 WHERE col1 + - - 50 <> + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - col1 FROM tab0 WHERE + col1 IS NOT NULL
----
-1
-21
-81

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

skipif mysql # not compatible
query I rowsort label-454
SELECT ALL 65 + + COUNT ( * ) FROM tab0
----
68

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

query I rowsort
SELECT ALL + 12 - col2 FROM tab2
----
-11
-28
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-457
SELECT + MAX( ALL + + 48 ) FROM tab2
----
48

skipif mysql # not compatible
query I rowsort label-457
SELECT + MAX ( ALL + + 48 ) FROM tab2
----
48

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT col2 + - 2 * + + col0 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-459
SELECT MAX( + col0 ) FROM tab0 AS cor0 WHERE NULL IS NOT NULL AND NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-459
SELECT MAX ( + col0 ) FROM tab0 AS cor0 WHERE NULL IS NOT NULL AND NULL IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-460
SELECT + ( + 2 ) + + COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
11

skipif mysql # not compatible
query I rowsort label-460
SELECT + ( + 2 ) + + COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
11

query I rowsort
SELECT ALL 18 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to b95bafa733666df39c5d3f94760d010f

query I rowsort
SELECT ALL - col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-46
-64
-75

query I rowsort
SELECT + + 57 AS col1 FROM tab0 AS cor0
----
57
57
57

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

query I rowsort
SELECT ALL - col0 * - col2 + 72 AS col0 FROM tab0 AS cor0
----
777
942
9675

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN + 74 AND ( - 18 )
----

query I rowsort
SELECT ALL + 32 * - col2 * col2 * - col1 FROM tab0 AS cor0
----
313632
5725728
67200

query II rowsort
SELECT 22, col0 FROM tab1 AS cor0
----
22
51
22
85
22
91

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

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

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

query I rowsort
SELECT DISTINCT col1 + 68 FROM tab0
----
149
69
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 10 col0 FROM tab2
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-473
SELECT - - MIN( - col0 ) FROM tab0 WHERE + + col1 IS NOT NULL
----
-97

skipif mysql # not compatible
query I rowsort label-473
SELECT - - MIN ( - col0 ) FROM tab0 WHERE + + col1 IS NOT NULL
----
-97

query I rowsort
SELECT DISTINCT ( 77 ) FROM tab0
----
77

query III rowsort
SELECT * FROM tab0 WHERE - col0 = - col1
----

query I rowsort
SELECT - col1 * - + col1 * col0 * - col2 FROM tab0 AS cor0 WHERE 9 >= NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-478
SELECT + + ( + + COUNT( * ) ) AS col1 FROM tab1 AS cor0 WHERE ( NOT NULL >= + col1 / + 69 )
----
0

skipif mysql # not compatible
query I rowsort label-478
SELECT + + ( + + COUNT ( * ) ) AS col1 FROM tab1 AS cor0 WHERE ( NOT NULL >= + col1 / + 69 )
----
0

query I rowsort
SELECT col1 + + 39 + col2 * + col2 * - - col1 * + - col0 FROM tab0 AS cor0
----
-182640
-2683815
-950657

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NOT ( NOT col1 + - - 36 IS NULL ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-481
SELECT DISTINCT - 63 + - + col2 DIV col0 + + col2 AS col0 FROM tab1
----
-4
32
5

skipif mysql # not compatible
query I rowsort label-481
SELECT DISTINCT - 63 + - + col2 / col0 + + col2 AS col0 FROM tab1
----
-4
32
5

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

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

query I rowsort
SELECT - 52 * col0 + + - ( col2 ) FROM tab1
----
-2748
-4479
-4800

query III rowsort
SELECT ALL * FROM tab0 WHERE - + col1 * col2 NOT IN ( + - col0, col0, + - col2 )
----
15
81
47
87
21
10

query I rowsort
SELECT ALL - col2 * 8 + - col2 AS col2 FROM tab0 AS cor0
----
-423
-891
-90

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-486
SELECT ALL + col2 / col2 col0 FROM tab2 AS cor0
----
1
1
1

onlyif mysql # DIV for integer division: 
query I rowsort label-487
SELECT ALL + col1 * + - col1 + + - col2 DIV + + col2 AS col2 FROM tab1 AS cor0
----
-197
-2210
-26

skipif mysql # not compatible
query I rowsort label-487
SELECT ALL + col1 * + - col1 + + - col2 / + + col2 AS col2 FROM tab1 AS cor0
----
-197
-2210
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-488
SELECT + + COUNT( * ) - - 75 AS col1 FROM tab2 cor0
----
78

skipif mysql # not compatible
query I rowsort label-488
SELECT + + COUNT ( * ) - - 75 AS col1 FROM tab2 cor0
----
78

query I rowsort
SELECT + col2 * + + col1 - + - 25 AS col1 FROM tab2 AS cor0
----
1198
3105
3911

onlyif mysql # DIV for integer division: 
query I rowsort label-490
SELECT col2 - - 24 DIV 60 + + 31 col2 FROM tab0 cor0
----
130
41
78

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-490
SELECT col2 - - 24 / 60 + + 31 col2 FROM tab0 cor0
----
130
41
78

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

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

query I rowsort
SELECT - 0 * - col1 - 23 FROM tab2
----
-23
-23
-23

query I rowsort
SELECT DISTINCT - col0 + + - col0 + col2 AS col2 FROM tab2
----
-69
-88
-92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-494
SELECT COUNT( * ) * + MIN( + CAST( NULL AS DECIMAL ) ) / + CAST( NULL AS SIGNED ) - 89 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-494
SELECT COUNT ( * ) * + MIN ( + CAST ( NULL AS REAL ) ) / + CAST ( NULL AS INTEGER ) - 89 FROM tab0
----
NULL

query I rowsort
SELECT + 22 * + 5 FROM tab1
----
110
110
110

onlyif mysql # aggregate syntax: 
query I rowsort label-496
SELECT DISTINCT MIN( DISTINCT 17 ) FROM tab0
----
17

skipif mysql # not compatible
query I rowsort label-496
SELECT DISTINCT MIN ( DISTINCT 17 ) FROM tab0
----
17

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-498
SELECT DISTINCT - + col0, - 46 / + - CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-46
NULL
-64
NULL
-75
NULL

skipif mysql # not compatible
query II rowsort label-498
SELECT DISTINCT - + col0, - 46 / + - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-46
NULL
-64
NULL
-75
NULL

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-500
SELECT ALL - 69, col0 + + 11 + + col1 DIV + col0 col2 FROM tab2 AS cor0
----
-69
58
-69
76
-69
86

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-500
SELECT ALL - 69, col0 + + 11 + + col1 / + col0 col2 FROM tab2 AS cor0
----
-69
58
-69
76
-69
86

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

skipif mysql # not compatible
query II rowsort label-501
SELECT ALL + + COUNT ( * ) AS col1, MIN ( - + 28 ) FROM tab0 AS cor0
----
3
-28

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * 48 col1 FROM tab2
----
2448
3216
3696

onlyif mysql # aggregate syntax: 
query I rowsort label-503
SELECT - 93 * - COUNT( ALL + ( - + 56 ) ) FROM tab2 AS cor0
----
279

skipif mysql # not compatible
query I rowsort label-503
SELECT - 93 * - COUNT ( ALL + ( - + 56 ) ) FROM tab2 AS cor0
----
279

query I rowsort
SELECT - - 91 FROM tab2 AS cor0 WHERE NOT ( NULL ) IN ( + - ( + 30 ), col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + ( - + 5 ) AS col1, - 38 col1 FROM tab0 AS cor0
----
-5
-38
-5
-38
-5
-38

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

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

skipif mysql # not compatible
query I rowsort label-507
SELECT + ( + MIN ( ALL + - col1 ) ) FROM tab1 AS cor0 WHERE NOT col2 IS NULL
----
-47

query I rowsort
SELECT ALL col2 * + + 99 * - col1 - col0 FROM tab1 AS cor0
----
-133107
-29290
-316495

query I rowsort
SELECT - - col2 * + + col2 * + + 73 * - 96 FROM tab1 AS cor0
----
-24394848
-32404992
-64585728

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-510
SELECT - CAST( NULL AS SIGNED ) * - 87 - - + COUNT( * ) * - - 39 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-510
SELECT - CAST ( NULL AS INTEGER ) * - 87 - - + COUNT ( * ) * - - 39 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + - 41 + - + col1 AS col1 FROM tab0 AS cor0
----
-122
-42
-62

query I rowsort
SELECT DISTINCT - - ( 2 ) FROM tab0 cor0
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-513
SELECT ALL - CAST( + col1 AS SIGNED ) * + 53 col1 FROM tab2 AS cor0 WHERE + ( + 6 ) IS NOT NULL
----
-2703
-3551
-4081

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-513
SELECT ALL - CAST ( + col1 AS INTEGER ) * + 53 col1 FROM tab2 AS cor0 WHERE + ( + 6 ) IS NOT NULL
----
-2703
-3551
-4081

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-514
SELECT ALL + 67 * col2 + - col1 + col0 * 4 * CAST( NULL AS DECIMAL ) * + col2 * + + col1 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-514
SELECT ALL + 67 * col2 + - col1 + col0 * 4 * CAST ( NULL AS REAL ) * + col2 * + + col1 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE - 14 + col2 < NULL
----

query I rowsort
SELECT + col2 + + - 19 FROM tab0
----
-9
28
80

onlyif mysql # aggregate syntax: 
query I rowsort label-517
SELECT 30 + + COUNT( * ) FROM tab1
----
33

skipif mysql # not compatible
query I rowsort label-517
SELECT 30 + + COUNT ( * ) FROM tab1
----
33

query I rowsort
SELECT col2 + + + 32 FROM tab0
----
131
42
79

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

skipif mysql # not compatible
query I rowsort label-519
SELECT - COUNT ( * ) * + - SUM ( DISTINCT - + col2 ) AS col1 FROM tab1 cor0
----
-669

query I rowsort
SELECT col1 * - 86 * 66 FROM tab1 AS cor0
----
-266772
-28380
-79464

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

skipif mysql # not compatible
query I rowsort label-521
SELECT - MAX ( + col2 ) AS col1 FROM tab2 cor0
----
-58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * col2 col0 FROM tab1 WHERE + col0 <> col2
----
4896
5015
6188

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + ( + - col0 ) col2 FROM tab2 WHERE - 18 IN ( - col0 * + - col0, col1, - 80, - col1 - + 50 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-524
SELECT + 2 + + MAX( - col2 ) * - COUNT( * ) + + COUNT( * ) AS col1 FROM tab0 AS cor0
----
35

skipif mysql # not compatible
query I rowsort label-524
SELECT + 2 + + MAX ( - col2 ) * - COUNT ( * ) + + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
35

query II rowsort
SELECT - ( + 32 ) * col1 + - + col1, 57 * - col2 * 14 AS col2 FROM tab1 AS cor0
----
-1551
-54264
-165
-47082
-462
-76608

query I rowsort
SELECT + col2 * + col1 * col2 + + 57 + - - col2 * - 89 FROM tab2 AS cor0
----
119697
220283
24989

query I rowsort
SELECT 33 AS col2 FROM tab1 cor0 WHERE NULL IS NULL
----
33
33
33

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-528
SELECT col0 * + 56 + + col1 + - 31 DIV + + col2 + - col2 + + + CAST( col0 AS SIGNED ) DIV col0 col0 FROM tab0 cor0
----
4881
5335
875

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-528
SELECT col0 * + 56 + + col1 + - 31 / + + col2 + - col2 + + + CAST ( col0 AS INTEGER ) / col0 col0 FROM tab0 cor0
----
4881
5335
875

query I rowsort
SELECT 73 * - - 11 AS col2 FROM tab0
----
803
803
803

query I rowsort
SELECT ALL 39 * + col0 AS col1 FROM tab2
----
1794
2496
2925

query I rowsort
SELECT DISTINCT - ( - + col1 ) * + col2 + + - 69 AS col2 FROM tab0
----
141
30
3738

onlyif mysql # aggregate syntax: 
query I rowsort label-532
SELECT 21 * - + COUNT( * ) FROM tab1
----
-63

skipif mysql # not compatible
query I rowsort label-532
SELECT 21 * - + COUNT ( * ) FROM tab1
----
-63

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-534
SELECT 6 AS col2, COUNT( * ) AS col2 FROM tab0
----
6
3

skipif mysql # not compatible
query II rowsort label-534
SELECT 6 AS col2, COUNT ( * ) AS col2 FROM tab0
----
6
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-535
SELECT + COUNT( ALL col0 ) DIV 4 FROM tab0 AS cor0 WHERE NOT + 91 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-535
SELECT + COUNT ( ALL col0 ) / 4 FROM tab0 AS cor0 WHERE NOT + 91 IS NULL
----
0

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col1 < 20
----
91
47
68

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-538
SELECT DISTINCT - - col2 * + col1 AS col0 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN 82 + CAST( - CAST( NULL AS SIGNED ) AS DECIMAL ) AND - CAST( NULL AS DECIMAL ) * - col0
----

skipif mysql # not compatible
query I rowsort label-538
SELECT DISTINCT - - col2 * + col1 AS col0 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN 82 + CAST ( - CAST ( NULL AS INTEGER ) AS REAL ) AND - CAST ( NULL AS REAL ) * - col0
----

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 41 + col2 * - 29 col0 FROM tab2 AS cor0
----
-1201
-1723
-708

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-541
SELECT DISTINCT - - CAST( - AVG ( - + col1 ) AS SIGNED ) AS col0 FROM tab0 AS cor0 WHERE col2 = - 4 * + ( + - 98 ) * + 60
----
NULL

skipif mysql # not compatible
query I rowsort label-541
SELECT DISTINCT - - CAST ( - AVG ( - + col1 ) AS INTEGER ) AS col0 FROM tab0 AS cor0 WHERE col2 = - 4 * + ( + - 98 ) * + 60
----
NULL

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-545
SELECT ALL + SUM( DISTINCT 0 ) + - 73 FROM tab1 cor0
----
-73

skipif mysql # not compatible
query I rowsort label-545
SELECT ALL + SUM ( DISTINCT 0 ) + - 73 FROM tab1 cor0
----
-73

query I rowsort
SELECT ALL - - 73 + + col0 FROM tab0 AS cor0
----
160
170
88

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

skipif mysql # not compatible
query I rowsort label-547
SELECT DISTINCT + COUNT ( DISTINCT + col2 ) + 11 FROM tab1
----
14

onlyif mysql # DIV for integer division: 
query I rowsort label-548
SELECT ALL - col0 DIV ( col0 ) AS col1 FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-548
SELECT ALL - col0 / ( col0 ) AS col1 FROM tab1
----
-1
-1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-549
SELECT 28 * 78 * + 11 * - ( + - COUNT( * ) ) AS col0 FROM tab1
----
72072

skipif mysql # not compatible
query I rowsort label-549
SELECT 28 * 78 * + 11 * - ( + - COUNT ( * ) ) AS col0 FROM tab1
----
72072

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

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

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

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

query I rowsort
SELECT col0 - + + col1 AS col1 FROM tab0 WHERE NULL IN ( col2, col1 / + 98 )
----

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

skipif mysql # not compatible
query I rowsort label-553
SELECT ALL + + SUM ( ALL col2 ) FROM tab1 AS cor0
----
223

query I rowsort
SELECT DISTINCT + 0 * - + col0 + - - col0 + - ( - col2 ) AS col2 FROM tab2 cor0
----
104
133
69

query I rowsort
SELECT - col2 * + col2 + - col2 AS col1 FROM tab2 AS cor0
----
-1640
-3422
-552

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-556
SELECT + - COUNT( * ) FROM tab2 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) IS NULL
----
0

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

onlyif mysql # DIV for integer division: 
query I rowsort label-557
SELECT 79 DIV + 96 AS col0 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-557
SELECT 79 / + 96 AS col0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT 24 * + 37 AS col1 FROM tab1 cor0
----
888
888
888

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( - + col2 ) * + ( - col0 ) + - 30 * + col2 col1 FROM tab1
----
2016
3245
4148

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

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

query III rowsort
SELECT * FROM tab0 WHERE NOT + 85 NOT BETWEEN - 68 AND NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-565
SELECT ALL + + 26 * - - COUNT( * ) AS col2 FROM tab2 AS cor0
----
78

skipif mysql # not compatible
query I rowsort label-565
SELECT ALL + + 26 * - - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
78

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

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

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

query I rowsort
SELECT DISTINCT - - col2 * col2 * col2 + - col2 + + 19 * - 39 * + + col1 AS col1 FROM tab1 AS cor0
----
201615
279537
874266

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NULL IN ( + 39 / + ( + - col1 ) - 92 + + - col2 )
----

query II rowsort
SELECT ALL - + ( - 0 ) * col2 + + col2 + + col2 AS col0, + ( + + 64 ) AS col2 FROM tab0 AS cor0
----
198
64
20
64
94
64

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-572
SELECT + 51 + 65 DIV col0 + 73 FROM tab2 AS cor0
----
124
125
125

skipif mysql # not compatible
query I rowsort label-572
SELECT + 51 + 65 / col0 + 73 FROM tab2 AS cor0
----
124
125
125

onlyif mysql # DIV for integer division: 
query I rowsort label-573
SELECT ALL - - col2 * 93 + - col0 DIV - - 66 AS col0 FROM tab0 AS cor0
----
4371
9206
929

skipif mysql # not compatible
query I rowsort label-573
SELECT ALL - - col2 * 93 + - col0 / - - 66 AS col0 FROM tab0 AS cor0
----
4371
9206
929

onlyif mysql # aggregate syntax: 
query II rowsort label-574
SELECT 20 + + SUM( ALL col2 ), 19 col2 FROM tab2 AS cor0
----
141
19

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-574
SELECT 20 + + SUM ( ALL col2 ), 19 col2 FROM tab2 AS cor0
----
141
19

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

skipif mysql # not compatible
query I rowsort label-575
SELECT - COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NULL < - col0 * col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-576
SELECT ALL + ( MIN( + col2 ) ) + + + COUNT( * ) DIV + CAST( - - ( + + 21 ) AS SIGNED ) AS col0 FROM tab1
----
59

skipif mysql # not compatible
query I rowsort label-576
SELECT ALL + ( MIN ( + col2 ) ) + + + COUNT ( * ) / + CAST ( - - ( + + 21 ) AS INTEGER ) AS col0 FROM tab1
----
59

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

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

query I rowsort
SELECT ALL - - col0 AS col2 FROM tab1 WHERE NOT - 59 * - col0 IS NULL
----
51
85
91

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-581
SELECT DISTINCT COUNT( * ) + - ( + 54 ) AS col2 FROM tab1
----
-51

skipif mysql # not compatible
query I rowsort label-581
SELECT DISTINCT COUNT ( * ) + - ( + 54 ) AS col2 FROM tab1
----
-51

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-582
SELECT ALL - COUNT( * ) DIV 28 AS col2, + 44 + COUNT( * ) AS col1 FROM tab1 WHERE + col1 BETWEEN NULL AND - - 21 * col2 DIV col0 * + 72
----
0
44

skipif mysql # not compatible
query II rowsort label-582
SELECT ALL - COUNT ( * ) / 28 AS col2, + 44 + COUNT ( * ) AS col1 FROM tab1 WHERE + col1 BETWEEN NULL AND - - 21 * col2 / col0 * + 72
----
0
44

onlyif mysql # aggregate syntax: 
query I rowsort label-583
SELECT DISTINCT + SUM( DISTINCT - - col1 ) - COUNT( * ) col2 FROM tab0
----
100

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-583
SELECT DISTINCT + SUM ( DISTINCT - - col1 ) - COUNT ( * ) col2 FROM tab0
----
100

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

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

query I rowsort
SELECT ALL 93 * + 98 AS col1 FROM tab2 AS cor0
----
9114
9114
9114

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-586
SELECT ALL - CAST( + + COUNT( * ) AS SIGNED ) * - 14 AS col0 FROM tab0
----
42

skipif mysql # not compatible
query I rowsort label-586
SELECT ALL - CAST ( + + COUNT ( * ) AS INTEGER ) * - 14 AS col0 FROM tab0
----
42

query I rowsort
SELECT DISTINCT + + 24 FROM tab2 cor0
----
24

query I rowsort
SELECT ALL 29 * + - col0 AS col0 FROM tab1 AS cor0
----
-1479
-2465
-2639

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-589
SELECT DISTINCT COUNT( * ), + CAST( NULL AS SIGNED ) + + COUNT( * ) AS col0 FROM tab0
----
3
NULL

skipif mysql # not compatible
query II rowsort label-589
SELECT DISTINCT COUNT ( * ), + CAST ( NULL AS INTEGER ) + + COUNT ( * ) AS col0 FROM tab0
----
3
NULL

query I rowsort
SELECT - 78 * + - 86 AS col2 FROM tab1
----
6708
6708
6708

query II rowsort
SELECT DISTINCT + col0 AS col1, 57 * - col0 * col0 FROM tab2
----
46
-120612
64
-233472
75
-320625

query II rowsort
SELECT DISTINCT - 52, 9 AS col0 FROM tab1
----
-52
9

onlyif mysql # DIV for integer division: 
query I rowsort label-593
SELECT col1 DIV 75 FROM tab2
----
0
0
1

skipif mysql # not compatible
query I rowsort label-593
SELECT col1 / 75 FROM tab2
----
0
0
1

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

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

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NOT - col2 * + col2 * 58 = NULL )
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-597
SELECT 90 + - COUNT( * ) col0 FROM tab2
----
87

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-598
SELECT DISTINCT - CAST( 10 AS SIGNED ) FROM tab0
----
-10

skipif mysql # not compatible
query I rowsort label-598
SELECT DISTINCT - CAST ( 10 AS INTEGER ) FROM tab0
----
-10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-599
SELECT DISTINCT col1 + CAST( + 27 AS SIGNED ) FROM tab2
----
104
78
94

skipif mysql # not compatible
query I rowsort label-599
SELECT DISTINCT col1 + CAST ( + 27 AS INTEGER ) FROM tab2
----
104
78
94

onlyif mysql # aggregate syntax: 
query I rowsort label-600
SELECT DISTINCT COUNT( * ) + 37 col2 FROM tab1
----
40

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-600
SELECT DISTINCT COUNT ( * ) + 37 col2 FROM tab1
----
40

onlyif mysql # DIV for integer division: 
query I rowsort label-601
SELECT ALL col2 + 36 DIV + col0 FROM tab1
----
59
68
96

skipif mysql # not compatible
query I rowsort label-601
SELECT ALL col2 + 36 / + col0 FROM tab1
----
59
68
96

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

query I rowsort
SELECT DISTINCT col0 + + col0 * col2 FROM tab0 WHERE col1 < - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-604
SELECT DISTINCT + MAX( DISTINCT + col2 ) FROM tab0
----
99

skipif mysql # not compatible
query I rowsort label-604
SELECT DISTINCT + MAX ( DISTINCT + col2 ) FROM tab0
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-605
SELECT ALL ( - COUNT( * ) ) + - 99 FROM tab2
----
-102

skipif mysql # not compatible
query I rowsort label-605
SELECT ALL ( - COUNT ( * ) ) + - 99 FROM tab2
----
-102

query I rowsort
SELECT ALL - col2 * - 68 + + 11 AS col2 FROM tab2
----
1575
2731
3955

onlyif mysql # aggregate syntax: 
query I rowsort label-607
SELECT + ( - COUNT( * ) ) AS col2 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-607
SELECT + ( - COUNT ( * ) ) AS col2 FROM tab2
----
-3

query I rowsort
SELECT 30 + 96 FROM tab2
----
126
126
126

onlyif mysql # aggregate syntax: 
query I rowsort label-609
SELECT ALL SUM( - 5 ) / + COUNT( * ) + COUNT( * ) FROM tab2 WHERE NOT NULL IN ( - 42 )
----
NULL

skipif mysql # not compatible
query I rowsort label-609
SELECT ALL SUM ( - 5 ) / + COUNT ( * ) + COUNT ( * ) FROM tab2 WHERE NOT NULL IN ( - 42 )
----
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( + 60 ) IN ( - 34 + + 37 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL IN ( + ( + col1 ) )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + col1 NOT IN ( 43 * - col0 )
----

query I rowsort
SELECT DISTINCT + 20 * + col1 AS col1 FROM tab0
----
1620
20
420

onlyif mysql # aggregate syntax: 
query I rowsort label-614
SELECT SUM( 94 ) AS col2 FROM tab0
----
282

skipif mysql # not compatible
query I rowsort label-614
SELECT SUM ( 94 ) AS col2 FROM tab0
----
282

query I rowsort
SELECT DISTINCT + ( col0 ) * + col2 FROM tab1
----
4896
5015
6188

query I rowsort
SELECT DISTINCT + 35 * 80 FROM tab1
----
2800

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

onlyif mysql # DIV for integer division: 
query I rowsort label-618
SELECT 3 DIV col0 AS col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-618
SELECT 3 / col0 AS col0 FROM tab1
----
0
0
0

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-620
SELECT 97 DIV COUNT( * ) FROM tab0
----
32

skipif mysql # not compatible
query I rowsort label-620
SELECT 97 / COUNT ( * ) FROM tab0
----
32

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

query I rowsort
SELECT DISTINCT - col1 - + 58 * col0 FROM tab0
----
-5067
-5627
-951

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-623
SELECT - ( + SUM( DISTINCT col0 ) ) * + SUM( ALL 56 DIV col1 ) FROM tab0
----
-11542

skipif mysql # not compatible
query I rowsort label-623
SELECT - ( + SUM ( DISTINCT col0 ) ) * + SUM ( ALL 56 / col1 ) FROM tab0
----
-11542

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

skipif mysql # not compatible
query I rowsort label-624
SELECT DISTINCT 49 / + col0 FROM tab2
----
0
1

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col1 NOT BETWEEN - 4 / + 85 AND - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + 45 * - col1 AS col1 FROM tab0 AS cor0
----
-3645
-45
-945

query I rowsort
SELECT ALL 50 * col1 FROM tab0 cor0
----
1050
4050
50

query I rowsort
SELECT ALL + col1 * 65 AS col0 FROM tab2 AS cor0
----
3315
4355
5005

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( 73 ) NOT BETWEEN NULL AND + col0
----
46
51
23
64
77
40

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

query I rowsort
SELECT - 22 * - 42 AS col1 FROM tab1 AS cor0
----
924
924
924

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-632
SELECT + 89 * CAST( NULL AS DECIMAL ) + col2 AS col2 FROM tab2 WHERE NOT 45 * col1 IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-632
SELECT + 89 * CAST ( NULL AS REAL ) + col2 AS col2 FROM tab2 WHERE NOT 45 * col1 IS NULL
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT + 56 <> - col0
----

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-636
SELECT - CAST( COUNT( * ) AS SIGNED ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-636
SELECT - CAST ( COUNT ( * ) AS INTEGER ) FROM tab1 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-637
SELECT MIN( col1 ) FROM tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-637
SELECT MIN ( col1 ) FROM tab1 AS cor0
----
5

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT NULL <= ( NULL )
----

query I rowsort
SELECT - + 0 * 15 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-640
SELECT - COUNT( 29 ) * + 86 FROM tab1 AS cor0
----
-258

skipif mysql # not compatible
query I rowsort label-640
SELECT - COUNT ( 29 ) * + 86 FROM tab1 AS cor0
----
-258

onlyif mysql # aggregate syntax: 
query I rowsort label-641
SELECT DISTINCT + SUM( ALL 17 ) AS col2 FROM tab2 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-641
SELECT DISTINCT + SUM ( ALL 17 ) AS col2 FROM tab2 AS cor0
----
51

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

onlyif mysql # aggregate syntax: 
query I rowsort label-643
SELECT ALL + SUM( ALL + col0 ) FROM tab1 AS cor0
----
227

skipif mysql # not compatible
query I rowsort label-643
SELECT ALL + SUM ( ALL + col0 ) FROM tab1 AS cor0
----
227

onlyif mysql # aggregate syntax: 
query I rowsort label-644
SELECT DISTINCT SUM( 7 ) AS col2 FROM tab1
----
21

skipif mysql # not compatible
query I rowsort label-644
SELECT DISTINCT SUM ( 7 ) AS col2 FROM tab1
----
21

query I rowsort
SELECT - col2 * + + col2 FROM tab2
----
-1600
-3364
-529

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

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

query I rowsort
SELECT + 36 * + 63 * ( - 55 * - 19 ) AS col2 FROM tab0
----
2370060
2370060
2370060

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-648
SELECT * FROM tab2 WHERE NOT ( + 20 ) >= CAST( + 32 AS SIGNED ) + + 51
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-648
SELECT * FROM tab2 WHERE NOT ( + 20 ) >= CAST ( + 32 AS INTEGER ) + + 51
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL NOT IN ( ( - col1 ) * 55 - 94 )
----

query I rowsort
SELECT ALL ( + col1 ) AS col1 FROM tab1 WHERE col0 BETWEEN NULL AND + col1
----

query I rowsort
SELECT col0 FROM tab1 WHERE NOT col1 / + col2 >= ( NULL )
----

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

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

query I rowsort
SELECT DISTINCT - 76 * + col0 * + 64 + - 3 AS col1 FROM tab0 AS cor0
----
-423171
-471811
-72963

query III rowsort
SELECT * FROM tab2 WHERE col2 + col0 IN ( - 42 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-655
SELECT DISTINCT * FROM tab2, tab1 AS cor0 WHERE NULL NOT BETWEEN ( + ( + ( 91 ) ) * + CAST( NULL AS SIGNED ) - 26 ) AND NULL
----

skipif mysql # not compatible
query IIIIII rowsort label-655
SELECT DISTINCT * FROM tab2, tab1 AS cor0 WHERE NULL NOT BETWEEN ( + ( + ( 91 ) ) * + CAST ( NULL AS INTEGER ) - 26 ) AND NULL
----

query I rowsort
SELECT ALL - col2 + col0 * - 35 AS col0 FROM tab1 WHERE - + col1 * + col2 - col0 * + col1 NOT IN ( + 25 / - col2 - 13 )
----
-1881
-3034
-3253

query I rowsort
SELECT col2 + + 92 FROM tab1
----
151
160
188

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-658
SELECT - COUNT( * ) * - CAST( NULL AS SIGNED ) + AVG ( ALL col1 ) - 29 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-658
SELECT - COUNT ( * ) * - CAST ( NULL AS INTEGER ) + AVG ( ALL col1 ) - 29 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT + 0 + 23 * - col0 FROM tab2 cor0 WHERE ( - ( - + col1 ) * - col2 ) <= + col0
----
-1058
-1472
-1725

query I rowsort
SELECT col2 FROM tab0 AS cor0 WHERE - col2 / + col2 * col0 NOT IN ( + 45 + 75 )
----
10
47
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * + col0 * 17 col1 FROM tab0 AS cor0
----
-128673
-159953
-3825

query I rowsort
SELECT ALL - col1 AS col0 FROM tab2 AS cor0 WHERE ( + col2 ) = NULL OR NOT col0 < + col0
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-663
SELECT - + COUNT( * ) + ( - + 29 ) * - 27 col1 FROM tab2 AS cor0
----
780

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-663
SELECT - + COUNT ( * ) + ( - + 29 ) * - 27 col1 FROM tab2 AS cor0
----
780

query I rowsort
SELECT - 83 + col2 AS col1 FROM tab1 AS cor0
----
-15
-24
13

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-666
SELECT ALL * FROM tab1 AS cor0 WHERE 88 IN ( - col0 * CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-666
SELECT ALL * FROM tab1 AS cor0 WHERE 88 IN ( - col0 * CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT + + 72 + + - 23 AS col2 FROM tab2 AS cor0
----
49
49
49

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

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

query III rowsort
SELECT * FROM tab0 WHERE 78 IS NULL
----

query I rowsort
SELECT ALL 92 + col2 FROM tab0
----
102
139
191

query I rowsort
SELECT ALL 62 + - - col2 AS col1 FROM tab2
----
102
120
85

query I rowsort
SELECT DISTINCT col2 * col2 - col1 + + col0 AS col0 FROM tab1
----
3561
4668
9253

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 20 col0 FROM tab1 WHERE NULL < NULL
----

query I rowsort
SELECT DISTINCT 46 + col0 AS col1 FROM tab1
----
131
137
97

onlyif mysql # aggregate syntax: 
query I rowsort label-676
SELECT ALL MIN( DISTINCT + 56 ) - MIN( ALL col1 ) + 94 col1 FROM tab0
----
149

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-676
SELECT ALL MIN ( DISTINCT + 56 ) - MIN ( ALL col1 ) + 94 col1 FROM tab0
----
149

query I rowsort
SELECT DISTINCT + col0 + ( 77 ) + 74 FROM tab0
----
166
238
248

onlyif mysql # aggregate syntax: 
query I rowsort label-678
SELECT ALL + - COUNT( - - col2 ) * + COUNT( * ) * + 28 col2 FROM tab1 AS cor0
----
-252

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-678
SELECT ALL + - COUNT ( - - col2 ) * + COUNT ( * ) * + 28 col2 FROM tab1 AS cor0
----
-252

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 35 * + + col0 > NULL
----

query I rowsort
SELECT DISTINCT 18 * - col0 FROM tab1 AS cor0 WHERE NULL <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-681
SELECT DISTINCT + col2 AS col1, - col1 * + - 47 / + CAST( NULL AS SIGNED ) col0 FROM tab1
----
59
NULL
68
NULL
96
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-681
SELECT DISTINCT + col2 AS col1, - col1 * + - 47 / + CAST ( NULL AS INTEGER ) col0 FROM tab1
----
59
NULL
68
NULL
96
NULL

query I rowsort
SELECT ALL + ( + + 88 ) * - 71 AS col0 FROM tab2
----
-6248
-6248
-6248

query I rowsort
SELECT DISTINCT 53 * + - col1 FROM tab2
----
-2703
-3551
-4081

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-684
SELECT ALL * FROM tab1 WHERE NULL BETWEEN - CAST( NULL AS SIGNED ) AND ( + 92 - col0 )
----

skipif mysql # not compatible
query III rowsort label-684
SELECT ALL * FROM tab1 WHERE NULL BETWEEN - CAST ( NULL AS INTEGER ) AND ( + 92 - col0 )
----

query I rowsort
SELECT - 23 * + col1 AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-1081
-115
-322

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

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

query I rowsort
SELECT - ( col1 ) * + 67 AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-1407
-5427
-67

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-688
SELECT ALL ( + COUNT( * ) ) DIV + COUNT( * ) * - COUNT( DISTINCT - 50 ) FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-688
SELECT ALL ( + COUNT ( * ) ) / + COUNT ( * ) * - COUNT ( DISTINCT - 50 ) FROM tab2 AS cor0
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-689
SELECT DISTINCT + - ( - 25 ) DIV + 59 + COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN NULL AND - 1 + col0
----
0

skipif mysql # not compatible
query I rowsort label-689
SELECT DISTINCT + - ( - 25 ) / + 59 + COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN NULL AND - 1 + col0
----
0

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

query I rowsort
SELECT - - col0 * + col0 * + + col0 FROM tab1 AS cor0
----
132651
614125
753571

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

onlyif mysql # aggregate syntax: 
query I rowsort label-693
SELECT ALL COUNT( * ) AS col0 FROM tab2, tab0 cor0
----
9

skipif mysql # not compatible
query I rowsort label-693
SELECT ALL COUNT ( * ) AS col0 FROM tab2, tab0 cor0
----
9

query II rowsort
SELECT - col0, col2 AS col0 FROM tab2 WHERE NOT NULL <> + 91
----

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

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

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

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL BETWEEN col1 * + 17 * - + 66 AND ( NULL )
----

query II rowsort
SELECT col0, col2 + + + col2 FROM tab1
----
51
192
85
118
91
136

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

onlyif mysql # DIV for integer division: 
query I rowsort label-700
SELECT ALL col2 DIV 5 DIV - 55 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-700
SELECT ALL col2 / 5 / - 55 FROM tab2
----
0
0
0

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NOT NULL >= NULL )
----

query I rowsort
SELECT + + ( col2 ) * - col0 + 95 AS col1 FROM tab0 WHERE NOT ( NOT ( NOT NULL <= NULL ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 * - + col1 col1 FROM tab0 WHERE NOT NULL <> NULL
----

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

query II rowsort
SELECT ALL - + 50 AS col0, - col1 FROM tab0 AS cor0
----
-50
-1
-50
-21
-50
-81

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-708
SELECT 61 AS col2 FROM tab0 WHERE NULL = ( CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-708
SELECT 61 AS col2 FROM tab0 WHERE NULL = ( CAST ( NULL AS INTEGER ) )
----

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

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

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

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

query I rowsort
SELECT - 57 - + col0 AS col1 FROM tab2 AS cor0
----
-103
-121
-132

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-717
SELECT - SUM( + - 65 ) - + 94 FROM tab0
----
101

skipif mysql # not compatible
query I rowsort label-717
SELECT - SUM ( + - 65 ) - + 94 FROM tab0
----
101

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL IN ( - col2, 4 )
----

query I rowsort
SELECT ALL col1 + + - ( col1 ) FROM tab0
----
0
0
0

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-721
SELECT + col0 FROM tab2 WHERE NULL BETWEEN - col0 AND CAST( 31 AS SIGNED ) * + - 18
----

skipif mysql # not compatible
query I rowsort label-721
SELECT + col0 FROM tab2 WHERE NULL BETWEEN - col0 AND CAST ( 31 AS INTEGER ) * + - 18
----

query I rowsort
SELECT DISTINCT + 79 * 11 AS col2 FROM tab1 AS cor0
----
869

query I rowsort
SELECT 53 * col0 FROM tab1 cor0
----
2703
4505
4823

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * + + col2 - - col0 + - - 12 col2 FROM tab2 AS cor0
----
1231
3156
3973

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

query I rowsort
SELECT + ( col0 ) FROM tab2 WHERE NOT NULL BETWEEN col1 / 49 - 26 AND NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NOT ( NOT ( + ( + 32 ) IS NOT NULL ) ) )
----

query I rowsort
SELECT ALL 73 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to e5fbf5d129b181bacd6113bbc8732496

query I rowsort
SELECT - + 62 AS col2 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to f0e93f6ff5fc3cf50a14e276206dad5c

onlyif mysql # aggregate syntax: 
query I rowsort label-730
SELECT DISTINCT - MAX( + - col1 ) FROM tab0 cor0
----
1

skipif mysql # not compatible
query I rowsort label-730
SELECT DISTINCT - MAX ( + - col1 ) FROM tab0 cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-731
SELECT DISTINCT - COUNT( col1 ) FROM tab0 AS cor0 WHERE col0 BETWEEN - 62 * + col0 - 13 - + - col1 * col0 * col2 - 52 * + 76 AND ( 34 * 74 )
----
-1

skipif mysql # not compatible
query I rowsort label-731
SELECT DISTINCT - COUNT ( col1 ) FROM tab0 AS cor0 WHERE col0 BETWEEN - 62 * + col0 - 13 - + - col1 * col0 * col2 - 52 * + 76 AND ( 34 * 74 )
----
-1

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

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

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

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

skipif mysql # not compatible
query I rowsort label-734
SELECT + + COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NOT 67 / - col2 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-735
SELECT - COUNT( * ) * + + 5 AS col0 FROM tab1 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-735
SELECT - COUNT ( * ) * + + 5 AS col0 FROM tab1 AS cor0
----
-15

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-739
SELECT DISTINCT - CAST( + + col2 AS SIGNED ) DIV + 18 FROM tab1
----
-3
-5

skipif mysql # not compatible
query I rowsort label-739
SELECT DISTINCT - CAST ( + + col2 AS INTEGER ) / + 18 FROM tab1
----
-3
-5

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

skipif mysql # not compatible
query I rowsort label-740
SELECT ALL + COUNT ( * ) / - 50 FROM tab1
----
0

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

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

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

skipif mysql # not compatible
query I rowsort label-742
SELECT ALL col1 / + + col2 FROM tab0
----
0
1
2

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

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

query I rowsort
SELECT - + 32 * col2 FROM tab0 cor0
----
-1504
-3168
-320

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-745
SELECT ALL - - 68 * - 0 AS col2 FROM tab0 AS cor0 WHERE NOT + CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-745
SELECT ALL - - 68 * - 0 AS col2 FROM tab0 AS cor0 WHERE NOT + CAST ( NULL AS INTEGER ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-746
SELECT ALL - COUNT( * ) + COUNT( * ) AS col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-746
SELECT ALL - COUNT ( * ) + COUNT ( * ) AS col1 FROM tab0
----
0

query I rowsort
SELECT + + 38 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to afaddad0a4e3a1683a1c8cbe6eb522a7

query I rowsort
SELECT col2 FROM tab1 WHERE col0 - + 7 + - col0 - - col1 IS NULL
----

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

skipif mysql # not compatible
query II rowsort label-749
SELECT - col2 + - col0 + + + col1 + + CAST ( NULL AS REAL ) + 1 * col2, - col0 AS col1 FROM tab0 AS cor0
----
NULL
-15
NULL
-87
NULL
-97

query I rowsort
SELECT ALL col1 - + ( - 57 ) AS col1 FROM tab0 AS cor0
----
138
58
78

onlyif mysql # aggregate syntax: 
query I rowsort label-751
SELECT MAX( - 93 ) * + - 84 + + + ( - 79 ) FROM tab2 AS cor0
----
7733

skipif mysql # not compatible
query I rowsort label-751
SELECT MAX ( - 93 ) * + - 84 + + + ( - 79 ) FROM tab2 AS cor0
----
7733

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

onlyif mysql # aggregate syntax: 
query II rowsort label-753
SELECT 93, 43 + COUNT( * ) * + + 15 AS col0 FROM tab1 AS cor0
----
93
88

skipif mysql # not compatible
query II rowsort label-753
SELECT 93, 43 + COUNT ( * ) * + + 15 AS col0 FROM tab1 AS cor0
----
93
88

onlyif mysql # DIV for integer division: 
query I rowsort label-754
SELECT ALL col2 * - 75 + col1 DIV + col0 * + col1 FROM tab1 WHERE NOT col2 + + col1 IS NULL
----
-4425
-5100
-7200

skipif mysql # not compatible
query I rowsort label-754
SELECT ALL col2 * - 75 + col1 / + col0 * + col1 FROM tab1 WHERE NOT col2 + + col1 IS NULL
----
-4425
-5100
-7200

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

query I rowsort
SELECT DISTINCT + col2 FROM tab0 WHERE NOT - + ( - 89 ) IS NOT NULL
----

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

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 51 * col0 <= + + 77
----

query II rowsort
SELECT + col0 AS col2, col0 AS col2 FROM tab1 AS cor0 WHERE NOT NULL = NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-761
SELECT MIN( DISTINCT - - 51 ) AS col0 FROM tab1
----
51

skipif mysql # not compatible
query I rowsort label-761
SELECT MIN ( DISTINCT - - 51 ) AS col0 FROM tab1
----
51

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL = + 40
----

query I rowsort
SELECT col2 * + - col1 AS col1 FROM tab0
----
-210
-3807
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-764
SELECT MIN( 40 ) FROM tab2
----
40

skipif mysql # not compatible
query I rowsort label-764
SELECT MIN ( 40 ) FROM tab2
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-765
SELECT ( COUNT( * ) ) * - + COUNT( DISTINCT + col1 ) AS col1 FROM tab0
----
-9

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + + 93 col0 FROM tab1 WHERE NOT - + col0 IS NULL
----
152
161
189

onlyif mysql # aggregate syntax: 
query I rowsort label-767
SELECT ALL + + COUNT( DISTINCT 63 ) AS col1 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-767
SELECT ALL + + COUNT ( DISTINCT 63 ) AS col1 FROM tab0 AS cor0
----
1

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( col2 * col1 ) <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-769
SELECT + CAST( NULL AS SIGNED ), + col1 * - 16 AS col1 FROM tab1 WHERE - ( + col0 ) NOT BETWEEN - col2 AND - 75
----
NULL
-224
NULL
-752
NULL
-80

skipif mysql # not compatible
query II rowsort label-769
SELECT + CAST ( NULL AS INTEGER ), + col1 * - 16 AS col1 FROM tab1 WHERE - ( + col0 ) NOT BETWEEN - col2 AND - 75
----
NULL
-224
NULL
-752
NULL
-80

query I rowsort
SELECT 52 * + + col2 AS col2 FROM tab0
----
2444
5148
520

query III rowsort
SELECT * FROM tab1 WHERE 99 NOT BETWEEN NULL AND + - 40
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-772
SELECT COUNT( - 68 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-772
SELECT COUNT ( - 68 ) FROM tab1
----
3

query I rowsort
SELECT ALL + ( col2 ) + col2 AS col0 FROM tab1
----
118
136
192

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-775
SELECT + col2 DIV + 30 FROM tab0 WHERE NOT NULL IS NOT NULL OR NULL IS NULL
----
0
1
3

skipif mysql # not compatible
query I rowsort label-775
SELECT + col2 / + 30 FROM tab0 WHERE NOT NULL IS NOT NULL OR NULL IS NULL
----
0
1
3

query I rowsort
SELECT ( + - col0 ) * - 44 FROM tab1
----
2244
3740
4004

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-777
SELECT 34 * CAST( NULL AS SIGNED ) col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-777
SELECT 34 * CAST ( NULL AS INTEGER ) col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-778
SELECT - COUNT( - + col2 ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-778
SELECT - COUNT ( - + col2 ) FROM tab2
----
-3

query I rowsort
SELECT 41 + - - col2 * + col1 FROM tab1
----
1385
3237
336

onlyif mysql # aggregate syntax: 
query II rowsort label-780
SELECT 9 AS col0, COUNT( * ) col1 FROM tab0 AS cor0 WHERE NULL BETWEEN NULL AND NULL
----
9
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-780
SELECT 9 AS col0, COUNT ( * ) col1 FROM tab0 AS cor0 WHERE NULL BETWEEN NULL AND NULL
----
9
0

onlyif mysql # aggregate syntax: 
query I rowsort label-781
SELECT COUNT( * ) + COUNT( * ) * 85 AS col1 FROM tab2 AS cor0
----
258

skipif mysql # not compatible
query I rowsort label-781
SELECT COUNT ( * ) + COUNT ( * ) * 85 AS col1 FROM tab2 AS cor0
----
258

query I rowsort
SELECT - col1 * - col0 * + col1 FROM tab2
----
119646
336675
379456

query I rowsort
SELECT - + 42 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 9894093f29c0defae91347934f060329

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

query I rowsort
SELECT DISTINCT - 34 - col2 AS col1 FROM tab1 AS cor0
----
-102
-130
-93

query I rowsort
SELECT DISTINCT + - col1 - - + col0 * col0 * - col1 AS col2 FROM tab1 AS cor0
----
-36130
-36428
-389254

onlyif mysql # aggregate syntax: 
query I rowsort label-787
SELECT ALL COUNT( * ) - + 15 FROM tab0 AS cor0
----
-12

skipif mysql # not compatible
query I rowsort label-787
SELECT ALL COUNT ( * ) - + 15 FROM tab0 AS cor0
----
-12

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL BETWEEN NULL AND + 82
----

query II rowsort
SELECT + col2, 95 AS col1 FROM tab1 AS cor0
----
59
95
68
95
96
95

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

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

skipif mysql # not compatible
query I rowsort label-791
SELECT DISTINCT - 71 / + col0 AS col1 FROM tab1 AS cor0
----
-1
0

query I rowsort
SELECT + 84 * + - 14 AS col1 FROM tab1
----
-1176
-1176
-1176

query II rowsort
SELECT col2, 62 AS col2 FROM tab0
----
10
62
47
62
99
62

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-796
SELECT SUM( - 24 ) AS col2, COUNT( * ) * 99 col2 FROM tab1
----
-72
297

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-796
SELECT SUM ( - 24 ) AS col2, COUNT ( * ) * 99 col2 FROM tab1
----
-72
297

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-797
SELECT ALL MIN( - CAST( NULL AS SIGNED ) ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-797
SELECT ALL MIN ( - CAST ( NULL AS INTEGER ) ) FROM tab2
----
NULL

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-800
SELECT ALL + CAST( NULL AS SIGNED ) col0, - col0 FROM tab2
----
NULL
-46
NULL
-64
NULL
-75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-800
SELECT ALL + CAST ( NULL AS INTEGER ) col0, - col0 FROM tab2
----
NULL
-46
NULL
-64
NULL
-75

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

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

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

skipif mysql # not compatible
query I rowsort label-802
SELECT + ( SUM ( - col2 ) ) AS col2 FROM tab1 AS cor0
----
-223

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL < ( 61 )
----

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

query I rowsort
SELECT DISTINCT + + col0 * + 85 FROM tab2 AS cor0
----
3910
5440
6375

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE col2 < 39 * + 77 * - - col1 * col2 / + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NULL <= ( + - col1 ) )
----

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

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

query I rowsort
SELECT DISTINCT 69 * + 65 * + + 41 AS col2 FROM tab1
----
183885

onlyif mysql # aggregate syntax: 
query I rowsort label-810
SELECT DISTINCT - 60 * - MIN( 16 ) AS col1 FROM tab2 AS cor0
----
960

skipif mysql # not compatible
query I rowsort label-810
SELECT DISTINCT - 60 * - MIN ( 16 ) AS col1 FROM tab2 AS cor0
----
960

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-811
SELECT * FROM tab0 AS cor0 WHERE NULL IN ( - 3, - col2, - + 94 / + + CAST( NULL AS SIGNED ) / + col1, CAST( NULL AS SIGNED ) * col2 + + col1 * col0, - ( - col1 ) )
----

skipif mysql # not compatible
query III rowsort label-811
SELECT * FROM tab0 AS cor0 WHERE NULL IN ( - 3, - col2, - + 94 / + + CAST ( NULL AS INTEGER ) / + col1, CAST ( NULL AS INTEGER ) * col2 + + col1 * col0, - ( - col1 ) )
----

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

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

query I rowsort
SELECT + - 38 FROM tab0 cor0 WHERE ( NULL ) IS NULL
----
-38
-38
-38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-814
SELECT col2 + col1 + col0 * col1 * + ( CAST( col2 AS SIGNED ) ) FROM tab0 AS cor0
----
18301
57233
9703

skipif mysql # not compatible
query I rowsort label-814
SELECT col2 + col1 + col0 * col1 * + ( CAST ( col2 AS INTEGER ) ) FROM tab0 AS cor0
----
18301
57233
9703

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-816
SELECT ALL + - CAST( - ( ( col0 ) ) AS SIGNED ) * + 35 + - + col0 + + - 17 AS col1 FROM tab0 AS cor0
----
2941
3281
493

skipif mysql # not compatible
query I rowsort label-816
SELECT ALL + - CAST ( - ( ( col0 ) ) AS INTEGER ) * + 35 + - + col0 + + - 17 AS col1 FROM tab0 AS cor0
----
2941
3281
493

query I rowsort
SELECT DISTINCT col0 + - col1 * + col0 AS col1 FROM tab0 cor0
----
-1200
-1740
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + 31 * - 18 <= NULL
----

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

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

query I rowsort
SELECT DISTINCT col2 + - 70 + - col1 AS col2 FROM tab1
----
-16
-49
12

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

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

query I rowsort
SELECT ALL - 15 * 86 AS col0 FROM tab2
----
-1290
-1290
-1290

query I rowsort
SELECT ALL + col1 * - ( + 63 ) AS col0 FROM tab1
----
-2961
-315
-882

query I rowsort
SELECT ALL + + col1 - 86 AS col0 FROM tab2 AS cor0
----
-19
-35
-9

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

onlyif mysql # DIV for integer division: 
query I rowsort label-826
SELECT DISTINCT - - col2 DIV + 11 FROM tab2 AS cor0
----
2
3
5

skipif mysql # not compatible
query I rowsort label-826
SELECT DISTINCT - - col2 / + 11 FROM tab2 AS cor0
----
2
3
5

query I rowsort
SELECT - 62 - - - col1 AS col2 FROM tab2
----
-113
-129
-139

query IIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 LEFT OUTER JOIN tab0 AS cor1 ON NOT NULL IS NULL
----
18 values hashing to 18b19f89ce73392082a69acc4aed78f1

query I rowsort
SELECT DISTINCT - col0 - - - col2 + + - col0 * - col0 FROM tab1
----
2454
7081
8122

query I rowsort
SELECT 48 + + col0 AS col2 FROM tab1
----
133
139
99

query I rowsort
SELECT col1 + + - col1 FROM tab1
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-832
SELECT ALL - CAST( NULL AS SIGNED ) - + 10 / 87 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-832
SELECT ALL - CAST ( NULL AS INTEGER ) - + 10 / 87 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-833
SELECT ALL + COUNT( * ) DIV - COUNT( * ) - - COUNT( DISTINCT - - CAST( - col2 AS SIGNED ) ) FROM tab0
----
2

skipif mysql # not compatible
query I rowsort label-833
SELECT ALL + COUNT ( * ) / - COUNT ( * ) - - COUNT ( DISTINCT - - CAST ( - col2 AS INTEGER ) ) FROM tab0
----
2

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

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col1 - + 95 + 16 BETWEEN + - col2 AND + 51 + - - 54 * col1 * + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - 13 * - col0 AS col0 FROM tab0 AS cor0
----
1131
1261
195

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

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

skipif mysql # not compatible
query I rowsort label-838
SELECT DISTINCT MAX ( ALL CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col1 IN ( - + col0, col0, 10 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-840
SELECT DISTINCT - COUNT( DISTINCT - + 7 ) AS col2 FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-840
SELECT DISTINCT - COUNT ( DISTINCT - + 7 ) AS col2 FROM tab2
----
-1

query I rowsort
SELECT ALL + col0 FROM tab1 WHERE NOT - col0 * + col0 < - - col2
----

query II rowsort
SELECT 83, 89 * + + 76 AS col0 FROM tab2
----
83
6764
83
6764
83
6764

onlyif mysql # DIV for integer division: 
query I rowsort label-843
SELECT - 62 DIV - 66 AS col2 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-843
SELECT - 62 / - 66 AS col2 FROM tab0
----
0
0
0

query I rowsort
SELECT DISTINCT - + col1 FROM tab2 WHERE NOT + 36 IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-845
SELECT ALL + CAST( + col1 AS DECIMAL ), + col2 AS col1 FROM tab1 WHERE - - 55 IS NULL
----

skipif mysql # not compatible
query II rowsort label-845
SELECT ALL + CAST ( + col1 AS REAL ), + col2 AS col1 FROM tab1 WHERE - - 55 IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-846
SELECT + + CAST( NULL AS DECIMAL ) * + - 24 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-846
SELECT + + CAST ( NULL AS REAL ) * + - 24 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 82 AS col0 FROM tab2 AS cor0 WHERE NULL IN ( col1 + - 22 )
----

query I rowsort
SELECT DISTINCT - - col1 * col1 * - col0 FROM tab1 AS cor0
----
-201019
-2125
-9996

query I rowsort
SELECT ALL ( - 68 ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 5febf382d36d6e0191889c41b928786f

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

query I rowsort
SELECT ALL col2 * + col2 * + - col1 * col1 AS col0 FROM tab1 AS cor0
----
-10214416
-1806336
-87025

query II rowsort
SELECT + 44 AS col2, col2 * + + col0 * - 53 + col2 FROM tab0 AS cor0
----
44
-37318
44
-46100
44
-508860

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 74 - - 82 BETWEEN - + col2 AND NULL
----

query II rowsort
SELECT DISTINCT + col1, - 88 FROM tab0 cor0
----
1
-88
21
-88
81
-88

query I rowsort
SELECT col0 / - 84 AS col0 FROM tab0 cor0 WHERE NULL NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL + col1 FROM tab2 AS cor0 WHERE NULL BETWEEN ( NULL ) AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 80 + - - 63 col1, col1 AS col0 FROM tab0 AS cor0 WHERE col0 IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE + - 83 IS NULL
----

query I rowsort
SELECT DISTINCT + col0 + - 44 FROM tab0
----
-29
43
53

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - - col0 ) col2 FROM tab0
----
-15
-87
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-862
SELECT + COUNT( * ) - MAX( ALL + col1 ) + + COUNT( * ) FROM tab1
----
-41

skipif mysql # not compatible
query I rowsort label-862
SELECT + COUNT ( * ) - MAX ( ALL + col1 ) + + COUNT ( * ) FROM tab1
----
-41

query III rowsort
SELECT * FROM tab1 WHERE col1 < - col1
----

query I rowsort
SELECT + ( 3 ) * + - col1 - + 68 FROM tab2
----
-221
-269
-299

query I rowsort
SELECT - col2 + - - col2 * - + col2 AS col0 FROM tab0
----
-110
-2256
-9900

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL >= NULL AND + col1 / col0 BETWEEN col1 + + col2 AND col2
----

query II rowsort
SELECT col1, col1 FROM tab2 WHERE + 60 < + col0
----
67
67
77
77

onlyif mysql # aggregate syntax: 
query I rowsort label-868
SELECT DISTINCT + COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE NOT ( NOT ( NULL BETWEEN col2 * col2 AND + col0 * - + 79 ) )
----
0

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

query I rowsort
SELECT DISTINCT - 39 * - col0 FROM tab2 AS cor0
----
1794
2496
2925

query I rowsort
SELECT DISTINCT + 9 * + 93 FROM tab2
----
837

query I rowsort
SELECT DISTINCT col0 * + ( + col0 ) FROM tab2
----
2116
4096
5625

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

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col2 + + col2 + - 7 * + + 13 * + col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-874
SELECT DISTINCT COUNT( * ) * 42 AS col2 FROM tab2 AS cor0
----
126

skipif mysql # not compatible
query I rowsort label-874
SELECT DISTINCT COUNT ( * ) * 42 AS col2 FROM tab2 AS cor0
----
126

query I rowsort
SELECT - col2 * + + 84 AS col0 FROM tab0 AS cor0
----
-3948
-8316
-840

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 74 col1 FROM tab1 AS cor0
----
-74
-74
-74

query I rowsort
SELECT + col0 * 69 AS col2 FROM tab1 AS cor0
----
3519
5865
6279

onlyif mysql # DIV for integer division: 
query I rowsort label-878
SELECT + 37 DIV - - col0 AS col1 FROM tab0
----
0
0
2

skipif mysql # not compatible
query I rowsort label-878
SELECT + 37 / - - col0 AS col1 FROM tab0
----
0
0
2

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

query I rowsort
SELECT ALL + + 5 AS col1 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-881
SELECT + CAST( - 60 AS SIGNED ) FROM tab1
----
-60
-60
-60

skipif mysql # not compatible
query I rowsort label-881
SELECT + CAST ( - 60 AS INTEGER ) FROM tab1
----
-60
-60
-60

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * + - col2 col1 FROM tab1
----
4896
5015
6188

query I rowsort
SELECT DISTINCT 71 * + - col2 * + - col1 AS col0 FROM tab1
----
20945
226916
95424

query I rowsort
SELECT ALL 89 * col2 * col1 FROM tab0
----
18690
338823
8811

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

query I rowsort
SELECT - ( 89 ) AS col0 FROM tab2 AS cor0
----
-89
-89
-89

query I rowsort
SELECT 52 * - - ( ( 55 ) ) AS col1 FROM tab1
----
2860
2860
2860

query I rowsort
SELECT col2 + - - col0 AS col1 FROM tab2 AS cor0
----
104
133
69

query I rowsort
SELECT 62 + - ( + ( - col0 ) ) FROM tab0 AS cor0
----
149
159
77

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

query II rowsort
SELECT ALL + - col0 AS col0, - ( + col1 ) AS col0 FROM tab1 AS cor0
----
-51
-14
-85
-5
-91
-47

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 col1, col1 + - col0 FROM tab0 AS cor0
----
15
66
87
-66
97
-96

query I rowsort
SELECT DISTINCT col1 + - 70 + + col2 FROM tab2
----
4
47
55

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-895
SELECT CAST( NULL AS SIGNED ) col0, + col1 * - + col1 AS col2 FROM tab1
----
NULL
-196
NULL
-2209
NULL
-25

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-895
SELECT CAST ( NULL AS INTEGER ) col0, + col1 * - + col1 AS col2 FROM tab1
----
NULL
-196
NULL
-2209
NULL
-25

query I rowsort
SELECT DISTINCT 62 + col2 FROM tab0
----
109
161
72

onlyif mysql # aggregate syntax: 
query I rowsort label-897
SELECT ALL COUNT( + col1 ) + - - 30 col1 FROM tab2
----
33

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-897
SELECT ALL COUNT ( + col1 ) + - - 30 col1 FROM tab2
----
33

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-898
SELECT + MAX( DISTINCT - - col1 ) DIV + 42 AS col1 FROM tab1 cor0
----
1

skipif mysql # not compatible
query I rowsort label-898
SELECT + MAX ( DISTINCT - - col1 ) / + 42 AS col1 FROM tab1 cor0
----
1

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

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

query I rowsort
SELECT ALL - ( + - col0 ) - + col2 AS col0 FROM tab0 AS cor0
----
-2
-32
77

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-902
SELECT - col1 * col1 col0, CAST( + 88 AS SIGNED ) AS col2 FROM tab0
----
-1
88
-441
88
-6561
88

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-902
SELECT - col1 * col1 col0, CAST ( + 88 AS INTEGER ) AS col2 FROM tab0
----
-1
88
-441
88
-6561
88

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

skipif mysql # not compatible
query I rowsort label-903
SELECT ALL + 43 / CAST ( NULL AS INTEGER ) * 34 AS col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-904
SELECT DISTINCT + 97 * + - CAST( NULL AS SIGNED ) AS col1, col0 FROM tab2 AS cor0
----
NULL
46
NULL
64
NULL
75

skipif mysql # not compatible
query II rowsort label-904
SELECT DISTINCT + 97 * + - CAST ( NULL AS INTEGER ) AS col1, col0 FROM tab2 AS cor0
----
NULL
46
NULL
64
NULL
75

query I rowsort
SELECT DISTINCT + 11 AS col2 FROM tab1 AS cor0 WHERE ( NULL ) IN ( + 58, + col0 + + col0 )
----

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

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

query II rowsort
SELECT ALL - ( - 22 ) AS col2, - col2 FROM tab0 cor0
----
22
-10
22
-47
22
-99

onlyif mysql # aggregate syntax: 
query II rowsort label-908
SELECT DISTINCT - 30 * + COUNT( * ), - COUNT( * ) AS col2 FROM tab2 cor0
----
-90
-3

skipif mysql # not compatible
query II rowsort label-908
SELECT DISTINCT - 30 * + COUNT ( * ), - COUNT ( * ) AS col2 FROM tab2 cor0
----
-90
-3

onlyif mysql # DIV for integer division: 
query II rowsort label-909
SELECT ( + col1 ) DIV + col2 col0, + col1 col1 FROM tab1
----
0
14
0
47
0
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-909
SELECT ( + col1 ) / + col2 col0, + col1 col1 FROM tab1
----
0
14
0
47
0
5

query I rowsort
SELECT DISTINCT + col0 + + col2 FROM tab1 WHERE - - 15 IS NULL
----

query I rowsort
SELECT ALL + col1 * + - col2 AS col2 FROM tab2
----
-1173
-3080
-3886

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL IN ( + + 73, 88 )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT + col1 <> 68 * + + ( + col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-914
SELECT ALL AVG ( ALL + - CAST( NULL AS SIGNED ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-914
SELECT ALL AVG ( ALL + - CAST ( NULL AS INTEGER ) ) FROM tab1
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-916
SELECT DISTINCT COUNT( - - col1 ) AS col1 FROM tab2 AS cor0 WHERE - 24 >= col1 - + col2
----
0

skipif mysql # not compatible
query I rowsort label-916
SELECT DISTINCT COUNT ( - - col1 ) AS col1 FROM tab2 AS cor0 WHERE - 24 >= col1 - + col2
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 10 * col2 col2 FROM tab2 AS cor0
----
230
400
580

query I rowsort
SELECT DISTINCT - col1 FROM tab0 AS cor0 WHERE ( NOT NULL IS NULL )
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-920
SELECT + 21 + - 32 + + + col1 DIV col1 FROM tab1
----
-10
-10
-10

skipif mysql # not compatible
query I rowsort label-920
SELECT + 21 + - 32 + + + col1 / col1 FROM tab1
----
-10
-10
-10

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

query II rowsort
SELECT ALL + col0, - 78 AS col2 FROM tab1 WHERE NOT NULL >= - col0 * + + col2
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 9 IS NOT NULL
----

query I rowsort
SELECT + - col2 * + - 97 AS col2 FROM tab0 AS cor0
----
4559
9603
970

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

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

query I rowsort
SELECT DISTINCT 60 + - col2 AS col2 FROM tab2
----
2
20
37

onlyif mysql # aggregate syntax: 
query I rowsort label-928
SELECT DISTINCT 26 + + 25 * - SUM( ALL - 17 ) FROM tab2
----
1301

skipif mysql # not compatible
query I rowsort label-928
SELECT DISTINCT 26 + + 25 * - SUM ( ALL - 17 ) FROM tab2
----
1301

query I rowsort
SELECT 20 FROM tab1 WHERE NULL IS NULL
----
20
20
20

onlyif mysql # aggregate syntax: 
query I rowsort label-930
SELECT DISTINCT + COUNT( * ) - - 72 FROM tab0
----
75

skipif mysql # not compatible
query I rowsort label-930
SELECT DISTINCT + COUNT ( * ) - - 72 FROM tab0
----
75

query I rowsort
SELECT ALL - col2 + + ( - col2 ) AS col0 FROM tab1
----
-118
-136
-192

onlyif mysql # DIV for integer division: 
query II rowsort label-932
SELECT + col0 * + col1 DIV + col1 + - 27 * - col1 AS col1, col2 * + col0 + col2 AS col0 FROM tab1
----
1360
6256
220
5074
429
4992

skipif mysql # not compatible
query II rowsort label-932
SELECT + col0 * + col1 / + col1 + - 27 * - col1 AS col1, col2 * + col0 + col2 AS col0 FROM tab1
----
1360
6256
220
5074
429
4992

query I rowsort
SELECT DISTINCT col1 - + - col0 AS col0 FROM tab2
----
141
142
97

query I rowsort
SELECT - col1 + + - 76 AS col2 FROM tab0 AS cor0
----
-157
-77
-97

query I rowsort
SELECT + - 93 AS col1 FROM tab0 cor0
----
-93
-93
-93

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-938
SELECT + + 57 DIV - col1 AS col0 FROM tab0 AS cor0
----
-2
-57
0

skipif mysql # not compatible
query I rowsort label-938
SELECT + + 57 / - col1 AS col0 FROM tab0 AS cor0
----
-2
-57
0

query I rowsort
SELECT + col0 * 33 FROM tab2
----
1518
2112
2475

query I rowsort
SELECT ALL 21 / col2 AS col1 FROM tab1 WHERE NULL BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-941
SELECT + - COUNT( * ) AS col0, 96 FROM tab0 AS cor0
----
-3
96

skipif mysql # not compatible
query II rowsort label-941
SELECT + - COUNT ( * ) AS col0, 96 FROM tab0 AS cor0
----
-3
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-942
SELECT DISTINCT + col0 + + col1 - 11 FROM tab2 AS cor0 WHERE NULL < CAST( col2 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-942
SELECT DISTINCT + col0 + + col1 - 11 FROM tab2 AS cor0 WHERE NULL < CAST ( col2 AS INTEGER )
----

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-947
SELECT SUM( - 69 ) col2 FROM tab2 cor0
----
-207

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-947
SELECT SUM ( - 69 ) col2 FROM tab2 cor0
----
-207

onlyif mysql # aggregate syntax: 
query I rowsort label-948
SELECT ALL + - SUM( ALL 17 ) FROM tab0 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-948
SELECT ALL + - SUM ( ALL 17 ) FROM tab0 AS cor0
----
-51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 14 + + + 99 col1, col2 - + col2 FROM tab0
----
113
0
113
0
113
0

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

query II rowsort
SELECT + ( - col0 ) * - ( - col2 ) + + col1 + - 49 - 71 AS col0, ( - col0 ) AS col0 FROM tab0
----
-744
-15
-969
-87
-9722
-97

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

query I rowsort
SELECT ALL + + 82 FROM tab0 cor0
----
82
82
82

onlyif mysql # aggregate syntax: 
query I rowsort label-954
SELECT DISTINCT COUNT( * ) * + + 26 FROM tab2 AS cor0
----
78

skipif mysql # not compatible
query I rowsort label-954
SELECT DISTINCT COUNT ( * ) * + + 26 FROM tab2 AS cor0
----
78

query I rowsort
SELECT - col2 * + - 38 FROM tab2 AS cor0
----
1520
2204
874

onlyif mysql # aggregate syntax: 
query I rowsort label-956
SELECT DISTINCT - ( COUNT( * ) ) * - - 61 * - 22 col1 FROM tab1 AS cor0
----
4026

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-956
SELECT DISTINCT - ( COUNT ( * ) ) * - - 61 * - 22 col1 FROM tab1 AS cor0
----
4026

query I rowsort
SELECT ALL col2 + + col1 + + col1 + + col2 * col0 * + + col1 FROM tab1 AS cor0
----
25144
290998
68668

query II rowsort
SELECT ALL col2 AS col0, + col2 AS col0 FROM tab0
----
10
10
47
47
99
99

query II rowsort
SELECT ALL 74 + + - 76 AS col2, 48 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
18 values hashing to f5cd907546fadf94d7bca202db153a7c

query IIIIII rowsort
SELECT * FROM ( tab1 cor0 CROSS JOIN tab1 AS cor1 ) WHERE + 58 IS NULL
----

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-962
SELECT - 38 + + MIN( DISTINCT - 37 ) AS col0, 37 * CAST( NULL AS SIGNED ) * - COUNT( * ) AS col2 FROM tab0 cor0
----
-75
NULL

skipif mysql # not compatible
query II rowsort label-962
SELECT - 38 + + MIN ( DISTINCT - 37 ) AS col0, 37 * CAST ( NULL AS INTEGER ) * - COUNT ( * ) AS col2 FROM tab0 cor0
----
-75
NULL

query II rowsort
SELECT DISTINCT col1, - ( col2 ) - - 21 FROM tab1 AS cor0
----
14
-75
47
-47
5
-38

query I rowsort
SELECT - col2 + 56 AS col0 FROM tab0 AS cor0
----
-43
46
9

query I rowsort
SELECT ALL col2 + + col0 * - col1 AS col1 FROM tab0
----
-1168
-1817
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-966
SELECT DISTINCT CAST( MAX( - + col0 ) AS SIGNED ) + + 75 FROM tab0
----
60

skipif mysql # not compatible
query I rowsort label-966
SELECT DISTINCT CAST ( MAX ( - + col0 ) AS INTEGER ) + + 75 FROM tab0
----
60

query I rowsort
SELECT ALL - 70 - + + col0 FROM tab2
----
-116
-134
-145

query I rowsort
SELECT col1 FROM tab0 WHERE ( + 5 ) IS NOT NULL
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-969
SELECT - COUNT( - 22 ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-969
SELECT - COUNT ( - 22 ) FROM tab2
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-970
SELECT ALL + COUNT( DISTINCT + 85 ) FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-970
SELECT ALL + COUNT ( DISTINCT + 85 ) FROM tab1
----
1

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

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

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

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

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

query III rowsort
SELECT ALL * FROM tab1 WHERE - col0 BETWEEN + col0 AND - col2 - col0 * + col0
----

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

skipif mysql # not compatible
query I rowsort label-975
SELECT COUNT ( * ) * COUNT ( * ) FROM tab1 AS cor0
----
9

query I rowsort
SELECT - col0 + - 41 FROM tab0 cor0 WHERE NOT ( NULL ) <> NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-977
SELECT - CAST( COUNT( + 63 ) AS SIGNED ) AS col1, + 96 AS col2 FROM tab2 cor0
----
-3
96

skipif mysql # not compatible
query II rowsort label-977
SELECT - CAST ( COUNT ( + 63 ) AS INTEGER ) AS col1, + 96 AS col2 FROM tab2 cor0
----
-3
96

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

onlyif mysql # aggregate syntax: 
query I rowsort label-979
SELECT 46 - COUNT( DISTINCT col0 ) * - 1 FROM tab1 cor0 WHERE NOT + + 10 IS NULL AND ( NULL ) IS NULL
----
49

skipif mysql # not compatible
query I rowsort label-979
SELECT 46 - COUNT ( DISTINCT col0 ) * - 1 FROM tab1 cor0 WHERE NOT + + 10 IS NULL AND ( NULL ) IS NULL
----
49

onlyif mysql # aggregate syntax: 
query II rowsort label-980
SELECT - 96 AS col0, ( - 54 ) + - COUNT( * ) * + COUNT( * ) FROM tab1
----
-96
-63

skipif mysql # not compatible
query II rowsort label-980
SELECT - 96 AS col0, ( - 54 ) + - COUNT ( * ) * + COUNT ( * ) FROM tab1
----
-96
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-981
SELECT - ( + - 18 ) * - + COUNT( * ) FROM tab0
----
-54

skipif mysql # not compatible
query I rowsort label-981
SELECT - ( + - 18 ) * - + COUNT ( * ) FROM tab0
----
-54

query I rowsort
SELECT DISTINCT - col1 * + + col1 FROM tab0
----
-1
-441
-6561

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

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

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

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

skipif mysql # not compatible
query III rowsort label-986
SELECT * FROM tab1 AS cor0 WHERE + CAST ( NULL AS INTEGER ) + - col0 < NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-987
SELECT - col1 + + - ( - - col1 ) + + col1 DIV + col0 FROM tab2
----
-101
-134
-153

skipif mysql # not compatible
query I rowsort label-987
SELECT - col1 + + - ( - - col1 ) + + col1 / + col0 FROM tab2
----
-101
-134
-153

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-988
SELECT DISTINCT - col2 * 23 + - CAST( NULL AS SIGNED ) + 92 * col2 AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-988
SELECT DISTINCT - col2 * 23 + - CAST ( NULL AS INTEGER ) + 92 * col2 AS col0 FROM tab0
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-989
SELECT DISTINCT + + 81 DIV - ( - col1 ), 58 * + col2 - col1 AS col1 FROM tab0 AS cor0
----
1
2645
3
559
81
5741

skipif mysql # not compatible
query II rowsort label-989
SELECT DISTINCT + + 81 / - ( - col1 ), 58 * + col2 - col1 AS col1 FROM tab0 AS cor0
----
1
2645
3
559
81
5741

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-990
SELECT - 7 - - col2 + 5 * col0 - CAST( + col2 AS SIGNED ) * - col1 FROM tab2 AS cor0
----
1419
3433
4312

skipif mysql # not compatible
query I rowsort label-990
SELECT - 7 - - col2 + 5 * col0 - CAST ( + col2 AS INTEGER ) * - col1 FROM tab2 AS cor0
----
1419
3433
4312

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-991
SELECT + CAST( NULL AS SIGNED ) - + 92 + COUNT( * ) * + - 16 * AVG ( - - col1 ) FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-991
SELECT + CAST ( NULL AS INTEGER ) - + 92 + COUNT ( * ) * + - 16 * AVG ( - - col1 ) FROM tab0 cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-992
SELECT + + COUNT( DISTINCT 86 ) - 11 - + SUM( + col0 ) FROM tab1 AS cor0
----
-237

skipif mysql # not compatible
query I rowsort label-992
SELECT + + COUNT ( DISTINCT 86 ) - 11 - + SUM ( + col0 ) FROM tab1 AS cor0
----
-237

query I rowsort
SELECT ALL + col0 + - ( + 2 ) + + 90 AS col2 FROM tab2 AS cor0
----
134
152
163

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

onlyif mysql # aggregate syntax: 
query I rowsort label-995
SELECT ALL + MAX( - + col1 ) AS col1 FROM tab2
----
-51

skipif mysql # not compatible
query I rowsort label-995
SELECT ALL + MAX ( - + col1 ) AS col1 FROM tab2
----
-51

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

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

query I rowsort
SELECT + col1 * col2 + 77 FROM tab1 WHERE NOT col1 = col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-999
SELECT ALL MAX( col2 ) AS col1 FROM tab0
----
99

skipif mysql # not compatible
query I rowsort label-999
SELECT ALL MAX ( col2 ) AS col1 FROM tab0
----
99

onlyif mysql # DIV for integer division: 
query I rowsort label-1000
SELECT ALL - + col1 DIV - + 20 FROM tab0 cor0
----
0
1
4

skipif mysql # not compatible
query I rowsort label-1000
SELECT ALL - + col1 / - + 20 FROM tab0 cor0
----
0
1
4

onlyif mysql # DIV for integer division: 
query I rowsort label-1001
SELECT - ( + - col2 ) DIV + - 92 FROM tab0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-1001
SELECT - ( + - col2 ) / + - 92 FROM tab0
----
-1
0
0

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

query I rowsort
SELECT 30 * + col0 + + 75 AS col2 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN + col1 AND + + 87 / col0
----

query I rowsort
SELECT + col2 * - 68 AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col1 >= + - 46 + + col0 / + 48
----
91
47
68

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

query I rowsort
SELECT + 57 + col0 + col1 * + 67 FROM tab2 AS cor0
----
3520
4621
5280

query I rowsort
SELECT - 67 + - ( - col0 ) FROM tab1 AS cor0
----
-16
18
24

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1010
SELECT - 25 + + MIN( ALL 98 ) FROM tab0
----
73

skipif mysql # not compatible
query I rowsort label-1010
SELECT - 25 + + MIN ( ALL 98 ) FROM tab0
----
73

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1011
SELECT + CAST( + 80 AS DECIMAL ) FROM tab1 WHERE NULL >= 77 / - - col2
----

skipif mysql # not compatible
query I rowsort label-1011
SELECT + CAST ( + 80 AS REAL ) FROM tab1 WHERE NULL >= 77 / - - col2
----

query III rowsort
SELECT * FROM tab1 WHERE 54 < + col0 * 98
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1013
SELECT DISTINCT + col1 * - ( - col0 ) / + - col0 + + ( 35 ) * - - CAST ( NULL AS INTEGER ) col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL 27 + + col1 AS col1 FROM tab1 AS cor0
----
32
41
74

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1016
SELECT DISTINCT - 87 + - COUNT( DISTINCT - col2 ) FROM tab2
----
-90

skipif mysql # not compatible
query I rowsort label-1016
SELECT DISTINCT - 87 + - COUNT ( DISTINCT - col2 ) FROM tab2
----
-90

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1017
SELECT ALL + CAST( NULL AS DECIMAL ) * + col1 + - 54 - + + col2 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1017
SELECT ALL + CAST ( NULL AS REAL ) * + col1 + - 54 - + + col2 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 58 - 67 * - - col0 col2 FROM tab2
----
-3024
-4230
-4967

query I rowsort
SELECT ALL + col0 - - + col2 * - + 91 AS col1 FROM tab2
----
-2047
-3576
-5203

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 5 * - col0 + - 95 + col1 + 52 col1 FROM tab0 AS cor0
----
113
413
443

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 col1 FROM tab2 cor0 WHERE col1 IS NOT NULL
----
-51
-67
-77

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1024
SELECT ALL - MAX( ALL + - col1 ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1024
SELECT ALL - MAX ( ALL + - col1 ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
NULL

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1027
SELECT ( + 16 ), col0 * CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
16
NULL
16
NULL
16
NULL

skipif mysql # not compatible
query II rowsort label-1027
SELECT ( + 16 ), col0 * CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
16
NULL
16
NULL
16
NULL

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

skipif mysql # not compatible
query I rowsort label-1028
SELECT - SUM ( DISTINCT - col0 ) FROM tab2
----
185

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-1029
SELECT COUNT( * ) AS col0, + COUNT( * ) * + + MIN( CAST( NULL AS DECIMAL ) ) * - + 72 * - COUNT( * ) AS col0 FROM tab0, tab0 AS cor0
----
9
NULL

skipif mysql # not compatible
query II rowsort label-1029
SELECT COUNT ( * ) AS col0, + COUNT ( * ) * + + MIN ( CAST ( NULL AS REAL ) ) * - + 72 * - COUNT ( * ) AS col0 FROM tab0, tab0 AS cor0
----
9
NULL

query I rowsort
SELECT ALL - col2 * + + ( - - col2 ) AS col0 FROM tab0
----
-100
-2209
-9801

query I rowsort
SELECT + col1 FROM tab1 AS cor0 WHERE NOT 14 - - 52 + + ( - - 81 ) + - 57 + + col2 * - 13 >= NULL
----

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

query I rowsort
SELECT 81 + col2 AS col2 FROM tab0
----
128
180
91

query I rowsort
SELECT - col0 * - + 91 * + + col2 + 85 FROM tab1
----
445621
456450
563193

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1037
SELECT ALL MAX( col1 ) FROM tab2 WHERE - col1 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1037
SELECT ALL MAX ( col1 ) FROM tab2 WHERE - col1 IS NULL
----
NULL

query I rowsort
SELECT + col0 - + col1 + 85 AS col1 FROM tab1
----
122
129
165

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

skipif mysql # not compatible
query I rowsort label-1039
SELECT DISTINCT + AVG ( + CAST ( NULL AS REAL ) ) - - + COUNT ( * ) FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1040
SELECT 54 * + COUNT( * ) - - 32 FROM tab1
----
194

skipif mysql # not compatible
query I rowsort label-1040
SELECT 54 * + COUNT ( * ) - - 32 FROM tab1
----
194

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1041
SELECT - CAST( + 26 AS SIGNED ) + SUM( DISTINCT + - col1 ) AS col1 FROM tab2
----
-221

skipif mysql # not compatible
query I rowsort label-1041
SELECT - CAST ( + 26 AS INTEGER ) + SUM ( DISTINCT + - col1 ) AS col1 FROM tab2
----
-221

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

query II rowsort
SELECT col1 * + col1 * - 63 + col2 AS col1, - col2 AS col0 FROM tab0 AS cor0
----
-27773
-10
-413296
-47
36
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-1044
SELECT ALL - COUNT( * ) * MAX( 19 ) * COUNT( * ) * - 80 + + - 74 col0 FROM tab1 cor0
----
13606

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1044
SELECT ALL - COUNT ( * ) * MAX ( 19 ) * COUNT ( * ) * - 80 + + - 74 col0 FROM tab1 cor0
----
13606

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1045
SELECT DISTINCT 78 * - col1 + CAST( NULL AS SIGNED ) AS col1, 93 AS col0 FROM tab0
----
NULL
93

skipif mysql # not compatible
query II rowsort label-1045
SELECT DISTINCT 78 * - col1 + CAST ( NULL AS INTEGER ) AS col1, 93 AS col0 FROM tab0
----
NULL
93

query I rowsort
SELECT - - 84 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT ( NULL ) >= NULL
----

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1047
SELECT DISTINCT + - COUNT ( * ) col0 FROM tab1 AS cor0
----
-3

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

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

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

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

query I rowsort
SELECT - + ( + col1 ) * + 16 + col1 FROM tab0 AS cor0
----
-1215
-15
-315

query I rowsort
SELECT DISTINCT - - 14 * 89 + - + 78 FROM tab0 AS cor0 WHERE + col2 <= + col0 + + col2
----
1168

onlyif mysql # aggregate syntax: 
query I rowsort label-1053
SELECT + MIN( - - col1 ) * + COUNT( * ) AS col0 FROM tab1 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-1053
SELECT + MIN ( - - col1 ) * + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
15

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

query I rowsort
SELECT + 6 * + 22 FROM tab1
----
132
132
132

query I rowsort
SELECT + 19 * + - col2 FROM tab2
----
-1102
-437
-760

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 col2, col2 + 3 FROM tab1
----
51
99
85
62
91
71

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 21 * + 71 col2 FROM tab0
----
-1491
-1491
-1491

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

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

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

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

query II rowsort
SELECT DISTINCT + - 93 AS col1, + 90 AS col0 FROM tab2 AS cor0
----
-93
90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1062
SELECT - CAST( NULL AS SIGNED ) / + MAX( DISTINCT + col2 ) * - CAST( NULL AS SIGNED ) FROM tab2 cor0 WHERE NOT NULL = NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1062
SELECT - CAST ( NULL AS INTEGER ) / + MAX ( DISTINCT + col2 ) * - CAST ( NULL AS INTEGER ) FROM tab2 cor0 WHERE NOT NULL = NULL
----
NULL

query II rowsort
SELECT - + 26 AS col0, - col2 AS col2 FROM tab2 AS cor0
----
-26
-23
-26
-40
-26
-58

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

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col1 * + + col0 > NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1067
SELECT ALL MAX( ALL + 27 ) col0 FROM ( tab2 AS cor0 CROSS JOIN tab0 AS cor1 )
----
27

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1068
SELECT COUNT( ALL + 89 ) DIV + SUM( ALL col1 ) AS col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1068
SELECT COUNT ( ALL + 89 ) / + SUM ( ALL col1 ) AS col0 FROM tab0 AS cor0
----
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1070
SELECT - - 73 + + + MAX( DISTINCT + + 93 ) AS col0 FROM tab2 cor0
----
166

skipif mysql # not compatible
query I rowsort label-1070
SELECT - - 73 + + + MAX ( DISTINCT + + 93 ) AS col0 FROM tab2 cor0
----
166

onlyif mysql # aggregate syntax: 
query I rowsort label-1071
SELECT + COUNT( * ) + - - MAX( - col1 ) FROM tab1 AS cor0
----
-2

skipif mysql # not compatible
query I rowsort label-1071
SELECT + COUNT ( * ) + - - MAX ( - col1 ) FROM tab1 AS cor0
----
-2

query II rowsort
SELECT + - col0 + col1, col1 FROM tab0 AS cor0
----
-66
21
-96
1
66
81

query I rowsort
SELECT col0 + - + col1 FROM tab1 AS cor0 WHERE NULL = 45
----

query II rowsort
SELECT + - col0 + col0 + + 84 AS col0, col1 * + 17 FROM tab2 AS cor0
----
84
1139
84
1309
84
867

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

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

query I rowsort
SELECT ALL 32 + - - col2 AS col0 FROM tab0
----
131
42
79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + ( - 87 ) + - col1, - col2 + - 97 col2 FROM tab0
----
-108
-107
-168
-144
-88
-196

query I rowsort
SELECT DISTINCT 50 + col0 * col1 AS col1 FROM tab2
----
2396
4978
5075

query I rowsort
SELECT DISTINCT 91 * - - col1 + - + col0 FROM tab2
----
4595
6022
6943

query I rowsort
SELECT - + col0 AS col2 FROM tab2 WHERE col1 IS NOT NULL
----
-46
-64
-75

query II rowsort
SELECT + col2, - 87 FROM tab2
----
23
-87
40
-87
58
-87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 34 * - col2 + - col2 col2, col1 AS col1 FROM tab1
----
1947
5
2244
47
3168
14

query II rowsort
SELECT - col2, col0 FROM tab2 AS cor0 WHERE - col2 * 32 BETWEEN + - col0 * - col0 * + - 70 + + - 69 + col0 AND + col2 - + 31
----
-23
46
-40
64
-58
75

query I rowsort
SELECT - 28 + col2 * col0 FROM tab0
----
677
842
9575

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1088
SELECT col2 + + col1 FROM tab2 WHERE NOT ( NULL ) > - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-1088
SELECT col2 + + col1 FROM tab2 WHERE NOT ( NULL ) > - CAST ( NULL AS INTEGER )
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1089
SELECT ALL col0 + - col2 AS col0 FROM tab2 WHERE NOT ( NULL ) <> ( + col1 * CAST( CAST( NULL AS SIGNED ) * + col0 AS DECIMAL ) )
----

skipif mysql # not compatible
query I rowsort label-1089
SELECT ALL col0 + - col2 AS col0 FROM tab2 WHERE NOT ( NULL ) <> ( + col1 * CAST ( CAST ( NULL AS INTEGER ) * + col0 AS REAL ) )
----

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1092
SELECT ALL - COUNT( * ) + 75 AS col2 FROM tab2 WHERE NOT CAST( NULL AS SIGNED ) IS NOT NULL
----
72

skipif mysql # not compatible
query I rowsort label-1092
SELECT ALL - COUNT ( * ) + 75 AS col2 FROM tab2 WHERE NOT CAST ( NULL AS INTEGER ) IS NOT NULL
----
72

query I rowsort
SELECT ALL + col0 + 8 AS col0 FROM tab1 WHERE NOT ( + 19 ) IS NOT NULL
----

query I rowsort
SELECT ALL col0 * 90 FROM tab0 WHERE + 71 <> + 19 * 98
----
1350
7830
8730

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1096
SELECT - ( MAX( col1 ) ) FROM tab2 WHERE NOT NULL NOT IN ( ( 49 ) * - col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1096
SELECT - ( MAX ( col1 ) ) FROM tab2 WHERE NOT NULL NOT IN ( ( 49 ) * - col2 )
----
NULL

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1098
SELECT ALL 77 + + ( + CAST ( NULL AS REAL ) ) col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1099
SELECT + 15 DIV - 80 - + ( + col2 + + col1 ) col2 FROM tab2
----
-117
-125
-74

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1099
SELECT + 15 / - 80 - + ( + col2 + + col1 ) col2 FROM tab2
----
-117
-125
-74

query I rowsort
SELECT DISTINCT + col0 + + 42 AS col1 FROM tab1
----
127
133
93

query I rowsort
SELECT 27 - + 65 FROM tab2
----
-38
-38
-38

query III rowsort
SELECT * FROM tab2 WHERE NOT - 60 * col2 + - 65 = NULL
----

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

query I rowsort
SELECT DISTINCT 71 * 14 + 55 * + col2 FROM tab2
----
2259
3194
4184

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1106
SELECT DISTINCT - CAST( NULL AS SIGNED ) + 28 AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1106
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + 28 AS col0 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL - 17 + 93 AS col2 FROM tab0
----
76
76
76

query I rowsort
SELECT ALL col1 / col0 AS col2 FROM tab1 WHERE NOT + col0 + 55 IS NOT NULL
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1110
SELECT - col1 FROM tab0 WHERE ( - CAST( NULL AS SIGNED ) * - col0 ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-1110
SELECT - col1 FROM tab0 WHERE ( - CAST ( NULL AS INTEGER ) * - col0 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1111
SELECT DISTINCT COUNT( * ) * 50 col2 FROM tab0
----
150

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1112
SELECT DISTINCT - CAST( - MAX( - 23 ) AS SIGNED ) FROM tab0 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-1112
SELECT DISTINCT - CAST ( - MAX ( - 23 ) AS INTEGER ) FROM tab0 AS cor0
----
-23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1113
SELECT ALL - CAST( - 21 AS SIGNED ) * COUNT( * ) AS col1 FROM tab2 AS cor0
----
63

skipif mysql # not compatible
query I rowsort label-1113
SELECT ALL - CAST ( - 21 AS INTEGER ) * COUNT ( * ) AS col1 FROM tab2 AS cor0
----
63

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

query I rowsort
SELECT col1 AS col2 FROM tab2 AS cor0 WHERE + 79 * col2 < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1116
SELECT ALL - + col2 * CAST( 21 + 42 AS SIGNED ) FROM tab2 AS cor0
----
-1449
-2520
-3654

skipif mysql # not compatible
query I rowsort label-1116
SELECT ALL - + col2 * CAST ( 21 + 42 AS INTEGER ) FROM tab2 AS cor0
----
-1449
-2520
-3654

query I rowsort
SELECT ALL 34 * 6 + + 61 FROM tab0 AS cor0
----
265
265
265

onlyif mysql # aggregate syntax: 
query I rowsort label-1118
SELECT DISTINCT - 61 + COUNT( * ) FROM tab0 AS cor0 WHERE - col2 * 84 >= col1 * col0
----
-61

skipif mysql # not compatible
query I rowsort label-1118
SELECT DISTINCT - 61 + COUNT ( * ) FROM tab0 AS cor0 WHERE - col2 * 84 >= col1 * col0
----
-61

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1120
SELECT DISTINCT + CAST( col1 AS SIGNED ) * col0 FROM tab0 AS cor0
----
1215
1827
97

skipif mysql # not compatible
query I rowsort label-1120
SELECT DISTINCT + CAST ( col1 AS INTEGER ) * col0 FROM tab0 AS cor0
----
1215
1827
97

query I rowsort
SELECT - 10 + 16 AS col1 FROM tab1 AS cor0 WHERE NULL NOT IN ( 83 + + col0 )
----

query I rowsort
SELECT DISTINCT - 59 * col1 + + 74 AS col2 FROM tab2 AS cor0
----
-2935
-3879
-4469

query I rowsort
SELECT col2 AS col1 FROM tab0 WHERE + col1 * col2 BETWEEN col2 AND 29 * col2
----
10
99

query I rowsort
SELECT col1 - - + 88 * col1 AS col0 FROM tab1
----
1246
4183
445

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1125
SELECT ALL col2 + + col2 * + CAST( - col2 * - col0 AS SIGNED ) FROM tab1
----
295944
420852
470112

skipif mysql # not compatible
query I rowsort label-1125
SELECT ALL col2 + + col2 * + CAST ( - col2 * - col0 AS INTEGER ) FROM tab1
----
295944
420852
470112

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1126
SELECT + 78 DIV - + ( - COUNT( * ) ) - - 9 AS col2 FROM tab0
----
35

skipif mysql # not compatible
query I rowsort label-1126
SELECT + 78 / - + ( - COUNT ( * ) ) - - 9 AS col2 FROM tab0
----
35

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1129
SELECT DISTINCT CAST( + 48 AS SIGNED ) + col1 FROM tab0
----
129
49
69

skipif mysql # not compatible
query I rowsort label-1129
SELECT DISTINCT CAST ( + 48 AS INTEGER ) + col1 FROM tab0
----
129
49
69

query I rowsort
SELECT ALL - col2 - - 40 + + col1 FROM tab2
----
49
68
77

query I rowsort
SELECT DISTINCT 74 + - 73 * col0 FROM tab2
----
-3284
-4598
-5401

query I rowsort
SELECT DISTINCT + col1 - + col0 + col1 AS col1 FROM tab1
----
-23
-75
3

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

query I rowsort
SELECT ALL + col2 + + 4 * col0 FROM tab1 AS cor0 WHERE col1 * + 2 NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 71 IS NULL
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1137
SELECT + col2 FROM tab2 cor0 WHERE NOT NULL NOT BETWEEN CAST( col0 AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query I rowsort label-1137
SELECT + col2 FROM tab2 cor0 WHERE NOT NULL NOT BETWEEN CAST ( col0 AS INTEGER ) AND NULL
----

query I rowsort
SELECT + - ( + 17 ) AS col1 FROM tab1 AS cor0
----
-17
-17
-17

query I rowsort
SELECT DISTINCT - AVG ( + col0 ) + + 82 FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT IN ( 79 )
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-1140
SELECT ALL 14, + col1 DIV + col0 - + col0 AS col1 FROM tab1
----
14
-51
14
-85
14
-91

skipif mysql # not compatible
query II rowsort label-1140
SELECT ALL 14, + col1 / + col0 - + col0 AS col1 FROM tab1
----
14
-51
14
-85
14
-91

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

query II rowsort
SELECT DISTINCT + - 99 AS col2, + col0 - - col2 AS col2 FROM tab2 AS cor0
----
-99
104
-99
133
-99
69

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1143
SELECT ALL * FROM tab1 AS cor0 WHERE - col1 - + - ( - CAST( NULL AS SIGNED ) ) + + col1 NOT BETWEEN ( NULL ) AND + 24 / - col0
----

skipif mysql # not compatible
query III rowsort label-1143
SELECT ALL * FROM tab1 AS cor0 WHERE - col1 - + - ( - CAST ( NULL AS INTEGER ) ) + + col1 NOT BETWEEN ( NULL ) AND + 24 / - col0
----

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

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

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col0 NOT IN ( - col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1147
SELECT ALL + col1 DIV + 17 + - col0 AS col1 FROM tab0 AS cor0
----
-11
-86
-97

skipif mysql # not compatible
query I rowsort label-1147
SELECT ALL + col1 / + 17 + - col0 AS col1 FROM tab0 AS cor0
----
-11
-86
-97

query II rowsort
SELECT col0, col1 * + - col2 FROM tab0 AS cor0
----
15
-3807
87
-210
97
-99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col1 col1, col1 AS col2 FROM tab0 AS cor0
----
1
1
21
21
81
81

query I rowsort
SELECT ALL + col2 FROM tab2 AS cor0 WHERE NOT col0 NOT IN ( + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1151
SELECT DISTINCT + + MIN( ALL + col2 ) AS col0 FROM tab2 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-1151
SELECT DISTINCT + + MIN ( ALL + col2 ) AS col0 FROM tab2 AS cor0
----
23

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1154
SELECT CAST( - - 40 AS SIGNED ) * + 12 AS col0 FROM tab0 AS cor0
----
480
480
480

skipif mysql # not compatible
query I rowsort label-1154
SELECT CAST ( - - 40 AS INTEGER ) * + 12 AS col0 FROM tab0 AS cor0
----
480
480
480

query I rowsort
SELECT - 26 FROM tab2 WHERE NOT col1 * + + col0 IS NULL
----
-26
-26
-26

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( col1 ) < NULL
----

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

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

query I rowsort
SELECT + col0 + col0 FROM tab1 WHERE NOT - 87 * + - col2 + + col0 IS NOT NULL
----

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

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

skipif mysql # not compatible
query I rowsort label-1160
SELECT DISTINCT + COUNT ( DISTINCT - col0 ) FROM tab2
----
3

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

query III rowsort
SELECT ALL * FROM tab0 WHERE - 60 >= NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + 91 <= ( NULL )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT 55 + + col2 - - col2 > - col0 * 49
----

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

query I rowsort
SELECT DISTINCT - - 0 * + col1 FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1167
SELECT - SUM( DISTINCT + - col0 ) AS col0 FROM tab1 AS cor0
----
227

skipif mysql # not compatible
query I rowsort label-1167
SELECT - SUM ( DISTINCT + - col0 ) AS col0 FROM tab1 AS cor0
----
227

onlyif mysql # aggregate syntax: 
query I rowsort label-1168
SELECT DISTINCT COUNT( * ) + - - 8 col1 FROM tab1
----
11

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1168
SELECT DISTINCT COUNT ( * ) + - - 8 col1 FROM tab1
----
11

query I rowsort
SELECT - col1 + + ( - col1 ) FROM tab0 WHERE ( + col1 ) IS NULL
----

query I rowsort
SELECT DISTINCT 65 * 16 * 78 AS col1 FROM tab1
----
81120

query I rowsort
SELECT - col0 + - + 43 * - 94 FROM tab1 cor0
----
3951
3957
3991

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

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

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

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

query I rowsort
SELECT - col2 + + 68 AS col0 FROM tab0 AS cor0
----
-31
21
58

onlyif mysql # DIV for integer division: 
query I rowsort label-1176
SELECT DISTINCT col2 DIV 4 FROM tab0 AS cor0
----
11
2
24

skipif mysql # not compatible
query I rowsort label-1176
SELECT DISTINCT col2 / 4 FROM tab0 AS cor0
----
11
2
24

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + 49 - col2 < - + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-1178
SELECT DISTINCT + COUNT( * ) + - 4 AS col2 FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-1178
SELECT DISTINCT + COUNT ( * ) + - 4 AS col2 FROM tab2
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-1179
SELECT DISTINCT col0 DIV + col2 - + col1 FROM tab0
----
-1
-13
-81

skipif mysql # not compatible
query I rowsort label-1179
SELECT DISTINCT col0 / + col2 - + col1 FROM tab0
----
-1
-13
-81

query I rowsort
SELECT ALL + col2 + - + 29 FROM tab1
----
30
39
67

query I rowsort
SELECT ALL + ( - + 44 ) - - - 91 + - 84 FROM tab2
----
-219
-219
-219

query III rowsort
SELECT ALL * FROM tab0 WHERE - 16 = 36
----

query I rowsort
SELECT DISTINCT - col2 * 2 - - col0 * + - col0 + - - col0 AS col2 FROM tab0
----
-304
-7502
-9510

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - 74 * + - col2 * + col2 - 32 col2 FROM tab1
----
21895458
31137984
34781152

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1185
SELECT - COUNT( * ) - CAST( COUNT( ALL + col1 ) AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-1185
SELECT - COUNT ( * ) - CAST ( COUNT ( ALL + col1 ) AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-6

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

skipif mysql # not compatible
query I rowsort label-1186
SELECT ALL CAST ( - col2 AS INTEGER ) * 74 + 7 AS col1 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT + + col0 - ( - 92 ) - + col1 FROM tab2 AS cor0
----
100
79
87

query I rowsort
SELECT ALL - 58 * + - col2 + col0 AS col1 FROM tab2 AS cor0
----
1380
2384
3439

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

query I rowsort
SELECT + col1 * - + col1 + col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-2550
-4422
-5852

onlyif mysql # aggregate syntax: 
query I rowsort label-1191
SELECT ALL - MIN( ALL - - 90 ) FROM tab1 cor0
----
-90

skipif mysql # not compatible
query I rowsort label-1191
SELECT ALL - MIN ( ALL - - 90 ) FROM tab1 cor0
----
-90

query I rowsort
SELECT + col1 * 49 FROM tab1
----
2303
245
686

onlyif mysql # aggregate syntax: 
query I rowsort label-1193
SELECT COUNT( * ) * + 29 * + 33 FROM ( tab0 AS cor0 CROSS JOIN tab2 cor1 )
----
8613

skipif mysql # not compatible
query I rowsort label-1193
SELECT COUNT ( * ) * + 29 * + 33 FROM ( tab0 AS cor0 CROSS JOIN tab2 cor1 )
----
8613

query I rowsort
SELECT + 10 * + col1 FROM tab2
----
510
670
770

query I rowsort
SELECT 48 + + col0 FROM tab2 WHERE NOT col1 >= ( + + col2 / col2 + - col1 + + ( 77 ) * 36 + 10 / - 69 )
----
112
123
94

onlyif mysql # DIV for integer division: 
query I rowsort label-1196
SELECT ALL col0 DIV - - 75 AS col0 FROM tab2 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-1196
SELECT ALL col0 / - - 75 AS col0 FROM tab2 AS cor0
----
0
0
1

query I rowsort
SELECT DISTINCT - col2 AS col1 FROM tab2 AS cor0 WHERE col1 IS NOT NULL
----
-23
-40
-58

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

query I rowsort
SELECT ( + 37 ) AS col2 FROM tab0 cor0 WHERE NOT NULL IS NOT NULL
----
37
37
37

onlyif mysql # DIV for integer division: 
query II rowsort label-1200
SELECT ALL 79 DIV - + col2, col0 FROM tab1 AS cor0
----
-1
85
-1
91
0
51

skipif mysql # not compatible
query II rowsort label-1200
SELECT ALL 79 / - + col2, col0 FROM tab1 AS cor0
----
-1
85
-1
91
0
51

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

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

query I rowsort
SELECT DISTINCT + - 31 + + - col2 FROM tab2 cor0
----
-54
-71
-89

query I rowsort
SELECT DISTINCT 43 * + ( 78 ) AS col0 FROM tab0
----
3354

query I rowsort
SELECT 10 * 35 FROM tab1
----
350
350
350

query I rowsort
SELECT DISTINCT col2 AS col0 FROM tab0 WHERE NOT - 78 * - ( 54 ) * - 46 * - col0 IS NULL
----
10
47
99

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

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

query I rowsort
SELECT col2 * + + 87 FROM tab2
----
2001
3480
5046

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

query III rowsort
SELECT * FROM tab2 WHERE + - 16 / + 32 NOT BETWEEN + col1 * - col1 + + col1 + - + 71 AND NULL
----

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

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

query I rowsort
SELECT DISTINCT + col1 / - + ( col2 ) FROM tab1 AS cor0 WHERE NOT 82 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1213
SELECT - - COUNT( * ) + + CAST( NULL AS SIGNED ) AS col0, SUM( DISTINCT + + 57 ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL
57

skipif mysql # not compatible
query II rowsort label-1213
SELECT - - COUNT ( * ) + + CAST ( NULL AS INTEGER ) AS col0, SUM ( DISTINCT + + 57 ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL
57

query I rowsort
SELECT col0 + + 86 * - - col2 * + col1 - col1 FROM tab1
----
115621
25450
274900

query I rowsort
SELECT ALL + - 60 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 067a4b5daf8747042e3b07ca8459859f

query IIIIII rowsort
SELECT DISTINCT * FROM ( tab2 AS cor0 CROSS JOIN tab1 AS cor1 ) WHERE NOT NULL >= NULL
----

query I rowsort
SELECT 35 * + col2 FROM tab0
----
1645
3465
350

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 39 + + col1 IS NULL
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE + 74 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1220
SELECT ALL CAST( 99 AS SIGNED ) - col0 FROM tab1 AS cor0
----
14
48
8

skipif mysql # not compatible
query I rowsort label-1220
SELECT ALL CAST ( 99 AS INTEGER ) - col0 FROM tab1 AS cor0
----
14
48
8

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 74 / + col1 * + + ( + col0 ) + - + col2 IS NULL
----

query I rowsort
SELECT DISTINCT col2 * - + col1 + 10 AS col1 FROM tab2 AS cor0
----
-1163
-3070
-3876

query I rowsort
SELECT ALL col2 + - 44 FROM tab2 AS cor0
----
-21
-4
14

onlyif mysql # DIV for integer division: 
query I rowsort label-1224
SELECT + - 73 - + + col0 DIV + - ( col0 ) AS col2 FROM tab2 cor0
----
-72
-72
-72

skipif mysql # not compatible
query I rowsort label-1224
SELECT + - 73 - + + col0 / + - ( col0 ) AS col2 FROM tab2 cor0
----
-72
-72
-72

onlyif mysql # DIV for integer division: 
query I rowsort label-1225
SELECT col0 DIV - + col1 - + col1 * col2 FROM tab1
----
-1347
-312
-3197

skipif mysql # not compatible
query I rowsort label-1225
SELECT col0 / - + col1 - + col1 * col2 FROM tab1
----
-1347
-312
-3197

onlyif mysql # aggregate syntax: 
query I rowsort label-1226
SELECT ALL SUM( ( + col0 ) ) AS col1 FROM tab1
----
227

skipif mysql # not compatible
query I rowsort label-1226
SELECT ALL SUM ( ( + col0 ) ) AS col1 FROM tab1
----
227

query I rowsort
SELECT ALL + col0 + - + 19 FROM tab0
----
-4
68
78

onlyif mysql # DIV for integer division: 
query I rowsort label-1228
SELECT DISTINCT col1 + col0 DIV + 30 FROM tab0
----
23
4
81

skipif mysql # not compatible
query I rowsort label-1228
SELECT DISTINCT col1 + col0 / + 30 FROM tab0
----
23
4
81

query I rowsort
SELECT 70 * + - 73 + - 1 + - - col0 + + col1 * - 23 * - - col1 AS col0 FROM tab1
----
-55827
-5601
-9568

query I rowsort
SELECT col2 + - + 4 * + col2 FROM tab0
----
-141
-297
-30

query I rowsort
SELECT DISTINCT + col2 * col0 * 87 AS col0 FROM tab2 WHERE NOT - + 5 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col1 * - col1 NOT BETWEEN + ( col2 ) AND NULL
----
85
5
59

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

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( + col1 <> - - 68 )
----

query I rowsort
SELECT DISTINCT - col1 * + + 61 + - + 86 FROM tab2 cor0 WHERE NOT 32 / + col0 * - col0 + ( + col2 ) IS NULL
----
-3197
-4173
-4783

query II rowsort
SELECT DISTINCT + 52, - ( 37 ) AS col1 FROM tab2
----
52
-37

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1238
SELECT * FROM tab0 AS cor0 WHERE NOT col0 * - 39 + + col2 IN ( + col0 * - col2 + - + col2, + CAST( - + 10 AS SIGNED ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-1238
SELECT * FROM tab0 AS cor0 WHERE NOT col0 * - 39 + + col2 IN ( + col0 * - col2 + - + col2, + CAST ( - + 10 AS INTEGER ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1239
SELECT DISTINCT + 77 DIV MAX( + 26 ) FROM tab1 AS cor0
----
2

skipif mysql # not compatible
query I rowsort label-1239
SELECT DISTINCT + 77 / MAX ( + 26 ) FROM tab1 AS cor0
----
2

query I rowsort
SELECT + ( 13 ) AS col1 FROM tab1 cor0
----
13
13
13

onlyif mysql # DIV for integer division: 
query I rowsort label-1241
SELECT col0 DIV 28 col1 FROM tab0 AS cor0
----
0
3
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1241
SELECT col0 / 28 col1 FROM tab0 AS cor0
----
0
3
3

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

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

query I rowsort
SELECT DISTINCT col1 + + 8 + - 38 * - ( + col0 ) FROM tab1 AS cor0
----
1960
3243
3513

onlyif mysql # aggregate syntax: 
query I rowsort label-1244
SELECT ALL - + MAX( DISTINCT col2 ) FROM tab1 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-1244
SELECT ALL - + MAX ( DISTINCT col2 ) FROM tab1 AS cor0
----
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1245
SELECT ALL + CAST( + + ( + col1 ) AS SIGNED ) FROM tab0 AS cor0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-1245
SELECT ALL + CAST ( + + ( + col1 ) AS INTEGER ) FROM tab0 AS cor0
----
1
21
81

onlyif mysql # DIV for integer division: 
query I rowsort label-1246
SELECT DISTINCT - col1 DIV - + ( - 53 ) AS col1 FROM tab0
----
-1
0

skipif mysql # not compatible
query I rowsort label-1246
SELECT DISTINCT - col1 / - + ( - 53 ) AS col1 FROM tab0
----
-1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1247
SELECT + 92 + - + SUM( col1 ) * - + 68 AS col2 FROM tab0
----
7096

skipif mysql # not compatible
query I rowsort label-1247
SELECT + 92 + - + SUM ( col1 ) * - + 68 AS col2 FROM tab0
----
7096

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

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

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

query I rowsort
SELECT DISTINCT - 73 * col2 + + - 22 + ( + - 25 ) AS col0 FROM tab0
----
-3478
-7274
-777

query I rowsort
SELECT DISTINCT + 84 + - - col0 * + col1 AS col0 FROM tab0 AS cor0
----
1299
181
1911

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

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

query I rowsort
SELECT + col0 + + col0 * col1 - + 69 FROM tab1
----
4299
441
696

onlyif mysql # aggregate syntax: 
query I rowsort label-1254
SELECT 98 + + MIN( ALL - - 41 ) FROM tab2 AS cor0
----
139

skipif mysql # not compatible
query I rowsort label-1254
SELECT 98 + + MIN ( ALL - - 41 ) FROM tab2 AS cor0
----
139

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

query I rowsort
SELECT ALL - 91 / - - col2 - - 19 FROM tab1 AS cor0 WHERE NOT NULL IN ( - col2, + col1, 80 )
----

query I rowsort
SELECT AVG ( DISTINCT - - col1 ) AS col0 FROM tab1 WHERE NOT - 3 <= NULL
----
NULL

query I rowsort
SELECT DISTINCT - ( 29 ) FROM tab2
----
-29

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

query II rowsort
SELECT col1 * - col1, col0 * 69 + - col1 AS col1 FROM tab0
----
-1
6692
-441
5982
-6561
954

query I rowsort
SELECT ALL + col0 * ( + + 14 ) * - 66 FROM tab0
----
-13860
-80388
-89628

query I rowsort
SELECT DISTINCT - ( + 81 ) AS col1 FROM tab1 AS cor0
----
-81

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1263
SELECT - - MIN ( col0 ) col0 FROM tab0 AS cor0
----
15

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

query II rowsort
SELECT DISTINCT + + 70 * - + 85, 37 AS col0 FROM tab1 AS cor0
----
-5950
37

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * + - ( - - col2 ) * 21 col0 FROM tab0
----
-205821
-2100
-46389

query II rowsort
SELECT ALL 7, col2 AS col0 FROM tab0
----
7
10
7
47
7
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 31 col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to d1ebd1cea4a9773069af34fbf8ea3540

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

skipif mysql # not compatible
query II rowsort label-1269
SELECT - + COUNT ( * ) AS col0, - 41 AS col2 FROM tab1 AS cor0
----
-3
-41

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

skipif mysql # not compatible
query I rowsort label-1270
SELECT + col1 / + - 88 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT - col0 FROM tab1 AS cor0 WHERE NOT NULL = NULL
----

query I rowsort
SELECT DISTINCT - ( - - col0 ) AS col2 FROM tab2 AS cor0
----
-46
-64
-75

query I rowsort
SELECT DISTINCT col0 * - 64 + - + col2 FROM tab1 AS cor0
----
-3360
-5499
-5892

query I rowsort
SELECT - col1 * - ( + 99 ) AS col0 FROM tab1
----
1386
4653
495

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1276
SELECT + + COUNT ( * ) col0 FROM tab0 WHERE NULL IS NULL
----
3

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1277
SELECT col0 AS col2, CAST( NULL AS DECIMAL ) AS col0 FROM tab2
----
46
NULL
64
NULL
75
NULL

skipif mysql # not compatible
query II rowsort label-1277
SELECT col0 AS col2, CAST ( NULL AS REAL ) AS col0 FROM tab2
----
46
NULL
64
NULL
75
NULL

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1279
SELECT ALL - 66 DIV col0 DIV + col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1279
SELECT ALL - 66 / col0 / + col0 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1280
SELECT + COUNT( * ) * - 30 col0 FROM tab2
----
-90

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

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

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

query I rowsort
SELECT + col0 * - 8 * + col1 AS col1 FROM tab1
----
-3400
-34216
-5712

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1284
SELECT col2 + - col1 DIV + 43 FROM tab1
----
59
67
96

skipif mysql # not compatible
query I rowsort label-1284
SELECT col2 + - col1 / + 43 FROM tab1
----
59
67
96

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1285
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) BETWEEN NULL AND + ( 16 ) * - 68 * - CAST( - col1 AS SIGNED ) + + 68
----

skipif mysql # not compatible
query III rowsort label-1285
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) BETWEEN NULL AND + ( 16 ) * - 68 * - CAST ( - col1 AS INTEGER ) + + 68
----

query I rowsort
SELECT ALL - col0 + col0 + + + ( - col2 ) FROM tab0 cor0
----
-10
-47
-99

query I rowsort
SELECT - col2 + - - 65 + + - col2 AS col2 FROM tab0 AS cor0
----
-133
-29
45

onlyif mysql # aggregate syntax: 
query I rowsort label-1288
SELECT ALL 52 + - COUNT( ALL col1 ) AS col0 FROM tab2 AS cor0
----
49

skipif mysql # not compatible
query I rowsort label-1288
SELECT ALL 52 + - COUNT ( ALL col1 ) AS col0 FROM tab2 AS cor0
----
49

query I rowsort
SELECT - col1 * + + 85 AS col1 FROM tab2 AS cor0
----
-4335
-5695
-6545

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

skipif mysql # not compatible
query I rowsort label-1290
SELECT ALL - CAST ( NULL AS INTEGER ) / - + col2 - - + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 23 col0 FROM tab1 AS cor0
----
-23

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1293
SELECT + SUM( + col1 ) * - ( + 84 ) FROM tab2 cor0
----
-16380

skipif mysql # not compatible
query I rowsort label-1293
SELECT + SUM ( + col1 ) * - ( + 84 ) FROM tab2 cor0
----
-16380

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 73 IS NOT NULL
----

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

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

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

skipif mysql # not compatible
query I rowsort label-1296
SELECT col2 / + + col0 FROM tab0
----
0
1
3

onlyif mysql # DIV for integer division: 
query II rowsort label-1297
SELECT - ( + + 14 ) + + - col0 DIV - - col2, + col1 col1 FROM tab1 WHERE NOT - col1 * 65 IS NULL
----
-14
14
-15
47
-15
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1297
SELECT - ( + + 14 ) + + - col0 / - - col2, + col1 col1 FROM tab1 WHERE NOT - col1 * 65 IS NULL
----
-14
14
-15
47
-15
5

query I rowsort
SELECT + - col1 AS col1 FROM tab2 WHERE NOT ( NULL = ( NULL ) )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-1299
SELECT + col0 DIV - col2 + 54 AS col1, - col2 FROM tab0 AS cor0
----
46
-10
54
-47
54
-99

skipif mysql # not compatible
query II rowsort label-1299
SELECT + col0 / - col2 + 54 AS col1, - col2 FROM tab0 AS cor0
----
46
-10
54
-47
54
-99

query I rowsort
SELECT 18 FROM tab0 cor0
----
18
18
18

query I rowsort
SELECT DISTINCT + 76 AS col1 FROM tab1 cor0
----
76

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE + col2 * 88 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1303
SELECT - COUNT( ALL 52 ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-1303
SELECT - COUNT ( ALL 52 ) FROM tab2 AS cor0
----
-3

query I rowsort
SELECT + col1 * + + col0 AS col1 FROM tab0 AS cor0
----
1215
1827
97

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1307
SELECT ALL - - CAST( COUNT( * ) AS SIGNED ) AS col0 FROM tab2 WHERE NOT - 62 * ( - 81 ) * ( + 74 ) + - + col2 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-1307
SELECT ALL - - CAST ( COUNT ( * ) AS INTEGER ) AS col0 FROM tab2 WHERE NOT - 62 * ( - 81 ) * ( + 74 ) + - + col2 IS NOT NULL
----
0

query I rowsort
SELECT DISTINCT - + col2 * - col0 * 78 FROM tab2 cor0
----
199680
339300
82524

query I rowsort
SELECT - col0 + + - ( col2 ) * 22 AS col2 FROM tab1 cor0
----
-1383
-1587
-2163

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) BETWEEN ( - col2 ) AND - 8 + ( + 31 ) * - col2
----

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

query I rowsort
SELECT - + 59 + + - col2 AS col1 FROM tab1 AS cor0
----
-118
-127
-155

query I rowsort
SELECT + + 10 + + col2 + - col1 AS col0 FROM tab2 AS cor0
----
-18
-27
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1314
SELECT ALL CAST( - 41 AS SIGNED ) + - COUNT( * ) FROM tab0 AS cor0
----
-44

skipif mysql # not compatible
query I rowsort label-1314
SELECT ALL CAST ( - 41 AS INTEGER ) + - COUNT ( * ) FROM tab0 AS cor0
----
-44

query I rowsort
SELECT ALL - 39 * col2 AS col0 FROM tab2 AS cor0 WHERE col1 / + ( 85 ) >= NULL
----

query I rowsort
SELECT col2 + + - col1 * col2 AS col1 FROM tab0 AS cor0
----
-200
-3760
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1317
SELECT - 60 + + + COUNT( * ) * - 48 DIV - - COUNT( * ) FROM tab2
----
-108

skipif mysql # not compatible
query I rowsort label-1317
SELECT - 60 + + + COUNT ( * ) * - 48 / - - COUNT ( * ) FROM tab2
----
-108

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL > 32 * - 4
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1320
SELECT - COUNT( + CAST( NULL AS SIGNED ) ) * - 73 AS col2 FROM tab1 WHERE NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-1320
SELECT - COUNT ( + CAST ( NULL AS INTEGER ) ) * - 73 AS col2 FROM tab1 WHERE NULL IS NULL
----
0

onlyif mysql # DIV for integer division: 
query III rowsort label-1321
SELECT DISTINCT * FROM tab0 WHERE - - col1 DIV + - 99 + + col2 IN ( - + col2, col0, + 69, + 57, col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-1321
SELECT DISTINCT * FROM tab0 WHERE - - col1 / + - 99 + + col2 IN ( - + col2, col0, + 69, + 57, col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1322
SELECT DISTINCT + col0 * + CAST( + col2 AS DECIMAL ) AS col0 FROM tab2 WHERE NOT + col1 - col2 + - 70 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-1322
SELECT DISTINCT + col0 * + CAST ( + col2 AS REAL ) AS col0 FROM tab2 WHERE NOT + col1 - col2 + - 70 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1323
SELECT ALL MAX( + + col0 ) + + + 32 + 10 AS col0 FROM tab0
----
139

skipif mysql # not compatible
query I rowsort label-1323
SELECT ALL MAX ( + + col0 ) + + + 32 + 10 AS col0 FROM tab0
----
139

onlyif mysql # aggregate syntax: 
query I rowsort label-1324
SELECT DISTINCT + SUM( ALL - - col1 ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1324
SELECT DISTINCT + SUM ( ALL - - col1 ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
NULL

query I rowsort
SELECT DISTINCT + - 97 * - 67 - col1 * - ( - - 55 ) AS col2 FROM tab1 AS cor0
----
6774
7269
9084

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 19 * col0 col2 FROM tab0 AS cor0
----
-1653
-1843
-285

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

query I rowsort
SELECT - col2 * + 61 AS col1 FROM tab1 AS cor0
----
-3599
-4148
-5856

onlyif mysql # DIV for integer division: 
query I rowsort label-1329
SELECT + col0 DIV - - col0 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-1329
SELECT + col0 / - - col0 FROM tab0 AS cor0
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1330
SELECT DISTINCT - - 11 * - 44 * - COUNT( - - 14 ) * - MIN( DISTINCT + + col2 ) AS col0 FROM tab1 AS cor0
----
-85668

skipif mysql # not compatible
query I rowsort label-1330
SELECT DISTINCT - - 11 * - 44 * - COUNT ( - - 14 ) * - MIN ( DISTINCT + + col2 ) AS col0 FROM tab1 AS cor0
----
-85668

query I rowsort
SELECT 25 + 78 AS col2 FROM tab1
----
103
103
103

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

query I rowsort
SELECT DISTINCT - 59 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-59

onlyif mysql # DIV for integer division: 
query I rowsort label-1334
SELECT ALL + col0 DIV - 92 + col1 FROM tab0 AS cor0
----
0
21
81

skipif mysql # not compatible
query I rowsort label-1334
SELECT ALL + col0 / - 92 + col1 FROM tab0 AS cor0
----
0
21
81

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1336
SELECT + COUNT( + 32 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-1336
SELECT + COUNT ( + 32 ) FROM tab2 AS cor0
----
3

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

skipif mysql # not compatible
query I rowsort label-1337
SELECT ALL - + COUNT ( * ) / - 5 FROM tab0 AS cor0
----
0

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

query II rowsort
SELECT ALL 84 * + col2 AS col2, - col1 FROM tab2
----
1932
-51
3360
-77
4872
-67

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1340
SELECT col1 DIV - col0 * CAST( + ( - col0 ) AS SIGNED ) FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1340
SELECT col1 / - col0 * CAST ( + ( - col0 ) AS INTEGER ) FROM tab1
----
0
0
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1342
SELECT MAX( ALL col2 ) AS col2 FROM tab0
----
99

skipif mysql # not compatible
query I rowsort label-1342
SELECT MAX ( ALL col2 ) AS col2 FROM tab0
----
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1343
SELECT DISTINCT + - col0 * col0 + - CAST( col1 AS SIGNED ) FROM tab1 AS cor0
----
-2615
-7230
-8328

skipif mysql # not compatible
query I rowsort label-1343
SELECT DISTINCT + - col0 * col0 + - CAST ( col1 AS INTEGER ) FROM tab1 AS cor0
----
-2615
-7230
-8328

onlyif mysql # aggregate syntax: 
query I rowsort label-1344
SELECT - 71 + - COUNT( * ) FROM tab2
----
-74

skipif mysql # not compatible
query I rowsort label-1344
SELECT - 71 + - COUNT ( * ) FROM tab2
----
-74

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1346
SELECT + ( ( + MAX( ALL + col0 ) ) ) AS col0 FROM tab2 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-1346
SELECT + ( ( + MAX ( ALL + col0 ) ) ) AS col0 FROM tab2 AS cor0
----
75

onlyif mysql # DIV for integer division: 
query I rowsort label-1347
SELECT + 77 DIV - + col2 + + - 79 FROM tab1 AS cor0
----
-79
-80
-80

skipif mysql # not compatible
query I rowsort label-1347
SELECT + 77 / - + col2 + + - 79 FROM tab1 AS cor0
----
-79
-80
-80

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

query I rowsort
SELECT + col2 + col1 FROM tab0 AS cor0 WHERE 62 + - 36 IS NULL
----

query I rowsort
SELECT ALL - 39 + + - ( - col2 ) * col2 FROM tab0
----
2170
61
9762

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

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

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

query I rowsort
SELECT - 89 - + col1 FROM tab0
----
-110
-170
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-1354
SELECT DISTINCT 90 + COUNT( * ) FROM tab1
----
93

skipif mysql # not compatible
query I rowsort label-1354
SELECT DISTINCT 90 + COUNT ( * ) FROM tab1
----
93

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

query I rowsort
SELECT ALL - col2 + + 83 + + + 0 FROM tab1
----
-13
15
24

query I rowsort
SELECT ALL - 72 * + col0 FROM tab0
----
-1080
-6264
-6984

onlyif mysql # aggregate syntax: 
query I rowsort label-1358
SELECT COUNT( * ) + - 20 AS col1 FROM tab0
----
-17

skipif mysql # not compatible
query I rowsort label-1358
SELECT COUNT ( * ) + - 20 AS col1 FROM tab0
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-1359
SELECT - MAX( 70 ) + - COUNT( * ) FROM tab0 AS cor0
----
-73

skipif mysql # not compatible
query I rowsort label-1359
SELECT - MAX ( 70 ) + - COUNT ( * ) FROM tab0 AS cor0
----
-73

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1360
SELECT ALL CAST ( NULL AS INTEGER ) / - col0 col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1361
SELECT + col2 col2 FROM tab0 AS cor0 WHERE CAST( NULL AS SIGNED ) + - - 76 IS NULL
----
10
47
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1361
SELECT + col2 col2 FROM tab0 AS cor0 WHERE CAST ( NULL AS INTEGER ) + - - 76 IS NULL
----
10
47
99

query I rowsort
SELECT + col2 * + 21 FROM tab0
----
2079
210
987

query III rowsort
SELECT ALL * FROM tab1 WHERE - - col2 >= + - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1364
SELECT ALL - COUNT( + CAST( NULL AS SIGNED ) ) AS col0 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-1364
SELECT ALL - COUNT ( + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0
----
0

query I rowsort
SELECT 52 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 7f4ae30893ab330784829711032ae599

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1366
SELECT - CAST( NULL AS SIGNED ) AS col2, COUNT( * ) FROM tab1
----
NULL
3

skipif mysql # not compatible
query II rowsort label-1366
SELECT - CAST ( NULL AS INTEGER ) AS col2, COUNT ( * ) FROM tab1
----
NULL
3

query I rowsort
SELECT DISTINCT + + col0 * - 37 FROM tab0 AS cor0
----
-3219
-3589
-555

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1368
SELECT ALL - col0 DIV CAST( + + 1 AS SIGNED ) + - 49 + + - col0 + col0 - - 31 * - + col2 FROM tab2 AS cor0
----
-1353
-1922
-808

skipif mysql # not compatible
query I rowsort label-1368
SELECT ALL - col0 / CAST ( + + 1 AS INTEGER ) + - 49 + + - col0 + col0 - - 31 * - + col2 FROM tab2 AS cor0
----
-1353
-1922
-808

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + col2 col2, col1 FROM tab0 cor0
----
10
21
47
81
99
1

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1371
SELECT - + CAST( - ( - - 88 ) AS SIGNED ) FROM tab2 AS cor0
----
88
88
88

skipif mysql # not compatible
query I rowsort label-1371
SELECT - + CAST ( - ( - - 88 ) AS INTEGER ) FROM tab2 AS cor0
----
88
88
88

query II rowsort
SELECT ALL 63, col0 AS col1 FROM tab1
----
63
51
63
85
63
91

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

query I rowsort
SELECT DISTINCT 81 * + col2 AS col1 FROM tab0
----
3807
8019
810

query III rowsort
SELECT * FROM tab0 WHERE NOT - - 8 / - col0 >= + + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1377
SELECT DISTINCT col2, col0 DIV + + CAST( - - col2 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
59
1
68
1
96
0

skipif mysql # not compatible
query II rowsort label-1377
SELECT DISTINCT col2, col0 / + + CAST ( - - col2 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
59
1
68
1
96
0

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

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

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

query I rowsort
SELECT DISTINCT 12 + + 60 AS col1 FROM tab1 AS cor0
----
72

query II rowsort
SELECT ( + col1 ), + col0 FROM tab1 WHERE NULL >= col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 + col1 - - col0 + 7 * - - col0 col0 FROM tab1 AS cor0
----
518
744
843

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

query II rowsort
SELECT + 40 + - + ( + col1 ) + - col0 * - - col1 AS col2, + col0 FROM tab2 AS cor0
----
-2357
46
-4965
64
-5052
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - + col1 + + 95 * + col0 AS col0, + col2 col0 FROM tab2 AS cor0
----
4319
23
6003
40
7058
58

onlyif mysql # DIV for integer division: 
query I rowsort label-1386
SELECT + col1 + 94 DIV col0 AS col1 FROM tab2 cor0
----
53
68
78

skipif mysql # not compatible
query I rowsort label-1386
SELECT + col1 + 94 / col0 AS col1 FROM tab2 cor0
----
53
68
78

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

skipif mysql # not compatible
query I rowsort label-1387
SELECT DISTINCT MAX ( DISTINCT - 15 ) + - - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1389
SELECT - MAX( DISTINCT + ( + - 78 ) ) AS col1 FROM tab1 AS cor0 WHERE NULL <= ( NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-1389
SELECT - MAX ( DISTINCT + ( + - 78 ) ) AS col1 FROM tab1 AS cor0 WHERE NULL <= ( NULL )
----
NULL

query II rowsort
SELECT ALL - col0, - 50 AS col2 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1391
SELECT - COUNT( * ) FROM tab2 WHERE NULL NOT BETWEEN NULL AND ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-1391
SELECT - COUNT ( * ) FROM tab2 WHERE NULL NOT BETWEEN NULL AND ( NULL )
----
0

query I rowsort
SELECT DISTINCT - - 68 FROM tab1 WHERE NOT + + ( + - 86 ) IS NULL
----
68

query I rowsort
SELECT ALL - col2 * - + col0 - + + 16 + ( - col0 ) FROM tab0
----
674
767
9490

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1394
SELECT + CAST( - 87 AS DECIMAL ) FROM tab2 WHERE ( NULL ) NOT BETWEEN + col1 AND - + col0
----

skipif mysql # not compatible
query I rowsort label-1394
SELECT + CAST ( - 87 AS REAL ) FROM tab2 WHERE ( NULL ) NOT BETWEEN + col1 AND - + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1395
SELECT ALL MIN( DISTINCT + - 82 ) + 12 - - 76 AS col1 FROM tab0
----
6

skipif mysql # not compatible
query I rowsort label-1395
SELECT ALL MIN ( DISTINCT + - 82 ) + 12 - - 76 AS col1 FROM tab0
----
6

onlyif mysql # DIV for integer division: 
query I rowsort label-1396
SELECT ALL + col2 - + - col2 DIV col0 AS col2 FROM tab1
----
59
68
97

skipif mysql # not compatible
query I rowsort label-1396
SELECT ALL + col2 - + - col2 / col0 AS col2 FROM tab1
----
59
68
97

onlyif mysql # aggregate syntax: 
query I rowsort label-1397
SELECT DISTINCT MIN( + col1 ) + 79 col0 FROM tab2
----
130

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

query I rowsort
SELECT DISTINCT + - 40 * - - col1 AS col0 FROM tab1 WHERE NOT 49 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1399
SELECT ALL col1 - - CAST( NULL AS SIGNED ) / + col0 col1, col1 * - col2 AS col1 FROM tab0 AS cor0
----
NULL
-210
NULL
-3807
NULL
-99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1399
SELECT ALL col1 - - CAST ( NULL AS INTEGER ) / + col0 col1, col1 * - col2 AS col1 FROM tab0 AS cor0
----
NULL
-210
NULL
-3807
NULL
-99

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

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

query II rowsort
SELECT - 90 - - 3 + + col1, + col2 - + 98 * - + col2 * 21 AS col2 FROM tab2 AS cor0
----
-10
82360
-20
119422
-36
47357

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1405
SELECT DISTINCT 72 * + - col2, + 94 + - CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
-1656
NULL
-2880
NULL
-4176
NULL

skipif mysql # not compatible
query II rowsort label-1405
SELECT DISTINCT 72 * + - col2, + 94 + - CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
-1656
NULL
-2880
NULL
-4176
NULL

query I rowsort
SELECT DISTINCT + 70 * col0 AS col1 FROM tab1 AS cor0
----
3570
5950
6370

query I rowsort
SELECT - col2 * 92 + + col2 AS col0 FROM tab1 AS cor0
----
-5369
-6188
-8736

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1408
SELECT ALL + SUM ( DISTINCT - + col0 ) col1 FROM tab0 AS cor0
----
-199

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

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

query II rowsort
SELECT ALL col0 * - col1 AS col2, col1 FROM tab1 AS cor0 WHERE NOT - col0 * + 73 > 98 - - - col2
----
-425
5
-4277
47
-714
14

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1412
SELECT - MIN( - col1 ) * - + COUNT( * ) FROM tab1
----
-141

skipif mysql # not compatible
query I rowsort label-1412
SELECT - MIN ( - col1 ) * - + COUNT ( * ) FROM tab1
----
-141

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1414
SELECT + COUNT( * ) * + SUM( DISTINCT col0 ) FROM tab2
----
555

skipif mysql # not compatible
query I rowsort label-1414
SELECT + COUNT ( * ) * + SUM ( DISTINCT col0 ) FROM tab2
----
555

onlyif mysql # aggregate syntax: 
query I rowsort label-1415
SELECT ALL COUNT( * ) * + SUM( DISTINCT 27 ) FROM tab1
----
81

skipif mysql # not compatible
query I rowsort label-1415
SELECT ALL COUNT ( * ) * + SUM ( DISTINCT 27 ) FROM tab1
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-1416
SELECT DISTINCT - ( - COUNT( * ) ) AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-1416
SELECT DISTINCT - ( - COUNT ( * ) ) AS col2 FROM tab2 AS cor0
----
3

query I rowsort
SELECT + + col1 + - + 1 + + col1 FROM tab2 AS cor0
----
101
133
153

onlyif mysql # aggregate syntax: 
query I rowsort label-1418
SELECT ALL - + MIN( + - col1 ) FROM tab1 WHERE - col2 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1418
SELECT ALL - + MIN ( + - col1 ) FROM tab1 WHERE - col2 IS NULL
----
NULL

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

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

query III rowsort
SELECT * FROM tab0 WHERE + ( + col1 ) <= - - 66 * + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 WHERE NOT - 42 IN ( 89 ) AND NULL < NULL
----

query I rowsort
SELECT ALL - - 3 - + col1 FROM tab1 cor0
----
-11
-2
-44

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + 99 * - col0 < - - 32
----

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

query II rowsort
SELECT + 23 - + 94, + col0 + + - ( + 86 ) * + + 21 AS col1 FROM tab1 AS cor0
----
-71
-1715
-71
-1721
-71
-1755

query I rowsort
SELECT + - col2 - - + col2 + + + 62 AS col2 FROM tab0 cor0
----
62
62
62

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

query I rowsort
SELECT DISTINCT - 44 + - 39 * - col2 AS col2 FROM tab2 AS cor0
----
1516
2218
853

query I rowsort
SELECT + col1 * + + col1 * - 81 + + 24 FROM tab0
----
-35697
-531417
-57

query I rowsort
SELECT ALL - 94 + - col1 FROM tab1
----
-108
-141
-99

query I rowsort
SELECT + 15 + - 85 FROM tab1
----
-70
-70
-70

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL NOT IN ( - 23 * - 7 - col0, + 99, + 24 * - + 52 )
----

query I rowsort
SELECT ALL - col1 + col2 + - col2 FROM tab1
----
-14
-47
-5

query I rowsort
SELECT DISTINCT + col2 * - col0 - + col0 FROM tab0
----
-720
-957
-9700

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1436
SELECT DISTINCT + CAST( 56 AS SIGNED ) col2 FROM tab2 AS cor0 WHERE col1 NOT BETWEEN + CAST( NULL AS SIGNED ) AND col2
----
56

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1436
SELECT DISTINCT + CAST ( 56 AS INTEGER ) col2 FROM tab2 AS cor0 WHERE col1 NOT BETWEEN + CAST ( NULL AS INTEGER ) AND col2
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-1437
SELECT MIN( col1 ) AS col0 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-1437
SELECT MIN ( col1 ) AS col0 FROM tab0 AS cor0
----
1

query I rowsort
SELECT DISTINCT + 34 * - + col2 + col0 AS col2 FROM tab1 AS cor0
----
-1921
-2221
-3213

query II rowsort
SELECT col0 * + col0 + - - 70 AS col2, - 58 FROM tab0 AS cor0
----
295
-58
7639
-58
9479
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-1440
SELECT + - COUNT( * ) * - - COUNT( * ) AS col0 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
-81

skipif mysql # not compatible
query I rowsort label-1440
SELECT + - COUNT ( * ) * - - COUNT ( * ) AS col0 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
-81

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

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 54 + + col2 IS NOT NULL OR NOT - col2 * - col2 IS NOT NULL
----

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

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

query II rowsort
SELECT DISTINCT 73 AS col2, 30 FROM tab1 AS cor0
----
73
30

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

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

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

skipif mysql # not compatible
query I rowsort label-1447
SELECT MIN ( + col1 ) FROM tab1 AS cor0
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-1448
SELECT ALL - ( 69 ) + COUNT( * ) FROM tab2 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-1448
SELECT ALL - ( 69 ) + COUNT ( * ) FROM tab2 AS cor0
----
-66

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1450
SELECT DISTINCT - col0 DIV - 83 FROM tab0
----
0
1

skipif mysql # not compatible
query I rowsort label-1450
SELECT DISTINCT - col0 / - 83 FROM tab0
----
0
1

query I rowsort
SELECT - col0 AS col1 FROM tab1 WHERE NOT ( NULL ) IS NOT NULL
----
-51
-85
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1452
SELECT - 60 / - col2 + + 41 * - CAST( NULL AS SIGNED ) * + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1452
SELECT - 60 / - col2 + + 41 * - CAST ( NULL AS INTEGER ) * + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1453
SELECT ALL + 26 AS col1, - COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE ( NULL ) IS NOT NULL
----
26
0

skipif mysql # not compatible
query II rowsort label-1453
SELECT ALL + 26 AS col1, - COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE ( NULL ) IS NOT NULL
----
26
0

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 1 + + col1 col0 FROM tab1 cor0
----
13
4
46

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

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

query I rowsort
SELECT - col1 + - - 26 FROM tab0 AS cor0
----
-55
25
5

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

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

query I rowsort
SELECT DISTINCT - col1 * - - 45 FROM tab2 AS cor0
----
-2295
-3015
-3465

query I rowsort
SELECT + col2 * + - col2 AS col1 FROM tab1 AS cor0
----
-3481
-4624
-9216

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

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1465
SELECT - CAST( NULL AS SIGNED ) AS col2, 78 AS col2 FROM tab1 WHERE + + 66 - - 4 * + col1 IS NULL
----

skipif mysql # not compatible
query II rowsort label-1465
SELECT - CAST ( NULL AS INTEGER ) AS col2, 78 AS col2 FROM tab1 WHERE + + 66 - - 4 * + col1 IS NULL
----

query I rowsort
SELECT 25 * 60 * - 94 FROM tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1467
SELECT - COUNT( - col2 ) col0 FROM tab1
----
-3

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - 47 ) col2 FROM tab1
----
47
47
47

query I rowsort
SELECT + - 60 FROM tab0 WHERE NOT - col1 * + 33 + - 58 / col1 IS NULL
----
-60
-60
-60

query I rowsort
SELECT DISTINCT - 27 * + 62 AS col0 FROM tab0
----
-1674

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1472
SELECT 94 DIV + col1 FROM tab1
----
18
2
6

skipif mysql # not compatible
query I rowsort label-1472
SELECT 94 / + col1 FROM tab1
----
18
2
6

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

query II rowsort
SELECT DISTINCT col2 AS col2, - col0 * col1 * col2 * col1 FROM tab1 AS cor0
----
59
-125375
68
-13669292
96
-959616

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col1 * - col0 <= + col0 - + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1476
SELECT + MIN( + - col0 ) * - + COUNT( * ) FROM tab2
----
225

skipif mysql # not compatible
query I rowsort label-1476
SELECT + MIN ( + - col0 ) * - + COUNT ( * ) FROM tab2
----
225

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

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

query I rowsort
SELECT ALL + 23 * + col2 FROM tab1 AS cor0
----
1357
1564
2208

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

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

query I rowsort
SELECT ALL + 84 + col2 * - - col1 FROM tab0 AS cor0
----
183
294
3891

query II rowsort
SELECT 32 AS col1, 88 + - 11 AS col2 FROM tab1
----
32
77
32
77
32
77

onlyif mysql # aggregate syntax: 
query II rowsort label-1483
SELECT DISTINCT + ( + MIN( DISTINCT + - col2 ) ), - 61 AS col1 FROM tab1
----
-96
-61

skipif mysql # not compatible
query II rowsort label-1483
SELECT DISTINCT + ( + MIN ( DISTINCT + - col2 ) ), - 61 AS col1 FROM tab1
----
-96
-61

query I rowsort
SELECT + ( + 37 ) FROM tab2
----
37
37
37

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1486
SELECT + 18 DIV COUNT( * ) FROM tab0
----
6

skipif mysql # not compatible
query I rowsort label-1486
SELECT + 18 / COUNT ( * ) FROM tab0
----
6

query II rowsort
SELECT col2, - col2 - - - col0 AS col0 FROM tab0 cor0 WHERE ( NULL ) <> NULL
----

query I rowsort
SELECT ALL - 43 * + + 62 AS col1 FROM tab0 cor0
----
-2666
-2666
-2666

query I rowsort
SELECT - col2 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-10
-47
-99

query I rowsort
SELECT col2 + + - 82 FROM tab0 AS cor0
----
-35
-72
17

onlyif mysql # aggregate syntax: 
query I rowsort label-1491
SELECT ( 83 ) * - + SUM( - - col2 ) + - - COUNT( * ) AS col2 FROM tab1
----
-18506

skipif mysql # not compatible
query I rowsort label-1491
SELECT ( 83 ) * - + SUM ( - - col2 ) + - - COUNT ( * ) AS col2 FROM tab1
----
-18506

query I rowsort
SELECT ALL + 99 * + col1 - + col2 AS col2 FROM tab1
----
1290
436
4585

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

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

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

query I rowsort
SELECT ALL + 88 * - col1 * - 86 AS col1 FROM tab2 AS cor0
----
385968
507056
582736

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col0 > - 65
----

query I rowsort
SELECT DISTINCT - ( + 1 ) - + 35 FROM tab2 AS cor0
----
-36

query I rowsort
SELECT - - ( - col0 ) - 1 + - ( + ( - col2 ) ) FROM tab2 cor0
----
-18
-24
-25

query I rowsort
SELECT - - 24 * - 79 * - 9 FROM tab2 AS cor0
----
17064
17064
17064

query I rowsort
SELECT + 23 * + col0 * col2 * + - 59 * - 82 FROM tab0
----
1068564222
78448170
96808380

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1502
SELECT ALL COUNT( * ) AS col2 FROM tab2 WHERE + + col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-1502
SELECT ALL COUNT ( * ) AS col2 FROM tab2 WHERE + + col1 IS NULL
----
0

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - - col2 < NULL
----

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

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

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1511
SELECT 35 + + + COUNT( * ) + SUM( + col2 ) AS col1 FROM tab1 AS cor0
----
261

skipif mysql # not compatible
query I rowsort label-1511
SELECT 35 + + + COUNT ( * ) + SUM ( + col2 ) AS col1 FROM tab1 AS cor0
----
261

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1513
SELECT - - col1 + col1 DIV + col1 FROM tab1 AS cor0
----
15
48
6

skipif mysql # not compatible
query I rowsort label-1513
SELECT - - col1 + col1 / + col1 FROM tab1 AS cor0
----
15
48
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1514
SELECT DISTINCT - + CAST( col1 AS SIGNED ) * col2 col0 FROM tab0 AS cor0
----
-210
-3807
-99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1514
SELECT DISTINCT - + CAST ( col1 AS INTEGER ) * col2 col0 FROM tab0 AS cor0
----
-210
-3807
-99

query I rowsort
SELECT ALL 30 + - col0 FROM tab1 cor0 WHERE + col1 + + col1 IS NOT NULL
----
-21
-55
-61

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1516
SELECT DISTINCT COUNT( * ) DIV + + SUM( 97 ) AS col2 FROM tab0, tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1516
SELECT DISTINCT COUNT ( * ) / + + SUM ( 97 ) AS col2 FROM tab0, tab0 AS cor0
----
0

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1518
SELECT ALL - MAX ( + col0 ) col1 FROM tab1
----
-91

onlyif mysql # DIV for integer division: 
query I rowsort label-1519
SELECT DISTINCT 49 * 51 DIV col0 * 17 * - ( - col1 ) FROM tab0
----
228582
425
9996

skipif mysql # not compatible
query I rowsort label-1519
SELECT DISTINCT 49 * 51 / col0 * 17 * - ( - col1 ) FROM tab0
----
228582
425
9996

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 17 * col2 col0 FROM tab0 AS cor0 WHERE NOT ( col0 ) >= ( + 36 )
----
799

onlyif mysql # aggregate syntax: 
query I rowsort label-1521
SELECT DISTINCT 25 * + SUM( DISTINCT + - 41 ) AS col2 FROM tab2 AS cor0
----
-1025

skipif mysql # not compatible
query I rowsort label-1521
SELECT DISTINCT 25 * + SUM ( DISTINCT + - 41 ) AS col2 FROM tab2 AS cor0
----
-1025

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

query I rowsort
SELECT DISTINCT col2 + + - col2 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1524
SELECT ALL 80 + COUNT( * ) AS col1 FROM tab1
----
83

skipif mysql # not compatible
query I rowsort label-1524
SELECT ALL 80 + COUNT ( * ) AS col1 FROM tab1
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-1525
SELECT DISTINCT + 60 - ( - + 59 ) * - + SUM( col0 ) FROM tab1
----
-13333

skipif mysql # not compatible
query I rowsort label-1525
SELECT DISTINCT + 60 - ( - + 59 ) * - + SUM ( col0 ) FROM tab1
----
-13333

query I rowsort
SELECT - 35 + - + 84 AS col0 FROM tab1
----
-119
-119
-119

query I rowsort
SELECT DISTINCT + + ( col1 ) - + + col1 FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1528
SELECT + - MAX( - - col0 ) AS col2 FROM tab2 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-1528
SELECT + - MAX ( - - col0 ) AS col2 FROM tab2 AS cor0
----
-75

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

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

query I rowsort
SELECT 79 * 39 AS col1 FROM tab1 AS cor0
----
3081
3081
3081

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1532
SELECT DISTINCT - 61 DIV - CAST( + SUM( col0 ) AS SIGNED ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1532
SELECT DISTINCT - 61 / - CAST ( + SUM ( col0 ) AS INTEGER ) FROM tab2 AS cor0
----
0

query I rowsort
SELECT 94 * - + col1 FROM tab1 AS cor0
----
-1316
-4418
-470

query II rowsort
SELECT ALL col1 AS col1, 43 FROM tab1 AS cor0
----
14
43
47
43
5
43

query I rowsort
SELECT + 30 * - col1 AS col1 FROM tab1 AS cor0
----
-1410
-150
-420

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 27 * - - col0 col0 FROM tab0
----
2349
2619
405

onlyif mysql # DIV for integer division: 
query I rowsort label-1537
SELECT col0 * + - col0 DIV - col0 col2 FROM tab0
----
15
87
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1537
SELECT col0 * + - col0 / - col0 col2 FROM tab0
----
15
87
97

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1539
SELECT DISTINCT 41 DIV - col0, 20 + + col0 AS col2 FROM tab2
----
0
66
0
84
0
95

skipif mysql # not compatible
query II rowsort label-1539
SELECT DISTINCT 41 / - col0, 20 + + col0 AS col2 FROM tab2
----
0
66
0
84
0
95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( - + col0 ) * + col2 col2 FROM tab0
----
-705
-870
-9603

query II rowsort
SELECT col1 * + + 21 AS col2, - col0 AS col1 FROM tab2
----
1071
-46
1407
-75
1617
-64

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

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

skipif mysql # not compatible
query I rowsort label-1543
SELECT ALL - - col2 / + col2 FROM tab1 AS cor0
----
1
1
1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1545
SELECT 64 - + ( + MAX( DISTINCT - ( + 59 ) ) ) AS col1 FROM tab2, tab2 AS cor0
----
123

skipif mysql # not compatible
query I rowsort label-1545
SELECT 64 - + ( + MAX ( DISTINCT - ( + 59 ) ) ) AS col1 FROM tab2, tab2 AS cor0
----
123

query IIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT ( NOT + 55 IS NOT NULL )
----
54 values hashing to 33a0493e77bf8151676c948b0676d6b9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 col0 FROM tab1 WHERE NOT - col2 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1548
SELECT COUNT( * ) * - + 36 + ( + COUNT( * ) ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-315

skipif mysql # not compatible
query I rowsort label-1548
SELECT COUNT ( * ) * - + 36 + ( + COUNT ( * ) ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-315

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

skipif mysql # not compatible
query I rowsort label-1549
SELECT 70 * - - COUNT ( * ) FROM tab0
----
210

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col0 AS col0, - ( + 66 ) col1 FROM tab0 AS cor0 WHERE NOT - col2 IN ( - - col1 * - 21 )
----
15
-66
87
-66
97
-66

query I rowsort
SELECT - - col1 * - col1 + - col1 FROM tab2 AS cor0
----
-2652
-4556
-6006

query I rowsort
SELECT ALL ( - + 86 ) AS col1 FROM tab1 AS cor0 WHERE ( NULL ) NOT IN ( - - col1 * - 10 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1553
SELECT + MAX( + - CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
NULL

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

query I rowsort
SELECT ALL col2 + - col0 + - - col0 * col0 + + 21 * 67 AS col0 FROM tab1 AS cor0
----
4053
8606
9665

query II rowsort
SELECT ALL + col2 + + + ( + col1 ) AS col2, - col1 FROM tab0 AS cor0
----
100
-1
128
-81
31
-21

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1558
SELECT + MIN( DISTINCT + 62 ) FROM tab0 AS cor0
----
62

skipif mysql # not compatible
query I rowsort label-1558
SELECT + MIN ( DISTINCT + 62 ) FROM tab0 AS cor0
----
62

query I rowsort
SELECT DISTINCT - col2 + + + col2 FROM tab2 AS cor0
----
0

query II rowsort
SELECT + 78 AS col0, - col2 FROM tab0
----
78
-10
78
-47
78
-99

onlyif mysql # DIV for integer division: 
query II rowsort label-1561
SELECT + col0, - col2 * col0 + + col1 DIV 11 AS col1 FROM tab2
----
46
-1054
64
-2553
75
-4344

skipif mysql # not compatible
query II rowsort label-1561
SELECT + col0, - col2 * col0 + + col1 / 11 AS col1 FROM tab2
----
46
-1054
64
-2553
75
-4344

query I rowsort
SELECT - 12 - col2 AS col0 FROM tab0
----
-111
-22
-59

query I rowsort
SELECT ALL + 12 + - + 58 + - - col2 + + + col1 * + 47 AS col0 FROM tab1
----
2231
248
708

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + - + col1 col0 FROM tab2
----
-117
-125
-74

onlyif mysql # aggregate syntax: 
query II rowsort label-1565
SELECT DISTINCT + + SUM( col0 ) AS col1, 38 FROM tab0 AS cor0
----
199
38

skipif mysql # not compatible
query II rowsort label-1565
SELECT DISTINCT + + SUM ( col0 ) AS col1, 38 FROM tab0 AS cor0
----
199
38

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 85 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( + col0 ) + - 88 col0 FROM tab0 cor0
----
-1
-73
9

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

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

query I rowsort
SELECT + 14 * + ( 76 ) AS col2 FROM tab1 AS cor0
----
1064
1064
1064

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

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

query I rowsort
SELECT + col1 * 85 AS col2 FROM tab0 AS cor0
----
1785
6885
85

onlyif mysql # aggregate syntax: 
query II rowsort label-1572
SELECT DISTINCT - 48 AS col2, 97 * + ( + COUNT( * ) ) AS col2 FROM tab1
----
-48
291

skipif mysql # not compatible
query II rowsort label-1572
SELECT DISTINCT - 48 AS col2, 97 * + ( + COUNT ( * ) ) AS col2 FROM tab1
----
-48
291

onlyif mysql # aggregate syntax: 
query I rowsort label-1573
SELECT MIN( ALL + col0 ) * 77 AS col2 FROM tab2
----
3542

skipif mysql # not compatible
query I rowsort label-1573
SELECT MIN ( ALL + col0 ) * 77 AS col2 FROM tab2
----
3542

onlyif mysql # aggregate syntax: 
query I rowsort label-1574
SELECT DISTINCT COUNT( * ) * 53 col2 FROM tab2
----
159

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1574
SELECT DISTINCT COUNT ( * ) * 53 col2 FROM tab2
----
159

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1578
SELECT ALL col0 DIV - + col2 FROM tab1
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-1578
SELECT ALL col0 / - + col2 FROM tab1
----
-1
-1
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1579
SELECT DISTINCT + col1 DIV + 78 AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-1579
SELECT DISTINCT + col1 / + 78 AS col2 FROM tab1
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - col1 ) col0 FROM tab2 cor0
----
51
67
77

onlyif mysql # DIV for integer division: 
query II rowsort label-1581
SELECT + + 40 AS col2, col2 DIV + col0 FROM tab1 AS cor0
----
40
0
40
0
40
1

skipif mysql # not compatible
query II rowsort label-1581
SELECT + + 40 AS col2, col2 / + col0 FROM tab1 AS cor0
----
40
0
40
0
40
1

query II rowsort
SELECT 80 AS col2, - col2 FROM tab2 AS cor0
----
80
-23
80
-40
80
-58

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

query I rowsort
SELECT 24 + col0 FROM tab2
----
70
88
99

onlyif mysql # DIV for integer division: 
query I rowsort label-1585
SELECT 62 + - col0 DIV - 6 FROM tab0
----
64
76
78

skipif mysql # not compatible
query I rowsort label-1585
SELECT 62 + - col0 / - 6 FROM tab0
----
64
76
78

query I rowsort
SELECT ALL 25 AS col1 FROM tab1
----
25
25
25

query I rowsort
SELECT 68 + col1 FROM tab2
----
119
135
145

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

query I rowsort
SELECT ALL + ( 32 ) AS col2 FROM tab0
----
32
32
32

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1591
SELECT CAST( - 44 AS SIGNED ) + + SUM( DISTINCT col0 ) FROM tab1
----
183

skipif mysql # not compatible
query I rowsort label-1591
SELECT CAST ( - 44 AS INTEGER ) + + SUM ( DISTINCT col0 ) FROM tab1
----
183

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

query I rowsort
SELECT ALL 15 * - col0 AS col0 FROM tab0
----
-1305
-1455
-225

onlyif mysql # aggregate syntax: 
query I rowsort label-1594
SELECT ALL MAX( - ( 67 ) ) AS col0 FROM tab1 WHERE NOT NULL NOT IN ( + ( + 66 ) * ( - 86 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1594
SELECT ALL MAX ( - ( 67 ) ) AS col0 FROM tab1 WHERE NOT NULL NOT IN ( + ( + 66 ) * ( - 86 ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1595
SELECT + MAX( + col1 ) FROM tab2
----
77

skipif mysql # not compatible
query I rowsort label-1595
SELECT + MAX ( + col1 ) FROM tab2
----
77

query III rowsort
SELECT ALL * FROM tab1 WHERE - 12 <= ( + col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + 66 IS NULL
----

query I rowsort
SELECT - 29 * 28 FROM tab1
----
-812
-812
-812

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1602
SELECT ALL col0 FROM tab1 WHERE CAST( NULL AS SIGNED ) NOT IN ( col1 )
----

skipif mysql # not compatible
query I rowsort label-1602
SELECT ALL col0 FROM tab1 WHERE CAST ( NULL AS INTEGER ) NOT IN ( col1 )
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1604
SELECT DISTINCT - COUNT( * ) AS col0 FROM tab1 WHERE NULL NOT IN ( 75 )
----
0

skipif mysql # not compatible
query I rowsort label-1604
SELECT DISTINCT - COUNT ( * ) AS col0 FROM tab1 WHERE NULL NOT IN ( 75 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1605
SELECT DISTINCT - MIN( ALL + 96 ) * ( COUNT( * ) ) AS col0 FROM tab2
----
-288

skipif mysql # not compatible
query I rowsort label-1605
SELECT DISTINCT - MIN ( ALL + 96 ) * ( COUNT ( * ) ) AS col0 FROM tab2
----
-288

onlyif mysql # DIV for integer division: 
query I rowsort label-1606
SELECT DISTINCT + 21 DIV - 79 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-1606
SELECT DISTINCT + 21 / - 79 FROM tab2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1607
SELECT 7 - + MIN( - 99 + + col2 ) DIV + 54 FROM tab2
----
8

skipif mysql # not compatible
query I rowsort label-1607
SELECT 7 - + MIN ( - 99 + + col2 ) / + 54 FROM tab2
----
8

query I rowsort
SELECT ALL + 39 * ( col0 * col0 ) AS col0 FROM tab2
----
159744
219375
82524

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1611
SELECT DISTINCT - COUNT( * ) FROM tab2 AS cor0 WHERE NOT + col2 + CAST( NULL AS SIGNED ) = ( NULL )
----
0

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1614
SELECT ALL * FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN CAST( - col2 AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-1614
SELECT ALL * FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN CAST ( - col2 AS INTEGER ) AND NULL
----

query I rowsort
SELECT DISTINCT - col1 * col0 FROM tab0 AS cor0 WHERE NOT 13 * - col1 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1616
SELECT ALL + CAST( + COUNT( DISTINCT 58 ) AS SIGNED ) AS col1 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-1616
SELECT ALL + CAST ( + COUNT ( DISTINCT 58 ) AS INTEGER ) AS col1 FROM tab2 AS cor0
----
1

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1619
SELECT - CAST( NULL AS SIGNED ) AS col2 FROM tab2 cor0 CROSS JOIN tab0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-1619
SELECT - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 cor0 CROSS JOIN tab0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # aggregate syntax: 
query I rowsort label-1620
SELECT SUM( - 76 ) FROM tab2 AS cor0 CROSS JOIN tab0
----
-684

skipif mysql # not compatible
query I rowsort label-1620
SELECT SUM ( - 76 ) FROM tab2 AS cor0 CROSS JOIN tab0
----
-684

query I rowsort
SELECT ALL - ( col1 ) AS col0 FROM tab0 cor0 WHERE - 94 + + col2 * col2 IS NULL
----

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

query I rowsort
SELECT DISTINCT - col2 * + 97 FROM tab2 AS cor0
----
-2231
-3880
-5626

onlyif mysql # aggregate syntax: 
query I rowsort label-1624
SELECT DISTINCT - COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE 81 * col1 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-1624
SELECT DISTINCT - COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE 81 * col1 IS NOT NULL
----
-3

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

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

query I rowsort
SELECT ALL - + 49 * 18 AS col1 FROM tab2 AS cor0
----
-882
-882
-882

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 94 * col0 col2 FROM tab0
----
1410
8178
9118

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

query I rowsort
SELECT + col2 * - 24 * - col1 FROM tab1
----
32256
7080
76704

query I rowsort
SELECT ALL 47 * - + 70 FROM tab2
----
-3290
-3290
-3290

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1633
SELECT ALL ( + + ( - 60 ) ) * COUNT( * ) AS col1 FROM tab1
----
-180

skipif mysql # not compatible
query I rowsort label-1633
SELECT ALL ( + + ( - 60 ) ) * COUNT ( * ) AS col1 FROM tab1
----
-180

query I rowsort
SELECT ALL 75 * + col1 FROM tab1
----
1050
3525
375

query I rowsort
SELECT 35 * - 94 AS col1 FROM tab0
----
-3290
-3290
-3290

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

query I rowsort
SELECT - col1 * + - col1 AS col1 FROM tab1
----
196
2209
25

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

query I rowsort
SELECT ( + col2 ) * col2 AS col2 FROM tab0
----
100
2209
9801

onlyif mysql # aggregate syntax: 
query I rowsort label-1640
SELECT + ( - SUM( 70 ) ) AS col0 FROM tab2
----
-210

skipif mysql # not compatible
query I rowsort label-1640
SELECT + ( - SUM ( 70 ) ) AS col0 FROM tab2
----
-210

query I rowsort
SELECT DISTINCT 99 AS col2 FROM tab1 WHERE ( NULL ) BETWEEN 28 AND ( NULL )
----

query I rowsort
SELECT + ( - 55 ) FROM tab0
----
-55
-55
-55

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1644
SELECT - 78 * col2 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN ( - col0 * col2 + CAST( NULL AS SIGNED ) ) AND col0 * - col2
----

skipif mysql # not compatible
query I rowsort label-1644
SELECT - 78 * col2 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN ( - col0 * col2 + CAST ( NULL AS INTEGER ) ) AND col0 * - col2
----

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

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col1 + 90 < col0 * - 96
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1647
SELECT - col1 + + + CAST( - + col1 AS SIGNED ) * 2 FROM tab2
----
-153
-201
-231

skipif mysql # not compatible
query I rowsort label-1647
SELECT - col1 + + + CAST ( - + col1 AS INTEGER ) * 2 FROM tab2
----
-153
-201
-231

query I rowsort
SELECT DISTINCT col1 + - - col0 FROM tab2
----
141
142
97

onlyif mysql # aggregate syntax: 
query I rowsort label-1649
SELECT MAX( DISTINCT + col1 ) * - MAX( ( col0 ) * + col2 + col2 ) FROM tab0 WHERE ( NULL ) NOT BETWEEN ( col2 * col0 ) AND 13 / 58
----
NULL

skipif mysql # not compatible
query I rowsort label-1649
SELECT MAX ( DISTINCT + col1 ) * - MAX ( ( col0 ) * + col2 + col2 ) FROM tab0 WHERE ( NULL ) NOT BETWEEN ( col2 * col0 ) AND 13 / 58
----
NULL

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

query I rowsort
SELECT ALL - col2 * + 6 AS col0 FROM tab1 AS cor0
----
-354
-408
-576

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

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

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

query I rowsort
SELECT ALL 60 * - + 94 FROM tab2 AS cor0
----
-5640
-5640
-5640

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 58 = NULL
----

query I rowsort
SELECT + - col0 - - col1 + + - col1 + + col0 * 22 FROM tab2 AS cor0
----
1344
1575
966

query I rowsort
SELECT 1 AS col0 FROM tab1 WHERE + 77 / 60 * col0 IS NOT NULL
----
1
1
1

query I rowsort
SELECT DISTINCT 89 * 7 + col1 FROM tab0
----
624
644
704

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

query I rowsort
SELECT 98 + + 47 + - col2 AS col1 FROM tab1
----
49
77
86

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * + col0 + + col0 col1 FROM tab2
----
-2300
-4864
-4950

query II rowsort
SELECT ALL 51 * + - 58, + col2 AS col0 FROM tab0
----
-2958
10
-2958
47
-2958
99

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + + ( - 81 ) * col1 BETWEEN col1 AND col2 * 68 + ( - 24 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1664
SELECT 60 FROM tab2 AS cor0 WHERE - 79 <> ( + CAST( 68 AS SIGNED ) )
----
60
60
60

skipif mysql # not compatible
query I rowsort label-1664
SELECT 60 FROM tab2 AS cor0 WHERE - 79 <> ( + CAST ( 68 AS INTEGER ) )
----
60
60
60

onlyif mysql # aggregate syntax: 
query I rowsort label-1665
SELECT - MAX( 38 ) AS col2 FROM tab0 cor0
----
-38

skipif mysql # not compatible
query I rowsort label-1665
SELECT - MAX ( 38 ) AS col2 FROM tab0 cor0
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-1666
SELECT ALL COUNT( * ) + + 52 FROM tab2 AS cor0 WHERE NOT ( - col0 ) BETWEEN col1 * - 87 + 87 AND - col1
----
54

skipif mysql # not compatible
query I rowsort label-1666
SELECT ALL COUNT ( * ) + + 52 FROM tab2 AS cor0 WHERE NOT ( - col0 ) BETWEEN col1 * - 87 + 87 AND - col1
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-1667
SELECT MIN( - + col0 ) AS col1 FROM tab1
----
-91

skipif mysql # not compatible
query I rowsort label-1667
SELECT MIN ( - + col0 ) AS col1 FROM tab1
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-1668
SELECT ALL SUM( - 82 ) AS col1 FROM tab0 AS cor0 WHERE - col2 NOT BETWEEN - col2 AND col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1668
SELECT ALL SUM ( - 82 ) AS col1 FROM tab0 AS cor0 WHERE - col2 NOT BETWEEN - col2 AND col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1669
SELECT DISTINCT COUNT( * ) DIV COUNT( * ) FROM tab0 AS cor0 WHERE ( col0 ) IS NOT NULL
----
1

skipif mysql # not compatible
query I rowsort label-1669
SELECT DISTINCT COUNT ( * ) / COUNT ( * ) FROM tab0 AS cor0 WHERE ( col0 ) IS NOT NULL
----
1

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

query I rowsort
SELECT - - col0 * col0 + col0 AS col2 FROM tab2 AS cor0
----
2162
4160
5700

query I rowsort
SELECT - 59 * - col2 * + - col1 + - 81 + - + col0 * + 70 AS col0 FROM tab1 cor0
----
-195015
-23436
-82947

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

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

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

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

query I rowsort
SELECT ALL + 75 * col1 FROM tab2 AS cor0 WHERE NOT NULL <= col1 + col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 63, - col1 - + + col0 + 53 col0 FROM tab2 WHERE NOT - - 72 IS NULL
----
-63
-44
-63
-88
-63
-89

query I rowsort
SELECT ALL - col1 * 14 AS col0 FROM tab2 WHERE NOT NULL <> ( + + 2 * + col1 + - col0 * 98 + col2 )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col0 * - 45 + + - 73 BETWEEN 10 AND col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

query I rowsort
SELECT col0 + 21 * 3 AS col0 FROM tab2 AS cor0 WHERE ( NULL ) <> 82 / + + col2 + col2 + - col1
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1682
SELECT ALL - ( + CAST( NULL AS SIGNED ) ) + - 7 AS col2 FROM tab1 AS cor0 WHERE + col1 NOT IN ( - col1 )
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1682
SELECT ALL - ( + CAST ( NULL AS INTEGER ) ) + - 7 AS col2 FROM tab1 AS cor0 WHERE + col1 NOT IN ( - col1 )
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( - 17 ) NOT BETWEEN ( col1 * + + col1 + + col0 * 99 ) AND NULL
----

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( + - 17 IS NULL )
----

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

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-1689
SELECT DISTINCT + 22 / - col0 FROM tab1 AS cor0
----
0

query II rowsort
SELECT DISTINCT col2 + - col2 AS col2, - 90 AS col1 FROM tab0 AS cor0
----
0
-90

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1691
SELECT - col2 DIV - CAST( col0 AS SIGNED ) AS col2 FROM tab0
----
0
1
3

skipif mysql # not compatible
query I rowsort label-1691
SELECT - col2 / - CAST ( col0 AS INTEGER ) AS col2 FROM tab0
----
0
1
3

query I rowsort
SELECT ALL 30 + col0 AS col2 FROM tab2
----
105
76
94

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1694
SELECT ALL - CAST ( NULL AS INTEGER ) - 55 col2 FROM tab0
----
NULL
NULL
NULL

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

skipif mysql # not compatible
query I rowsort label-1695
SELECT ALL COUNT ( * ) - + 27 FROM tab0
----
-24

query I rowsort
SELECT ALL - col2 FROM tab2 WHERE ( - 57 ) IS NULL
----

query I rowsort
SELECT ALL + col0 - - - col1 AS col1 FROM tab1
----
37
44
80

query I rowsort
SELECT DISTINCT col0 * + 46 FROM tab2
----
2116
2944
3450

onlyif mysql # DIV for integer division: 
query I rowsort label-1699
SELECT ALL + col2 DIV col1 + 21 + 23 AS col0 FROM tab0 AS cor0
----
143
44
44

skipif mysql # not compatible
query I rowsort label-1699
SELECT ALL + col2 / col1 + 21 + 23 AS col0 FROM tab0 AS cor0
----
143
44
44

onlyif mysql # aggregate syntax: 
query I rowsort label-1700
SELECT + SUM( DISTINCT - col0 ) col0 FROM tab1 AS cor0
----
-227

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

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

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

query I rowsort
SELECT + 9 + col0 / - 83 * col2 - + ( col1 - 64 ) * ( - col1 * ( 21 ) ) FROM tab0 AS cor0 WHERE NOT ( + 77 ) NOT IN ( + col2 / + col2 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1703
SELECT ALL - + CAST( NULL AS DECIMAL ) AS col0 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1703
SELECT ALL - + CAST ( NULL AS REAL ) AS col0 FROM tab1 cor0
----
NULL
NULL
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1705
SELECT ALL - 7 DIV - - 92 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1705
SELECT ALL - 7 / - - 92 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1706
SELECT MAX( + + col2 ) AS col2 FROM tab1 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-1706
SELECT MAX ( + + col2 ) AS col2 FROM tab1 AS cor0
----
96

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - 74 > col0
----

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

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

query I rowsort
SELECT + - 54 * + col0 * + col1 AS col1 FROM tab0 AS cor0
----
-5238
-65610
-98658

query I rowsort
SELECT DISTINCT col2 + - - col1 AS col0 FROM tab1
----
110
115
64

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

query I rowsort
SELECT ALL 67 + - + col2 + + - col0 + - col0 FROM tab0
----
-10
-117
-226

query II rowsort
SELECT DISTINCT + col0 AS col1, + 25 FROM tab2
----
46
25
64
25
75
25

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

skipif mysql # not compatible
query I rowsort label-1714
SELECT - 27 + COUNT ( * ) AS col2 FROM tab1 WHERE ( NULL ) < col2 * - col1
----
-27

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1715
SELECT COUNT( * ) DIV + - 9 AS col0 FROM tab0
----
0

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 58 * - 64 col2 FROM tab2 AS cor0
----
-3712
-3712
-3712

onlyif mysql # aggregate syntax: 
query I rowsort label-1717
SELECT - COUNT( * ) + - MAX( - + 96 ) AS col1 FROM tab0 cor0
----
93

skipif mysql # not compatible
query I rowsort label-1717
SELECT - COUNT ( * ) + - MAX ( - + 96 ) AS col1 FROM tab0 cor0
----
93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + ( + 57 ) + + col0 col0 FROM tab1
----
2770
370
849

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1719
SELECT - col2 FROM tab1 WHERE NOT col0 * col1 * col2 * col2 IS NULL OR NOT NULL > 12 + - CAST( NULL AS SIGNED ) - + + col2
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-1719
SELECT - col2 FROM tab1 WHERE NOT col0 * col1 * col2 * col2 IS NULL OR NOT NULL > 12 + - CAST ( NULL AS INTEGER ) - + + col2
----
-59
-68
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 20 col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 2fdd942fe0307a6ff66b63004ef102c4

onlyif mysql # aggregate syntax: 
query I rowsort label-1721
SELECT + COUNT( DISTINCT + col0 ) AS col0 FROM tab2 WHERE - + 81 BETWEEN ( - col2 ) AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-1721
SELECT + COUNT ( DISTINCT + col0 ) AS col0 FROM tab2 WHERE - + 81 BETWEEN ( - col2 ) AND NULL
----
0

query I rowsort
SELECT ALL - 96 AS col0 FROM tab2 AS cor0 WHERE NOT NULL > + + col2 AND NOT NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1723
SELECT * FROM tab2 AS cor0 WHERE col1 NOT IN ( - - col0, 23 * col2 / + + CAST( col0 AS SIGNED ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-1723
SELECT * FROM tab2 AS cor0 WHERE col1 NOT IN ( - - col0, 23 * col2 / + + CAST ( col0 AS INTEGER ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT ALL - ( + col0 ), col0 FROM tab2 AS cor0
----
-46
46
-64
64
-75
75

onlyif mysql # DIV for integer division: 
query I rowsort label-1725
SELECT DISTINCT + 85 DIV + + col1 AS col0 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-1725
SELECT DISTINCT + 85 / + + col1 AS col0 FROM tab2 AS cor0
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * col2 * + col2 + - col1 * ( + + 52 ) * col2 col2 FROM tab1 AS cor0
----
2065
51136
59136

query I rowsort
SELECT DISTINCT col0 + + col0 + + col2 FROM tab1 AS cor0
----
198
229
250

query I rowsort
SELECT ALL col2 * - col0 + 47 AS col2 FROM tab0
----
-658
-823
-9556

query I rowsort
SELECT 57 * - 68 AS col2 FROM tab0
----
-3876
-3876
-3876

query I rowsort
SELECT ALL + col1 * + - 33 AS col1 FROM tab2
----
-1683
-2211
-2541

query I rowsort
SELECT ALL + col2 * 88 FROM tab1
----
5192
5984
8448

query I rowsort
SELECT ALL - 74 * + + col2 FROM tab1
----
-4366
-5032
-7104

onlyif mysql # DIV for integer division: 
query I rowsort label-1733
SELECT 97 DIV + col2 AS col1 FROM tab2
----
1
2
4

skipif mysql # not compatible
query I rowsort label-1733
SELECT 97 / + col2 AS col1 FROM tab2
----
1
2
4

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

query II rowsort
SELECT ALL 14, + col0 FROM tab0
----
14
15
14
87
14
97

query I rowsort
SELECT - 47 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 6942a0d9558277afd0d00408d65cf5aa

query II rowsort
SELECT ALL + + col1, - col2 FROM tab0 AS cor0
----
1
-99
21
-10
81
-47

onlyif mysql # DIV for integer division: 
query I rowsort label-1738
SELECT DISTINCT - col1 DIV - col2 FROM tab0 cor0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-1738
SELECT DISTINCT - col1 / - col2 FROM tab0 cor0
----
0
1
2

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col2 * + col2 * - + col0 * - + col1 * - 95 BETWEEN ( + col1 ) AND - col1 * 59
----

query II rowsort
SELECT - + 18 AS col2, - 20 AS col1 FROM tab2 AS cor0
----
-18
-20
-18
-20
-18
-20

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 91 + + - col1 col2 FROM tab1 AS cor0
----
-105
-138
-96

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 2 col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
2
2
2

query I rowsort
SELECT col2 + - - col0 - + + ( col0 ) - + + col1 * - col0 AS col1 FROM tab2
----
2369
4968
5083

query I rowsort
SELECT ALL - - 79 * + col2 + + col1 + + col0 FROM tab1 WHERE NOT + 55 IS NOT NULL
----

query I rowsort
SELECT - col2 - - col2 + - col2 AS col1 FROM tab0 WHERE - col0 * 16 + + col2 NOT IN ( + + col2, + col0 )
----
-10
-47
-99

query I rowsort
SELECT ALL col1 + col2 + + col1 * + 99 FROM tab0
----
199
2110
8147

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2, - 60 + + col0 col2 FROM tab2 AS cor0 WHERE NULL <> NULL
----

query I rowsort
SELECT DISTINCT + 8 + - col1 AS col2 FROM tab1 AS cor0
----
-39
-6
3

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab2 cor1 WHERE NOT 90 IS NOT NULL
----

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

skipif mysql # not compatible
query I rowsort label-1751
SELECT + 3 + COUNT ( ALL col1 ) FROM tab1
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-1752
SELECT - - 41 + + SUM( DISTINCT col0 ) AS col1 FROM tab2 cor0
----
226

skipif mysql # not compatible
query I rowsort label-1752
SELECT - - 41 + + SUM ( DISTINCT col0 ) AS col1 FROM tab2 cor0
----
226

onlyif mysql # aggregate syntax: 
query I rowsort label-1753
SELECT ALL - COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE ( 7 ) <= - col0
----
0

skipif mysql # not compatible
query I rowsort label-1753
SELECT ALL - COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE ( 7 ) <= - col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1754
SELECT DISTINCT - - col2 - + col2 DIV - - col2 AS col2 FROM tab1 AS cor0
----
58
67
95

skipif mysql # not compatible
query I rowsort label-1754
SELECT DISTINCT - - col2 - + col2 / - - col2 AS col2 FROM tab1 AS cor0
----
58
67
95

query I rowsort
SELECT ALL + - 15 FROM tab1 AS cor0
----
-15
-15
-15

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 23 IS NULL
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1758
SELECT ALL - ( CAST( - col1 AS SIGNED ) ) AS col0 FROM tab2
----
51
67
77

skipif mysql # not compatible
query I rowsort label-1758
SELECT ALL - ( CAST ( - col1 AS INTEGER ) ) AS col0 FROM tab2
----
51
67
77

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

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

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

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

query I rowsort
SELECT ALL + col2 * + col2 * - 30 AS col1 FROM tab0
----
-294030
-3000
-66270

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

query I rowsort
SELECT DISTINCT + 30 * + - col2 FROM tab2
----
-1200
-1740
-690

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * + col0 - col2 col0 FROM tab0 AS cor0
----
-272
-7579
-9508

query I rowsort
SELECT + 8 + + col2 AS col0 FROM tab1
----
104
67
76

query I rowsort
SELECT ALL + col1 * 28 FROM tab1
----
1316
140
392

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1768
SELECT - 97 DIV - col0 col1, - col2 - - CAST( col2 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
1
0
1
0
6
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1768
SELECT - 97 / - col0 col1, - col2 - - CAST ( col2 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
1
0
1
0
6
0

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - 22 * + col0 / col2 <= col2 * + 38 - - col2 - + - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT - 16, + 78 FROM tab0 cor0 WHERE col1 <= NULL
----

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

skipif mysql # not compatible
query I rowsort label-1771
SELECT ALL + 24 + COUNT ( * ) FROM tab0
----
27

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col0 + ( 47 ) col0, + col2 FROM tab2
----
111
40
122
58
93
23

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

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

skipif mysql # not compatible
query I rowsort label-1775
SELECT + - ( - COUNT ( * ) ) FROM tab2, tab1 AS cor0 WHERE NULL IS NULL
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-1776
SELECT + 40 + - MIN( DISTINCT + col2 ) + 5 + MIN( + 83 ) AS col2 FROM tab2
----
105

skipif mysql # not compatible
query I rowsort label-1776
SELECT + 40 + - MIN ( DISTINCT + col2 ) + 5 + MIN ( + 83 ) AS col2 FROM tab2
----
105

query I rowsort
SELECT ALL + col2 + col0 AS col2 FROM tab0 WHERE NOT 61 <> 20 - + col1
----

query II rowsort
SELECT DISTINCT 14 AS col2, 44 AS col2 FROM tab0 AS cor0
----
14
44

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 / + - 22 + - col1 col2 FROM tab1 cor0 WHERE col1 < - 21 * - - 11
----

query I rowsort
SELECT DISTINCT col2 * - col0 + + - col1 * - - col1 FROM tab0 cor0
----
-1311
-7266
-9604

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col0, col1 col0 FROM tab0 AS cor0
----
-15
81
-87
21
-97
1

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

skipif mysql # not compatible
query I rowsort label-1782
SELECT - col2 / 82 FROM tab1 AS cor0
----
-1
0
0

query I rowsort
SELECT ALL 60 + - col1 * ( + col2 ) * - + col2 FROM tab1
----
129084
17465
217388

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1784
SELECT ALL - 59 - - CAST( + + ( + CAST( + col1 AS DECIMAL ) ) AS SIGNED ) + - - col2 AS col0 FROM tab1 AS cor0
----
5
51
56

skipif mysql # not compatible
query I rowsort label-1784
SELECT ALL - 59 - - CAST ( + + ( + CAST ( + col1 AS REAL ) ) AS INTEGER ) + - - col2 AS col0 FROM tab1 AS cor0
----
5
51
56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1785
SELECT ALL - col1 * - col0 / + CAST( NULL AS SIGNED ) + - 71 * + 26 * - - 74 * CAST( NULL AS SIGNED ) AS col2 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1785
SELECT ALL - col1 * - col0 / + CAST ( NULL AS INTEGER ) + - 71 * + 26 * - - 74 * CAST ( NULL AS INTEGER ) AS col2 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 62 AS col2 FROM tab0 AS cor0
----
62

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1789
SELECT SUM( col2 ) * COUNT( * ) FROM tab1 AS cor0
----
669

skipif mysql # not compatible
query I rowsort label-1789
SELECT SUM ( col2 ) * COUNT ( * ) FROM tab1 AS cor0
----
669

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1791
SELECT - COUNT( + 73 ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-1791
SELECT - COUNT ( + 73 ) FROM tab2 AS cor0
----
-3

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

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

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

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

query I rowsort
SELECT ALL - col2 * - - col1 AS col1 FROM tab0
----
-210
-3807
-99

query I rowsort
SELECT 57 + + col1 + 25 * - col0 FROM tab2 cor0
----
-1042
-1466
-1751

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1796
SELECT - - SUM( - CAST( - 3 AS SIGNED ) ) + + 32 + + + 14 AS col0 FROM tab1 cor0
----
55

skipif mysql # not compatible
query I rowsort label-1796
SELECT - - SUM ( - CAST ( - 3 AS INTEGER ) ) + + 32 + + + 14 AS col0 FROM tab1 cor0
----
55

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1797
SELECT DISTINCT 60 + + COUNT ( * ) col2 FROM tab2 AS cor0
----
63

query I rowsort
SELECT col2 + - 24 AS col1 FROM tab1 AS cor0
----
35
44
72

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1799
SELECT - 83 + - col2 col1, CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
-106
NULL
-123
NULL
-141
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1799
SELECT - 83 + - col2 col1, CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
-106
NULL
-123
NULL
-141
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1 + 35 AS col1, col1 col2 FROM tab1
----
40
5
49
14
82
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + AVG ( col1 ) col1 FROM tab0 WHERE NULL IS NOT NULL
----
NULL

query I rowsort
SELECT ALL + col1 * - - 27 FROM tab1
----
1269
135
378

onlyif mysql # aggregate syntax: 
query I rowsort label-1803
SELECT + MIN( DISTINCT + 1 ) * + - COUNT( - 69 ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-1803
SELECT + MIN ( DISTINCT + 1 ) * + - COUNT ( - 69 ) FROM tab2
----
-3

query I rowsort
SELECT DISTINCT + col0 * + col1 * 94 AS col0 FROM tab0
----
114210
171738
9118

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

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

query I rowsort
SELECT ALL + 61 * + 77 + col0 * + ( + col0 ) FROM tab1 AS cor0
----
11922
12978
7298

query I rowsort
SELECT DISTINCT + + col2 + - 4 FROM tab0 AS cor0
----
43
6
95

query I rowsort
SELECT - 15 - - 79 AS col0 FROM tab2 AS cor0
----
64
64
64

onlyif mysql # DIV for integer division: 
query I rowsort label-1809
SELECT ALL - 68 DIV - - 62 AS col0 FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-1809
SELECT ALL - 68 / - - 62 AS col0 FROM tab0 AS cor0
----
-1
-1
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1810
SELECT DISTINCT + SUM( + 97 ) * CAST( NULL AS SIGNED ) + + ( + + COUNT( + col2 ) ) * + 36 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1810
SELECT DISTINCT + SUM ( + 97 ) * CAST ( NULL AS INTEGER ) + + ( + + COUNT ( + col2 ) ) * + 36 FROM tab0 cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1811
SELECT ALL + col0 DIV - + col0 - col1 col2 FROM tab1
----
-15
-48
-6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1811
SELECT ALL + col0 / - + col0 - col1 col2 FROM tab1
----
-15
-48
-6

onlyif mysql # aggregate syntax: 
query II rowsort label-1812
SELECT + + 16 col2, COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
16
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1812
SELECT + + 16 col2, COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
16
9

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

query I rowsort
SELECT ALL col0 * + 39 AS col0 FROM tab2
----
1794
2496
2925

onlyif mysql # aggregate syntax: 
query I rowsort label-1815
SELECT DISTINCT + - COUNT( * ) * + - 82 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
738

skipif mysql # not compatible
query I rowsort label-1815
SELECT DISTINCT + - COUNT ( * ) * + - 82 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
738

query I rowsort
SELECT 1 * - 69 + - ( - 95 ) - - - 59 AS col2 FROM tab2 AS cor0
----
-33
-33
-33

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1818
SELECT ALL CAST( - - COUNT( * ) AS SIGNED ) AS col0 FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-1818
SELECT ALL CAST ( - - COUNT ( * ) AS INTEGER ) AS col0 FROM tab1 cor0
----
3

query I rowsort
SELECT - ( - - 89 ) FROM tab0 AS cor0
----
-89
-89
-89

onlyif mysql # CAST syntax: DECIMAL type: 
query IIIIII rowsort label-1820
SELECT * FROM tab0, tab1 AS cor0 WHERE - CAST( NULL AS DECIMAL ) IS NULL OR NOT NULL IS NULL
----
54 values hashing to 9cf5329ae50920f4c6e297c9f5b652fd

skipif mysql # not compatible
query IIIIII rowsort label-1820
SELECT * FROM tab0, tab1 AS cor0 WHERE - CAST ( NULL AS REAL ) IS NULL OR NOT NULL IS NULL
----
54 values hashing to 9cf5329ae50920f4c6e297c9f5b652fd

query I rowsort
SELECT DISTINCT col2 + 89 AS col1 FROM tab0 WHERE NOT + col0 NOT IN ( - 26, col2 - - - 66 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1822
SELECT ALL - col0 + - col2 AS col1, CAST( NULL AS SIGNED ) - + col0 * 72 * col0 FROM tab2 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query II rowsort label-1822
SELECT ALL - col0 + - col2 AS col1, CAST ( NULL AS INTEGER ) - + col0 * 72 * col0 FROM tab2 WHERE NULL IS NOT NULL
----

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1824
SELECT MIN( DISTINCT - col2 ) AS col0, COUNT( ALL - col2 ) FROM tab2
----
-58
3

skipif mysql # not compatible
query II rowsort label-1824
SELECT MIN ( DISTINCT - col2 ) AS col0, COUNT ( ALL - col2 ) FROM tab2
----
-58
3

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

skipif mysql # not compatible
query I rowsort label-1825
SELECT DISTINCT + + MAX ( col1 ) * + 1 AS col2 FROM tab1 AS cor0
----
47

query I rowsort
SELECT 24 + + - col0 + - 34 AS col0 FROM tab0 AS cor0
----
-107
-25
-97

query I rowsort
SELECT ALL - col1 * 60 AS col1 FROM tab2 AS cor0
----
-3060
-4020
-4620

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

query I rowsort
SELECT ALL - col2 AS col1 FROM tab2 AS cor0 WHERE NOT - col0 * col2 IS NULL
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-1830
SELECT + - COUNT( * ) * SUM( + 69 ) FROM tab0 AS cor0
----
-621

skipif mysql # not compatible
query I rowsort label-1830
SELECT + - COUNT ( * ) * SUM ( + 69 ) FROM tab0 AS cor0
----
-621

query I rowsort
SELECT DISTINCT col1 * - - col1 + col2 AS col2 FROM tab1 AS cor0
----
2277
292
84

onlyif mysql # DIV for integer division: 
query I rowsort label-1832
SELECT ALL - 46 DIV + 87 AS col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1832
SELECT ALL - 46 / + 87 AS col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + col2 + ( + - 37 ) AS col0 FROM tab0 AS cor0
----
-27
10
62

onlyif mysql # DIV for integer division: 
query I rowsort label-1834
SELECT - col0 DIV - 23 - - 92 FROM tab1 AS cor0
----
94
95
95

skipif mysql # not compatible
query I rowsort label-1834
SELECT - col0 / - 23 - - 92 FROM tab1 AS cor0
----
94
95
95

query I rowsort
SELECT DISTINCT - col1 AS col1 FROM tab0 WHERE col0 + + col2 <= NULL
----

query I rowsort
SELECT 9 * - 25 - 57 FROM tab0
----
-282
-282
-282

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

query I rowsort
SELECT ALL - col1 * - col1 + + + col0 FROM tab2
----
2647
4564
5993

onlyif mysql # aggregate syntax: 
query I rowsort label-1839
SELECT 23 * 47 + COUNT( * ) * MAX( DISTINCT col0 ) FROM tab1
----
1354

skipif mysql # not compatible
query I rowsort label-1839
SELECT 23 * 47 + COUNT ( * ) * MAX ( DISTINCT col0 ) FROM tab1
----
1354

onlyif mysql # aggregate syntax: 
query I rowsort label-1840
SELECT + MIN( - ( + col0 ) ) + - - 66 col0 FROM tab0
----
-31

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1840
SELECT + MIN ( - ( + col0 ) ) + - - 66 col0 FROM tab0
----
-31

query I rowsort
SELECT ALL 82 + col1 FROM tab2
----
133
149
159

query I rowsort
SELECT ALL col1 * - - col0 + + 72 + - col2 AS col2 FROM tab1
----
4281
438
690

onlyif mysql # aggregate syntax: 
query II rowsort label-1843
SELECT ALL - COUNT( * ) * - + COUNT( * ) col0, - 49 FROM tab0
----
9
-49

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1843
SELECT ALL - COUNT ( * ) * - + COUNT ( * ) col0, - 49 FROM tab0
----
9
-49

onlyif mysql # DIV for integer division: 
query I rowsort label-1844
SELECT col1 + col2 DIV - 72 FROM tab2
----
51
67
77

skipif mysql # not compatible
query I rowsort label-1844
SELECT col1 + col2 / - 72 FROM tab2
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-1845
SELECT ALL + COUNT( * ) * - - COUNT( * ) + 18 col0 FROM tab1 AS cor0
----
27

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

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

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

query I rowsort
SELECT - ( + 59 ) * + 21 + - 0 FROM tab1 AS cor0
----
-1239
-1239
-1239

query IIIIII rowsort
SELECT * FROM ( tab1 AS cor0 CROSS JOIN tab2 cor1 ) WHERE 39 * - + 39 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1849
SELECT DISTINCT - 50 * - - 17 - - COUNT( * ) FROM tab0 AS cor0
----
-847

skipif mysql # not compatible
query I rowsort label-1849
SELECT DISTINCT - 50 * - - 17 - - COUNT ( * ) FROM tab0 AS cor0
----
-847

query II rowsort
SELECT - - col0 * - col1, col0 FROM tab0 AS cor0
----
-1215
15
-1827
87
-97
97

onlyif mysql # aggregate syntax: 
query I rowsort label-1851
SELECT DISTINCT MIN( - 61 ) FROM tab2
----
-61

skipif mysql # not compatible
query I rowsort label-1851
SELECT DISTINCT MIN ( - 61 ) FROM tab2
----
-61

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

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

skipif mysql # not compatible
query I rowsort label-1853
SELECT ALL COUNT ( * ) * + - 59 FROM tab0
----
-177

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1855
SELECT COUNT( * ) * - 98 AS col0 FROM tab1
----
-294

skipif mysql # not compatible
query I rowsort label-1855
SELECT COUNT ( * ) * - 98 AS col0 FROM tab1
----
-294

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE - 80 + col1 + - col2 / - col1 > - - col2 + + ( + col1 )
----

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

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

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

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

query I rowsort
SELECT + + 0 AS col2 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query II rowsort label-1861
SELECT DISTINCT SUM( + - col2 ) AS col2, 62 FROM tab1
----
-223
62

skipif mysql # not compatible
query II rowsort label-1861
SELECT DISTINCT SUM ( + - col2 ) AS col2, 62 FROM tab1
----
-223
62

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

query I rowsort
SELECT DISTINCT + - 31 FROM tab2 AS cor0
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-1864
SELECT ALL + MIN( DISTINCT 64 ) * + COUNT( * ) AS col0 FROM tab1 AS cor0
----
192

skipif mysql # not compatible
query I rowsort label-1864
SELECT ALL + MIN ( DISTINCT 64 ) * + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
192

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1867
SELECT DISTINCT + CAST( + - col1 AS SIGNED ) * col1 FROM tab0 AS cor0
----
-1
-441
-6561

skipif mysql # not compatible
query I rowsort label-1867
SELECT DISTINCT + CAST ( + - col1 AS INTEGER ) * col1 FROM tab0 AS cor0
----
-1
-441
-6561

query I rowsort
SELECT col1 + - + col0 AS col0 FROM tab1 cor0
----
-37
-44
-80

query I rowsort
SELECT - col1 * - + col0 + col2 FROM tab2 AS cor0
----
2369
4968
5083

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1871
SELECT + - col2 + CAST( - col0 AS SIGNED ) + - col1 * - 35 * + - 22 FROM tab0 AS cor0
----
-16267
-62432
-966

skipif mysql # not compatible
query I rowsort label-1871
SELECT + - col2 + CAST ( - col0 AS INTEGER ) + - col1 * - 35 * + - 22 FROM tab0 AS cor0
----
-16267
-62432
-966

onlyif mysql # aggregate syntax: 
query I rowsort label-1872
SELECT - + SUM( col0 ) AS col0 FROM tab1 AS cor0
----
-227

skipif mysql # not compatible
query I rowsort label-1872
SELECT - + SUM ( col0 ) AS col0 FROM tab1 AS cor0
----
-227

query I rowsort
SELECT DISTINCT + 68 + col1 AS col0 FROM tab1
----
115
73
82

query I rowsort
SELECT DISTINCT 64 + - 54 AS col1 FROM tab0
----
10

query III rowsort
SELECT * FROM tab0 WHERE col0 <= + col1 + + col2
----
15
81
47
97
1
99

query I rowsort
SELECT DISTINCT + 86 * - - col1 AS col0 FROM tab1
----
1204
4042
430

query I rowsort
SELECT 1 - - col2 FROM tab2
----
24
41
59

query I rowsort
SELECT 19 - - col1 + - ( + col2 ) FROM tab0
----
-79
30
53

query I rowsort
SELECT - col0 - - + 4 FROM tab1
----
-47
-81
-87

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

skipif mysql # not compatible
query I rowsort label-1880
SELECT MIN ( ALL + col1 ) FROM tab2
----
51

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

skipif mysql # not compatible
query I rowsort label-1881
SELECT + ( COUNT ( * ) ) AS col0 FROM tab2
----
3

query I rowsort
SELECT DISTINCT + col0 * + col1 * + col1 AS col0 FROM tab1 AS cor0
----
201019
2125
9996

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

query II rowsort
SELECT DISTINCT - + col1 AS col0, - 64 + 69 AS col2 FROM tab0 AS cor0
----
-1
5
-21
5
-81
5

onlyif mysql # aggregate syntax: 
query I rowsort label-1885
SELECT - MAX( + col0 ) AS col0 FROM tab0 AS cor0 WHERE NOT + 79 * + 20 = NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1885
SELECT - MAX ( + col0 ) AS col0 FROM tab0 AS cor0 WHERE NOT + 79 * + 20 = NULL
----
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + col2 > + + ( - 6 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1887
SELECT ALL AVG ( DISTINCT 88 ) * - CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1887
SELECT ALL AVG ( DISTINCT 88 ) * - CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1888
SELECT ALL CAST( + col0 AS SIGNED ) + col0 * + col0 * col1 col1 FROM tab0 AS cor0 WHERE NOT 44 * col1 IS NULL
----
159036
18240
9506

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1889
SELECT ALL 34 AS col2, 68 DIV + - col2 AS col0 FROM tab0 cor0
----
34
-1
34
-6
34
0

skipif mysql # not compatible
query II rowsort label-1889
SELECT ALL 34 AS col2, 68 / + - col2 AS col0 FROM tab0 cor0
----
34
-1
34
-6
34
0

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

query I rowsort
SELECT DISTINCT 37 * 25 FROM tab0
----
925

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

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

query I rowsort
SELECT ALL 55 * - + 4 AS col2 FROM tab2
----
-220
-220
-220

query I rowsort
SELECT col1 * - col1 * 64 FROM tab0
----
-28224
-419904
-64

query I rowsort
SELECT ALL col1 * + 33 AS col1 FROM tab0
----
2673
33
693

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1897
SELECT ALL - + 88 + + COUNT( * ) + 67 * 79 FROM tab2 AS cor0
----
5208

skipif mysql # not compatible
query I rowsort label-1897
SELECT ALL - + 88 + + COUNT ( * ) + 67 * 79 FROM tab2 AS cor0
----
5208

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

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

query I rowsort
SELECT - + col1 + 17 + col1 AS col2 FROM tab2 cor0
----
17
17
17

query I rowsort
SELECT + 22 + - col1 FROM tab0
----
-59
1
21

onlyif mysql # aggregate syntax: 
query I rowsort label-1901
SELECT ALL MAX( DISTINCT + col0 ) AS col0 FROM tab2
----
75

skipif mysql # not compatible
query I rowsort label-1901
SELECT ALL MAX ( DISTINCT + col0 ) AS col0 FROM tab2
----
75

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1902
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col1 / + col1 * - - 4 >= CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-1902
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col1 / + col1 * - - 4 >= CAST ( NULL AS INTEGER )
----

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

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

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) <> - + 18 + - col1
----

query I rowsort
SELECT col2 - 24 - - ( + 15 ) * col0 AS col0 FROM tab1 AS cor0
----
1310
1409
837

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

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

query I rowsort
SELECT DISTINCT 55 + - + col0 AS col1 FROM tab1
----
-30
-36
4

query I rowsort
SELECT ALL col2 - - 33 * col2 FROM tab0
----
1598
3366
340

query I rowsort
SELECT - col1 + - col0 + - 50 * - col0 FROM tab1
----
2485
4160
4412

query I rowsort
SELECT 91 + + - 3 FROM tab0
----
88
88
88

query I rowsort
SELECT ( + 62 ) + - 11 FROM tab0
----
51
51
51

onlyif mysql # DIV for integer division: 
query I rowsort label-1913
SELECT ALL - col1 + - col2 DIV - col0 FROM tab0
----
-21
-78
0

skipif mysql # not compatible
query I rowsort label-1913
SELECT ALL - col1 + - col2 / - col0 FROM tab0
----
-21
-78
0

query I rowsort
SELECT DISTINCT + col0 + 76 + + col1 FROM tab0
----
172
174
184

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 29 col0 FROM tab0 AS cor0 WHERE NULL <> ( + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1917
SELECT - 19 * + MIN( - col0 ) FROM tab1 cor0
----
1729

skipif mysql # not compatible
query I rowsort label-1917
SELECT - 19 * + MIN ( - col0 ) FROM tab1 cor0
----
1729

query I rowsort
SELECT DISTINCT col0 * + 52 FROM tab1
----
2652
4420
4732

query I rowsort
SELECT + 7 * - - 96 * + col0 FROM tab0
----
10080
58464
65184

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1922
SELECT DISTINCT + - MIN ( ALL col2 ) col1 FROM tab0 AS cor0
----
-10

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

query I rowsort
SELECT col1 + + - col2 - + ( - - col1 ) * col0 FROM tab1 AS cor0
----
-4298
-479
-796

onlyif mysql # aggregate syntax: 
query I rowsort label-1925
SELECT DISTINCT - COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE - col1 * + 29 * + + 62 * + col1 * col1 * - col2 + + - 83 + - col0 + + + 69 < NULL
----
0

skipif mysql # not compatible
query I rowsort label-1925
SELECT DISTINCT - COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE - col1 * + 29 * + + 62 * + col1 * col1 * - col2 + + - 83 + - col0 + + + 69 < NULL
----
0

query I rowsort
SELECT DISTINCT col2 + + - col2 * + + col0 FROM tab1
----
-4800
-4956
-6120

query III rowsort
SELECT * FROM tab1 WHERE NOT - col2 IN ( - + 0 * - - 41 * col0, + col1, - 26, + 43, 68 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + 1 + col0 col0 FROM tab2
----
128
150
92

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

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - 76 = 0 * 6
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + - 88 = + + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1933
SELECT DISTINCT MIN( ALL - + col0 ) FROM tab2 AS cor0 WHERE + col0 < - col0 / + CAST( - - col1 AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-1933
SELECT DISTINCT MIN ( ALL - + col0 ) FROM tab2 AS cor0 WHERE + col0 < - col0 / + CAST ( - - col1 AS REAL )
----
NULL

query II rowsort
SELECT + 6 AS col0, - 87 + - col1 * + col0 * + + col1 FROM tab0 cor0
----
6
-184
6
-38454
6
-98502

onlyif mysql # aggregate syntax: 
query I rowsort label-1935
SELECT SUM( DISTINCT - 41 ) AS col1 FROM tab1 AS cor0
----
-41

skipif mysql # not compatible
query I rowsort label-1935
SELECT SUM ( DISTINCT - 41 ) AS col1 FROM tab1 AS cor0
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-1936
SELECT ALL SUM( DISTINCT - - 3 ) + + SUM( DISTINCT + 51 ) AS col1 FROM tab1
----
54

skipif mysql # not compatible
query I rowsort label-1936
SELECT ALL SUM ( DISTINCT - - 3 ) + + SUM ( DISTINCT + 51 ) AS col1 FROM tab1
----
54

query I rowsort
SELECT DISTINCT 79 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
79

onlyif mysql # DIV for integer division: 
query I rowsort label-1938
SELECT 42 DIV + 8 + + - ( + col0 ) + 82 AS col1 FROM tab0
----
-10
0
72

skipif mysql # not compatible
query I rowsort label-1938
SELECT 42 / + 8 + + - ( + col0 ) + 82 AS col1 FROM tab0
----
-10
0
72

onlyif mysql # aggregate syntax: 
query I rowsort label-1939
SELECT DISTINCT - MAX( - 55 ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
55

skipif mysql # not compatible
query I rowsort label-1939
SELECT DISTINCT - MAX ( - 55 ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
55

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1942
SELECT + 61 * COUNT( - + col0 ) FROM tab0 cor0
----
183

skipif mysql # not compatible
query I rowsort label-1942
SELECT + 61 * COUNT ( - + col0 ) FROM tab0 cor0
----
183

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1943
SELECT COUNT( ALL col2 ) * - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1943
SELECT COUNT ( ALL col2 ) * - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT + + col2 + + col0 AS col1 FROM tab2 AS cor0 WHERE ( + col1 ) IS NOT NULL
----
104
133
69

onlyif mysql # aggregate syntax: 
query I rowsort label-1945
SELECT DISTINCT - + COUNT( * ) FROM tab2 WHERE 77 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-1945
SELECT DISTINCT - + COUNT ( * ) FROM tab2 WHERE 77 IS NOT NULL
----
-3

query I rowsort
SELECT ALL + - col1 + col0 FROM tab1 WHERE + col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1947
SELECT + COUNT( - + col1 ) col1 FROM tab1
----
3

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

query I rowsort
SELECT 77 AS col0 FROM tab1 WHERE NOT + + col0 NOT IN ( + 50 + + col0 + - - col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1949
SELECT DISTINCT CAST( 5 AS SIGNED ) FROM tab0
----
5

skipif mysql # not compatible
query I rowsort label-1949
SELECT DISTINCT CAST ( 5 AS INTEGER ) FROM tab0
----
5

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1951
SELECT DISTINCT 22, - COUNT( * ) AS col0 FROM tab0
----
22
-3

skipif mysql # not compatible
query II rowsort label-1951
SELECT DISTINCT 22, - COUNT ( * ) AS col0 FROM tab0
----
22
-3

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

skipif mysql # not compatible
query I rowsort label-1952
SELECT + MIN ( - + 90 ) AS col0 FROM tab2
----
-90

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

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col0 + - 15 * - col0 IS NULL
----

query I rowsort
SELECT DISTINCT + 57 AS col2 FROM tab2 cor0
----
57

query II rowsort
SELECT ALL col1 + col0 AS col2, + col1 FROM tab1 AS cor0
----
138
47
65
14
90
5

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1959
SELECT DISTINCT MIN( DISTINCT ( - col1 ) ) AS col0 FROM tab0
----
-81

skipif mysql # not compatible
query I rowsort label-1959
SELECT DISTINCT MIN ( DISTINCT ( - col1 ) ) AS col0 FROM tab0
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-1960
SELECT ALL - COUNT( * ) * + - 35 + + 86 + + ( + + MIN( DISTINCT ( + col0 ) ) ) AS col0 FROM tab0
----
206

skipif mysql # not compatible
query I rowsort label-1960
SELECT ALL - COUNT ( * ) * + - 35 + + 86 + + ( + + MIN ( DISTINCT ( + col0 ) ) ) AS col0 FROM tab0
----
206

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1961
SELECT CAST( NULL AS SIGNED ) / MAX( DISTINCT col1 ) + COUNT( * ) + 51 * SUM( + 26 ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-1961
SELECT CAST ( NULL AS INTEGER ) / MAX ( DISTINCT col1 ) + COUNT ( * ) + 51 * SUM ( + 26 ) AS col0 FROM tab1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - - ( + - 64 ) + - col1 col2 FROM tab1
----
-3781
-4399
-6158

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1965
SELECT ALL - - SUM( ALL - col2 ) * - - MAX( + col0 ) + - SUM( DISTINCT 11 ) FROM tab0 AS cor0 WHERE NOT col1 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1965
SELECT ALL - - SUM ( ALL - col2 ) * - - MAX ( + col0 ) + - SUM ( DISTINCT 11 ) FROM tab0 AS cor0 WHERE NOT col1 IS NOT NULL
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col1 BETWEEN - 85 * - - col2 + + - col2 / 52 AND + col1 + 73
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + col0 * - 8 FROM tab2 AS cor0
----
-368
-512
-600

query III rowsort
SELECT ALL * FROM tab0 WHERE + - col2 / + col1 >= + 81
----

query I rowsort
SELECT ALL - col1 - + + col0 * - col2 FROM tab0 AS cor0
----
624
849
9602

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

skipif mysql # not compatible
query I rowsort label-1970
SELECT - + COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE ( + col0 ) + col2 NOT BETWEEN - - CAST ( NULL AS INTEGER ) AND NULL
----
0

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1972
SELECT + CAST( - - col1 AS SIGNED ) col1, - col2 FROM tab2 AS cor0 WHERE NOT 44 IS NOT NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1972
SELECT + CAST ( - - col1 AS INTEGER ) col1, - col2 FROM tab2 AS cor0 WHERE NOT 44 IS NOT NULL
----

query II rowsort
SELECT ALL + col0, col0 * + col0 FROM tab2 AS cor0
----
46
2116
64
4096
75
5625

onlyif mysql # DIV for integer division: 
query II rowsort label-1974
SELECT col0 DIV + 95 AS col1, + col1 col1 FROM tab2
----
0
51
0
67
0
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1974
SELECT col0 / + 95 AS col1, + col1 col1 FROM tab2
----
0
51
0
67
0
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1975
SELECT DISTINCT SUM( CAST( NULL AS SIGNED ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-1975
SELECT DISTINCT SUM ( CAST ( NULL AS INTEGER ) ) FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1976
SELECT - SUM( - + col1 ) AS col2 FROM tab2
----
195

skipif mysql # not compatible
query I rowsort label-1976
SELECT - SUM ( - + col1 ) AS col2 FROM tab2
----
195

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( NOT NULL NOT BETWEEN ( NULL ) AND - + col0 * - 27 + + col2 )
----

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

skipif mysql # not compatible
query I rowsort label-1978
SELECT - SUM ( + col2 ) AS col2 FROM tab1
----
-223

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

skipif mysql # not compatible
query I rowsort label-1979
SELECT MAX ( DISTINCT - 15 ) FROM tab0 AS cor0
----
-15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1980
SELECT CAST( + AVG ( - col0 ) AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-1980
SELECT CAST ( + AVG ( - col0 ) AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-66

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

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

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col0 > + ( col2 ) / - ( - 47 ) * col2 + col2 + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT ALL col1, 50 * + ( - 94 ) AS col0 FROM tab0
----
1
-4700
21
-4700
81
-4700

query I rowsort
SELECT 77 * - - col2 FROM tab2
----
1771
3080
4466

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL >= + col0 * + + col0
----

query II rowsort
SELECT + 55 AS col1, col1 + + col1 AS col1 FROM tab2 AS cor0
----
55
102
55
134
55
154

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

query I rowsort
SELECT - ( - col1 ) + + col0 AS col0 FROM tab2 AS cor0
----
141
142
97

onlyif mysql # aggregate syntax: 
query I rowsort label-1991
SELECT DISTINCT + - COUNT( * ) * COUNT( * ) * + - 92 col0 FROM tab0 AS cor0
----
828

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1991
SELECT DISTINCT + - COUNT ( * ) * COUNT ( * ) * + - 92 col0 FROM tab0 AS cor0
----
828

query I rowsort
SELECT DISTINCT + - col1 + 40 FROM tab2 AS cor0
----
-11
-27
-37

query I rowsort
SELECT ALL col1 * - ( - col0 ) + + + col2 FROM tab2 AS cor0
----
2369
4968
5083

query I rowsort
SELECT + 51 * + + col0 + - col1 AS col1 FROM tab2 AS cor0
----
2295
3187
3758

query II rowsort
SELECT - col0 * col1 + - col2 AS col1, ( + col0 ) FROM tab0 AS cor0
----
-1262
15
-1837
87
-196
97

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

query I rowsort
SELECT - ( - - col2 ) * - + col0 + + col1 AS col0 FROM tab2
----
1109
2637
4417

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1998
SELECT ALL col2 + col0 * CAST( + 88 AS SIGNED ) FROM tab0
----
1367
7666
8635

skipif mysql # not compatible
query I rowsort label-1998
SELECT ALL col2 + col0 * CAST ( + 88 AS INTEGER ) FROM tab0
----
1367
7666
8635

onlyif mysql # DIV for integer division: 
query I rowsort label-1999
SELECT - col0 DIV + 48 + + 66 FROM tab0
----
64
65
66

skipif mysql # not compatible
query I rowsort label-1999
SELECT - col0 / + 48 + + 66 FROM tab0
----
64
65
66

query I rowsort
SELECT DISTINCT col2 + 62 * - - col2 AS col1 FROM tab0
----
2961
6237
630

query I rowsort
SELECT ALL + col0 + - + col0 AS col2 FROM tab2
----
0
0
0

query I rowsort
SELECT ALL col1 * - 99 - - - col1 AS col0 FROM tab0
----
-100
-2100
-8100

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

skipif mysql # not compatible
query I rowsort label-2003
SELECT DISTINCT + - COUNT ( * ) FROM tab2 WHERE NOT NULL IS NOT NULL
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2004
SELECT - SUM( 6 ) * + COUNT( * ) FROM tab1
----
-54

skipif mysql # not compatible
query I rowsort label-2004
SELECT - SUM ( 6 ) * + COUNT ( * ) FROM tab1
----
-54

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 * - ( + 75 ) + + col0 col0 FROM tab1 AS cor0
----
-290
-3434
-999

query I rowsort
SELECT ALL + ( + + 50 ) FROM tab2 AS cor0
----
50
50
50

onlyif mysql # aggregate syntax: 
query I rowsort label-2007
SELECT 0 * + SUM( DISTINCT + 3 ) AS col2 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2007
SELECT 0 * + SUM ( DISTINCT + 3 ) AS col2 FROM tab0 AS cor0
----
0

query II rowsort
SELECT DISTINCT 99 + - 84, ( + - col2 ) AS col2 FROM tab0 AS cor0
----
15
-10
15
-47
15
-99

query I rowsort
SELECT + col1 * - 16 + 47 - 72 AS col1 FROM tab1 AS cor0
----
-105
-249
-777

query II rowsort
SELECT 82, + col2 FROM tab2
----
82
23
82
40
82
58

query I rowsort
SELECT ALL - col2 FROM tab2 cor0 WHERE NOT NULL IS NOT NULL
----
-23
-40
-58

onlyif mysql # DIV for integer division: 
query I rowsort label-2012
SELECT + 40 * col1 DIV - 24 col2 FROM tab2 AS cor0
----
-111
-128
-85

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2012
SELECT + 40 * col1 / - 24 col2 FROM tab2 AS cor0
----
-111
-128
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-2013
SELECT - - 24 * + COUNT( * ) AS col1 FROM tab2 AS cor0
----
72

skipif mysql # not compatible
query I rowsort label-2013
SELECT - - 24 * + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
72

query I rowsort
SELECT DISTINCT + + 68 FROM tab2 cor0 WHERE 99 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2015
SELECT - CAST( - - 45 AS SIGNED ) DIV + col2 AS col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2015
SELECT - CAST ( - - 45 AS INTEGER ) / + col2 AS col0 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2016
SELECT ALL + CAST( NULL AS SIGNED ) AS col0, 51 AS col1 FROM tab0 AS cor0
----
NULL
51
NULL
51
NULL
51

skipif mysql # not compatible
query II rowsort label-2016
SELECT ALL + CAST ( NULL AS INTEGER ) AS col0, 51 AS col1 FROM tab0 AS cor0
----
NULL
51
NULL
51
NULL
51

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

query II rowsort
SELECT DISTINCT - 52, col0 * 13 AS col0 FROM tab0 cor0
----
-52
1131
-52
1261
-52
195

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

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

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

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

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 64 * - col2, 11 col1 FROM tab0
----
3008
11
6336
11
640
11

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2026
SELECT * FROM tab1 WHERE NOT + - 22 NOT BETWEEN + CAST( NULL AS SIGNED ) * - col2 * + col0 AND - col2 * + + col2 / - 81 * + 65 + + + col0 - + col1 - + col2
----

skipif mysql # not compatible
query III rowsort label-2026
SELECT * FROM tab1 WHERE NOT + - 22 NOT BETWEEN + CAST ( NULL AS INTEGER ) * - col2 * + col0 AND - col2 * + + col2 / - 81 * + 65 + + + col0 - + col1 - + col2
----

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

query II rowsort
SELECT ( + ( + col2 ) ) * 10 AS col1, + 86 FROM tab2
----
230
86
400
86
580
86

onlyif mysql # DIV for integer division: 
query I rowsort label-2029
SELECT col2 DIV + - col0 AS col2 FROM tab0
----
-1
-3
0

skipif mysql # not compatible
query I rowsort label-2029
SELECT col2 / + - col0 AS col2 FROM tab0
----
-1
-3
0

query III rowsort
SELECT + 34, 52 - - col0 + - col2 AS col0, - col1 AS col0 FROM tab2
----
9 values hashing to 6372c1d50a26a7341c879efe00e7ba05

onlyif mysql # DIV for integer division: 
query I rowsort label-2031
SELECT DISTINCT - col0 DIV + + col1 AS col0 FROM tab1 cor0
----
-1
-17
-3

skipif mysql # not compatible
query I rowsort label-2031
SELECT DISTINCT - col0 / + + col1 AS col0 FROM tab1 cor0
----
-1
-17
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col1 AS col0, + col2 col2 FROM tab0 AS cor0
----
-1
99
-21
10
-81
47

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2034
SELECT 87 + + + 59 - - COUNT( - - col1 ) AS col2 FROM tab1
----
149

skipif mysql # not compatible
query I rowsort label-2034
SELECT 87 + + + 59 - - COUNT ( - - col1 ) AS col2 FROM tab1
----
149

onlyif mysql # aggregate syntax: 
query I rowsort label-2035
SELECT 75 + COUNT( * ) AS col2 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
84

skipif mysql # not compatible
query I rowsort label-2035
SELECT 75 + COUNT ( * ) AS col2 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
84

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2037
SELECT - 62 * + ( + COUNT( * ) ) * 16 AS col1 FROM tab1
----
-2976

skipif mysql # not compatible
query I rowsort label-2037
SELECT - 62 * + ( + COUNT ( * ) ) * 16 AS col1 FROM tab1
----
-2976

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

skipif mysql # not compatible
query III rowsort label-2038
SELECT ALL * FROM tab0 WHERE NOT + - col0 NOT BETWEEN 44 - 52 + col2 AND + CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT col1 FROM tab0 AS cor0 WHERE - col2 NOT BETWEEN + col1 AND + col2 + - - col2
----
1
21
81

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

query I rowsort
SELECT 69 AS col1 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT col0 + - + 17 FROM tab0 AS cor0 WHERE + 77 IS NOT NULL
----
-2
70
80

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 36 * 4 = - 67 * + col1 / - + col2 / + + col0 / + col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 - + col0 col0 FROM tab0
----
-77
2
32

query I rowsort
SELECT - col1 + + - col0 AS col2 FROM tab1
----
-138
-65
-90

query I rowsort
SELECT DISTINCT + col0 * - col0 * ( - 15 ) AS col1 FROM tab2
----
31740
61440
84375

query I rowsort
SELECT + 2 + 21 FROM tab0
----
23
23
23

query II rowsort
SELECT - col1 + + - 31 * col2, col1 AS col1 FROM tab1
----
-1834
5
-2155
47
-2990
14

query I rowsort
SELECT DISTINCT - col2 AS col2 FROM tab2 WHERE NOT - col0 IN ( + 29 )
----
-23
-40
-58

query I rowsort
SELECT DISTINCT + 68 + - 63 + col1 * + col0 AS col1 FROM tab2
----
2351
4933
5030

query I rowsort
SELECT - 82 + - - col1 AS col2 FROM tab2
----
-15
-31
-5

query I rowsort
SELECT ALL col1 - + 23 AS col2 FROM tab2
----
28
44
54

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2055
SELECT 48 + + COUNT( col0 ) FROM tab0
----
51

skipif mysql # not compatible
query I rowsort label-2055
SELECT 48 + + COUNT ( col0 ) FROM tab0
----
51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 78 * col2 col2 FROM tab2
----
1794
3120
4524

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE 34 IN ( col1 )
----

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

skipif mysql # not compatible
query I rowsort label-2059
SELECT + col0 / - 80 FROM tab1
----
-1
-1
0

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 91 + - 77 col2 FROM tab1 WHERE ( NULL ) < NULL
----

query I rowsort
SELECT col0 - col1 * + col0 FROM tab1 WHERE NOT + col0 > - col2 * + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2063
SELECT DISTINCT - SUM( + 10 ) FROM tab0
----
-30

skipif mysql # not compatible
query I rowsort label-2063
SELECT DISTINCT - SUM ( + 10 ) FROM tab0
----
-30

query I rowsort
SELECT - 0 + col1 FROM tab2
----
51
67
77

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - 76 / + col2 <= - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - ( 95 ) FROM tab1
----
-95
-95
-95

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2068
SELECT ALL MIN( ALL col0 ) AS col2 FROM tab1 WHERE NOT 20 / 47 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2068
SELECT ALL MIN ( ALL col0 ) AS col2 FROM tab1 WHERE NOT 20 / 47 IS NOT NULL
----
NULL

query I rowsort
SELECT ( + 65 ) * - col0 AS col1 FROM tab0 WHERE NULL IS NULL
----
-5655
-6305
-975

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

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

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

query I rowsort
SELECT + ( col1 ) * col0 - + col0 FROM tab2
----
2300
4864
4950

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2074
SELECT DISTINCT SUM( - 92 ) col2 FROM tab0
----
-276

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2074
SELECT DISTINCT SUM ( - 92 ) col2 FROM tab0
----
-276

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2075
SELECT + col1 AS col0 FROM tab2 AS cor0 WHERE NOT + col2 + CAST( + col0 - CAST( NULL AS SIGNED ) AS SIGNED ) IS NOT NULL
----
51
67
77

skipif mysql # not compatible
query I rowsort label-2075
SELECT + col1 AS col0 FROM tab2 AS cor0 WHERE NOT + col2 + CAST ( + col0 - CAST ( NULL AS INTEGER ) AS INTEGER ) IS NOT NULL
----
51
67
77

query I rowsort
SELECT ALL 26 + + col2 AS col1 FROM tab2 AS cor0
----
49
66
84

onlyif mysql # aggregate syntax: 
query I rowsort label-2077
SELECT DISTINCT - 52 * COUNT( - col0 ) AS col1 FROM tab2 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-2077
SELECT DISTINCT - 52 * COUNT ( - col0 ) AS col1 FROM tab2 AS cor0
----
-156

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

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab0 WHERE NOT NULL <> NULL
----

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab0 WHERE 59 * + 5 IS NOT NULL
----
54 values hashing to 42daa03e48aa6755defd0a3206e51d8e

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2081
SELECT ALL - 12 + CAST( NULL AS SIGNED ) FROM tab0 AS cor0 CROSS JOIN tab1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-2081
SELECT ALL - 12 + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 CROSS JOIN tab1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT DISTINCT - 62 AS col0 FROM tab0 AS cor0 WHERE NOT ( col0 * 89 - - 52 * col1 ) <> NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - col1 + - 47 BETWEEN ( + col2 ) AND 38 + - col2
----

query I rowsort
SELECT + + 72 * col1 + col1 FROM tab2 AS cor0
----
3723
4891
5621

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2085
SELECT + 81 + CAST( + col1 AS SIGNED ) FROM tab0 AS cor0
----
102
162
82

skipif mysql # not compatible
query I rowsort label-2085
SELECT + 81 + CAST ( + col1 AS INTEGER ) FROM tab0 AS cor0
----
102
162
82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2086
SELECT MAX( ALL + 65 ) + + 78 FROM tab2 AS cor0 WHERE CAST( NULL AS SIGNED ) < ( NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-2086
SELECT MAX ( ALL + 65 ) + + 78 FROM tab2 AS cor0 WHERE CAST ( NULL AS INTEGER ) < ( NULL )
----
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2088
SELECT ALL CAST( NULL AS SIGNED ) + 56 * - 67 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2088
SELECT ALL CAST ( NULL AS INTEGER ) + 56 * - 67 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col1 - + ( - 73 ) * col2 AS col1 FROM tab2 AS cor0
----
1730
2997
4301

query I rowsort
SELECT col0 + - ( + col2 ) FROM tab0 AS cor0
----
-2
-32
77

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2091
SELECT + MIN( DISTINCT + col2 ) / + COUNT( * ) * + CAST( NULL AS DECIMAL ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2091
SELECT + MIN ( DISTINCT + col2 ) / + COUNT ( * ) * + CAST ( NULL AS REAL ) FROM tab1
----
NULL

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

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

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

query I rowsort
SELECT - 83 / - col2 AS col1 FROM tab0 AS cor0 WHERE NOT NULL = - 61
----

query I rowsort
SELECT ALL + col0 AS col2 FROM tab1 AS cor0 WHERE + 75 * - - 26 <> ( NULL )
----

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 col1, 61 * - ( - col1 ) AS col1 FROM tab2 AS cor0
----
46
3111
64
4697
75
4087

query I rowsort
SELECT ALL - col2 * col0 + - col1 FROM tab0 cor0 WHERE 13 + - - col0 <= ( col0 + 66 )
----
-786
-891
-9604

onlyif mysql # DIV for integer division: 
query I rowsort label-2101
SELECT - ( + col2 ) * + 65 * ( col0 DIV 93 ) FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2101
SELECT - ( + col2 ) * + 65 * ( col0 / 93 ) FROM tab1 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2102
SELECT 65 - COUNT( * ) FROM tab2 AS cor0 WHERE NOT - col0 + 42 * col2 NOT BETWEEN - col2 AND NULL
----
65

skipif mysql # not compatible
query I rowsort label-2102
SELECT 65 - COUNT ( * ) FROM tab2 AS cor0 WHERE NOT - col0 + 42 * col2 NOT BETWEEN - col2 AND NULL
----
65

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

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

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

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

query I rowsort
SELECT col2 * + 87 * + col0 FROM tab2
----
222720
378450
92046

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2107
SELECT + CAST( NULL AS SIGNED ) FROM tab2 WHERE NOT NULL NOT IN ( + col0 )
----

skipif mysql # not compatible
query I rowsort label-2107
SELECT + CAST ( NULL AS INTEGER ) FROM tab2 WHERE NOT NULL NOT IN ( + col0 )
----

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

query I rowsort
SELECT - col0 * + - 90 AS col2 FROM tab2
----
4140
5760
6750

query I rowsort
SELECT ALL col1 + col1 FROM tab1 WHERE NULL > ( - + 13 - 52 / + 71 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + col1 * col2 * - 87 col2 FROM tab0
----
-1589490
-4968135
-835461

query II rowsort
SELECT + ( + col2 ) AS col0, col1 + - + col2 * col1 FROM tab2 AS cor0
----
23
-1122
40
-3003
58
-3819

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2113
SELECT + COUNT ( * ) + + CAST ( NULL AS REAL ) col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL + - col2 * col2 + - col2 AS col1 FROM tab0 AS cor0
----
-110
-2256
-9900

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 57 + - col0 + + + 71 col2 FROM tab1 AS cor0
----
-37
-71
-77

query I rowsort
SELECT + col0 + - - 69 / 68 + 28 AS col0 FROM tab1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT 58 + - 8 AS col1 FROM tab1
----
50

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

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

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

query I rowsort
SELECT ALL - AVG ( + col1 ) FROM tab0 AS cor0 WHERE NOT ( NULL ) IN ( - col2 * col1 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2121
SELECT ALL 78 + + 45 + - - COUNT( * ) + COUNT( * ) DIV + MAX( DISTINCT 30 ) * COUNT( 0 ) col0 FROM tab0 AS cor0
----
126

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2121
SELECT ALL 78 + + 45 + - - COUNT ( * ) + COUNT ( * ) / + MAX ( DISTINCT 30 ) * COUNT ( 0 ) col0 FROM tab0 AS cor0
----
126

query I rowsort
SELECT ALL + - 63 FROM tab2 cor0
----
-63
-63
-63

query II rowsort
SELECT col0 - + - 67 * + + col1 AS col0, - col1 AS col0 FROM tab1 AS cor0
----
3240
-47
420
-5
989
-14

onlyif mysql # DIV for integer division: 
query I rowsort label-2124
SELECT - - col1 - - 42 DIV - ( + col0 ) FROM tab1 cor0
----
14
47
5

skipif mysql # not compatible
query I rowsort label-2124
SELECT - - col1 - - 42 / - ( + col0 ) FROM tab1 cor0
----
14
47
5

query I rowsort
SELECT - col1 * + + 6 + + col1 AS col1 FROM tab1
----
-235
-25
-70

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + - 48 col1 FROM tab2
----
19
29
3

query I rowsort
SELECT 47 * col2 + 3 AS col0 FROM tab0
----
2212
4656
473

query I rowsort
SELECT DISTINCT + col0 + + col1 AS col1 FROM tab2
----
141
142
97

query I rowsort
SELECT ALL + col0 - - col0 - + - col0 FROM tab1
----
153
255
273

onlyif mysql # aggregate syntax: 
query I rowsort label-2130
SELECT ALL 55 + - 34 * + - 5 + COUNT( * ) AS col2 FROM tab2
----
228

skipif mysql # not compatible
query I rowsort label-2130
SELECT ALL 55 + - 34 * + - 5 + COUNT ( * ) AS col2 FROM tab2
----
228

query I rowsort
SELECT 22 + - + col2 * - 66 FROM tab1
----
3916
4510
6358

query I rowsort
SELECT ALL - col0 * - 21 - + col0 AS col0 FROM tab0
----
1740
1940
300

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2133
SELECT DISTINCT - + CAST( - - col0 AS SIGNED ) - - - col0 + + 28 - + col1 DIV col0 FROM tab2 cor0
----
-101
-122
-65

skipif mysql # not compatible
query I rowsort label-2133
SELECT DISTINCT - + CAST ( - - col0 AS INTEGER ) - - - col0 + + 28 - + col1 / col0 FROM tab2 cor0
----
-101
-122
-65

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2135
SELECT ALL * FROM tab2 cor0 WHERE NOT ( CAST( - + col0 AS SIGNED ) ) <= - col1
----
46
51
23
64
77
40

skipif mysql # not compatible
query III rowsort label-2135
SELECT ALL * FROM tab2 cor0 WHERE NOT ( CAST ( - + col0 AS INTEGER ) ) <= - col1
----
46
51
23
64
77
40

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

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

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

query I rowsort
SELECT + ( + 38 ) FROM tab1
----
38
38
38

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + ( + 29 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2143
SELECT 50 * - - COUNT( * ) + COUNT( col1 ) AS col0 FROM tab0 AS cor0
----
153

skipif mysql # not compatible
query I rowsort label-2143
SELECT 50 * - - COUNT ( * ) + COUNT ( col1 ) AS col0 FROM tab0 AS cor0
----
153

onlyif mysql # aggregate syntax: 
query I rowsort label-2144
SELECT ALL + 39 * + COUNT( * ) AS col1 FROM tab1 AS cor0
----
117

skipif mysql # not compatible
query I rowsort label-2144
SELECT ALL + 39 * + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
117

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2145
SELECT CAST( COUNT( * ) AS SIGNED ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2145
SELECT CAST ( COUNT ( * ) AS INTEGER ) AS col1 FROM tab1 AS cor0
----
3

query I rowsort
SELECT col0 FROM tab2 cor0 WHERE NOT NULL BETWEEN col2 AND ( - col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 + + 17 col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
18
38
98

query I rowsort
SELECT + col2 * - col2 * + - col1 AS col0 FROM tab1 AS cor0
----
129024
17405
217328

query I rowsort
SELECT + 86 + + col2 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE col0 * col1 + - 81 NOT BETWEEN + col0 AND col0 * - 74 * + ( - 53 * ( 69 ) ) + - col0
----
97
1
99

onlyif mysql # aggregate syntax: 
query II rowsort label-2151
SELECT ALL + 47 AS col0, COUNT( * ) FROM tab0
----
47
3

skipif mysql # not compatible
query II rowsort label-2151
SELECT ALL + 47 AS col0, COUNT ( * ) FROM tab0
----
47
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - - col0 ) col2 FROM tab0
----
15
87
97

query I rowsort
SELECT ALL - col0 FROM tab2 WHERE NOT col1 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE 10 + - - 93 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2155
SELECT DISTINCT + MIN( - - 6 ) AS col2 FROM tab1 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-2155
SELECT DISTINCT + MIN ( - - 6 ) AS col2 FROM tab1 AS cor0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-2156
SELECT ALL + + COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-2156
SELECT ALL + + COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2157
SELECT - CAST( + ( + AVG ( - col2 ) ) AS SIGNED ) AS col2 FROM tab0
----
52

skipif mysql # not compatible
query I rowsort label-2157
SELECT - CAST ( + ( + AVG ( - col2 ) ) AS INTEGER ) AS col2 FROM tab0
----
52

query I rowsort
SELECT DISTINCT - 77 AS col2 FROM tab2, tab0 cor0
----
-77

query I rowsort
SELECT DISTINCT col0 + - 42 AS col1 FROM tab1
----
43
49
9

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2160
SELECT ALL - CAST( NULL AS DECIMAL ) * + COUNT( * ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2160
SELECT ALL - CAST ( NULL AS REAL ) * + COUNT ( * ) AS col1 FROM tab0
----
NULL

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab1 cor1 WHERE NOT ( NULL IS NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2162
SELECT + - COUNT( * ) + + 24 FROM tab0 AS cor0
----
21

skipif mysql # not compatible
query I rowsort label-2162
SELECT + - COUNT ( * ) + + 24 FROM tab0 AS cor0
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-2163
SELECT 94 + - MAX( ALL + col2 ) FROM tab0 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-2163
SELECT 94 + - MAX ( ALL + col2 ) FROM tab0 AS cor0
----
-5

query II rowsort
SELECT - 17 + - 99 AS col1, col2 * + col2 FROM tab1 AS cor0
----
-116
3481
-116
4624
-116
9216

query I rowsort
SELECT 44 * - 84 AS col0 FROM tab2 AS cor0
----
-3696
-3696
-3696

query I rowsort
SELECT DISTINCT - 40 * - 28 - + 67 FROM tab0 cor0
----
1053

query I rowsort
SELECT ALL 53 + + col2 FROM tab1
----
112
121
149

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( NULL ) NOT IN ( - col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 37 + + col1 col0 FROM tab0
----
118
38
58

onlyif mysql # aggregate syntax: 
query I rowsort label-2170
SELECT - MAX( - - col2 ) AS col2 FROM tab2
----
-58

skipif mysql # not compatible
query I rowsort label-2170
SELECT - MAX ( - - col2 ) AS col2 FROM tab2
----
-58

query III rowsort
SELECT * FROM tab2 WHERE NOT 95 BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2172
SELECT MAX( - 93 ) AS col1 FROM tab0
----
-93

skipif mysql # not compatible
query I rowsort label-2172
SELECT MAX ( - 93 ) AS col1 FROM tab0
----
-93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2173
SELECT DISTINCT + col1 * CAST( + col2 AS SIGNED ) * col0 FROM tab1 AS cor0
----
25075
290836
68544

skipif mysql # not compatible
query I rowsort label-2173
SELECT DISTINCT + col1 * CAST ( + col2 AS INTEGER ) * col0 FROM tab1 AS cor0
----
25075
290836
68544

query I rowsort
SELECT + ( + 71 ) FROM tab0 AS cor0 WHERE NOT - col2 BETWEEN - ( - 8 ) AND ( + 0 )
----
71
71
71

query I rowsort
SELECT DISTINCT - col1 AS col1 FROM tab1 AS cor0 WHERE NOT ( NOT NULL NOT BETWEEN NULL AND 1 * - 7 )
----

query II rowsort
SELECT ALL + col0, + 15 + + col2 AS col1 FROM tab1 AS cor0
----
51
111
85
74
91
83

query I rowsort
SELECT ALL + col0 FROM tab2 AS cor0 WHERE + 45 IS NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col2 + + 65 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL IN ( + 21, col1 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2180
SELECT - CAST( + ( - COUNT( * ) ) AS SIGNED ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-2180
SELECT - CAST ( + ( - COUNT ( * ) ) AS INTEGER ) FROM tab1
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2181
SELECT DISTINCT * FROM tab2 WHERE NOT - - CAST( NULL AS SIGNED ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-2181
SELECT DISTINCT * FROM tab2 WHERE NOT - - CAST ( NULL AS INTEGER ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-2182
SELECT 65 DIV - ( - col0 ) col2 FROM tab1
----
0
0
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2182
SELECT 65 / - ( - col0 ) col2 FROM tab1
----
0
0
1

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2183
SELECT DISTINCT * FROM tab2 WHERE NOT ( - - CAST( NULL AS SIGNED ) ) IN ( + col2 - + col0, 8 * CAST( NULL AS SIGNED ) + + 11, + 87 )
----

skipif mysql # not compatible
query III rowsort label-2183
SELECT DISTINCT * FROM tab2 WHERE NOT ( - - CAST ( NULL AS INTEGER ) ) IN ( + col2 - + col0, 8 * CAST ( NULL AS INTEGER ) + + 11, + 87 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2184
SELECT ( + 10 ) DIV + COUNT( * ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-2184
SELECT ( + 10 ) / + COUNT ( * ) FROM tab2
----
3

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2185
SELECT - CAST( - + col0 AS SIGNED ), - col2 + col1 DIV + 80 AS col2 FROM tab1
----
51
-96
85
-59
91
-68

skipif mysql # not compatible
query II rowsort label-2185
SELECT - CAST ( - + col0 AS INTEGER ), - col2 + col1 / + 80 AS col2 FROM tab1
----
51
-96
85
-59
91
-68

query I rowsort
SELECT + 23 + - 36 * 40 AS col0 FROM tab2
----
-1417
-1417
-1417

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 col0 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT + col2 + col2, + col0 FROM tab2 AS cor0
----
116
75
46
46
80
64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2189
SELECT - 8 + + 91 + col2 + - col1 + col1 * - col1 * col1 FROM tab0 AS cor0 WHERE col1 + - 7 * - col1 + + + CAST( - 61 AS SIGNED ) / - 33 IS NULL
----

skipif mysql # not compatible
query I rowsort label-2189
SELECT - 8 + + 91 + col2 + - col1 + col1 * - col1 * col1 FROM tab0 AS cor0 WHERE col1 + - 7 * - col1 + + + CAST ( - 61 AS INTEGER ) / - 33 IS NULL
----

query I rowsort
SELECT ALL + col1 AS col2 FROM tab2 AS cor0 WHERE NOT - col1 > - col2
----
51
67
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2191
SELECT - + col2 / col1 + col0 - 51 + + 6 AS col1 FROM tab2 AS cor0 WHERE - 94 * - CAST( NULL AS SIGNED ) + + col0 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-2191
SELECT - + col2 / col1 + col0 - 51 + + 6 AS col1 FROM tab2 AS cor0 WHERE - 94 * - CAST ( NULL AS INTEGER ) + + col0 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-2192
SELECT - 55 + + - 8, 32 DIV + 3 AS col1 FROM tab0 AS cor0
----
-63
10
-63
10
-63
10

skipif mysql # not compatible
query II rowsort label-2192
SELECT - 55 + + - 8, 32 / + 3 AS col1 FROM tab0 AS cor0
----
-63
10
-63
10
-63
10

query I rowsort
SELECT ALL - 12 FROM tab1 WHERE - 63 + + 68 IS NOT NULL
----
-12
-12
-12

onlyif mysql # DIV for integer division: 
query II rowsort label-2194
SELECT - col0 AS col2, - 35 * col0 DIV - col1 col0 FROM tab0
----
-15
6
-87
145
-97
3395

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2194
SELECT - col0 AS col2, - 35 * col0 / - col1 col0 FROM tab0
----
-15
6
-87
145
-97
3395

query I rowsort
SELECT DISTINCT 77 - col1 FROM tab2
----
0
10
26

query I rowsort
SELECT ALL col1 * + 34 FROM tab0
----
2754
34
714

query I rowsort
SELECT DISTINCT + col2 * - col2 FROM tab1 AS cor0 WHERE + col0 <= NULL
----

query I rowsort
SELECT - 94 AS col1 FROM tab0 AS cor0 WHERE - 41 IS NOT NULL
----
-94
-94
-94

query I rowsort
SELECT col1 * + - 91 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT col1 AS col0 FROM tab0 AS cor0 WHERE ( NOT ( NULL ) IS NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2201
SELECT DISTINCT col0 DIV - col1 AS col0 FROM tab1 AS cor0 WHERE NOT - 62 = - col2
----
-1
-17
-3

skipif mysql # not compatible
query I rowsort label-2201
SELECT DISTINCT col0 / - col1 AS col0 FROM tab1 AS cor0 WHERE NOT - 62 = - col2
----
-1
-17
-3

query II rowsort
SELECT ALL col2 AS col0, - col2 AS col2 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND - 47
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2203
SELECT ALL MIN( - col2 ) FROM tab1 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-2203
SELECT ALL MIN ( - col2 ) FROM tab1 AS cor0
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-2204
SELECT COUNT( * ) * + - 77 + - COUNT( * ) col0 FROM tab1
----
-234

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2204
SELECT COUNT ( * ) * + - 77 + - COUNT ( * ) col0 FROM tab1
----
-234

onlyif mysql # aggregate syntax: 
query I rowsort label-2205
SELECT DISTINCT + COUNT( * ) * + COUNT( ALL + - ( + - 61 ) ) FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-2205
SELECT DISTINCT + COUNT ( * ) * + COUNT ( ALL + - ( + - 61 ) ) FROM tab2
----
9

query III rowsort
SELECT ALL * FROM tab1 WHERE 35 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT 95 * + - 15 FROM tab1
----
-1425

onlyif mysql # DIV for integer division: 
query II rowsort label-2208
SELECT ALL - col1 DIV 45 AS col1, - 90 col0 FROM tab0
----
-1
-90
0
-90
0
-90

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2208
SELECT ALL - col1 / 45 AS col1, - 90 col0 FROM tab0
----
-1
-90
0
-90
0
-90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2209
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + - 9 AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2209
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + - 9 AS col2 FROM tab0
----
NULL

query I rowsort
SELECT ALL - col2 * ( col1 ) * - - col0 AS col0 FROM tab2
----
-197120
-291450
-53958

query I rowsort
SELECT - + 13 * - ( - 73 ) FROM tab2 AS cor0
----
-949
-949
-949

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 56 col2 FROM tab1 AS cor0
----
56
56
56

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2213
SELECT DISTINCT 31 + - CAST( NULL AS SIGNED ) - + + 3 AS col0, col1 AS col2 FROM tab2 cor0 WHERE NULL IS NULL
----
NULL
51
NULL
67
NULL
77

skipif mysql # not compatible
query II rowsort label-2213
SELECT DISTINCT 31 + - CAST ( NULL AS INTEGER ) - + + 3 AS col0, col1 AS col2 FROM tab2 cor0 WHERE NULL IS NULL
----
NULL
51
NULL
67
NULL
77

query I rowsort
SELECT DISTINCT 63 - 6 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-2215
SELECT - ( - SUM( 20 ) ) AS col2 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
180

skipif mysql # not compatible
query I rowsort label-2215
SELECT - ( - SUM ( 20 ) ) AS col2 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
180

onlyif mysql # aggregate syntax: 
query I rowsort label-2216
SELECT + - COUNT( * ) AS col1 FROM tab0 cor0 WHERE NOT + 98 + - col2 + 26 * + col0 * - col1 + col1 IN ( col0, ( + + col0 ) + - 34 )
----
-3

skipif mysql # not compatible
query I rowsort label-2216
SELECT + - COUNT ( * ) AS col1 FROM tab0 cor0 WHERE NOT + 98 + - col2 + 26 * + col0 * - col1 + col1 IN ( col0, ( + + col0 ) + - 34 )
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2217
SELECT + CAST( NULL AS SIGNED ) / - 65 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2217
SELECT + CAST ( NULL AS INTEGER ) / - 65 FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL BETWEEN NULL AND 32
----

query I rowsort
SELECT DISTINCT + 99 + - col2 FROM tab0 AS cor0
----
0
52
89

query I rowsort
SELECT ( + - col1 ) * + - col1 + col2 + 62 + - col2 * + + col1 - + 23 * - + 86 AS col2 FROM tab1 AS cor0
----
1121
1829
988

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN NULL AND 39 * - col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 0 + - col1 col0 FROM tab0 AS cor0
----
-1
-21
-81

query I rowsort
SELECT - col1 * + col1 + + col2 - col0 AS col2 FROM tab2 AS cor0
----
-2624
-4506
-5953

query II rowsort
SELECT ALL + col2 AS col1, 61 FROM tab1
----
59
61
68
61
96
61

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT 76 - + + 60 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - 24 FROM tab1 WHERE NULL <> - + col1
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2227
SELECT ALL 99 AS col2, + COUNT( * ) DIV + + ( 48 ) FROM tab2
----
99
0

skipif mysql # not compatible
query II rowsort label-2227
SELECT ALL 99 AS col2, + COUNT ( * ) / + + ( 48 ) FROM tab2
----
99
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2228
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col1 BETWEEN + col1 + - CAST( + + col1 AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-2228
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col1 BETWEEN + col1 + - CAST ( + + col1 AS INTEGER ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2229
SELECT + ( + + SUM( + col2 ) ) FROM tab2 AS cor0
----
121

skipif mysql # not compatible
query I rowsort label-2229
SELECT + ( + + SUM ( + col2 ) ) FROM tab2 AS cor0
----
121

query I rowsort
SELECT DISTINCT - col2 + + + 50 AS col1 FROM tab2 AS cor0
----
-8
10
27

query I rowsort
SELECT DISTINCT + - col1 FROM tab0 AS cor0 WHERE 51 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + ( - + col2 ) BETWEEN col0 AND + ( col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 WHERE NULL <> 75
----

query I rowsort
SELECT ALL + 88 * + col1 - + 14 AS col1 FROM tab0
----
1834
7114
74

query I rowsort
SELECT ALL 59 - - - 62 AS col0 FROM tab0
----
-3
-3
-3

query I rowsort
SELECT col0 + + 81 FROM tab2
----
127
145
156

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2237
SELECT ALL - CAST( NULL AS SIGNED ) * - + 0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-2237
SELECT ALL - CAST ( NULL AS INTEGER ) * - + 0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # aggregate syntax: 
query I rowsort label-2238
SELECT - + MIN( - - ( + col0 ) ) FROM tab0 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-2238
SELECT - + MIN ( - - ( + col0 ) ) FROM tab0 AS cor0
----
-15

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - + 84 col0 FROM tab1 AS cor0
----
-4284
-7140
-7644

onlyif mysql # aggregate syntax: 
query I rowsort label-2240
SELECT ALL + COUNT( + - col1 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2240
SELECT ALL + COUNT ( + - col1 ) FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2241
SELECT - + COUNT( - ( + 26 ) ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2241
SELECT - + COUNT ( - ( + 26 ) ) FROM tab0 AS cor0
----
-3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col2 >= NULL
----

query I rowsort
SELECT DISTINCT + + 7 * - + 38 AS col2 FROM tab1 AS cor0
----
-266

query I rowsort
SELECT 12 * - 81 / 69 FROM tab1 WHERE NOT + col1 BETWEEN NULL AND + col0
----

query I rowsort
SELECT ALL 80 / - ( - col2 ) FROM tab2 WHERE ( NOT col1 = NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2246
SELECT * FROM tab2 WHERE NOT ( NOT + col1 BETWEEN + CAST( NULL AS SIGNED ) AND NULL )
----

skipif mysql # not compatible
query III rowsort label-2246
SELECT * FROM tab2 WHERE NOT ( NOT + col1 BETWEEN + CAST ( NULL AS INTEGER ) AND NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2247
SELECT - ( - + COUNT( * ) ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-2247
SELECT - ( - + COUNT ( * ) ) FROM tab1
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2248
SELECT CAST( + COUNT( * ) AS SIGNED ) FROM tab0, tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-2248
SELECT CAST ( + COUNT ( * ) AS INTEGER ) FROM tab0, tab2 AS cor0
----
9

query I rowsort
SELECT DISTINCT - col2 * - - col0 AS col1 FROM tab0
----
-705
-870
-9603

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 45 col2 FROM tab2 AS cor0
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-2251
SELECT + + SUM( ALL + 65 ) FROM tab2 AS cor0
----
195

skipif mysql # not compatible
query I rowsort label-2251
SELECT + + SUM ( ALL + 65 ) FROM tab2 AS cor0
----
195

onlyif mysql # aggregate syntax: 
query I rowsort label-2252
SELECT - COUNT( * ) - + 60 FROM tab1 AS cor0 WHERE NOT ( NULL ) <= + 67
----
-60

skipif mysql # not compatible
query I rowsort label-2252
SELECT - COUNT ( * ) - + 60 FROM tab1 AS cor0 WHERE NOT ( NULL ) <= + 67
----
-60

query I rowsort
SELECT DISTINCT - 22 * + - col2 AS col0 FROM tab2 AS cor0
----
1276
506
880

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( - 75 ) * + col0 col1 FROM tab1
----
-3825
-6375
-6825

query II rowsort
SELECT + + col0 * col1 * ( + col2 ), col1 FROM tab0 AS cor0
----
18270
21
57105
81
9603
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2256
SELECT DISTINCT - - MAX( col2 ) AS col2 FROM tab1 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-2256
SELECT DISTINCT - - MAX ( col2 ) AS col2 FROM tab1 AS cor0
----
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - ( + 47 ) col1 FROM tab2 AS cor0
----
47
47
47

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE ( NULL ) BETWEEN NULL AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col1 + + - col1 - ( + col1 ) col0 FROM tab2 AS cor0
----
-51
-67
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2260
SELECT DISTINCT col2 + - CAST( NULL AS SIGNED ) - col1 AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2260
SELECT DISTINCT col2 + - CAST ( NULL AS INTEGER ) - col1 AS col1 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2261
SELECT ( - COUNT( * ) ) AS col1 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2261
SELECT ( - COUNT ( * ) ) AS col1 FROM tab1 AS cor0
----
-3

query I rowsort
SELECT ALL - col2 + 91 AS col2 FROM tab2 AS cor0
----
33
51
68

query I rowsort
SELECT DISTINCT - 71 AS col1 FROM tab2 WHERE NOT NULL BETWEEN NULL AND + col1
----

query I rowsort
SELECT 8 * + col1 FROM tab2
----
408
536
616

query III rowsort
SELECT * FROM tab2 WHERE NULL >= - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2266
SELECT DISTINCT * FROM tab1 WHERE CAST( NULL AS SIGNED ) * col0 - + 25 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-2266
SELECT DISTINCT * FROM tab1 WHERE CAST ( NULL AS INTEGER ) * col0 - + 25 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2267
SELECT col1 DIV 53 + ( + - col0 ) FROM tab1 WHERE col0 - + col0 NOT BETWEEN + + col1 AND + - col0 + - col1
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-2267
SELECT col1 / 53 + ( + - col0 ) FROM tab1 WHERE col0 - + col0 NOT BETWEEN + + col1 AND + - col0 + - col1
----
-51
-85
-91

query II rowsort
SELECT ( col1 ) + - col2, - 86 * col0 AS col2 FROM tab2
----
28
-3956
37
-5504
9
-6450

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2269
SELECT + 18 + + - ( + - CAST( - col0 AS SIGNED ) ) AS col1 FROM tab2
----
-28
-46
-57

skipif mysql # not compatible
query I rowsort label-2269
SELECT + 18 + + - ( + - CAST ( - col0 AS INTEGER ) ) AS col1 FROM tab2
----
-28
-46
-57

query I rowsort
SELECT 13 + + col0 AS col0 FROM tab1
----
104
64
98

query I rowsort
SELECT - col2 + col2 * - 3 FROM tab2 AS cor0
----
-160
-232
-92

query I rowsort
SELECT DISTINCT + 26 FROM tab1 AS cor0 WHERE NOT NULL < NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2273
SELECT + CAST( NULL AS SIGNED ) DIV 73 * - 95 AS col1, col2 DIV col0 + + col2 + - + col2 col2 FROM tab2 AS cor0
----
NULL
0
NULL
0
NULL
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2273
SELECT + CAST ( NULL AS INTEGER ) / 73 * - 95 AS col1, col2 / col0 + + col2 + - + col2 col2 FROM tab2 AS cor0
----
NULL
0
NULL
0
NULL
0

query I rowsort
SELECT ALL + 77 - - col1 * + col1 AS col2 FROM tab2
----
2678
4566
6006

query I rowsort
SELECT + col1 - - 3 AS col1 FROM tab2
----
54
70
80

query I rowsort
SELECT DISTINCT + col0 - + + col0 * + 89 FROM tab1
----
-4488
-7480
-8008

onlyif mysql # aggregate syntax: 
query I rowsort label-2277
SELECT ALL COUNT( col1 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-2277
SELECT ALL COUNT ( col1 ) FROM tab0
----
3

query I rowsort
SELECT DISTINCT + 26 FROM tab1 cor0
----
26

query II rowsort
SELECT DISTINCT + col2 AS col1, - col0 AS col1 FROM tab1 cor0
----
59
-85
68
-91
96
-51

query III rowsort
SELECT ALL col1, - 63, - col2 AS col1 FROM tab1 AS cor0
----
9 values hashing to 3a7f3e18431179abd36f50ab3569d970

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2281
SELECT + CAST( - CAST( AVG ( DISTINCT + + col2 ) AS SIGNED ) AS SIGNED ) col1, - COUNT( * ) AS col0 FROM tab0 cor0
----
-52
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2281
SELECT + CAST ( - CAST ( AVG ( DISTINCT + + col2 ) AS INTEGER ) AS INTEGER ) col1, - COUNT ( * ) AS col0 FROM tab0 cor0
----
-52
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-2282
SELECT col1 DIV - col1 AS col0 FROM tab2 cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-2282
SELECT col1 / - col1 AS col0 FROM tab2 cor0
----
-1
-1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2283
SELECT + COUNT( * ) * - 85 AS col2 FROM tab0 AS cor0
----
-255

skipif mysql # not compatible
query I rowsort label-2283
SELECT + COUNT ( * ) * - 85 AS col2 FROM tab0 AS cor0
----
-255

query I rowsort
SELECT ALL ( col1 ) * 15 FROM tab2
----
1005
1155
765

onlyif mysql # aggregate syntax: 
query I rowsort label-2285
SELECT - COUNT( * ) * + 22 FROM tab0
----
-66

skipif mysql # not compatible
query I rowsort label-2285
SELECT - COUNT ( * ) * + 22 FROM tab0
----
-66

onlyif mysql # aggregate syntax: 
query II rowsort label-2286
SELECT - MAX( - col1 ) AS col2, 52 * COUNT( * ) FROM tab1
----
5
156

skipif mysql # not compatible
query II rowsort label-2286
SELECT - MAX ( - col1 ) AS col2, 52 * COUNT ( * ) FROM tab1
----
5
156

onlyif mysql # CAST syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-2287
SELECT 48 DIV + 38, CAST( NULL AS DECIMAL ) AS col2 FROM tab0
----
1
NULL
1
NULL
1
NULL

skipif mysql # not compatible
query II rowsort label-2287
SELECT 48 / + 38, CAST ( NULL AS REAL ) AS col2 FROM tab0
----
1
NULL
1
NULL
1
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2288
SELECT ALL - + COUNT( + col2 ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2288
SELECT ALL - + COUNT ( + col2 ) FROM tab0 AS cor0
----
-3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col2 / + col0 / col2 >= NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2290
SELECT ALL + - MIN( DISTINCT CAST( - ( - 69 ) AS SIGNED ) ) FROM tab2 AS cor0
----
-69

skipif mysql # not compatible
query I rowsort label-2290
SELECT ALL + - MIN ( DISTINCT CAST ( - ( - 69 ) AS INTEGER ) ) FROM tab2 AS cor0
----
-69

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * - - col1 col1 FROM tab2 AS cor0
----
-2346
-4928
-5025

onlyif mysql # aggregate syntax: 
query I rowsort label-2292
SELECT DISTINCT MAX( + - 6 ) col1 FROM tab2
----
-6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2292
SELECT DISTINCT MAX ( + - 6 ) col1 FROM tab2
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-2293
SELECT ALL + - ( + COUNT( * ) ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2293
SELECT ALL + - ( + COUNT ( * ) ) FROM tab2 AS cor0
----
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2294
SELECT COUNT( * ) * 10 DIV 5 + + 72 FROM tab2 AS cor0
----
78

skipif mysql # not compatible
query I rowsort label-2294
SELECT COUNT ( * ) * 10 / 5 + + 72 FROM tab2 AS cor0
----
78

query I rowsort
SELECT col1 FROM tab1 AS cor0 WHERE NULL BETWEEN - col1 AND + col0 + + col2 * col0
----

query I rowsort
SELECT ALL + + col2 * + + col1 FROM tab1 AS cor0
----
1344
295
3196

onlyif mysql # aggregate syntax: 
query I rowsort label-2297
SELECT DISTINCT + COUNT( * ) * - - 22 FROM tab0 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-2297
SELECT DISTINCT + COUNT ( * ) * - - 22 FROM tab0 AS cor0
----
66

query I rowsort
SELECT DISTINCT col2 + col2 + - col1 FROM tab1 AS cor0
----
113
178
89

query I rowsort
SELECT ALL 16 + col0 * + - 4 AS col0 FROM tab1
----
-188
-324
-348

query I rowsort
SELECT DISTINCT + col1 - + 57 FROM tab0
----
-36
-56
24

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2301
SELECT DISTINCT * FROM tab2 WHERE + CAST( - 16 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-2301
SELECT DISTINCT * FROM tab2 WHERE + CAST ( - 16 AS INTEGER ) IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE + 53 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 WHERE ( - 54 / - - col2 + - - 77 IS NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2304
SELECT ALL CAST( NULL AS SIGNED ) - + 94 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2304
SELECT ALL CAST ( NULL AS INTEGER ) - + 94 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2305
SELECT + SUM( - col2 ) - COUNT( * ) FROM tab1 AS cor0
----
-226

skipif mysql # not compatible
query I rowsort label-2305
SELECT + SUM ( - col2 ) - COUNT ( * ) FROM tab1 AS cor0
----
-226

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2306
SELECT - 78 + - CAST( COUNT( * ) AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-2306
SELECT - 78 + - CAST ( COUNT ( * ) AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-81

onlyif mysql # aggregate syntax: 
query II rowsort label-2307
SELECT + 90 AS col0, COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
90
9

skipif mysql # not compatible
query II rowsort label-2307
SELECT + 90 AS col0, COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
90
9

query I rowsort
SELECT ALL + - 6 FROM tab0 WHERE NULL <= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2309
SELECT DISTINCT - col2 DIV 56 FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-2309
SELECT DISTINCT - col2 / 56 FROM tab1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2310
SELECT DISTINCT 95 * - COUNT( * ) AS col0 FROM tab2
----
-285

skipif mysql # not compatible
query I rowsort label-2310
SELECT DISTINCT 95 * - COUNT ( * ) AS col0 FROM tab2
----
-285

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-2311
SELECT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE CAST( NULL AS SIGNED ) >= NULL
----

skipif mysql # not compatible
query IIIIII rowsort label-2311
SELECT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE CAST ( NULL AS INTEGER ) >= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2312
SELECT DISTINCT - 66 + + + col2 DIV - col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-66
-67
-69

skipif mysql # not compatible
query I rowsort label-2312
SELECT DISTINCT - 66 + + + col2 / - col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-66
-67
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-2313
SELECT + ( - - COUNT( * ) ) FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN col0 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-2313
SELECT + ( - - COUNT ( * ) ) FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN col0 AND NULL
----
0

query I rowsort
SELECT + col1 * + - 56 + - col1 FROM tab1 AS cor0
----
-2679
-285
-798

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-2315
SELECT + ( + ( 83 ) ) AS col0, 80 / + 91 - + + col1 + - CAST( NULL AS DECIMAL ) + CAST( col0 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
83
NULL
83
NULL
83
NULL

skipif mysql # not compatible
query II rowsort label-2315
SELECT + ( + ( 83 ) ) AS col0, 80 / + 91 - + + col1 + - CAST ( NULL AS REAL ) + CAST ( col0 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
83
NULL
83
NULL
83
NULL

query I rowsort
SELECT DISTINCT - - ( + 72 ) * 5 FROM tab2 AS cor0
----
360

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col0 <> NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT 59 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 25 col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
25
25
25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2320
SELECT DISTINCT ( CAST( NULL AS SIGNED ) ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2320
SELECT DISTINCT ( CAST ( NULL AS INTEGER ) ) FROM tab2
----
NULL

query II rowsort
SELECT DISTINCT col2 AS col2, - col0 AS col2 FROM tab1
----
59
-85
68
-91
96
-51

query II rowsort
SELECT ALL - 84, col1 AS col0 FROM tab2
----
-84
51
-84
67
-84
77

onlyif mysql # aggregate syntax: 
query II rowsort label-2323
SELECT ALL - COUNT( * ) AS col0, - COUNT( * ) FROM tab1
----
-3
-3

skipif mysql # not compatible
query II rowsort label-2323
SELECT ALL - COUNT ( * ) AS col0, - COUNT ( * ) FROM tab1
----
-3
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 col0, - col1 AS col0 FROM tab2
----
46
-51
64
-77
75
-67

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2325
SELECT CAST( 18 AS SIGNED ), - 83 + + 1 AS col1 FROM tab0
----
18
-82
18
-82
18
-82

skipif mysql # not compatible
query II rowsort label-2325
SELECT CAST ( 18 AS INTEGER ), - 83 + + 1 AS col1 FROM tab0
----
18
-82
18
-82
18
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-2326
SELECT DISTINCT + SUM( ALL + col1 ) FROM tab0
----
103

skipif mysql # not compatible
query I rowsort label-2326
SELECT DISTINCT + SUM ( ALL + col1 ) FROM tab0
----
103

onlyif mysql # aggregate syntax: 
query I rowsort label-2327
SELECT ALL - MAX( DISTINCT - 68 ) AS col2 FROM tab0
----
68

skipif mysql # not compatible
query I rowsort label-2327
SELECT ALL - MAX ( DISTINCT - 68 ) AS col2 FROM tab0
----
68

query I rowsort
SELECT col2 * col1 AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
1173
3080
3886

query II rowsort
SELECT col1 * 56, ( + col2 ) - - + col2 AS col0 FROM tab1
----
2632
136
280
118
784
192

onlyif mysql # aggregate syntax: 
query I rowsort label-2330
SELECT - SUM( + 59 ) FROM tab0
----
-177

skipif mysql # not compatible
query I rowsort label-2330
SELECT - SUM ( + 59 ) FROM tab0
----
-177

query I rowsort
SELECT DISTINCT + col0 + - 83 * + 69 FROM tab2 AS cor0
----
-5652
-5663
-5681

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2332
SELECT ALL col2 * + + col1 * + + CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2332
SELECT ALL col2 * + + col1 * + + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col1 + + 83 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
134
150
160

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2334
SELECT + col0, + CAST( NULL AS SIGNED ) FROM tab2 AS cor0 WHERE NULL IS NULL
----
46
NULL
64
NULL
75
NULL

skipif mysql # not compatible
query II rowsort label-2334
SELECT + col0, + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 WHERE NULL IS NULL
----
46
NULL
64
NULL
75
NULL

query I rowsort
SELECT DISTINCT - + col0 + - 49 AS col2 FROM tab1 AS cor0
----
-100
-134
-140

onlyif mysql # aggregate syntax: 
query I rowsort label-2336
SELECT COUNT( 84 ) FROM tab1 AS cor0 WHERE col1 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-2336
SELECT COUNT ( 84 ) FROM tab1 AS cor0 WHERE col1 IS NOT NULL
----
3

query I rowsort
SELECT DISTINCT col1 * + - col0 + + col2 FROM tab0 cor0
----
-1168
-1817
2

onlyif mysql # aggregate syntax: 
query I rowsort label-2338
SELECT ALL + 4 + - 58 * - COUNT( * ) col1 FROM tab2 AS cor0
----
178

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2338
SELECT ALL + 4 + - 58 * - COUNT ( * ) col1 FROM tab2 AS cor0
----
178

onlyif mysql # aggregate syntax: 
query I rowsort label-2339
SELECT DISTINCT - 54 + - 14 + - MAX( DISTINCT + col2 ) FROM tab2
----
-126

skipif mysql # not compatible
query I rowsort label-2339
SELECT DISTINCT - 54 + - 14 + - MAX ( DISTINCT + col2 ) FROM tab2
----
-126

query I rowsort
SELECT DISTINCT ( - col2 ) - + 12 AS col0 FROM tab0
----
-111
-22
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-2341
SELECT 66 * - - COUNT( * ) * + ( - - 69 ) + + + COUNT( * ) + + COUNT( * ) FROM tab2
----
13668

skipif mysql # not compatible
query I rowsort label-2341
SELECT 66 * - - COUNT ( * ) * + ( - - 69 ) + + + COUNT ( * ) + + COUNT ( * ) FROM tab2
----
13668

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2342
SELECT ALL - col1 + + CAST( + col1 AS SIGNED ) + col0 * - col0 col1 FROM tab1
----
-2601
-7225
-8281

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2342
SELECT ALL - col1 + + CAST ( + col1 AS INTEGER ) + col0 * - col0 col1 FROM tab1
----
-2601
-7225
-8281

query III rowsort
SELECT * FROM tab2 WHERE ( + 68 + col0 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 16 + + col0 col1 FROM tab2
----
62
80
91

onlyif mysql # DIV for integer division: 
query II rowsort label-2345
SELECT DISTINCT - col1 DIV + 44 - + - col0 AS col0, - 29 FROM tab0
----
14
-29
87
-29
97
-29

skipif mysql # not compatible
query II rowsort label-2345
SELECT DISTINCT - col1 / + 44 - + - col0 AS col0, - 29 FROM tab0
----
14
-29
87
-29
97
-29

query I rowsort
SELECT ALL col1 - + col1 + + col2 * + + 2 AS col1 FROM tab2
----
116
46
80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2347
SELECT DISTINCT + MAX( + + col0 ) * + - CAST( + COUNT( * ) AS SIGNED ) FROM tab2
----
-225

skipif mysql # not compatible
query I rowsort label-2347
SELECT DISTINCT + MAX ( + + col0 ) * + - CAST ( + COUNT ( * ) AS INTEGER ) FROM tab2
----
-225

query I rowsort
SELECT DISTINCT ( + + col2 ) * - col2 + + 82 + + + 68 * + 72 + - 37 FROM tab0
----
-4860
2732
4841

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2349
SELECT ALL 6 * - + COUNT( * ) AS col0, - CAST( NULL AS SIGNED ) AS col0 FROM tab1 WHERE NOT col2 / col0 IS NULL
----
-18
NULL

skipif mysql # not compatible
query II rowsort label-2349
SELECT ALL 6 * - + COUNT ( * ) AS col0, - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 WHERE NOT col2 / col0 IS NULL
----
-18
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col2 + + + col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2351
SELECT - - ( + MIN( col2 ) ) FROM tab2 WHERE NOT - + col0 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2351
SELECT - - ( + MIN ( col2 ) ) FROM tab2 WHERE NOT - + col0 IS NOT NULL
----
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE ( NULL ) NOT IN ( + col2, 30 + + col1, + col0 / + col0 * + col0 )
----

query I rowsort
SELECT - - 40 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to b1e8ffeef334b4a2b01b2f91e649c2d3

onlyif mysql # aggregate syntax: 
query I rowsort label-2354
SELECT DISTINCT + MAX( DISTINCT - - col2 ) AS col0 FROM tab2
----
58

skipif mysql # not compatible
query I rowsort label-2354
SELECT DISTINCT + MAX ( DISTINCT - - col2 ) AS col0 FROM tab2
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-2355
SELECT ALL - + MIN( DISTINCT - 88 ) col1 FROM tab2 AS cor0
----
88

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2355
SELECT ALL - + MIN ( DISTINCT - 88 ) col1 FROM tab2 AS cor0
----
88

query I rowsort
SELECT ALL - col0 * - col1 + col0 FROM tab1 AS cor0 WHERE ( 79 * - - col1 ) IS NULL
----

query II rowsort
SELECT + col0 * col1, col2 AS col0 FROM tab2 AS cor0
----
2346
23
4928
40
5025
58

onlyif mysql # aggregate syntax: 
query I rowsort label-2358
SELECT DISTINCT - - COUNT( - 53 ) AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2358
SELECT DISTINCT - - COUNT ( - 53 ) AS col2 FROM tab2 AS cor0
----
3

query I rowsort
SELECT - col1 * + col0 * + col2 FROM tab2 AS cor0
----
-197120
-291450
-53958

query I rowsort
SELECT ( col1 ) * col1 + col2 AS col0 FROM tab0 AS cor0 WHERE NOT col0 + - - col0 - - col1 IS NULL
----
100
451
6608

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2361
SELECT ALL CAST( + 6 AS SIGNED ) AS col2 FROM tab1
----
6
6
6

skipif mysql # not compatible
query I rowsort label-2361
SELECT ALL CAST ( + 6 AS INTEGER ) AS col2 FROM tab1
----
6
6
6

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - - ( + col2 ) * - col2 + + - col1 * - - col0 > - - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2363
SELECT + CAST( NULL AS SIGNED ) / + col1 * - col1 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2363
SELECT + CAST ( NULL AS INTEGER ) / + col1 * - col1 AS col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2364
SELECT * FROM tab0 AS cor0 WHERE NOT CAST( col2 AS SIGNED ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-2364
SELECT * FROM tab0 AS cor0 WHERE NOT CAST ( col2 AS INTEGER ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-2365
SELECT ALL + 35 DIV + + col1 + col0 FROM tab1 AS cor0
----
53
91
92

skipif mysql # not compatible
query I rowsort label-2365
SELECT ALL + 35 / + + col1 + col0 FROM tab1 AS cor0
----
53
91
92

query I rowsort
SELECT DISTINCT - 68 FROM tab1 WHERE NOT ( NULL ) IS NULL AND col0 IS NOT NULL
----

query I rowsort
SELECT - 50 AS col0 FROM tab1 WHERE NULL IS NULL AND 85 IS NOT NULL
----
-50
-50
-50

query I rowsort
SELECT col2 + + 28 FROM tab0
----
127
38
75

onlyif mysql # aggregate syntax: 
query I rowsort label-2369
SELECT DISTINCT - 9 * - ( + COUNT( * ) ) - + SUM( ALL col0 ) FROM tab1 AS cor0
----
-200

skipif mysql # not compatible
query I rowsort label-2369
SELECT DISTINCT - 9 * - ( + COUNT ( * ) ) - + SUM ( ALL col0 ) FROM tab1 AS cor0
----
-200

query I rowsort
SELECT DISTINCT + AVG ( - - col0 ) FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2371
SELECT DISTINCT - 55 + + col0 DIV - col2 + + 31 FROM tab2 AS cor0
----
-25
-26

skipif mysql # not compatible
query I rowsort label-2371
SELECT DISTINCT - 55 + + col0 / - col2 + + 31 FROM tab2 AS cor0
----
-25
-26

query I rowsort
SELECT DISTINCT + col2 AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
10
47
99

query I rowsort
SELECT ALL + ( - + col0 ) * - - col0 FROM tab2 AS cor0
----
-2116
-4096
-5625

onlyif mysql # aggregate syntax: 
query II rowsort label-2374
SELECT DISTINCT 88, COUNT( * ) AS col2 FROM tab2 AS cor0
----
88
3

skipif mysql # not compatible
query II rowsort label-2374
SELECT DISTINCT 88, COUNT ( * ) AS col2 FROM tab2 AS cor0
----
88
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2375
SELECT DISTINCT + ( - + ( COUNT( * ) ) ) + COUNT( * ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2375
SELECT DISTINCT + ( - + ( COUNT ( * ) ) ) + COUNT ( * ) FROM tab1 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2376
SELECT - + col1, + CAST( + col0 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-14
51
-47
91
-5
85

skipif mysql # not compatible
query II rowsort label-2376
SELECT - + col1, + CAST ( + col0 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-14
51
-47
91
-5
85

query I rowsort
SELECT + col2 * + + col1 FROM tab2 AS cor0
----
1173
3080
3886

onlyif mysql # aggregate syntax: 
query I rowsort label-2378
SELECT ALL + COUNT( * ) + ( - - 80 ) FROM tab0
----
83

skipif mysql # not compatible
query I rowsort label-2378
SELECT ALL + COUNT ( * ) + ( - - 80 ) FROM tab0
----
83

query I rowsort
SELECT DISTINCT ( + 76 ) FROM tab2 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col2 * - col2 * col2 + + col1 FROM tab1
----
-205374
-314385
-884722

query I rowsort
SELECT DISTINCT col1 * + 58 - + + 29 AS col1 FROM tab1 AS cor0
----
261
2697
783

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2382
SELECT * FROM tab2 WHERE NOT ( + CAST( NULL AS SIGNED ) * + + CAST( NULL AS SIGNED ) + - - 17 IS NOT NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-2382
SELECT * FROM tab2 WHERE NOT ( + CAST ( NULL AS INTEGER ) * + + CAST ( NULL AS INTEGER ) + - - 17 IS NOT NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - 32 FROM tab0 AS cor0 CROSS JOIN tab0 cor1 WHERE NOT NULL IS NOT NULL
----
-32

query I rowsort
SELECT ALL 40 * - + 40 AS col2 FROM tab2
----
-1600
-1600
-1600

query I rowsort
SELECT + ( - col0 ) * + + col2 FROM tab1 AS cor0 WHERE NOT 80 IS NULL
----
-4896
-5015
-6188

query II rowsort
SELECT + col1 AS col2, col0 FROM tab1 AS cor0
----
14
51
47
91
5
85

query II rowsort
SELECT + 73 AS col1, + 1 AS col2 FROM tab1 AS cor0
----
73
1
73
1
73
1

query I rowsort
SELECT ALL - 36 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-36
-36
-36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2389
SELECT + ( - col1 ) * ( - col0 ) * - - col2 * + col2 + 99 + CAST( NULL AS SIGNED ) - col0 + - col2 AS col0 FROM tab2 WHERE NOT NULL < NULL
----

skipif mysql # not compatible
query I rowsort label-2389
SELECT + ( - col1 ) * ( - col0 ) * - - col2 * + col2 + 99 + CAST ( NULL AS INTEGER ) - col0 + - col2 AS col0 FROM tab2 WHERE NOT NULL < NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col2 * + - 71 + + + col2 NOT IN ( col1 * + + col0 * + + col1 )
----

query I rowsort
SELECT DISTINCT + + 32 FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2392
SELECT MAX( DISTINCT + col0 ) FROM tab2
----
75

skipif mysql # not compatible
query I rowsort label-2392
SELECT MAX ( DISTINCT + col0 ) FROM tab2
----
75

onlyif mysql # DIV for integer division: 
query II rowsort label-2393
SELECT + 93 DIV 40 AS col0, + col0 - col0 + - + 65 AS col1 FROM tab1
----
2
-65
2
-65
2
-65

skipif mysql # not compatible
query II rowsort label-2393
SELECT + 93 / 40 AS col0, + col0 - col0 + - + 65 AS col1 FROM tab1
----
2
-65
2
-65
2
-65

query I rowsort
SELECT DISTINCT ( - col2 ) * + col2 AS col0 FROM tab0
----
-100
-2209
-9801

query III rowsort
SELECT * FROM tab1 WHERE NOT + col0 >= - col2
----

query II rowsort
SELECT ALL - col2 + + + 29, - col1 AS col0 FROM tab1
----
-30
-5
-39
-47
-67
-14

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col1 + 84 * + + col0 < col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2398
SELECT DISTINCT SUM( + col0 ) DIV - 59 AS col0 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-2398
SELECT DISTINCT SUM ( + col0 ) / - 59 AS col0 FROM tab2
----
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2399
SELECT - MAX( DISTINCT + + col0 ) DIV + 77 AS col1 FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-2399
SELECT - MAX ( DISTINCT + + col0 ) / + 77 AS col1 FROM tab1
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-2400
SELECT DISTINCT - 15 DIV - col0 * - - col2 col1 FROM tab2
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2400
SELECT DISTINCT - 15 / - col0 * - - col2 col1 FROM tab2
----
0

query I rowsort
SELECT + 26 * col2 AS col2 FROM tab2
----
1040
1508
598

onlyif mysql # aggregate syntax: 
query I rowsort label-2402
SELECT COUNT( * ) + - 95 AS col2 FROM tab1
----
-92

skipif mysql # not compatible
query I rowsort label-2402
SELECT COUNT ( * ) + - 95 AS col2 FROM tab1
----
-92

onlyif mysql # DIV for integer division: 
query I rowsort label-2403
SELECT - - 76 + + col0 DIV - col1 AS col1 FROM tab0 AS cor0
----
-21
72
76

skipif mysql # not compatible
query I rowsort label-2403
SELECT - - 76 + + col0 / - col1 AS col1 FROM tab0 AS cor0
----
-21
72
76

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( col0 IS NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - col2 + + - 1 + + 39 AS col0 FROM tab2 cor0
----
-2
-20
15

onlyif mysql # aggregate syntax: 
query I rowsort label-2406
SELECT - COUNT( * ) * + 42 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-378

skipif mysql # not compatible
query I rowsort label-2406
SELECT - COUNT ( * ) * + 42 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-378

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE ( NULL ) >= NULL
----

query I rowsort
SELECT ALL + + 71 FROM tab1 cor0
----
71
71
71

query I rowsort
SELECT + + col2 + - + col1 FROM tab2 AS cor0
----
-28
-37
-9

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL < - col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 74 + + col1 col0 FROM tab2 AS cor0
----
125
141
151

query I rowsort
SELECT - 65 + col2 AS col1 FROM tab1
----
-6
3
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2413
SELECT ( COUNT( ALL col1 ) ) * 91 + - CAST( + COUNT( * ) AS SIGNED ) + - 3 DIV - COUNT( * ) FROM tab0
----
271

skipif mysql # not compatible
query I rowsort label-2413
SELECT ( COUNT ( ALL col1 ) ) * 91 + - CAST ( + COUNT ( * ) AS INTEGER ) + - 3 / - COUNT ( * ) FROM tab0
----
271

query I rowsort
SELECT - col1 + 53 FROM tab0
----
-28
32
52

query I rowsort
SELECT DISTINCT + 9 - + - col0 + - + col0 AS col0 FROM tab0
----
9

query I rowsort
SELECT col0 FROM tab0 WHERE NOT 83 / + + 49 IS NULL
----
15
87
97

query I rowsort
SELECT ALL - 67 * - - 72 AS col1 FROM tab1 AS cor0
----
-4824
-4824
-4824

query I rowsort
SELECT - - ( - + col2 ) AS col2 FROM tab2 cor0 WHERE NOT - 53 IS NULL
----
-23
-40
-58

query II rowsort
SELECT ALL + col2, - ( col2 ) FROM tab2 cor0
----
23
-23
40
-40
58
-58

query II rowsort
SELECT DISTINCT + - col1, + col0 AS col1 FROM tab1 AS cor0
----
-14
51
-47
91
-5
85

onlyif mysql # DIV for integer division: 
query I rowsort label-2421
SELECT + col2 DIV - + col1 + - - col2 FROM tab1 AS cor0
----
48
67
90

skipif mysql # not compatible
query I rowsort label-2421
SELECT + col2 / - + col1 + - - col2 FROM tab1 AS cor0
----
48
67
90

onlyif mysql # aggregate syntax: 
query I rowsort label-2422
SELECT COUNT( * ) * + - 56 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
-504

skipif mysql # not compatible
query I rowsort label-2422
SELECT COUNT ( * ) * + - 56 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
-504

query I rowsort
SELECT col1 * - + 71 AS col1 FROM tab1
----
-3337
-355
-994

query I rowsort
SELECT ALL 38 * col1 * + + col1 FROM tab1
----
7448
83942
950

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2425
SELECT DISTINCT ( CAST( COUNT( * ) AS SIGNED ) ) AS col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2425
SELECT DISTINCT ( CAST ( COUNT ( * ) AS INTEGER ) ) AS col0 FROM tab2 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2426
SELECT - 62 + 80 * - AVG ( + col1 ) * + - CAST( NULL AS SIGNED ) * 59 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2426
SELECT - 62 + 80 * - AVG ( + col1 ) * + - CAST ( NULL AS INTEGER ) * 59 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL col1 * - col0 + - col2 AS col2 FROM tab1
----
-4345
-484
-810

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2428
SELECT * FROM tab2 WHERE NOT NULL BETWEEN + + CAST( + 44 AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-2428
SELECT * FROM tab2 WHERE NOT NULL BETWEEN + + CAST ( + 44 AS INTEGER ) AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2429
SELECT DISTINCT col1 + + + 8 + - col1 DIV col1 FROM tab0
----
28
8
88

skipif mysql # not compatible
query I rowsort label-2429
SELECT DISTINCT col1 + + + 8 + - col1 / col1 FROM tab0
----
28
8
88

query I rowsort
SELECT - col0 * + col0 FROM tab2 WHERE + col1 IS NOT NULL
----
-2116
-4096
-5625

query II rowsort
SELECT DISTINCT - - col1, - col2 + col0 AS col1 FROM tab2 AS cor0
----
51
23
67
17
77
24

query I rowsort
SELECT ( + col1 ) * - - col2 + - - 54 FROM tab1 AS cor0
----
1398
3250
349

query III rowsort
SELECT * FROM tab0 cor0 WHERE NULL >= - col2
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 43 > NULL
----

query I rowsort
SELECT ( ( - col2 ) ) - + + ( + col1 ) * + col2 AS col2 FROM tab2 AS cor0
----
-1196
-3120
-3944

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 col2 FROM tab2 WHERE NULL NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT + col0 * - col1 - + - 14 + + + col0 * col1 + - col0 AS col2 FROM tab0 cor0
----
-1
-73
-83

query I rowsort
SELECT ALL - - 38 AS col0 FROM tab0 cor0
----
38
38
38

query I rowsort
SELECT DISTINCT + - 20 - col1 + - 19 AS col2 FROM tab1 AS cor0
----
-44
-53
-86

query I rowsort
SELECT DISTINCT + col2 FROM tab2 AS cor0 WHERE NOT col2 = + col0
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-2441
SELECT - MIN( - ( + 95 ) ) AS col1 FROM tab2 AS cor0
----
95

skipif mysql # not compatible
query I rowsort label-2441
SELECT - MIN ( - ( + 95 ) ) AS col1 FROM tab2 AS cor0
----
95

query I rowsort
SELECT + 56 * + 79 AS col1 FROM tab2 AS cor0
----
4424
4424
4424

onlyif mysql # DIV for integer division: 
query I rowsort label-2443
SELECT - - col0 DIV - 96 FROM tab0 cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-2443
SELECT - - col0 / - 96 FROM tab0 cor0
----
-1
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2444
SELECT DISTINCT 39 * + COUNT( * ) FROM tab0 cor0
----
117

skipif mysql # not compatible
query I rowsort label-2444
SELECT DISTINCT 39 * + COUNT ( * ) FROM tab0 cor0
----
117

query I rowsort
SELECT ALL - 55 * + col0 FROM tab0 WHERE + ( - + col0 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2446
SELECT DISTINCT - MAX( 59 ) FROM tab0
----
-59

skipif mysql # not compatible
query I rowsort label-2446
SELECT DISTINCT - MAX ( 59 ) FROM tab0
----
-59

query I rowsort
SELECT - col0 * 20 * col2 * - 69 FROM tab2
----
1460040
3532800
6003000

onlyif mysql # DIV for integer division: 
query II rowsort label-2448
SELECT - col2, 41 DIV col2 col0 FROM tab0
----
-10
4
-47
0
-99
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2448
SELECT - col2, 41 / col2 col0 FROM tab0
----
-10
4
-47
0
-99
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2449
SELECT + SUM( 87 ) * + - MAX( ALL + col1 ) FROM tab1 AS cor0 WHERE NOT 33 = NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2449
SELECT + SUM ( 87 ) * + - MAX ( ALL + col1 ) FROM tab1 AS cor0 WHERE NOT 33 = NULL
----
NULL

query I rowsort
SELECT DISTINCT - ( 40 ) AS col2 FROM tab0 AS cor0
----
-40

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT 27 + - + 57 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col2 * + + 17 * - col0 FROM tab2
----
17986
43520
73950

query I rowsort
SELECT + - 32 AS col0 FROM tab2 AS cor0
----
-32
-32
-32

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 31 col2 FROM tab2 cor0 WHERE col1 > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2455
SELECT ALL + col2 + 68 + + + CAST( + col1 AS SIGNED ) FROM tab1 AS cor0
----
132
178
183

skipif mysql # not compatible
query I rowsort label-2455
SELECT ALL + col2 + 68 + + + CAST ( + col1 AS INTEGER ) FROM tab1 AS cor0
----
132
178
183

query II rowsort
SELECT col0, + col2 * - col2 FROM tab0 AS cor0
----
15
-2209
87
-100
97
-9801

query I rowsort
SELECT ALL + col0 FROM tab1 AS cor0 WHERE NULL <> col0 * col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2458
SELECT ALL 58 + 76 DIV - col2 FROM tab0 AS cor0
----
51
57
58

skipif mysql # not compatible
query I rowsort label-2458
SELECT ALL 58 + 76 / - col2 FROM tab0 AS cor0
----
51
57
58

query II rowsort
SELECT - - col2, + 65 AS col1 FROM tab1 AS cor0
----
59
65
68
65
96
65

query I rowsort
SELECT DISTINCT col1 + - - col0 FROM tab1
----
138
65
90

query II rowsort
SELECT ALL ( col0 ), ( col0 ) + + col1 FROM tab2
----
46
97
64
141
75
142

query I rowsort
SELECT DISTINCT 13 AS col2 FROM tab2 WHERE NOT + 29 * 2 - + 17 IS NULL
----
13

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + - 77 col2 FROM tab1
----
-26
14
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 col2 FROM tab1 WHERE NOT - - 57 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2465
SELECT DISTINCT 71 * + MAX( - 43 ) col2 FROM tab2 cor0
----
-3053

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2465
SELECT DISTINCT 71 * + MAX ( - 43 ) col2 FROM tab2 cor0
----
-3053

query I rowsort
SELECT ALL - - 52 * col2 FROM tab1 AS cor0
----
3068
3536
4992

query I rowsort
SELECT DISTINCT + ( - - col0 ) + - + col0 + + 50 * - 61 * - 74 FROM tab0 cor0
----
225700

onlyif mysql # aggregate syntax: 
query I rowsort label-2468
SELECT SUM( + - ( col0 ) ) AS col0 FROM tab1
----
-227

skipif mysql # not compatible
query I rowsort label-2468
SELECT SUM ( + - ( col0 ) ) AS col0 FROM tab1
----
-227

query I rowsort
SELECT - col1 + col1 FROM tab2 WHERE NULL IS NULL
----
0
0
0

query I rowsort
SELECT DISTINCT + - 16 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
-16

query I rowsort
SELECT DISTINCT + 75 FROM tab2 AS cor0 WHERE + 77 * + col0 * + 17 IS NOT NULL
----
75

query I rowsort
SELECT ALL col1 * - - col1 AS col0 FROM tab2 cor0
----
2601
4489
5929

query I rowsort
SELECT + 34 FROM tab0 AS cor0 WHERE NOT col2 + col0 * + ( + - col0 ) < col0 + - + col2
----

query I rowsort
SELECT - col2 * - + col1 FROM tab1 AS cor0
----
1344
295
3196

query II rowsort
SELECT ALL - col0 AS col2, - col1 FROM tab1 AS cor0
----
-51
-14
-85
-5
-91
-47

query I rowsort
SELECT + col1 * - + col0 AS col1 FROM tab2 AS cor0
----
-2346
-4928
-5025

onlyif mysql # DIV for integer division: 
query I rowsort label-2477
SELECT DISTINCT - col0 DIV + col1 + - 20 FROM tab2 AS cor0
----
-20
-21

skipif mysql # not compatible
query I rowsort label-2477
SELECT DISTINCT - col0 / + col1 + - 20 FROM tab2 AS cor0
----
-20
-21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2478
SELECT MAX( + 35 ) * AVG ( + - ( - CAST( NULL AS SIGNED ) ) ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2478
SELECT MAX ( + 35 ) * AVG ( + - ( - CAST ( NULL AS INTEGER ) ) ) FROM tab0
----
NULL

query I rowsort
SELECT - col1 * - - col0 AS col2 FROM tab2
----
-2346
-4928
-5025

query I rowsort
SELECT col0 * - + 2 AS col1 FROM tab0
----
-174
-194
-30

onlyif mysql # aggregate syntax: 
query II rowsort label-2481
SELECT ALL + COUNT( + col0 ), 9 - + ( COUNT( * ) ) + 9 - ( - - ( - COUNT( * ) ) ) AS col1 FROM tab2
----
3
18

skipif mysql # not compatible
query II rowsort label-2481
SELECT ALL + COUNT ( + col0 ), 9 - + ( COUNT ( * ) ) + 9 - ( - - ( - COUNT ( * ) ) ) AS col1 FROM tab2
----
3
18

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * + + col2 col0 FROM tab0
----
210
3807
99

query I rowsort
SELECT DISTINCT col1 * - - 55 FROM tab0
----
1155
4455
55

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN NULL AND + 7
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2485
SELECT + COUNT( * ) FROM tab2 AS cor0 WHERE NOT col0 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-2485
SELECT + COUNT ( * ) FROM tab2 AS cor0 WHERE NOT col0 IS NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2486
SELECT ALL MAX( - 52 ) FROM tab2
----
-52

skipif mysql # not compatible
query I rowsort label-2486
SELECT ALL MAX ( - 52 ) FROM tab2
----
-52

query I rowsort
SELECT - + 89 + + - ( + col0 ) FROM tab0 AS cor0
----
-104
-176
-186

query I rowsort
SELECT ALL + col2 * 18 AS col0 FROM tab0 AS cor0
----
1782
180
846

onlyif mysql # aggregate syntax: 
query I rowsort label-2489
SELECT - - 20 + + MAX( - 89 ) + + 18 FROM tab0 cor0
----
-51

skipif mysql # not compatible
query I rowsort label-2489
SELECT - - 20 + + MAX ( - 89 ) + + 18 FROM tab0 cor0
----
-51

query I rowsort
SELECT DISTINCT 21 + + + col0 - - + col2 * - - 52 * - - ( + + col1 ) AS col1 FROM tab2 AS cor0
----
160245
202168
61063

onlyif mysql # aggregate syntax: 
query I rowsort label-2491
SELECT + COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE col2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2491
SELECT + COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE col2 IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2492
SELECT COUNT( * ) + - - ( + COUNT( * ) ) AS col1 FROM tab1 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-2492
SELECT COUNT ( * ) + - - ( + COUNT ( * ) ) AS col1 FROM tab1 AS cor0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-2493
SELECT DISTINCT - - COUNT( DISTINCT - - 21 ) FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-2493
SELECT DISTINCT - - COUNT ( DISTINCT - - 21 ) FROM tab1 AS cor0
----
1

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NULL <> + col2 * ( - 54 )
----

query I rowsort
SELECT ALL + ( - col1 ) + + col2 FROM tab1 AS cor0
----
21
54
82

onlyif mysql # aggregate syntax: 
query I rowsort label-2496
SELECT ALL + 97 + + - MAX( DISTINCT - - col2 ) FROM tab0 AS cor0
----
-2

skipif mysql # not compatible
query I rowsort label-2496
SELECT ALL + 97 + + - MAX ( DISTINCT - - col2 ) FROM tab0 AS cor0
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-2497
SELECT COUNT( * ) + + + 93 + - COUNT( DISTINCT + + col2 ) AS col2 FROM tab1 AS cor0
----
93

skipif mysql # not compatible
query I rowsort label-2497
SELECT COUNT ( * ) + + + 93 + - COUNT ( DISTINCT + + col2 ) AS col2 FROM tab1 AS cor0
----
93

onlyif mysql # DIV for integer division: 
query II rowsort label-2498
SELECT + col0, + ( + col1 ) DIV col2 FROM tab0
----
15
1
87
2
97
0

skipif mysql # not compatible
query II rowsort label-2498
SELECT + col0, + ( + col1 ) / col2 FROM tab0
----
15
1
87
2
97
0

query I rowsort
SELECT DISTINCT - col1 + + ( + 0 ) FROM tab2
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-2500
SELECT ALL 6 * 75 * - MIN( ALL + col1 ) + + 12 AS col2 FROM tab2
----
-22938

skipif mysql # not compatible
query I rowsort label-2500
SELECT ALL 6 * 75 * - MIN ( ALL + col1 ) + + 12 AS col2 FROM tab2
----
-22938

query I rowsort
SELECT ALL + ( - col0 ) + - col2 AS col1 FROM tab1
----
-144
-147
-159

query I rowsort
SELECT - 32 FROM tab2 WHERE + 72 * + col1 <> - col2
----
-32
-32
-32

query I rowsort
SELECT DISTINCT ( 3 ) FROM tab0 WHERE NOT col0 IS NOT NULL
----

query I rowsort
SELECT col1 * - + 49 * - - col0 FROM tab2
----
-114954
-241472
-246225

query III rowsort
SELECT * FROM tab1 WHERE - - col2 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2506
SELECT ALL MAX( DISTINCT - 18 ) * - ( COUNT( * ) ) AS col0 FROM tab1 cor0
----
54

skipif mysql # not compatible
query I rowsort label-2506
SELECT ALL MAX ( DISTINCT - 18 ) * - ( COUNT ( * ) ) AS col0 FROM tab1 cor0
----
54

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - 35 BETWEEN - col1 AND NULL
----
51
14
96
85
5
59

onlyif mysql # aggregate syntax: 
query I rowsort label-2508
SELECT + 62 - 59 * COUNT( * ) * - - COUNT( * ) + + 32 * + 4 + - 55 FROM tab1 AS cor0
----
-396

skipif mysql # not compatible
query I rowsort label-2508
SELECT + 62 - 59 * COUNT ( * ) * - - COUNT ( * ) + + 32 * + 4 + - 55 FROM tab1 AS cor0
----
-396

onlyif mysql # DIV for integer division: 
query I rowsort label-2509
SELECT ALL + 15 DIV + col1 - - col2 FROM tab2 AS cor0
----
23
40
58

skipif mysql # not compatible
query I rowsort label-2509
SELECT ALL + 15 / + col1 - - col2 FROM tab2 AS cor0
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-2510
SELECT COUNT( + - col2 ) AS col2 FROM tab0 AS cor0 WHERE NOT 24 + + + ( + col1 ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2510
SELECT COUNT ( + - col2 ) AS col2 FROM tab0 AS cor0 WHERE NOT 24 + + + ( + col1 ) IS NOT NULL
----
0

query I rowsort
SELECT col0 * + + col1 * + - col1 FROM tab0 AS cor0
----
-38367
-97
-98415

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT 37 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2513
SELECT COUNT( * ) col1 FROM tab2 WHERE NOT ( NOT NULL IS NOT NULL )
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2513
SELECT COUNT ( * ) col1 FROM tab2 WHERE NOT ( NOT NULL IS NOT NULL )
----
0

query I rowsort
SELECT ALL - ( - + col1 ) * + ( - - col2 ) AS col2 FROM tab1
----
1344
295
3196

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - - 58 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL IN ( - 95 + - - col0 + - 79, col0 / col1, + col0 * - col0 + + col2 * - col0 + - 3, - + col2 + - 62 * col2 - col2, + col0 )
----

query II rowsort
SELECT DISTINCT - 10 AS col0, 73 FROM tab1
----
-10
73

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + + col2 * - 12 col1 FROM tab1
----
-58752
-60180
-74256

query I rowsort
SELECT ALL - col1 * - col0 * + col1 AS col1 FROM tab2
----
119646
336675
379456

onlyif mysql # aggregate syntax: 
query I rowsort label-2520
SELECT MIN( ALL - + col0 ) AS col2 FROM tab1
----
-91

skipif mysql # not compatible
query I rowsort label-2520
SELECT MIN ( ALL - + col0 ) AS col2 FROM tab1
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-2521
SELECT MAX( - + col1 ) AS col0 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-2521
SELECT MAX ( - + col1 ) AS col0 FROM tab0
----
-1

query II rowsort
SELECT - col0 AS col0, col0 + + 26 AS col1 FROM tab0 cor0
----
-15
41
-87
113
-97
123

onlyif mysql # aggregate syntax: 
query I rowsort label-2523
SELECT COUNT( DISTINCT 81 ) FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-2523
SELECT COUNT ( DISTINCT 81 ) FROM tab2 AS cor0
----
1

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - ( 97 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2525
SELECT DISTINCT - MIN( DISTINCT col0 ) FROM tab2 cor0 WHERE 60 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2525
SELECT DISTINCT - MIN ( DISTINCT col0 ) FROM tab2 cor0 WHERE 60 IS NULL
----
NULL

query I rowsort
SELECT DISTINCT + 71 * ( 90 ) AS col2 FROM tab0
----
6390

query I rowsort
SELECT ALL 58 AS col0 FROM tab2 WHERE 44 NOT IN ( + 52 )
----
58
58
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * + 56 col1 FROM tab2
----
-2576
-3584
-4200

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2529
SELECT ALL col0 + CAST( 55 AS SIGNED ) AS col0 FROM tab0
----
142
152
70

skipif mysql # not compatible
query I rowsort label-2529
SELECT ALL col0 + CAST ( 55 AS INTEGER ) AS col0 FROM tab0
----
142
152
70

onlyif mysql # aggregate syntax: 
query I rowsort label-2530
SELECT - 54 * MIN( DISTINCT 3 * col0 ) AS col0 FROM tab1
----
-8262

skipif mysql # not compatible
query I rowsort label-2530
SELECT - 54 * MIN ( DISTINCT 3 * col0 ) AS col0 FROM tab1
----
-8262

query I rowsort
SELECT + col2 * 15 AS col0 FROM tab1
----
1020
1440
885

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2532
SELECT col1 * + col2 + - CAST( NULL AS SIGNED ) col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2532
SELECT col1 * + col2 + - CAST ( NULL AS INTEGER ) col2 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col2 = + col2 * col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 91 col2 FROM tab1 WHERE + 69 + col1 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col0 BETWEEN col1 AND ( col1 )
----

query III rowsort
SELECT * FROM tab2 WHERE - col1 - 56 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-2537
SELECT + 6 DIV col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
0
0
6

skipif mysql # not compatible
query I rowsort label-2537
SELECT + 6 / col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
0
0
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2538
SELECT DISTINCT ( CAST( NULL AS SIGNED ) ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2538
SELECT DISTINCT ( CAST ( NULL AS INTEGER ) ) AS col2 FROM tab1
----
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( col1 ) < ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 53 col0 FROM tab1
----
53
53
53

onlyif mysql # aggregate syntax: 
query I rowsort label-2541
SELECT - 93 - + COUNT( ALL + 54 ) FROM tab2
----
-96

skipif mysql # not compatible
query I rowsort label-2541
SELECT - 93 - + COUNT ( ALL + 54 ) FROM tab2
----
-96

query I rowsort
SELECT - col0 + + 71 AS col1 FROM tab0
----
-16
-26
56

onlyif mysql # aggregate syntax: 
query I rowsort label-2543
SELECT ALL 38 * - COUNT( * ) FROM tab2
----
-114

skipif mysql # not compatible
query I rowsort label-2543
SELECT ALL 38 * - COUNT ( * ) FROM tab2
----
-114

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2544
SELECT col1 + col0 * 68 AS col0 FROM tab1 WHERE NOT ( col0 ) = - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-2544
SELECT col1 + col0 * 68 AS col0 FROM tab1 WHERE NOT ( col0 ) = - CAST ( NULL AS INTEGER )
----

query III rowsort
SELECT * FROM tab0 WHERE 11 + ( col1 ) NOT IN ( - 27 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 42 - + col1 AS col0 FROM tab2
----
-25
-35
-9

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - 64 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2548
SELECT COUNT( * ) * 32 AS col0 FROM tab1
----
96

skipif mysql # not compatible
query I rowsort label-2548
SELECT COUNT ( * ) * 32 AS col0 FROM tab1
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-2549
SELECT DISTINCT - COUNT( ALL 45 ) AS col1 FROM tab2 WHERE ( - col2 ) BETWEEN 79 + col1 * - col1 AND ( col2 * - ( + col1 ) - col2 )
----
0

skipif mysql # not compatible
query I rowsort label-2549
SELECT DISTINCT - COUNT ( ALL 45 ) AS col1 FROM tab2 WHERE ( - col2 ) BETWEEN 79 + col1 * - col1 AND ( col2 * - ( + col1 ) - col2 )
----
0

query III rowsort
SELECT ALL * FROM tab1 WHERE ( NULL ) IN ( 76 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 49 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL >= + col1 * col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2553
SELECT - COUNT( + 21 ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2553
SELECT - COUNT ( + 21 ) FROM tab0 AS cor0
----
-3

query I rowsort
SELECT DISTINCT + col2 + - col1 * - col1 AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL 47 FROM tab1 AS cor0 CROSS JOIN tab2
----
9 values hashing to 4fe192f296791e1e40ea00a68aa8dab7

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab2 WHERE NULL IS NULL
----
54 values hashing to ee5129bae5293935ae558ebe95290e29

onlyif mysql # aggregate syntax: 
query I rowsort label-2557
SELECT ALL + COUNT( * ) AS col0 FROM tab1 WHERE NOT + col1 * 68 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2557
SELECT ALL + COUNT ( * ) AS col0 FROM tab1 WHERE NOT + col1 * 68 IS NOT NULL
----
0

query I rowsort
SELECT DISTINCT + col1 * - 7 AS col1 FROM tab0
----
-147
-567
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-2559
SELECT + COUNT( * ) AS col0 FROM tab1 WHERE NOT NULL BETWEEN + 90 AND - 4
----
0

skipif mysql # not compatible
query I rowsort label-2559
SELECT + COUNT ( * ) AS col0 FROM tab1 WHERE NOT NULL BETWEEN + 90 AND - 4
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2560
SELECT SUM( + 32 ) * 48 FROM tab0 AS cor0 CROSS JOIN tab1
----
13824

skipif mysql # not compatible
query I rowsort label-2560
SELECT SUM ( + 32 ) * 48 FROM tab0 AS cor0 CROSS JOIN tab1
----
13824

onlyif mysql # aggregate syntax: 
query I rowsort label-2561
SELECT ALL - 33 * COUNT( * ) FROM tab1 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-2561
SELECT ALL - 33 * COUNT ( * ) FROM tab1 AS cor0
----
-99

query I rowsort
SELECT col2 * - 9 + - col2 AS col0 FROM tab0 AS cor0 WHERE NOT + 36 / - col1 - - col1 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN col0 + col2 AND ( 28 )
----

query I rowsort
SELECT col0 AS col0 FROM tab1 cor0 WHERE NOT NULL BETWEEN NULL AND + ( col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2565
SELECT ALL - + MIN( ALL + col1 ) col2 FROM tab2 AS cor0
----
-51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2565
SELECT ALL - + MIN ( ALL + col1 ) col2 FROM tab2 AS cor0
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-2566
SELECT - - MAX( ALL 9 ) col1 FROM tab0 AS cor0
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2566
SELECT - - MAX ( ALL 9 ) col1 FROM tab0 AS cor0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-2567
SELECT ALL - COUNT( * ) * + 99 FROM tab1 AS cor0
----
-297

skipif mysql # not compatible
query I rowsort label-2567
SELECT ALL - COUNT ( * ) * + 99 FROM tab1 AS cor0
----
-297

onlyif mysql # aggregate syntax: 
query I rowsort label-2568
SELECT DISTINCT 66 * COUNT( * ) FROM tab0 AS cor0
----
198

skipif mysql # not compatible
query I rowsort label-2568
SELECT DISTINCT 66 * COUNT ( * ) FROM tab0 AS cor0
----
198

query I rowsort
SELECT col0 * 25 FROM tab1 cor0
----
1275
2125
2275

onlyif mysql # aggregate syntax: 
query I rowsort label-2570
SELECT - - SUM( col2 ) * 40 AS col2 FROM tab0 cor0
----
6240

skipif mysql # not compatible
query I rowsort label-2570
SELECT - - SUM ( col2 ) * 40 AS col2 FROM tab0 cor0
----
6240

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL BETWEEN - col1 + col2 * col1 AND NULL
----

query I rowsort
SELECT + ( + - col0 ) AS col1 FROM tab1
----
-51
-85
-91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2573
SELECT DISTINCT + COUNT( + col1 ) DIV + 50 FROM tab2 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2573
SELECT DISTINCT + COUNT ( + col1 ) / + 50 FROM tab2 WHERE NOT NULL IS NULL
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2574
SELECT col1 * col1 / + CAST( NULL AS DECIMAL ) AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2574
SELECT col1 * col1 / + CAST ( NULL AS REAL ) AS col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col2 * - + ( 58 ) AS col1 FROM tab2
----
1334
2320
3364

query III rowsort
SELECT * FROM tab2 WHERE NOT - ( + 94 ) + col0 IN ( - 6 + + 63 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2577
SELECT ALL ( - - SUM( DISTINCT col0 ) ) * - COUNT( * ) FROM tab1
----
-681

skipif mysql # not compatible
query I rowsort label-2577
SELECT ALL ( - - SUM ( DISTINCT col0 ) ) * - COUNT ( * ) FROM tab1
----
-681

onlyif mysql # aggregate syntax: 
query I rowsort label-2578
SELECT DISTINCT - COUNT( * ) * - COUNT( * ) FROM tab1
----
9

skipif mysql # not compatible
query I rowsort label-2578
SELECT DISTINCT - COUNT ( * ) * - COUNT ( * ) FROM tab1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-2579
SELECT - COUNT( * ) * COUNT( * ) FROM tab0 WHERE NOT 15 * + col2 < NULL
----
0

skipif mysql # not compatible
query I rowsort label-2579
SELECT - COUNT ( * ) * COUNT ( * ) FROM tab0 WHERE NOT 15 * + col2 < NULL
----
0

query III rowsort
SELECT * FROM tab1 WHERE NOT - col0 BETWEEN NULL AND NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT 15 * col0 NOT IN ( - ( - col2 ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2582
SELECT - col2 FROM tab1 AS cor0 WHERE NOT col0 IN ( - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-2582
SELECT - col2 FROM tab1 AS cor0 WHERE NOT col0 IN ( - CAST ( NULL AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2583
SELECT DISTINCT - 11 + + MAX( ALL col0 ) - 24 FROM tab2 AS cor0
----
40

skipif mysql # not compatible
query I rowsort label-2583
SELECT DISTINCT - 11 + + MAX ( ALL col0 ) - 24 FROM tab2 AS cor0
----
40

query I rowsort
SELECT col2 * - 71 FROM tab2 cor0
----
-1633
-2840
-4118

query I rowsort
SELECT DISTINCT 51 * - 38 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
-1938

onlyif mysql # aggregate syntax: 
query I rowsort label-2586
SELECT DISTINCT COUNT( * ) * - COUNT( * ) AS col0 FROM tab0
----
-9

skipif mysql # not compatible
query I rowsort label-2586
SELECT DISTINCT COUNT ( * ) * - COUNT ( * ) AS col0 FROM tab0
----
-9

query I rowsort
SELECT col1 * col2 * + - col0 AS col2 FROM tab0
----
-18270
-57105
-9603

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2588
SELECT DISTINCT - CAST( - COUNT( * ) AS SIGNED ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-2588
SELECT DISTINCT - CAST ( - COUNT ( * ) AS INTEGER ) FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2589
SELECT DISTINCT + + ( - COUNT( * ) ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-2589
SELECT DISTINCT + + ( - COUNT ( * ) ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

query I rowsort
SELECT col1 + + - 80 FROM tab0 AS cor0
----
-59
-79
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2591
SELECT DISTINCT SUM( + - col1 ) AS col0 FROM tab0 AS cor0
----
-103

skipif mysql # not compatible
query I rowsort label-2591
SELECT DISTINCT SUM ( + - col1 ) AS col0 FROM tab0 AS cor0
----
-103

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NOT ( NULL ) >= ( NULL ) ) OR NOT ( NULL ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 51 + col2 col2 FROM tab2 AS cor0
----
-11
-28
7

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT IN ( - 87 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2595
SELECT CAST( + col1 AS SIGNED ) + 32 * + 91 FROM tab1 AS cor0
----
2917
2926
2959

skipif mysql # not compatible
query I rowsort label-2595
SELECT CAST ( + col1 AS INTEGER ) + 32 * + 91 FROM tab1 AS cor0
----
2917
2926
2959

onlyif mysql # DIV for integer division: 
query I rowsort label-2596
SELECT - + col1 DIV - + 69 col2 FROM tab1 cor0
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2596
SELECT - + col1 / - + 69 col2 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT + col2 AS col0 FROM tab0 WHERE NULL > NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE - + 57 + col2 * - 13 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2599
SELECT ALL col0 * - - 62 + + CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2599
SELECT ALL col0 * - - 62 + + CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2600
SELECT 56 * - CAST( NULL AS SIGNED ) FROM tab0 WHERE + ( - col2 ) + col2 IS NULL
----

skipif mysql # not compatible
query I rowsort label-2600
SELECT 56 * - CAST ( NULL AS INTEGER ) FROM tab0 WHERE + ( - col2 ) + col2 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2601
SELECT DISTINCT col1 - + + col2 DIV - 97 FROM tab1
----
14
47
5

skipif mysql # not compatible
query I rowsort label-2601
SELECT DISTINCT col1 - + + col2 / - 97 FROM tab1
----
14
47
5

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( + col0 * + col1 ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 12 - col1 * 3 col1 FROM tab1 AS cor0
----
-129
-3
-30

query I rowsort
SELECT ALL - col1 * - 15 + + col1 - + - col1 + - 78 FROM tab0 AS cor0
----
-61
1299
279

query I rowsort
SELECT col0 FROM tab2 WHERE NOT - col1 NOT BETWEEN NULL AND + col1 + + col0 + + col0 * + 55
----

query I rowsort
SELECT DISTINCT + col2 * - col1 * col1 AS col1 FROM tab2 AS cor0
----
-237160
-260362
-59823

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2607
SELECT ALL - SUM( col2 ) FROM tab1 cor0 WHERE ( NULL ) <= + col1 * - col1 + - - 21 * + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-2607
SELECT ALL - SUM ( col2 ) FROM tab1 cor0 WHERE ( NULL ) <= + col1 * - col1 + - - 21 * + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2608
SELECT ALL + 88 * + - COUNT( * ) FROM tab2 AS cor0
----
-264

skipif mysql # not compatible
query I rowsort label-2608
SELECT ALL + 88 * + - COUNT ( * ) FROM tab2 AS cor0
----
-264

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + + 10 IS NULL AND 96 IS NULL
----

query I rowsort
SELECT + 95 * + - col2 FROM tab1
----
-5605
-6460
-9120

onlyif mysql # aggregate syntax: 
query I rowsort label-2611
SELECT COUNT( * ) AS col1 FROM tab2 WHERE NOT ( + 37 IS NOT NULL )
----
0

skipif mysql # not compatible
query I rowsort label-2611
SELECT COUNT ( * ) AS col1 FROM tab2 WHERE NOT ( + 37 IS NOT NULL )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2612
SELECT DISTINCT COUNT( 45 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-2612
SELECT DISTINCT COUNT ( 45 ) FROM tab1
----
3

query I rowsort
SELECT 7 * + + 76 AS col1 FROM tab1
----
532
532
532

query II rowsort
SELECT - col1 AS col0, + col2 FROM tab0
----
-1
99
-21
10
-81
47

onlyif mysql # DIV for integer division: 
query I rowsort label-2615
SELECT - 18 DIV col1 - + col0 FROM tab1 cor0
----
-52
-88
-91

skipif mysql # not compatible
query I rowsort label-2615
SELECT - 18 / col1 - + col0 FROM tab1 cor0
----
-52
-88
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-2616
SELECT DISTINCT MIN( ALL col2 ) FROM tab2 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-2616
SELECT DISTINCT MIN ( ALL col2 ) FROM tab2 AS cor0
----
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2617
SELECT - CAST( NULL AS SIGNED ) + - + col2 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2617
SELECT - CAST ( NULL AS INTEGER ) + - + col2 FROM tab1 cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 41 col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 5b18986bb294412b3d9f07b7e6fc821e

query III rowsort
SELECT ALL * FROM tab2 WHERE - 13 = 21 - + + col0 * + - 63
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2620
SELECT DISTINCT + COUNT( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-2620
SELECT DISTINCT + COUNT ( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9

query I rowsort
SELECT 68 * - - col2 * col0 - 28 AS col2 FROM tab0 AS cor0 WHERE - 82 <> + col2 * col0
----
47912
59132
652976

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 44 * col1 - 94 * + ( - + col0 ) col1 FROM tab0 AS cor0
----
-2154
7254
9074

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) BETWEEN ( - + 66 ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2624
SELECT ALL - MAX( - + col2 ) FROM tab0 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-2624
SELECT ALL - MAX ( - + col2 ) FROM tab0 AS cor0
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-2625
SELECT ALL - 60 + - MIN( DISTINCT - col2 ) - + ( + COUNT( * ) ) FROM tab1 AS cor0
----
33

skipif mysql # not compatible
query I rowsort label-2625
SELECT ALL - 60 + - MIN ( DISTINCT - col2 ) - + ( + COUNT ( * ) ) FROM tab1 AS cor0
----
33

query I rowsort
SELECT 74 + col2 + + 54 AS col1 FROM tab0 AS cor0
----
138
175
227

onlyif mysql # DIV for integer division: 
query I rowsort label-2627
SELECT DISTINCT 65 DIV - 86 + - 28 + + 27 FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-2627
SELECT DISTINCT 65 / - 86 + - 28 + + 27 FROM tab1
----
-1

query I rowsort
SELECT - - col2 * - + col0 AS col2 FROM tab2 WHERE + col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2629
SELECT ALL 19 - + + COUNT( * ) FROM tab0
----
16

skipif mysql # not compatible
query I rowsort label-2629
SELECT ALL 19 - + + COUNT ( * ) FROM tab0
----
16

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT 78 IS NOT NULL
----

query II rowsort
SELECT DISTINCT + + 0, col1 AS col2 FROM tab1 AS cor0
----
0
14
0
47
0
5

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2632
SELECT + + col2 AS col1, CAST( col1 AS SIGNED ) col0 FROM tab2 AS cor0
----
23
51
40
77
58
67

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2632
SELECT + + col2 AS col1, CAST ( col1 AS INTEGER ) col0 FROM tab2 AS cor0
----
23
51
40
77
58
67

query I rowsort
SELECT 69 FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to 85d9b90a03b9def161891b13085271f7

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( NOT 3 + - + col2 * - col1 >= NULL )
----

query I rowsort
SELECT ALL - + 45 * - - 46 - - - 79 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to ab380c2e1c396f3075349ba5cc63d7b8

query I rowsort
SELECT ALL ( ( col2 ) ) + ( + col1 + - col0 * 20 ) / col2 FROM tab2 WHERE NOT ( - + col0 - 10 - - - col1 * - col2 * + col1 ) = ( NULL )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( 89 ) <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2638
SELECT - + CAST( 99 AS SIGNED ) FROM tab0 AS cor0
----
-99
-99
-99

skipif mysql # not compatible
query I rowsort label-2638
SELECT - + CAST ( 99 AS INTEGER ) FROM tab0 AS cor0
----
-99
-99
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-2639
SELECT DISTINCT MIN( ALL - + 97 ) FROM tab1 cor0
----
-97

skipif mysql # not compatible
query I rowsort label-2639
SELECT DISTINCT MIN ( ALL - + 97 ) FROM tab1 cor0
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-2640
SELECT + + COUNT( * ) + ( 20 ) AS col1 FROM tab1 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-2640
SELECT + + COUNT ( * ) + ( 20 ) AS col1 FROM tab1 AS cor0
----
23

query I rowsort
SELECT 98 + - + 14 FROM tab0 AS cor0
----
84
84
84

query I rowsort
SELECT col0 + - + col1 AS col2 FROM tab1
----
37
44
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2643
SELECT DISTINCT col1 * + col1 + CAST( NULL AS SIGNED ) + + col1 AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2643
SELECT DISTINCT col1 * + col1 + CAST ( NULL AS INTEGER ) + + col1 AS col0 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2644
SELECT + COUNT( * ) * + ( 13 ) FROM tab2
----
39

skipif mysql # not compatible
query I rowsort label-2644
SELECT + COUNT ( * ) * + ( 13 ) FROM tab2
----
39

query I rowsort
SELECT + - col2 * + col1 FROM tab2 WHERE NOT col1 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2646
SELECT DISTINCT * FROM tab2 WHERE NOT NULL NOT IN ( + - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-2646
SELECT DISTINCT * FROM tab2 WHERE NOT NULL NOT IN ( + - CAST ( NULL AS INTEGER ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 42 col1 FROM tab1 cor0
----
42
42
42

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2648
SELECT - col0 AS col1, + ( - 69 ) * + col0 + + col1 + col2 + - col1 + + col1 - - 98 + col2 + + 34 * col1 * + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
-15
NULL
-87
NULL
-97
NULL

skipif mysql # not compatible
query II rowsort label-2648
SELECT - col0 AS col1, + ( - 69 ) * + col0 + + col1 + col2 + - col1 + + col1 - - 98 + col2 + + 34 * col1 * + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
-15
NULL
-87
NULL
-97
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2649
SELECT - COUNT( * ) * + ( + COUNT( * ) ) * - + 51 AS col2 FROM tab1 AS cor0
----
459

skipif mysql # not compatible
query I rowsort label-2649
SELECT - COUNT ( * ) * + ( + COUNT ( * ) ) * - + 51 AS col2 FROM tab1 AS cor0
----
459

query I rowsort
SELECT - ( - 80 ) FROM tab2 AS cor0
----
80
80
80

query I rowsort
SELECT DISTINCT - ( - col0 ) + + + 10 FROM tab0 AS cor0
----
107
25
97

query I rowsort
SELECT + col1 AS col1 FROM tab2 WHERE - - 0 IS NOT NULL
----
51
67
77

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL BETWEEN NULL AND ( - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2654
SELECT 92 + + COUNT( * ) FROM tab2 AS cor0
----
95

skipif mysql # not compatible
query I rowsort label-2654
SELECT 92 + + COUNT ( * ) FROM tab2 AS cor0
----
95

query I rowsort
SELECT DISTINCT - 66 * - col2 AS col0 FROM tab2 AS cor0
----
1518
2640
3828

onlyif mysql # DIV for integer division: 
query I rowsort label-2656
SELECT DISTINCT - - col1 DIV - 42 AS col0 FROM tab1 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-2656
SELECT DISTINCT - - col1 / - 42 AS col0 FROM tab1 AS cor0
----
-1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2657
SELECT + - 11 + COUNT( * ) FROM tab0 AS cor0
----
-8

skipif mysql # not compatible
query I rowsort label-2657
SELECT + - 11 + COUNT ( * ) FROM tab0 AS cor0
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-2658
SELECT - - COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE col1 + - 24 * + 48 + - 13 NOT BETWEEN + + col1 + ( - - col2 ) AND - 86
----
3

skipif mysql # not compatible
query I rowsort label-2658
SELECT - - COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE col1 + - 24 * + 48 + - 13 NOT BETWEEN + + col1 + ( - - col2 ) AND - 86
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-2659
SELECT ALL + + COUNT( * ) * + 39 + 93 * - + COUNT( * ), 64 AS col0 FROM tab1 AS cor0
----
-162
64

skipif mysql # not compatible
query II rowsort label-2659
SELECT ALL + + COUNT ( * ) * + 39 + 93 * - + COUNT ( * ), 64 AS col0 FROM tab1 AS cor0
----
-162
64

onlyif mysql # aggregate syntax: 
query I rowsort label-2660
SELECT COUNT( * ) * COUNT( * ) AS col0 FROM tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-2660
SELECT COUNT ( * ) * COUNT ( * ) AS col0 FROM tab0 AS cor0
----
9

query I rowsort
SELECT DISTINCT + 74 * + 24 + - - col2 AS col0 FROM tab2 AS cor0
----
1799
1816
1834

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 27 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT 29 + - 56 FROM tab0
----
-27

query I rowsort
SELECT ALL 78 + - col0 * + + 68 FROM tab1
----
-3390
-5702
-6110

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - - col2 + - + col2 NOT BETWEEN NULL AND ( - 56 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab1 WHERE - + 66 = NULL
----

query I rowsort
SELECT ALL 63 * col2 FROM tab1
----
3717
4284
6048

query I rowsort
SELECT DISTINCT - col0 * col2 + col1 * - col1 FROM tab0 AS cor0
----
-1311
-7266
-9604

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2669
SELECT DISTINCT + ( - MAX( CAST( NULL AS SIGNED ) ) ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2669
SELECT DISTINCT + ( - MAX ( CAST ( NULL AS INTEGER ) ) ) FROM tab0 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col0 AS col2, 76 + - + 1 col2 FROM tab0 WHERE NOT NULL NOT IN ( - + col1 * + - col1, col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2671
SELECT ALL + COUNT( * ) AS col0 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-2671
SELECT ALL + COUNT ( * ) AS col0 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT 68 < + + col0 + + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2673
SELECT MIN( DISTINCT col1 ) FROM tab2 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-2673
SELECT MIN ( DISTINCT col1 ) FROM tab2 AS cor0
----
51

query I rowsort
SELECT ( - - 80 ) AS col1 FROM tab0 AS cor0
----
80
80
80

query II rowsort
SELECT DISTINCT 35, ( - ( + col1 ) ) + - col2 AS col0 FROM tab2 AS cor0
----
35
-117
35
-125
35
-74

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN NULL AND ( - col2 * 88 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2677
SELECT ALL CAST( + - COUNT( * ) AS SIGNED ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2677
SELECT ALL CAST ( + - COUNT ( * ) AS INTEGER ) FROM tab1 AS cor0
----
-3

query I rowsort
SELECT ALL ( - + col2 ) AS col2 FROM tab0 AS cor0
----
-10
-47
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-2679
SELECT ALL 69 + + - COUNT( DISTINCT + col1 ) col1 FROM tab0
----
66

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2679
SELECT ALL 69 + + - COUNT ( DISTINCT + col1 ) col1 FROM tab0
----
66

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL BETWEEN + 49 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2681
SELECT - MAX( col2 ) * + 58 FROM tab0
----
-5742

skipif mysql # not compatible
query I rowsort label-2681
SELECT - MAX ( col2 ) * + 58 FROM tab0
----
-5742

query I rowsort
SELECT ALL - 37 FROM tab1 WHERE NOT 88 < - 80
----
-37
-37
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-2683
SELECT ALL + MAX( - - col1 ) FROM tab1
----
47

skipif mysql # not compatible
query I rowsort label-2683
SELECT ALL + MAX ( - - col1 ) FROM tab1
----
47

query II rowsort
SELECT col0 + + col1 AS col0, 93 * col1 FROM tab2
----
141
7161
142
6231
97
4743

query I rowsort
SELECT 82 + - 24 AS col2 FROM tab2
----
58
58
58

query I rowsort
SELECT ( + + 7 ) FROM tab2 WHERE NULL IS NULL OR NULL IS NULL
----
7
7
7

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN NULL AND + col2 * + 93 * 38 + 42
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2688
SELECT DISTINCT + - SUM( + col2 ) * 49 * - - 25 FROM tab1 AS cor0
----
-273175

skipif mysql # not compatible
query I rowsort label-2688
SELECT DISTINCT + - SUM ( + col2 ) * 49 * - - 25 FROM tab1 AS cor0
----
-273175

onlyif mysql # DIV for integer division: 
query I rowsort label-2689
SELECT DISTINCT + col1 + + + 70 DIV - col2 + col0 FROM tab2 cor0
----
140
141
94

skipif mysql # not compatible
query I rowsort label-2689
SELECT DISTINCT + col1 + + + 70 / - col2 + col0 FROM tab2 cor0
----
140
141
94

onlyif mysql # aggregate syntax: 
query I rowsort label-2690
SELECT ALL + COUNT( * ) FROM tab0 WHERE col0 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-2690
SELECT ALL + COUNT ( * ) FROM tab0 WHERE col0 IS NOT NULL
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2691
SELECT + col0 AS col1 FROM tab0 WHERE CAST( NULL AS SIGNED ) + - + 40 <= - + 61
----

skipif mysql # not compatible
query I rowsort label-2691
SELECT + col0 AS col1 FROM tab0 WHERE CAST ( NULL AS INTEGER ) + - + 40 <= - + 61
----

query I rowsort
SELECT + - col2 - - col2 * col1 FROM tab2 cor0
----
1150
3040
3828

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( 18 * - col2 ) NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT 58 AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
58

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( + col1 ) / col2 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + ( - - col1 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - col2 * + 21 * 6 + + 83 FROM tab1 AS cor0
----
-12013
-7351
-8485

onlyif mysql # aggregate syntax: 
query I rowsort label-2698
SELECT DISTINCT MIN( DISTINCT - + 66 ) FROM tab0 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-2698
SELECT DISTINCT MIN ( DISTINCT - + 66 ) FROM tab0 AS cor0
----
-66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 72 col2 FROM tab2
----
72
72
72

query I rowsort
SELECT DISTINCT 87 * + col2 AS col0 FROM tab1
----
5133
5916
8352

query I rowsort
SELECT DISTINCT - col1 * - col2 * - 78 * - 40 * 54 AS col0 FROM tab0
----
16679520
35380800
641403360

query II rowsort
SELECT 7 AS col0, + col2 FROM tab2
----
7
23
7
40
7
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2703
SELECT + col1 * - CAST( + col0 AS SIGNED ) * + col1 * col1 FROM tab0
----
-7971615
-805707
-97

skipif mysql # not compatible
query I rowsort label-2703
SELECT + col1 * - CAST ( + col0 AS INTEGER ) * + col1 * col1 FROM tab0
----
-7971615
-805707
-97

query I rowsort
SELECT DISTINCT - col2 * 19 AS col0 FROM tab0
----
-1881
-190
-893

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2705
SELECT MIN( DISTINCT - - col2 ) DIV + 99 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-2705
SELECT MIN ( DISTINCT - - col2 ) / + 99 FROM tab0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2706
SELECT ALL - 6 DIV - 90 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2706
SELECT ALL - 6 / - 90 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2707
SELECT ALL 60 * + COUNT( * ), 96 AS col0 FROM tab2
----
180
96

skipif mysql # not compatible
query II rowsort label-2707
SELECT ALL 60 * + COUNT ( * ), 96 AS col0 FROM tab2
----
180
96

onlyif mysql # DIV for integer division: 
query I rowsort label-2708
SELECT DISTINCT + - 32 DIV col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2708
SELECT DISTINCT + - 32 / col0 FROM tab1 AS cor0
----
0

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 70 + + 21 + + col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - col2 * 32 FROM tab2 AS cor0
----
-1280
-1856
-736

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2711
SELECT ALL - CAST( - - 4 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-4
-4
-4

skipif mysql # not compatible
query I rowsort label-2711
SELECT ALL - CAST ( - - 4 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-4
-4
-4

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - + col0 BETWEEN NULL AND col1
----

onlyif mysql # DIV for integer division: 
query II rowsort label-2713
SELECT ALL col2 * + 26 * - 80 AS col1, col2 DIV + 38 AS col2 FROM tab2
----
-120640
1
-47840
0
-83200
1

skipif mysql # not compatible
query II rowsort label-2713
SELECT ALL col2 * + 26 * - 80 AS col1, col2 / + 38 AS col2 FROM tab2
----
-120640
1
-47840
0
-83200
1

query IIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE 21 IN ( - - 13 )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT 49 > NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2716
SELECT DISTINCT + 70 DIV + - CAST( - + 20 AS SIGNED ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2716
SELECT DISTINCT + 70 / + - CAST ( - + 20 AS INTEGER ) FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2717
SELECT COUNT( * ) DIV - COUNT( * ) AS col2 FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-2717
SELECT COUNT ( * ) / - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2718
SELECT - COUNT( * ) + + + 37 DIV - SUM( col2 ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2718
SELECT - COUNT ( * ) + + + 37 / - SUM ( col2 ) FROM tab2 AS cor0
----
-3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col2 * - ( 46 ) * + col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2720
SELECT - MAX( + ( + col0 ) ) + - + ( + 41 ) col1 FROM tab2 AS cor0
----
-116

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2720
SELECT - MAX ( + ( + col0 ) ) + - + ( + 41 ) col1 FROM tab2 AS cor0
----
-116

query I rowsort
SELECT DISTINCT - - ( + + col1 ) AS col2 FROM tab1 AS cor0
----
14
47
5

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col0 - col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE col1 * - col0 <> - 33 / - + 2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col2 + col0 * + col0 * + col0 AS col1 FROM tab2 AS cor0
----
262184
421933
97359

onlyif mysql # aggregate syntax: 
query I rowsort label-2725
SELECT COUNT( * ) + ( - COUNT( * ) ) + - 90 FROM tab2 AS cor0
----
-90

skipif mysql # not compatible
query I rowsort label-2725
SELECT COUNT ( * ) + ( - COUNT ( * ) ) + - 90 FROM tab2 AS cor0
----
-90

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2726
SELECT DISTINCT 91 DIV SUM( DISTINCT + + 23 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-2726
SELECT DISTINCT 91 / SUM ( DISTINCT + + 23 ) FROM tab0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2727
SELECT - col2 - CAST( + col2 AS SIGNED ) * - col0 AS col2 FROM tab1 AS cor0 WHERE col2 IS NULL
----

skipif mysql # not compatible
query I rowsort label-2727
SELECT - col2 - CAST ( + col2 AS INTEGER ) * - col0 AS col2 FROM tab1 AS cor0 WHERE col2 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 col1, col1 FROM tab1 AS cor0
----
-59
5
-68
47
-96
14

onlyif mysql # aggregate syntax: 
query I rowsort label-2729
SELECT ALL + 84 + + SUM( DISTINCT - col0 ) FROM tab0
----
-115

skipif mysql # not compatible
query I rowsort label-2729
SELECT ALL + 84 + + SUM ( DISTINCT - col0 ) FROM tab0
----
-115

query I rowsort
SELECT - 95 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 1c7934db0632c123332c43f17b661d6c

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col2 - - - col2 = - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - + ( - + col1 ) AS col0 FROM tab1 AS cor0
----
14
47
5

query I rowsort
SELECT DISTINCT + 69 * - 59 AS col1 FROM tab0 AS cor0 WHERE NOT NULL <= ( col2 )
----

query I rowsort
SELECT + - col2 * + - col0 + - col0 AS col2 FROM tab0 AS cor0
----
690
783
9506

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 35 col0 FROM tab2 AS cor0
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-2736
SELECT ALL ( - MAX( DISTINCT col1 ) ) col0 FROM tab1 AS cor0
----
-47

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2736
SELECT ALL ( - MAX ( DISTINCT col1 ) ) col0 FROM tab1 AS cor0
----
-47

query I rowsort
SELECT col2 - 4 - + - col2 + + col1 * 77 AS col1 FROM tab0 AS cor0 WHERE NOT ( NOT NULL NOT IN ( - col1 * + col0 + + + 76 + + 54 + - + col0 + col1 + - 92 * + col1 * + 23 + col0 * + - 29 + - 59 ) )
----

query I rowsort
SELECT DISTINCT 91 AS col0 FROM tab0 AS cor0 WHERE NOT col1 * - col0 IS NULL
----
91

query III rowsort
SELECT * FROM tab2 WHERE NOT + ( - - col2 ) = - + col1 + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-2740
SELECT 40 AS col0, + SUM( ( + col1 ) ) FROM tab0
----
40
103

skipif mysql # not compatible
query II rowsort label-2740
SELECT 40 AS col0, + SUM ( ( + col1 ) ) FROM tab0
----
40
103

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2741
SELECT DISTINCT 17 FROM tab2 WHERE NOT NULL IN ( - + 64 * - + col2, 60 + + - CAST( NULL AS DECIMAL ) )
----

skipif mysql # not compatible
query I rowsort label-2741
SELECT DISTINCT 17 FROM tab2 WHERE NOT NULL IN ( - + 64 * - + col2, 60 + + - CAST ( NULL AS REAL ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2742
SELECT DISTINCT - 78 * - - COUNT( * ) AS col2 FROM tab1
----
-234

skipif mysql # not compatible
query I rowsort label-2742
SELECT DISTINCT - 78 * - - COUNT ( * ) AS col2 FROM tab1
----
-234

onlyif mysql # aggregate syntax: 
query I rowsort label-2743
SELECT ALL + 45 * SUM( col1 ) FROM tab1
----
2970

skipif mysql # not compatible
query I rowsort label-2743
SELECT ALL + 45 * SUM ( col1 ) FROM tab1
----
2970

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2744
SELECT + - COUNT( * ) * + CAST( NULL AS DECIMAL ) - + COUNT( * ) FROM tab0 WHERE NOT - - ( + 83 ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2744
SELECT + - COUNT ( * ) * + CAST ( NULL AS REAL ) - + COUNT ( * ) FROM tab0 WHERE NOT - - ( + 83 ) IS NULL
----
NULL

query I rowsort
SELECT + ( - + col1 ) AS col0 FROM tab1
----
-14
-47
-5

query I rowsort
SELECT - col0 AS col2 FROM tab2 AS cor0 WHERE NOT col1 IS NULL
----
-46
-64
-75

query II rowsort
SELECT + + ( ( - 29 ) ), col2 FROM tab1 AS cor0
----
-29
59
-29
68
-29
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2748
SELECT - + SUM( DISTINCT - - 40 ) * + CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2748
SELECT - + SUM ( DISTINCT - - 40 ) * + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2749
SELECT ALL + COUNT( * ) * COUNT( * ) AS col0 FROM tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-2749
SELECT ALL + COUNT ( * ) * COUNT ( * ) AS col0 FROM tab1 AS cor0
----
9

query III rowsort
SELECT * FROM tab0 WHERE NOT ( - 48 IS NOT NULL )
----

query I rowsort
SELECT 95 * - - col0 FROM tab1
----
4845
8075
8645

query I rowsort
SELECT ( + 54 ) * 20 AS col0 FROM tab1
----
1080
1080
1080

onlyif mysql # DIV for integer division: 
query I rowsort label-2753
SELECT - 70 DIV - 29 + - 96 AS col2 FROM tab0 cor0
----
-94
-94
-94

skipif mysql # not compatible
query I rowsort label-2753
SELECT - 70 / - 29 + - 96 AS col2 FROM tab0 cor0
----
-94
-94
-94

query II rowsort
SELECT - - col2, + col0 FROM tab2 AS cor0
----
23
46
40
64
58
75

query I rowsort
SELECT ALL + + col2 + - - ( + - col2 ) AS col2 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT + + col0 * - + 28 FROM tab0 AS cor0
----
-2436
-2716
-420

query III rowsort
SELECT * FROM tab0 WHERE - col0 < 72
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT 92 + + ( - col2 ) AS col2, + 14 AS col0 FROM tab2
----
34
14
52
14
69
14

query III rowsort
SELECT * FROM tab2 WHERE - col2 + - col0 >= col0 + - + col0 * + - 51
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2760
SELECT DISTINCT MAX( ALL + 38 ) + - 55 AS col1 FROM tab2
----
-17

skipif mysql # not compatible
query I rowsort label-2760
SELECT DISTINCT MAX ( ALL + 38 ) + - 55 AS col1 FROM tab2
----
-17

onlyif mysql # aggregate syntax: 
query II rowsort label-2761
SELECT DISTINCT 88 + + COUNT( * ) AS col2, 34 AS col1 FROM tab1
----
91
34

skipif mysql # not compatible
query II rowsort label-2761
SELECT DISTINCT 88 + + COUNT ( * ) AS col2, 34 AS col1 FROM tab1
----
91
34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2762
SELECT 41 + - - CAST( NULL AS SIGNED ) + col1 + + 90 * - col0 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2762
SELECT 41 + - - CAST ( NULL AS INTEGER ) + col1 + + 90 * - col0 AS col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col2 - - 86 AS col2 FROM tab0
----
133
185
96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2764
SELECT ALL - COUNT( * ) DIV - COUNT( * ) AS col2 FROM tab2 WHERE NULL IS NULL
----
1

skipif mysql # not compatible
query I rowsort label-2764
SELECT ALL - COUNT ( * ) / - COUNT ( * ) AS col2 FROM tab2 WHERE NULL IS NULL
----
1

query I rowsort
SELECT ALL + - col2 + col2 AS col2 FROM tab2 cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2766
SELECT + SUM( + 44 ) FROM tab0 AS cor0
----
132

skipif mysql # not compatible
query I rowsort label-2766
SELECT + SUM ( + 44 ) FROM tab0 AS cor0
----
132

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 94 NOT IN ( - 36 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2768
SELECT 86 - - ( - COUNT( * ) ) FROM tab1
----
83

skipif mysql # not compatible
query I rowsort label-2768
SELECT 86 - - ( - COUNT ( * ) ) FROM tab1
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-2769
SELECT DISTINCT - MIN( DISTINCT col0 ) + - COUNT( * ) AS col1 FROM tab2
----
-49

skipif mysql # not compatible
query I rowsort label-2769
SELECT DISTINCT - MIN ( DISTINCT col0 ) + - COUNT ( * ) AS col1 FROM tab2
----
-49

query I rowsort
SELECT ALL - col0 AS col1 FROM tab1 AS cor0 WHERE NOT NULL > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2771
SELECT DISTINCT + ( - + col2 ) AS col1 FROM tab0 AS cor0 WHERE NOT CAST( - 16 AS SIGNED ) = - - ( col2 )
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-2771
SELECT DISTINCT + ( - + col2 ) AS col1 FROM tab0 AS cor0 WHERE NOT CAST ( - 16 AS INTEGER ) = - - ( col2 )
----
-10
-47
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2772
SELECT - 0 * + 85 FROM tab0 AS cor0 WHERE NOT NULL < - CAST( + 19 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-2772
SELECT - 0 * + 85 FROM tab0 AS cor0 WHERE NOT NULL < - CAST ( + 19 AS INTEGER )
----

query I rowsort
SELECT DISTINCT - + 90 * - col2 FROM tab0 AS cor0
----
4230
8910
900

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2774
SELECT col1 * col2 * + col2 + + CAST( NULL AS SIGNED ) * col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2774
SELECT col1 * col2 * + col2 + + CAST ( NULL AS INTEGER ) * col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2775
SELECT ALL - SUM( DISTINCT + CAST( NULL AS DECIMAL ) ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2775
SELECT ALL - SUM ( DISTINCT + CAST ( NULL AS REAL ) ) AS col2 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2776
SELECT + ( + COUNT( * ) ) DIV 51 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-2776
SELECT + ( + COUNT ( * ) ) / 51 FROM tab1
----
0

query I rowsort
SELECT - ( - 63 ) FROM tab2
----
63
63
63

onlyif mysql # aggregate syntax: 
query I rowsort label-2778
SELECT DISTINCT COUNT( * ) * - + COUNT( * ) AS col0 FROM tab0
----
-9

skipif mysql # not compatible
query I rowsort label-2778
SELECT DISTINCT COUNT ( * ) * - + COUNT ( * ) AS col0 FROM tab0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-2779
SELECT - 94 * + + COUNT( + col1 ) FROM tab0
----
-282

skipif mysql # not compatible
query I rowsort label-2779
SELECT - 94 * + + COUNT ( + col1 ) FROM tab0
----
-282

query I rowsort
SELECT ALL - ( col0 ) + + 28 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-23
-57
-63

query I rowsort
SELECT - 61 * - - 97 FROM tab0
----
-5917
-5917
-5917

onlyif mysql # aggregate syntax: 
query I rowsort label-2782
SELECT ALL SUM( + 85 ) FROM tab1 AS cor0
----
255

skipif mysql # not compatible
query I rowsort label-2782
SELECT ALL SUM ( + 85 ) FROM tab1 AS cor0
----
255

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT col1 >= 56 + + + col1 + + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - - col2 * - - col1 FROM tab1 AS cor0
----
1344
295
3196

query I rowsort
SELECT + col1 * + - col1 AS col0 FROM tab2
----
-2601
-4489
-5929

onlyif mysql # aggregate syntax: 
query I rowsort label-2786
SELECT COUNT( * ) FROM tab0 WHERE NOT - 71 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-2786
SELECT COUNT ( * ) FROM tab0 WHERE NOT - 71 IS NULL
----
3

query III rowsort
SELECT * FROM tab0 WHERE ( - - 58 / 57 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - + ( + ( - 73 ) ) * - + col2 AS col0 FROM tab1 AS cor0
----
-4307
-4964
-7008

query I rowsort
SELECT + 38 + - + 22 FROM tab1 AS cor0
----
16
16
16

query I rowsort
SELECT + - col1 * - ( + col2 ) + 85 AS col2 FROM tab1 AS cor0
----
1429
3281
380

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2791
SELECT MIN( ALL + + col2 ) DIV + 61 + - 99 AS col1 FROM tab2 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-2791
SELECT MIN ( ALL + + col2 ) / + 61 + - 99 AS col1 FROM tab2 AS cor0
----
-99

query I rowsort
SELECT - col1 + - + col1 AS col0 FROM tab2 AS cor0
----
-102
-134
-154

query I rowsort
SELECT DISTINCT + col2 + 77 AS col1 FROM tab2 AS cor0
----
100
117
135

query I rowsort
SELECT + col2 + + 61 AS col1 FROM tab0 AS cor0
----
108
160
71

query I rowsort
SELECT + col1 FROM tab2 WHERE + col1 <= NULL
----

query I rowsort
SELECT DISTINCT col1 + + - col1 * col1 FROM tab0
----
-420
-6480
0

query III rowsort
SELECT * FROM tab2 WHERE NULL NOT BETWEEN + col0 + - 21 AND + + 27
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2798
SELECT ALL COUNT( * ) + + COUNT( ALL - - col1 ) FROM tab2
----
6

skipif mysql # not compatible
query I rowsort label-2798
SELECT ALL COUNT ( * ) + + COUNT ( ALL - - col1 ) FROM tab2
----
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 83 + - ( - 72 ) + + col2 col0 FROM tab1
----
48
57
85

query II rowsort
SELECT DISTINCT col0 AS col0, + 44 FROM tab0
----
15
44
87
44
97
44

query I rowsort
SELECT ALL col1 - + col0 * - col1 * ( + 13 ) AS col2 FROM tab0
----
1262
15876
23772

query III rowsort
SELECT * FROM tab2 cor0 WHERE col0 / - + col2 >= + + col2 * col2
----

query I rowsort
SELECT col1 + - col0 + - 91 + - col1 AS col0 FROM tab1 AS cor0
----
-142
-176
-182

query I rowsort
SELECT ALL 4 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 6fec965b60b9885c4af73e85422cfd9b

query II rowsort
SELECT DISTINCT - + ( - col2 ), - col0 + - col0 AS col2 FROM tab0 AS cor0
----
10
-174
47
-30
99
-194

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2806
SELECT + CAST( 58 AS SIGNED ) AS col2 FROM tab0 AS cor0 WHERE NOT - col0 = NULL
----

skipif mysql # not compatible
query I rowsort label-2806
SELECT + CAST ( 58 AS INTEGER ) AS col2 FROM tab0 AS cor0 WHERE NOT - col0 = NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( + - col0 ) * + 63 + + 41 * - 51 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL BETWEEN - col1 AND NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + col0 * - col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2810
SELECT - - COUNT( * ) AS col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-2810
SELECT - - COUNT ( * ) AS col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2811
SELECT ALL + MAX( - col0 ) FROM tab1
----
-51

skipif mysql # not compatible
query I rowsort label-2811
SELECT ALL + MAX ( - col0 ) FROM tab1
----
-51

query II rowsort
SELECT 82 AS col1, col1 + - - 97 AS col0 FROM tab0
----
82
118
82
178
82
98

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL NOT BETWEEN + col2 AND - - 4
----

query I rowsort
SELECT ALL 57 AS col0 FROM tab0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE + 42 / + - col1 IS NULL
----

query I rowsort
SELECT - ( 92 ) AS col2 FROM tab2 AS cor0
----
-92
-92
-92

query I rowsort
SELECT ALL - col1 AS col2 FROM tab1 AS cor0 WHERE ( ( NULL IS NOT NULL ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2818
SELECT ALL CAST( - 84 AS SIGNED ) FROM tab1 cor0
----
-84
-84
-84

skipif mysql # not compatible
query I rowsort label-2818
SELECT ALL CAST ( - 84 AS INTEGER ) FROM tab1 cor0
----
-84
-84
-84

query I rowsort
SELECT DISTINCT - col1 + col0 + col2 FROM tab2 AS cor0
----
18
27
66

query I rowsort
SELECT DISTINCT - 55 + - col1 * - - 74 FROM tab1
----
-1091
-3533
-425

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2821
SELECT ALL CAST( + col2 AS SIGNED ) AS col1 FROM tab2
----
23
40
58

skipif mysql # not compatible
query I rowsort label-2821
SELECT ALL CAST ( + col2 AS INTEGER ) AS col1 FROM tab2
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-2822
SELECT ALL + 28 + SUM( DISTINCT - col2 ) * - COUNT( * ) FROM tab2
----
391

skipif mysql # not compatible
query I rowsort label-2822
SELECT ALL + 28 + SUM ( DISTINCT - col2 ) * - COUNT ( * ) FROM tab2
----
391

query I rowsort
SELECT ALL - ( + ( + 80 ) ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 4dde3bd5652d30396b9cadd0e2cfb680

query I rowsort
SELECT DISTINCT 35 * + + col0 FROM tab2 AS cor0
----
1610
2240
2625

query II rowsort
SELECT ALL - - col2 - - col1 AS col1, col0 AS col0 FROM tab0 AS cor0 WHERE NOT col2 * + col1 = col1 * - - 25 + + col2 + col1
----
100
97
128
15
31
87

query II rowsort
SELECT ALL - + 66 * + - col2, + col2 AS col2 FROM tab2 AS cor0
----
1518
23
2640
40
3828
58

query I rowsort
SELECT col1 AS col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
51
67
77

query I rowsort
SELECT ALL - - 31 + - col1 FROM tab0 cor0
----
-50
10
30

onlyif mysql # aggregate syntax: 
query I rowsort label-2829
SELECT + - 46 + + COUNT( - col2 ) AS col2 FROM tab1 AS cor0
----
-43

skipif mysql # not compatible
query I rowsort label-2829
SELECT + - 46 + + COUNT ( - col2 ) AS col2 FROM tab1 AS cor0
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-2830
SELECT ALL + 66 * - MAX( ALL + col2 ) col1 FROM tab0 AS cor0
----
-6534

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2830
SELECT ALL + 66 * - MAX ( ALL + col2 ) col1 FROM tab0 AS cor0
----
-6534

query I rowsort
SELECT ALL col1 + - ( 34 ) FROM tab2 AS cor0
----
17
33
43

onlyif mysql # DIV for integer division: 
query II rowsort label-2832
SELECT DISTINCT + col2 - + + col0 + col1 * col0 DIV 36 AS col1, col1 col2 FROM tab0
----
-27
21
4
1
65
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2832
SELECT DISTINCT + col2 - + + col0 + col1 * col0 / 36 AS col1, col1 col2 FROM tab0
----
-27
21
4
1
65
81

query I rowsort
SELECT ALL + col0 * + col2 + + + col2 FROM tab1
----
4992
5074
6256

query I rowsort
SELECT + col0 + 73 FROM tab0
----
160
170
88

onlyif mysql # aggregate syntax: 
query I rowsort label-2835
SELECT DISTINCT - COUNT( * ) * - COUNT( * ) FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-2835
SELECT DISTINCT - COUNT ( * ) * - COUNT ( * ) FROM tab2
----
9

query I rowsort
SELECT ALL - col0 - - 62 FROM tab2
----
-13
-2
16

query III rowsort
SELECT * FROM tab0 WHERE ( NOT + col2 IS NOT NULL )
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE NULL = + col1
----

query I rowsort
SELECT - ( - + 23 ) AS col1 FROM tab0
----
23
23
23

query II rowsort
SELECT col0 AS col1, - col2 FROM tab2
----
46
-23
64
-40
75
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-2841
SELECT - 82 * + - SUM( ALL + 18 ) AS col0 FROM tab0
----
4428

skipif mysql # not compatible
query I rowsort label-2841
SELECT - 82 * + - SUM ( ALL + 18 ) AS col0 FROM tab0
----
4428

query II rowsort
SELECT ALL + col0 AS col1, col0 AS col2 FROM tab2
----
46
46
64
64
75
75

query II rowsort
SELECT 76, col1 FROM tab1
----
76
14
76
47
76
5

onlyif mysql # DIV for integer division: 
query I rowsort label-2844
SELECT ALL + col2 DIV - - col2 - - col2 AS col1 FROM tab0 AS cor0
----
100
11
48

skipif mysql # not compatible
query I rowsort label-2844
SELECT ALL + col2 / - - col2 - - col2 AS col1 FROM tab0 AS cor0
----
100
11
48

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2845
SELECT ALL COUNT( * ) DIV 11 AS col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2845
SELECT ALL COUNT ( * ) / 11 AS col0 FROM tab0 AS cor0
----
0

query III rowsort
SELECT - col0 AS col2, - 70 AS col0, col1 * + 36 + - 76 FROM tab1 AS cor0
----
9 values hashing to c361a32fd6cba128f8808f006dd844dc

onlyif mysql # aggregate syntax: 
query I rowsort label-2847
SELECT DISTINCT ( + COUNT( * ) ) AS col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2847
SELECT DISTINCT ( + COUNT ( * ) ) AS col1 FROM tab2 AS cor0
----
3

query I rowsort
SELECT - ( + 11 ) AS col1 FROM tab0 AS cor0 WHERE NOT ( NOT - - col0 IS NOT NULL )
----
-11
-11
-11

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2849
SELECT ALL ( - CAST( NULL AS DECIMAL ) ) * - - col1 AS col2 FROM tab0 WHERE NOT + col2 / CAST( NULL AS SIGNED ) / + 39 >= + - col0
----

skipif mysql # not compatible
query I rowsort label-2849
SELECT ALL ( - CAST ( NULL AS REAL ) ) * - - col1 AS col2 FROM tab0 WHERE NOT + col2 / CAST ( NULL AS INTEGER ) / + 39 >= + - col0
----

query I rowsort
SELECT ALL + - col1 FROM tab0 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT ALL - ( col1 ), - col1 FROM tab2
----
-51
-51
-67
-67
-77
-77

query I rowsort
SELECT ALL - ( + ( col1 ) ) FROM tab0
----
-1
-21
-81

query I rowsort
SELECT - - ( - - col0 ) AS col1 FROM tab0 WHERE NOT NULL NOT BETWEEN + - 94 / + col0 * ( col1 ) AND + col2
----

query I rowsort
SELECT ALL + 64 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2855
SELECT COUNT( * ) FROM tab0 AS cor0 WHERE + col0 * col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2855
SELECT COUNT ( * ) FROM tab0 AS cor0 WHERE + col0 * col1 IS NULL
----
0

query I rowsort
SELECT 66 AS col2 FROM tab2 cor0
----
66
66
66

query I rowsort
SELECT ALL + + ( - 90 ) + + 44 AS col0 FROM tab0 AS cor0
----
-46
-46
-46

query I rowsort
SELECT ALL col0 * - col0 + col0 AS col0 FROM tab2
----
-2070
-4032
-5550

query I rowsort
SELECT DISTINCT + 12 + - col2 + + + col0 + col1 FROM tab2
----
113
86
96

query I rowsort
SELECT ALL + + col1 FROM tab1 AS cor0 WHERE NOT col2 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2861
SELECT - + COUNT( * ) FROM tab1 AS cor0 WHERE + col2 NOT BETWEEN - col2 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-2861
SELECT - + COUNT ( * ) FROM tab1 AS cor0 WHERE + col2 NOT BETWEEN - col2 AND NULL
----
0

query I rowsort
SELECT DISTINCT + - col1 * - - col1 + - col0 AS col2 FROM tab0 AS cor0
----
-528
-6576
-98

query I rowsort
SELECT ALL - col1 + - + 62 AS col2 FROM tab2 AS cor0
----
-113
-129
-139

onlyif mysql # aggregate syntax: 
query I rowsort label-2864
SELECT + + ( + - COUNT( * ) ) AS col1 FROM tab2 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2864
SELECT + + ( + - COUNT ( * ) ) AS col1 FROM tab2 cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2865
SELECT DISTINCT + - SUM( - - col1 ) + - 74 col0 FROM tab0 AS cor0
----
-177

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2865
SELECT DISTINCT + - SUM ( - - col1 ) + - 74 col0 FROM tab0 AS cor0
----
-177

query II rowsort
SELECT ALL + + col1 AS col1, col0 + + + 42 * - + col0 AS col0 FROM tab0 WHERE NOT col0 - col0 * col0 + - col2 IS NULL
----
1
-3977
21
-3567
81
-615

onlyif mysql # DIV for integer division: 
query I rowsort label-2867
SELECT DISTINCT 92 - + col2 + + 17 DIV + + col0 col2 FROM tab2
----
34
52
69

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2867
SELECT DISTINCT 92 - + col2 + + 17 / + + col0 col2 FROM tab2
----
34
52
69

query I rowsort
SELECT - - col0 * + ( col2 ) + + ( + col2 ) AS col1 FROM tab0 WHERE NULL <> - 85
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2869
SELECT DISTINCT - MIN( col1 ) - + 68 * 42 AS col2, 77 col1 FROM tab0
----
-2857
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2869
SELECT DISTINCT - MIN ( col1 ) - + 68 * 42 AS col2, 77 col1 FROM tab0
----
-2857
77

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2870
SELECT ALL col2, col1 FROM tab2 cor0 WHERE 25 / CAST( NULL AS SIGNED ) / col2 + col2 = ( + + col0 )
----

skipif mysql # not compatible
query II rowsort label-2870
SELECT ALL col2, col1 FROM tab2 cor0 WHERE 25 / CAST ( NULL AS INTEGER ) / col2 + col2 = ( + + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2871
SELECT + MAX( ALL + 84 ) FROM tab2 AS cor0
----
84

skipif mysql # not compatible
query I rowsort label-2871
SELECT + MAX ( ALL + 84 ) FROM tab2 AS cor0
----
84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2872
SELECT - CAST( + MIN( ALL - col2 ) AS SIGNED ) FROM tab1 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-2872
SELECT - CAST ( + MIN ( ALL - col2 ) AS INTEGER ) FROM tab1 AS cor0
----
96

query I rowsort
SELECT DISTINCT - - col2 AS col1 FROM tab1 AS cor0 WHERE col0 + - + col0 > - col2
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-2874
SELECT - COUNT( * ) * 76 AS col0 FROM tab1
----
-228

skipif mysql # not compatible
query I rowsort label-2874
SELECT - COUNT ( * ) * 76 AS col0 FROM tab1
----
-228

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 75 col1 FROM tab1 WHERE NOT + ( 7 ) IS NOT NULL
----

query II rowsort
SELECT ( + ( col1 ) ), 49 AS col0 FROM tab2
----
51
49
67
49
77
49

onlyif mysql # aggregate syntax: 
query I rowsort label-2877
SELECT ALL + SUM( col0 ) AS col0 FROM tab2 AS cor0
----
185

skipif mysql # not compatible
query I rowsort label-2877
SELECT ALL + SUM ( col0 ) AS col0 FROM tab2 AS cor0
----
185

onlyif mysql # DIV for integer division: 
query I rowsort label-2878
SELECT DISTINCT col0 DIV - - col1 AS col2 FROM tab0 AS cor0
----
0
4
97

skipif mysql # not compatible
query I rowsort label-2878
SELECT DISTINCT col0 / - - col1 AS col2 FROM tab0 AS cor0
----
0
4
97

query II rowsort
SELECT col1, + col2 FROM tab1 AS cor0 WHERE NOT - col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2880
SELECT COUNT( - + 40 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2880
SELECT COUNT ( - + 40 ) FROM tab0 AS cor0
----
3

query I rowsort
SELECT ALL 36 * + col0 * + ( - col2 ) FROM tab1
----
-176256
-180540
-222768

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2882
SELECT DISTINCT COUNT( DISTINCT col1 ) * - CAST( - 10 AS SIGNED ) AS col1 FROM tab1
----
30

skipif mysql # not compatible
query I rowsort label-2882
SELECT DISTINCT COUNT ( DISTINCT col1 ) * - CAST ( - 10 AS INTEGER ) AS col1 FROM tab1
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-2883
SELECT DISTINCT + MIN( DISTINCT - - col1 ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-2883
SELECT DISTINCT + MIN ( DISTINCT - - col1 ) FROM tab0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2884
SELECT + COUNT( * ) - + MAX( - 21 ) + + COUNT( * ) col2 FROM tab2, tab1 AS cor0
----
39

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2884
SELECT + COUNT ( * ) - + MAX ( - 21 ) + + COUNT ( * ) col2 FROM tab2, tab1 AS cor0
----
39

query I rowsort
SELECT col0 + + - col1 AS col0 FROM tab2
----
-13
-5
8

query I rowsort
SELECT - 21 + col1 AS col0 FROM tab0 cor0
----
-20
0
60

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 34 + - col1 col0 FROM tab2 cor0
----
-17
-33
-43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2888
SELECT DISTINCT 14 AS col0 FROM tab2 AS cor0 WHERE + col0 - - - col0 + - CAST( NULL AS SIGNED ) * + col1 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-2888
SELECT DISTINCT 14 AS col0 FROM tab2 AS cor0 WHERE + col0 - - - col0 + - CAST ( NULL AS INTEGER ) * + col1 IS NOT NULL
----

query II rowsort
SELECT ALL col2 * + + 71 + - ( + 30 ) - + col2 + col0, col0 AS col2 FROM tab0 cor0
----
3275
15
6997
97
757
87

query II rowsort
SELECT DISTINCT + + col2 + 11 AS col2, col1 FROM tab1 AS cor0
----
107
14
70
5
79
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2891
SELECT + - CAST( 78 AS SIGNED ) AS col2 FROM tab2 WHERE NULL <> NULL
----

skipif mysql # not compatible
query I rowsort label-2891
SELECT + - CAST ( 78 AS INTEGER ) AS col2 FROM tab2 WHERE NULL <> NULL
----

query I rowsort
SELECT - - 40 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to b1e8ffeef334b4a2b01b2f91e649c2d3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 72 col2 FROM tab2 AS cor0
----
72

query I rowsort
SELECT ALL - - ( - + col2 ) FROM tab2 AS cor0
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-2895
SELECT DISTINCT - 67 + - + 31 * + MIN( 14 ) FROM tab0
----
-501

skipif mysql # not compatible
query I rowsort label-2895
SELECT DISTINCT - 67 + - + 31 * + MIN ( 14 ) FROM tab0
----
-501

onlyif mysql # aggregate syntax: 
query II rowsort label-2896
SELECT 15 + + SUM( - + col1 ) AS col2, - COUNT( * ) FROM tab2
----
-180
-3

skipif mysql # not compatible
query II rowsort label-2896
SELECT 15 + + SUM ( - + col1 ) AS col2, - COUNT ( * ) FROM tab2
----
-180
-3

query I rowsort
SELECT - col0 FROM tab1 WHERE 23 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2898
SELECT ALL 54 - + COUNT( + - 45 ) + + 37 FROM tab0
----
88

skipif mysql # not compatible
query I rowsort label-2898
SELECT ALL 54 - + COUNT ( + - 45 ) + + 37 FROM tab0
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-2899
SELECT MAX( + col0 ) + - COUNT( + col1 ) FROM tab2
----
72

skipif mysql # not compatible
query I rowsort label-2899
SELECT MAX ( + col0 ) + - COUNT ( + col1 ) FROM tab2
----
72

query I rowsort
SELECT ALL 24 * + col1 + - col2 FROM tab0
----
-75
1897
494

query II rowsort
SELECT 34, 88 AS col1 FROM tab0
----
34
88
34
88
34
88

onlyif mysql # aggregate syntax: 
query I rowsort label-2902
SELECT SUM( + 80 ) AS col1 FROM tab1
----
240

skipif mysql # not compatible
query I rowsort label-2902
SELECT SUM ( + 80 ) AS col1 FROM tab1
----
240

query I rowsort
SELECT ALL 57 * col0 AS col1 FROM tab1
----
2907
4845
5187

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL > + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2905
SELECT - SUM( DISTINCT - 21 ) AS col1 FROM tab2
----
21

skipif mysql # not compatible
query I rowsort label-2905
SELECT - SUM ( DISTINCT - 21 ) AS col1 FROM tab2
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-2906
SELECT ALL + SUM( ALL col2 ) AS col0 FROM tab1 AS cor0
----
223

skipif mysql # not compatible
query I rowsort label-2906
SELECT ALL + SUM ( ALL col2 ) AS col0 FROM tab1 AS cor0
----
223

onlyif mysql # aggregate syntax: 
query I rowsort label-2907
SELECT + - 82 * + SUM( DISTINCT - - ( - - 74 ) ) * + COUNT( - col1 ) + MAX( + - ( - col1 ) ) FROM tab0 AS cor0
----
-18123

skipif mysql # not compatible
query I rowsort label-2907
SELECT + - 82 * + SUM ( DISTINCT - - ( - - 74 ) ) * + COUNT ( - col1 ) + MAX ( + - ( - col1 ) ) FROM tab0 AS cor0
----
-18123

query I rowsort
SELECT - + ( - + col2 ) FROM tab0 AS cor0
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-2909
SELECT DISTINCT + COUNT( * ) AS col1 FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9

skipif mysql # not compatible
query I rowsort label-2909
SELECT DISTINCT + COUNT ( * ) AS col1 FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9

query I rowsort
SELECT DISTINCT + ( - + col0 ) * + - 7 FROM tab2
----
322
448
525

query I rowsort
SELECT ALL 62 * - 93 FROM tab2 WHERE NOT ( + col2 ) NOT BETWEEN - 9 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2912
SELECT + COUNT( * ) AS col0 FROM tab0 WHERE NOT ( NOT ( NOT ( ( NOT + 3 IS NULL ) ) ) )
----
0

skipif mysql # not compatible
query I rowsort label-2912
SELECT + COUNT ( * ) AS col0 FROM tab0 WHERE NOT ( NOT ( NOT ( ( NOT + 3 IS NULL ) ) ) )
----
0

query I rowsort
SELECT DISTINCT 28 * col2 * 48 FROM tab0
----
133056
13440
63168

query I rowsort
SELECT ALL - col0 * + 67 FROM tab2
----
-3082
-4288
-5025

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 col2 FROM tab2 AS cor0 WHERE NOT col0 IS NULL
----
51
67
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 + + + col2 col0 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2917
SELECT + - 4 * + COUNT( * ) FROM tab1 AS cor0 WHERE NOT - 4 < NULL
----
0

skipif mysql # not compatible
query I rowsort label-2917
SELECT + - 4 * + COUNT ( * ) FROM tab1 AS cor0 WHERE NOT - 4 < NULL
----
0

query I rowsort
SELECT col1 + + 27 FROM tab1 AS cor0
----
32
41
74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2919
SELECT + 61 + + CAST( - col0 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-26
-36
46

skipif mysql # not compatible
query I rowsort label-2919
SELECT + 61 + + CAST ( - col0 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-26
-36
46

query II rowsort
SELECT DISTINCT - col1 AS col0, - 46 FROM tab1 cor0 WHERE col0 = + 30
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2921
SELECT 29 + + - CAST( NULL AS SIGNED ) + + + col0 AS col1, col2 AS col1 FROM tab1
----
NULL
59
NULL
68
NULL
96

skipif mysql # not compatible
query II rowsort label-2921
SELECT 29 + + - CAST ( NULL AS INTEGER ) + + + col0 AS col1, col2 AS col1 FROM tab1
----
NULL
59
NULL
68
NULL
96

query I rowsort
SELECT ALL col2 + - + col0 AS col1 FROM tab0
----
-77
2
32

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - + ( + col1 ) NOT BETWEEN NULL AND - 55 * - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2924
SELECT DISTINCT MAX( 38 ) FROM tab0
----
38

skipif mysql # not compatible
query I rowsort label-2924
SELECT DISTINCT MAX ( 38 ) FROM tab0
----
38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2925
SELECT ALL CAST( - col1 AS SIGNED ) AS col1 FROM tab0 WHERE NOT NULL <> 65
----

skipif mysql # not compatible
query I rowsort label-2925
SELECT ALL CAST ( - col1 AS INTEGER ) AS col1 FROM tab0 WHERE NOT NULL <> 65
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2926
SELECT DISTINCT + SUM( DISTINCT - 73 ) AS col2 FROM tab1 AS cor0
----
-73

skipif mysql # not compatible
query I rowsort label-2926
SELECT DISTINCT + SUM ( DISTINCT - 73 ) AS col2 FROM tab1 AS cor0
----
-73

query III rowsort
SELECT * FROM tab1 cor0 WHERE - 68 >= + 79 * - + col1 * - col2 - - col2
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2928
SELECT - CAST( NULL AS SIGNED ) - - 90 - - COUNT( * ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2928
SELECT - CAST ( NULL AS INTEGER ) - - 90 - - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT 23 + - ( + + col1 ) FROM tab0
----
-58
2
22

query I rowsort
SELECT col0 * - col0 + - col0 AS col0 FROM tab1
----
-2652
-7310
-8372

query II rowsort
SELECT DISTINCT + col0, - 25 FROM tab0 cor0
----
15
-25
87
-25
97
-25

query I rowsort
SELECT ALL - 3 - + 66 * + col1 + - col2 * 64 FROM tab0 AS cor0
----
-2029
-6405
-8357

query I rowsort
SELECT ALL + ( - + 78 ) AS col1 FROM tab2 AS cor0
----
-78
-78
-78

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2934
SELECT - + CAST( NULL AS DECIMAL ) * - + 59 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2934
SELECT - + CAST ( NULL AS REAL ) * - + 59 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2935
SELECT - 24 DIV + col0 - col2 - 8 DIV - + col1 col2 FROM tab2 cor0
----
-23
-40
-58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2935
SELECT - 24 / + col0 - col2 - 8 / - + col1 col2 FROM tab2 cor0
----
-23
-40
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2936
SELECT DISTINCT - + CAST( - - col1 AS SIGNED ) * - col2 + col0 FROM tab1 AS cor0
----
1395
3287
380

skipif mysql # not compatible
query I rowsort label-2936
SELECT DISTINCT - + CAST ( - - col1 AS INTEGER ) * - col2 + col0 FROM tab1 AS cor0
----
1395
3287
380

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( + - 76 ) col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-76

onlyif mysql # aggregate syntax: 
query II rowsort label-2938
SELECT DISTINCT - MAX( + - 64 ), - 16 + COUNT( - - ( + 37 ) ) AS col2 FROM tab2
----
64
-13

skipif mysql # not compatible
query II rowsort label-2938
SELECT DISTINCT - MAX ( + - 64 ), - 16 + COUNT ( - - ( + 37 ) ) AS col2 FROM tab2
----
64
-13

query III rowsort
SELECT * FROM tab0 WHERE NOT + - 95 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query II rowsort label-2940
SELECT DISTINCT MIN( + col1 ) AS col1, 75 AS col0 FROM tab2
----
51
75

skipif mysql # not compatible
query II rowsort label-2940
SELECT DISTINCT MIN ( + col1 ) AS col1, 75 AS col0 FROM tab2
----
51
75

query II rowsort
SELECT + - col2 * col2 + col2, + 29 AS col0 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2942
SELECT + CAST( ( - col2 ) AS SIGNED ) FROM tab0
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-2942
SELECT + CAST ( ( - col2 ) AS INTEGER ) FROM tab0
----
-10
-47
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-2943
SELECT - SUM( DISTINCT + - 73 ) FROM tab2 AS cor0
----
73

skipif mysql # not compatible
query I rowsort label-2943
SELECT - SUM ( DISTINCT + - 73 ) FROM tab2 AS cor0
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-2944
SELECT + COUNT( col0 ) * + COUNT( * ) FROM tab2 AS cor0 WHERE NOT - 32 <> + - col1
----
0

skipif mysql # not compatible
query I rowsort label-2944
SELECT + COUNT ( col0 ) * + COUNT ( * ) FROM tab2 AS cor0 WHERE NOT - 32 <> + - col1
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 96 col1 FROM tab1
----
96
96
96

query I rowsort
SELECT DISTINCT + 22 AS col2 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
22

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2947
SELECT * FROM tab2 WHERE NOT + CAST( - col0 AS DECIMAL ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-2947
SELECT * FROM tab2 WHERE NOT + CAST ( - col0 AS REAL ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 42 col0 FROM tab0 AS cor0
----
42
42
42

onlyif mysql # aggregate syntax: 
query I rowsort label-2949
SELECT - MAX( ( + - 19 ) ) AS col1 FROM tab1 AS cor0
----
19

skipif mysql # not compatible
query I rowsort label-2949
SELECT - MAX ( ( + - 19 ) ) AS col1 FROM tab1 AS cor0
----
19

query I rowsort
SELECT ALL - 29 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-29
-29
-29

onlyif mysql # aggregate syntax: 
query II rowsort label-2951
SELECT DISTINCT - COUNT( * ), + 32 AS col2 FROM tab1 AS cor0
----
-3
32

skipif mysql # not compatible
query II rowsort label-2951
SELECT DISTINCT - COUNT ( * ), + 32 AS col2 FROM tab1 AS cor0
----
-3
32

query I rowsort
SELECT ALL - col2 AS col1 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN - col2 + + - col0 AND ( - col1 )
----

query I rowsort
SELECT DISTINCT - 85 + - col2 AS col2 FROM tab0 AS cor0
----
-132
-184
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-2954
SELECT DISTINCT - COUNT( * ) FROM tab0 AS cor0 WHERE ( NOT ( NOT NULL IS NOT NULL ) )
----
0

skipif mysql # not compatible
query I rowsort label-2954
SELECT DISTINCT - COUNT ( * ) FROM tab0 AS cor0 WHERE ( NOT ( NOT NULL IS NOT NULL ) )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2955
SELECT ALL + + COUNT( * ) FROM tab0 AS cor0 WHERE - ( col2 ) < col1 / + - 9 + + col1
----
3

skipif mysql # not compatible
query I rowsort label-2955
SELECT ALL + + COUNT ( * ) FROM tab0 AS cor0 WHERE - ( col2 ) < col1 / + - 9 + + col1
----
3

query I rowsort
SELECT DISTINCT + col1 + - - col1 + + 95 AS col1 FROM tab2 cor0
----
197
229
249

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2957
SELECT DISTINCT 81 DIV - 67 + + COUNT( * ) FROM tab1
----
2

skipif mysql # not compatible
query I rowsort label-2957
SELECT DISTINCT 81 / - 67 + + COUNT ( * ) FROM tab1
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-2958
SELECT ( + SUM( + 4 ) ) + 28 AS col1 FROM tab0
----
40

skipif mysql # not compatible
query I rowsort label-2958
SELECT ( + SUM ( + 4 ) ) + 28 AS col1 FROM tab0
----
40

query I rowsort
SELECT 39 * 86 + col2 AS col0 FROM tab1 WHERE + col2 BETWEEN + 75 AND - + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2960
SELECT DISTINCT COUNT( * ) + ( 90 ) AS col2 FROM tab0
----
93

skipif mysql # not compatible
query I rowsort label-2960
SELECT DISTINCT COUNT ( * ) + ( 90 ) AS col2 FROM tab0
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-2961
SELECT 6 + COUNT( * ) * + 70 FROM tab0
----
216

skipif mysql # not compatible
query I rowsort label-2961
SELECT 6 + COUNT ( * ) * + 70 FROM tab0
----
216

query I rowsort
SELECT DISTINCT - ( + ( + col2 ) ) AS col0 FROM tab2
----
-23
-40
-58

query I rowsort
SELECT ALL col0 + + + col2 + + + col0 * + - 48 * + col1 AS col0 FROM tab2
----
-112539
-236440
-241067

query I rowsort
SELECT col2 + + col1 * + 63 FROM tab1
----
3029
374
978

query III rowsort
SELECT * FROM tab1 WHERE 28 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col0 + 4 FROM tab0
----
101
19
91

query III rowsort
SELECT * FROM tab1 WHERE + 25 * col2 * + ( - col0 ) >= - 17
----

query I rowsort
SELECT + + 95 + + + col2 + - - col0 * - col0 - 16 - - + col0 * - - 77 AS col2 FROM tab0 AS cor0
----
-1762
-781
1056

query I rowsort
SELECT 61 * - - col0 - - ( + col0 ) AS col2 FROM tab1
----
3162
5270
5642

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2970
SELECT DISTINCT - col2 / col2 - + col1 + - - col2 + + 46 * - col2 - col1 + - CAST( NULL AS SIGNED ) / - col0 * - - col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2970
SELECT DISTINCT - col2 / col2 - + col1 + - - col2 + + 46 * - col2 - col1 + - CAST ( NULL AS INTEGER ) / - col0 * - - col2 FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col2 * - 99 * + ( - + 79 ) + - ( - - ( + ( - ( 13 ) ) ) ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-2972
SELECT ALL - + 77 DIV - col1 AS col0 FROM tab1 AS cor0
----
1
15
5

skipif mysql # not compatible
query I rowsort label-2972
SELECT ALL - + 77 / - col1 AS col0 FROM tab1 AS cor0
----
1
15
5

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + ( 85 ) + - ( + 52 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2974
SELECT + - CAST( - 92 AS SIGNED ) * + + MAX( - col2 ) AS col0 FROM tab1 AS cor0
----
-5428

skipif mysql # not compatible
query I rowsort label-2974
SELECT + - CAST ( - 92 AS INTEGER ) * + + MAX ( - col2 ) AS col0 FROM tab1 AS cor0
----
-5428

query I rowsort
SELECT ALL - ( 78 ) AS col1 FROM tab1 AS cor0
----
-78
-78
-78

onlyif mysql # aggregate syntax: 
query II rowsort label-2976
SELECT COUNT( * ) AS col0, 88 FROM tab0 cor0
----
3
88

skipif mysql # not compatible
query II rowsort label-2976
SELECT COUNT ( * ) AS col0, 88 FROM tab0 cor0
----
3
88

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 AS col1, + 11 col0 FROM tab2
----
51
11
67
11
77
11

query II rowsort
SELECT DISTINCT - 79 AS col0, - 47 + - - 50 FROM tab1
----
-79
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2979
SELECT ALL - MAX( - col1 ) AS col1 FROM tab1
----
5

skipif mysql # not compatible
query I rowsort label-2979
SELECT ALL - MAX ( - col1 ) AS col1 FROM tab1
----
5

query I rowsort
SELECT 60 FROM tab0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT + ( + - 74 ) AS col0 FROM tab1
----
-74
-74
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-2982
SELECT ALL - - 51 * - ( - SUM( ALL - col1 ) ) + + 80 + + ( + + 8 ) AS col0 FROM tab1 AS cor0 WHERE ( + col0 ) NOT IN ( col0 * - + 30, - col0, - 78 * + - col1 + - - 82 + + 18 * col2 + col1 + + + ( - - col2 ) )
----
-3278

skipif mysql # not compatible
query I rowsort label-2982
SELECT ALL - - 51 * - ( - SUM ( ALL - col1 ) ) + + 80 + + ( + + 8 ) AS col0 FROM tab1 AS cor0 WHERE ( + col0 ) NOT IN ( col0 * - + 30, - col0, - 78 * + - col1 + - - 82 + + 18 * col2 + col1 + + + ( - - col2 ) )
----
-3278

query I rowsort
SELECT ( + + col1 ) AS col2 FROM tab2 AS cor0
----
51
67
77

query II rowsort
SELECT ALL 55 AS col2, + 31 - - ( col0 ) - + - col2 + - col1 + + ( + col0 ) AS col2 FROM tab2 AS cor0
----
55
122
55
172
55
95

query II rowsort
SELECT - 90 AS col1, col2 FROM tab0 AS cor0
----
-90
10
-90
47
-90
99

onlyif mysql # aggregate syntax: 
query I rowsort label-2986
SELECT DISTINCT + - COUNT( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-2986
SELECT DISTINCT + - COUNT ( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

query I rowsort
SELECT ALL + 65 AS col0 FROM tab1
----
65
65
65

onlyif mysql # aggregate syntax: 
query I rowsort label-2988
SELECT + 4 + - COUNT( * ) AS col1 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-2988
SELECT + 4 + - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
1

query I rowsort
SELECT DISTINCT col0 * - - col1 AS col2 FROM tab1 AS cor0
----
425
4277
714

query II rowsort
SELECT DISTINCT 94 + + col2, + col2 FROM tab0 AS cor0
----
104
10
141
47
193
99

query II rowsort
SELECT - col0, - 23 AS col0 FROM tab2
----
-46
-23
-64
-23
-75
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-2992
SELECT ALL ( + - COUNT( * ) ) col1 FROM tab1
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2992
SELECT ALL ( + - COUNT ( * ) ) col1 FROM tab1
----
-3

query I rowsort
SELECT col1 * + - 92 * 24 FROM tab1
----
-103776
-11040
-30912

query I rowsort
SELECT DISTINCT - col2 * 60 FROM tab0
----
-2820
-5940
-600

query I rowsort
SELECT col1 FROM tab0 WHERE ( NULL ) < NULL
----

query III rowsort
SELECT * FROM tab1 WHERE ( NULL ) <= ( col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2997
SELECT DISTINCT + COUNT( * ) * + 21 AS col2 FROM tab0
----
63

skipif mysql # not compatible
query I rowsort label-2997
SELECT DISTINCT + COUNT ( * ) * + 21 AS col2 FROM tab0
----
63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2998
SELECT + CAST( NULL AS SIGNED ) - col2 col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2998
SELECT + CAST ( NULL AS INTEGER ) - col2 col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 26 + col1 * 14 AS col2 FROM tab0 WHERE NOT NULL BETWEEN ( - 64 + - 21 * col0 ) AND 6
----

query I rowsort
SELECT 26 * + 10 FROM tab0
----
260
260
260

query I rowsort
SELECT - 31 + + col2 * + col0 FROM tab1
----
4865
4984
6157

query I rowsort
SELECT DISTINCT + col0 AS col1 FROM tab0 WHERE NOT NULL NOT IN ( - 31 * col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3003
SELECT ALL COUNT( 28 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-3003
SELECT ALL COUNT ( 28 ) FROM tab1
----
3

query I rowsort
SELECT ALL 73 - - ( col0 ) FROM tab2 WHERE NOT ( + 36 ) BETWEEN 50 * ( + col1 ) AND NULL
----
119
137
148

query I rowsort
SELECT 99 + col0 AS col1 FROM tab2
----
145
163
174

onlyif mysql # aggregate syntax: 
query I rowsort label-3006
SELECT SUM( ALL - col2 ) * - COUNT( ALL - col0 ) AS col1 FROM tab0 WHERE col1 * col2 IS NOT NULL
----
468

skipif mysql # not compatible
query I rowsort label-3006
SELECT SUM ( ALL - col2 ) * - COUNT ( ALL - col0 ) AS col1 FROM tab0 WHERE col1 * col2 IS NOT NULL
----
468

onlyif mysql # aggregate syntax: 
query I rowsort label-3007
SELECT + COUNT( * ) FROM tab1 WHERE NOT ( col0 ) IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-3007
SELECT + COUNT ( * ) FROM tab1 WHERE NOT ( col0 ) IS NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3008
SELECT ALL + 38 * 89 - ( + COUNT( * ) ) FROM tab0
----
3379

skipif mysql # not compatible
query I rowsort label-3008
SELECT ALL + 38 * 89 - ( + COUNT ( * ) ) FROM tab0
----
3379

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * + col0 - col2 * ( - ( col2 ) ) col1 FROM tab2
----
1587
4160
7714

query I rowsort
SELECT DISTINCT + col2 AS col2 FROM tab2 WHERE NULL IS NULL
----
23
40
58

query I rowsort
SELECT ALL - col1 + - col0 * col1 FROM tab1
----
-430
-4324
-728

onlyif mysql # aggregate syntax: 
query I rowsort label-3012
SELECT + ( - COUNT( * ) ) * + SUM( ALL - 52 + + col1 ) FROM tab0 WHERE NULL > - 91 - - 90 * - col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3012
SELECT + ( - COUNT ( * ) ) * + SUM ( ALL - 52 + + col1 ) FROM tab0 WHERE NULL > - 91 - - 90 * - col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3013
SELECT - MAX( 27 ) AS col1 FROM tab1
----
-27

skipif mysql # not compatible
query I rowsort label-3013
SELECT - MAX ( 27 ) AS col1 FROM tab1
----
-27

query I rowsort
SELECT DISTINCT - 27 + - col2 FROM tab2 WHERE NOT ( - 28 ) NOT IN ( 5 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3015
SELECT DISTINCT - COUNT( DISTINCT + CAST( col1 AS SIGNED ) ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-3015
SELECT DISTINCT - COUNT ( DISTINCT + CAST ( col1 AS INTEGER ) ) FROM tab2
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3016
SELECT ALL COUNT( * ) AS col2 FROM tab1 WHERE NOT ( NULL ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3016
SELECT ALL COUNT ( * ) AS col2 FROM tab1 WHERE NOT ( NULL ) IS NULL
----
0

query I rowsort
SELECT ALL - col1 + + 93 FROM tab0 WHERE NOT ( 10 * - col1 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3018
SELECT ALL ( - MAX( DISTINCT 99 ) ) FROM tab1 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-3018
SELECT ALL ( - MAX ( DISTINCT 99 ) ) FROM tab1 AS cor0
----
-99

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 33 BETWEEN ( NULL ) AND - col0
----

query I rowsort
SELECT col0 AS col2 FROM tab1 WHERE NOT ( NULL ) IS NOT NULL
----
51
85
91

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NULL ) > 8 * + col2
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col0 + col2 * col0 = + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab2 WHERE 44 + 25 NOT BETWEEN NULL AND col0
----
46
51
23
64
77
40

query I rowsort
SELECT - 63 * - col0 AS col0 FROM tab0
----
5481
6111
945

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3025
SELECT ALL CAST( NULL AS SIGNED ) + + CAST( 59 AS SIGNED ) * col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3025
SELECT ALL CAST ( NULL AS INTEGER ) + + CAST ( 59 AS INTEGER ) * col2 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3026
SELECT + COUNT( * ) * MIN( col1 DIV col0 ) AS col2 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-3026
SELECT + COUNT ( * ) * MIN ( col1 / col0 ) AS col2 FROM tab0
----
0

query I rowsort
SELECT col0 + - col0 / col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3028
SELECT CAST( 24 AS SIGNED ) FROM tab1 AS cor0 WHERE ( col1 ) IS NOT NULL
----
24
24
24

skipif mysql # not compatible
query I rowsort label-3028
SELECT CAST ( 24 AS INTEGER ) FROM tab1 AS cor0 WHERE ( col1 ) IS NOT NULL
----
24
24
24

query I rowsort
SELECT ALL + col0 AS col0 FROM tab2 AS cor0 WHERE NOT - ( + col1 ) / - 45 > - col1 + - ( col0 ) * col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3030
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col1 + CAST( 25 AS SIGNED ) NOT BETWEEN NULL AND + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-3030
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col1 + CAST ( 25 AS INTEGER ) NOT BETWEEN NULL AND + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-3031
SELECT - 72 DIV - 39 + - col2 AS col0 FROM tab0 AS cor0
----
-46
-9
-98

skipif mysql # not compatible
query I rowsort label-3031
SELECT - 72 / - 39 + - col2 AS col0 FROM tab0 AS cor0
----
-46
-9
-98

query I rowsort
SELECT ALL + col1 FROM tab1 AS cor0 WHERE col2 * + col1 IS NOT NULL
----
14
47
5

query III rowsort
SELECT * FROM tab0 WHERE col1 - 89 > ( NULL )
----

query I rowsort
SELECT DISTINCT - ( col0 ) + col2 * + col2 AS col0 FROM tab0
----
13
2194
9704

onlyif mysql # aggregate syntax: 
query I rowsort label-3035
SELECT MIN( DISTINCT - col1 ) + MIN( DISTINCT 61 + col2 ) FROM tab2
----
7

skipif mysql # not compatible
query I rowsort label-3035
SELECT MIN ( DISTINCT - col1 ) + MIN ( DISTINCT 61 + col2 ) FROM tab2
----
7

query I rowsort
SELECT col0 + + 28 * + col0 AS col2 FROM tab1
----
1479
2465
2639

onlyif mysql # DIV for integer division: 
query I rowsort label-3037
SELECT DISTINCT - 53 * 53 + col2 DIV - col2 FROM tab2
----
-2810

skipif mysql # not compatible
query I rowsort label-3037
SELECT DISTINCT - 53 * 53 + col2 / - col2 FROM tab2
----
-2810

query I rowsort
SELECT + 83 + + - col2 FROM tab1
----
-13
15
24

query I rowsort
SELECT ALL col1 + - 44 + col1 AS col1 FROM tab2
----
110
58
90

onlyif mysql # aggregate syntax: 
query I rowsort label-3040
SELECT COUNT( * ) + + 46 FROM tab2
----
49

skipif mysql # not compatible
query I rowsort label-3040
SELECT COUNT ( * ) + + 46 FROM tab2
----
49

query I rowsort
SELECT 54 + + col0 AS col1 FROM tab1
----
105
139
145

query I rowsort
SELECT 98 + - + col2 FROM tab2
----
40
58
75

query I rowsort
SELECT DISTINCT col1 - ( col2 ) * 89 AS col2 FROM tab0
----
-4102
-869
-8810

query I rowsort
SELECT col2 AS col0 FROM tab1 cor0 WHERE NULL IS NULL
----
59
68
96

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NOT ( 64 ) NOT BETWEEN NULL AND NULL )
----

query I rowsort
SELECT 33 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 620d384286e82d1c6c8b1b2b109a7da5

query I rowsort
SELECT ( 71 ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to c1aace5d5fe27721cc925552513c85c0

onlyif mysql # aggregate syntax: 
query I rowsort label-3048
SELECT ALL MIN( ALL + col0 ) * - + MIN( + 70 ) FROM tab1
----
-3570

skipif mysql # not compatible
query I rowsort label-3048
SELECT ALL MIN ( ALL + col0 ) * - + MIN ( + 70 ) FROM tab1
----
-3570

query I rowsort
SELECT - 35 * 73 AS col1 FROM tab1 cor0 WHERE NOT ( + col2 ) NOT BETWEEN + 43 * + col0 AND col1 + + 6
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 12 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( col1 ) NOT BETWEEN + col0 AND NULL
----
75
67
58

query I rowsort
SELECT + col2 FROM tab1 AS cor0 WHERE NOT - col2 * 93 IS NULL
----
59
68
96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3053
SELECT DISTINCT - COUNT( * ) DIV + 18 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3053
SELECT DISTINCT - COUNT ( * ) / + 18 FROM tab0 AS cor0
----
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( - - 29 ) IS NOT NULL
----

query I rowsort
SELECT ALL + - 54 AS col2 FROM tab2 AS cor0
----
-54
-54
-54

query II rowsort
SELECT ALL + col0 AS col2, - 99 FROM tab2 cor0
----
46
-99
64
-99
75
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-3057
SELECT - col2 DIV 75 FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3057
SELECT - col2 / 75 FROM tab2 cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3058
SELECT ALL - COUNT( * ) FROM tab1 AS cor0 WHERE NOT + col2 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-3058
SELECT ALL - COUNT ( * ) FROM tab1 AS cor0 WHERE NOT + col2 IS NULL
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3059
SELECT - + MIN( DISTINCT - col2 ) AS col1 FROM tab2 AS cor0 WHERE NOT - 8 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3059
SELECT - + MIN ( DISTINCT - col2 ) AS col1 FROM tab2 AS cor0 WHERE NOT - 8 IS NOT NULL
----
NULL

query I rowsort
SELECT col1 + - col0 * + col0 AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) <> ( col2 )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-3061
SELECT ALL - col2 AS col0, col1 DIV - + col2 AS col1 FROM tab0 AS cor0
----
-10
-2
-47
-1
-99
0

skipif mysql # not compatible
query II rowsort label-3061
SELECT ALL - col2 AS col0, col1 / - + col2 AS col1 FROM tab0 AS cor0
----
-10
-2
-47
-1
-99
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3062
SELECT + + ( - + COUNT( col2 ) ) AS col2 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3062
SELECT + + ( - + COUNT ( col2 ) ) AS col2 FROM tab0 AS cor0
----
-3

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( - col1 ) IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3064
SELECT col2 * - col1 * - + CAST( NULL AS DECIMAL ) * 36 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3064
SELECT col2 * - col1 * - + CAST ( NULL AS REAL ) * 36 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT - 57 * + 76 * + + col2 FROM tab0
----
-203604
-428868
-43320

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3066
SELECT ALL + col0 * - ( + CAST( NULL AS SIGNED ) ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3066
SELECT ALL + col0 * - ( + CAST ( NULL AS INTEGER ) ) FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT + col0 * - - col1 * + + col2 * - 91 FROM tab1
----
-2281825
-26466076
-6237504

query I rowsort
SELECT ALL + col1 * col1 AS col0 FROM tab1 WHERE NOT ( + col2 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3069
SELECT DISTINCT SUM( DISTINCT col2 ) * + - ( COUNT( * ) ) AS col1 FROM tab0
----
-468

skipif mysql # not compatible
query I rowsort label-3069
SELECT DISTINCT SUM ( DISTINCT col2 ) * + - ( COUNT ( * ) ) AS col1 FROM tab0
----
-468

query I rowsort
SELECT col0 FROM tab1 WHERE NOT NULL <> NULL
----

query I rowsort
SELECT ALL + ( - + col0 ) * 36 FROM tab1
----
-1836
-3060
-3276

onlyif mysql # DIV for integer division: 
query I rowsort label-3072
SELECT ALL col2 DIV - 14 FROM tab0
----
-3
-7
0

skipif mysql # not compatible
query I rowsort label-3072
SELECT ALL col2 / - 14 FROM tab0
----
-3
-7
0

query III rowsort
SELECT * FROM tab0 WHERE NOT ( - 43 ) NOT BETWEEN ( NULL ) AND NULL
----

query II rowsort
SELECT DISTINCT + col0 * - col2 AS col0, + col1 AS col1 FROM tab0
----
-705
81
-870
21
-9603
1

query I rowsort
SELECT DISTINCT 24 * col2 FROM tab2 AS cor0
----
1392
552
960

query I rowsort
SELECT DISTINCT + 12 * - - col2 AS col2 FROM tab1 AS cor0
----
1152
708
816

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col0 - - col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT - + ( col2 ) AS col1, - ( + + col0 ) AS col0 FROM tab0 AS cor0
----
-10
-87
-47
-15
-99
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 72 col2 FROM tab2 AS cor0
----
72

query I rowsort
SELECT + col0 * + 67 AS col0 FROM tab0 WHERE + + 68 < - col2 * + + col2 * + col1 + 98
----

query I rowsort
SELECT ALL ( + col1 ) + col0 AS col2 FROM tab2
----
141
142
97

query I rowsort
SELECT DISTINCT + col2 + + + col0 AS col2 FROM tab2
----
104
133
69

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col1 + + 42 / + + col0 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 89 + - col2 col1 FROM tab0 AS cor0
----
-10
42
79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 / - col0 col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3086
SELECT DISTINCT - 13 + + COUNT( * ) AS col1 FROM tab1 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-3086
SELECT DISTINCT - 13 + + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-10

query I rowsort
SELECT + - 39 * + 95 + + col2 * + col0 FROM tab2 AS cor0
----
-1145
-2647
645

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3088
SELECT * FROM tab2 AS cor0 WHERE CAST( + col0 AS SIGNED ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-3088
SELECT * FROM tab2 AS cor0 WHERE CAST ( + col0 AS INTEGER ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT - col1, - 25 * - - 89 * + 3 * - 86 * 16 AS col1 FROM tab0 AS cor0
----
-1
9184800
-21
9184800
-81
9184800

onlyif mysql # aggregate syntax: 
query I rowsort label-3090
SELECT + MAX( + - col0 ) AS col2 FROM tab2 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-3090
SELECT + MAX ( + - col0 ) AS col2 FROM tab2 AS cor0
----
-46

query I rowsort
SELECT DISTINCT ( + ( - ( + col0 ) ) ) + + col0 * 22 AS col0 FROM tab2 AS cor0
----
1344
1575
966

query II rowsort
SELECT + 54 AS col2, - col1 AS col0 FROM tab0 WHERE + + col0 IS NULL
----

query I rowsort
SELECT col2 * - col2 - + col1 + - ( - + 1 ) FROM tab0
----
-120
-2289
-9801

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3094
SELECT + col1 + - - CAST( col0 AS SIGNED ) FROM tab1 WHERE + col2 NOT IN ( - col0 )
----
138
65
90

skipif mysql # not compatible
query I rowsort label-3094
SELECT + col1 + - - CAST ( col0 AS INTEGER ) FROM tab1 WHERE + col2 NOT IN ( - col0 )
----
138
65
90

query I rowsort
SELECT col2 - + 79 * - 45 AS col1 FROM tab0
----
3565
3602
3654

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3096
SELECT DISTINCT CAST( NULL AS SIGNED ) * - col0 - col0 AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3096
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - col0 - col0 AS col2 FROM tab1
----
NULL

query II rowsort
SELECT DISTINCT - col1 AS col0, 96 FROM tab0
----
-1
96
-21
96
-81
96

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col1 <= ( 5 * + + col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3099
SELECT + CAST( NULL AS SIGNED ) + - col2 + 63 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3099
SELECT + CAST ( NULL AS INTEGER ) + - col2 + 63 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3100
SELECT DISTINCT - COUNT( * ) AS col0 FROM tab1 WHERE NULL IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-3100
SELECT DISTINCT - COUNT ( * ) AS col0 FROM tab1 WHERE NULL IS NULL
----
-3

query I rowsort
SELECT - 80 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 4dde3bd5652d30396b9cadd0e2cfb680

onlyif mysql # aggregate syntax: 
query I rowsort label-3102
SELECT - 62 * + + 34 - COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-2117

skipif mysql # not compatible
query I rowsort label-3102
SELECT - 62 * + + 34 - COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-2117

query I rowsort
SELECT + col1 * - 47 FROM tab0 AS cor0
----
-3807
-47
-987

onlyif mysql # aggregate syntax: 
query II rowsort label-3104
SELECT SUM( + - 52 ), 33 col2 FROM tab1 AS cor0
----
-156
33

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3104
SELECT SUM ( + - 52 ), 33 col2 FROM tab1 AS cor0
----
-156
33

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NULL ) < + ( + 73 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3106
SELECT ALL - SUM( + col2 ) AS col1 FROM tab0 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-3106
SELECT ALL - SUM ( + col2 ) AS col1 FROM tab0 AS cor0
----
-156

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL = col2 / + ( - + ( + ( - col0 ) ) )
----

query I rowsort
SELECT ALL ( + + col1 ) AS col1 FROM tab0 AS cor0
----
1
21
81

query I rowsort
SELECT 20 * - - 31 + + - col1 * + col0 AS col1 FROM tab2 AS cor0
----
-1726
-4308
-4405

onlyif mysql # aggregate syntax: 
query I rowsort label-3110
SELECT ALL MIN( 85 ) FROM tab2 AS cor0
----
85

skipif mysql # not compatible
query I rowsort label-3110
SELECT ALL MIN ( 85 ) FROM tab2 AS cor0
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-3111
SELECT COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE NOT 56 * - - col2 * - + col0 + - col2 < col0
----
0

skipif mysql # not compatible
query I rowsort label-3111
SELECT COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NOT 56 * - - col2 * - + col0 + - col2 < col0
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col0 + - 23 - - col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3113
SELECT DISTINCT 48 * + COUNT( * ) + - + COUNT( * ) AS col1 FROM tab0
----
141

skipif mysql # not compatible
query I rowsort label-3113
SELECT DISTINCT 48 * + COUNT ( * ) + - + COUNT ( * ) AS col1 FROM tab0
----
141

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3114
SELECT CAST( col1 AS SIGNED ) * + col0 FROM tab2
----
2346
4928
5025

skipif mysql # not compatible
query I rowsort label-3114
SELECT CAST ( col1 AS INTEGER ) * + col0 FROM tab2
----
2346
4928
5025

query II rowsort
SELECT DISTINCT col2 * - col2 * 34, - col0 * 64 AS col0 FROM tab2
----
-114376
-4800
-17986
-2944
-54400
-4096

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + 28 IS NOT NULL
----

query I rowsort
SELECT 58 * col1 FROM tab0
----
1218
4698
58

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NULL ) IS NOT NULL OR ( NULL = - col1 * - col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3119
SELECT col0 * CAST( col2 AS SIGNED ) + 44 col0 FROM tab0
----
749
914
9647

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3119
SELECT col0 * CAST ( col2 AS INTEGER ) + 44 col0 FROM tab0
----
749
914
9647

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col2 / col1 * - 74 * + col2 < ( NULL )
----

query I rowsort
SELECT ALL - col1 * + 57 + - col2 FROM tab0 AS cor0
----
-1207
-156
-4664

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 86 * 22 IN ( - - 38, col1 + + 37 + - 37 + - ( col2 ) * col1 * col1 )
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - ( - col0 ) <= ( + col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 WHERE ( NULL IN ( - 16 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3125
SELECT + COUNT( * ) * COUNT( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
81

skipif mysql # not compatible
query I rowsort label-3125
SELECT + COUNT ( * ) * COUNT ( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
81

query I rowsort
SELECT DISTINCT - 13 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-13

query I rowsort
SELECT + col0 * + 61 + + 86 AS col2 FROM tab1 AS cor0
----
3197
5271
5637

onlyif mysql # aggregate syntax: 
query I rowsort label-3128
SELECT + COUNT( * ) - + + COUNT( * ) AS col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3128
SELECT + COUNT ( * ) - + + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3129
SELECT DISTINCT + - MAX( + + col2 ), 32 AS col0 FROM tab0 cor0
----
-99
32

skipif mysql # not compatible
query II rowsort label-3129
SELECT DISTINCT + - MAX ( + + col2 ), 32 AS col0 FROM tab0 cor0
----
-99
32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3130
SELECT ALL - CAST( - - col1 AS SIGNED ) * - 98 FROM tab2 AS cor0
----
4998
6566
7546

skipif mysql # not compatible
query I rowsort label-3130
SELECT ALL - CAST ( - - col1 AS INTEGER ) * - 98 FROM tab2 AS cor0
----
4998
6566
7546

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL = + 52 + + - col2 + - 50 * + col1
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL <= ( + col0 )
----

query I rowsort
SELECT DISTINCT + 83 + 18 AS col2 FROM tab0 cor0
----
101

query I rowsort
SELECT DISTINCT - - col2 + 9 * - - 83 FROM tab2 AS cor0
----
770
787
805

query I rowsort
SELECT 17 + + - 85 AS col2 FROM tab1 AS cor0
----
-68
-68
-68

query I rowsort
SELECT ALL col1 * + + col2 + col2 FROM tab0
----
198
220
3854

query I rowsort
SELECT 21 + + col0 AS col1 FROM tab2
----
67
85
96

query III rowsort
SELECT * FROM tab0 WHERE NULL NOT BETWEEN - 46 AND - 79 * + col2
----

query I rowsort
SELECT - col1 + - + col2 FROM tab2
----
-117
-125
-74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3140
SELECT ALL + 59 - + - CAST( NULL AS SIGNED ) - - 85 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3140
SELECT ALL + 59 - + - CAST ( NULL AS INTEGER ) - - 85 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3141
SELECT DISTINCT CAST( - col2 AS SIGNED ) + col0 + + 81 FROM tab0
----
158
49
79

skipif mysql # not compatible
query I rowsort label-3141
SELECT DISTINCT CAST ( - col2 AS INTEGER ) + col0 + + 81 FROM tab0
----
158
49
79

onlyif mysql # aggregate syntax: 
query I rowsort label-3142
SELECT MAX( ALL + + 25 ) col0 FROM tab2
----
25

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3142
SELECT MAX ( ALL + + 25 ) col0 FROM tab2
----
25

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( col0 ) <> col2 - + col1 * 66 * col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3144
SELECT SUM( + 85 ) AS col0 FROM tab2
----
255

skipif mysql # not compatible
query I rowsort label-3144
SELECT SUM ( + 85 ) AS col0 FROM tab2
----
255

onlyif mysql # aggregate syntax: 
query I rowsort label-3145
SELECT DISTINCT SUM( col0 ) FROM tab2 cor0
----
185

skipif mysql # not compatible
query I rowsort label-3145
SELECT DISTINCT SUM ( col0 ) FROM tab2 cor0
----
185

onlyif mysql # aggregate syntax: 
query II rowsort label-3146
SELECT - COUNT( * ) * - + 83 AS col1, 26 FROM tab0
----
249
26

skipif mysql # not compatible
query II rowsort label-3146
SELECT - COUNT ( * ) * - + 83 AS col1, 26 FROM tab0
----
249
26

query II rowsort
SELECT DISTINCT col2, col1 * + 72 FROM tab2
----
23
3672
40
5544
58
4824

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3148
SELECT ALL + AVG ( CAST( NULL AS SIGNED ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3148
SELECT ALL + AVG ( CAST ( NULL AS INTEGER ) ) FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3149
SELECT DISTINCT + COUNT( * ) AS col2, + 67 FROM tab0
----
3
67

skipif mysql # not compatible
query II rowsort label-3149
SELECT DISTINCT + COUNT ( * ) AS col2, + 67 FROM tab0
----
3
67

query I rowsort
SELECT ALL + col1 FROM tab2 AS cor0 WHERE NULL < NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3151
SELECT 56 DIV + CAST( - col2 AS SIGNED ) FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3151
SELECT 56 / + CAST ( - col2 AS INTEGER ) FROM tab1 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3152
SELECT ALL * FROM tab1 AS cor0 WHERE - col0 + + CAST( col2 AS SIGNED ) + col1 NOT BETWEEN + - 59 * + + CAST( NULL AS SIGNED ) AND ( - 9 * - - col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-3152
SELECT ALL * FROM tab1 AS cor0 WHERE - col0 + + CAST ( col2 AS INTEGER ) + col1 NOT BETWEEN + - 59 * + + CAST ( NULL AS INTEGER ) AND ( - 9 * - - col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query II rowsort label-3153
SELECT - 47 AS col0, 20 + + - COUNT( * ) AS col1 FROM tab1 AS cor0
----
-47
17

skipif mysql # not compatible
query II rowsort label-3153
SELECT - 47 AS col0, 20 + + - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-47
17

query I rowsort
SELECT - col0 + - 37 + - ( - - col2 ) FROM tab0 AS cor0
----
-134
-233
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3155
SELECT + col0 + - - CAST( NULL AS SIGNED ) FROM tab1 AS cor0 WHERE NOT + col0 * 33 IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3155
SELECT + col0 + - - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 WHERE NOT + col0 * 33 IS NULL
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col0 * 28 * + - col2 AS col2 FROM tab2 AS cor0
----
121800
29624
71680

onlyif mysql # aggregate syntax: 
query I rowsort label-3157
SELECT + COUNT( * ) * + COUNT( * ) * - 22 AS col2 FROM tab2
----
-198

skipif mysql # not compatible
query I rowsort label-3157
SELECT + COUNT ( * ) * + COUNT ( * ) * - 22 AS col2 FROM tab2
----
-198

query I rowsort
SELECT ALL + col0 + - + col0 * + col1 + + col1 AS col0 FROM tab1
----
-335
-4139
-649

query II rowsort
SELECT 27 * - 22 AS col1, col2 FROM tab1
----
-594
59
-594
68
-594
96

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( - col1 ) >= NULL
----

query I rowsort
SELECT - 85 * col2 + - - col1 AS col0 FROM tab2 cor0
----
-1904
-3323
-4863

onlyif mysql # DIV for integer division: 
query I rowsort label-3162
SELECT col1 * + col2 DIV + col2 FROM tab2 AS cor0 WHERE NULL IS NULL
----
51
67
77

skipif mysql # not compatible
query I rowsort label-3162
SELECT col1 * + col2 / + col2 FROM tab2 AS cor0 WHERE NULL IS NULL
----
51
67
77

query I rowsort
SELECT + col1 + + - 53 AS col0 FROM tab2 AS cor0
----
-2
14
24

onlyif mysql # aggregate syntax: 
query I rowsort label-3164
SELECT 54 + - - COUNT( DISTINCT col0 ) FROM tab0
----
57

skipif mysql # not compatible
query I rowsort label-3164
SELECT 54 + - - COUNT ( DISTINCT col0 ) FROM tab0
----
57

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( - + col1 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + 35 AS col1 FROM tab0 cor0 WHERE NOT NULL IS NOT NULL
----
35

query II rowsort
SELECT DISTINCT + col0, + 12 FROM tab1 AS cor0
----
51
12
85
12
91
12

query I rowsort
SELECT ALL - col2 + - col0 * 82 AS col1 FROM tab2 AS cor0
----
-3795
-5288
-6208

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 16 col2 FROM tab1 AS cor0
----
-16
-16
-16

onlyif mysql # DIV for integer division: 
query I rowsort label-3170
SELECT - - col0 DIV - + col2 AS col0 FROM tab2 AS cor0
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-3170
SELECT - - col0 / - + col2 AS col0 FROM tab2 AS cor0
----
-1
-1
-2

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL NOT IN ( col1 + + 16 )
----

query I rowsort
SELECT ALL + 92 - - ( + col2 ) + - col2 + - 14 AS col2 FROM tab0
----
78
78
78

query I rowsort
SELECT - ( + 52 ) AS col2 FROM tab2
----
-52
-52
-52

query I rowsort
SELECT DISTINCT + 26 FROM tab1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col2 * - + col0 AS col1 FROM tab0
----
-705
-870
-9603

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL IN ( - 26 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3177
SELECT ALL - col0 DIV + + 4 + col2 AS col1 FROM tab1 cor0 WHERE 20 IS NOT NULL
----
38
46
84

skipif mysql # not compatible
query I rowsort label-3177
SELECT ALL - col0 / + + 4 + col2 AS col1 FROM tab1 cor0 WHERE 20 IS NOT NULL
----
38
46
84

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3178
SELECT + + col2 * col1 AS col2, CAST( NULL AS DECIMAL ) AS col1 FROM tab1 AS cor0
----
1344
NULL
295
NULL
3196
NULL

skipif mysql # not compatible
query II rowsort label-3178
SELECT + + col2 * col1 AS col2, CAST ( NULL AS REAL ) AS col1 FROM tab1 AS cor0
----
1344
NULL
295
NULL
3196
NULL

query I rowsort
SELECT ALL col1 FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( - col1 * + ( + col2 ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3180
SELECT ALL + ( - - col1 ) DIV + col2 AS col0 FROM tab0 AS cor0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-3180
SELECT ALL + ( - - col1 ) / + col2 AS col0 FROM tab0 AS cor0
----
0
1
2

query I rowsort
SELECT 64 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 60ab040e931c5c85db7ba19364eacc8e

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3182
SELECT ALL ( - CAST( NULL AS SIGNED ) ) AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3182
SELECT ALL ( - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 45 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
45

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3184
SELECT ( - MAX( DISTINCT - col1 ) ) DIV COUNT( * ) FROM tab2
----
17

skipif mysql # not compatible
query I rowsort label-3184
SELECT ( - MAX ( DISTINCT - col1 ) ) / COUNT ( * ) FROM tab2
----
17

onlyif mysql # DIV for integer division: 
query II rowsort label-3185
SELECT col0, col0 DIV 21 AS col2 FROM tab2
----
46
2
64
3
75
3

skipif mysql # not compatible
query II rowsort label-3185
SELECT col0, col0 / 21 AS col2 FROM tab2
----
46
2
64
3
75
3

onlyif mysql # aggregate syntax: 
query II rowsort label-3186
SELECT ALL COUNT( * ) AS col2, + COUNT( * ) FROM tab0 AS cor0 WHERE ( NULL ) IN ( - col2, - 43 )
----
0
0

skipif mysql # not compatible
query II rowsort label-3186
SELECT ALL COUNT ( * ) AS col2, + COUNT ( * ) FROM tab0 AS cor0 WHERE ( NULL ) IN ( - col2, - 43 )
----
0
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 34 * + col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT col1 * - + col0 * col2 + - col2 FROM tab1 AS cor0
----
-25134
-290904
-68640

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col0 + + col2 / - col1 * - 67 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3190
SELECT DISTINCT + COUNT( * ) + + 56 + COUNT( * ) FROM tab0
----
62

skipif mysql # not compatible
query I rowsort label-3190
SELECT DISTINCT + COUNT ( * ) + + 56 + COUNT ( * ) FROM tab0
----
62

query I rowsort
SELECT - 27 * 20 AS col0 FROM tab2
----
-540
-540
-540

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + - col1 col1 FROM tab0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3193
SELECT ALL MIN( col2 ) AS col1 FROM tab2
----
23

skipif mysql # not compatible
query I rowsort label-3193
SELECT ALL MIN ( col2 ) AS col1 FROM tab2
----
23

query III rowsort
SELECT * FROM tab0 WHERE + col0 * col1 * + 59 IS NOT NULL AND NOT NULL <= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3195
SELECT col2 DIV + - col1 + - - col2 * col2 FROM tab1
----
3470
4623
9210

skipif mysql # not compatible
query I rowsort label-3195
SELECT col2 / + - col1 + - - col2 * col2 FROM tab1
----
3470
4623
9210

query I rowsort
SELECT ALL ( 82 ) * + col2 + + col1 AS col0 FROM tab1
----
4843
5623
7886

query III rowsort
SELECT * FROM tab2 WHERE + ( - - ( + col0 ) ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3198
SELECT DISTINCT COUNT( ALL + col2 ) AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-3198
SELECT DISTINCT COUNT ( ALL + col2 ) AS col0 FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3199
SELECT MIN( + + col1 ) + - 82 * + 56 AS col1 FROM tab2
----
-4541

skipif mysql # not compatible
query I rowsort label-3199
SELECT MIN ( + + col1 ) + - 82 * + 56 AS col1 FROM tab2
----
-4541

query II rowsort
SELECT ALL col1, + col1 + - 98 FROM tab2
----
51
-47
67
-31
77
-21

query I rowsort
SELECT DISTINCT col1 * - 60 FROM tab1
----
-2820
-300
-840

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 96 * col1 IS NULL
----

query I rowsort
SELECT DISTINCT - 78 + + col2 FROM tab2 AS cor0
----
-20
-38
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-3204
SELECT ALL - 75 + + - COUNT( * ) FROM tab1
----
-78

skipif mysql # not compatible
query I rowsort label-3204
SELECT ALL - 75 + + - COUNT ( * ) FROM tab1
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-3205
SELECT ALL COUNT( * ) * - COUNT( * ) AS col0 FROM tab2
----
-9

skipif mysql # not compatible
query I rowsort label-3205
SELECT ALL COUNT ( * ) * - COUNT ( * ) AS col0 FROM tab2
----
-9

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col2 - + col0 > - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ( + col2 ) - + col2 - - - 46 AS col0 FROM tab2
----
-46
-46
-46

onlyif mysql # DIV for integer division: 
query I rowsort label-3208
SELECT DISTINCT - col1 DIV - col2 - - + 58 * + col1 FROM tab1
----
2726
290
812

skipif mysql # not compatible
query I rowsort label-3208
SELECT DISTINCT - col1 / - col2 - - + 58 * + col1 FROM tab1
----
2726
290
812

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 - + col2 AS col1, col2 col1 FROM tab0 AS cor0
----
0
10
0
47
0
99

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 / + 73 IS NULL
----

query I rowsort
SELECT DISTINCT - ( - 27 ) * - 67 FROM tab2 AS cor0
----
-1809

query I rowsort
SELECT ALL col0 - - - 3 FROM tab2 AS cor0
----
43
61
72

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3213
SELECT ALL 83 DIV + COUNT( * ) FROM tab1 AS cor0
----
27

skipif mysql # not compatible
query I rowsort label-3213
SELECT ALL 83 / + COUNT ( * ) FROM tab1 AS cor0
----
27

query I rowsort
SELECT DISTINCT + col0 * + + ( col2 ) + 38 + + + col0 AS col2 FROM tab0 AS cor0
----
758
9738
995

query III rowsort
SELECT * FROM tab0 cor0 WHERE col2 * ( + - 83 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-3216
SELECT ALL + col2 DIV + col2 AS col1 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3216
SELECT ALL + col2 / + col2 AS col1 FROM tab1 AS cor0
----
1
1
1

query I rowsort
SELECT - 16 AS col0 FROM tab2 cor0 WHERE 42 * - 57 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3218
SELECT DISTINCT CAST( + + col2 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-3218
SELECT DISTINCT CAST ( + + col2 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
10
47
99

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL <= - 17
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3220
SELECT ALL + MIN( + col2 ) col2 FROM tab2 AS cor0
----
23

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3220
SELECT ALL + MIN ( + col2 ) col2 FROM tab2 AS cor0
----
23

query I rowsort
SELECT 72 * - 4 FROM tab1
----
-288
-288
-288

onlyif mysql # aggregate syntax: 
query I rowsort label-3222
SELECT - - 49 * ( + - COUNT( * ) ) AS col0 FROM tab0 WHERE NOT + + 2 IS NULL
----
-147

skipif mysql # not compatible
query I rowsort label-3222
SELECT - - 49 * ( + - COUNT ( * ) ) AS col0 FROM tab0 WHERE NOT + + 2 IS NULL
----
-147

onlyif mysql # DIV for integer division: 
query I rowsort label-3223
SELECT - col1 DIV - col2 * + - col2 AS col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3223
SELECT - col1 / - col2 * + - col2 AS col0 FROM tab1
----
0
0
0

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3224
SELECT col0 AS col0, ( + CAST( NULL AS DECIMAL ) ) FROM tab2
----
46
NULL
64
NULL
75
NULL

skipif mysql # not compatible
query II rowsort label-3224
SELECT col0 AS col0, ( + CAST ( NULL AS REAL ) ) FROM tab2
----
46
NULL
64
NULL
75
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3225
SELECT COUNT( * ), - SUM( 90 ) * - 41 AS col1 FROM tab2
----
3
11070

skipif mysql # not compatible
query II rowsort label-3225
SELECT COUNT ( * ), - SUM ( 90 ) * - 41 AS col1 FROM tab2
----
3
11070

query II rowsort
SELECT DISTINCT - col2 * + + col2 + col2 AS col2, col0 FROM tab0 AS cor0
----
-2162
15
-90
87
-9702
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 80 col2, col0 FROM tab0 AS cor0
----
-80
15
-80
87
-80
97

onlyif mysql # DIV for integer division: 
query I rowsort label-3228
SELECT col1 * + - col2 DIV - col2 FROM tab0 cor0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-3228
SELECT col1 * + - col2 / - col2 FROM tab0 cor0
----
1
21
81

query I rowsort
SELECT ALL + col2 * + + col0 + + col0 FROM tab0 AS cor0
----
720
957
9700

onlyif mysql # aggregate syntax: 
query I rowsort label-3230
SELECT + MAX( ALL 44 ) FROM tab2 AS cor0
----
44

skipif mysql # not compatible
query I rowsort label-3230
SELECT + MAX ( ALL 44 ) FROM tab2 AS cor0
----
44

query I rowsort
SELECT ALL + ( 14 ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 83e5779d2487d12495e7d816c797264f

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 10 + + ( - 14 ) BETWEEN + 30 AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + - col1 + - - col0 FROM tab1 AS cor0
----
37
44
80

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE - col1 + col0 <> NULL
----

query I rowsort
SELECT DISTINCT - 50 AS col2 FROM tab1 AS cor0
----
-50

query I rowsort
SELECT DISTINCT + col2 + + + col1 AS col2 FROM tab0 AS cor0
----
100
128
31

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NOT 98 IS NOT NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3238
SELECT ALL + 5 + - CAST( NULL AS SIGNED ) * - col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3238
SELECT ALL + 5 + - CAST ( NULL AS INTEGER ) * - col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT + + col1 + - col0, col1 AS col2 FROM tab2 AS cor0
----
-8
67
13
77
5
51

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3240
SELECT DISTINCT + col1 * + col2 AS col2, ( + - ( - - col2 ) ) * - + col1 - + col0, 85 * CAST( col1 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
9 values hashing to f7ed2962e94c9d01c709313dbd3e1b6b

skipif mysql # not compatible
query III rowsort label-3240
SELECT DISTINCT + col1 * + col2 AS col2, ( + - ( - - col2 ) ) * - + col1 - + col0, 85 * CAST ( col1 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
9 values hashing to f7ed2962e94c9d01c709313dbd3e1b6b

query I rowsort
SELECT + 72 * col1 AS col0 FROM tab0 AS cor0
----
1512
5832
72

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 62 AS col2, + col0 col1 FROM tab0
----
62
15
62
87
62
97

onlyif mysql # aggregate syntax: 
query I rowsort label-3243
SELECT + SUM( col2 ) FROM tab0
----
156

skipif mysql # not compatible
query I rowsort label-3243
SELECT + SUM ( col2 ) FROM tab0
----
156

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3244
SELECT ALL + col2 + + - CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3244
SELECT ALL + col2 + + - CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT col0, + col0 FROM tab2
----
46
46
64
64
75
75

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + 84 + 50 * + ( - col1 ) NOT IN ( + 14 * - col2, + col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT col2 AS col2, + 89 FROM tab1
----
59
89
68
89
96
89

query III rowsort
SELECT * FROM tab0 WHERE - col2 NOT IN ( + 20 + + col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3249
SELECT DISTINCT + COUNT( * ) * + 87 AS col1 FROM tab0
----
261

skipif mysql # not compatible
query I rowsort label-3249
SELECT DISTINCT + COUNT ( * ) * + 87 AS col1 FROM tab0
----
261

query I rowsort
SELECT DISTINCT - 79 + - col2 FROM tab1 AS cor0
----
-138
-147
-175

onlyif mysql # aggregate syntax: 
query I rowsort label-3251
SELECT + + COUNT( * ) + COUNT( * ) AS col2 FROM tab2 cor0
----
6

skipif mysql # not compatible
query I rowsort label-3251
SELECT + + COUNT ( * ) + COUNT ( * ) AS col2 FROM tab2 cor0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-3252
SELECT ALL - COUNT( * ) + + 34 AS col2 FROM tab2
----
31

skipif mysql # not compatible
query I rowsort label-3252
SELECT ALL - COUNT ( * ) + + 34 AS col2 FROM tab2
----
31

query I rowsort
SELECT DISTINCT - - 2 AS col1 FROM tab1 cor0 WHERE NULL > + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3254
SELECT ALL ( + 92 ) AS col2, col0 AS col2 FROM tab0 AS cor0 WHERE NOT col0 < + col2 * - 31 * - 54 * - 98 + - 39 + - - CAST( - 30 AS SIGNED )
----
92
15
92
87
92
97

skipif mysql # not compatible
query II rowsort label-3254
SELECT ALL ( + 92 ) AS col2, col0 AS col2 FROM tab0 AS cor0 WHERE NOT col0 < + col2 * - 31 * - 54 * - 98 + - 39 + - - CAST ( - 30 AS INTEGER )
----
92
15
92
87
92
97

onlyif mysql # DIV for integer division: 
query I rowsort label-3255
SELECT ALL ( + col2 ) DIV + 86 + - + 49 * + + col1 FROM tab0 AS cor0
----
-1029
-3969
-48

skipif mysql # not compatible
query I rowsort label-3255
SELECT ALL ( + col2 ) / + 86 + - + 49 * + + col1 FROM tab0 AS cor0
----
-1029
-3969
-48

query I rowsort
SELECT ALL + - col2 FROM tab1 cor0 WHERE NOT + 50 NOT BETWEEN 63 - - - 89 AND NULL
----

query II rowsort
SELECT + + col2, 95 AS col0 FROM tab0 AS cor0
----
10
95
47
95
99
95

query II rowsort
SELECT + + col2 AS col2, + 2 * col2 AS col1 FROM tab1 AS cor0
----
59
118
68
136
96
192

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3259
SELECT ALL - - COUNT( * ) col2, MIN( ALL 76 ) DIV - - 34 FROM tab1 AS cor0
----
3
2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3259
SELECT ALL - - COUNT ( * ) col2, MIN ( ALL 76 ) / - - 34 FROM tab1 AS cor0
----
3
2

query I rowsort
SELECT DISTINCT + col1 * col1 * col1 AS col0 FROM tab2
----
132651
300763
456533

onlyif mysql # DIV for integer division: 
query I rowsort label-3261
SELECT 82 DIV col2 FROM tab1
----
0
1
1

skipif mysql # not compatible
query I rowsort label-3261
SELECT 82 / col2 FROM tab1
----
0
1
1

query I rowsort
SELECT DISTINCT - col0 * ( - 93 ) AS col1 FROM tab0
----
1395
8091
9021

onlyif mysql # aggregate syntax: 
query I rowsort label-3263
SELECT DISTINCT - SUM( + 13 ) AS col2 FROM tab2
----
-39

skipif mysql # not compatible
query I rowsort label-3263
SELECT DISTINCT - SUM ( + 13 ) AS col2 FROM tab2
----
-39

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3264
SELECT ALL - 76 DIV - - COUNT( * ) AS col2, 18 FROM tab0
----
-25
18

skipif mysql # not compatible
query II rowsort label-3264
SELECT ALL - 76 / - - COUNT ( * ) AS col2, 18 FROM tab0
----
-25
18

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + col1 IN ( + col1 * + col2 * col0 / col2, + col2 * + col0, + - 92, - col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 31 col1 FROM tab1 AS cor0
----
31
31
31

onlyif mysql # aggregate syntax: 
query I rowsort label-3267
SELECT ALL + 52 * + COUNT( + - 57 ) col0 FROM tab2 cor0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3267
SELECT ALL + 52 * + COUNT ( + - 57 ) col0 FROM tab2 cor0 WHERE NOT NULL IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3268
SELECT ALL + COUNT( DISTINCT + col2 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3268
SELECT ALL + COUNT ( DISTINCT + col2 ) FROM tab2 AS cor0
----
3

query I rowsort
SELECT DISTINCT - col0 + + col0 + - + 64 AS col1 FROM tab1 AS cor0 WHERE NOT + col2 IS NULL
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-3270
SELECT COUNT( * ) * + + 96 FROM tab2
----
288

skipif mysql # not compatible
query I rowsort label-3270
SELECT COUNT ( * ) * + + 96 FROM tab2
----
288

query I rowsort
SELECT ALL 32 * + ( + 37 ) * + + col2 AS col0 FROM tab2
----
27232
47360
68672

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3272
SELECT CAST( NULL AS SIGNED ) * 0 + - COUNT( * ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3272
SELECT CAST ( NULL AS INTEGER ) * 0 + - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT + 8 / col0 > NULL
----

query I rowsort
SELECT ALL - 62 + - ( ( + col1 ) ) FROM tab0 AS cor0
----
-143
-63
-83

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL > col1
----

query II rowsort
SELECT ALL + 10, col0 * - col2 AS col2 FROM tab0 AS cor0
----
10
-705
10
-870
10
-9603

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3277
SELECT + CAST( NULL AS SIGNED ) + + - 25 / - - COUNT( ALL - 69 ) col0, 8 FROM tab1
----
NULL
8

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3277
SELECT + CAST ( NULL AS INTEGER ) + + - 25 / - - COUNT ( ALL - 69 ) col0, 8 FROM tab1
----
NULL
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3278
SELECT - CAST( + col1 AS SIGNED ) + col2 FROM tab1
----
21
54
82

skipif mysql # not compatible
query I rowsort label-3278
SELECT - CAST ( + col1 AS INTEGER ) + col2 FROM tab1
----
21
54
82

query I rowsort
SELECT - col0 * + + col1 FROM tab2 WHERE + col1 <= ( + col0 )
----
-5025

query II rowsort
SELECT DISTINCT + 70 - + col0 * + 86 * + 78 AS col0, col1 AS col0 FROM tab0
----
-100550
81
-583526
21
-650606
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3281
SELECT DISTINCT AVG ( ALL - CAST( NULL AS SIGNED ) ) + - 26 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3281
SELECT DISTINCT AVG ( ALL - CAST ( NULL AS INTEGER ) ) + - 26 FROM tab0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3282
SELECT ALL - CAST( - + AVG ( DISTINCT - col1 ) AS SIGNED ) col0 FROM tab0 WHERE ( col0 + + - col0 * + 16 / col2 NOT BETWEEN + ( - col1 ) + - 73 AND - col2 * - 20 )
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3282
SELECT ALL - CAST ( - + AVG ( DISTINCT - col1 ) AS INTEGER ) col0 FROM tab0 WHERE ( col0 + + - col0 * + 16 / col2 NOT BETWEEN + ( - col1 ) + - 73 AND - col2 * - 20 )
----
NULL

query I rowsort
SELECT 88 + - col0 FROM tab1
----
-3
3
37

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col2 - 11 col1, 57 FROM tab2
----
-34
57
-51
57
-69
57

query I rowsort
SELECT ALL - + 97 * 40 FROM tab2 WHERE NULL IS NULL
----
-3880
-3880
-3880

onlyif mysql # aggregate syntax: 
query I rowsort label-3286
SELECT ALL - + ( - COUNT( * ) ) AS col2 FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-3286
SELECT ALL - + ( - COUNT ( * ) ) AS col2 FROM tab0 cor0
----
3

query I rowsort
SELECT + col0 AS col2 FROM tab1 AS cor0 WHERE - col2 IS NULL
----

query I rowsort
SELECT - 86 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 9ac806793c03d3a6b5e3a3029d20e4da

query I rowsort
SELECT col1 * - 21 - col0 FROM tab1
----
-1078
-190
-345

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 51 * col1 col1 FROM tab2
----
-2601
-3417
-3927

query I rowsort
SELECT DISTINCT + 55 FROM tab2 AS cor0 WHERE NOT - col2 IS NULL
----
55

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3292
SELECT DISTINCT + + MAX( - - CAST( NULL AS DECIMAL ) ) FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3292
SELECT DISTINCT + + MAX ( - - CAST ( NULL AS REAL ) ) FROM tab2 cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 18 * 58 - - 43 - + col2 + + ( - col2 ) * + + col1 col2 FROM tab1 AS cor0
----
-2177
-353
733

onlyif mysql # aggregate syntax: 
query I rowsort label-3294
SELECT MIN( ALL - col0 ) AS col0 FROM tab0 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-3294
SELECT MIN ( ALL - col0 ) AS col0 FROM tab0 AS cor0
----
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-3295
SELECT + 8 DIV + ( ( 99 ) ) + + 81 AS col0 FROM tab2 AS cor0
----
81
81
81

skipif mysql # not compatible
query I rowsort label-3295
SELECT + 8 / + ( ( 99 ) ) + + 81 AS col0 FROM tab2 AS cor0
----
81
81
81

query II rowsort
SELECT DISTINCT col2 * + ( + 26 ) * 84, col2 AS col2 FROM tab1
----
128856
59
148512
68
209664
96

query I rowsort
SELECT DISTINCT + - col2 FROM tab1 WHERE NULL IS NULL
----
-59
-68
-96

onlyif mysql # DIV for integer division: 
query I rowsort label-3298
SELECT 20 DIV - - ( + col1 ) FROM tab1
----
0
1
4

skipif mysql # not compatible
query I rowsort label-3298
SELECT 20 / - - ( + col1 ) FROM tab1
----
0
1
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3299
SELECT DISTINCT MIN( - ( - CAST( - col1 AS SIGNED ) ) ) col1, 74 FROM tab0
----
-81
74

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3299
SELECT DISTINCT MIN ( - ( - CAST ( - col1 AS INTEGER ) ) ) col1, 74 FROM tab0
----
-81
74

query I rowsort
SELECT DISTINCT + - col1 FROM tab2 AS cor0 WHERE - col2 IS NOT NULL
----
-51
-67
-77

query I rowsort
SELECT - + 79 * + 15 FROM tab0 cor0
----
-1185
-1185
-1185

query I rowsort
SELECT DISTINCT - + AVG ( - col1 ) FROM tab0 AS cor0 WHERE NULL <> + 70
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col0 col1 FROM tab0 AS cor0 WHERE - 49 IS NOT NULL
----
15
87
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + col1 + - col1 * - col1 + - + col1 col0 FROM tab2
----
2550
4422
5852

query I rowsort
SELECT DISTINCT - + 91 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-3306
SELECT MAX( ALL - 78 ) FROM tab2
----
-78

skipif mysql # not compatible
query I rowsort label-3306
SELECT MAX ( ALL - 78 ) FROM tab2
----
-78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + - 97 + + + col2, + col1 + + col0 col0 FROM tab1 WHERE NOT col2 IS NULL
----
-1
65
-29
138
-38
90

query I rowsort
SELECT 22 AS col1 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT 34 * + col0 + - 28 + - + ( - - 0 ) + - + 75 FROM tab1 AS cor0
----
1631
2787
2991

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3310
SELECT ALL + CAST( + col1 AS SIGNED ) + + col0 FROM tab2 AS cor0
----
141
142
97

skipif mysql # not compatible
query I rowsort label-3310
SELECT ALL + CAST ( + col1 AS INTEGER ) + + col0 FROM tab2 AS cor0
----
141
142
97

onlyif mysql # aggregate syntax: 
query I rowsort label-3311
SELECT ALL - 15 * + - MIN( DISTINCT col2 ) + COUNT( * ) col2 FROM tab2 AS cor0
----
348

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3311
SELECT ALL - 15 * + - MIN ( DISTINCT col2 ) + COUNT ( * ) col2 FROM tab2 AS cor0
----
348

onlyif mysql # aggregate syntax: 
query I rowsort label-3312
SELECT DISTINCT + - MAX( col1 ) + MIN( + col2 ) + 20 AS col1 FROM tab1 AS cor0
----
32

skipif mysql # not compatible
query I rowsort label-3312
SELECT DISTINCT + - MAX ( col1 ) + MIN ( + col2 ) + 20 AS col1 FROM tab1 AS cor0
----
32

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 > - + ( + 17 ) * + col0 * - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3314
SELECT + 42 * - - ( + - MIN( ALL + 57 ) ) FROM tab1 AS cor0 WHERE NULL IN ( 16 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3314
SELECT + 42 * - - ( + - MIN ( ALL + 57 ) ) FROM tab1 AS cor0 WHERE NULL IN ( 16 )
----
NULL

query I rowsort
SELECT DISTINCT - ( + - 37 ) * col1 + + col2 FROM tab1 AS cor0
----
1807
244
614

query III rowsort
SELECT * FROM tab2 WHERE - 69 NOT BETWEEN NULL AND col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3317
SELECT MIN( ALL + col0 ) AS col0 FROM tab1
----
51

skipif mysql # not compatible
query I rowsort label-3317
SELECT MIN ( ALL + col0 ) AS col0 FROM tab1
----
51

query I rowsort
SELECT ALL + 40 * - ( 46 ) - - col1 - - col1 AS col1 FROM tab2
----
-1686
-1706
-1738

query III rowsort
SELECT * FROM tab0 WHERE - col0 + - col2 + + col2 * + + 69 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 WHERE NOT col1 IS NOT NULL AND NOT NULL IS NOT NULL
----

query I rowsort
SELECT 26 FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3322
SELECT ALL MIN( ALL + col2 ) AS col0 FROM tab2
----
23

skipif mysql # not compatible
query I rowsort label-3322
SELECT ALL MIN ( ALL + col2 ) AS col0 FROM tab2
----
23

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 70 NOT BETWEEN NULL AND + col0
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NOT - + col1 * + - col0 BETWEEN NULL AND NULL )
----

query I rowsort
SELECT DISTINCT + - col1 * - + col0 FROM tab2 AS cor0
----
2346
4928
5025

query III rowsort
SELECT * FROM tab0 WHERE NOT + col0 + + 75 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 92 * - 30 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3328
SELECT ALL + ( + CAST( + col2 AS SIGNED ) ) AS col0 FROM tab2 AS cor0
----
23
40
58

skipif mysql # not compatible
query I rowsort label-3328
SELECT ALL + ( + CAST ( + col2 AS INTEGER ) ) AS col0 FROM tab2 AS cor0
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-3329
SELECT + SUM( DISTINCT - col0 ) AS col0 FROM tab1 cor0
----
-227

skipif mysql # not compatible
query I rowsort label-3329
SELECT + SUM ( DISTINCT - col0 ) AS col0 FROM tab1 cor0
----
-227

onlyif mysql # aggregate syntax: 
query I rowsort label-3330
SELECT DISTINCT + MAX( + - 12 ) AS col0 FROM tab1 cor0
----
-12

skipif mysql # not compatible
query I rowsort label-3330
SELECT DISTINCT + MAX ( + - 12 ) AS col0 FROM tab1 cor0
----
-12

query I rowsort
SELECT DISTINCT - col2 AS col1 FROM tab0 cor0 WHERE + col0 + col1 <> - 82
----
-10
-47
-99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * + - 51 col0 FROM tab2
----
2601
3417
3927

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3333
SELECT DISTINCT * FROM tab1 WHERE NOT NULL IN ( CAST( - 61 AS SIGNED ) * col1 )
----

skipif mysql # not compatible
query III rowsort label-3333
SELECT DISTINCT * FROM tab1 WHERE NOT NULL IN ( CAST ( - 61 AS INTEGER ) * col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3334
SELECT ( col0 ) DIV - + col1 + + col0 AS col2 FROM tab2
----
46
64
74

skipif mysql # not compatible
query I rowsort label-3334
SELECT ( col0 ) / - + col1 + + col0 AS col2 FROM tab2
----
46
64
74

query II rowsort
SELECT col2, - col2 AS col2 FROM tab0
----
10
-10
47
-47
99
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-3336
SELECT 90 DIV - col2 FROM tab1
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-3336
SELECT 90 / - col2 FROM tab1
----
-1
-1
0

query I rowsort
SELECT - ( + 43 ) + + 2 FROM tab2 AS cor0
----
-41
-41
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-3338
SELECT - + COUNT( * ) FROM tab1 cor0 WHERE NOT ( - col0 ) < NULL
----
0

skipif mysql # not compatible
query I rowsort label-3338
SELECT - + COUNT ( * ) FROM tab1 cor0 WHERE NOT ( - col0 ) < NULL
----
0

query II rowsort
SELECT DISTINCT col0 * - col1 + - 79 AS col0, col1 FROM tab0 AS cor0
----
-1294
81
-176
1
-1906
21

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 77 NOT BETWEEN + 33 AND + 40 * - col1
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col0 * col1 * - col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3342
SELECT - COUNT( * ) * + 60 AS col1 FROM tab0 AS cor0 WHERE ( - col1 ) BETWEEN + 58 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-3342
SELECT - COUNT ( * ) * + 60 AS col1 FROM tab0 AS cor0 WHERE ( - col1 ) BETWEEN + 58 AND NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3343
SELECT - MAX( DISTINCT - col2 ) * + 55 * + 72 AS col1 FROM tab1
----
233640

skipif mysql # not compatible
query I rowsort label-3343
SELECT - MAX ( DISTINCT - col2 ) * + 55 * + 72 AS col1 FROM tab1
----
233640

onlyif mysql # aggregate syntax: 
query II rowsort label-3344
SELECT ALL - 27 col0, 72 + - ( + - COUNT( * ) ) FROM tab1
----
-27
75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3344
SELECT ALL - 27 col0, 72 + - ( + - COUNT ( * ) ) FROM tab1
----
-27
75

query II rowsort
SELECT - col0, col2 * col1 AS col0 FROM tab1
----
-51
1344
-85
295
-91
3196

query I rowsort
SELECT DISTINCT - col1 FROM tab1 WHERE NULL = NULL
----

query I rowsort
SELECT col0 AS col2 FROM tab1 WHERE - + col0 IS NOT NULL
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-3348
SELECT + MAX( + + col2 ) AS col0 FROM tab0
----
99

skipif mysql # not compatible
query I rowsort label-3348
SELECT + MAX ( + + col2 ) AS col0 FROM tab0
----
99

onlyif mysql # DIV for integer division: 
query I rowsort label-3349
SELECT 66 DIV + - col1 AS col0 FROM tab2
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-3349
SELECT 66 / + - col1 AS col0 FROM tab2
----
-1
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3350
SELECT COUNT( col1 ) AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3350
SELECT COUNT ( col1 ) AS col2 FROM tab1 AS cor0
----
3

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT - col1 - 38 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + col1 + + - col2 AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL IN ( + - col0, col1 + - - 46, + col1 ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + col0 + + col2 col2 FROM tab2 AS cor0
----
115
168
208

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3354
SELECT DISTINCT 59 + - CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3354
SELECT DISTINCT 59 + - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT col0 AS col2 FROM tab0 WHERE NULL IS NULL
----
15
87
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3356
SELECT DISTINCT col1 - + CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3356
SELECT DISTINCT col1 - + CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL

query I rowsort
SELECT ALL + 8 + + - 79 FROM tab0
----
-71
-71
-71

query I rowsort
SELECT col2 + ( - 58 ) + - col1 FROM tab0
----
-69
-92
40

query I rowsort
SELECT col2 * - col1 + ( + 94 ) + 13 * col1 AS col1 FROM tab1
----
-1068
-136
-2491

onlyif mysql # aggregate syntax: 
query I rowsort label-3360
SELECT ALL 27 - - + COUNT( * ) + 38 + - COUNT( * ) FROM tab2
----
65

skipif mysql # not compatible
query I rowsort label-3360
SELECT ALL 27 - - + COUNT ( * ) + 38 + - COUNT ( * ) FROM tab2
----
65

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3361
SELECT - ( CAST( NULL AS DECIMAL ) ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3361
SELECT - ( CAST ( NULL AS REAL ) ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT ( - 18 ) + - col1 FROM tab2
----
-69
-85
-95

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + + 99 IS NULL
----

query I rowsort
SELECT ALL - 92 * - - col1 * + + col0 FROM tab1
----
-39100
-393484
-65688

onlyif mysql # aggregate syntax: 
query I rowsort label-3365
SELECT COUNT( + 46 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-3365
SELECT COUNT ( + 46 ) FROM tab1
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3366
SELECT ALL - 44 * + 28 * - col0 * - + col2 / - CAST( NULL AS SIGNED ) / - 96 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3366
SELECT ALL - 44 * + 28 * - col0 * - + col2 / - CAST ( NULL AS INTEGER ) / - 96 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3367
SELECT DISTINCT + SUM( DISTINCT - col1 ) FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-103

skipif mysql # not compatible
query I rowsort label-3367
SELECT DISTINCT + SUM ( DISTINCT - col1 ) FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-103

query II rowsort
SELECT ALL - 19, 15 - - - 31 AS col1 FROM tab2
----
-19
-16
-19
-16
-19
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-3369
SELECT DISTINCT COUNT( + col0 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-3369
SELECT DISTINCT COUNT ( + col0 ) FROM tab1
----
3

query II rowsort
SELECT ALL + col2, + col1 AS col0 FROM tab1 cor0
----
59
5
68
47
96
14

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND + col1 / - col1 * + - 89
----

query II rowsort
SELECT - col0 AS col0, + col2 AS col1 FROM tab0 AS cor0
----
-15
47
-87
10
-97
99

query I rowsort
SELECT ( 71 ) AS col2 FROM tab2 AS cor0
----
71
71
71

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - - col1 * 39 + 17 col2 FROM tab2 AS cor0
----
192209
195992
91511

onlyif mysql # aggregate syntax: 
query I rowsort label-3375
SELECT DISTINCT 41 * COUNT( * ) + - COUNT( * ) FROM tab1
----
120

skipif mysql # not compatible
query I rowsort label-3375
SELECT DISTINCT 41 * COUNT ( * ) + - COUNT ( * ) FROM tab1
----
120

query I rowsort
SELECT DISTINCT + col1 * ( + 45 ) FROM tab2
----
2295
3015
3465

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3377
SELECT MAX( - 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-3377
SELECT MAX ( - CAST ( NULL AS INTEGER ) ) col2 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3378
SELECT - MIN( ( + col2 ) ) AS col1 FROM tab0
----
-10

skipif mysql # not compatible
query I rowsort label-3378
SELECT - MIN ( ( + col2 ) ) AS col1 FROM tab0
----
-10

query I rowsort
SELECT DISTINCT + - col1 FROM tab0 WHERE col2 > + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3380
SELECT + 10 / CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3380
SELECT + 10 / CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - - col1 * + col0 + - 62 * - - col1 FROM tab2 cor0
----
-816
154
871

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3382
SELECT * FROM tab2 AS cor0 WHERE col0 < - + 48 / + - 49 * - col0 + + + CAST( + col2 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-3382
SELECT * FROM tab2 AS cor0 WHERE col0 < - + 48 / + - 49 * - col0 + + + CAST ( + col2 AS INTEGER )
----

query I rowsort
SELECT + col0 * - 55 FROM tab0 AS cor0
----
-4785
-5335
-825

query III rowsort
SELECT * FROM tab2 cor0 WHERE col1 * + - col0 BETWEEN NULL AND + 23 + - + ( - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3385
SELECT MAX( - 57 ) - - 81 col1 FROM tab0 cor0 WHERE - col2 IN ( col2 * + - col0 * col1 )
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3385
SELECT MAX ( - 57 ) - - 81 col1 FROM tab0 cor0 WHERE - col2 IN ( col2 * + - col0 * col1 )
----
NULL

query II rowsort
SELECT DISTINCT - 70 + + + ( - ( col0 ) ) AS col2, col2 FROM tab2 AS cor0
----
-116
23
-134
40
-145
58

query I rowsort
SELECT DISTINCT 22 AS col0 FROM tab2 cor0 WHERE ( - 75 IS NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3388
SELECT - CAST( + 21 AS SIGNED ) col2 FROM tab2 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3388
SELECT - CAST ( + 21 AS INTEGER ) col2 FROM tab2 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE ( ( + col1 ) - + col2 ) >= 85
----

query I rowsort
SELECT DISTINCT - - col0 * + - col0 + + - 55 + col1 AS col1 FROM tab0 AS cor0
----
-199
-7603
-9463

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3391
SELECT + col1 AS col0 FROM tab0 AS cor0 WHERE - col0 IN ( - CAST( + + col1 AS SIGNED ) * + col2, + col1 + col2 + - - 99 + + col1 + CAST( NULL AS SIGNED ) / + + col1, + col0 )
----

skipif mysql # not compatible
query I rowsort label-3391
SELECT + col1 AS col0 FROM tab0 AS cor0 WHERE - col0 IN ( - CAST ( + + col1 AS INTEGER ) * + col2, + col1 + col2 + - - 99 + + col1 + CAST ( NULL AS INTEGER ) / + + col1, + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3392
SELECT + + 80 * + COUNT( * ) FROM tab1 AS cor0
----
240

skipif mysql # not compatible
query I rowsort label-3392
SELECT + + 80 * + COUNT ( * ) FROM tab1 AS cor0
----
240

onlyif mysql # aggregate syntax: 
query I rowsort label-3393
SELECT DISTINCT COUNT( * ) * - + COUNT( * ) FROM tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-3393
SELECT DISTINCT COUNT ( * ) * - + COUNT ( * ) FROM tab2 AS cor0
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3394
SELECT * FROM tab0 AS cor0 WHERE col1 * - col1 IN ( 59 * + + CAST( NULL AS SIGNED ), + CAST( NULL AS SIGNED ), + col1 )
----

skipif mysql # not compatible
query III rowsort label-3394
SELECT * FROM tab0 AS cor0 WHERE col1 * - col1 IN ( 59 * + + CAST ( NULL AS INTEGER ), + CAST ( NULL AS INTEGER ), + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3395
SELECT DISTINCT + + 22 + COUNT( * ) col0 FROM tab1 AS cor0
----
25

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3395
SELECT DISTINCT + + 22 + COUNT ( * ) col0 FROM tab1 AS cor0
----
25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3396
SELECT ( - - col1 ) / + 32 * + 73 + + - col0 * - - CAST( NULL AS SIGNED ) AS col1 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3396
SELECT ( - - col1 ) / + 32 * + 73 + + - col0 * - - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 94 AS col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT + col0 * - col1 * col2 FROM tab0
----
-18270
-57105
-9603

onlyif mysql # aggregate syntax: 
query I rowsort label-3399
SELECT DISTINCT 43 * + COUNT( * ) FROM tab1, tab2 AS cor0
----
387

skipif mysql # not compatible
query I rowsort label-3399
SELECT DISTINCT 43 * + COUNT ( * ) FROM tab1, tab2 AS cor0
----
387

query III rowsort
SELECT * FROM tab2 WHERE NULL NOT BETWEEN - col0 + + + 7 AND + - 64
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 97 col1, + 79 FROM tab0
----
97
79
97
79
97
79

query I rowsort
SELECT + 90 * col1 AS col2 FROM tab0
----
1890
7290
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3403
SELECT DISTINCT CAST( + CAST( - + col0 AS SIGNED ) AS SIGNED ) FROM tab0 AS cor0
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-3403
SELECT DISTINCT CAST ( + CAST ( - + col0 AS INTEGER ) AS INTEGER ) FROM tab0 AS cor0
----
-15
-87
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-3404
SELECT DISTINCT ( - col1 ) DIV + col0 AS col2 FROM tab0 AS cor0
----
-5
0

skipif mysql # not compatible
query I rowsort label-3404
SELECT DISTINCT ( - col1 ) / + col0 AS col2 FROM tab0 AS cor0
----
-5
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3405
SELECT ALL COUNT( * ), + COUNT( * ) FROM tab2 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-3405
SELECT ALL COUNT ( * ), + COUNT ( * ) FROM tab2 AS cor0
----
3
3

onlyif mysql # DIV for integer division: 
query II rowsort label-3406
SELECT + + col0 DIV - 61 - - col0 AS col2, 82 + + 56 - + - 51 + + col0 AS col2 FROM tab2 AS cor0
----
46
235
63
253
74
264

skipif mysql # not compatible
query II rowsort label-3406
SELECT + + col0 / - 61 - - col0 AS col2, 82 + + 56 - + - 51 + + col0 AS col2 FROM tab2 AS cor0
----
46
235
63
253
74
264

onlyif mysql # aggregate syntax: 
query I rowsort label-3407
SELECT + COUNT( * ) * - 99 FROM tab0 cor0
----
-297

skipif mysql # not compatible
query I rowsort label-3407
SELECT + COUNT ( * ) * - 99 FROM tab0 cor0
----
-297

onlyif mysql # aggregate syntax: 
query I rowsort label-3408
SELECT ALL - SUM( DISTINCT - + col1 ) AS col1 FROM tab2 AS cor0
----
195

skipif mysql # not compatible
query I rowsort label-3408
SELECT ALL - SUM ( DISTINCT - + col1 ) AS col1 FROM tab2 AS cor0
----
195

query I rowsort
SELECT DISTINCT ( 60 ) AS col1 FROM tab1 AS cor0
----
60

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + + col1 ) col0 FROM tab1 AS cor0
----
14
47
5

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE - 91 / - - 70 IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - 72 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - + 82 + col0 AS col1 FROM tab0 AS cor0
----
-67
15
5

onlyif mysql # aggregate syntax: 
query I rowsort label-3414
SELECT ALL - COUNT( * ) FROM tab1 AS cor0 WHERE ( NULL ) NOT BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-3414
SELECT ALL - COUNT ( * ) FROM tab1 AS cor0 WHERE ( NULL ) NOT BETWEEN NULL AND NULL
----
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col0 - - col0 + - col0 + - col2 * - + col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * + + col0 + + + 53 col2 FROM tab2 AS cor0
----
2399
4981
5078

query III rowsort
SELECT * FROM tab2 WHERE NOT - ( - + 83 ) > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3418
SELECT DISTINCT COUNT( * ) + COUNT( * ) FROM tab0 WHERE NOT + - col1 IN ( - col0 )
----
6

skipif mysql # not compatible
query I rowsort label-3418
SELECT DISTINCT COUNT ( * ) + COUNT ( * ) FROM tab0 WHERE NOT + - col1 IN ( - col0 )
----
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col1 col1, - col1 FROM tab2
----
-51
-51
-67
-67
-77
-77

query III rowsort
SELECT * FROM tab1 WHERE + col0 BETWEEN NULL AND col2 + - - col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3421
SELECT DISTINCT col1 DIV - + col2 col0 FROM tab0 AS cor0
----
-1
-2
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3421
SELECT DISTINCT col1 / - + col2 col0 FROM tab0 AS cor0
----
-1
-2
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 27 IS NULL
----

query I rowsort
SELECT DISTINCT + 94 + + - col1 FROM tab0 AS cor0
----
13
73
93

query I rowsort
SELECT 25 - + - 56 * + col2 AS col2 FROM tab0
----
2657
5569
585

query III rowsort
SELECT * FROM tab0 WHERE NULL = + 2
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3426
SELECT + col0, ( 2 ) * - CAST( - - col1 AS SIGNED ) + - + col1 + col0 FROM tab0 AS cor0 WHERE 39 + + col1 IS NOT NULL
----
15
-228
87
24
97
94

skipif mysql # not compatible
query II rowsort label-3426
SELECT + col0, ( 2 ) * - CAST ( - - col1 AS INTEGER ) + - + col1 + col0 FROM tab0 AS cor0 WHERE 39 + + col1 IS NOT NULL
----
15
-228
87
24
97
94

onlyif mysql # aggregate syntax: 
query I rowsort label-3427
SELECT ALL - COUNT( * ) FROM tab0 AS cor0 WHERE NOT col2 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3427
SELECT ALL - COUNT ( * ) FROM tab0 AS cor0 WHERE NOT col2 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3428
SELECT + 51 + - + 18 DIV COUNT( * ) AS col0 FROM tab0 cor0
----
45

skipif mysql # not compatible
query I rowsort label-3428
SELECT + 51 + - + 18 / COUNT ( * ) AS col0 FROM tab0 cor0
----
45

query I rowsort
SELECT ALL + 66 + ( + col1 ) * - col2 - - col2 FROM tab0 AS cor0 WHERE NOT NULL <= ( NULL )
----

query I rowsort
SELECT ALL 7 FROM tab1 AS cor0 WHERE col1 * - col0 IS NOT NULL
----
7
7
7

query I rowsort
SELECT + ( 61 ) * - col0 FROM tab0
----
-5307
-5917
-915

query I rowsort
SELECT DISTINCT 55 FROM tab0 WHERE NOT NULL NOT BETWEEN NULL AND + + 53
----

query II rowsort
SELECT ALL col2, + 78 FROM tab0
----
10
78
47
78
99
78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3434
SELECT DISTINCT + CAST( NULL AS SIGNED ) * 88 AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3434
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * 88 AS col2 FROM tab2
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * 37 col0 FROM tab1
----
2183
2516
3552

query I rowsort
SELECT ( - + 56 ) FROM tab2
----
-56
-56
-56

query I rowsort
SELECT + col1 / col2 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT + col1 AS col2, - 94 FROM tab0 AS cor0
----
1
-94
21
-94
81
-94

query I rowsort
SELECT ALL - ( + 38 ) * + 98 * - col0 FROM tab2 AS cor0
----
171304
238336
279300

onlyif mysql # aggregate syntax: 
query I rowsort label-3440
SELECT 64 * + - COUNT( * ) FROM tab2 AS cor0
----
-192

skipif mysql # not compatible
query I rowsort label-3440
SELECT 64 * + - COUNT ( * ) FROM tab2 AS cor0
----
-192

onlyif mysql # DIV for integer division: 
query I rowsort label-3441
SELECT 90 DIV - col0 AS col1 FROM tab1
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-3441
SELECT 90 / - col0 AS col1 FROM tab1
----
-1
-1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3442
SELECT 16 * COUNT( * ) FROM tab0
----
48

skipif mysql # not compatible
query I rowsort label-3442
SELECT 16 * COUNT ( * ) FROM tab0
----
48

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 35 col1 FROM tab2 AS cor0
----
35
35
35

query II rowsort
SELECT ALL - + 61 + - col2 * - col2 + + + col0, - col1 AS col0 FROM tab0 AS cor0
----
126
-21
2163
-81
9837
-1

query I rowsort
SELECT col2 + - ( + - col0 ) AS col0 FROM tab2 AS cor0
----
104
133
69

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 59 BETWEEN - 26 / col0 * - + col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3447
SELECT COUNT( * ) * - COUNT( * ) AS col2 FROM tab0 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-3447
SELECT COUNT ( * ) * - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-3448
SELECT DISTINCT + COUNT( * ) * COUNT( * ) + - + COUNT( * ) * + + COUNT( + col1 ) AS col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3448
SELECT DISTINCT + COUNT ( * ) * COUNT ( * ) + - + COUNT ( * ) * + + COUNT ( + col1 ) AS col1 FROM tab0 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 1 col1 FROM tab0 AS cor0
----
1
1
1

query III rowsort
SELECT * FROM tab1 WHERE ( NOT NULL BETWEEN + 41 AND NULL )
----

query I rowsort
SELECT DISTINCT - ( - 31 ) * col1 + - - 7 FROM tab2 WHERE NOT col1 + + 5 <> - col1
----

query I rowsort
SELECT ALL 70 + col1 AS col1 FROM tab2
----
121
137
147

query II rowsort
SELECT ( - col2 ), col2 AS col0 FROM tab2
----
-23
23
-40
40
-58
58

onlyif mysql # aggregate syntax: 
query I rowsort label-3454
SELECT DISTINCT + COUNT( - col1 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-3454
SELECT DISTINCT + COUNT ( - col1 ) FROM tab1
----
3

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3455
SELECT * FROM tab2 WHERE + + col1 + - + 4 >= + CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-3455
SELECT * FROM tab2 WHERE + + col1 + - + 4 >= + CAST ( NULL AS REAL )
----

query I rowsort
SELECT ALL + + col2 / col2 FROM tab0 WHERE NOT ( col1 + + + col2 IS NOT NULL )
----

query I rowsort
SELECT DISTINCT + 16 + + col2 AS col2 FROM tab2 WHERE NOT 91 * - ( + 82 ) * 17 > NULL
----

query I rowsort
SELECT DISTINCT - ( + - 83 ) FROM tab1 AS cor0
----
83

onlyif mysql # DIV for integer division: 
query I rowsort label-3459
SELECT + 50 + + + ( - col2 ) DIV - + col1 AS col1 FROM tab0 AS cor0
----
149
50
50

skipif mysql # not compatible
query I rowsort label-3459
SELECT + 50 + + + ( - col2 ) / - + col1 AS col1 FROM tab0 AS cor0
----
149
50
50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3460
SELECT DISTINCT - 18 * CAST( NULL AS SIGNED ) - 15 AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3460
SELECT DISTINCT - 18 * CAST ( NULL AS INTEGER ) - 15 AS col2 FROM tab2
----
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE - col2 * 50 / + - 45 * col1 + 23 - 82 + col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3462
SELECT ALL - MIN( DISTINCT + col0 ) FROM tab0
----
-15

skipif mysql # not compatible
query I rowsort label-3462
SELECT ALL - MIN ( DISTINCT + col0 ) FROM tab0
----
-15

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col2 <> - col1
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3464
SELECT DISTINCT + - col0 - - CAST( col1 AS DECIMAL ) * - + CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3464
SELECT DISTINCT + - col0 - - CAST ( col1 AS REAL ) * - + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL

query II rowsort
SELECT ALL col1, 89 FROM tab1 AS cor0
----
14
89
47
89
5
89

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3466
SELECT + - 67 * + - col0 + - 21 DIV CAST( 74 AS SIGNED ) FROM tab1 AS cor0
----
3417
5695
6097

skipif mysql # not compatible
query I rowsort label-3466
SELECT + - 67 * + - col0 + - 21 / CAST ( 74 AS INTEGER ) FROM tab1 AS cor0
----
3417
5695
6097

onlyif mysql # aggregate syntax: 
query I rowsort label-3467
SELECT DISTINCT + COUNT( * ) FROM tab0 AS cor0 WHERE NOT 44 > + col0 / - col1
----
0

skipif mysql # not compatible
query I rowsort label-3467
SELECT DISTINCT + COUNT ( * ) FROM tab0 AS cor0 WHERE NOT 44 > + col0 / - col1
----
0

query I rowsort
SELECT DISTINCT + - col0 / col1 + - - col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) <= NULL
----

query I rowsort
SELECT - + 28 FROM tab1 AS cor0 WHERE NOT 73 + col1 > - ( + + 64 )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 67 * - 65 * + + 38 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + - 10 AS col2 FROM tab2 AS cor0
----
-10
-10
-10

query I rowsort
SELECT DISTINCT + ( - + 91 ) * 26 + col1 FROM tab1
----
-2319
-2352
-2361

query I rowsort
SELECT + 43 AS col2 FROM tab0 WHERE NOT - 5 - - - col0 * col2 IN ( col1 + + + 11 )
----
43
43
43

query I rowsort
SELECT ALL + col2 * + - 4 AS col0 FROM tab0
----
-188
-396
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-3475
SELECT ALL + MIN( ALL + - col2 ) AS col0 FROM tab0
----
-99

skipif mysql # not compatible
query I rowsort label-3475
SELECT ALL + MIN ( ALL + - col2 ) AS col0 FROM tab0
----
-99

query I rowsort
SELECT - 16 AS col1 FROM tab2
----
-16
-16
-16

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 26 col0 FROM tab0 AS cor0
----
26

query I rowsort
SELECT DISTINCT ( col2 ) * - col2 * - 27 + - col1 FROM tab2 AS cor0
----
14232
43123
90761

onlyif mysql # aggregate syntax: 
query I rowsort label-3479
SELECT DISTINCT - COUNT( ALL + + col0 ) AS col1 FROM tab2 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3479
SELECT DISTINCT - COUNT ( ALL + + col0 ) AS col1 FROM tab2 cor0
----
-3

query I rowsort
SELECT ALL 50 * - + col2 AS col2 FROM tab2
----
-1150
-2000
-2900

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3481
SELECT + CAST( + + col2 AS SIGNED ) AS col1 FROM tab0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-3481
SELECT + CAST ( + + col2 AS INTEGER ) AS col1 FROM tab0
----
10
47
99

query I rowsort
SELECT - 49 * - col2 FROM tab1
----
2891
3332
4704

query I rowsort
SELECT ALL - 17 + + col0 AS col1 FROM tab1 AS cor0
----
34
68
74

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col2 >= - col0 + col2 + - 81
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + + 90 + - - 67 AS col0 FROM tab2 cor0
----
157
157
157

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3486
SELECT ALL - 69 + - CAST( - 7 AS SIGNED ) DIV - 85 AS col0 FROM tab1 AS cor0
----
-69
-69
-69

skipif mysql # not compatible
query I rowsort label-3486
SELECT ALL - 69 + - CAST ( - 7 AS INTEGER ) / - 85 AS col0 FROM tab1 AS cor0
----
-69
-69
-69

query I rowsort
SELECT DISTINCT - ( + col1 ) + - col1 AS col1 FROM tab1 AS cor0
----
-10
-28
-94

query III rowsort
SELECT * FROM tab0 WHERE + col2 + - - 93 * - col2 IS NULL
----

query II rowsort
SELECT - col1 + + ( - + 62 ) * + col2, col2 * + ( + 71 ) AS col0 FROM tab1
----
-3663
4189
-4263
4828
-5966
6816

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND NULL AND col0 IS NULL
----

query I rowsort
SELECT DISTINCT + 36 + col0 FROM tab2
----
100
111
82

onlyif mysql # aggregate syntax: 
query I rowsort label-3492
SELECT COUNT( * ) + - 67 FROM tab2
----
-64

skipif mysql # not compatible
query I rowsort label-3492
SELECT COUNT ( * ) + - 67 FROM tab2
----
-64

onlyif mysql # DIV for integer division: 
query I rowsort label-3493
SELECT col0 DIV + ( + col2 ) + - 72 FROM tab2
----
-70
-71
-71

skipif mysql # not compatible
query I rowsort label-3493
SELECT col0 / + ( + col2 ) + - 72 FROM tab2
----
-70
-71
-71

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3494
SELECT col1 * 26 + + col2 + + CAST( - col2 AS SIGNED ) * - - col0, - 99 * 86 DIV + + col2 AS col1 FROM tab0
----
-314
-851
-9478
-86
1448
-181

skipif mysql # not compatible
query II rowsort label-3494
SELECT col1 * 26 + + col2 + + CAST ( - col2 AS INTEGER ) * - - col0, - 99 * 86 / + + col2 AS col1 FROM tab0
----
-314
-851
-9478
-86
1448
-181

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3495
SELECT - ( + CAST( NULL AS SIGNED ) ) AS col2 FROM tab1 WHERE - col1 IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3495
SELECT - ( + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab1 WHERE - col1 IS NOT NULL
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col1 + + 70 FROM tab1
----
23
56
65

onlyif mysql # DIV for integer division: 
query I rowsort label-3497
SELECT 15 DIV + ( col1 ) * ( - 24 ) + - - col0 FROM tab2
----
46
64
75

skipif mysql # not compatible
query I rowsort label-3497
SELECT 15 / + ( col1 ) * ( - 24 ) + - - col0 FROM tab2
----
46
64
75

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col0 + + - 26 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3499
SELECT + 2 DIV - - col1 AS col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3499
SELECT + 2 / - - col1 AS col0 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3500
SELECT ALL - ( + COUNT( * ) ) * + 39 AS col1, + 73 FROM tab2
----
-117
73

skipif mysql # not compatible
query II rowsort label-3500
SELECT ALL - ( + COUNT ( * ) ) * + 39 AS col1, + 73 FROM tab2
----
-117
73

query I rowsort
SELECT - 67 + + + 31 FROM tab1
----
-36
-36
-36

query I rowsort
SELECT - 95 + col1 + col2 / - col2 * - 10 * col2 AS col2 FROM tab1 AS cor0 WHERE NOT 15 * - col1 < 53
----

query I rowsort
SELECT ALL - ( 55 ) FROM tab2 AS cor0
----
-55
-55
-55

query I rowsort
SELECT ALL - + 89 AS col1 FROM tab1 AS cor0
----
-89
-89
-89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3505
SELECT ALL - CAST( + 63 AS SIGNED ) FROM tab1 AS cor0
----
-63
-63
-63

skipif mysql # not compatible
query I rowsort label-3505
SELECT ALL - CAST ( + 63 AS INTEGER ) FROM tab1 AS cor0
----
-63
-63
-63

onlyif mysql # DIV for integer division: 
query I rowsort label-3506
SELECT ALL + col1 DIV col0 * col0 * + + col1 * + col0 FROM tab2
----
0
107916
315392

skipif mysql # not compatible
query I rowsort label-3506
SELECT ALL + col1 / col0 * col0 * + + col1 * + col0 FROM tab2
----
0
107916
315392

onlyif mysql # aggregate syntax: 
query I rowsort label-3507
SELECT - MAX( - - col2 ) AS col1 FROM tab2
----
-58

skipif mysql # not compatible
query I rowsort label-3507
SELECT - MAX ( - - col2 ) AS col1 FROM tab2
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-3508
SELECT DISTINCT ( - - SUM( DISTINCT + col1 ) ) FROM tab1 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-3508
SELECT DISTINCT ( - - SUM ( DISTINCT + col1 ) ) FROM tab1 AS cor0
----
66

query I rowsort
SELECT + col0 FROM tab2 AS cor0 WHERE NOT 51 < 87 / - col1
----
46
64
75

query II rowsort
SELECT + 35, col0 FROM tab2 AS cor0
----
35
46
35
64
35
75

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col0 / - col0 IS NULL
----

query I rowsort
SELECT DISTINCT col2 * + 20 FROM tab1
----
1180
1360
1920

query I rowsort
SELECT - 44 AS col2 FROM tab2 WHERE NOT ( - ( 96 ) + col2 ) NOT IN ( col2 )
----

query I rowsort
SELECT col0 * - 44 AS col1 FROM tab2 WHERE NOT - col1 IS NULL
----
-2024
-2816
-3300

query I rowsort
SELECT ALL col1 AS col2 FROM tab2 WHERE NOT - col2 > ( 67 )
----
51
67
77

query I rowsort
SELECT DISTINCT + 56 * - col0 - col2 FROM tab0
----
-4882
-5531
-887

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3517
SELECT ( 7 ) * MAX( DISTINCT ( + col2 ) DIV + col0 ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-3517
SELECT ( 7 ) * MAX ( DISTINCT ( + col2 ) / + col0 ) FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3518
SELECT ALL COUNT( * ) * ( ( 34 ) ) FROM tab2
----
102

skipif mysql # not compatible
query I rowsort label-3518
SELECT ALL COUNT ( * ) * ( ( 34 ) ) FROM tab2
----
102

query I rowsort
SELECT col2 * - ( col2 ) AS col1 FROM tab0
----
-100
-2209
-9801

query I rowsort
SELECT ALL - col0 AS col2 FROM tab1 WHERE 30 IS NULL
----

query I rowsort
SELECT 23 * 76 FROM tab1
----
1748
1748
1748

query III rowsort
SELECT * FROM tab0 WHERE - col1 - col0 * - col1 BETWEEN col1 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3523
SELECT - 34 + + COUNT( * ) AS col2 FROM tab1 WHERE col0 BETWEEN col2 AND ( NULL )
----
-34

skipif mysql # not compatible
query I rowsort label-3523
SELECT - 34 + + COUNT ( * ) AS col2 FROM tab1 WHERE col0 BETWEEN col2 AND ( NULL )
----
-34

query I rowsort
SELECT ( - 98 ) * col1 FROM tab2 WHERE NOT + 86 > NULL
----

query I rowsort
SELECT col2 FROM tab0 WHERE NOT NULL IN ( col1 )
----

query I rowsort
SELECT ALL 77 * - col0 FROM tab0
----
-1155
-6699
-7469

query I rowsort
SELECT + 67 - + 76 FROM tab0
----
-9
-9
-9

query I rowsort
SELECT ALL - col2 * - 95 FROM tab2
----
2185
3800
5510

onlyif mysql # aggregate syntax: 
query I rowsort label-3529
SELECT ALL COUNT( * ) * 41 AS col1 FROM tab1
----
123

skipif mysql # not compatible
query I rowsort label-3529
SELECT ALL COUNT ( * ) * 41 AS col1 FROM tab1
----
123

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3530
SELECT col2 AS col2 FROM tab2 WHERE NOT ( CAST( + col0 AS SIGNED ) * col2 ) IS NULL
----
23
40
58

skipif mysql # not compatible
query I rowsort label-3530
SELECT col2 AS col2 FROM tab2 WHERE NOT ( CAST ( + col0 AS INTEGER ) * col2 ) IS NULL
----
23
40
58

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3531
SELECT DISTINCT col0 * - CAST( NULL AS DECIMAL ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3531
SELECT DISTINCT col0 * - CAST ( NULL AS REAL ) FROM tab1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 85 * col2 col1 FROM tab1
----
5015
5780
8160

query III rowsort
SELECT * FROM tab2 WHERE - col1 / col0 NOT IN ( - 17 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3534
SELECT ALL + COUNT( * ) FROM tab1 WHERE NOT + col1 * ( + col2 ) >= - col2 + col2
----
0

skipif mysql # not compatible
query I rowsort label-3534
SELECT ALL + COUNT ( * ) FROM tab1 WHERE NOT + col1 * ( + col2 ) >= - col2 + col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3535
SELECT DISTINCT COUNT( * ) * + 79 AS col2 FROM tab0
----
237

skipif mysql # not compatible
query I rowsort label-3535
SELECT DISTINCT COUNT ( * ) * + 79 AS col2 FROM tab0
----
237

onlyif mysql # aggregate syntax: 
query I rowsort label-3536
SELECT DISTINCT SUM( ALL + 18 ) col0 FROM tab2
----
54

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3536
SELECT DISTINCT SUM ( ALL + 18 ) col0 FROM tab2
----
54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3537
SELECT + MIN( - CAST( NULL AS SIGNED ) ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3537
SELECT + MIN ( - CAST ( NULL AS INTEGER ) ) FROM tab0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3538
SELECT + 64 DIV col2 AS col0 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-3538
SELECT + 64 / col2 AS col0 FROM tab1
----
0
0
1

onlyif mysql # DIV for integer division: 
query I rowsort label-3539
SELECT - 81 DIV col0 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-3539
SELECT - 81 / col0 FROM tab2
----
-1
-1
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3540
SELECT DISTINCT col2 - - CAST( NULL AS SIGNED ) * - ( + col2 ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3540
SELECT DISTINCT col2 - - CAST ( NULL AS INTEGER ) * - ( + col2 ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT col1 + - col0 * + col2 FROM tab0 AS cor0
----
-624
-849
-9602

query I rowsort
SELECT + 30 + 77 AS col0 FROM tab1 AS cor0
----
107
107
107

query I rowsort
SELECT ALL - col0 * 14 AS col0 FROM tab2 AS cor0
----
-1050
-644
-896

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3544
SELECT CAST( NULL AS DECIMAL ) / + 84 FROM tab0 cor0 WHERE 69 IN ( - 30 )
----

skipif mysql # not compatible
query I rowsort label-3544
SELECT CAST ( NULL AS REAL ) / + 84 FROM tab0 cor0 WHERE 69 IN ( - 30 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3545
SELECT DISTINCT - SUM( - col0 ) DIV + COUNT( * ) AS col0 FROM tab1 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-3545
SELECT DISTINCT - SUM ( - col0 ) / + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
75

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3546
SELECT * FROM tab2 AS cor0 WHERE CAST( NULL AS SIGNED ) NOT BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query III rowsort label-3546
SELECT * FROM tab2 AS cor0 WHERE CAST ( NULL AS INTEGER ) NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT 27 / col0 FROM tab0 AS cor0 WHERE col2 * + 49 IS NULL
----

query I rowsort
SELECT DISTINCT col0 FROM tab2 WHERE NOT ( - ( - col1 ) ) >= + col0
----
75

query III rowsort
SELECT * FROM tab2 WHERE NOT col2 <> ( col1 ) / + col0
----

query I rowsort
SELECT ALL col2 * 19 FROM tab0
----
1881
190
893

onlyif mysql # DIV for integer division: 
query I rowsort label-3551
SELECT DISTINCT + col1 DIV col0 AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3551
SELECT DISTINCT + col1 / col0 AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3552
SELECT DISTINCT col1 DIV 25 AS col2 FROM tab1 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-3552
SELECT DISTINCT col1 / 25 AS col2 FROM tab1 AS cor0
----
0
1

query I rowsort
SELECT - 84 * col1 FROM tab1 AS cor0
----
-1176
-3948
-420

onlyif mysql # aggregate syntax: 
query I rowsort label-3554
SELECT ALL + MIN( - col2 ) col0 FROM tab0 AS cor0
----
-99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3554
SELECT ALL + MIN ( - col2 ) col0 FROM tab0 AS cor0
----
-99

query I rowsort
SELECT DISTINCT + - 55 FROM tab0 AS cor0
----
-55

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3556
SELECT ALL COUNT( * ) DIV - 80 FROM tab0 AS cor0 WHERE NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3556
SELECT ALL COUNT ( * ) / - 80 FROM tab0 AS cor0 WHERE NULL IS NULL
----
0

query I rowsort
SELECT DISTINCT + col0 - col1 * + col1 AS col2 FROM tab2 AS cor0 WHERE NOT ( - col0 ) IS NULL
----
-2555
-4414
-5865

onlyif mysql # aggregate syntax: 
query I rowsort label-3558
SELECT ALL + SUM( DISTINCT + col0 ) FROM tab2 AS cor0
----
185

skipif mysql # not compatible
query I rowsort label-3558
SELECT ALL + SUM ( DISTINCT + col0 ) FROM tab2 AS cor0
----
185

onlyif mysql # aggregate syntax: 
query I rowsort label-3559
SELECT + MIN( - col0 ) FROM tab2 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-3559
SELECT + MIN ( - col0 ) FROM tab2 AS cor0
----
-75

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( col0 + col0 / - 64 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3561
SELECT + COUNT( * ) * 76 FROM tab1 AS cor0
----
228

skipif mysql # not compatible
query I rowsort label-3561
SELECT + COUNT ( * ) * 76 FROM tab1 AS cor0
----
228

query I rowsort
SELECT 82 + + 99 * 57 FROM tab2 AS cor0 WHERE NOT ( - col2 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3563
SELECT COUNT( * ) * - 45 FROM tab2 AS cor0
----
-135

skipif mysql # not compatible
query I rowsort label-3563
SELECT COUNT ( * ) * - 45 FROM tab2 AS cor0
----
-135

query III rowsort
SELECT * FROM tab2 WHERE NOT ( col2 * + 53 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3565
SELECT * FROM tab0 WHERE NOT ( - CAST( 12 AS SIGNED ) ) * + 8 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-3565
SELECT * FROM tab0 WHERE NOT ( - CAST ( 12 AS INTEGER ) ) * + 8 IS NOT NULL
----

query I rowsort
SELECT col2 * + 40 FROM tab1
----
2360
2720
3840

onlyif mysql # aggregate syntax: 
query I rowsort label-3567
SELECT DISTINCT MAX( DISTINCT + col0 ) AS col0 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3567
SELECT DISTINCT MAX ( DISTINCT + col0 ) AS col0 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3568
SELECT + 6 + + CAST( NULL AS DECIMAL ) - + col1 col2 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3568
SELECT + 6 + + CAST ( NULL AS REAL ) - + col1 col2 FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3569
SELECT DISTINCT col2 col2 FROM tab0 AS cor0 WHERE NULL BETWEEN + CAST( NULL AS SIGNED ) AND col1
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3569
SELECT DISTINCT col2 col2 FROM tab0 AS cor0 WHERE NULL BETWEEN + CAST ( NULL AS INTEGER ) AND col1
----

query I rowsort
SELECT ALL 87 + + col1 AS col2 FROM tab2 AS cor0
----
138
154
164

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3571
SELECT col1 * - col0 FROM tab1 AS cor0 WHERE ( + 23 ) IN ( - 92 ) AND NOT 26 BETWEEN col1 - + col0 AND CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-3571
SELECT col1 * - col0 FROM tab1 AS cor0 WHERE ( + 23 ) IN ( - 92 ) AND NOT 26 BETWEEN col1 - + col0 AND CAST ( NULL AS INTEGER )
----

query II rowsort
SELECT DISTINCT col0 AS col1, - col0 FROM tab1
----
51
-51
85
-85
91
-91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 col2 FROM tab0 WHERE NOT + ( col2 ) * col2 >= + 43
----

query II rowsort
SELECT - col1, 83 AS col1 FROM tab0
----
-1
83
-21
83
-81
83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3575
SELECT - ( + CAST( NULL AS SIGNED ) ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-3575
SELECT - ( + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # aggregate syntax: 
query I rowsort label-3576
SELECT + COUNT( * ) * - + COUNT( * ) AS col0 FROM tab1
----
-9

skipif mysql # not compatible
query I rowsort label-3576
SELECT + COUNT ( * ) * - + COUNT ( * ) AS col0 FROM tab1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-3577
SELECT + MAX( DISTINCT 89 ) FROM tab1 AS cor0
----
89

skipif mysql # not compatible
query I rowsort label-3577
SELECT + MAX ( DISTINCT 89 ) FROM tab1 AS cor0
----
89

query I rowsort
SELECT + + col0 FROM tab1 AS cor0 WHERE + 96 IS NOT NULL
----
51
85
91

query I rowsort
SELECT DISTINCT ( + col1 ) AS col1 FROM tab2 AS cor0 WHERE NOT - 89 NOT BETWEEN + 73 - 56 AND ( + 75 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) IN ( + 91 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3581
SELECT ALL * FROM tab1 AS cor0 WHERE col2 / 24 * - CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-3581
SELECT ALL * FROM tab1 AS cor0 WHERE col2 / 24 * - CAST ( NULL AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT ALL - 63 + + 36 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL + + col2 + + - 79 * - 75 + + col1 FROM tab0 AS cor0
----
5956
6025
6053

query I rowsort
SELECT - col1 + - + ( + + col2 ) FROM tab2
----
-117
-125
-74

query I rowsort
SELECT + col2 + - + col1 * + 0 AS col1 FROM tab2
----
23
40
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3586
SELECT ALL - col1 * + + CAST( - + col0 AS SIGNED ) AS col2 FROM tab0
----
1215
1827
97

skipif mysql # not compatible
query I rowsort label-3586
SELECT ALL - col1 * + + CAST ( - + col0 AS INTEGER ) AS col2 FROM tab0
----
1215
1827
97

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT 38 > + col1 + - col1 * col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3588
SELECT ALL - CAST( - col0 AS SIGNED ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL >= + col1
----

skipif mysql # not compatible
query I rowsort label-3588
SELECT ALL - CAST ( - col0 AS INTEGER ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL >= + col1
----

query I rowsort
SELECT ALL + col2 + - 59 + + col1 * 17 * + col2 AS col2 FROM tab2 cor0
----
19905
52341
66061

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3590
SELECT DISTINCT MIN( ALL col2 ) + + - AVG ( ALL - + CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3590
SELECT DISTINCT MIN ( ALL col2 ) + + - AVG ( ALL - + CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
NULL

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL BETWEEN ( + ( 3 ) ) AND + 97
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3592
SELECT ALL + CAST( NULL AS SIGNED ) / + + col1 col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3592
SELECT ALL + CAST ( NULL AS INTEGER ) / + + col1 col1 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + ( - 24 ) + + 54 IN ( + col1 + ( - col1 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NULL ) <= + 66
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3595
SELECT + SUM( 40 ) AS col2 FROM tab0 AS cor0 WHERE NOT - 25 / + col0 IS NULL
----
120

skipif mysql # not compatible
query I rowsort label-3595
SELECT + SUM ( 40 ) AS col2 FROM tab0 AS cor0 WHERE NOT - 25 / + col0 IS NULL
----
120

query I rowsort
SELECT + 49 * + 91 AS col1 FROM tab1 AS cor0
----
4459
4459
4459

onlyif mysql # aggregate syntax: 
query II rowsort label-3597
SELECT DISTINCT - MAX( ALL + - ( + col0 ) ) col2, COUNT( * ) FROM tab0 AS cor0
----
15
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3597
SELECT DISTINCT - MAX ( ALL + - ( + col0 ) ) col2, COUNT ( * ) FROM tab0 AS cor0
----
15
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3598
SELECT + - CAST( - - COUNT( * ) AS SIGNED ) col2 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3598
SELECT + - CAST ( - - COUNT ( * ) AS INTEGER ) col2 FROM tab1 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3599
SELECT + - ( - - COUNT( * ) ) AS col0 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3599
SELECT + - ( - - COUNT ( * ) ) AS col0 FROM tab0 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3600
SELECT - 43 * + COUNT( * ) AS col1 FROM tab0 AS cor0
----
-129

skipif mysql # not compatible
query I rowsort label-3600
SELECT - 43 * + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-129

query I rowsort
SELECT 44 * - 4 AS col1 FROM tab2
----
-176
-176
-176

query I rowsort
SELECT DISTINCT 96 FROM tab0 WHERE NOT NULL IS NOT NULL
----
96

query I rowsort
SELECT DISTINCT ( - 76 ) FROM tab1
----
-76

query II rowsort
SELECT ALL + col1, + col1 AS col2 FROM tab0
----
1
1
21
21
81
81

onlyif mysql # aggregate syntax: 
query I rowsort label-3605
SELECT MAX( ALL col2 ) FROM tab2
----
58

skipif mysql # not compatible
query I rowsort label-3605
SELECT MAX ( ALL col2 ) FROM tab2
----
58

query II rowsort
SELECT DISTINCT + 88 + - 22, - 10 AS col1 FROM tab2 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL - - 99 AS col0 FROM tab0 AS cor0
----
99
99
99

onlyif mysql # aggregate syntax: 
query II rowsort label-3608
SELECT + MIN( DISTINCT + 27 ) AS col0, ( - - SUM( DISTINCT + col2 ) ) FROM tab2 AS cor0
----
27
121

skipif mysql # not compatible
query II rowsort label-3608
SELECT + MIN ( DISTINCT + 27 ) AS col0, ( - - SUM ( DISTINCT + col2 ) ) FROM tab2 AS cor0
----
27
121

query I rowsort
SELECT DISTINCT - + col1 + + ( + - 58 ) * - col2 AS col0 FROM tab2 AS cor0
----
1283
2243
3297

query I rowsort
SELECT ALL + - col2 FROM tab1 cor0 WHERE col1 + col1 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * 33 col2 FROM tab0 AS cor0
----
1551
3267
330

query II rowsort
SELECT + + col2, 87 + + col0 FROM tab2 cor0
----
23
133
40
151
58
162

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL NOT IN ( 84 ) AND NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT + - col1 * + ( col2 ) AS col0 FROM tab1 cor0
----
-1344
-295
-3196

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( ( 44 IS NULL ) )
----

query I rowsort
SELECT + + 39 AS col0 FROM tab1 AS cor0
----
39
39
39

onlyif mysql # DIV for integer division: 
query I rowsort label-3617
SELECT - + col1 DIV + - col2 * - - col1 col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3617
SELECT - + col1 / + - col2 * - - col1 col2 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3618
SELECT DISTINCT * FROM tab0 WHERE ( + - col2 / ( col1 ) + col0 / + CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) ) > - col0
----

skipif mysql # not compatible
query III rowsort label-3618
SELECT DISTINCT * FROM tab0 WHERE ( + - col2 / ( col1 ) + col0 / + CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) ) > - col0
----

query III rowsort
SELECT * FROM tab0 WHERE col0 + col0 <= + col2
----
15
81
47

query III rowsort
SELECT * FROM tab2 WHERE - 82 - 51 BETWEEN 82 AND + - col1
----

query I rowsort
SELECT ALL col1 - + 4 FROM tab1
----
1
10
43

query I rowsort
SELECT col2 AS col2 FROM tab1 WHERE - 72 BETWEEN + - col0 + + - 86 + - 79 AND + col0 * 44 + - ( - col0 ) + + col0
----
59
68
96

query I rowsort
SELECT ALL + col1 - - col1 FROM tab1
----
10
28
94

query III rowsort
SELECT * FROM tab2 WHERE ( + 44 - col0 - - col1 * - 71 ) BETWEEN - col1 + 96 AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3625
SELECT COUNT( * ) + + CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3625
SELECT COUNT ( * ) + + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab2 cor0 WHERE 49 IN ( + + col1 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( - 58 ) = ( NULL )
----

query I rowsort
SELECT 41 * + - col1 * 61 AS col2 FROM tab2 AS cor0
----
-127551
-167567
-192577

query I rowsort
SELECT + col2 * 51 AS col2 FROM tab1 AS cor0
----
3009
3468
4896

onlyif mysql # aggregate syntax: 
query I rowsort label-3630
SELECT ( + + ( + + COUNT( * ) ) ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3630
SELECT ( + + ( + + COUNT ( * ) ) ) FROM tab2 AS cor0
----
3

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NULL NOT BETWEEN col1 * + col2 * col2 AND ( ( 83 ) + - col0 * + 79 ) )
----

query I rowsort
SELECT - - 4 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 6fec965b60b9885c4af73e85422cfd9b

query I rowsort
SELECT DISTINCT col0 * - + ( + col0 ) AS col1 FROM tab2
----
-2116
-4096
-5625

query I rowsort
SELECT - col2 * - - col1 FROM tab2
----
-1173
-3080
-3886

onlyif mysql # aggregate syntax: 
query I rowsort label-3635
SELECT - - COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-3635
SELECT - - COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE ( NULL ) IN ( 55, col0 / col2 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col0 IS NULL OR - col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3638
SELECT + SUM( ALL - + col1 ) AS col1 FROM tab1 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-3638
SELECT + SUM ( ALL - + col1 ) AS col1 FROM tab1 AS cor0
----
-66

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col1 NOT IN ( + 40, - col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( 0 )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 28 <> - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3642
SELECT DISTINCT MAX( DISTINCT - col2 ) * + COUNT( DISTINCT 90 ) AS col0 FROM tab0
----
-10

skipif mysql # not compatible
query I rowsort label-3642
SELECT DISTINCT MAX ( DISTINCT - col2 ) * + COUNT ( DISTINCT 90 ) AS col0 FROM tab0
----
-10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3643
SELECT - CAST( NULL AS SIGNED ) * col2 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3643
SELECT - CAST ( NULL AS INTEGER ) * col2 AS col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3644
SELECT ALL - 9 AS col1 FROM tab2 WHERE NOT + + col1 * - CAST( NULL AS SIGNED ) * - 81 * + + 60 * + ( - + col0 ) IS NOT NULL
----
-9
-9
-9

skipif mysql # not compatible
query I rowsort label-3644
SELECT ALL - 9 AS col1 FROM tab2 WHERE NOT + + col1 * - CAST ( NULL AS INTEGER ) * - 81 * + + 60 * + ( - + col0 ) IS NOT NULL
----
-9
-9
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-3645
SELECT DISTINCT 42 + 91 - - SUM( ALL + col2 ) FROM tab2
----
254

skipif mysql # not compatible
query I rowsort label-3645
SELECT DISTINCT 42 + 91 - - SUM ( ALL + col2 ) FROM tab2
----
254

query III rowsort
SELECT * FROM tab0 WHERE NOT - col1 NOT BETWEEN - col1 AND NULL
----

query I rowsort
SELECT - col0 * + 70 AS col1 FROM tab0
----
-1050
-6090
-6790

onlyif mysql # aggregate syntax: 
query I rowsort label-3648
SELECT + 62 * + + MIN( DISTINCT + col2 ) + COUNT( * ) AS col1 FROM tab2
----
1429

skipif mysql # not compatible
query I rowsort label-3648
SELECT + 62 * + + MIN ( DISTINCT + col2 ) + COUNT ( * ) AS col1 FROM tab2
----
1429

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3649
SELECT + CAST( NULL AS DECIMAL ) * - col1 * col2 FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND - col0 * - col2 AND col0 * col1 <= NULL
----

skipif mysql # not compatible
query I rowsort label-3649
SELECT + CAST ( NULL AS REAL ) * - col1 * col2 FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND - col0 * - col2 AND col0 * col1 <= NULL
----

query I rowsort
SELECT 13 + - 66 + - 87 AS col1 FROM tab1
----
-140
-140
-140

query I rowsort
SELECT DISTINCT - + 64 + - + col0 FROM tab1 AS cor0
----
-115
-149
-155

query I rowsort
SELECT ALL 40 AS col0 FROM tab0 AS cor0 WHERE - 3 / - col0 * + 94 IS NOT NULL
----
40
40
40

query I rowsort
SELECT ALL - col2 * + col1 + - + 93 AS col0 FROM tab2 cor0
----
-1266
-3173
-3979

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3654
SELECT 40 * + 76 FROM tab2 AS cor0 WHERE + col2 >= ( + 3 * + - col1 + - col1 - + - col2 * CAST( + col0 AS SIGNED ) * 6 )
----

skipif mysql # not compatible
query I rowsort label-3654
SELECT 40 * + 76 FROM tab2 AS cor0 WHERE + col2 >= ( + 3 * + - col1 + - col1 - + - col2 * CAST ( + col0 AS INTEGER ) * 6 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3655
SELECT SUM( + col2 ) AS col1 FROM tab1
----
223

skipif mysql # not compatible
query I rowsort label-3655
SELECT SUM ( + col2 ) AS col1 FROM tab1
----
223

query I rowsort
SELECT DISTINCT + ( + ( + - col0 ) ) FROM tab0 AS cor0
----
-15
-87
-97

query I rowsort
SELECT + - 5 + - + col2 + col2 FROM tab0 AS cor0
----
-5
-5
-5

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3658
SELECT col1, + 81 * - 91 FROM tab0 AS cor0 WHERE + CAST( NULL AS SIGNED ) > ( + col1 )
----

skipif mysql # not compatible
query II rowsort label-3658
SELECT col1, + 81 * - 91 FROM tab0 AS cor0 WHERE + CAST ( NULL AS INTEGER ) > ( + col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3659
SELECT + 16 DIV - col1 FROM tab1
----
-1
-3
0

skipif mysql # not compatible
query I rowsort label-3659
SELECT + 16 / - col1 FROM tab1
----
-1
-3
0

query I rowsort
SELECT + ( + + AVG ( DISTINCT 74 ) ) FROM tab0 WHERE NULL IS NOT NULL
----
NULL

query I rowsort
SELECT DISTINCT + col2 - + 27 AS col2 FROM tab0
----
-17
20
72

onlyif mysql # aggregate syntax: 
query I rowsort label-3662
SELECT DISTINCT + MIN( + col1 ) FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-3662
SELECT DISTINCT + MIN ( + col1 ) FROM tab2
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-3663
SELECT + MIN( 52 ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
52

skipif mysql # not compatible
query I rowsort label-3663
SELECT + MIN ( 52 ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
52

query I rowsort
SELECT ALL + col2 AS col0 FROM tab0 AS cor0 WHERE NOT col2 * - 58 >= NULL
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3665
SELECT DISTINCT - COUNT( * ) * COUNT( ALL + - ( + 73 ) ) + - CAST( NULL AS DECIMAL ) / - + MIN( DISTINCT + col2 ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3665
SELECT DISTINCT - COUNT ( * ) * COUNT ( ALL + - ( + 73 ) ) + - CAST ( NULL AS REAL ) / - + MIN ( DISTINCT + col2 ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT col0 FROM tab2 WHERE NULL NOT BETWEEN - col1 AND NULL
----

query I rowsort
SELECT 42 * + + ( - + ( + + col2 ) ) * col0 AS col0 FROM tab2
----
-107520
-182700
-44436

query III rowsort
SELECT * FROM tab0 WHERE NOT + col2 * ( col1 ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT ( - 54 + + + col2 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT ALL - + 8 AS col2, ( + col0 ) FROM tab1 AS cor0
----
-8
51
-8
85
-8
91

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 34 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + col1 + - col1 = ( - - 74 )
----

query I rowsort
SELECT ALL - ( + + col2 ) FROM tab1 cor0
----
-59
-68
-96

query I rowsort
SELECT ALL - + 99 + col1 AS col0 FROM tab2 AS cor0
----
-22
-32
-48

onlyif mysql # DIV for integer division: 
query I rowsort label-3675
SELECT DISTINCT - col1 + col2 DIV + 61 AS col2 FROM tab1
----
-13
-46
-5

skipif mysql # not compatible
query I rowsort label-3675
SELECT DISTINCT - col1 + col2 / + 61 AS col2 FROM tab1
----
-13
-46
-5

query III rowsort
SELECT * FROM tab2 WHERE NOT + col2 >= + - col2
----

query I rowsort
SELECT 29 * - col1 FROM tab0
----
-2349
-29
-609

onlyif mysql # aggregate syntax: 
query I rowsort label-3678
SELECT ALL MAX( DISTINCT + - 3 ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-3678
SELECT ALL MAX ( DISTINCT + - 3 ) FROM tab2
----
-3

query I rowsort
SELECT - 40 * - col0 FROM tab2 WHERE - col0 = + - 38 * + 11 + - col1 * - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3680
SELECT SUM( 90 ) + - 81 AS col0 FROM tab0 AS cor0
----
189

skipif mysql # not compatible
query I rowsort label-3680
SELECT SUM ( 90 ) + - 81 AS col0 FROM tab0 AS cor0
----
189

onlyif mysql # aggregate syntax: 
query I rowsort label-3681
SELECT ALL - 68 - - ( COUNT( * ) ) FROM tab2 AS cor0
----
-65

skipif mysql # not compatible
query I rowsort label-3681
SELECT ALL - 68 - - ( COUNT ( * ) ) FROM tab2 AS cor0
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-3682
SELECT - ( COUNT( * ) ) FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-3682
SELECT - ( COUNT ( * ) ) FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-3683
SELECT - COUNT( * ) * - 94 col1 FROM tab0
----
282

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3683
SELECT - COUNT ( * ) * - 94 col1 FROM tab0
----
282

query I rowsort
SELECT DISTINCT + ( + col2 ) * - col1 - - + col1 FROM tab0 AS cor0
----
-189
-3726
-98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3685
SELECT ALL + - col1 * col1 + - + CAST( - 35 AS SIGNED ) + - col0 * + 35 AS col1 FROM tab1 AS cor0
----
-1946
-2965
-5359

skipif mysql # not compatible
query I rowsort label-3685
SELECT ALL + - col1 * col1 + - + CAST ( - 35 AS INTEGER ) + - col0 * + 35 AS col1 FROM tab1 AS cor0
----
-1946
-2965
-5359

onlyif mysql # aggregate syntax: 
query I rowsort label-3686
SELECT - + MIN( + col0 ) * + COUNT( * ) FROM tab0 AS cor0
----
-45

skipif mysql # not compatible
query I rowsort label-3686
SELECT - + MIN ( + col0 ) * + COUNT ( * ) FROM tab0 AS cor0
----
-45

query I rowsort
SELECT DISTINCT ( - col2 ) FROM tab2 AS cor0 WHERE NOT col0 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3688
SELECT - MIN( DISTINCT - col2 ) FROM tab2 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-3688
SELECT - MIN ( DISTINCT - col2 ) FROM tab2 AS cor0
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-3689
SELECT ( - MIN( + col1 ) ) col2 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-3689
SELECT ( - MIN ( + col1 ) ) col2 FROM tab1 AS cor0 WHERE NULL < NULL
----
NULL

query I rowsort
SELECT + + 23 * 58 AS col2 FROM tab0 AS cor0
----
1334
1334
1334

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3691
SELECT ALL - + 64 + - + CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3691
SELECT ALL - + 64 + - + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col2 * + + ( + col2 ) - - col2 FROM tab2 cor0
----
1640
3422
552

query I rowsort
SELECT - 99 * + col0 - - 64 FROM tab0
----
-1421
-8549
-9539

onlyif mysql # DIV for integer division: 
query I rowsort label-3694
SELECT ALL col1 DIV 49 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-3694
SELECT ALL col1 / 49 FROM tab0
----
0
0
1

query II rowsort
SELECT DISTINCT 19 AS col2, col0 AS col2 FROM tab1
----
19
51
19
85
19
91

query II rowsort
SELECT - 98 AS col1, - col1 FROM tab2
----
-98
-51
-98
-67
-98
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-3697
SELECT + MAX( + ( - 27 ) ) FROM tab1 AS cor0
----
-27

skipif mysql # not compatible
query I rowsort label-3697
SELECT + MAX ( + ( - 27 ) ) FROM tab1 AS cor0
----
-27

query I rowsort
SELECT DISTINCT + + col0 * - col0 AS col2 FROM tab1 AS cor0
----
-2601
-7225
-8281

onlyif mysql # aggregate syntax: 
query I rowsort label-3699
SELECT COUNT( * ) * - 38 FROM tab0 AS cor0
----
-114

skipif mysql # not compatible
query I rowsort label-3699
SELECT COUNT ( * ) * - 38 FROM tab0 AS cor0
----
-114

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 89 * - 63 * - col0 col1 FROM tab2 AS cor0 WHERE NOT ( NOT NULL IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3701
SELECT COUNT( ALL + + 81 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3701
SELECT COUNT ( ALL + + 81 ) FROM tab0 AS cor0
----
3

query I rowsort
SELECT DISTINCT + 75 AS col1 FROM tab2 AS cor0
----
75

query I rowsort
SELECT ALL + col1 + + ( ( col0 ) ) FROM tab1 AS cor0
----
138
65
90

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col0 / 9 * - col2 = + col0
----

query I rowsort
SELECT ALL - col2 + 39 AS col0 FROM tab1 AS cor0
----
-20
-29
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-3706
SELECT ALL - MAX( - col1 ) + + - 67 AS col2 FROM tab0 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-3706
SELECT ALL - MAX ( - col1 ) + + - 67 AS col2 FROM tab0 AS cor0
----
-66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3707
SELECT + CAST( COUNT( * ) AS SIGNED ) + 81 * - CAST( NULL AS SIGNED ) col1 FROM tab0 AS cor0 WHERE NOT + col1 IS NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3707
SELECT + CAST ( COUNT ( * ) AS INTEGER ) + 81 * - CAST ( NULL AS INTEGER ) col1 FROM tab0 AS cor0 WHERE NOT + col1 IS NULL
----
NULL

query I rowsort
SELECT ALL + + 77 + col1 AS col1 FROM tab0 AS cor0
----
158
78
98

query I rowsort
SELECT 57 * - - ( col2 ) FROM tab0
----
2679
5643
570

onlyif mysql # aggregate syntax: 
query I rowsort label-3710
SELECT COUNT( * ) + - - 0 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-3710
SELECT COUNT ( * ) + - - 0 FROM tab0
----
3

query III rowsort
SELECT * FROM tab0 WHERE 55 * - + col1 + + + col0 * + col0 + col0 * - col0 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + - col0 col0 FROM tab1
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3713
SELECT col0 DIV + col1 + - - ( - col0 ) AS col1 FROM tab1
----
-48
-68
-90

skipif mysql # not compatible
query I rowsort label-3713
SELECT col0 / + col1 + - - ( - col0 ) AS col1 FROM tab1
----
-48
-68
-90

query I rowsort
SELECT ALL 49 * + col0 AS col0 FROM tab2
----
2254
3136
3675

query I rowsort
SELECT DISTINCT col0 + - col2 * + - col0 AS col0 FROM tab1 cor0
----
4947
5100
6279

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3716
SELECT DISTINCT + + MAX( ALL col0 ) + - + COUNT( * ) + - - COUNT( ALL + col2 ) * + CAST( 92 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
364

skipif mysql # not compatible
query I rowsort label-3716
SELECT DISTINCT + + MAX ( ALL col0 ) + - + COUNT ( * ) + - - COUNT ( ALL + col2 ) * + CAST ( 92 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
364

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3717
SELECT - COUNT( * ) DIV + + 32 AS col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-3717
SELECT - COUNT ( * ) / + + 32 AS col0 FROM tab1
----
0

query I rowsort
SELECT + ( col0 ) - - - 86 FROM tab0
----
-71
1
11

onlyif mysql # DIV for integer division: 
query I rowsort label-3719
SELECT DISTINCT 37 DIV + + col1 - 88 * + col0 AS col2 FROM tab0
----
-1320
-7655
-8499

skipif mysql # not compatible
query I rowsort label-3719
SELECT DISTINCT 37 / + + col1 - 88 * + col0 AS col2 FROM tab0
----
-1320
-7655
-8499

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( - ( + col0 ) <= NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3721
SELECT ALL - + 70 / + CAST( NULL AS SIGNED ) + - 18 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3721
SELECT ALL - + 70 / + CAST ( NULL AS INTEGER ) + - 18 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + - col2 - + - 27 - - 61 AS col1 FROM tab2 AS cor0
----
30
48
65

onlyif mysql # aggregate syntax: 
query I rowsort label-3723
SELECT ALL - 87 * + COUNT( * ) * - COUNT( * ) + + COUNT( * ) AS col2 FROM tab0 AS cor0
----
786

skipif mysql # not compatible
query I rowsort label-3723
SELECT ALL - 87 * + COUNT ( * ) * - COUNT ( * ) + + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
786

onlyif mysql # DIV for integer division: 
query I rowsort label-3724
SELECT ALL - ( - 92 ) DIV - - col1 AS col0 FROM tab1 cor0
----
1
18
6

skipif mysql # not compatible
query I rowsort label-3724
SELECT ALL - ( - 92 ) / - - col1 AS col0 FROM tab1 cor0
----
1
18
6

onlyif mysql # aggregate syntax: 
query I rowsort label-3725
SELECT DISTINCT + MAX( + col1 ) * - + 0 - - 91 * 64 * + - COUNT( * ) AS col1 FROM tab0 cor0
----
-17472

skipif mysql # not compatible
query I rowsort label-3725
SELECT DISTINCT + MAX ( + col1 ) * - + 0 - - 91 * 64 * + - COUNT ( * ) AS col1 FROM tab0 cor0
----
-17472

query I rowsort
SELECT ALL - - 39 AS col2 FROM tab2 AS cor0
----
39
39
39

onlyif mysql # aggregate syntax: 
query I rowsort label-3727
SELECT ALL MIN( - col2 ) * - - 57 AS col0 FROM tab0
----
-5643

skipif mysql # not compatible
query I rowsort label-3727
SELECT ALL MIN ( - col2 ) * - - 57 AS col0 FROM tab0
----
-5643

onlyif mysql # DIV for integer division: 
query I rowsort label-3728
SELECT 97 DIV - 37 AS col2 FROM tab1
----
-2
-2
-2

skipif mysql # not compatible
query I rowsort label-3728
SELECT 97 / - 37 AS col2 FROM tab1
----
-2
-2
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-3729
SELECT ALL MIN( + 26 ) FROM tab1
----
26

skipif mysql # not compatible
query I rowsort label-3729
SELECT ALL MIN ( + 26 ) FROM tab1
----
26

query I rowsort
SELECT DISTINCT + 81 AS col0 FROM tab0 WHERE NOT - - col2 IN ( - col0 )
----
81

query I rowsort
SELECT - - col0 * col1 + - 76 FROM tab2 WHERE NOT 56 BETWEEN 56 AND + col2 - + + 18
----
2270
4852
4949

query I rowsort
SELECT - - col0 * col2 * - col1 AS col1 FROM tab0 AS cor0
----
-18270
-57105
-9603

query I rowsort
SELECT + ( + ( 64 ) ) AS col0 FROM tab0 cor0
----
64
64
64

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 68, col0 col1 FROM tab0 AS cor0
----
68
15
68
87
68
97

query I rowsort
SELECT - - col0 * - + col2 FROM tab1 AS cor0
----
-4896
-5015
-6188

onlyif mysql # aggregate syntax: 
query I rowsort label-3736
SELECT COUNT( ALL + 60 ) col2 FROM tab1 WHERE NOT + col1 IS NOT NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3736
SELECT COUNT ( ALL + 60 ) col2 FROM tab1 WHERE NOT + col1 IS NOT NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3737
SELECT 32 * + - CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3737
SELECT 32 * + - CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + - col1 AS col2 FROM tab1 WHERE NOT - col1 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3739
SELECT ALL CAST( + 21 AS SIGNED ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to c5272facdaaa11f884c8cc0d9d4f41c7

skipif mysql # not compatible
query I rowsort label-3739
SELECT ALL CAST ( + 21 AS INTEGER ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to c5272facdaaa11f884c8cc0d9d4f41c7

query II rowsort
SELECT ALL + col2 AS col0, - col1 + + + col1 * col2 FROM tab0
----
10
189
47
3726
99
98

onlyif mysql # aggregate syntax: 
query I rowsort label-3741
SELECT ALL MIN( ( - + col2 ) ) AS col0 FROM tab0
----
-99

skipif mysql # not compatible
query I rowsort label-3741
SELECT ALL MIN ( ( - + col2 ) ) AS col0 FROM tab0
----
-99

query I rowsort
SELECT ALL - + 77 AS col0 FROM tab0 AS cor0 WHERE col0 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 65 col1, 18 FROM tab0 AS cor0
----
-65
18
-65
18
-65
18

onlyif mysql # DIV for integer division: 
query I rowsort label-3744
SELECT ALL 60 + - - col0 DIV col1 FROM tab2 AS cor0
----
60
60
61

skipif mysql # not compatible
query I rowsort label-3744
SELECT ALL 60 + - - col0 / col1 FROM tab2 AS cor0
----
60
60
61

query I rowsort
SELECT ALL + col1 FROM tab1 AS cor0 WHERE ( ( - col2 ) ) / + 53 IS NOT NULL
----
14
47
5

query I rowsort
SELECT - 40 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-40
-40
-40

query I rowsort
SELECT - ( + 66 ) AS col0 FROM tab1 AS cor0
----
-66
-66
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-3748
SELECT + - ( + MAX( + 1 ) ) col1 FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3748
SELECT + - ( + MAX ( + 1 ) ) col1 FROM tab2 AS cor0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3749
SELECT DISTINCT - 94 + + - COUNT( * ) FROM tab2
----
-97

skipif mysql # not compatible
query I rowsort label-3749
SELECT DISTINCT - 94 + + - COUNT ( * ) FROM tab2
----
-97

query III rowsort
SELECT * FROM tab1 WHERE + col2 BETWEEN NULL AND + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3751
SELECT ALL - col0 + - - col2 AS col2, - CAST( NULL AS SIGNED ) * - ( col2 ) * - col2 FROM tab2
----
-17
NULL
-23
NULL
-24
NULL

skipif mysql # not compatible
query II rowsort label-3751
SELECT ALL - col0 + - - col2 AS col2, - CAST ( NULL AS INTEGER ) * - ( col2 ) * - col2 FROM tab2
----
-17
NULL
-23
NULL
-24
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3752
SELECT DISTINCT + 67 - CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3752
SELECT DISTINCT + 67 - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3753
SELECT MIN( 86 ) FROM tab1
----
86

skipif mysql # not compatible
query I rowsort label-3753
SELECT MIN ( 86 ) FROM tab1
----
86

query I rowsort
SELECT - + col1 + - ( - - col0 ) FROM tab2 AS cor0
----
-141
-142
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3755
SELECT - col2 * - CAST( NULL AS SIGNED ) + - col0 * + col1 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-3755
SELECT - col2 * - CAST ( NULL AS INTEGER ) + - col0 * + col1 col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col2 * - col0 + 34 * + - col0 AS col0 FROM tab1 AS cor0
----
-6630
-7905
-9282

query I rowsort
SELECT - + 14 + - - col2 FROM tab1 AS cor0
----
45
54
82

query II rowsort
SELECT DISTINCT + 74 + - - 79, ( + 45 ) AS col2 FROM tab1 cor0
----
153
45

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - + col2 + - - col2 + - col1 IS NULL
----

query I rowsort
SELECT + col2 * col2 * - + col1 FROM tab2 AS cor0
----
-123200
-225388
-26979

onlyif mysql # DIV for integer division: 
query I rowsort label-3761
SELECT ALL - - 99 DIV + + col0 AS col0 FROM tab0 AS cor0
----
1
1
6

skipif mysql # not compatible
query I rowsort label-3761
SELECT ALL - - 99 / + + col0 AS col0 FROM tab0 AS cor0
----
1
1
6

query I rowsort
SELECT ALL - 38 * + + 92 * - 22 + + col0 FROM tab2 AS cor0
----
76958
76976
76987

onlyif mysql # aggregate syntax: 
query I rowsort label-3763
SELECT + COUNT( DISTINCT + col0 ) col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3763
SELECT + COUNT ( DISTINCT + col0 ) col0 FROM tab1 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3764
SELECT DISTINCT + - CAST( - - 12 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-12

skipif mysql # not compatible
query I rowsort label-3764
SELECT DISTINCT + - CAST ( - - 12 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-12

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + 34 col2 FROM tab0 cor0
----
2958
3298
510

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL = 71
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - + col2 * + 46 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( + col1 + 80 + + - col2 * ( + - 9 ) * 75 NOT IN ( - col1 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-3769
SELECT ALL col1 DIV - + 16 AS col0 FROM tab0
----
-1
-5
0

skipif mysql # not compatible
query I rowsort label-3769
SELECT ALL col1 / - + 16 AS col0 FROM tab0
----
-1
-5
0

query II rowsort
SELECT ( - + col2 ) AS col2, - 62 FROM tab0
----
-10
-62
-47
-62
-99
-62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3771
SELECT DISTINCT col1 * - CAST( NULL AS SIGNED ) * - 11 AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3771
SELECT DISTINCT col1 * - CAST ( NULL AS INTEGER ) * - 11 AS col0 FROM tab2
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 78 col1 FROM tab1 AS cor0
----
-78
-78
-78

query I rowsort
SELECT + ( - 41 ) FROM tab1 AS cor0
----
-41
-41
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-3774
SELECT DISTINCT + COUNT( - 56 ) AS col0 FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-3774
SELECT DISTINCT + COUNT ( - 56 ) AS col0 FROM tab2 cor0
----
3

query I rowsort
SELECT DISTINCT col2 + + - 48 AS col2 FROM tab1 cor0
----
11
20
48

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 col2, col0 FROM tab1
----
51
51
85
85
91
91

query IIIIII rowsort
SELECT * FROM tab1 cor0 CROSS JOIN tab0 AS cor1 WHERE NOT + 21 IS NULL
----
54 values hashing to 058438fde5fb838f23bcbdd39266ddcf

onlyif mysql # DIV for integer division: 
query I rowsort label-3778
SELECT 34 DIV 42 AS col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3778
SELECT 34 / 42 AS col2 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3779
SELECT 14 DIV - + 60 col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3779
SELECT 14 / - + 60 col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL 22 + - - col0 AS col1 FROM tab1 AS cor0
----
107
113
73

query I rowsort
SELECT DISTINCT + 45 + - - 99 AS col2 FROM tab0 AS cor0
----
144

onlyif mysql # aggregate syntax: 
query I rowsort label-3782
SELECT DISTINCT SUM( ALL - col1 ) AS col2 FROM tab1 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-3782
SELECT DISTINCT SUM ( ALL - col1 ) AS col2 FROM tab1 AS cor0
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-3783
SELECT DISTINCT + MAX( 65 ) + + COUNT( * ) FROM tab0 AS cor0
----
68

skipif mysql # not compatible
query I rowsort label-3783
SELECT DISTINCT + MAX ( 65 ) + + COUNT ( * ) FROM tab0 AS cor0
----
68

query I rowsort
SELECT DISTINCT - 6 + + + col1 FROM tab2 cor0
----
45
61
71

query I rowsort
SELECT + + col1 + + + col0 FROM tab2 AS cor0
----
141
142
97

query I rowsort
SELECT + - col0 FROM tab0 WHERE - col2 = + + 36 * + col2
----

query I rowsort
SELECT 29 + col1 FROM tab0
----
110
30
50

query I rowsort
SELECT DISTINCT + col0 * + - 86 + + + ( - 40 ) * + col1 AS col1 FROM tab2
----
-5996
-8584
-9130

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( + col1 ) * + + col0 - - + ( + ( - ( - + col2 ) ) ) col0 FROM tab1
----
4345
484
810

query I rowsort
SELECT col1 * - ( - - col1 ) AS col0 FROM tab2 WHERE - col0 IS NOT NULL
----
-2601
-4489
-5929

onlyif mysql # aggregate syntax: 
query I rowsort label-3791
SELECT MIN( + + 7 ) * - COUNT( DISTINCT - + col0 ) AS col2 FROM tab0
----
-21

skipif mysql # not compatible
query I rowsort label-3791
SELECT MIN ( + + 7 ) * - COUNT ( DISTINCT - + col0 ) AS col2 FROM tab0
----
-21

query I rowsort
SELECT - 7 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to ba940cd66e21e94e95aada5f28e1faf5

query I rowsort
SELECT + col2 * col2 AS col2 FROM tab2 WHERE NOT + 75 IS NULL
----
1600
3364
529

query III rowsort
SELECT ALL * FROM tab2 WHERE + + 25 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT - 81 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3796
SELECT DISTINCT COUNT( * ) FROM tab0 AS cor0 WHERE NULL = - col0 + col2 - + col0 * - 80
----
0

skipif mysql # not compatible
query I rowsort label-3796
SELECT DISTINCT COUNT ( * ) FROM tab0 AS cor0 WHERE NULL = - col0 + col2 - + col0 * - 80
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3797
SELECT - COUNT( ALL col2 ) col1 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3797
SELECT - COUNT ( ALL col2 ) col1 FROM tab2 AS cor0
----
-3

query I rowsort
SELECT - ( - + col0 ) AS col0 FROM tab2 AS cor0
----
46
64
75

query I rowsort
SELECT ALL col1 * 83 - - col1 FROM tab1 AS cor0
----
1176
3948
420

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3800
SELECT DISTINCT + SUM( DISTINCT + 91 ) AS col2, - 53 DIV - 70 FROM tab2 AS cor0
----
91
0

skipif mysql # not compatible
query II rowsort label-3800
SELECT DISTINCT + SUM ( DISTINCT + 91 ) AS col2, - 53 / - 70 FROM tab2 AS cor0
----
91
0

query I rowsort
SELECT ALL - 0 * 3 * + 4 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3802
SELECT ALL COUNT( * ) * + - COUNT( * ) FROM tab0
----
-9

skipif mysql # not compatible
query I rowsort label-3802
SELECT ALL COUNT ( * ) * + - COUNT ( * ) FROM tab0
----
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-3803
SELECT + 96 DIV - 47 AS col0 FROM tab1
----
-2
-2
-2

skipif mysql # not compatible
query I rowsort label-3803
SELECT + 96 / - 47 AS col0 FROM tab1
----
-2
-2
-2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3804
SELECT - 62 DIV + COUNT( * ) col0 FROM tab2
----
-20

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3804
SELECT - 62 / + COUNT ( * ) col0 FROM tab2
----
-20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3805
SELECT ALL - + MIN( - ( + col2 ) ) AS col2, 45 AS col2 FROM tab0 WHERE CAST( NULL AS SIGNED ) IS NOT NULL
----
NULL
45

skipif mysql # not compatible
query II rowsort label-3805
SELECT ALL - + MIN ( - ( + col2 ) ) AS col2, 45 AS col2 FROM tab0 WHERE CAST ( NULL AS INTEGER ) IS NOT NULL
----
NULL
45

query I rowsort
SELECT - 60 * col0 FROM tab0
----
-5220
-5820
-900

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL IN ( 26, col0 * col2 / - col2, - col2 * - - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3808
SELECT DISTINCT - COUNT( DISTINCT col0 ) AS col2 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3808
SELECT DISTINCT - COUNT ( DISTINCT col0 ) AS col2 FROM tab2 AS cor0
----
-3

query I rowsort
SELECT ALL col0 FROM tab0 AS cor0 WHERE NULL >= col2
----

query I rowsort
SELECT DISTINCT - 68 * + col2 * + col0 * - col1 AS col0 FROM tab1 AS cor0
----
1705100
19776848
4660992

onlyif mysql # DIV for integer division: 
query I rowsort label-3811
SELECT ALL col2 DIV 47 AS col1 FROM tab1
----
1
1
2

skipif mysql # not compatible
query I rowsort label-3811
SELECT ALL col2 / 47 AS col1 FROM tab1
----
1
1
2

query I rowsort
SELECT ALL 94 AS col0 FROM tab1 AS cor0 WHERE NOT NULL < - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3813
SELECT ALL - + SUM( 23 ) FROM tab1 cor0
----
-69

skipif mysql # not compatible
query I rowsort label-3813
SELECT ALL - + SUM ( 23 ) FROM tab1 cor0
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-3814
SELECT ALL - + COUNT( * ) * + 3 + - - 68 + + + COUNT( + + ( col0 ) ) col0 FROM tab1 AS cor0
----
62

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3814
SELECT ALL - + COUNT ( * ) * + 3 + - - 68 + + + COUNT ( + + ( col0 ) ) col0 FROM tab1 AS cor0
----
62

query I rowsort
SELECT DISTINCT 0 + + + 41 AS col0 FROM tab0 AS cor0
----
41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3816
SELECT + col2 + + col1 + - 64 col0 FROM tab1 AS cor0 WHERE ( - - col1 ) >= - col1 * - - 83 + + ( - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3816
SELECT + col2 + + col1 + - 64 col0 FROM tab1 AS cor0 WHERE ( - - col1 ) >= - col1 * - - 83 + + ( - CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT DISTINCT - 32 + - 49 FROM tab1 cor0 WHERE NOT col2 IN ( - + col1 )
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-3818
SELECT + MAX( DISTINCT - 57 ) FROM tab1 AS cor0
----
-57

skipif mysql # not compatible
query I rowsort label-3818
SELECT + MAX ( DISTINCT - 57 ) FROM tab1 AS cor0
----
-57

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - - col0 * + col0 * - 46 > NULL
----

query I rowsort
SELECT col2 FROM tab0 WHERE NULL >= - 2
----

query II rowsort
SELECT DISTINCT ( - col2 ) - - 8 AS col0, col1 FROM tab1
----
-51
5
-60
47
-88
14

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + col1 + + ( col2 ) < - - 78 * - - 33
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + 93 - + 14 FROM tab1
----
79
79
79

query I rowsort
SELECT DISTINCT 65 * + - 99 + 8 AS col0 FROM tab1
----
-6427

query IIIIII rowsort
SELECT DISTINCT * FROM tab0, tab0 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT + 99 FROM tab0 WHERE col2 * col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3827
SELECT ALL ( + MAX( col2 ) ) AS col0 FROM tab2
----
58

skipif mysql # not compatible
query I rowsort label-3827
SELECT ALL ( + MAX ( col2 ) ) AS col0 FROM tab2
----
58

query I rowsort
SELECT - col2 + + col0 - + + col1 FROM tab0 cor0
----
-113
-3
56

query I rowsort
SELECT + + col1 + - 86 FROM tab1 AS cor0
----
-39
-72
-81

onlyif mysql # DIV for integer division: 
query I rowsort label-3830
SELECT + col1 DIV 71 + col0 + - col0 AS col0 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-3830
SELECT + col1 / 71 + col0 + - col0 AS col0 FROM tab0 AS cor0
----
0
0
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( + col1 ) col0 FROM tab2 AS cor0
----
51
67
77

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL <> col1
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col1 * + ( + col0 ) - - 96 + 45 + - col0 - - - 18 * + 74 + + + 35 + - 43 * + + col0 * - 15 - 99 = NULL
----

query I rowsort
SELECT DISTINCT + col2 * 84 * - 30 FROM tab2
----
-100800
-146160
-57960

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3835
SELECT DISTINCT CAST( NULL AS SIGNED ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-3835
SELECT DISTINCT CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3836
SELECT + - SUM( DISTINCT + 2 ) FROM tab1 AS cor0
----
-2

skipif mysql # not compatible
query I rowsort label-3836
SELECT + - SUM ( DISTINCT + 2 ) FROM tab1 AS cor0
----
-2

query I rowsort
SELECT DISTINCT + col0 AS col2 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query III rowsort
SELECT - col0 AS col1, col1, - + 19 FROM tab1 AS cor0
----
9 values hashing to a96083235e4af57bf08a3866dd71c435

onlyif mysql # aggregate syntax: 
query I rowsort label-3839
SELECT + + MIN( col2 ) * + 96 FROM tab2 AS cor0
----
2208

skipif mysql # not compatible
query I rowsort label-3839
SELECT + + MIN ( col2 ) * + 96 FROM tab2 AS cor0
----
2208

query II rowsort
SELECT col0, 75 + + col1 + + + col1 AS col2 FROM tab1 cor0
----
51
103
85
85
91
169

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT + col0 - + - col1 < + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - + 19 AS col1 FROM tab2 cor0
----
-19
-19
-19

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col0 * + 79 col1 FROM tab0 AS cor0
----
-1185
-6873
-7663

onlyif mysql # aggregate syntax: 
query I rowsort label-3844
SELECT MIN( DISTINCT - col2 ) AS col0 FROM tab2 AS cor0
----
-58

skipif mysql # not compatible
query I rowsort label-3844
SELECT MIN ( DISTINCT - col2 ) AS col0 FROM tab2 AS cor0
----
-58

query I rowsort
SELECT DISTINCT + col1 * 79 AS col0 FROM tab2 cor0
----
4029
5293
6083

onlyif mysql # aggregate syntax: 
query I rowsort label-3846
SELECT DISTINCT MAX( DISTINCT + - 75 ) col2 FROM tab1
----
-75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3846
SELECT DISTINCT MAX ( DISTINCT + - 75 ) col2 FROM tab1
----
-75

onlyif mysql # DIV for integer division: 
query I rowsort label-3847
SELECT col2 DIV 46 DIV + 47 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3847
SELECT col2 / 46 / + 47 FROM tab2
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3848
SELECT DISTINCT * FROM tab0 WHERE NOT - + CAST( NULL AS SIGNED ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-3848
SELECT DISTINCT * FROM tab0 WHERE NOT - + CAST ( NULL AS INTEGER ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT ( + 30 ) * - col1 * - col2 + + col0 AS col0, - col1 FROM tab0
----
114225
-81
3067
-1
6387
-21

query I rowsort
SELECT DISTINCT - - col0 FROM tab1 WHERE NOT + + col2 * - 3 IS NOT NULL
----

query I rowsort
SELECT col2 + - - 27 * + - col2 AS col0 FROM tab2 AS cor0
----
-1040
-1508
-598

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3852
SELECT ALL - 50 + 45 * + - COUNT( * ) DIV - COUNT( * ) + - COUNT( + 76 ) col1 FROM tab1 AS cor0
----
-8

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3852
SELECT ALL - 50 + 45 * + - COUNT ( * ) / - COUNT ( * ) + - COUNT ( + 76 ) col1 FROM tab1 AS cor0
----
-8

query I rowsort
SELECT DISTINCT - + 69 + - - col1 FROM tab0 AS cor0
----
-48
-68
12

query I rowsort
SELECT DISTINCT + col0 * + col2 AS col0 FROM tab1 WHERE NULL IS NULL
----
4896
5015
6188

onlyif mysql # DIV for integer division: 
query I rowsort label-3855
SELECT DISTINCT + 43 + + col2 DIV + 90 FROM tab1
----
43
44

skipif mysql # not compatible
query I rowsort label-3855
SELECT DISTINCT + 43 + + col2 / + 90 FROM tab1
----
43
44

query II rowsort
SELECT DISTINCT 43 AS col1, ( + col0 ) FROM tab0
----
43
15
43
87
43
97

query I rowsort
SELECT - - 29 - + + 64 FROM tab1 AS cor0
----
-35
-35
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-3858
SELECT DISTINCT + MAX( - col1 ) col0 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN ( NULL ) AND NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3858
SELECT DISTINCT + MAX ( - col1 ) col0 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN ( NULL ) AND NULL
----
NULL

query II rowsort
SELECT ALL - col1, col0 FROM tab2 cor0
----
-51
46
-67
75
-77
64

query I rowsort
SELECT ALL + col2 * 62 AS col1 FROM tab2 cor0
----
1426
2480
3596

query III rowsort
SELECT * FROM tab1 cor0 WHERE 21 + - col1 / + - col2 IN ( col0 * + + col0 + - col0 + + 83, - col0 + - + 46, + - col2 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3862
SELECT DISTINCT + 46 DIV - COUNT( * ) - + COUNT( * ) AS col0 FROM tab0 AS cor0
----
-18

skipif mysql # not compatible
query I rowsort label-3862
SELECT DISTINCT + 46 / - COUNT ( * ) - + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-18

query I rowsort
SELECT 80 + col0 - - 72 FROM tab0
----
167
239
249

query I rowsort
SELECT DISTINCT col0 * + 55 + - 24 - - 14 FROM tab0
----
4775
5325
815

onlyif mysql # DIV for integer division: 
query I rowsort label-3865
SELECT - col2 DIV - col2 + + col2 AS col2 FROM tab0
----
100
11
48

skipif mysql # not compatible
query I rowsort label-3865
SELECT - col2 / - col2 + + col2 AS col2 FROM tab0
----
100
11
48

query I rowsort
SELECT ALL - col0 * - + ( col0 ) * 86 * ( col0 ) - + - 54 AS col2 FROM tab2
----
22544438
36281304
8370950

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - 44 BETWEEN NULL AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3868
SELECT ALL + SUM( ALL col2 ) * + COUNT( * ) + + - COUNT( * ) col0 FROM tab2
----
360

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3868
SELECT ALL + SUM ( ALL col2 ) * + COUNT ( * ) + + - COUNT ( * ) col0 FROM tab2
----
360

onlyif mysql # aggregate syntax: 
query I rowsort label-3869
SELECT DISTINCT 64 * COUNT( * ) FROM tab1
----
192

skipif mysql # not compatible
query I rowsort label-3869
SELECT DISTINCT 64 * COUNT ( * ) FROM tab1
----
192

onlyif mysql # aggregate syntax: 
query I rowsort label-3870
SELECT ALL 11 * COUNT( * ) - - - COUNT( * ) FROM tab0 cor0
----
30

skipif mysql # not compatible
query I rowsort label-3870
SELECT ALL 11 * COUNT ( * ) - - - COUNT ( * ) FROM tab0 cor0
----
30

onlyif mysql # DIV for integer division: 
query I rowsort label-3871
SELECT col2 DIV + + 71 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3871
SELECT col2 / + + 71 FROM tab2 AS cor0
----
0
0
0

query III rowsort
SELECT * FROM tab1 WHERE NOT - col0 * col2 * + + col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT 69 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
69

onlyif mysql # aggregate syntax: 
query II rowsort label-3874
SELECT ALL COUNT( * ) + + 14, MAX( - + ( - 18 ) ) AS col1 FROM tab1 AS cor0 WHERE NULL IS NULL
----
17
18

skipif mysql # not compatible
query II rowsort label-3874
SELECT ALL COUNT ( * ) + + 14, MAX ( - + ( - 18 ) ) AS col1 FROM tab1 AS cor0 WHERE NULL IS NULL
----
17
18

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL <= - 64 + + 0
----

query I rowsort
SELECT ALL + col1 + col0 AS col0 FROM tab2 AS cor0 WHERE col1 IS NOT NULL
----
141
142
97

query II rowsort
SELECT + col1, col0 AS col0 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN col1 AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3878
SELECT ALL CAST( - - COUNT( * ) AS SIGNED ) col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3878
SELECT ALL CAST ( - - COUNT ( * ) AS INTEGER ) col1 FROM tab0 AS cor0
----
3

query II rowsort
SELECT + + col0, - 26 + - - col1 FROM tab0 AS cor0
----
15
55
87
-5
97
-25

onlyif mysql # DIV for integer division: 
query I rowsort label-3880
SELECT DISTINCT col2 DIV + col2 + + col2 DIV + + col0 AS col1 FROM tab0 AS cor0
----
1
2
4

skipif mysql # not compatible
query I rowsort label-3880
SELECT DISTINCT col2 / + col2 + + col2 / + + col0 AS col1 FROM tab0 AS cor0
----
1
2
4

onlyif mysql # aggregate syntax: 
query I rowsort label-3881
SELECT - MIN( - 95 ) AS col0 FROM tab0 AS cor0
----
95

skipif mysql # not compatible
query I rowsort label-3881
SELECT - MIN ( - 95 ) AS col0 FROM tab0 AS cor0
----
95

query II rowsort
SELECT ALL ( col1 ) AS col2, 37 - col1 FROM tab0
----
1
36
21
16
81
-44

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3883
SELECT DISTINCT - col1 * - ( - 15 ) + + ( + CAST( NULL AS DECIMAL ) ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3883
SELECT DISTINCT - col1 * - ( - 15 ) + + ( + CAST ( NULL AS REAL ) ) AS col0 FROM tab0
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-3884
SELECT + col2, col0 DIV - col2 AS col0 FROM tab0
----
10
-8
47
0
99
0

skipif mysql # not compatible
query II rowsort label-3884
SELECT + col2, col0 / - col2 AS col0 FROM tab0
----
10
-8
47
0
99
0

query I rowsort
SELECT DISTINCT 57 FROM tab2, tab0 AS cor0
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-3886
SELECT 27 * - COUNT( * ) AS col1 FROM tab0
----
-81

skipif mysql # not compatible
query I rowsort label-3886
SELECT 27 * - COUNT ( * ) AS col1 FROM tab0
----
-81

query I rowsort
SELECT col2 * - + 3 FROM tab2
----
-120
-174
-69

query I rowsort
SELECT col1 * + col2 * - + col0 FROM tab2 AS cor0
----
-197120
-291450
-53958

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + + 98 * - + col2 col0 FROM tab2 AS cor0
----
-2305
-3997
-5751

query I rowsort
SELECT + + 28 + - col1 + + col1 FROM tab2 AS cor0
----
28
28
28

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 74 + + 44 * col2 + - col2 - - col2 col2 FROM tab0 AS cor0
----
2142
4430
514

query I rowsort
SELECT ALL - 11 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 05cc989122d7724c7abefaba9625ef3d

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL IS NOT NULL AND NOT ( NULL IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3894
SELECT ALL 28 * - + COUNT( * ) AS col1, 23 + - 53 AS col2 FROM tab0
----
-84
-30

skipif mysql # not compatible
query II rowsort label-3894
SELECT ALL 28 * - + COUNT ( * ) AS col1, 23 + - 53 AS col2 FROM tab0
----
-84
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-3895
SELECT ALL - - 77 * - COUNT( * ) AS col2 FROM tab0 AS cor0
----
-231

skipif mysql # not compatible
query I rowsort label-3895
SELECT ALL - - 77 * - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-231

query I rowsort
SELECT ALL col2 AS col2 FROM tab0 AS cor0 WHERE NOT NULL = col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3897
SELECT * FROM tab0 cor0 WHERE CAST( NULL AS SIGNED ) + - col2 > NULL
----

skipif mysql # not compatible
query III rowsort label-3897
SELECT * FROM tab0 cor0 WHERE CAST ( NULL AS INTEGER ) + - col2 > NULL
----

query I rowsort
SELECT + col0 * + col0 * + col1 AS col1 FROM tab2 AS cor0
----
107916
315392
376875

query I rowsort
SELECT ( 37 ) * 16 AS col1 FROM tab2 AS cor0
----
592
592
592

query I rowsort
SELECT DISTINCT - 23 * + + 71 FROM tab2 cor0
----
-1633

onlyif mysql # DIV for integer division: 
query I rowsort label-3901
SELECT - 56 DIV + + 92 + - col0 AS col1 FROM tab2 AS cor0
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-3901
SELECT - 56 / + + 92 + - col0 AS col1 FROM tab2 AS cor0
----
-46
-64
-75

query I rowsort
SELECT - col2 * - col1 - + col1 FROM tab0 AS cor0
----
189
3726
98

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3903
SELECT - + ( 91 ) DIV + MIN( - 73 ) FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-3903
SELECT - + ( 91 ) / + MIN ( - 73 ) FROM tab1 AS cor0
----
1

query I rowsort
SELECT ( + - col0 ) * - col0 AS col0 FROM tab1 cor0
----
2601
7225
8281

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3905
SELECT ALL - col2 + CAST( - col2 AS SIGNED ) - - col0 AS col0 FROM tab2
----
-16
-41
0

skipif mysql # not compatible
query I rowsort label-3905
SELECT ALL - col2 + CAST ( - col2 AS INTEGER ) - - col0 AS col0 FROM tab2
----
-16
-41
0

query I rowsort
SELECT 0 - - 87 AS col0 FROM tab2
----
87
87
87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * + col0 - - col2 col1 FROM tab2
----
1081
2600
4408

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3908
SELECT ALL * FROM tab2 WHERE NULL IS NOT NULL OR NOT CAST( NULL AS SIGNED ) + col2 NOT IN ( 90 )
----

skipif mysql # not compatible
query III rowsort label-3908
SELECT ALL * FROM tab2 WHERE NULL IS NOT NULL OR NOT CAST ( NULL AS INTEGER ) + col2 NOT IN ( 90 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3909
SELECT SUM( col2 ) AS col0 FROM tab0 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-3909
SELECT SUM ( col2 ) AS col0 FROM tab0 AS cor0
----
156

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT ( NULL ) BETWEEN NULL AND - col2
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3911
SELECT DISTINCT - + 68, COUNT( * ) AS col1 FROM tab2 AS cor0
----
-68
3

skipif mysql # not compatible
query II rowsort label-3911
SELECT DISTINCT - + 68, COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-68
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3912
SELECT - COUNT( * ) FROM tab0 AS cor0 WHERE NOT ( + - col1 ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3912
SELECT - COUNT ( * ) FROM tab0 AS cor0 WHERE NOT ( + - col1 ) IS NOT NULL
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN 74 AND col0 + - col1 * - col0 * - 30 / col0
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL BETWEEN + + col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3915
SELECT - 33 * - - COUNT( * ), 28 + - 57 + 16 AS col2 FROM tab1
----
-99
-13

skipif mysql # not compatible
query II rowsort label-3915
SELECT - 33 * - - COUNT ( * ), 28 + - 57 + 16 AS col2 FROM tab1
----
-99
-13

query I rowsort
SELECT ALL - col1 FROM tab2 AS cor0 WHERE col2 / - + 50 * - + col0 IS NOT NULL
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-3917
SELECT ALL COUNT( ( - 66 ) ) * + 42 + + 68 FROM tab1 cor0 WHERE NULL IS NULL
----
194

skipif mysql # not compatible
query I rowsort label-3917
SELECT ALL COUNT ( ( - 66 ) ) * + 42 + + 68 FROM tab1 cor0 WHERE NULL IS NULL
----
194

onlyif mysql # aggregate syntax: 
query II rowsort label-3918
SELECT MAX( - 73 ) AS col0, COUNT( * ) FROM tab0 cor0
----
-73
3

skipif mysql # not compatible
query II rowsort label-3918
SELECT MAX ( - 73 ) AS col0, COUNT ( * ) FROM tab0 cor0
----
-73
3

onlyif mysql # DIV for integer division: 
query I rowsort label-3919
SELECT DISTINCT + 74 DIV - + col0 AS col0 FROM tab1 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-3919
SELECT DISTINCT + 74 / - + col0 AS col0 FROM tab1 AS cor0
----
-1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3920
SELECT COUNT( DISTINCT + ( - col1 ) ) AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3920
SELECT COUNT ( DISTINCT + ( - col1 ) ) AS col2 FROM tab1 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col2 col1 FROM tab0 AS cor0 WHERE NULL = + 20 * - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3922
SELECT - MIN( ALL + 41 ) FROM tab1 AS cor0
----
-41

skipif mysql # not compatible
query I rowsort label-3922
SELECT - MIN ( ALL + 41 ) FROM tab1 AS cor0
----
-41

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( + + 85 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT ALL + col0, + 43 FROM tab0
----
15
43
87
43
97
43

query I rowsort
SELECT col2 + - + col1 AS col1 FROM tab1
----
21
54
82

query II rowsort
SELECT - col2 AS col1, col1 * + col2 AS col2 FROM tab1 WHERE NOT + col1 - - 65 NOT IN ( + - col1, - 84 ) AND ( + 75 * + 5 * col1 ) IS NULL
----

query I rowsort
SELECT col2 AS col1 FROM tab1 WHERE ( - 16 ) IS NULL
----

query I rowsort
SELECT - col1 + + + 72 * - 29 FROM tab1
----
-2093
-2102
-2135

onlyif mysql # aggregate syntax: 
query I rowsort label-3929
SELECT DISTINCT - + ( COUNT( * ) ) AS col0 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3929
SELECT DISTINCT - + ( COUNT ( * ) ) AS col0 FROM tab2 AS cor0
----
-3

query I rowsort
SELECT - - 57 FROM tab0 AS cor0 WHERE + 37 IS NOT NULL
----
57
57
57

query I rowsort
SELECT + 98 * - col0 FROM tab2 cor0 WHERE + col0 * - 41 + 16 - + - 38 + + + col1 + - + col2 * + 57 IS NOT NULL
----
-4508
-6272
-7350

onlyif mysql # DIV for integer division: 
query I rowsort label-3932
SELECT ALL ( - col0 ) * - col2 DIV - col2 FROM tab1 cor0
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-3932
SELECT ALL ( - col0 ) * - col2 / - col2 FROM tab1 cor0
----
-51
-85
-91

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3933
SELECT CAST( - col0 AS SIGNED ) - + 47 - - col1 * - + col0 * + col0, col0 * + col0 + 18 AS col0 FROM tab0
----
-159083
7587
-18287
243
-9553
9427

skipif mysql # not compatible
query II rowsort label-3933
SELECT CAST ( - col0 AS INTEGER ) - + 47 - - col1 * - + col0 * + col0, col0 * + col0 + 18 AS col0 FROM tab0
----
-159083
7587
-18287
243
-9553
9427

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 55 IS NULL
----

query I rowsort
SELECT DISTINCT + col2 + - + col0 AS col0 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-23
-26
45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3936
SELECT ALL - col0 + + CAST( + + ( + + col2 ) AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-23
-26
45

skipif mysql # not compatible
query I rowsort label-3936
SELECT ALL - col0 + + CAST ( + + ( + + col2 ) AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-23
-26
45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3937
SELECT - + COUNT( * ) + - + 27 + COUNT( * ) + + + 75 / + - COUNT( * ) * + + COUNT( * ) + - + CAST( NULL AS SIGNED ) * - - 42 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3937
SELECT - + COUNT ( * ) + - + 27 + COUNT ( * ) + + + 75 / + - COUNT ( * ) * + + COUNT ( * ) + - + CAST ( NULL AS INTEGER ) * - - 42 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL col0 + 68 AS col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
155
165
83

onlyif mysql # aggregate syntax: 
query I rowsort label-3939
SELECT ALL + MIN( ALL + - col2 ) FROM tab1
----
-96

skipif mysql # not compatible
query I rowsort label-3939
SELECT ALL + MIN ( ALL + - col2 ) FROM tab1
----
-96

query II rowsort
SELECT col1 * + col1 AS col1, 27 FROM tab1
----
196
27
2209
27
25
27

onlyif mysql # aggregate syntax: 
query I rowsort label-3941
SELECT SUM( + 64 ) AS col2 FROM tab0
----
192

skipif mysql # not compatible
query I rowsort label-3941
SELECT SUM ( + 64 ) AS col2 FROM tab0
----
192

query I rowsort
SELECT ALL 58 * + + col1 AS col0 FROM tab1
----
2726
290
812

onlyif mysql # aggregate syntax: 
query I rowsort label-3943
SELECT COUNT( + - col2 ) AS col1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-3943
SELECT COUNT ( + - col2 ) AS col1 FROM tab1
----
3

query I rowsort
SELECT + 2 - col0 * + 2 AS col0 FROM tab1 WHERE NOT ( NOT col2 + - - col1 IS NOT NULL )
----
-100
-168
-180

onlyif mysql # DIV for integer division: 
query I rowsort label-3945
SELECT - col2 DIV 28 AS col2 FROM tab2
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-3945
SELECT - col2 / 28 AS col2 FROM tab2
----
-1
-2
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3946
SELECT + COUNT( * ) FROM tab2 WHERE NOT - ( col0 ) NOT BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-3946
SELECT + COUNT ( * ) FROM tab2 WHERE NOT - ( col0 ) NOT BETWEEN NULL AND NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3947
SELECT - - MAX( + 94 ) col1 FROM tab0 WHERE NOT col2 IS NOT NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3947
SELECT - - MAX ( + 94 ) col1 FROM tab0 WHERE NOT col2 IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3948
SELECT DISTINCT COUNT( * ) FROM tab2 AS cor0 WHERE + col2 NOT BETWEEN + col1 AND - - col1 * col2 + - ( 48 )
----
3

skipif mysql # not compatible
query I rowsort label-3948
SELECT DISTINCT COUNT ( * ) FROM tab2 AS cor0 WHERE + col2 NOT BETWEEN + col1 AND - - col1 * col2 + - ( 48 )
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 col0, 43 AS col2 FROM tab0
----
1
43
21
43
81
43

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT 98 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 INNER JOIN tab2 AS cor1 ON NOT NULL IS NOT NULL
----
54 values hashing to eaa394f1627c8d5e53406d9ca3b09469

query I rowsort
SELECT DISTINCT 62 * + col1 AS col2 FROM tab0
----
1302
5022
62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3953
SELECT ALL col0 * - CAST( col0 AS SIGNED ) + + col2 col1 FROM tab1 AS cor0
----
-2505
-7166
-8213

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3953
SELECT ALL col0 * - CAST ( col0 AS INTEGER ) + + col2 col1 FROM tab1 AS cor0
----
-2505
-7166
-8213

onlyif mysql # aggregate syntax: 
query I rowsort label-3954
SELECT DISTINCT - MIN( ALL - col0 ) * 30 + + + COUNT( * ) AS col2 FROM tab0 AS cor0
----
2913

skipif mysql # not compatible
query I rowsort label-3954
SELECT DISTINCT - MIN ( ALL - col0 ) * 30 + + + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
2913

query II rowsort
SELECT DISTINCT - col1 AS col0, - col1 FROM tab2 AS cor0
----
-51
-51
-67
-67
-77
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-3956
SELECT - SUM( 20 ) col1 FROM tab0
----
-60

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3956
SELECT - SUM ( 20 ) col1 FROM tab0
----
-60

query I rowsort
SELECT ALL + - col1 + col2 AS col0 FROM tab1 WHERE + + 20 IS NULL
----

query I rowsort
SELECT ALL col0 AS col2 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3959
SELECT DISTINCT 33 * MAX( ALL - ( - col0 ) ) + 60 FROM tab1
----
3063

skipif mysql # not compatible
query I rowsort label-3959
SELECT DISTINCT 33 * MAX ( ALL - ( - col0 ) ) + 60 FROM tab1
----
3063

onlyif mysql # DIV for integer division: 
query II rowsort label-3960
SELECT DISTINCT - 22 DIV col2 AS col0, - 44 FROM tab0
----
-2
-44
0
-44

skipif mysql # not compatible
query II rowsort label-3960
SELECT DISTINCT - 22 / col2 AS col0, - 44 FROM tab0
----
-2
-44
0
-44

onlyif mysql # DIV for integer division: 
query I rowsort label-3961
SELECT ALL ( + 50 ) DIV - col2 AS col1 FROM tab0
----
-1
-5
0

skipif mysql # not compatible
query I rowsort label-3961
SELECT ALL ( + 50 ) / - col2 AS col1 FROM tab0
----
-1
-5
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3962
SELECT DISTINCT COUNT( - + col1 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-3962
SELECT DISTINCT COUNT ( - + col1 ) FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3963
SELECT ALL + MAX( - + col1 ) FROM tab1 cor0
----
-5

skipif mysql # not compatible
query I rowsort label-3963
SELECT ALL + MAX ( - + col1 ) FROM tab1 cor0
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-3964
SELECT 72 + COUNT( * ) * + + 23 FROM tab0 AS cor0
----
141

skipif mysql # not compatible
query I rowsort label-3964
SELECT 72 + COUNT ( * ) * + + 23 FROM tab0 AS cor0
----
141

onlyif mysql # aggregate syntax: 
query I rowsort label-3965
SELECT DISTINCT + COUNT( col2 ) AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3965
SELECT DISTINCT + COUNT ( col2 ) AS col2 FROM tab2 AS cor0
----
3

query I rowsort
SELECT DISTINCT col2 + + + col0 FROM tab2
----
104
133
69

query I rowsort
SELECT ALL + 68 FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to 599bee15ac4cc39b859854e07dfe7990

query I rowsort
SELECT DISTINCT + ( + col2 ) - 49 + 69 + + + col0 AS col2 FROM tab0
----
117
216
82

query I rowsort
SELECT DISTINCT + col0 * col2 - col2 AS col0 FROM tab2 cor0
----
1035
2520
4292

onlyif mysql # aggregate syntax: 
query II rowsort label-3970
SELECT COUNT( * ) AS col1, COUNT( * ) FROM tab2 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-3970
SELECT COUNT ( * ) AS col1, COUNT ( * ) FROM tab2 AS cor0
----
3
3

query I rowsort
SELECT + - col1 * - 80 FROM tab1 AS cor0
----
1120
3760
400

onlyif mysql # DIV for integer division: 
query II rowsort label-3972
SELECT ALL 87, + col1 DIV + col1 AS col0 FROM tab2 AS cor0
----
87
1
87
1
87
1

skipif mysql # not compatible
query II rowsort label-3972
SELECT ALL 87, + col1 / + col1 AS col0 FROM tab2 AS cor0
----
87
1
87
1
87
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3973
SELECT DISTINCT - - MIN( DISTINCT - + col0 ) FROM tab2 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-3973
SELECT DISTINCT - - MIN ( DISTINCT - + col0 ) FROM tab2 AS cor0
----
-75

query I rowsort
SELECT ALL - col1 * 81 FROM tab1 cor0
----
-1134
-3807
-405

onlyif mysql # aggregate syntax: 
query I rowsort label-3975
SELECT + COUNT( * ) * - 43 AS col2 FROM tab1
----
-129

skipif mysql # not compatible
query I rowsort label-3975
SELECT + COUNT ( * ) * - 43 AS col2 FROM tab1
----
-129

query I rowsort
SELECT DISTINCT - 29 * ( - 10 ) AS col0 FROM tab0
----
290

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3977
SELECT DISTINCT col2 + + + ( - CAST( + col2 AS SIGNED ) ) FROM tab1 WHERE NOT NULL BETWEEN + + 57 * - col0 + + - col1 AND col2
----

skipif mysql # not compatible
query I rowsort label-3977
SELECT DISTINCT col2 + + + ( - CAST ( + col2 AS INTEGER ) ) FROM tab1 WHERE NOT NULL BETWEEN + + 57 * - col0 + + - col1 AND col2
----

query II rowsort
SELECT ALL 24 AS col2, - 14 + - col0 * 27 FROM tab0
----
24
-2363
24
-2633
24
-419

onlyif mysql # aggregate syntax: 
query I rowsort label-3979
SELECT DISTINCT - MIN( ALL col0 ) FROM tab0
----
-15

skipif mysql # not compatible
query I rowsort label-3979
SELECT DISTINCT - MIN ( ALL col0 ) FROM tab0
----
-15

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3980
SELECT ALL col1, + ( CAST( - col0 AS SIGNED ) ) FROM tab2
----
51
-46
67
-75
77
-64

skipif mysql # not compatible
query II rowsort label-3980
SELECT ALL col1, + ( CAST ( - col0 AS INTEGER ) ) FROM tab2
----
51
-46
67
-75
77
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-3981
SELECT DISTINCT ( - MAX( ALL + col2 ) ) FROM tab1
----
-96

skipif mysql # not compatible
query I rowsort label-3981
SELECT DISTINCT ( - MAX ( ALL + col2 ) ) FROM tab1
----
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3982
SELECT ALL CAST( NULL AS SIGNED ) * - col0 * - - col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3982
SELECT ALL CAST ( NULL AS INTEGER ) * - col0 * - - col0 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3983
SELECT DISTINCT 53 * - - ( + COUNT( * ) ) FROM tab1
----
159

skipif mysql # not compatible
query I rowsort label-3983
SELECT DISTINCT 53 * - - ( + COUNT ( * ) ) FROM tab1
----
159

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL <> - col2 + + + 45 * - 33
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3985
SELECT + 21 AS col1, SUM( DISTINCT + 51 ) FROM tab1
----
21
51

skipif mysql # not compatible
query II rowsort label-3985
SELECT + 21 AS col1, SUM ( DISTINCT + 51 ) FROM tab1
----
21
51

onlyif mysql # DIV for integer division: 
query II rowsort label-3986
SELECT - col1 AS col2, + col2 DIV + - col2 FROM tab2 AS cor0
----
-51
-1
-67
-1
-77
-1

skipif mysql # not compatible
query II rowsort label-3986
SELECT - col1 AS col2, + col2 / + - col2 FROM tab2 AS cor0
----
-51
-1
-67
-1
-77
-1

query I rowsort
SELECT ALL - col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT ALL - col1, + col0 FROM tab1 AS cor0
----
-14
51
-47
91
-5
85

onlyif mysql # aggregate syntax: 
query I rowsort label-3989
SELECT ( 42 ) * - - ( + COUNT( * ) ) * + + 69 FROM tab2
----
8694

skipif mysql # not compatible
query I rowsort label-3989
SELECT ( 42 ) * - - ( + COUNT ( * ) ) * + + 69 FROM tab2
----
8694

query III rowsort
SELECT * FROM tab0 WHERE NOT - col0 * - col0 - - col2 + - col1 * + + 37 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - col1 * - 16 FROM tab1 AS cor0
----
224
752
80

onlyif mysql # aggregate syntax: 
query I rowsort label-3992
SELECT - ( + + COUNT( * ) ) AS col1 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3992
SELECT - ( + + COUNT ( * ) ) AS col1 FROM tab1 AS cor0
----
-3

query I rowsort
SELECT ALL + ( - - 12 ) FROM tab0 AS cor0
----
12
12
12

query I rowsort
SELECT DISTINCT - - col0 * - col2 + + - 46 - col2 AS col0 FROM tab2 AS cor0
----
-1127
-2646
-4454

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3995
SELECT DISTINCT - col1 * - 36 * CAST( + col0 AS SIGNED ) * + + col0 + - + 15 AS col0 FROM tab2 AS cor0
----
11354097
13567485
3884961

skipif mysql # not compatible
query I rowsort label-3995
SELECT DISTINCT - col1 * - 36 * CAST ( + col0 AS INTEGER ) * + + col0 + - + 15 AS col0 FROM tab2 AS cor0
----
11354097
13567485
3884961

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 31 + - col2 * - col2 AS col1, - 79 col1 FROM tab2 AS cor0
----
1569
-79
3333
-79
498
-79

query I rowsort
SELECT ALL - col1 * - col2 + - + 25 FROM tab1 AS cor0
----
1319
270
3171

onlyif mysql # aggregate syntax: 
query I rowsort label-3998
SELECT DISTINCT + ( + COUNT( * ) ) AS col0 FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-3998
SELECT DISTINCT + ( + COUNT ( * ) ) AS col0 FROM tab1 cor0
----
3

query II rowsort
SELECT - col0 + - ( - 48 ) * - col0, col2 AS col2 FROM tab0
----
-4263
10
-4753
99
-735
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4000
SELECT - + 37 AS col1 FROM tab2 WHERE + col2 BETWEEN NULL AND ( - + 18 ) + + - CAST( - col1 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-4000
SELECT - + 37 AS col1 FROM tab2 WHERE + col2 BETWEEN NULL AND ( - + 18 ) + + - CAST ( - col1 AS INTEGER )
----

query I rowsort
SELECT ( 95 ) + + col1 AS col0 FROM tab1
----
100
109
142

onlyif mysql # DIV for integer division: 
query I rowsort label-4002
SELECT 40 DIV + + col0 + - col0 + + 0 + 57 - + + col0 AS col2 FROM tab2
----
-35
-71
-93

skipif mysql # not compatible
query I rowsort label-4002
SELECT 40 / + + col0 + - col0 + + 0 + 57 - + + col0 AS col2 FROM tab2
----
-35
-71
-93

query I rowsort
SELECT + ( - col0 ) * col2 + col1 + + col2 FROM tab1
----
-4786
-4951
-6073

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4004
SELECT DISTINCT - 60 col0, + CAST( NULL AS SIGNED ) * 86 * col0 FROM tab2
----
-60
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4004
SELECT DISTINCT - 60 col0, + CAST ( NULL AS INTEGER ) * 86 * col0 FROM tab2
----
-60
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4005
SELECT DISTINCT - - COUNT( * ) AS col1, + COUNT( * ) * + + 95 FROM tab0 AS cor0 WHERE NOT col1 IS NOT NULL
----
0
0

skipif mysql # not compatible
query II rowsort label-4005
SELECT DISTINCT - - COUNT ( * ) AS col1, + COUNT ( * ) * + + 95 FROM tab0 AS cor0 WHERE NOT col1 IS NOT NULL
----
0
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN NULL AND - col0
----

query I rowsort
SELECT ALL + col0 + - 86 AS col0 FROM tab0 AS cor0
----
-71
1
11

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( + col2 ) IS NULL
----

query I rowsort
SELECT - col2 * - col0 + - col0 FROM tab2
----
1012
2496
4275

query I rowsort
SELECT DISTINCT col0 * - col2 FROM tab1 WHERE ( + ( 79 ) ) <> ( + col1 )
----
-4896
-5015
-6188

query III rowsort
SELECT * FROM tab1 WHERE NOT col1 >= col1 + + 86
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col0 + - col2 * - col1 FROM tab0
----
196
297
3822

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 5 - - col1 col0 FROM tab2
----
56
72
82

query I rowsort
SELECT DISTINCT col0 * - 44 FROM tab0
----
-3828
-4268
-660

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4015
SELECT DISTINCT + COUNT( * ) DIV + COUNT( col0 ) AS col0 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-4015
SELECT DISTINCT + COUNT ( * ) / + COUNT ( col0 ) AS col0 FROM tab1
----
1

query I rowsort
SELECT + ( + 38 ) + col0 FROM tab1
----
123
129
89

onlyif mysql # aggregate syntax: 
query I rowsort label-4017
SELECT DISTINCT + COUNT( * ) FROM tab1 WHERE ( - 29 + 69 * + 26 ) IN ( + 97 )
----
0

skipif mysql # not compatible
query I rowsort label-4017
SELECT DISTINCT + COUNT ( * ) FROM tab1 WHERE ( - 29 + 69 * + 26 ) IN ( + 97 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4018
SELECT col1 * CAST( col1 AS SIGNED ) AS col1 FROM tab2
----
2601
4489
5929

skipif mysql # not compatible
query I rowsort label-4018
SELECT col1 * CAST ( col1 AS INTEGER ) AS col1 FROM tab2
----
2601
4489
5929

query I rowsort
SELECT - col1 AS col1 FROM tab0 WHERE NOT ( col1 - col0 * - 82 ) IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( col2 - + 88 * col0 ) IS NULL
----

query I rowsort
SELECT + 31 * + col0 FROM tab1 WHERE NOT ( - 25 + - 91 ) IN ( - col1 )
----
1581
2635
2821

query I rowsort
SELECT ( 14 ) * col0 AS col1 FROM tab2 WHERE + col0 IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE + 85 + - 45 IS NULL
----

query I rowsort
SELECT DISTINCT col2 FROM tab0 WHERE NOT ( - 94 * col2 - col2 ) <> col1
----

query I rowsort
SELECT ( col2 ) AS col0 FROM tab1 WHERE - col1 * + col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4026
SELECT DISTINCT - MIN( - 90 ) * COUNT( * ) AS col2 FROM tab2 WHERE NOT 78 + - col1 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4026
SELECT DISTINCT - MIN ( - 90 ) * COUNT ( * ) AS col2 FROM tab2 WHERE NOT 78 + - col1 IS NOT NULL
----
NULL

query I rowsort
SELECT - col1 FROM tab1 WHERE ( NULL ) > NULL
----

query I rowsort
SELECT ALL - 80 - - 44 AS col1 FROM tab1
----
-36
-36
-36

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - 86 NOT BETWEEN col0 / col1 AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4030
SELECT - COUNT( 87 ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-4030
SELECT - COUNT ( 87 ) FROM tab0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4031
SELECT COUNT( * ) FROM tab2 WHERE - 77 + col1 * + col2 > col0 * col0
----
0

skipif mysql # not compatible
query I rowsort label-4031
SELECT COUNT ( * ) FROM tab2 WHERE - 77 + col1 * + col2 > col0 * col0
----
0

query I rowsort
SELECT ALL col0 FROM tab1 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE col2 > + 1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4034
SELECT - COUNT( * ) - + MAX( DISTINCT - col2 ) FROM tab1
----
56

skipif mysql # not compatible
query I rowsort label-4034
SELECT - COUNT ( * ) - + MAX ( DISTINCT - col2 ) FROM tab1
----
56

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( - col2 ) BETWEEN ( col2 ) AND + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 18 = col1 * + 94 - 36 * col2
----

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT col1 * col2 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4038
SELECT + col1 DIV - col2 FROM tab1 AS cor0 WHERE NOT + 55 IS NULL
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4038
SELECT + col1 / - col2 FROM tab1 AS cor0 WHERE NOT + 55 IS NULL
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4039
SELECT CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0 WHERE NOT 33 IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4039
SELECT CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0 WHERE NOT 33 IS NULL
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col1 * - 95 FROM tab2 WHERE NOT col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4041
SELECT MAX( - 44 ) FROM tab0 AS cor0 CROSS JOIN tab2
----
-44

skipif mysql # not compatible
query I rowsort label-4041
SELECT MAX ( - 44 ) FROM tab0 AS cor0 CROSS JOIN tab2
----
-44

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4042
SELECT ALL 86 DIV - COUNT( * ) FROM tab1 WHERE NOT + col2 + + 57 IS NULL
----
-28

skipif mysql # not compatible
query I rowsort label-4042
SELECT ALL 86 / - COUNT ( * ) FROM tab1 WHERE NOT + col2 + + 57 IS NULL
----
-28

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( - col0 ) <= ( 66 + - col1 )
----

query I rowsort
SELECT 17 AS col0 FROM tab0 AS cor0 WHERE + col0 > col2
----
17

query I rowsort
SELECT + + col2 + 25 AS col2 FROM tab2 AS cor0
----
48
65
83

query I rowsort
SELECT DISTINCT - col2 * - 96 AS col0 FROM tab1 AS cor0
----
5664
6528
9216

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 col0 FROM tab0 AS cor0 WHERE ( + 28 ) NOT BETWEEN - 83 * + 16 AND ( 95 * 39 + + col1 * + 3 )
----

query I rowsort
SELECT ALL + 34 + - 91 AS col2 FROM tab0 cor0
----
-57
-57
-57

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4049
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - CAST( col1 AS SIGNED ) * + col2 IS NULL
----

skipif mysql # not compatible
query III rowsort label-4049
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - CAST ( col1 AS INTEGER ) * + col2 IS NULL
----

query I rowsort
SELECT ALL - 79 + - 11 AS col1 FROM tab0 AS cor0
----
-90
-90
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-4051
SELECT COUNT( * ) * - 94 FROM tab0 cor0
----
-282

skipif mysql # not compatible
query I rowsort label-4051
SELECT COUNT ( * ) * - 94 FROM tab0 cor0
----
-282

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( col1 / - col0 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE ( - col1 ) - + 94 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + 54 * - col2 + - col2 AS col0 FROM tab1 AS cor0
----
-3245
-3740
-5280

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4055
SELECT + COUNT( * ) DIV 51 FROM tab2 WHERE 53 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4055
SELECT + COUNT ( * ) / 51 FROM tab2 WHERE 53 IS NULL
----
0

query I rowsort
SELECT 94 - + + 19 FROM tab1
----
75
75
75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4057
SELECT - COUNT( * ) DIV 36 FROM tab0 WHERE + 64 + 86 <= - col2
----
0

skipif mysql # not compatible
query I rowsort label-4057
SELECT - COUNT ( * ) / 36 FROM tab0 WHERE + 64 + 86 <= - col2
----
0

query I rowsort
SELECT DISTINCT - 36 * + 50 FROM tab1 WHERE ( NULL ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NULL > col1 + 46
----

query I rowsort
SELECT DISTINCT col1 * 39 - - 57 FROM tab1
----
1890
252
603

onlyif mysql # aggregate syntax: 
query I rowsort label-4061
SELECT ALL + - COUNT( * ) * - + 93 AS col0 FROM tab1 AS cor0
----
279

skipif mysql # not compatible
query I rowsort label-4061
SELECT ALL + - COUNT ( * ) * - + 93 AS col0 FROM tab1 AS cor0
----
279

onlyif mysql # aggregate syntax: 
query I rowsort label-4062
SELECT DISTINCT - ( - COUNT( * ) ) + COUNT( * ) FROM tab1 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-4062
SELECT DISTINCT - ( - COUNT ( * ) ) + COUNT ( * ) FROM tab1 AS cor0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-4063
SELECT COUNT( * ) FROM tab2 cor0 WHERE ( - col2 * + 16 ) NOT BETWEEN 46 AND 55
----
3

skipif mysql # not compatible
query I rowsort label-4063
SELECT COUNT ( * ) FROM tab2 cor0 WHERE ( - col2 * + 16 ) NOT BETWEEN 46 AND 55
----
3

query I rowsort
SELECT DISTINCT 87 + ( - ( - 37 ) ) FROM tab0 AS cor0
----
124

onlyif mysql # aggregate syntax: 
query I rowsort label-4065
SELECT - COUNT( DISTINCT col2 ) AS col0 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-4065
SELECT - COUNT ( DISTINCT col2 ) AS col0 FROM tab2
----
-3

query I rowsort
SELECT DISTINCT - col0 * col1 * col1 AS col0 FROM tab0
----
-38367
-97
-98415

query IIIIII rowsort
SELECT * FROM tab1 cor0 CROSS JOIN tab2 AS cor1 WHERE NULL IS NULL
----
54 values hashing to c419dc2a653bccd84f7a2da103315187

onlyif mysql # aggregate syntax: 
query I rowsort label-4068
SELECT DISTINCT - + ( - COUNT( + col0 ) ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4068
SELECT DISTINCT - + ( - COUNT ( + col0 ) ) FROM tab1 AS cor0
----
3

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE col2 * - + 32 <= 31
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT col1, 8 + + - col2 AS col0 FROM tab2 AS cor0
----
51
-15
67
-50
77
-32

query I rowsort
SELECT ALL + 38 * col2 AS col1 FROM tab1 cor0 WHERE NULL NOT IN ( + col2 * 71 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4072
SELECT ALL + 16 * COUNT( + col2 * col0 ) FROM tab2 AS cor0 WHERE NULL IS NOT NULL OR + 97 - 18 * col2 IS NOT NULL
----
48

skipif mysql # not compatible
query I rowsort label-4072
SELECT ALL + 16 * COUNT ( + col2 * col0 ) FROM tab2 AS cor0 WHERE NULL IS NOT NULL OR + 97 - 18 * col2 IS NOT NULL
----
48

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4073
SELECT ALL CAST( NULL AS SIGNED ) AS col2, ( col1 ) AS col2 FROM tab0 AS cor0
----
NULL
1
NULL
21
NULL
81

skipif mysql # not compatible
query II rowsort label-4073
SELECT ALL CAST ( NULL AS INTEGER ) AS col2, ( col1 ) AS col2 FROM tab0 AS cor0
----
NULL
1
NULL
21
NULL
81

query II rowsort
SELECT - col1 AS col2, ( + 68 ) FROM tab0 AS cor0
----
-1
68
-21
68
-81
68

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4075
SELECT DISTINCT - 35 DIV - - COUNT( * ) FROM tab2 AS cor0
----
-11

skipif mysql # not compatible
query I rowsort label-4075
SELECT DISTINCT - 35 / - - COUNT ( * ) FROM tab2 AS cor0
----
-11

query I rowsort
SELECT + 32 * + - 56 * - col0 AS col2 FROM tab0 AS cor0
----
155904
173824
26880

onlyif mysql # DIV for integer division: 
query I rowsort label-4077
SELECT DISTINCT - col1 DIV + - col1 col0 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4077
SELECT DISTINCT - col1 / + - col1 col0 FROM tab2 AS cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4078
SELECT DISTINCT + SUM( ALL - col0 ) AS col0 FROM tab0 AS cor0
----
-199

skipif mysql # not compatible
query I rowsort label-4078
SELECT DISTINCT + SUM ( ALL - col0 ) AS col0 FROM tab0 AS cor0
----
-199

onlyif mysql # aggregate syntax: 
query I rowsort label-4079
SELECT DISTINCT - MIN( DISTINCT + col0 ) AS col1 FROM tab0
----
-15

skipif mysql # not compatible
query I rowsort label-4079
SELECT DISTINCT - MIN ( DISTINCT + col0 ) AS col1 FROM tab0
----
-15

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - - 24 NOT IN ( - col2 + + col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4081
SELECT ALL * FROM tab1 WHERE NOT - col1 IN ( CAST( col2 AS SIGNED ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-4081
SELECT ALL * FROM tab1 WHERE NOT - col1 IN ( CAST ( col2 AS INTEGER ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + 97 AS col1 FROM tab1
----
97
97
97

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL NOT IN ( col2 * + - col1 + col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4084
SELECT DISTINCT * FROM tab0 WHERE NOT ( NULL ) >= + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-4084
SELECT DISTINCT * FROM tab0 WHERE NOT ( NULL ) >= + CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4085
SELECT - + MAX( + col0 ) + 43 + + + COUNT( * ) + + COUNT( * ) * COUNT( * ) FROM tab1 AS cor0
----
-36

skipif mysql # not compatible
query I rowsort label-4085
SELECT - + MAX ( + col0 ) + 43 + + + COUNT ( * ) + + COUNT ( * ) * COUNT ( * ) FROM tab1 AS cor0
----
-36

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( col2 ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( - col1 + - - 89 + - col1 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - - 83 AS col1 FROM tab0 cor0
----
83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4089
SELECT ALL - MIN( ALL + CAST( 30 AS SIGNED ) ) FROM tab1 cor0
----
-30

skipif mysql # not compatible
query I rowsort label-4089
SELECT ALL - MIN ( ALL + CAST ( 30 AS INTEGER ) ) FROM tab1 cor0
----
-30

query I rowsort
SELECT ALL + col0 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
51
85
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4091
SELECT CAST( - + ( COUNT( * ) ) AS SIGNED ) AS col1 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-4091
SELECT CAST ( - + ( COUNT ( * ) ) AS INTEGER ) AS col1 FROM tab1
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col1 AS col0, + 69 col2 FROM tab2
----
51
69
67
69
77
69

query I rowsort
SELECT ALL + - col2 * + 75 FROM tab1 AS cor0
----
-4425
-5100
-7200

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 25 NOT IN ( - col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + ( + col1 ) FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT - 22 + + - col0 * + 26 AS col1 FROM tab1 AS cor0
----
-1348
-2232
-2388

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4097
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( - col0 ) <= 69 AND 55 + 76 < - ( + CAST( ( ( col1 ) ) AS SIGNED ) ) + + col2
----

skipif mysql # not compatible
query III rowsort label-4097
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( - col0 ) <= 69 AND 55 + 76 < - ( + CAST ( ( ( col1 ) ) AS INTEGER ) ) + + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4098
SELECT * FROM tab2 AS cor0 WHERE - - col2 IS NOT NULL AND col0 > + - CAST( 45 AS SIGNED )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-4098
SELECT * FROM tab2 AS cor0 WHERE - - col2 IS NOT NULL AND col0 > + - CAST ( 45 AS INTEGER )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col0 + - + col2 AS col1 FROM tab0 AS cor0
----
-2
-32
77

query I rowsort
SELECT + col2 + - - 99 FROM tab2
----
122
139
157

query I rowsort
SELECT ALL - col1 + - - col2 AS col2 FROM tab2
----
-28
-37
-9

query I rowsort
SELECT - 51 + - col1 FROM tab0
----
-132
-52
-72

query I rowsort
SELECT DISTINCT + 24 + - + col2 + - 47 FROM tab1
----
-119
-82
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4104
SELECT ALL - CAST( ( - ( - col1 ) ) AS SIGNED ) * + - col1 FROM tab2
----
2601
4489
5929

skipif mysql # not compatible
query I rowsort label-4104
SELECT ALL - CAST ( ( - ( - col1 ) ) AS INTEGER ) * + - col1 FROM tab2
----
2601
4489
5929

query I rowsort
SELECT col2 * + 1 FROM tab0
----
10
47
99

query II rowsort
SELECT - col2 AS col2, col1 * ( + col2 ) AS col2 FROM tab0 AS cor0
----
-10
210
-47
3807
-99
99

query I rowsort
SELECT col1 FROM tab2 AS cor0 WHERE ( NULL ) NOT IN ( + col0 - + col1 + col1 * - - col1 - - col1 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col0 - + 52 IS NULL
----

query I rowsort
SELECT DISTINCT + col0 * + col2 AS col1 FROM tab1 AS cor0 WHERE NOT col2 * + col0 + col1 NOT BETWEEN + col1 AND + + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4110
SELECT DISTINCT MAX( DISTINCT col1 ) AS col2 FROM tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-4110
SELECT DISTINCT MAX ( DISTINCT col1 ) AS col2 FROM tab0 AS cor0
----
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4111
SELECT DISTINCT + CAST( - COUNT( + col0 ) AS SIGNED ) AS col0 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-4111
SELECT DISTINCT + CAST ( - COUNT ( + col0 ) AS INTEGER ) AS col0 FROM tab0
----
-3

query I rowsort
SELECT - col0 + - 35 FROM tab0 WHERE NOT NULL < + - 99 / + 14
----

query I rowsort
SELECT DISTINCT col0 + + col1 FROM tab1 AS cor0 WHERE NOT ( + col2 ) IS NULL
----
138
65
90

query I rowsort
SELECT DISTINCT + col0 FROM tab0 AS cor0 WHERE NOT + col0 * + - 4 IS NOT NULL
----

query I rowsort
SELECT - col1 * 37 AS col0 FROM tab0 AS cor0
----
-2997
-37
-777

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4116
SELECT ALL * FROM tab0 AS cor0 WHERE - col1 BETWEEN - - CAST( NULL AS SIGNED ) - + + 34 * - ( + 17 ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-4116
SELECT ALL * FROM tab0 AS cor0 WHERE - col1 BETWEEN - - CAST ( NULL AS INTEGER ) - + + 34 * - ( + 17 ) AND NULL
----

query I rowsort
SELECT ALL + + col0 * + + 68 * - - col0 * - - ( + + col0 ) - + col0 AS col1 FROM tab1 AS cor0
----
41760415
51242737
9020217

query I rowsort
SELECT col2 * 65 AS col1 FROM tab1
----
3835
4420
6240

query I rowsort
SELECT DISTINCT + col1 AS col0 FROM tab1 WHERE NOT + - 48 BETWEEN - + col2 AND NULL
----

query I rowsort
SELECT col2 * - + col2 FROM tab2
----
-1600
-3364
-529

query II rowsort
SELECT 24, col2 FROM tab2
----
24
23
24
40
24
58

query II rowsort
SELECT DISTINCT + 26, col0 FROM tab0
----
26
15
26
87
26
97

onlyif mysql # aggregate syntax: 
query I rowsort label-4123
SELECT - 69 * SUM( - ( + + col1 ) ) FROM tab0 WHERE NOT NULL BETWEEN - + col0 AND + col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4123
SELECT - 69 * SUM ( - ( + + col1 ) ) FROM tab0 WHERE NOT NULL BETWEEN - + col0 AND + col2
----
NULL

query II rowsort
SELECT + + 79, + col0 FROM tab0 AS cor0
----
79
15
79
87
79
97

onlyif mysql # DIV for integer division: 
query I rowsort label-4125
SELECT ALL + 85 + col2 * + - col0 + ( + 98 ) DIV col2 AS col2 FROM tab1 AS cor0
----
-4810
-4929
-6102

skipif mysql # not compatible
query I rowsort label-4125
SELECT ALL + 85 + col2 * + - col0 + ( + 98 ) / col2 AS col2 FROM tab1 AS cor0
----
-4810
-4929
-6102

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4126
SELECT + - col2 FROM tab0 WHERE ( NOT NULL NOT BETWEEN + 97 AND + col1 * - CAST( + - 73 AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-4126
SELECT + - col2 FROM tab0 WHERE ( NOT NULL NOT BETWEEN + 97 AND + col1 * - CAST ( + - 73 AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4127
SELECT COUNT( * ) + 79 col0 FROM tab2
----
82

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4127
SELECT COUNT ( * ) + 79 col0 FROM tab2
----
82

query I rowsort
SELECT + - col2 AS col2 FROM tab2 cor0 WHERE col2 IS NOT NULL
----
-23
-40
-58

query I rowsort
SELECT ALL - ( - col1 ) AS col2 FROM tab2 cor0 WHERE - col0 < NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4130
SELECT DISTINCT + col1 + + - 72 DIV - + col0 FROM tab1 AS cor0
----
15
47
5

skipif mysql # not compatible
query I rowsort label-4130
SELECT DISTINCT + col1 + + - 72 / - + col0 FROM tab1 AS cor0
----
15
47
5

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + 83 * col0 IS NOT NULL
----

query I rowsort
SELECT ( + - col0 ) - - 55 + 41 AS col2 FROM tab2
----
21
32
50

query I rowsort
SELECT - col1 / + 47 AS col0 FROM tab2 WHERE + ( - col0 ) * + + col1 * col2 BETWEEN + col0 AND ( - + col1 + + + 95 )
----

query I rowsort
SELECT ALL col2 + + 27 AS col0 FROM tab2
----
50
67
85

query III rowsort
SELECT * FROM tab0 WHERE col1 + + - 71 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - - 34 * - col0 AS col0 FROM tab2 AS cor0
----
-1564
-2176
-2550

query I rowsort
SELECT ALL + ( - ( col0 ) ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL <= + 13 / 42
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NOT NULL NOT IN ( - 87, - col1 * + + 74 ) )
----

query I rowsort
SELECT ALL - + 29 FROM tab1 cor0
----
-29
-29
-29

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL < 60
----

query I rowsort
SELECT ALL - col2 * + ( - 50 ) + - 60 + + + 46 AS col1 FROM tab1 AS cor0
----
2936
3386
4786

onlyif mysql # aggregate syntax: 
query I rowsort label-4142
SELECT - - SUM( + - col1 ) FROM tab2 AS cor0
----
-195

skipif mysql # not compatible
query I rowsort label-4142
SELECT - - SUM ( + - col1 ) FROM tab2 AS cor0
----
-195

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4143
SELECT - - SUM( + CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4143
SELECT - - SUM ( + CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT - 47 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - + ( + - ( - - 32 ) ) AS col0 FROM tab2 AS cor0
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-4146
SELECT DISTINCT - + MIN( + - 21 ) FROM tab2 AS cor0
----
21

skipif mysql # not compatible
query I rowsort label-4146
SELECT DISTINCT - + MIN ( + - 21 ) FROM tab2 AS cor0
----
21

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 7 * - - 25 col0 FROM tab0 AS cor0
----
175
175
175

onlyif mysql # aggregate syntax: 
query I rowsort label-4148
SELECT ALL 34 + - COUNT( * ) FROM tab0
----
31

skipif mysql # not compatible
query I rowsort label-4148
SELECT ALL 34 + - COUNT ( * ) FROM tab0
----
31

query I rowsort
SELECT ALL - col1 * - 48 FROM tab1
----
2256
240
672

query I rowsort
SELECT 82 * - - col0 AS col0 FROM tab2
----
3772
5248
6150

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + col1 NOT BETWEEN + 59 AND + + col0
----
75
67
58

onlyif mysql # aggregate syntax: 
query I rowsort label-4152
SELECT ALL ( + COUNT( * ) ) * 13 FROM tab1
----
39

skipif mysql # not compatible
query I rowsort label-4152
SELECT ALL ( + COUNT ( * ) ) * 13 FROM tab1
----
39

onlyif mysql # DIV for integer division: 
query II rowsort label-4153
SELECT DISTINCT 68 DIV - col0 col1, 35 + 12 AS col1 FROM tab0
----
-4
47
0
47

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4153
SELECT DISTINCT 68 / - col0 col1, 35 + 12 AS col1 FROM tab0
----
-4
47
0
47

onlyif mysql # DIV for integer division: 
query II rowsort label-4154
SELECT DISTINCT + 62 DIV + col1 AS col1, 93 AS col1 FROM tab2
----
0
93
1
93

skipif mysql # not compatible
query II rowsort label-4154
SELECT DISTINCT + 62 / + col1 AS col1, 93 AS col1 FROM tab2
----
0
93
1
93

query I rowsort
SELECT + 34 + col2 FROM tab2
----
57
74
92

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4156
SELECT ALL * FROM tab1 cor0 WHERE NOT - col2 * ( - col0 ) + - + ( 42 ) + + 5 + + - CAST( + 71 AS SIGNED ) < ( + 94 ) OR NOT NULL >= NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-4156
SELECT ALL * FROM tab1 cor0 WHERE NOT - col2 * ( - col0 ) + - + ( 42 ) + + 5 + + - CAST ( + 71 AS INTEGER ) < ( + 94 ) OR NOT NULL >= NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL col2 + - 84 AS col0 FROM tab1 AS cor0
----
-16
-25
12

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col1 = col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4159
SELECT ALL col1 DIV + col2 + + - col1 AS col0 FROM tab1
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-4159
SELECT ALL col1 / + col2 + + - col1 AS col0 FROM tab1
----
-14
-47
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-4160
SELECT MIN( - col0 ) AS col2 FROM tab1
----
-91

skipif mysql # not compatible
query I rowsort label-4160
SELECT MIN ( - col0 ) AS col2 FROM tab1
----
-91

query I rowsort
SELECT col0 AS col1 FROM tab1 WHERE - - col0 <= - + col0
----

query II rowsort
SELECT ALL col1, 33 AS col0 FROM tab2
----
51
33
67
33
77
33

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 8 col1 FROM tab2 AS cor0
----
8

query I rowsort
SELECT - col2 * + - col1 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
1173
3080
3886

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4165
SELECT DISTINCT + + CAST( NULL AS SIGNED ) col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4165
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) col1 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4166
SELECT + ( - ( - COUNT( * ) ) ) AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-4166
SELECT + ( - ( - COUNT ( * ) ) ) AS col1 FROM tab2
----
3

query I rowsort
SELECT DISTINCT - 56 - 43 AS col1 FROM tab0
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-4168
SELECT ALL + ( + + COUNT( * ) ) col2 FROM tab0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4168
SELECT ALL + ( + + COUNT ( * ) ) col2 FROM tab0
----
3

query I rowsort
SELECT + ( - ( col0 ) ) FROM tab1
----
-51
-85
-91

query I rowsort
SELECT ( - + 29 ) AS col0 FROM tab0
----
-29
-29
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-4171
SELECT + COUNT( + 55 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-4171
SELECT + COUNT ( + 55 ) FROM tab1
----
3

query I rowsort
SELECT - ( 63 ) * col0 FROM tab0 AS cor0
----
-5481
-6111
-945

query I rowsort
SELECT ALL col1 * 99 * + ( + col2 ) FROM tab1 AS cor0 WHERE NOT col0 IN ( - 48 )
----
133056
29205
316404

query I rowsort
SELECT ALL - 18 * - + col2 AS col1 FROM tab2
----
1044
414
720

query I rowsort
SELECT DISTINCT + 15 * + + 82 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
1230

onlyif mysql # DIV for integer division: 
query I rowsort label-4176
SELECT ( - ( 33 ) ) DIV - + 64 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4176
SELECT ( - ( 33 ) ) / - + 64 FROM tab1
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 33 * col0 col1 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT + col1 + col2 + + col0 FROM tab2 AS cor0
----
120
181
200

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4179
SELECT DISTINCT + col1 + + - CAST( + - 19 AS SIGNED ) * + 83 AS col1 FROM tab0 AS cor0
----
1578
1598
1658

skipif mysql # not compatible
query I rowsort label-4179
SELECT DISTINCT + col1 + + - CAST ( + - 19 AS INTEGER ) * + 83 AS col1 FROM tab0 AS cor0
----
1578
1598
1658

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col2 NOT IN ( 98, + col0 + - - col1 * - + col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4181
SELECT ALL - MIN( - 15 ) + 73 * MAX( 57 ) AS col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4181
SELECT ALL - MIN ( - 15 ) + 73 * MAX ( 57 ) AS col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
NULL

query I rowsort
SELECT + col0 * col0 + - + col2 AS col1 FROM tab0 AS cor0
----
178
7559
9310

query I rowsort
SELECT + ( + ( - col1 ) ) FROM tab1 AS cor0
----
-14
-47
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-4184
SELECT + ( - - MIN( + col1 ) ) * + 91 FROM tab0 cor0
----
91

skipif mysql # not compatible
query I rowsort label-4184
SELECT + ( - - MIN ( + col1 ) ) * + 91 FROM tab0 cor0
----
91

query II rowsort
SELECT + + ( - - ( - col2 ) ), - col2 AS col0 FROM tab2 AS cor0
----
-23
-23
-40
-40
-58
-58

query III rowsort
SELECT * FROM tab1 WHERE - 64 + - col0 IS NULL
----

query I rowsort
SELECT DISTINCT + 18 AS col2 FROM tab1
----
18

query II rowsort
SELECT + + col0 * - col1 AS col1, + col2 FROM tab1 AS cor0 WHERE NULL BETWEEN col1 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4189
SELECT ALL - COUNT( * ) + 69 AS col1 FROM tab0 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-4189
SELECT ALL - COUNT ( * ) + 69 AS col1 FROM tab0 AS cor0
----
66

query I rowsort
SELECT DISTINCT col0 FROM tab1 WHERE NULL = + - col2
----

query III rowsort
SELECT ALL * FROM tab0 WHERE + + col1 * - col2 > + col2
----

query I rowsort
SELECT - col1 * - + col1 AS col2 FROM tab1 AS cor0
----
196
2209
25

onlyif mysql # DIV for integer division: 
query I rowsort label-4193
SELECT - col0 * + 30 + - 99 DIV 80 AS col2 FROM tab1 AS cor0
----
-1531
-2551
-2731

skipif mysql # not compatible
query I rowsort label-4193
SELECT - col0 * + 30 + - 99 / 80 AS col2 FROM tab1 AS cor0
----
-1531
-2551
-2731

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - ( - col0 ) = + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4195
SELECT SUM( DISTINCT - ( + col2 ) ) AS col2 FROM tab1 AS cor0
----
-223

skipif mysql # not compatible
query I rowsort label-4195
SELECT SUM ( DISTINCT - ( + col2 ) ) AS col2 FROM tab1 AS cor0
----
-223

query I rowsort
SELECT col2 * - + ( - + 49 ) AS col0 FROM tab1 AS cor0
----
2891
3332
4704

query I rowsort
SELECT - 57 - + col0 FROM tab0 AS cor0
----
-144
-154
-72

query I rowsort
SELECT - col1 - + - col1 AS col2 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ( - + 59 ) - + col2 FROM tab0 AS cor0
----
-106
-158
-69

query I rowsort
SELECT + + 86 - - col0 * + 75 + 16 AS col2 FROM tab1 AS cor0
----
3927
6477
6927

query I rowsort
SELECT ALL - + 43 AS col1 FROM tab0 AS cor0
----
-43
-43
-43

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4202
SELECT DISTINCT 69 DIV MIN( 60 ) col0 FROM tab0
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4202
SELECT DISTINCT 69 / MIN ( 60 ) col0 FROM tab0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4203
SELECT DISTINCT MAX( col2 ) AS col1 FROM tab2
----
58

skipif mysql # not compatible
query I rowsort label-4203
SELECT DISTINCT MAX ( col2 ) AS col1 FROM tab2
----
58

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE 19 + - 56 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4205
SELECT COUNT( * ) col0 FROM tab2, tab2 AS cor0
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4205
SELECT COUNT ( * ) col0 FROM tab2, tab2 AS cor0
----
9

query I rowsort
SELECT DISTINCT - 32 AS col2 FROM tab0
----
-32

query II rowsort
SELECT + col2 AS col0, ( + - col2 ) * + + col1 * - - col0 + col0 AS col1 FROM tab2
----
23
-53912
40
-197056
58
-291375

query I rowsort
SELECT DISTINCT - - ( - + col1 ) AS col0 FROM tab1 cor0
----
-14
-47
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-4209
SELECT ALL + - SUM( DISTINCT + col0 ) col0 FROM tab2 AS cor0
----
-185

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4209
SELECT ALL + - SUM ( DISTINCT + col0 ) col0 FROM tab2 AS cor0
----
-185

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT col1 * - ( + + col0 ), - 22 AS col2, + col0 col2 FROM tab2 AS cor0
----
9 values hashing to 266cfdba9716c43aff16e41532945c49

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4211
SELECT ALL * FROM tab1 WHERE NOT CAST( NULL AS SIGNED ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-4211
SELECT ALL * FROM tab1 WHERE NOT CAST ( NULL AS INTEGER ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL >= 71 / - col1
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col1 BETWEEN NULL AND + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4214
SELECT COUNT( DISTINCT + col0 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4214
SELECT COUNT ( DISTINCT + col0 ) FROM tab1 AS cor0
----
3

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - 40 - - + 72 >= NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col2 * col1 / col0 BETWEEN - col2 AND - + col0
----

query I rowsort
SELECT - 31 FROM tab2 AS cor0 WHERE - 98 NOT BETWEEN - ( 24 ) AND ( NULL )
----
-31
-31
-31

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4218
SELECT * FROM tab2 WHERE - CAST( NULL AS SIGNED ) + + col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-4218
SELECT * FROM tab2 WHERE - CAST ( NULL AS INTEGER ) + + col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + 93 + - 95 * 29 AS col2 FROM tab2
----
-2662
-2662
-2662

query II rowsort
SELECT col2 * col1 + col0 AS col0, - ( - col0 ) AS col1 FROM tab1
----
1395
51
3287
91
380
85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4221
SELECT - CAST( NULL AS SIGNED ) + - 80 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4221
SELECT - CAST ( NULL AS INTEGER ) + - 80 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT col1 + + col1 + col1 * - 34 AS col0 FROM tab2
----
-1632
-2144
-2464

onlyif mysql # aggregate syntax: 
query II rowsort label-4223
SELECT - COUNT( * ) col2, - COUNT( * ) AS col1 FROM tab2 AS cor0
----
-3
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4223
SELECT - COUNT ( * ) col2, - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-3
-3

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col0 * col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4225
SELECT ALL - - 50 + + COUNT( * ) * + MIN( ALL + col0 ) + 84 AS col2 FROM tab0 AS cor0
----
179

skipif mysql # not compatible
query I rowsort label-4225
SELECT ALL - - 50 + + COUNT ( * ) * + MIN ( ALL + col0 ) + 84 AS col2 FROM tab0 AS cor0
----
179

query I rowsort
SELECT ALL + 54 + - col0 AS col1 FROM tab0 AS cor0
----
-33
-43
39

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( col1 ) <> + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4228
SELECT ALL 86 * COUNT( * ) + + - COUNT( * ) AS col0 FROM tab2
----
255

skipif mysql # not compatible
query I rowsort label-4228
SELECT ALL 86 * COUNT ( * ) + + - COUNT ( * ) AS col0 FROM tab2
----
255

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4229
SELECT - + COUNT( * ) * - ( + + 30 ) * - CAST( NULL AS SIGNED ) + + 84 * + COUNT( * ) FROM tab2 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4229
SELECT - + COUNT ( * ) * - ( + + 30 ) * - CAST ( NULL AS INTEGER ) + + 84 * + COUNT ( * ) FROM tab2 WHERE NULL IS NOT NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * - - col2 col0 FROM tab0
----
-705
-870
-9603

onlyif mysql # aggregate syntax: 
query I rowsort label-4231
SELECT + COUNT( * ) FROM tab2 cor0 CROSS JOIN tab1 cor1
----
9

skipif mysql # not compatible
query I rowsort label-4231
SELECT + COUNT ( * ) FROM tab2 cor0 CROSS JOIN tab1 cor1
----
9

query III rowsort
SELECT ALL col0, col1 AS col0, + - 49 * 1 AS col1 FROM tab1 AS cor0
----
9 values hashing to 94a5cb05ed788a289760cfae818a743e

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col1 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4234
SELECT - COUNT( * ) + - 33 FROM tab2 AS cor0
----
-36

skipif mysql # not compatible
query I rowsort label-4234
SELECT - COUNT ( * ) + - 33 FROM tab2 AS cor0
----
-36

query I rowsort
SELECT DISTINCT - col0 * - + col0 FROM tab1 AS cor0
----
2601
7225
8281

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4236
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col2 NOT BETWEEN NULL AND col2 * - CAST( - 64 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-4236
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col2 NOT BETWEEN NULL AND col2 * - CAST ( - 64 AS INTEGER )
----

query I rowsort
SELECT ALL - col0 AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-46
-64
-75

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4238
SELECT DISTINCT - + CAST( NULL AS DECIMAL ) * ( col1 ) + - col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4238
SELECT DISTINCT - + CAST ( NULL AS REAL ) * ( col1 ) + - col2 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT + AVG ( DISTINCT + col1 ) AS col0 FROM tab0 AS cor0 WHERE NOT col0 IS NOT NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4240
SELECT DISTINCT col0 DIV - - 35 FROM tab2 AS cor0
----
1
2

skipif mysql # not compatible
query I rowsort label-4240
SELECT DISTINCT col0 / - - 35 FROM tab2 AS cor0
----
1
2

query I rowsort
SELECT ALL + - col1 + - col1 + - col0 AS col2 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN NULL AND - col1 * + - 53
----

query I rowsort
SELECT ALL + ( + 63 ) * col2 + + + 65 FROM tab1 AS cor0 WHERE NOT NULL > ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4243
SELECT - col1 DIV col0 * + col2 AS col0 FROM tab2
----
-23
-40
0

skipif mysql # not compatible
query I rowsort label-4243
SELECT - col1 / col0 * + col2 AS col0 FROM tab2
----
-23
-40
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - col0 >= col2
----

query I rowsort
SELECT - ( - - 52 ) AS col2 FROM tab0
----
-52
-52
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-4246
SELECT 45 * MAX( + 95 ) FROM tab2
----
4275

skipif mysql # not compatible
query I rowsort label-4246
SELECT 45 * MAX ( + 95 ) FROM tab2
----
4275

onlyif mysql # aggregate syntax: 
query I rowsort label-4247
SELECT COUNT( * ) * 35 AS col1 FROM tab1
----
105

skipif mysql # not compatible
query I rowsort label-4247
SELECT COUNT ( * ) * 35 AS col1 FROM tab1
----
105

query I rowsort
SELECT + + 96 FROM tab1 WHERE NOT - col2 / + col0 >= + + col0
----
96
96
96

onlyif mysql # aggregate syntax: 
query I rowsort label-4249
SELECT DISTINCT MIN( ALL + col1 ) AS col1 FROM tab0 WHERE col0 / + - col0 <> - col1
----
21

skipif mysql # not compatible
query I rowsort label-4249
SELECT DISTINCT MIN ( ALL + col1 ) AS col1 FROM tab0 WHERE col0 / + - col0 <> - col1
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-4250
SELECT ALL COUNT( - - col0 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4250
SELECT ALL COUNT ( - - col0 ) FROM tab2 AS cor0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-4251
SELECT ALL - col1 DIV + - 6 FROM tab0 AS cor0
----
0
13
3

skipif mysql # not compatible
query I rowsort label-4251
SELECT ALL - col1 / + - 6 FROM tab0 AS cor0
----
0
13
3

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4252
SELECT ALL * FROM tab2 WHERE NOT CAST( + - col0 AS DECIMAL ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-4252
SELECT ALL * FROM tab2 WHERE NOT CAST ( + - col0 AS REAL ) IS NOT NULL
----

query I rowsort
SELECT - 68 * + 64 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to b50c3814bce3b396ba00e217ef318b09

query II rowsort
SELECT ALL + col0 AS col2, col1 FROM tab2
----
46
51
64
77
75
67

query I rowsort
SELECT DISTINCT 43 FROM tab0 AS cor0 WHERE NULL IS NULL
----
43

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 47 <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4257
SELECT DISTINCT + 94, - 0 * - - col0 * + - col1 * CAST( NULL AS SIGNED ) * - col0 AS col0 FROM tab1 cor0
----
94
NULL

skipif mysql # not compatible
query II rowsort label-4257
SELECT DISTINCT + 94, - 0 * - - col0 * + - col1 * CAST ( NULL AS INTEGER ) * - col0 AS col0 FROM tab1 cor0
----
94
NULL

query I rowsort
SELECT ALL + + 50 AS col0 FROM tab0 AS cor0
----
50
50
50

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 18 col0 FROM tab2 AS cor0 WHERE 8 IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4260
SELECT + 27 DIV - COUNT( * ) FROM tab1 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-4260
SELECT + 27 / - COUNT ( * ) FROM tab1 AS cor0
----
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 44 col2 FROM tab1 AS cor0
----
44
44
44

query I rowsort
SELECT ALL - - col2 + - 13 AS col2 FROM tab1 AS cor0
----
46
55
83

query II rowsort
SELECT + ( 1 ) AS col0, - ( - 16 ) * + + 25 AS col0 FROM tab2
----
1
400
1
400
1
400

query I rowsort
SELECT ALL + 19 + - - col0 - - 4 AS col1 FROM tab2
----
69
87
98

query II rowsort
SELECT ALL - 96 AS col2, 22 AS col1 FROM tab1 WHERE NOT - col0 <> NULL
----

query I rowsort
SELECT ALL + col2 + - + col2 AS col0 FROM tab0 WHERE NOT ( - col2 NOT BETWEEN - 72 * - col2 AND NULL )
----

query III rowsort
SELECT * FROM tab1 WHERE ( - 70 <> + + col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4268
SELECT + 71 + + MAX( ALL - col0 ) * MAX( ALL - - col0 ) AS col2 FROM tab1 AS cor0
----
-4570

skipif mysql # not compatible
query I rowsort label-4268
SELECT + 71 + + MAX ( ALL - col0 ) * MAX ( ALL - - col0 ) AS col2 FROM tab1 AS cor0
----
-4570

query I rowsort
SELECT DISTINCT - + col2 AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-10
-47
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-4270
SELECT - 1 * + COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE + col1 * - col0 + + col2 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-4270
SELECT - 1 * + COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE + col1 * - col0 + + col2 IS NOT NULL
----
-3

query I rowsort
SELECT + - 72 + + - 84 AS col2 FROM tab2 cor0
----
-156
-156
-156

query I rowsort
SELECT DISTINCT 24 + - 51 FROM tab0
----
-27

query III rowsort
SELECT * FROM tab2 WHERE ( + 63 ) < NULL
----

query I rowsort
SELECT DISTINCT col0 * - 1 AS col1 FROM tab0 AS cor0
----
-15
-87
-97

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4275
SELECT - SUM( DISTINCT + + CAST( NULL AS DECIMAL ) ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4275
SELECT - SUM ( DISTINCT + + CAST ( NULL AS REAL ) ) FROM tab0 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 44 col1 FROM tab1 AS cor0
----
-44
-44
-44

query I rowsort
SELECT DISTINCT + col0 * 29 AS col1 FROM tab2 cor0
----
1334
1856
2175

query II rowsort
SELECT col1, 68 + - + 32 AS col0 FROM tab0 AS cor0
----
1
36
21
36
81
36

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col2 + - col0 * col2 / + + 28 * col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4280
SELECT ALL COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4280
SELECT ALL COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 69 col2 FROM tab1 AS cor0
----
-69
-69
-69

query I rowsort
SELECT ALL + 86 * 97 * + 88 AS col2 FROM tab1
----
734096
734096
734096

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4283
SELECT ALL - col2 * - CAST( - + col0 AS SIGNED ) AS col2 FROM tab0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-4283
SELECT ALL - col2 * - CAST ( - + col0 AS INTEGER ) AS col2 FROM tab0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL + 26 FROM tab0 WHERE - 0 * - - ( + - col1 ) * col1 >= + + 25 * col2
----

query I rowsort
SELECT ALL 43 * - ( - - 70 ) AS col0 FROM tab2
----
-3010
-3010
-3010

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4286
SELECT DISTINCT MIN( DISTINCT - col2 ) DIV + + 58 AS col0 FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-4286
SELECT DISTINCT MIN ( DISTINCT - col2 ) / + + 58 AS col0 FROM tab2
----
-1

query I rowsort
SELECT ALL + col0 * 70 * 21 FROM tab2
----
110250
67620
94080

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4288
SELECT DISTINCT + 91 DIV + COUNT( * ) col1 FROM tab1
----
30

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4288
SELECT DISTINCT + 91 / + COUNT ( * ) col1 FROM tab1
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-4289
SELECT - + MAX( ALL - col0 ) FROM tab1 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-4289
SELECT - + MAX ( ALL - col0 ) FROM tab1 AS cor0
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-4290
SELECT ALL MIN( - ( + col0 ) ) AS col0 FROM tab0 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-4290
SELECT ALL MIN ( - ( + col0 ) ) AS col0 FROM tab0 AS cor0
----
-97

query I rowsort
SELECT DISTINCT col0 + + + col2 FROM tab2 AS cor0
----
104
133
69

query I rowsort
SELECT DISTINCT + 77 + - col0 FROM tab1 cor0
----
-14
-8
26

query I rowsort
SELECT DISTINCT col2 FROM tab1 AS cor0 WHERE + col2 IS NOT NULL
----
59
68
96

query I rowsort
SELECT ALL + 40 * + 68 FROM tab2
----
2720
2720
2720

onlyif mysql # aggregate syntax: 
query I rowsort label-4295
SELECT COUNT( DISTINCT - col2 ) col2 FROM tab2
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4295
SELECT COUNT ( DISTINCT - col2 ) col2 FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4296
SELECT ALL MIN( DISTINCT + 35 ) FROM tab2
----
35

skipif mysql # not compatible
query I rowsort label-4296
SELECT ALL MIN ( DISTINCT + 35 ) FROM tab2
----
35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4297
SELECT + CAST( NULL AS SIGNED ) / + + ( + + col2 ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4297
SELECT + CAST ( NULL AS INTEGER ) / + + ( + + col2 ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 79 * + 45 FROM tab1 AS cor0
----
3555
3555
3555

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4299
SELECT DISTINCT - col1 + + col0 * + CAST( NULL AS SIGNED ) + + col0 AS col1 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4299
SELECT DISTINCT - col1 + + col0 * + CAST ( NULL AS INTEGER ) + + col0 AS col1 FROM tab2 cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col1 * - 80 NOT BETWEEN NULL AND + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4301
SELECT ALL * FROM tab0 WHERE + + CAST( NULL AS SIGNED ) + + col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-4301
SELECT ALL * FROM tab0 WHERE + + CAST ( NULL AS INTEGER ) + + col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4302
SELECT DISTINCT MIN( DISTINCT + col0 ) + - 35 AS col2 FROM tab0
----
-20

skipif mysql # not compatible
query I rowsort label-4302
SELECT DISTINCT MIN ( DISTINCT + col0 ) + - 35 AS col2 FROM tab0
----
-20

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 5 + - col0 col0 FROM tab2
----
-41
-59
-70

query I rowsort
SELECT DISTINCT - 18 - + col1 FROM tab0
----
-19
-39
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-4305
SELECT SUM( ALL + - col0 ) FROM tab1
----
-227

skipif mysql # not compatible
query I rowsort label-4305
SELECT SUM ( ALL + - col0 ) FROM tab1
----
-227

query I rowsort
SELECT DISTINCT + col2 - - col2 FROM tab1
----
118
136
192

onlyif mysql # aggregate syntax: 
query I rowsort label-4307
SELECT COUNT( * ) * - 73 FROM tab0
----
-219

skipif mysql # not compatible
query I rowsort label-4307
SELECT COUNT ( * ) * - 73 FROM tab0
----
-219

query II rowsort
SELECT ALL col1 AS col1, - col2 AS col1 FROM tab1 AS cor0
----
14
-96
47
-68
5
-59

query I rowsort
SELECT + col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4310
SELECT ALL COUNT( * ) + + 83 FROM tab2 AS cor0
----
86

skipif mysql # not compatible
query I rowsort label-4310
SELECT ALL COUNT ( * ) + + 83 FROM tab2 AS cor0
----
86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4311
SELECT DISTINCT CAST( col1 AS SIGNED ) * - col1 col0 FROM tab1
----
-196
-2209
-25

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4311
SELECT DISTINCT CAST ( col1 AS INTEGER ) * - col1 col0 FROM tab1
----
-196
-2209
-25

query IIIIII rowsort
SELECT * FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 ) WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4313
SELECT ALL - col1 * + + col1 * - + CAST( col0 AS SIGNED ) + col2 * + col0 FROM tab2 AS cor0 WHERE NOT - 74 > - ( - + col0 )
----
120704
341025
382016

skipif mysql # not compatible
query I rowsort label-4313
SELECT ALL - col1 * + + col1 * - + CAST ( col0 AS INTEGER ) + col2 * + col0 FROM tab2 AS cor0 WHERE NOT - 74 > - ( - + col0 )
----
120704
341025
382016

query I rowsort
SELECT DISTINCT - - col1 * 0 + + 74 AS col0 FROM tab1 AS cor0
----
74

query I rowsort
SELECT DISTINCT col1 * - 28 FROM tab1 AS cor0
----
-1316
-140
-392

query I rowsort
SELECT ALL + 57 * 94 FROM tab2
----
5358
5358
5358

query I rowsort
SELECT ALL + col1 * + - col1 AS col2 FROM tab1
----
-196
-2209
-25

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 85 * - col2 col1 FROM tab1
----
5015
5780
8160

query I rowsort
SELECT DISTINCT col1 * - col1 * - 25 FROM tab2
----
112225
148225
65025

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4320
SELECT col0 / - - CAST( NULL AS SIGNED ) * + - 25 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4320
SELECT col0 / - - CAST ( NULL AS INTEGER ) * + - 25 AS col1 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4321
SELECT DISTINCT MAX( 41 ) FROM tab2
----
41

skipif mysql # not compatible
query I rowsort label-4321
SELECT DISTINCT MAX ( 41 ) FROM tab2
----
41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4322
SELECT ALL - MAX( ALL + CAST( - - 50 AS SIGNED ) ) FROM tab2
----
-50

skipif mysql # not compatible
query I rowsort label-4322
SELECT ALL - MAX ( ALL + CAST ( - - 50 AS INTEGER ) ) FROM tab2
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-4323
SELECT DISTINCT - 3 + - + 8 + COUNT( * ) + COUNT( * ) FROM tab1 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-4323
SELECT DISTINCT - 3 + - + 8 + COUNT ( * ) + COUNT ( * ) FROM tab1 AS cor0
----
-5

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col2 < + + col0 + + col0 + - 34 * + col2 / - 5 * col2 / col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col1 NOT BETWEEN col1 AND NULL
----

query I rowsort
SELECT + 73 + col1 AS col2 FROM tab2 AS cor0 WHERE NOT NULL <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4327
SELECT - - COUNT( ALL + + ( - ( - col1 ) ) ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4327
SELECT - - COUNT ( ALL + + ( - ( - col1 ) ) ) FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4328
SELECT - ( - COUNT( * ) ) * + - 67 FROM tab0 AS cor0
----
-201

skipif mysql # not compatible
query I rowsort label-4328
SELECT - ( - COUNT ( * ) ) * + - 67 FROM tab0 AS cor0
----
-201

query I rowsort
SELECT ALL 71 * + col0 AS col0 FROM tab2
----
3266
4544
5325

query I rowsort
SELECT ALL + ( col2 ) FROM tab2 AS cor0 WHERE NOT NULL = NULL
----

query II rowsort
SELECT DISTINCT - col2 AS col1, col2 AS col2 FROM tab2 AS cor0
----
-23
23
-40
40
-58
58

query II rowsort
SELECT ALL - + col2 AS col0, - col2 FROM tab2 AS cor0
----
-23
-23
-40
-40
-58
-58

query II rowsort
SELECT DISTINCT + col1 AS col1, - 58 + - col1 AS col0 FROM tab1 AS cor0
----
14
-72
47
-105
5
-63

query II rowsort
SELECT - - col0 AS col0, + col1 AS col1 FROM tab1 AS cor0
----
51
14
85
5
91
47

query II rowsort
SELECT ALL - + col2 + - - 80, col1 AS col0 FROM tab0 AS cor0
----
-19
1
33
81
70
21

onlyif mysql # aggregate syntax: 
query I rowsort label-4336
SELECT - COUNT( * ) FROM tab2 AS cor0 WHERE NULL NOT BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-4336
SELECT - COUNT ( * ) FROM tab2 AS cor0 WHERE NULL NOT BETWEEN NULL AND NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 92 + + + 59 col1, + col0 FROM tab0
----
151
15
151
87
151
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 25 - - 62 col2 FROM tab0
----
87
87
87

query I rowsort
SELECT ALL col2 * - - col0 * + - 19 * - 44 * col1 + + col1 FROM tab0
----
15273741
47739861
8028109

onlyif mysql # aggregate syntax: 
query I rowsort label-4340
SELECT ALL COUNT( * ) - 32 + COUNT( * ) * + 7 FROM tab2
----
-8

skipif mysql # not compatible
query I rowsort label-4340
SELECT ALL COUNT ( * ) - 32 + COUNT ( * ) * + 7 FROM tab2
----
-8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4341
SELECT ALL COUNT( * ) FROM tab1 WHERE NOT - col1 / - + col2 - - 40 + + + CAST( NULL AS SIGNED ) + - col1 * 70 + 35 + - col2 * - ( + 52 ) IN ( + - 77, 1, - 74 + col1 )
----
0

skipif mysql # not compatible
query I rowsort label-4341
SELECT ALL COUNT ( * ) FROM tab1 WHERE NOT - col1 / - + col2 - - 40 + + + CAST ( NULL AS INTEGER ) + - col1 * 70 + 35 + - col2 * - ( + 52 ) IN ( + - 77, 1, - 74 + col1 )
----
0

query I rowsort
SELECT ALL 58 - - 85 AS col1 FROM tab2
----
143
143
143

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL IS NOT NULL OR + 26 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4344
SELECT CAST( NULL AS SIGNED ) * - + col0 + + col2, col1 FROM tab2 AS cor0
----
NULL
51
NULL
67
NULL
77

skipif mysql # not compatible
query II rowsort label-4344
SELECT CAST ( NULL AS INTEGER ) * - + col0 + + col2, col1 FROM tab2 AS cor0
----
NULL
51
NULL
67
NULL
77

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - 49 IS NOT NULL
----

query I rowsort
SELECT + 12 * - - col2 AS col0 FROM tab2 AS cor0
----
276
480
696

query II rowsort
SELECT ALL col2, + col2 AS col2 FROM tab2
----
23
23
40
40
58
58

onlyif mysql # aggregate syntax: 
query I rowsort label-4348
SELECT DISTINCT + + 7 - - COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
16

skipif mysql # not compatible
query I rowsort label-4348
SELECT DISTINCT + + 7 - - COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
16

query I rowsort
SELECT ALL - 4 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 5784540a5af6ca2be84399d314acd2fd

onlyif mysql # aggregate syntax: 
query II rowsort label-4350
SELECT + - COUNT( * ) AS col1, - ( - 28 ) FROM tab0 AS cor0
----
-3
28

skipif mysql # not compatible
query II rowsort label-4350
SELECT + - COUNT ( * ) AS col1, - ( - 28 ) FROM tab0 AS cor0
----
-3
28

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL > + 86
----

query I rowsort
SELECT - 58 AS col2 FROM tab0 cor0
----
-58
-58
-58

query I rowsort
SELECT col2 * + + 41 * col0 + - + col0 + - - col2 AS col2 FROM tab2 AS cor0
----
104936
178333
43355

query I rowsort
SELECT - col2 FROM tab0 AS cor0 WHERE NOT - 51 > - col2
----
-10
-47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4355
SELECT + CAST( - COUNT( ALL + col1 ) AS SIGNED ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4355
SELECT + CAST ( - COUNT ( ALL + col1 ) AS INTEGER ) FROM tab1 AS cor0
----
-3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4357
SELECT ALL * FROM tab2 cor0 WHERE NOT NULL NOT IN ( + col2, 21 + - + CAST( NULL AS SIGNED ) + ( + col1 ), - + 71 )
----

skipif mysql # not compatible
query III rowsort label-4357
SELECT ALL * FROM tab2 cor0 WHERE NOT NULL NOT IN ( + col2, 21 + - + CAST ( NULL AS INTEGER ) + ( + col1 ), - + 71 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4358
SELECT + col0 FROM tab0 WHERE NOT - col1 - + col2 * - col0 NOT IN ( + + 15 + + 85 - col2 * + + col2, CAST( + 82 AS SIGNED ), col1 )
----

skipif mysql # not compatible
query I rowsort label-4358
SELECT + col0 FROM tab0 WHERE NOT - col1 - + col2 * - col0 NOT IN ( + + 15 + + 85 - col2 * + + col2, CAST ( + 82 AS INTEGER ), col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4359
SELECT - COUNT( * ) * COUNT( - 81 ) AS col1 FROM tab2
----
-9

skipif mysql # not compatible
query I rowsort label-4359
SELECT - COUNT ( * ) * COUNT ( - 81 ) AS col1 FROM tab2
----
-9

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + + 83 NOT BETWEEN NULL AND - col2 + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4361
SELECT DISTINCT - COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE ( NULL ) = + 80
----
0

skipif mysql # not compatible
query I rowsort label-4361
SELECT DISTINCT - COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE ( NULL ) = + 80
----
0

query I rowsort
SELECT ALL - + col1 + + 12 AS col0 FROM tab0 AS cor0
----
-69
-9
11

onlyif mysql # aggregate syntax: 
query I rowsort label-4363
SELECT DISTINCT COUNT( * ) FROM tab0 AS cor0 WHERE + col0 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-4363
SELECT DISTINCT COUNT ( * ) FROM tab0 AS cor0 WHERE + col0 IS NOT NULL
----
3

query I rowsort
SELECT ALL 94 + - 44 AS col1 FROM tab0 AS cor0
----
50
50
50

query II rowsort
SELECT - col0, col0 FROM tab2
----
-46
46
-64
64
-75
75

onlyif mysql # aggregate syntax: 
query I rowsort label-4366
SELECT ALL - SUM( ALL - 57 ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
513

skipif mysql # not compatible
query I rowsort label-4366
SELECT ALL - SUM ( ALL - 57 ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
513

query I rowsort
SELECT 18 * + 25 * - col0 AS col1 FROM tab2
----
-20700
-28800
-33750

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4368
SELECT - + 22 + + CAST( + col1 AS SIGNED ) FROM tab0 AS cor0
----
-1
-21
59

skipif mysql # not compatible
query I rowsort label-4368
SELECT - + 22 + + CAST ( + col1 AS INTEGER ) FROM tab0 AS cor0
----
-1
-21
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4369
SELECT ALL - col2 * CAST( - col0 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
4896
5015
6188

skipif mysql # not compatible
query I rowsort label-4369
SELECT ALL - col2 * CAST ( - col0 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
4896
5015
6188

query I rowsort
SELECT - 54 + + 56 AS col2 FROM tab0 AS cor0
----
2
2
2

query I rowsort
SELECT DISTINCT col1 * + ( col2 ) * + - col1 FROM tab2 AS cor0
----
-237160
-260362
-59823

query I rowsort
SELECT DISTINCT 51 + + col0 * - ( - col2 ) AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
4947
5066
6239

query I rowsort
SELECT - col1 * + + col2 + - - ( + + col2 ) + + col0 * - 85 - - + col1 FROM tab0 AS cor0 WHERE NULL BETWEEN NULL AND NULL
----

query I rowsort
SELECT - col1 + - - col0 + + ( col1 ) FROM tab1 cor0
----
51
85
91

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4375
SELECT + CAST( NULL AS DECIMAL ), - col1 AS col2 FROM tab2
----
NULL
-51
NULL
-67
NULL
-77

skipif mysql # not compatible
query II rowsort label-4375
SELECT + CAST ( NULL AS REAL ), - col1 AS col2 FROM tab2
----
NULL
-51
NULL
-67
NULL
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-4376
SELECT DISTINCT + COUNT( * ) - - COUNT( * ) * - 7 AS col1 FROM tab2
----
-18

skipif mysql # not compatible
query I rowsort label-4376
SELECT DISTINCT + COUNT ( * ) - - COUNT ( * ) * - 7 AS col1 FROM tab2
----
-18

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-4377
SELECT - MAX( - col0 ), CAST( NULL AS DECIMAL ) AS col1 FROM tab1
----
51
NULL

skipif mysql # not compatible
query II rowsort label-4377
SELECT - MAX ( - col0 ), CAST ( NULL AS REAL ) AS col1 FROM tab1
----
51
NULL

query I rowsort
SELECT DISTINCT + ( col0 ) + + + col1 AS col2 FROM tab2
----
141
142
97

query I rowsort
SELECT ALL col2 + - - ( - col0 ) FROM tab2
----
-17
-23
-24

onlyif mysql # aggregate syntax: 
query II rowsort label-4380
SELECT COUNT( * ), 55 * - + 99 AS col2 FROM tab0
----
3
-5445

skipif mysql # not compatible
query II rowsort label-4380
SELECT COUNT ( * ), 55 * - + 99 AS col2 FROM tab0
----
3
-5445

query II rowsort
SELECT - 43 AS col2, - 60 AS col1 FROM tab1
----
-43
-60
-43
-60
-43
-60

query II rowsort
SELECT + col1 AS col0, col0 AS col2 FROM tab2
----
51
46
67
75
77
64

query I rowsort
SELECT ALL + col0 - - - 26 AS col0 FROM tab1
----
25
59
65

onlyif mysql # aggregate syntax: 
query I rowsort label-4384
SELECT - SUM( ALL + 16 ) FROM tab1
----
-48

skipif mysql # not compatible
query I rowsort label-4384
SELECT - SUM ( ALL + 16 ) FROM tab1
----
-48

query I rowsort
SELECT DISTINCT col2 + - - col1 * + + ( + - col0 ) + - ( 4 ) + col2 AS col1 FROM tab1
----
-311
-4145
-526

query I rowsort
SELECT DISTINCT 40 - - col2 * col2 FROM tab0
----
140
2249
9841

onlyif mysql # aggregate syntax: 
query I rowsort label-4387
SELECT - COUNT( + - ( + + col2 ) ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-4387
SELECT - COUNT ( + - ( + + col2 ) ) FROM tab0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4388
SELECT DISTINCT + 95 - + + SUM( DISTINCT + col1 ) col1 FROM tab0
----
-8

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4388
SELECT DISTINCT + 95 - + + SUM ( DISTINCT + col1 ) col1 FROM tab0
----
-8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4389
SELECT ALL SUM( + - CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4389
SELECT ALL SUM ( + - CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT NULL <= + col0 * + col0 * - 18
----

query I rowsort
SELECT 59 * + - ( + + 76 ) FROM tab2 AS cor0
----
-4484
-4484
-4484

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4392
SELECT + AVG ( DISTINCT - - col2 ) / - - CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4392
SELECT + AVG ( DISTINCT - - col2 ) / - - CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4393
SELECT ALL + COUNT( * ) FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-4393
SELECT ALL + COUNT ( * ) FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9

query I rowsort
SELECT DISTINCT 51 AS col2 FROM tab0 AS cor0 WHERE + col2 IS NOT NULL
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-4395
SELECT DISTINCT - + COUNT( + col1 ) AS col0 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4395
SELECT DISTINCT - + COUNT ( + col1 ) AS col0 FROM tab1 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-4396
SELECT DISTINCT - 15 + COUNT( * ) * - 3, + 71 AS col1 FROM tab1 AS cor0
----
-24
71

skipif mysql # not compatible
query II rowsort label-4396
SELECT DISTINCT - 15 + COUNT ( * ) * - 3, + 71 AS col1 FROM tab1 AS cor0
----
-24
71

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT - col0 NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 55 * - col1 * + col2 + + col1 * 82 IS NOT NULL
----

query I rowsort
SELECT + + 16 AS col2 FROM tab1 AS cor0
----
16
16
16

onlyif mysql # aggregate syntax: 
query I rowsort label-4400
SELECT DISTINCT ( - COUNT( + - col0 ) ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4400
SELECT DISTINCT ( - COUNT ( + - col0 ) ) FROM tab0 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-4401
SELECT + COUNT( * ) AS col0, - MIN( - col2 ) FROM tab0 WHERE NOT NULL IS NOT NULL
----
3
99

skipif mysql # not compatible
query II rowsort label-4401
SELECT + COUNT ( * ) AS col0, - MIN ( - col2 ) FROM tab0 WHERE NOT NULL IS NOT NULL
----
3
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4402
SELECT - ( col2 ) * - 45 + + col1 * - + col2 + - - col1 * - CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4402
SELECT - ( col2 ) * - 45 + + col1 * - + col2 + - - col1 * - CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 60 col1, 39 + col2 col0 FROM tab2
----
60
62
60
79
60
97

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL >= + - 32 / + - col2 + - col2 + + col0 * + col1
----

query I rowsort
SELECT col2 - col1 FROM tab2 WHERE NOT NULL > - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4406
SELECT - col1 AS col2, - ( - + col2 ) * - CAST( NULL AS SIGNED ) FROM tab0
----
-1
NULL
-21
NULL
-81
NULL

skipif mysql # not compatible
query II rowsort label-4406
SELECT - col1 AS col2, - ( - + col2 ) * - CAST ( NULL AS INTEGER ) FROM tab0
----
-1
NULL
-21
NULL
-81
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4407
SELECT DISTINCT col1 + + - col1 FROM tab2 WHERE NOT NULL <> ( - CAST( - - col2 AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-4407
SELECT DISTINCT col1 + + - col1 FROM tab2 WHERE NOT NULL <> ( - CAST ( - - col2 AS INTEGER ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 19 * + - col1 * - col1 col1, + col2 * + - col2 AS col0 FROM tab1
----
3724
-9216
41971
-4624
475
-3481

query I rowsort
SELECT ALL - col1 AS col2 FROM tab2 WHERE NOT + 20 + col2 > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4410
SELECT CAST( NULL AS SIGNED ) AS col0, - col0 * col0 + - - 13 AS col1 FROM tab0
----
NULL
-212
NULL
-7556
NULL
-9396

skipif mysql # not compatible
query II rowsort label-4410
SELECT CAST ( NULL AS INTEGER ) AS col0, - col0 * col0 + - - 13 AS col1 FROM tab0
----
NULL
-212
NULL
-7556
NULL
-9396

query I rowsort
SELECT DISTINCT - col0 / + col1 * - 43 FROM tab1 AS cor0 WHERE NOT NULL >= ( - col1 ) + - col1
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4412
SELECT ALL + + COUNT( * ) FROM tab2 AS cor0 WHERE NULL >= + CAST( 39 AS SIGNED ) AND NOT ( NULL ) <= - ( + + 92 ) + - col1
----
0

skipif mysql # not compatible
query I rowsort label-4412
SELECT ALL + + COUNT ( * ) FROM tab2 AS cor0 WHERE NULL >= + CAST ( 39 AS INTEGER ) AND NOT ( NULL ) <= - ( + + 92 ) + - col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4413
SELECT DISTINCT - + 61 * - 16 - 4 + col1 + - col2 DIV + col0 col1 FROM tab2 AS cor0
----
1023
1039
1049

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4413
SELECT DISTINCT - + 61 * - 16 - 4 + col1 + - col2 / + col0 col1 FROM tab2 AS cor0
----
1023
1039
1049

query I rowsort
SELECT ALL - 71 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to e72f95c346714d3065a96d67a6fd5062

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1 cor1 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4416
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col1 * + - CAST( NULL AS SIGNED ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-4416
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col1 * + - CAST ( NULL AS INTEGER ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col1 AS col2 FROM tab0 cor0 WHERE NULL IS NULL
----
1
21
81

query I rowsort
SELECT ( + + col1 ) AS col2 FROM tab0 AS cor0
----
1
21
81

query I rowsort
SELECT + - 91 - - col2 AS col1 FROM tab1 cor0
----
-23
-32
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 * + col1 - - 4 col2 FROM tab1 AS cor0
----
200
2213
29

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE ( NULL ) <= + 97 / + - col0
----

query I rowsort
SELECT DISTINCT - 88 FROM tab1 AS cor0 WHERE 74 IS NOT NULL
----
-88

query I rowsort
SELECT - col2 * - col0 - + + 43 AS col1 FROM tab1 AS cor0
----
4853
4972
6145

query I rowsort
SELECT + col0 - 59 FROM tab0
----
-44
28
38

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL NOT BETWEEN + col0 + + - col2 - + - col2 + + + col2 AND NULL
----

query I rowsort
SELECT + col1 FROM tab2 WHERE NOT + col0 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT ( + ( col0 ) ) AS col2 FROM tab1
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-4428
SELECT DISTINCT 50 * + SUM( DISTINCT + ( + col1 ) ) AS col0 FROM tab1
----
3300

skipif mysql # not compatible
query I rowsort label-4428
SELECT DISTINCT 50 * + SUM ( DISTINCT + ( + col1 ) ) AS col0 FROM tab1
----
3300

query I rowsort
SELECT 11 AS col1 FROM tab0 AS cor0
----
11
11
11

query II rowsort
SELECT ( + + ( col2 ) ) AS col1, col2 * + + col1 AS col0 FROM tab2 AS cor0
----
23
1173
40
3080
58
3886

onlyif mysql # aggregate syntax: 
query II rowsort label-4431
SELECT DISTINCT ( - 74 ) col1, ( COUNT( * ) ) FROM tab2
----
-74
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4431
SELECT DISTINCT ( - 74 ) col1, ( COUNT ( * ) ) FROM tab2
----
-74
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4432
SELECT ALL - + MAX( - col2 ) DIV - 12 AS col1 FROM tab1 AS cor0
----
-4

skipif mysql # not compatible
query I rowsort label-4432
SELECT ALL - + MAX ( - col2 ) / - 12 AS col1 FROM tab1 AS cor0
----
-4

query I rowsort
SELECT col2 FROM tab1 AS cor0 WHERE NOT - col2 < col0 * col2 / + - 5
----
59
68
96

query II rowsort
SELECT 21 AS col0, + col2 AS col0 FROM tab2 AS cor0
----
21
23
21
40
21
58

query I rowsort
SELECT DISTINCT - 37 + 91 * + - col2 AS col0 FROM tab2 AS cor0
----
-2130
-3677
-5315

onlyif mysql # aggregate syntax: 
query I rowsort label-4436
SELECT + MAX( + 69 ) FROM tab0 AS cor0
----
69

skipif mysql # not compatible
query I rowsort label-4436
SELECT + MAX ( + 69 ) FROM tab0 AS cor0
----
69

query II rowsort
SELECT + col1, - col0 FROM tab0 AS cor0
----
1
-97
21
-87
81
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-4438
SELECT ALL - ( - + MIN( DISTINCT - col2 ) ) FROM tab0 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-4438
SELECT ALL - ( - + MIN ( DISTINCT - col2 ) ) FROM tab0 AS cor0
----
-99

query III rowsort
SELECT * FROM tab0 WHERE ( - 40 ) <= NULL
----

query I rowsort
SELECT 8 * + - col2 FROM tab1 AS cor0
----
-472
-544
-768

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 88 IS NULL
----

query I rowsort
SELECT ALL - 64 + + ( + 25 ) FROM tab2 AS cor0
----
-39
-39
-39

query III rowsort
SELECT * FROM tab1 WHERE NULL < 94 + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4444
SELECT COUNT( * ) - + COUNT( * ) AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-4444
SELECT COUNT ( * ) - + COUNT ( * ) AS col0 FROM tab2
----
0

query I rowsort
SELECT + 9 + + + col0 FROM tab2
----
55
73
84

query I rowsort
SELECT - col2 + + 39 AS col1 FROM tab2
----
-1
-19
16

query I rowsort
SELECT col2 * + + 67 AS col1 FROM tab0 AS cor0 WHERE col1 * col0 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4448
SELECT ALL - 93 - - ( + col1 ) - col0 DIV col0 + + col1 FROM tab1 AS cor0
----
-66
-84
0

skipif mysql # not compatible
query I rowsort label-4448
SELECT ALL - 93 - - ( + col1 ) - col0 / col0 + + col1 FROM tab1 AS cor0
----
-66
-84
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col1 / col0 + - col0 IS NULL
----

query II rowsort
SELECT + col0, 43 FROM tab0 AS cor0 WHERE 31 IS NOT NULL
----
15
43
87
43
97
43

query I rowsort
SELECT + - col2 + + - 65 AS col0 FROM tab0 AS cor0
----
-112
-164
-75

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 96 / col2 IS NULL
----

query I rowsort
SELECT col2 + + col0 * + col1 AS col1 FROM tab2 AS cor0 WHERE col2 IS NULL
----

query I rowsort
SELECT - - 35 * - 2 FROM tab2 cor0
----
-70
-70
-70

query I rowsort
SELECT DISTINCT + col2 AS col0 FROM tab0 AS cor0 WHERE NOT + 13 NOT BETWEEN NULL AND + 79
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col2 * col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - - 9 FROM tab0 AS cor0
----
9

query I rowsort
SELECT DISTINCT + 65 * + 40 AS col1 FROM tab2 AS cor0
----
2600

onlyif mysql # aggregate syntax: 
query I rowsort label-4459
SELECT COUNT( ALL + - col0 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-4459
SELECT COUNT ( ALL + - col0 ) FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-4460
SELECT DISTINCT 48 * - COUNT( * ) AS col0, - MAX( ALL + 38 ) FROM tab0
----
-144
-38

skipif mysql # not compatible
query II rowsort label-4460
SELECT DISTINCT 48 * - COUNT ( * ) AS col0, - MAX ( ALL + 38 ) FROM tab0
----
-144
-38

query I rowsort
SELECT ALL + ( - + col1 ) * + ( 38 ) FROM tab1
----
-1786
-190
-532

query I rowsort
SELECT ALL col0 * + 69 FROM tab0 WHERE + col2 NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4463
SELECT MAX( col2 ) AS col1 FROM tab2
----
58

skipif mysql # not compatible
query I rowsort label-4463
SELECT MAX ( col2 ) AS col1 FROM tab2
----
58

query III rowsort
SELECT * FROM tab2 WHERE NOT col2 + 47 * - 43 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-4465
SELECT DISTINCT - col1 DIV + col2 + col1 AS col1 FROM tab1 AS cor0
----
14
47
5

skipif mysql # not compatible
query I rowsort label-4465
SELECT DISTINCT - col1 / + col2 + col1 AS col1 FROM tab1 AS cor0
----
14
47
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4466
SELECT ALL + 44 DIV COUNT( * ) AS col1 FROM tab1 cor0
----
14

skipif mysql # not compatible
query I rowsort label-4466
SELECT ALL + 44 / COUNT ( * ) AS col1 FROM tab1 cor0
----
14

query I rowsort
SELECT - + col0 AS col1 FROM tab1 AS cor0 WHERE NOT col2 IS NULL
----
-51
-85
-91

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( NOT ( - col2 + col0 IS NOT NULL ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + 48 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE ( - 12 ) IS NULL
----

query I rowsort
SELECT - col1 * + 62 FROM tab2
----
-3162
-4154
-4774

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 89 col2, + col2 + - - 3 FROM tab2 AS cor0
----
89
26
89
43
89
61

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 51 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT col0 + - ( + - col1 ) - + col2 AS col2 FROM tab1 cor0
----
-31
31
70

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4474
SELECT - CAST( NULL AS DECIMAL ), - col2 col1 FROM tab2 AS cor0
----
NULL
-23
NULL
-40
NULL
-58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4474
SELECT - CAST ( NULL AS REAL ), - col2 col1 FROM tab2 AS cor0
----
NULL
-23
NULL
-40
NULL
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-4475
SELECT ALL - + MIN( ALL + col1 ) col1 FROM tab1 cor0
----
-5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4475
SELECT ALL - + MIN ( ALL + col1 ) col1 FROM tab1 cor0
----
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-4476
SELECT DISTINCT + col1 DIV - + 81 + + col2 FROM tab0 AS cor0
----
10
46
99

skipif mysql # not compatible
query I rowsort label-4476
SELECT DISTINCT + col1 / - + 81 + + col2 FROM tab0 AS cor0
----
10
46
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4477
SELECT DISTINCT + + ( + CAST( COUNT( * ) AS SIGNED ) ) FROM tab1 AS cor0 WHERE + col2 <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-4477
SELECT DISTINCT + + ( + CAST ( COUNT ( * ) AS INTEGER ) ) FROM tab1 AS cor0 WHERE + col2 <= NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4478
SELECT ALL MIN( ALL - 32 ) + + + COUNT( - - 98 ) FROM tab1
----
-29

skipif mysql # not compatible
query I rowsort label-4478
SELECT ALL MIN ( ALL - 32 ) + + + COUNT ( - - 98 ) FROM tab1
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-4479
SELECT DISTINCT + COUNT( * ) + - 97 col2 FROM tab2
----
-94

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4479
SELECT DISTINCT + COUNT ( * ) + - 97 col2 FROM tab2
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-4480
SELECT ALL COUNT( DISTINCT col2 ) + + COUNT( * ) + + - 26 FROM tab1
----
-20

skipif mysql # not compatible
query I rowsort label-4480
SELECT ALL COUNT ( DISTINCT col2 ) + + COUNT ( * ) + + - 26 FROM tab1
----
-20

onlyif mysql # DIV for integer division: 
query I rowsort label-4481
SELECT ALL + col2 DIV - 48 FROM tab0
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-4481
SELECT ALL + col2 / - 48 FROM tab0
----
-2
0
0

query I rowsort
SELECT ALL ( - 64 ) FROM tab0
----
-64
-64
-64

query I rowsort
SELECT DISTINCT + - 84 FROM tab2 WHERE NOT + 41 NOT BETWEEN NULL AND - col2 + + - ( col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4484
SELECT col1, col0 + + CAST( + col0 AS SIGNED ) FROM tab1
----
14
102
47
182
5
170

skipif mysql # not compatible
query II rowsort label-4484
SELECT col1, col0 + + CAST ( + col0 AS INTEGER ) FROM tab1
----
14
102
47
182
5
170

query II rowsort
SELECT ALL - col0, col2 FROM tab1
----
-51
96
-85
59
-91
68

query II rowsort
SELECT ALL - - col2, 50 * col1 AS col1 FROM tab0 AS cor0
----
10
1050
47
4050
99
50

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - + col1 AS col1, - col2 col0 FROM tab1 AS cor0
----
-14
-96
-47
-68
-5
-59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 17 + + - 66 col1 FROM tab0 AS cor0
----
-49
-49
-49

query II rowsort
SELECT col0 + + 94 * col0 - + 50 AS col2, col0 FROM tab2 AS cor0
----
4320
46
6030
64
7075
75

query I rowsort
SELECT DISTINCT col1 + - - 80 * - - col1 FROM tab1 AS cor0
----
1134
3807
405

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + 69 IS NULL
----

query I rowsort
SELECT DISTINCT - + 78 AS col2 FROM tab1 AS cor0
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-4493
SELECT + + MIN( - col2 ) AS col1 FROM tab2 AS cor0
----
-58

skipif mysql # not compatible
query I rowsort label-4493
SELECT + + MIN ( - col2 ) AS col1 FROM tab2 AS cor0
----
-58

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 68 < 86
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - - 54 AS col1 FROM tab1 AS cor0
----
54
54
54

query I rowsort
SELECT + col0 * + - ( + - 12 ) FROM tab2 AS cor0
----
552
768
900

query I rowsort
SELECT ALL - ( + ( - 3 ) ) FROM tab1 AS cor0
----
3
3
3

query I rowsort
SELECT ALL + ( + + 33 ) AS col1 FROM tab1
----
33
33
33

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 11 col1 FROM tab2 WHERE NOT ( col0 - + + 86 = NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1 col1, + col2 AS col2 FROM tab1
----
14
96
47
68
5
59

onlyif mysql # aggregate syntax: 
query I rowsort label-4501
SELECT + COUNT( DISTINCT col0 ) AS col1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-4501
SELECT + COUNT ( DISTINCT col0 ) AS col1 FROM tab1
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4502
SELECT - CAST( - - 56 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-56
-56
-56

skipif mysql # not compatible
query I rowsort label-4502
SELECT - CAST ( - - 56 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-56
-56
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-4503
SELECT SUM( col1 ) AS col2 FROM tab0 AS cor0
----
103

skipif mysql # not compatible
query I rowsort label-4503
SELECT SUM ( col1 ) AS col2 FROM tab0 AS cor0
----
103

query I rowsort
SELECT ALL + ( + - 78 ) AS col0 FROM tab0 AS cor0
----
-78
-78
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-4505
SELECT DISTINCT 23 * COUNT( * ) col1 FROM tab2 AS cor0
----
69

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4505
SELECT DISTINCT 23 * COUNT ( * ) col1 FROM tab2 AS cor0
----
69

query I rowsort
SELECT + col0 + 69 * + 96 FROM tab1
----
6675
6709
6715

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-4507
SELECT ALL * FROM tab2 WHERE NOT + ( CAST( + CAST( NULL AS DECIMAL ) AS SIGNED ) ) - + col1 * - 64 IS NULL
----

skipif mysql # not compatible
query III rowsort label-4507
SELECT ALL * FROM tab2 WHERE NOT + ( CAST ( + CAST ( NULL AS REAL ) AS INTEGER ) ) - + col1 * - 64 IS NULL
----

query I rowsort
SELECT ALL col2 + + 86 AS col0 FROM tab2
----
109
126
144

query I rowsort
SELECT - col0 AS col0 FROM tab1 WHERE NULL IS NULL
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-4510
SELECT ALL - MAX( DISTINCT - col2 ) FROM tab1
----
59

skipif mysql # not compatible
query I rowsort label-4510
SELECT ALL - MAX ( DISTINCT - col2 ) FROM tab1
----
59

query I rowsort
SELECT col2 + 60 AS col2 FROM tab0
----
107
159
70

query I rowsort
SELECT + col2 * + 58 - col1 * + col1 FROM tab1
----
1735
3397
5372

onlyif mysql # aggregate syntax: 
query I rowsort label-4513
SELECT 64 + COUNT( * ) FROM tab2
----
67

skipif mysql # not compatible
query I rowsort label-4513
SELECT 64 + COUNT ( * ) FROM tab2
----
67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4514
SELECT ALL + col1 - CAST( - 50 AS SIGNED ) AS col0 FROM tab1
----
55
64
97

skipif mysql # not compatible
query I rowsort label-4514
SELECT ALL + col1 - CAST ( - 50 AS INTEGER ) AS col0 FROM tab1
----
55
64
97

onlyif mysql # DIV for integer division: 
query I rowsort label-4515
SELECT ALL 91 DIV - col1 FROM tab0 WHERE NULL IS NULL
----
-1
-4
-91

skipif mysql # not compatible
query I rowsort label-4515
SELECT ALL 91 / - col1 FROM tab0 WHERE NULL IS NULL
----
-1
-4
-91

query III rowsort
SELECT * FROM tab2 WHERE NULL BETWEEN col1 AND NULL
----

query I rowsort
SELECT ALL - col1 * - 95 FROM tab1
----
1330
4465
475

onlyif mysql # aggregate syntax: 
query I rowsort label-4518
SELECT ALL COUNT( * ) * + 42 + - 94 FROM tab0
----
32

skipif mysql # not compatible
query I rowsort label-4518
SELECT ALL COUNT ( * ) * + 42 + - 94 FROM tab0
----
32

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 57 * 83 col2 FROM tab1
----
4731
4731
4731

onlyif mysql # aggregate syntax: 
query I rowsort label-4520
SELECT 25 * COUNT( * ) FROM tab1
----
75

skipif mysql # not compatible
query I rowsort label-4520
SELECT 25 * COUNT ( * ) FROM tab1
----
75

query I rowsort
SELECT ( 25 ) * 74 AS col0 FROM tab2
----
1850
1850
1850

query I rowsort
SELECT col2 + 22 AS col1 FROM tab1
----
118
81
90

query I rowsort
SELECT col2 - 65 FROM tab0
----
-18
-55
34

onlyif mysql # aggregate syntax: 
query I rowsort label-4524
SELECT DISTINCT + MIN( + 51 ) * - 50 col1 FROM tab1 WHERE NULL IS NULL
----
-2550

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4524
SELECT DISTINCT + MIN ( + 51 ) * - 50 col1 FROM tab1 WHERE NULL IS NULL
----
-2550

onlyif mysql # aggregate syntax: 
query I rowsort label-4525
SELECT + COUNT( - 94 ) AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-4525
SELECT + COUNT ( - 94 ) AS col0 FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4526
SELECT 85 * COUNT( * ) - COUNT( * ) col0 FROM tab0
----
252

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4526
SELECT 85 * COUNT ( * ) - COUNT ( * ) col0 FROM tab0
----
252

query I rowsort
SELECT DISTINCT col2 * 2 AS col1 FROM tab1 AS cor0
----
118
136
192

onlyif mysql # aggregate syntax: 
query I rowsort label-4528
SELECT DISTINCT - COUNT( * ) FROM tab0 AS cor0 WHERE NOT NULL >= ( + col2 )
----
0

skipif mysql # not compatible
query I rowsort label-4528
SELECT DISTINCT - COUNT ( * ) FROM tab0 AS cor0 WHERE NOT NULL >= ( + col2 )
----
0

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 20 BETWEEN 50 + col2 AND col1 * - 55
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4530
SELECT - MAX( col2 ) * + 85 FROM tab0 AS cor0
----
-8415

skipif mysql # not compatible
query I rowsort label-4530
SELECT - MAX ( col2 ) * + 85 FROM tab0 AS cor0
----
-8415

query I rowsort
SELECT DISTINCT 68 - + 50 AS col1 FROM tab2
----
18

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1 WHERE NULL NOT IN ( - 46 )
----

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab0 WHERE NOT NULL <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4534
SELECT DISTINCT * FROM tab2 WHERE NOT ( - CAST( NULL AS SIGNED ) ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-4534
SELECT DISTINCT * FROM tab2 WHERE NOT ( - CAST ( NULL AS INTEGER ) ) IS NULL
----

query I rowsort
SELECT + 67 FROM tab1 AS cor0 CROSS JOIN tab1
----
9 values hashing to b56f8a4f1fcebc9802481256df61e97c

onlyif mysql # aggregate syntax: 
query I rowsort label-4536
SELECT + SUM( col2 ) FROM tab2 AS cor0
----
121

skipif mysql # not compatible
query I rowsort label-4536
SELECT + SUM ( col2 ) FROM tab2 AS cor0
----
121

query I rowsort
SELECT ALL 69 AS col1 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT col0 AS col2 FROM tab2 AS cor0 WHERE 4 NOT BETWEEN 42 AND NULL
----
46
64
75

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( + ( - 52 ) ) <> ( col0 )
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL BETWEEN ( + col1 * + col0 ) AND + 88
----

query I rowsort
SELECT col1 * ( 40 ) FROM tab2 AS cor0
----
2040
2680
3080

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( - 3 ) NOT IN ( - 39 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4543
SELECT + ( - col2 ) + + col2 * + 44 col2 FROM tab1 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) + col0 BETWEEN ( NULL ) AND + col1
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4543
SELECT + ( - col2 ) + + col2 * + 44 col2 FROM tab1 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) + col0 BETWEEN ( NULL ) AND + col1
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( + 91 ) IN ( + 10 + - col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 WHERE NOT ( + ( ( - 24 ) ) ) IN ( col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4546
SELECT SUM( + 66 ) * + COUNT( * ) AS col1 FROM tab2
----
594

skipif mysql # not compatible
query I rowsort label-4546
SELECT SUM ( + 66 ) * + COUNT ( * ) AS col1 FROM tab2
----
594

onlyif mysql # aggregate syntax: 
query I rowsort label-4547
SELECT DISTINCT ( + + COUNT( * ) ) AS col2 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-4547
SELECT DISTINCT ( + + COUNT ( * ) ) AS col2 FROM tab0
----
3

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4548
SELECT CAST( NULL AS DECIMAL ) * + CAST( - col2 AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4548
SELECT CAST ( NULL AS REAL ) * + CAST ( - col2 AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 34 FROM tab0 WHERE 56 * col1 > ( + col2 )
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-4550
SELECT DISTINCT + 32 * - MIN( ( + col2 ) ) * - 77 FROM tab0
----
24640

skipif mysql # not compatible
query I rowsort label-4550
SELECT DISTINCT + 32 * - MIN ( ( + col2 ) ) * - 77 FROM tab0
----
24640

query I rowsort
SELECT DISTINCT + col1 + + col2 FROM tab2 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT col1 IN ( col1 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4553
SELECT ALL - - SUM( - - 80 ) DIV 11 AS col0 FROM tab0 AS cor0
----
21

skipif mysql # not compatible
query I rowsort label-4553
SELECT ALL - - SUM ( - - 80 ) / 11 AS col0 FROM tab0 AS cor0
----
21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4554
SELECT ALL CAST( - col1 AS SIGNED ) * - + 7 FROM tab2
----
357
469
539

skipif mysql # not compatible
query I rowsort label-4554
SELECT ALL CAST ( - col1 AS INTEGER ) * - + 7 FROM tab2
----
357
469
539

onlyif mysql # DIV for integer division: 
query I rowsort label-4555
SELECT col2 + 89 DIV col1 FROM tab0
----
14
188
48

skipif mysql # not compatible
query I rowsort label-4555
SELECT col2 + 89 / col1 FROM tab0
----
14
188
48

onlyif mysql # aggregate syntax: 
query I rowsort label-4556
SELECT + COUNT( * ) - + MAX( + 40 ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-31

skipif mysql # not compatible
query I rowsort label-4556
SELECT + COUNT ( * ) - + MAX ( + 40 ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-31

query I rowsort
SELECT ALL 55 FROM tab1 AS cor0 WHERE 72 IN ( col2 )
----

query II rowsort
SELECT DISTINCT col1 AS col2, col0 FROM tab1 cor0
----
14
51
47
91
5
85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4559
SELECT DISTINCT - - col2 + + + CAST( NULL AS SIGNED ) col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4559
SELECT DISTINCT - - col2 + + + CAST ( NULL AS INTEGER ) col0 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4560
SELECT + 82 + MIN( col2 ) AS col0 FROM tab2 cor0 WHERE col1 <= 55
----
105

skipif mysql # not compatible
query I rowsort label-4560
SELECT + 82 + MIN ( col2 ) AS col0 FROM tab2 cor0 WHERE col1 <= 55
----
105

onlyif mysql # aggregate syntax: 
query II rowsort label-4561
SELECT + COUNT( * ), 76 + - - 96 col1 FROM tab1 AS cor0
----
3
172

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4561
SELECT + COUNT ( * ), 76 + - - 96 col1 FROM tab1 AS cor0
----
3
172

query I rowsort
SELECT ALL + 51 + + 5 AS col1 FROM tab0 cor0 WHERE - col0 = - 62
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4563
SELECT DISTINCT 71 * - ( + CAST( NULL AS SIGNED ) ) + + + col0 * - 81 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4563
SELECT DISTINCT 71 * - ( + CAST ( NULL AS INTEGER ) ) + + + col0 * - 81 FROM tab1
----
NULL

query I rowsort
SELECT 7 FROM tab1 WHERE - 21 IS NULL
----

query I rowsort
SELECT ALL + col2 * 56 + - col1 AS col0 FROM tab1
----
3299
3761
5362

onlyif mysql # aggregate syntax: 
query I rowsort label-4566
SELECT COUNT( DISTINCT + 54 ) AS col0 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-4566
SELECT COUNT ( DISTINCT + 54 ) AS col0 FROM tab0
----
1

query I rowsort
SELECT DISTINCT - col0 * - + ( - - col1 ) FROM tab2
----
2346
4928
5025

query I rowsort
SELECT DISTINCT col0 - ( 88 ) FROM tab1
----
-3
-37
3

query I rowsort
SELECT - 65 + col0 AS col1 FROM tab2
----
-1
-19
10

query III rowsort
SELECT ALL * FROM tab0 WHERE col2 / - - col0 <> NULL AND NOT NULL IN ( ( 54 ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4571
SELECT - col0 DIV + col0 + - ( - ( - col1 ) ) * + 65 AS col1 FROM tab0
----
-1366
-5266
-66

skipif mysql # not compatible
query I rowsort label-4571
SELECT - col0 / + col0 + - ( - ( - col1 ) ) * + 65 AS col1 FROM tab0
----
-1366
-5266
-66

query I rowsort
SELECT - - col2 + + col2 * - - 0 + - 65 AS col2 FROM tab0 AS cor0
----
-18
-55
34

query I rowsort
SELECT + - ( - col2 ) + col1 + + 50 FROM tab1 AS cor0
----
114
160
165

query I rowsort
SELECT + 77 + + 68 + - col2 + + col1 FROM tab2 AS cor0
----
154
173
182

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 51 col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4576
SELECT + ( SUM( + 66 ) ) + SUM( ALL col0 ) + COUNT( * ) AS col2 FROM tab0 cor0
----
400

skipif mysql # not compatible
query I rowsort label-4576
SELECT + ( SUM ( + 66 ) ) + SUM ( ALL col0 ) + COUNT ( * ) AS col2 FROM tab0 cor0
----
400

onlyif mysql # aggregate syntax: 
query I rowsort label-4577
SELECT - MIN( DISTINCT + + col0 ) FROM tab0 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-4577
SELECT - MIN ( DISTINCT + + col0 ) FROM tab0 AS cor0
----
-15

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4578
SELECT DISTINCT + CAST( NULL AS SIGNED ), + 13 col1 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
NULL
13

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4578
SELECT DISTINCT + CAST ( NULL AS INTEGER ), + 13 col1 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
NULL
13

query I rowsort
SELECT - + ( + 79 ) AS col2 FROM tab0 AS cor0
----
-79
-79
-79

query I rowsort
SELECT DISTINCT - + col1 * col1 * - - 99 FROM tab0 AS cor0
----
-43659
-649539
-99

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) <> col1 - - col2 + + col2 * 44
----

query I rowsort
SELECT DISTINCT - 98 * - + 40 AS col1 FROM tab0 AS cor0
----
3920

onlyif mysql # DIV for integer division: 
query I rowsort label-4583
SELECT DISTINCT + col0 DIV + 65 FROM tab2 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-4583
SELECT DISTINCT + col0 / + 65 FROM tab2 AS cor0
----
0
1

onlyif mysql # aggregate syntax: 
query II rowsort label-4584
SELECT COUNT( * ), + 15 AS col1 FROM tab0 AS cor0
----
3
15

skipif mysql # not compatible
query II rowsort label-4584
SELECT COUNT ( * ), + 15 AS col1 FROM tab0 AS cor0
----
3
15

query II rowsort
SELECT DISTINCT + + col2 AS col0, col0 FROM tab1 AS cor0
----
59
85
68
91
96
51

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4586
SELECT DISTINCT * FROM tab0 WHERE NOT NULL NOT IN ( - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-4586
SELECT DISTINCT * FROM tab0 WHERE NOT NULL NOT IN ( - CAST ( NULL AS INTEGER ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4587
SELECT DISTINCT * FROM tab2 WHERE + col0 + - + CAST( col2 AS SIGNED ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-4587
SELECT DISTINCT * FROM tab2 WHERE + col0 + - + CAST ( col2 AS INTEGER ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + 4 + + - col0 FROM tab2
----
-42
-60
-71

query I rowsort
SELECT + - col2 FROM tab0 AS cor0 WHERE - col2 IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE col1 <> - 31
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT col0 * + 14, col1 + col1 AS col1 FROM tab2
----
1050
134
644
102
896
154

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4592
SELECT CAST( NULL AS SIGNED ) + - + ( - MAX( col1 ) ) col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4592
SELECT CAST ( NULL AS INTEGER ) + - + ( - MAX ( col1 ) ) col2 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4593
SELECT + 11 + + - COUNT( * ) FROM tab2 AS cor0
----
8

skipif mysql # not compatible
query I rowsort label-4593
SELECT + 11 + + - COUNT ( * ) FROM tab2 AS cor0
----
8

query I rowsort
SELECT 37 + + 64 + 19 AS col0 FROM tab0 AS cor0
----
120
120
120

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col1 / col0 IN ( - 38 )
----

query I rowsort
SELECT ALL + + 20 AS col1 FROM tab2 AS cor0
----
20
20
20

query I rowsort
SELECT DISTINCT + + col0 * - - col1 * + + col0 FROM tab1 cor0
----
36125
36414
389207

query I rowsort
SELECT DISTINCT 28 + 30 FROM tab1 AS cor0
----
58

query I rowsort
SELECT DISTINCT 45 FROM tab0 AS cor0 WHERE NULL BETWEEN col1 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4600
SELECT + col2, col1 * CAST( 62 AS SIGNED ) - + col1 AS col1 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query II rowsort label-4600
SELECT + col2, col1 * CAST ( 62 AS INTEGER ) - + col1 AS col1 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL + col0 + col1 + + 31 FROM tab2 AS cor0
----
128
172
173

query I rowsort
SELECT DISTINCT - 82 + - ( + col0 ) * + - 40 AS col0 FROM tab2
----
1758
2478
2918

onlyif mysql # aggregate syntax: 
query I rowsort label-4603
SELECT ALL 20 * - COUNT( * ) + + 92 AS col2 FROM tab1
----
32

skipif mysql # not compatible
query I rowsort label-4603
SELECT ALL 20 * - COUNT ( * ) + + 92 AS col2 FROM tab1
----
32

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * 81 + - col0 + + col0 - - col1 - + + col0 + - 90 col1 FROM tab1
----
1007
235
3673

query I rowsort
SELECT DISTINCT + col2 * + 48 FROM tab1
----
2832
3264
4608

onlyif mysql # aggregate syntax: 
query I rowsort label-4606
SELECT COUNT( ALL + 18 ) AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-4606
SELECT COUNT ( ALL + 18 ) AS col0 FROM tab1
----
3

query III rowsort
SELECT * FROM tab2 WHERE - + 44 = col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4608
SELECT - - COUNT( * ) - + + COUNT( * ) FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-4608
SELECT - - COUNT ( * ) - + + COUNT ( * ) FROM tab2 cor0
----
0

query I rowsort
SELECT ALL + - col0 * + col1 * - col1 - + col2 FROM tab0 AS cor0
----
-2
38357
98368

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4610
SELECT DISTINCT CAST( + col2 AS SIGNED ) FROM tab2 AS cor0 WHERE NOT 48 * - + 37 - 5 + - 77 <= col0 AND NULL NOT BETWEEN col1 * - col1 AND 90
----

skipif mysql # not compatible
query I rowsort label-4610
SELECT DISTINCT CAST ( + col2 AS INTEGER ) FROM tab2 AS cor0 WHERE NOT 48 * - + 37 - 5 + - 77 <= col0 AND NULL NOT BETWEEN col1 * - col1 AND 90
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 69 - - + col2 + 4 * + 2 col2 FROM tab2 AS cor0 WHERE - ( + col1 ) IS NOT NULL
----
100
117
135

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4612
SELECT DISTINCT - col2, CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-59
NULL
-68
NULL
-96
NULL

skipif mysql # not compatible
query II rowsort label-4612
SELECT DISTINCT - col2, CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-59
NULL
-68
NULL
-96
NULL

query II rowsort
SELECT - 7, col2 - - col2 FROM tab1 WHERE NOT 96 BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL - col1 * - 16 * - 97 AS col0 FROM tab2 cor0
----
-103984
-119504
-79152

onlyif mysql # aggregate syntax: 
query I rowsort label-4615
SELECT DISTINCT MAX( ALL - 62 ) * 65 FROM tab2 AS cor0
----
-4030

skipif mysql # not compatible
query I rowsort label-4615
SELECT DISTINCT MAX ( ALL - 62 ) * 65 FROM tab2 AS cor0
----
-4030

query I rowsort
SELECT 82 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4617
SELECT DISTINCT + - col2 DIV - 26 FROM tab0 cor0
----
0
1
3

skipif mysql # not compatible
query I rowsort label-4617
SELECT DISTINCT + - col2 / - 26 FROM tab0 cor0
----
0
1
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 1 col1 FROM tab1 AS cor0
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4619
SELECT - - COUNT( * ) * 89 AS col0 FROM tab2 AS cor0
----
267

skipif mysql # not compatible
query I rowsort label-4619
SELECT - - COUNT ( * ) * 89 AS col0 FROM tab2 AS cor0
----
267

query I rowsort
SELECT DISTINCT + col2 * + + col2 FROM tab0
----
100
2209
9801

query I rowsort
SELECT + col2 * + - col0 AS col0 FROM tab0
----
-705
-870
-9603

query I rowsort
SELECT ALL 75 + - col1 - - col0 + col2 + + col1 * + + col1 FROM tab1
----
239
2396
404

onlyif mysql # aggregate syntax: 
query I rowsort label-4623
SELECT + 14 * SUM( - - col0 ) AS col0 FROM tab2
----
2590

skipif mysql # not compatible
query I rowsort label-4623
SELECT + 14 * SUM ( - - col0 ) AS col0 FROM tab2
----
2590

query I rowsort
SELECT DISTINCT 63 * + col1 AS col0 FROM tab2
----
3213
4221
4851

query III rowsort
SELECT * FROM tab1 WHERE NOT ( - col0 ) > NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( + 81 NOT IN ( - col2 + - 85, - 73 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4627
SELECT + 9 - - - MAX( - col0 ) FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4627
SELECT + 9 - - - MAX ( - col0 ) FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
NULL

query I rowsort
SELECT - + col1 FROM tab2 AS cor0 WHERE + col2 < - + 19 + + col1
----
-51
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-4629
SELECT - + SUM( ALL 65 ) FROM tab1 cor0
----
-195

skipif mysql # not compatible
query I rowsort label-4629
SELECT - + SUM ( ALL 65 ) FROM tab1 cor0
----
-195

query II rowsort
SELECT ALL - col0, + col1 AS col0 FROM tab0 cor0
----
-15
81
-87
21
-97
1

onlyif mysql # DIV for integer division: 
query I rowsort label-4631
SELECT - ( 48 ) DIV col1 FROM tab0 AS cor0
----
-2
-48
0

skipif mysql # not compatible
query I rowsort label-4631
SELECT - ( 48 ) / col1 FROM tab0 AS cor0
----
-2
-48
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4632
SELECT COUNT( * ) * 35 FROM tab0 AS cor0
----
105

skipif mysql # not compatible
query I rowsort label-4632
SELECT COUNT ( * ) * 35 FROM tab0 AS cor0
----
105

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + - + 69 col0 FROM tab1 AS cor0
----
-22
-55
-64

query I rowsort
SELECT - ( - + col0 ) - - col0 * + col1 AS col0 FROM tab1
----
4368
510
765

query I rowsort
SELECT - - col0 FROM tab1 WHERE NULL > NULL
----

query I rowsort
SELECT col2 - ( col1 ) AS col0 FROM tab2
----
-28
-37
-9

query I rowsort
SELECT DISTINCT col2 + + 41 FROM tab2
----
64
81
99

query I rowsort
SELECT DISTINCT AVG ( - + 50 ) + + 9 FROM tab0 WHERE ( NOT NULL BETWEEN 85 * + 42 / - - col2 * + col1 AND NULL )
----
NULL

query I rowsort
SELECT col2 AS col0 FROM tab1 WHERE NOT - 4 * + col0 IN ( + - col1 / col0 * col2 )
----
59
68
96

query II rowsort
SELECT DISTINCT - col0 * + - col0 AS col2, col0 AS col0 FROM tab0
----
225
15
7569
87
9409
97

query I rowsort
SELECT DISTINCT + + 24 AS col0 FROM tab2 AS cor0
----
24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4642
SELECT DISTINCT 53 * ( CAST( NULL AS SIGNED ) ) / - - 75 / col0 col1 FROM tab0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4642
SELECT DISTINCT 53 * ( CAST ( NULL AS INTEGER ) ) / - - 75 / col0 col1 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4643
SELECT - COUNT( * ) AS col1 FROM tab2 WHERE NOT NULL >= - col2
----
0

skipif mysql # not compatible
query I rowsort label-4643
SELECT - COUNT ( * ) AS col1 FROM tab2 WHERE NOT NULL >= - col2
----
0

query I rowsort
SELECT DISTINCT col1 * 9 FROM tab1 cor0
----
126
423
45

onlyif mysql # aggregate syntax: 
query I rowsort label-4645
SELECT - + COUNT( - 95 ) AS col1 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4645
SELECT - + COUNT ( - 95 ) AS col1 FROM tab1 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4646
SELECT DISTINCT - - MAX( + col2 ) AS col0 FROM tab1 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-4646
SELECT DISTINCT - - MAX ( + col2 ) AS col0 FROM tab1 AS cor0
----
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + + 61 col2 FROM tab0 cor0
----
148
158
76

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + col0 NOT IN ( - + 14, col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4649
SELECT DISTINCT SUM( - col0 ) AS col0 FROM tab0 AS cor0
----
-199

skipif mysql # not compatible
query I rowsort label-4649
SELECT DISTINCT SUM ( - col0 ) AS col0 FROM tab0 AS cor0
----
-199

onlyif mysql # aggregate syntax: 
query I rowsort label-4650
SELECT DISTINCT - SUM( ALL + + 0 ) * - MIN( - 7 ) AS col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4650
SELECT DISTINCT - SUM ( ALL + + 0 ) * - MIN ( - 7 ) AS col1 FROM tab2 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-4651
SELECT DISTINCT - col2 DIV - + col1 AS col0, - ( ( - - col1 ) ) DIV - col1 AS col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
0
1
99
1

skipif mysql # not compatible
query II rowsort label-4651
SELECT DISTINCT - col2 / - + col1 AS col0, - ( ( - - col1 ) ) / - col1 AS col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
0
1
99
1

query I rowsort
SELECT ALL col2 * + col1 + - col2 * + - ( + - 59 ) AS col1 FROM tab0 AS cor0
----
-380
-5742
1034

query I rowsort
SELECT - 45 + + col1 + - - ( - + 93 ) * + - col1 - - col1 FROM tab1
----
1285
430
4420

onlyif mysql # aggregate syntax: 
query I rowsort label-4654
SELECT DISTINCT - 83 * - SUM( col1 ) + + - 5 AS col0 FROM tab2
----
16180

skipif mysql # not compatible
query I rowsort label-4654
SELECT DISTINCT - 83 * - SUM ( col1 ) + + - 5 AS col0 FROM tab2
----
16180

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4655
SELECT DISTINCT CAST( + - col2 AS SIGNED ) * - col2 * - - col1 + - col1 FROM tab0
----
178848
2079
9800

skipif mysql # not compatible
query I rowsort label-4655
SELECT DISTINCT CAST ( + - col2 AS INTEGER ) * - col2 * - - col1 + - col1 FROM tab0
----
178848
2079
9800

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4656
SELECT col1 + + 33, - col0 * - - col2 * - CAST( + col0 AS SIGNED ) * col2 col0 FROM tab0
----
114
497025
34
92217609
54
756900

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4656
SELECT col1 + + 33, - col0 * - - col2 * - CAST ( + col0 AS INTEGER ) * col2 col0 FROM tab0
----
114
497025
34
92217609
54
756900

query I rowsort
SELECT - col2 * + col1 * + - col2 + - 9 FROM tab1
----
129015
17396
217319

query I rowsort
SELECT - 44 + + col1 FROM tab2
----
23
33
7

onlyif mysql # aggregate syntax: 
query I rowsort label-4659
SELECT COUNT( * ) + - - 66 AS col2 FROM tab0
----
69

skipif mysql # not compatible
query I rowsort label-4659
SELECT COUNT ( * ) + - - 66 AS col2 FROM tab0
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-4660
SELECT - COUNT( * ) AS col1 FROM tab2 WHERE + col2 * col2 * 66 + + 84 > NULL
----
0

skipif mysql # not compatible
query I rowsort label-4660
SELECT - COUNT ( * ) AS col1 FROM tab2 WHERE + col2 * col2 * 66 + + 84 > NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4661
SELECT DISTINCT - COUNT( * ) - - ( + COUNT( * ) ) + - 5 col0 FROM tab1
----
-5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4661
SELECT DISTINCT - COUNT ( * ) - - ( + COUNT ( * ) ) + - 5 col0 FROM tab1
----
-5

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT ( ( NULL ) >= ( - 16 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4663
SELECT ALL SUM( DISTINCT col0 ) - - COUNT( ALL - 26 ) col1 FROM tab1
----
230

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4663
SELECT ALL SUM ( DISTINCT col0 ) - - COUNT ( ALL - 26 ) col1 FROM tab1
----
230

query I rowsort
SELECT ALL 47 AS col0 FROM tab0, tab0 cor0
----
9 values hashing to 4fe192f296791e1e40ea00a68aa8dab7

query I rowsort
SELECT ALL + 14 - + col2 - 2 FROM tab0
----
-35
-87
2

query I rowsort
SELECT DISTINCT - + col0 FROM tab0 AS cor0 WHERE NOT col1 - - + col1 IN ( + col0, col1 + 3 + 60 * - - col2 + - + col2 + - + col2 )
----
-15
-87
-97

query I rowsort
SELECT - col0 + + 12 FROM tab0 AS cor0
----
-3
-75
-85

query I rowsort
SELECT ALL + - ( ( col2 ) ) + + - col2 * - col0 AS col1 FROM tab2 cor0
----
1035
2520
4292

query II rowsort
SELECT ALL + col1 AS col2, 81 AS col1 FROM tab2
----
51
81
67
81
77
81

onlyif mysql # aggregate syntax: 
query I rowsort label-4670
SELECT - MIN( col0 ) * + COUNT( * ) FROM tab1
----
-153

skipif mysql # not compatible
query I rowsort label-4670
SELECT - MIN ( col0 ) * + COUNT ( * ) FROM tab1
----
-153

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4671
SELECT + CAST( NULL AS SIGNED ) AS col1, + 87 FROM tab2
----
NULL
87
NULL
87
NULL
87

skipif mysql # not compatible
query II rowsort label-4671
SELECT + CAST ( NULL AS INTEGER ) AS col1, + 87 FROM tab2
----
NULL
87
NULL
87
NULL
87

query II rowsort
SELECT - col2 AS col1, ( + col0 ) AS col0 FROM tab2
----
-23
46
-40
64
-58
75

query II rowsort
SELECT - col0, + col1 FROM tab1
----
-51
14
-85
5
-91
47

onlyif mysql # aggregate syntax: 
query I rowsort label-4674
SELECT DISTINCT MIN( - + col2 ) AS col0 FROM tab0
----
-99

skipif mysql # not compatible
query I rowsort label-4674
SELECT DISTINCT MIN ( - + col2 ) AS col0 FROM tab0
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-4675
SELECT DISTINCT - + COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE col0 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4675
SELECT DISTINCT - + COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE col0 IS NULL
----
0

query I rowsort
SELECT col2 * - 36 * col0 FROM tab2 AS cor0
----
-156600
-38088
-92160

query I rowsort
SELECT - col0 * - + 74 FROM tab2 AS cor0
----
3404
4736
5550

onlyif mysql # DIV for integer division: 
query II rowsort label-4678
SELECT ALL 68 DIV col0 AS col2, col2 FROM tab1
----
0
59
0
68
1
96

skipif mysql # not compatible
query II rowsort label-4678
SELECT ALL 68 / col0 AS col2, col2 FROM tab1
----
0
59
0
68
1
96

onlyif mysql # aggregate syntax: 
query I rowsort label-4679
SELECT DISTINCT + COUNT( * ) col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4679
SELECT DISTINCT + COUNT ( * ) col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-4680
SELECT - COUNT( * ) + - 33 * - 79 AS col1 FROM tab2 WHERE NOT + - 56 IS NULL
----
2604

skipif mysql # not compatible
query I rowsort label-4680
SELECT - COUNT ( * ) + - 33 * - 79 AS col1 FROM tab2 WHERE NOT + - 56 IS NULL
----
2604

query II rowsort
SELECT ALL + - 38, - 89 AS col0 FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 )
----
18 values hashing to 4f9847b25236da9a4624b3b936cad43b

query I rowsort
SELECT DISTINCT + + 31 * + ( - col1 ) FROM tab0 AS cor0
----
-2511
-31
-651

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 * + col1, col2 col0 FROM tab1 AS cor0
----
196
96
2209
68
25
59

query I rowsort
SELECT ALL - 13 * - col1 AS col2 FROM tab0 AS cor0
----
1053
13
273

query II rowsort
SELECT 43 * - col1 * - 55, col1 * + 12 AS col1 FROM tab0
----
191565
972
2365
12
49665
252

onlyif mysql # DIV for integer division: 
query I rowsort label-4686
SELECT DISTINCT + 4 DIV col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-4686
SELECT DISTINCT + 4 / col2 FROM tab2
----
0

query I rowsort
SELECT ( col1 ) * + col0 + 7 AS col1 FROM tab0
----
104
1222
1834

query II rowsort
SELECT DISTINCT 22, - ( - col2 ) - + 56 AS col2 FROM tab1
----
22
12
22
3
22
40

onlyif mysql # DIV for integer division: 
query I rowsort label-4689
SELECT DISTINCT - col0 DIV - - col0 FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-4689
SELECT DISTINCT - col0 / - - col0 FROM tab1
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4690
SELECT ALL * FROM tab0 WHERE NOT - 32 * - col0 * + col1 / + CAST( - 70 AS SIGNED ) - ( - col1 ) + - 5 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-4690
SELECT ALL * FROM tab0 WHERE NOT - 32 * - col0 * + col1 / + CAST ( - 70 AS INTEGER ) - ( - col1 ) + - 5 IS NOT NULL
----

query I rowsort
SELECT - col1 + - - 5 * col2 * + - 6 + - - col2 AS col0 FROM tab2 cor0
----
-1237
-1749
-718

query I rowsort
SELECT DISTINCT - 12 * + 19 + - + col1 + 20 FROM tab2 AS cor0
----
-259
-275
-285

onlyif mysql # aggregate syntax: 
query I rowsort label-4693
SELECT ALL - + 2 + + + COUNT( * ) FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-4693
SELECT ALL - + 2 + + + COUNT ( * ) FROM tab1 AS cor0
----
1

query I rowsort
SELECT - col2 - - col0 AS col0 FROM tab2 WHERE + + col1 + + 21 IS NULL
----

query I rowsort
SELECT DISTINCT - + 30 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-4696
SELECT ALL SUM( col1 ) AS col1 FROM tab0 WHERE NOT col2 * + col0 NOT BETWEEN NULL AND ( NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-4696
SELECT ALL SUM ( col1 ) AS col1 FROM tab0 WHERE NOT col2 * + col0 NOT BETWEEN NULL AND ( NULL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4697
SELECT ALL - MIN( - ( - col0 ) ) FROM tab0 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-4697
SELECT ALL - MIN ( - ( - col0 ) ) FROM tab0 AS cor0
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-4698
SELECT ALL + COUNT( * ) + + - COUNT( * ) + SUM( + col0 ) * + COUNT( * ) FROM tab2 AS cor0
----
555

skipif mysql # not compatible
query I rowsort label-4698
SELECT ALL + COUNT ( * ) + + - COUNT ( * ) + SUM ( + col0 ) * + COUNT ( * ) FROM tab2 AS cor0
----
555

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4699
SELECT ALL - COUNT( * ) * CAST( NULL AS SIGNED ) AS col1, COUNT( * ) FROM tab2 AS cor0
----
NULL
3

skipif mysql # not compatible
query II rowsort label-4699
SELECT ALL - COUNT ( * ) * CAST ( NULL AS INTEGER ) AS col1, COUNT ( * ) FROM tab2 AS cor0
----
NULL
3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( ( NOT NULL IS NULL ) )
----

query I rowsort
SELECT DISTINCT ( + + 68 ) * - col2 AS col1 FROM tab1 AS cor0
----
-4012
-4624
-6528

query I rowsort
SELECT - 68 AS col1 FROM tab0 AS cor0 WHERE NOT ( NOT col0 NOT IN ( - col1 * col0 + - col1, 20 * - - col0 * - col0, col1 ) )
----
-68
-68
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-4703
SELECT - MIN( - col1 ) FROM tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-4703
SELECT - MIN ( - col1 ) FROM tab0 AS cor0
----
81

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( - col2 ) <= NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT 91 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4706
SELECT DISTINCT - CAST( NULL AS SIGNED ) AS col1, - col0 * - + ( + col0 ) AS col1 FROM tab2
----
NULL
2116
NULL
4096
NULL
5625

skipif mysql # not compatible
query II rowsort label-4706
SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col1, - col0 * - + ( + col0 ) AS col1 FROM tab2
----
NULL
2116
NULL
4096
NULL
5625

onlyif mysql # aggregate syntax: 
query I rowsort label-4707
SELECT ALL COUNT( DISTINCT - 83 ) FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-4707
SELECT ALL COUNT ( DISTINCT - 83 ) FROM tab2
----
1

query III rowsort
SELECT * FROM tab1 WHERE NOT - + 35 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4709
SELECT ALL MAX( DISTINCT - col0 ) AS col0 FROM tab0
----
-15

skipif mysql # not compatible
query I rowsort label-4709
SELECT ALL MAX ( DISTINCT - col0 ) AS col0 FROM tab0
----
-15

onlyif mysql # aggregate syntax: 
query II rowsort label-4710
SELECT + COUNT( * ) AS col1, - 71 col1 FROM tab2 AS cor0
----
3
-71

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4710
SELECT + COUNT ( * ) AS col1, - 71 col1 FROM tab2 AS cor0
----
3
-71

query I rowsort
SELECT + 12 AS col1 FROM tab2 cor0
----
12
12
12

query I rowsort
SELECT - 3 * + col2 + + col1 AS col0 FROM tab0 AS cor0
----
-296
-60
-9

query I rowsort
SELECT ALL 60 * - 42 AS col1 FROM tab2
----
-2520
-2520
-2520

onlyif mysql # aggregate syntax: 
query II rowsort label-4714
SELECT DISTINCT + COUNT( * ) AS col0, SUM( DISTINCT col1 ) AS col0 FROM tab0
----
3
103

skipif mysql # not compatible
query II rowsort label-4714
SELECT DISTINCT + COUNT ( * ) AS col0, SUM ( DISTINCT col1 ) AS col0 FROM tab0
----
3
103

query I rowsort
SELECT + - ( + 51 ) AS col0 FROM tab0 AS cor0
----
-51
-51
-51

query II rowsort
SELECT - col1 AS col2, col1 FROM tab0 AS cor0
----
-1
1
-21
21
-81
81

query I rowsort
SELECT ( + - 86 ) FROM tab2 AS cor0
----
-86
-86
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-4718
SELECT DISTINCT + + MIN( - ( col0 ) ) FROM tab2 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-4718
SELECT DISTINCT + + MIN ( - ( col0 ) ) FROM tab2 AS cor0
----
-75

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 74 + + col0 NOT IN ( + + 85, + col2, col0 - - col2 * - 42 * + col2, - ( + 9 ), col1 + ( + col1 ), col0 * + col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + ( + col0 ) + + ( + 7 ) AS col2 FROM tab0 cor0
----
104
22
94

query II rowsort
SELECT col2 + + - 93 + - - 60 - - + col2 AS col2, 78 FROM tab1 AS cor0
----
103
78
159
78
85
78

query I rowsort
SELECT DISTINCT col0 + - 90 FROM tab0 AS cor0
----
-3
-75
7

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL > - col2
----

query II rowsort
SELECT DISTINCT col1 + 73 AS col1, 55 * - - col0 FROM tab1
----
120
5005
78
4675
87
2805

onlyif mysql # aggregate syntax: 
query I rowsort label-4725
SELECT 12 + - 48 - COUNT( * ) FROM tab0
----
-39

skipif mysql # not compatible
query I rowsort label-4725
SELECT 12 + - 48 - COUNT ( * ) FROM tab0
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-4726
SELECT + COUNT( * ) + COUNT( * ) AS col2 FROM tab2
----
6

skipif mysql # not compatible
query I rowsort label-4726
SELECT + COUNT ( * ) + COUNT ( * ) AS col2 FROM tab2
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-4727
SELECT DISTINCT COUNT( * ) FROM tab2 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4727
SELECT DISTINCT COUNT ( * ) FROM tab2 WHERE NOT NULL IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4728
SELECT - COUNT( ALL col0 ) * - 65 + - + 64 AS col2 FROM tab2
----
131

skipif mysql # not compatible
query I rowsort label-4728
SELECT - COUNT ( ALL col0 ) * - 65 + - + 64 AS col2 FROM tab2
----
131

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4729
SELECT ALL - col1 FROM tab2 WHERE - col2 > CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-4729
SELECT ALL - col1 FROM tab2 WHERE - col2 > CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT ALL col1 * col1 * col0 AS col1 FROM tab0
----
38367
97
98415

query I rowsort
SELECT 60 * - 79 * - ( - col2 ) * col1 AS col0 FROM tab1
----
-1398300
-15149040
-6370560

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4732
SELECT DISTINCT - + 9 * + + CAST( NULL AS DECIMAL ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4732
SELECT DISTINCT - + 9 * + + CAST ( NULL AS REAL ) AS col2 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL - ( + col1 ) * - col0 FROM tab2 AS cor0
----
2346
4928
5025

query I rowsort
SELECT ( - 17 ) AS col2 FROM tab1 AS cor0 WHERE ( NOT NULL < + 57 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4735
SELECT - + 25 DIV col0 * - col0 + + 15 FROM tab2 AS cor0
----
15
15
15

skipif mysql # not compatible
query I rowsort label-4735
SELECT - + 25 / col0 * - col0 + + 15 FROM tab2 AS cor0
----
15
15
15

onlyif mysql # aggregate syntax: 
query I rowsort label-4736
SELECT + COUNT( * ) FROM tab0 AS cor0 WHERE 66 + 26 - - col1 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-4736
SELECT + COUNT ( * ) FROM tab0 AS cor0 WHERE 66 + 26 - - col1 IS NOT NULL
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-4737
SELECT DISTINCT col1 + - 91 + + - 79 DIV + col0 AS col1 FROM tab2
----
-15
-25
-41

skipif mysql # not compatible
query I rowsort label-4737
SELECT DISTINCT col1 + - 91 + + - 79 / + col0 AS col1 FROM tab2
----
-15
-25
-41

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 - - col2 + - col0 col1 FROM tab0
----
-49
-98
1

onlyif mysql # DIV for integer division: 
query I rowsort label-4739
SELECT + + col0 DIV - col1 + - - 71 + - + 66 + - 56 DIV 5 FROM tab0 AS cor0
----
-10
-103
-6

skipif mysql # not compatible
query I rowsort label-4739
SELECT + + col0 / - col1 + - - 71 + - + 66 + - 56 / 5 FROM tab0 AS cor0
----
-10
-103
-6

query I rowsort
SELECT ALL + - col1 * - - 94 * + 47 FROM tab0 AS cor0
----
-357858
-4418
-92778

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col1 + col1 = - + 10
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-4742
SELECT ALL + col0 DIV - 33 + + + 35 FROM tab2 AS cor0
----
33
34
34

skipif mysql # not compatible
query I rowsort label-4742
SELECT ALL + col0 / - 33 + + + 35 FROM tab2 AS cor0
----
33
34
34

onlyif mysql # aggregate syntax: 
query I rowsort label-4743
SELECT DISTINCT MAX( col2 ) AS col1 FROM tab2 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-4743
SELECT DISTINCT MAX ( col2 ) AS col1 FROM tab2 AS cor0
----
58

query II rowsort
SELECT DISTINCT + col0 AS col1, - 72 FROM tab1 AS cor0
----
51
-72
85
-72
91
-72

query II rowsort
SELECT DISTINCT col2 * + 70 AS col1, col0 AS col0 FROM tab2
----
1610
46
2800
64
4060
75

query I rowsort
SELECT + 35 * col0 AS col0 FROM tab1
----
1785
2975
3185

query III rowsort
SELECT * FROM tab0 WHERE NOT ( - col0 ) <> + col0 * - col2 * 91
----

query III rowsort
SELECT ALL * FROM tab0 WHERE + - col2 > NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 66 col0 FROM tab0
----
-66
-66
-66

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL > + col1 * col2 * - - 16
----

query I rowsort
SELECT DISTINCT + 41 * + 11 AS col0 FROM tab0 AS cor0
----
451

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 38 < - - col0 / - col2 + - col0 + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - 57 + col2 AS col0 FROM tab2 AS cor0
----
-17
-34
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4754
SELECT - + MAX( + col0 ) FROM tab1 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-4754
SELECT - + MAX ( + col0 ) FROM tab1 AS cor0
----
-91

query I rowsort
SELECT - ( 43 ) FROM tab0
----
-43
-43
-43

query I rowsort
SELECT DISTINCT 38 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
38

query I rowsort
SELECT col1 * - 62 * + col0 + col2 + col2 AS col1 FROM tab0
----
-113254
-5816
-75236

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL IN ( col0, 78 - - - col1, col2 - - + col0 - 21, + + col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4759
SELECT ALL - + 13 AS col1, + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
-13
NULL
-13
NULL
-13
NULL

skipif mysql # not compatible
query II rowsort label-4759
SELECT ALL - + 13 AS col1, + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
-13
NULL
-13
NULL
-13
NULL

query II rowsort
SELECT ALL 47, col0 FROM tab0 AS cor0
----
47
15
47
87
47
97

query I rowsort
SELECT + ( + 41 ) AS col1 FROM tab0 AS cor0
----
41
41
41

onlyif mysql # aggregate syntax: 
query I rowsort label-4762
SELECT 33 * + COUNT( * ) AS col1 FROM tab1 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-4762
SELECT 33 * + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
99

query I rowsort
SELECT + - col2 - col0 FROM tab0 cor0 WHERE 95 IS NOT NULL
----
-196
-62
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-4764
SELECT ALL COUNT( * ) + - - 58 - + 14 FROM tab2
----
47

skipif mysql # not compatible
query I rowsort label-4764
SELECT ALL COUNT ( * ) + - - 58 - + 14 FROM tab2
----
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4765
SELECT 50 * + - 74 * + CAST( 60 AS SIGNED ) FROM tab2
----
-222000
-222000
-222000

skipif mysql # not compatible
query I rowsort label-4765
SELECT 50 * + - 74 * + CAST ( 60 AS INTEGER ) FROM tab2
----
-222000
-222000
-222000

onlyif mysql # aggregate syntax: 
query I rowsort label-4766
SELECT + 8 - - MAX( - col2 ) AS col0 FROM tab0
----
-2

skipif mysql # not compatible
query I rowsort label-4766
SELECT + 8 - - MAX ( - col2 ) AS col0 FROM tab0
----
-2

query I rowsort
SELECT DISTINCT + col0 + + 95 * + col2 FROM tab0
----
1037
4480
9502

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4768
SELECT DISTINCT + COUNT( * ) * + CAST( - - COUNT( * ) AS SIGNED ) FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-4768
SELECT DISTINCT + COUNT ( * ) * + CAST ( - - COUNT ( * ) AS INTEGER ) FROM tab2
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-4769
SELECT ALL - 82 - + - ( COUNT( * ) ) col2 FROM tab0
----
-79

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4769
SELECT ALL - 82 - + - ( COUNT ( * ) ) col2 FROM tab0
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-4770
SELECT DISTINCT - 76 * COUNT( * ) AS col1 FROM tab1
----
-228

skipif mysql # not compatible
query I rowsort label-4770
SELECT DISTINCT - 76 * COUNT ( * ) AS col1 FROM tab1
----
-228

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - - col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 + + col2 col2, col2 AS col1 FROM tab0
----
-77
10
2
99
32
47

query II rowsort
SELECT ALL - + 38 AS col0, col1 * - col0 * + + col1 AS col2 FROM tab1 cor0
----
-38
-201019
-38
-2125
-38
-9996

query II rowsort
SELECT DISTINCT - col1, col2 * col1 + col0 + - col0 AS col2 FROM tab0 AS cor0
----
-1
99
-21
210
-81
3807

onlyif mysql # aggregate syntax: 
query I rowsort label-4775
SELECT - - 49 + MIN( col2 ) FROM tab0 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-4775
SELECT - - 49 + MIN ( col2 ) FROM tab0 AS cor0
----
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4776
SELECT - + CAST( + - col1 AS SIGNED ) + - + 70 * + 96 AS col0 FROM tab0 AS cor0
----
-6639
-6699
-6719

skipif mysql # not compatible
query I rowsort label-4776
SELECT - + CAST ( + - col1 AS INTEGER ) + - + 70 * + 96 AS col0 FROM tab0 AS cor0
----
-6639
-6699
-6719

query I rowsort
SELECT ALL col1 + + 95 AS col1 FROM tab0 AS cor0
----
116
176
96

query III rowsort
SELECT * FROM tab2 WHERE NOT - col2 < + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4779
SELECT - MIN( - col0 ) AS col0 FROM tab0
----
97

skipif mysql # not compatible
query I rowsort label-4779
SELECT - MIN ( - col0 ) AS col0 FROM tab0
----
97

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4780
SELECT * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN - CAST( NULL AS DECIMAL ) AND - - col1
----

skipif mysql # not compatible
query III rowsort label-4780
SELECT * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN - CAST ( NULL AS REAL ) AND - - col1
----

query II rowsort
SELECT + 9 * + - 18, + 37 AS col1 FROM tab2 AS cor0
----
-162
37
-162
37
-162
37

onlyif mysql # DIV for integer division: 
query I rowsort label-4782
SELECT DISTINCT - col0 DIV + col2 AS col2 FROM tab2 cor0
----
-1
-2

skipif mysql # not compatible
query I rowsort label-4782
SELECT DISTINCT - col0 / + col2 AS col2 FROM tab2 cor0
----
-1
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4783
SELECT ALL col0 * + CAST( NULL AS SIGNED ) * - + col2 * + 50 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4783
SELECT ALL col0 * + CAST ( NULL AS INTEGER ) * - + col2 * + 50 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col1 * 56 - - + col2 FROM tab0 AS cor0
----
1186
155
4583

query I rowsort
SELECT - 83 FROM tab1 AS cor0 WHERE NOT - col2 * col0 / + 4 + 76 * col2 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4786
SELECT DISTINCT + + col2 DIV col1 * - - col0 AS col0 FROM tab1 AS cor0
----
306
91
935

skipif mysql # not compatible
query I rowsort label-4786
SELECT DISTINCT + + col2 / col1 * - - col0 AS col0 FROM tab1 AS cor0
----
306
91
935

onlyif mysql # aggregate syntax: 
query I rowsort label-4787
SELECT MAX( DISTINCT - 96 ) FROM tab0 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-4787
SELECT MAX ( DISTINCT - 96 ) FROM tab0 AS cor0
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-4788
SELECT - + SUM( ALL + 44 ) AS col1 FROM tab1 AS cor0
----
-132

skipif mysql # not compatible
query I rowsort label-4788
SELECT - + SUM ( ALL + 44 ) AS col1 FROM tab1 AS cor0
----
-132

onlyif mysql # DIV for integer division: 
query I rowsort label-4789
SELECT + col2 DIV - 1 + col2 AS col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4789
SELECT + col2 / - 1 + col2 AS col0 FROM tab2 AS cor0
----
0
0
0

query II rowsort
SELECT DISTINCT ( - 6 ) * - + 72, - 51 AS col2 FROM tab0
----
432
-51

query I rowsort
SELECT DISTINCT + col0 FROM tab2 WHERE ( - - 34 * - ( col1 ) * - col1 ) NOT IN ( col0, - col1 )
----
46
64
75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4792
SELECT ALL + COUNT( + col1 ) DIV - + MAX( - col1 ) AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-4792
SELECT ALL + COUNT ( + col1 ) / - + MAX ( - col1 ) AS col1 FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4793
SELECT DISTINCT - 49 * - COUNT( + 79 ) col1 FROM tab2
----
147

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4793
SELECT DISTINCT - 49 * - COUNT ( + 79 ) col1 FROM tab2
----
147

query II rowsort
SELECT col0 AS col0, - col1 FROM tab2
----
46
-51
64
-77
75
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-4795
SELECT COUNT( + 8 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-4795
SELECT COUNT ( + 8 ) FROM tab0
----
3

query II rowsort
SELECT DISTINCT + col0 AS col1, col1 FROM tab0
----
15
81
87
21
97
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4797
SELECT + - ( - CAST( NULL AS SIGNED ) ) AS col2 FROM tab2 WHERE NOT - col1 BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query I rowsort label-4797
SELECT + - ( - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab2 WHERE NOT - col1 BETWEEN NULL AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + ( col2 ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col1 col2, + 95 FROM tab2 AS cor0
----
-51
95
-67
95
-77
95

query II rowsort
SELECT DISTINCT col0, ( + 84 ) FROM tab0 AS cor0
----
15
84
87
84
97
84

query II rowsort
SELECT - + col2, col1 AS col0 FROM tab2 AS cor0
----
-23
51
-40
77
-58
67

onlyif mysql # aggregate syntax: 
query II rowsort label-4802
SELECT + + 71 AS col1, ( - COUNT( ALL - col1 ) ) col0 FROM tab1 AS cor0
----
71
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4802
SELECT + + 71 AS col1, ( - COUNT ( ALL - col1 ) ) col0 FROM tab1 AS cor0
----
71
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4803
SELECT ALL col1 * - col2 * + col1 + - CAST( NULL AS SIGNED ) * - col1 AS col2 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4803
SELECT ALL col1 * - col2 * + col1 + - CAST ( NULL AS INTEGER ) * - col1 AS col2 FROM tab1 cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NULL ) BETWEEN - col0 AND - 65
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4805
SELECT + SUM( DISTINCT - col1 ) col2 FROM tab2
----
-195

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4805
SELECT + SUM ( DISTINCT - col1 ) col2 FROM tab2
----
-195

onlyif mysql # aggregate syntax: 
query I rowsort label-4806
SELECT + + COUNT( * ) FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-4806
SELECT + + COUNT ( * ) FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9

query I rowsort
SELECT ALL - col2 + - 50 FROM tab1 AS cor0
----
-109
-118
-146

query I rowsort
SELECT DISTINCT + + 47 + - col1 AS col1 FROM tab0 AS cor0
----
-34
26
46

query I rowsort
SELECT + col0 + + + col2 AS col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
144
147
159

query I rowsort
SELECT - col2 + + col0 * - col2 FROM tab2 AS cor0 WHERE + col1 * + - 97 IS NOT NULL
----
-1081
-2600
-4408

query I rowsort
SELECT + 65 + + col2 * 50 FROM tab0 AS cor0
----
2415
5015
565

query I rowsort
SELECT ALL + 91 + - col0 + + + col0 FROM tab2 AS cor0
----
91
91
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4813
SELECT ALL + MAX( col1 ) * - 25 col2, 20 * CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4813
SELECT ALL + MAX ( col1 ) * - 25 col2, 20 * CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
NULL
NULL

query I rowsort
SELECT DISTINCT - 48 + + 94 AS col0 FROM tab0
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-4815
SELECT + 91 + - COUNT( * ) FROM tab1
----
88

skipif mysql # not compatible
query I rowsort label-4815
SELECT + 91 + - COUNT ( * ) FROM tab1
----
88

query III rowsort
SELECT ALL * FROM tab2 WHERE + 99 * col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - 58 * - col2 AS col0 FROM tab1
----
3422
3944
5568

onlyif mysql # aggregate syntax: 
query I rowsort label-4818
SELECT MAX( - 51 ) AS col1 FROM tab2
----
-51

skipif mysql # not compatible
query I rowsort label-4818
SELECT MAX ( - 51 ) AS col1 FROM tab2
----
-51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4819
SELECT + col0 * - CAST( - 57 AS SIGNED ) AS col2 FROM tab2
----
2622
3648
4275

skipif mysql # not compatible
query I rowsort label-4819
SELECT + col0 * - CAST ( - 57 AS INTEGER ) AS col2 FROM tab2
----
2622
3648
4275

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 46 + col0 col0 FROM tab0 cor0
----
133
143
61

onlyif mysql # aggregate syntax: 
query I rowsort label-4821
SELECT DISTINCT ( + COUNT( * ) ) AS col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4821
SELECT DISTINCT ( + COUNT ( * ) ) AS col1 FROM tab0 AS cor0
----
3

query I rowsort
SELECT ALL - 46 FROM tab2 cor0
----
-46
-46
-46

onlyif mysql # DIV for integer division: 
query I rowsort label-4823
SELECT DISTINCT 86 DIV - 95 FROM tab0 cor0
----
0

skipif mysql # not compatible
query I rowsort label-4823
SELECT DISTINCT 86 / - 95 FROM tab0 cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4824
SELECT ALL + - MAX( + - ( + col0 ) ) FROM tab2 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-4824
SELECT ALL + - MAX ( + - ( + col0 ) ) FROM tab2 AS cor0
----
46

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - 11 IS NOT NULL
----

query II rowsort
SELECT ALL col1, ( + col0 ) FROM tab2 cor0
----
51
46
67
75
77
64

query I rowsort
SELECT col2 AS col2 FROM tab0 AS cor0 WHERE NOT - col2 * + col1 - + 51 IS NULL
----
10
47
99

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4828
SELECT + + col0 AS col2, CAST( 70 AS SIGNED ) * + col2 FROM tab0 AS cor0 WHERE NOT - col0 <> + col2
----

skipif mysql # not compatible
query II rowsort label-4828
SELECT + + col0 AS col2, CAST ( 70 AS INTEGER ) * + col2 FROM tab0 AS cor0 WHERE NOT - col0 <> + col2
----

query II rowsort
SELECT ALL col2 AS col2, + col2 FROM tab1 AS cor0
----
59
59
68
68
96
96

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4830
SELECT ALL + - col0, + CAST( 37 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-15
37
-87
37
-97
37

skipif mysql # not compatible
query II rowsort label-4830
SELECT ALL + - col0, + CAST ( 37 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-15
37
-87
37
-97
37

query I rowsort
SELECT DISTINCT + col2 * - + col2 AS col1 FROM tab2 AS cor0
----
-1600
-3364
-529

query I rowsort
SELECT ( 49 ) AS col2 FROM tab0
----
49
49
49

query I rowsort
SELECT 95 * + + 32 FROM tab2
----
3040
3040
3040

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * - + col2 col0 FROM tab2
----
-1173
-3080
-3886

query II rowsort
SELECT col2 * 94 AS col0, col2 AS col1 FROM tab0
----
4418
47
9306
99
940
10

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4836
SELECT ALL CAST( NULL AS DECIMAL ) * + col0 * + + col1 * col0 col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4836
SELECT ALL CAST ( NULL AS REAL ) * + col0 * + + col1 * col0 col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4837
SELECT DISTINCT 49 DIV - ( + 83 ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-4837
SELECT DISTINCT 49 / - ( + 83 ) FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4838
SELECT DISTINCT ( SUM( 36 ) ) FROM tab2
----
108

skipif mysql # not compatible
query I rowsort label-4838
SELECT DISTINCT ( SUM ( 36 ) ) FROM tab2
----
108

onlyif mysql # aggregate syntax: 
query I rowsort label-4839
SELECT + COUNT( * ) AS col1 FROM tab0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4839
SELECT + COUNT ( * ) AS col1 FROM tab0 WHERE NOT NULL IS NULL
----
0

query I rowsort
SELECT col0 * - + col2 * - + col1 AS col1 FROM tab1
----
25075
290836
68544

onlyif mysql # aggregate syntax: 
query I rowsort label-4841
SELECT DISTINCT - 12 + - + COUNT( * ) FROM tab0 cor0
----
-15

skipif mysql # not compatible
query I rowsort label-4841
SELECT DISTINCT - 12 + - + COUNT ( * ) FROM tab0 cor0
----
-15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4842
SELECT ALL - CAST( + - 93 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
93
93
93

skipif mysql # not compatible
query I rowsort label-4842
SELECT ALL - CAST ( + - 93 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
93
93
93

query I rowsort
SELECT - - 43 FROM tab1 cor0
----
43
43
43

query I rowsort
SELECT ALL - - col1 * + + ( 26 ) * - - 67 + - 24 + 80 * - col0 + + 76 + + - col0 AS col2 FROM tab1 AS cor0
----
1877
20309
74555

query I rowsort
SELECT ALL + - col2 + + - col0 FROM tab1 AS cor0
----
-144
-147
-159

query I rowsort
SELECT ALL + + col0 FROM tab0 WHERE NOT col0 IS NOT NULL
----

query I rowsort
SELECT - 96 + + 29 * col1 FROM tab2
----
1383
1847
2137

query II rowsort
SELECT ALL + 76, col0 AS col2 FROM tab2 AS cor0
----
76
46
76
64
76
75

query I rowsort
SELECT - 19 AS col0 FROM tab2 cor0
----
-19
-19
-19

onlyif mysql # aggregate syntax: 
query II rowsort label-4850
SELECT - COUNT( * ) col2, MIN( - + col1 ) AS col2 FROM tab0 cor0
----
-3
-81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4850
SELECT - COUNT ( * ) col2, MIN ( - + col1 ) AS col2 FROM tab0 cor0
----
-3
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-4851
SELECT ALL COUNT( * ) * - 4 + - + 11 FROM tab2 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-4851
SELECT ALL COUNT ( * ) * - 4 + - + 11 FROM tab2 AS cor0
----
-23

query II rowsort
SELECT - col0 AS col1, - 84 - 96 AS col2 FROM tab2 AS cor0
----
-46
-180
-64
-180
-75
-180

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE col2 - 58 > col0
----

query I rowsort
SELECT + col2 - + - 28 FROM tab0 AS cor0
----
127
38
75

query I rowsort
SELECT - + col2 - - - 66 FROM tab2 AS cor0
----
-106
-124
-89

query II rowsort
SELECT col1 - + col0 * + col2 * + col2, col0 FROM tab0
----
-33054
15
-8679
87
-950696
97

query I rowsort
SELECT DISTINCT - col2 + 24 AS col2 FROM tab1
----
-35
-44
-72

query I rowsort
SELECT - col1 * + col0 - col0 FROM tab0
----
-1230
-1914
-194

onlyif mysql # aggregate syntax: 
query I rowsort label-4859
SELECT ALL + COUNT( * ) - 37 col1 FROM tab1
----
-34

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4859
SELECT ALL + COUNT ( * ) - 37 col1 FROM tab1
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-4860
SELECT DISTINCT - 87 - - + COUNT( * ) FROM tab2
----
-84

skipif mysql # not compatible
query I rowsort label-4860
SELECT DISTINCT - 87 - - + COUNT ( * ) FROM tab2
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-4861
SELECT DISTINCT + COUNT( ALL col0 ) FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-4861
SELECT DISTINCT + COUNT ( ALL col0 ) FROM tab0 cor0
----
3

onlyif mysql # DIV for integer division: 
query II rowsort label-4862
SELECT ALL + col0 + + col0 DIV - + col2 AS col0, - ( + col0 ) AS col2 FROM tab2 AS cor0 WHERE NULL IS NULL
----
44
-46
63
-64
74
-75

skipif mysql # not compatible
query II rowsort label-4862
SELECT ALL + col0 + + col0 / - + col2 AS col0, - ( + col0 ) AS col2 FROM tab2 AS cor0 WHERE NULL IS NULL
----
44
-46
63
-64
74
-75

query I rowsort
SELECT - 12 * - 53 * col1 AS col1 FROM tab0 AS cor0
----
13356
51516
636

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT ( NULL ) <> col2
----

query I rowsort
SELECT - col0 * - col1 * - + ( - 32 ) FROM tab1
----
13600
136864
22848

query III rowsort
SELECT * FROM tab0 WHERE NOT - col1 + + col0 IS NOT NULL
----

query I rowsort
SELECT DISTINCT col0 FROM tab0 WHERE + + ( + col1 ) - 37 IS NULL
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT ( - 1 ) > ( col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4869
SELECT + + COUNT( - - 76 ) AS col1 FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-4869
SELECT + + COUNT ( - - 76 ) AS col1 FROM tab1 cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4870
SELECT - - COUNT( * ) * + 69 col1 FROM tab2 AS cor0
----
207

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4870
SELECT - - COUNT ( * ) * + 69 col1 FROM tab2 AS cor0
----
207

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col1 * - col1 < - col2 * + - col2 / col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT col2 AS col1, col2 * ( + col0 ) FROM tab1 AS cor0
----
59
5015
68
6188
96
4896

query I rowsort
SELECT DISTINCT - - ( 8 ) FROM tab2 AS cor0
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-4874
SELECT ALL + ( - COUNT( * ) ) + + ( ( - + COUNT( * ) ) ) col0 FROM tab1
----
-6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4874
SELECT ALL + ( - COUNT ( * ) ) + + ( ( - + COUNT ( * ) ) ) col0 FROM tab1
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-4875
SELECT 64 + + 86 + + 78 + 62 + - COUNT( * ) col0 FROM tab0
----
287

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4875
SELECT 64 + + 86 + + 78 + 62 + - COUNT ( * ) col0 FROM tab0
----
287

query I rowsort
SELECT col1 + - 6 AS col1 FROM tab1
----
-1
41
8

query II rowsort
SELECT ALL col0 AS col1, col2 FROM tab1
----
51
96
85
59
91
68

query II rowsort
SELECT - col0 + + col1 AS col1, + col2 * + col2 * col2 AS col1 FROM tab0 AS cor0
----
-66
1000
-96
970299
66
103823

onlyif mysql # aggregate syntax: 
query I rowsort label-4879
SELECT DISTINCT ( + ( - + COUNT( DISTINCT + + 16 ) ) ) FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-4879
SELECT DISTINCT ( + ( - + COUNT ( DISTINCT + + 16 ) ) ) FROM tab1 AS cor0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4880
SELECT DISTINCT - ( + col1 ) + CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4880
SELECT DISTINCT - ( + col1 ) + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4881
SELECT DISTINCT + COUNT( * ) col0 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4881
SELECT DISTINCT + COUNT ( * ) col0 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-4882
SELECT 22 DIV - 46 + + + ( col0 ) AS col2 FROM tab0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-4882
SELECT 22 / - 46 + + + ( col0 ) AS col2 FROM tab0
----
15
87
97

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT NULL BETWEEN ( NULL ) AND + col2 / + col0 + + col0
----

query I rowsort
SELECT - 49 + - col1 * + col0 + - - 25 FROM tab2 AS cor0
----
-2370
-4952
-5049

query I rowsort
SELECT DISTINCT - 51 + col1 FROM tab1 cor0
----
-37
-4
-46

query II rowsort
SELECT 74, + col1 FROM tab0
----
74
1
74
21
74
81

onlyif mysql # aggregate syntax: 
query I rowsort label-4887
SELECT - MIN( DISTINCT - 87 ) AS col1 FROM tab1
----
87

skipif mysql # not compatible
query I rowsort label-4887
SELECT - MIN ( DISTINCT - 87 ) AS col1 FROM tab1
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-4888
SELECT DISTINCT MIN( - 26 ) AS col2 FROM tab0
----
-26

skipif mysql # not compatible
query I rowsort label-4888
SELECT DISTINCT MIN ( - 26 ) AS col2 FROM tab0
----
-26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4889
SELECT + CAST( - 17 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-17
-17
-17

skipif mysql # not compatible
query I rowsort label-4889
SELECT + CAST ( - 17 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-17
-17
-17

query I rowsort
SELECT DISTINCT + - 68 FROM tab0 cor0
----
-68

query II rowsort
SELECT ALL + + col0, - col1 AS col1 FROM tab2 cor0
----
46
-51
64
-77
75
-67

onlyif mysql # aggregate syntax: 
query II rowsort label-4892
SELECT + COUNT( * ) * - - COUNT( * ) AS col0, - MAX( DISTINCT + + ( ( col1 ) ) ) FROM tab1
----
9
-47

skipif mysql # not compatible
query II rowsort label-4892
SELECT + COUNT ( * ) * - - COUNT ( * ) AS col0, - MAX ( DISTINCT + + ( ( col1 ) ) ) FROM tab1
----
9
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-4893
SELECT DISTINCT COUNT( + 32 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-4893
SELECT DISTINCT COUNT ( + 32 ) FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4894
SELECT - MAX( - 95 ) FROM tab0
----
95

skipif mysql # not compatible
query I rowsort label-4894
SELECT - MAX ( - 95 ) FROM tab0
----
95

query I rowsort
SELECT DISTINCT + - 6 FROM tab0 cor0 CROSS JOIN tab0 cor1
----
-6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4896
SELECT + CAST( + COUNT( * ) AS SIGNED ) AS col2 FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-4896
SELECT + CAST ( + COUNT ( * ) AS INTEGER ) AS col2 FROM tab1 cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 86 col0 FROM tab2 cor0
----
86
86
86

onlyif mysql # aggregate syntax: 
query I rowsort label-4898
SELECT DISTINCT - COUNT( + + col0 ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4898
SELECT DISTINCT - COUNT ( + + col0 ) FROM tab2 AS cor0
----
-3

query I rowsort
SELECT ALL - - col0 + + - col0 AS col2 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT - + 95 AS col0 FROM tab2 AS cor0
----
-95
-95
-95

query I rowsort
SELECT DISTINCT col1 + + col1 + + 26 + + 25 FROM tab2 AS cor0
----
153
185
205

query II rowsort
SELECT DISTINCT 48, + col0 AS col0 FROM tab1
----
48
51
48
85
48
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4903
SELECT - 83 * - CAST( - col1 AS SIGNED ) FROM tab0
----
-1743
-6723
-83

skipif mysql # not compatible
query I rowsort label-4903
SELECT - 83 * - CAST ( - col1 AS INTEGER ) FROM tab0
----
-1743
-6723
-83

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + ( + - col1 ) = NULL
----

query I rowsort
SELECT 2 * 54 FROM tab2
----
108
108
108

onlyif mysql # DIV for integer division: 
query I rowsort label-4906
SELECT ( - col0 ) DIV 82 - + col2 * col2 + + 14 DIV - 38 AS col0 FROM tab1
----
-3482
-4625
-9216

skipif mysql # not compatible
query I rowsort label-4906
SELECT ( - col0 ) / 82 - + col2 * col2 + + 14 / - 38 AS col0 FROM tab1
----
-3482
-4625
-9216

query III rowsort
SELECT * FROM tab2 WHERE - col1 = NULL
----

query I rowsort
SELECT 82 * - + col2 AS col2 FROM tab2
----
-1886
-3280
-4756

query III rowsort
SELECT * FROM tab1 WHERE col2 > NULL
----

query III rowsort
SELECT * FROM tab2 WHERE - col0 < col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + 81 col1 FROM tab0 AS cor0
----
-18
34
71

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4912
SELECT DISTINCT - 93 DIV SUM( + + 89 ) - COUNT( * ) * + MIN( - 47 ) FROM tab0
----
141

skipif mysql # not compatible
query I rowsort label-4912
SELECT DISTINCT - 93 / SUM ( + + 89 ) - COUNT ( * ) * + MIN ( - 47 ) FROM tab0
----
141

onlyif mysql # aggregate syntax: 
query I rowsort label-4913
SELECT - AVG ( + - ( + + 87 ) ) * + COUNT( * ) - - 84 AS col1 FROM tab1 WHERE NULL >= + col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4913
SELECT - AVG ( + - ( + + 87 ) ) * + COUNT ( * ) - - 84 AS col1 FROM tab1 WHERE NULL >= + col2
----
NULL

query I rowsort
SELECT DISTINCT + + col2 * - col2 - col2 AS col0 FROM tab2 AS cor0
----
-1640
-3422
-552

query I rowsort
SELECT - col2 * + - 10 AS col1 FROM tab2 cor0
----
230
400
580

query I rowsort
SELECT + col1 * col1 FROM tab2 AS cor0 WHERE col0 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4917
SELECT + 18 * - SUM( DISTINCT - + 66 ) FROM tab0 AS cor0
----
1188

skipif mysql # not compatible
query I rowsort label-4917
SELECT + 18 * - SUM ( DISTINCT - + 66 ) FROM tab0 AS cor0
----
1188

query I rowsort
SELECT DISTINCT + col2 + 4 FROM tab0 AS cor0
----
103
14
51

onlyif mysql # DIV for integer division: 
query I rowsort label-4919
SELECT + 28 - - 86 DIV + + col0 FROM tab2 AS cor0
----
29
29
29

skipif mysql # not compatible
query I rowsort label-4919
SELECT + 28 - - 86 / + + col0 FROM tab2 AS cor0
----
29
29
29

query I rowsort
SELECT DISTINCT 8 + + 68 * - + col1 AS col0 FROM tab1 AS cor0
----
-3188
-332
-944

onlyif mysql # DIV for integer division: 
query I rowsort label-4921
SELECT ALL - col0 DIV - 86 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4921
SELECT ALL - col0 / - 86 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT + col1 - + - col2 + - col1 AS col1 FROM tab2
----
23
40
58

query I rowsort
SELECT ALL - 39 - col0 FROM tab0
----
-126
-136
-54

onlyif mysql # aggregate syntax: 
query II rowsort label-4924
SELECT DISTINCT + 6 * + COUNT( * ) AS col0, - 87 * - + COUNT( * ) * + COUNT( * ) FROM tab2, tab1 AS cor0
----
54
7047

skipif mysql # not compatible
query II rowsort label-4924
SELECT DISTINCT + 6 * + COUNT ( * ) AS col0, - 87 * - + COUNT ( * ) * + COUNT ( * ) FROM tab2, tab1 AS cor0
----
54
7047

onlyif mysql # aggregate syntax: 
query II rowsort label-4925
SELECT DISTINCT - COUNT( * ) * - COUNT( * ) AS col0, - COUNT( * ) * - 81 FROM tab1
----
9
243

skipif mysql # not compatible
query II rowsort label-4925
SELECT DISTINCT - COUNT ( * ) * - COUNT ( * ) AS col0, - COUNT ( * ) * - 81 FROM tab1
----
9
243

query II rowsort
SELECT - col0 AS col0, + ( - 38 ) FROM tab2 WHERE NOT ( NOT col0 IS NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4927
SELECT MIN( ALL - ( + col2 ) ) AS col0 FROM tab0
----
-99

skipif mysql # not compatible
query I rowsort label-4927
SELECT MIN ( ALL - ( + col2 ) ) AS col0 FROM tab0
----
-99

query I rowsort
SELECT - 53 * - + col0 AS col0 FROM tab1 AS cor0
----
2703
4505
4823

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( col0 ) BETWEEN + col2 AND NULL
----

query I rowsort
SELECT DISTINCT ( + + 33 ) AS col2 FROM tab1
----
33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4931
SELECT ALL - ( - + col1 ) * - - CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4931
SELECT ALL - ( - + col1 ) * - - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4932
SELECT ( + MAX( + + col0 ) ) FROM tab1
----
91

skipif mysql # not compatible
query I rowsort label-4932
SELECT ( + MAX ( + + col0 ) ) FROM tab1
----
91

query I rowsort
SELECT + col0 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN col1 - + col0 AND col0 + - ( - 81 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 40 col1 FROM tab2 AS cor0
----
40
40
40

onlyif mysql # aggregate syntax: 
query I rowsort label-4935
SELECT MAX( DISTINCT - - col0 ) FROM tab1 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-4935
SELECT MAX ( DISTINCT - - col0 ) FROM tab1 AS cor0
----
91

query I rowsort
SELECT DISTINCT + ( 30 ) AS col2 FROM tab2 AS cor0
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-4937
SELECT ( + COUNT( * ) ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4937
SELECT ( + COUNT ( * ) ) AS col1 FROM tab1 AS cor0
----
3

query I rowsort
SELECT + 95 * 44 AS col1 FROM tab0 AS cor0
----
4180
4180
4180

query I rowsort
SELECT ALL 39 AS col1 FROM tab0 cor0
----
39
39
39

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 77 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col2 + + 7 AS col1 FROM tab1 AS cor0
----
103
66
75

query I rowsort
SELECT ALL col2 + + 56 * - col1 * col1 FROM tab2
----
-145633
-251326
-331984

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4943
SELECT DISTINCT + CAST( NULL AS SIGNED ) + + 47 * + + 94 + + 71, col2 FROM tab2
----
NULL
23
NULL
40
NULL
58

skipif mysql # not compatible
query II rowsort label-4943
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + + 47 * + + 94 + + 71, col2 FROM tab2
----
NULL
23
NULL
40
NULL
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4944
SELECT ALL ( - CAST( col1 AS SIGNED ) ) FROM tab1
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-4944
SELECT ALL ( - CAST ( col1 AS INTEGER ) ) FROM tab1
----
-14
-47
-5

query I rowsort
SELECT - col2 + + - col1 AS col2 FROM tab2
----
-117
-125
-74

query I rowsort
SELECT - 35 * + - col1 AS col0 FROM tab0
----
2835
35
735

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-4947
SELECT - CAST( NULL AS DECIMAL ) * CAST( NULL AS SIGNED ), col1 AS col1 FROM tab2
----
NULL
51
NULL
67
NULL
77

skipif mysql # not compatible
query II rowsort label-4947
SELECT - CAST ( NULL AS REAL ) * CAST ( NULL AS INTEGER ), col1 AS col1 FROM tab2
----
NULL
51
NULL
67
NULL
77

query I rowsort
SELECT DISTINCT 27 * 93 FROM tab2 AS cor0
----
2511

query I rowsort
SELECT ALL + ( - + 92 ) FROM tab1 AS cor0
----
-92
-92
-92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4950
SELECT ALL + CAST( - + ( + - col2 ) AS SIGNED ) + col0 + - col0 * + 2 FROM tab2 AS cor0
----
-17
-23
-24

skipif mysql # not compatible
query I rowsort label-4950
SELECT ALL + CAST ( - + ( + - col2 ) AS INTEGER ) + col0 + - col0 * + 2 FROM tab2 AS cor0
----
-17
-23
-24

query I rowsort
SELECT ALL + ( + 58 ) AS col2 FROM tab1 WHERE NULL IS NULL
----
58
58
58

query I rowsort
SELECT ALL ( col2 ) * - col1 + + ( col1 ) FROM tab1
----
-1330
-290
-3149

query II rowsort
SELECT ALL - 83 * + col2 / + - col2 + col1, col1 FROM tab2 WHERE NOT - col1 <> - - 37
----

query I rowsort
SELECT + 32 + + col2 FROM tab1
----
100
128
91

query I rowsort
SELECT DISTINCT + - col2 * + 36 FROM tab0 AS cor0
----
-1692
-3564
-360

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL > - 66
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4957
SELECT col0 + - - CAST( - col1 AS SIGNED ) DIV 64 AS col0 FROM tab1 AS cor0
----
51
85
91

skipif mysql # not compatible
query I rowsort label-4957
SELECT col0 + - - CAST ( - col1 AS INTEGER ) / 64 AS col0 FROM tab1 AS cor0
----
51
85
91

query I rowsort
SELECT - 86 + 42 * col2 AS col1 FROM tab0 AS cor0
----
1888
334
4072

onlyif mysql # aggregate syntax: 
query I rowsort label-4959
SELECT ALL + - COUNT( * ) - + COUNT( * ) AS col1 FROM tab2 cor0
----
-6

skipif mysql # not compatible
query I rowsort label-4959
SELECT ALL + - COUNT ( * ) - + COUNT ( * ) AS col1 FROM tab2 cor0
----
-6

query I rowsort
SELECT - col2 * 87 AS col1 FROM tab2 AS cor0
----
-2001
-3480
-5046

query II rowsort
SELECT ALL - col0 AS col1, - col1 AS col0 FROM tab1 cor0
----
-51
-14
-85
-5
-91
-47

onlyif mysql # aggregate syntax: 
query II rowsort label-4962
SELECT ALL COUNT( * ) * - + 59 * - COUNT( * ) AS col2, 49 FROM tab0 AS cor0
----
531
49

skipif mysql # not compatible
query II rowsort label-4962
SELECT ALL COUNT ( * ) * - + 59 * - COUNT ( * ) AS col2, 49 FROM tab0 AS cor0
----
531
49

onlyif mysql # aggregate syntax: 
query I rowsort label-4963
SELECT COUNT( ALL - - col2 ) * + COUNT( ALL + col1 ) col2 FROM tab1
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4963
SELECT COUNT ( ALL - - col2 ) * + COUNT ( ALL + col1 ) col2 FROM tab1
----
9

query II rowsort
SELECT ALL 97, col2 AS col2 FROM tab2
----
97
23
97
40
97
58

query I rowsort
SELECT ALL col1 * - 45 * 86 AS col1 FROM tab1
----
-181890
-19350
-54180

query I rowsort
SELECT 3 FROM tab1 WHERE NOT - + col0 * + col0 BETWEEN NULL AND col0 / 12 * - col0
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL BETWEEN col2 + - col0 AND ( + 85 )
----

query I rowsort
SELECT ( - - 31 ) FROM tab2
----
31
31
31

query I rowsort
SELECT ALL 73 * 63 AS col2 FROM tab0
----
4599
4599
4599

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4970
SELECT ALL - CAST( + 51 AS SIGNED ) * - 24 FROM tab2
----
1224
1224
1224

skipif mysql # not compatible
query I rowsort label-4970
SELECT ALL - CAST ( + 51 AS INTEGER ) * - 24 FROM tab2
----
1224
1224
1224

onlyif mysql # aggregate syntax: 
query I rowsort label-4971
SELECT ALL SUM( DISTINCT - + col0 ) FROM tab1
----
-227

skipif mysql # not compatible
query I rowsort label-4971
SELECT ALL SUM ( DISTINCT - + col0 ) FROM tab1
----
-227

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + + 71 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT col0, + col2 * col2 FROM tab0 AS cor0
----
15
2209
87
100
97
9801

onlyif mysql # aggregate syntax: 
query I rowsort label-4974
SELECT DISTINCT - MIN( ALL - 20 ) * + + COUNT( * ) col2 FROM tab0 cor0
----
60

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4974
SELECT DISTINCT - MIN ( ALL - 20 ) * + + COUNT ( * ) col2 FROM tab0 cor0
----
60

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4975
SELECT ALL - + 34 DIV - COUNT( * ) FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
3

skipif mysql # not compatible
query I rowsort label-4975
SELECT ALL - + 34 / - COUNT ( * ) FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4976
SELECT MAX( DISTINCT - col2 ) * + SUM( ALL + 92 ) FROM tab1
----
-16284

skipif mysql # not compatible
query I rowsort label-4976
SELECT MAX ( DISTINCT - col2 ) * + SUM ( ALL + 92 ) FROM tab1
----
-16284

onlyif mysql # aggregate syntax: 
query I rowsort label-4977
SELECT ALL - COUNT( * ) * - 29 FROM tab2
----
87

skipif mysql # not compatible
query I rowsort label-4977
SELECT ALL - COUNT ( * ) * - 29 FROM tab2
----
87

query I rowsort
SELECT ALL - 15 AS col1 FROM tab1 WHERE NOT + col0 IS NULL
----
-15
-15
-15

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4979
SELECT 72 + + 1 DIV - 76 DIV - COUNT( - col1 ), 10 * - 12 AS col2 FROM tab2
----
72
-120

skipif mysql # not compatible
query II rowsort label-4979
SELECT 72 + + 1 / - 76 / - COUNT ( - col1 ), 10 * - 12 AS col2 FROM tab2
----
72
-120

onlyif mysql # DIV for integer division: 
query II rowsort label-4980
SELECT ALL col1 * + col1, ( + - 21 ) * col2 * + col1 + - col2 + - col0 * + + col0 - + 23 DIV col0 - col2 AS col2 FROM tab1
----
196
-31017
2209
-75533
25
-13538

skipif mysql # not compatible
query II rowsort label-4980
SELECT ALL col1 * + col1, ( + - 21 ) * col2 * + col1 + - col2 + - col0 * + + col0 - + 23 / col0 - col2 AS col2 FROM tab1
----
196
-31017
2209
-75533
25
-13538

onlyif mysql # DIV for integer division: 
query I rowsort label-4981
SELECT ALL + col0 DIV - + 54 FROM tab0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-4981
SELECT ALL + col0 / - + 54 FROM tab0
----
-1
-1
0

query III rowsort
SELECT * FROM tab1 cor0 WHERE 11 + + ( + 68 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + 92 + + - col2 col2 FROM tab0 AS cor0
----
-104
-5
30

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NULL ) NOT BETWEEN NULL AND col0 + - 10
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4985
SELECT ALL 81 + - MAX( ALL + + col0 ) col1 FROM tab1 AS cor0
----
-10

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4985
SELECT ALL 81 + - MAX ( ALL + + col0 ) col1 FROM tab1 AS cor0
----
-10

query II rowsort
SELECT 7 AS col0, 67 AS col2 FROM tab1
----
7
67
7
67
7
67

query II rowsort
SELECT + col1, 62 FROM tab2
----
51
62
67
62
77
62

onlyif mysql # aggregate syntax: 
query I rowsort label-4988
SELECT ALL - COUNT( * ) col1 FROM tab0 WHERE + 38 IS NOT NULL
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4988
SELECT ALL - COUNT ( * ) col1 FROM tab0 WHERE + 38 IS NOT NULL
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 19 AS col0, - col0 col1 FROM tab1
----
19
-51
19
-85
19
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4990
SELECT + 77 * col1 * 15 AS col1 FROM tab2 WHERE + CAST( NULL AS SIGNED ) NOT BETWEEN NULL AND + + 65
----

skipif mysql # not compatible
query I rowsort label-4990
SELECT + 77 * col1 * 15 AS col1 FROM tab2 WHERE + CAST ( NULL AS INTEGER ) NOT BETWEEN NULL AND + + 65
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4991
SELECT ALL col0 + + + CAST( NULL AS SIGNED ) FROM tab0 WHERE 63 IS NULL
----

skipif mysql # not compatible
query I rowsort label-4991
SELECT ALL col0 + + + CAST ( NULL AS INTEGER ) FROM tab0 WHERE 63 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4992
SELECT - COUNT( * ) - 65 FROM tab2
----
-68

skipif mysql # not compatible
query I rowsort label-4992
SELECT - COUNT ( * ) - 65 FROM tab2
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-4993
SELECT DISTINCT - - MIN( + - col0 ) FROM tab0 cor0
----
-97

skipif mysql # not compatible
query I rowsort label-4993
SELECT DISTINCT - - MIN ( + - col0 ) FROM tab0 cor0
----
-97

query I rowsort
SELECT - - col1 FROM tab0 AS cor0 WHERE col2 * 34 IS NULL
----

query I rowsort
SELECT - + 90 * + col2 + - col2 + col0 FROM tab0 AS cor0
----
-4262
-823
-8912

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4996
SELECT 9 + - ( CAST( NULL AS SIGNED ) ) AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4996
SELECT 9 + - ( CAST ( NULL AS INTEGER ) ) AS col2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4997
SELECT ALL col2 DIV col0 AS col1 FROM tab2 WHERE NOT ( + col1 + col2 ) IS NULL
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4997
SELECT ALL col2 / col0 AS col1 FROM tab2 WHERE NOT ( + col1 + col2 ) IS NULL
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4998
SELECT ALL + COUNT( * ) * + 94 AS col0 FROM tab1
----
282

skipif mysql # not compatible
query I rowsort label-4998
SELECT ALL + COUNT ( * ) * + 94 AS col0 FROM tab1
----
282

onlyif mysql # DIV for integer division: 
query I rowsort label-4999
SELECT col0 + col1 DIV - 34 FROM tab2
----
45
62
74

skipif mysql # not compatible
query I rowsort label-4999
SELECT col0 + col1 / - 34 FROM tab2
----
45
62
74

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( col2 ) NOT BETWEEN col0 * - ( + col2 ) AND ( + col0 )
----
85
5
59
91
47
68

query I rowsort
SELECT ALL 89 * - col1 FROM tab1
----
-1246
-4183
-445

query III rowsort
SELECT * FROM tab1 WHERE NOT col1 IN ( - col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 WHERE NULL >= col2 - - col1
----

query I rowsort
SELECT + 14 * + col1 + 95 * + ( col2 ) AS col2 FROM tab2
----
2899
4878
6448

onlyif mysql # DIV for integer division: 
query I rowsort label-5005
SELECT DISTINCT col1 DIV + col2 + col2 * + 18 FROM tab2
----
1045
416
721

skipif mysql # not compatible
query I rowsort label-5005
SELECT DISTINCT col1 / + col2 + col2 * + 18 FROM tab2
----
1045
416
721

query I rowsort
SELECT + col2 * - col0 + + col1 AS col2 FROM tab2
----
-1007
-2483
-4283

query III rowsort
SELECT * FROM tab0 WHERE ( col0 + 70 ) IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE ( col0 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - ( + col2 ) AS col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-23
-40
-58

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5010
SELECT * FROM tab1 WHERE ( col0 + col2 ) IN ( col1 * ( - CAST( NULL AS SIGNED ) ) )
----

skipif mysql # not compatible
query III rowsort label-5010
SELECT * FROM tab1 WHERE ( col0 + col2 ) IN ( col1 * ( - CAST ( NULL AS INTEGER ) ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5011
SELECT * FROM tab2 WHERE NOT + col0 * - col0 NOT IN ( col2 * + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-5011
SELECT * FROM tab2 WHERE NOT + col0 * - col0 NOT IN ( col2 * + CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT - col1 FROM tab0 WHERE NOT ( + 88 / 68 ) IS NULL
----
-1
-21
-81

query I rowsort
SELECT DISTINCT col0 FROM tab2 WHERE NULL NOT BETWEEN ( NULL ) AND + col2 / + col0
----

query I rowsort
SELECT DISTINCT - 47 + col2 * col2 AS col0 FROM tab0
----
2162
53
9754

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5015
SELECT 24 * + COUNT( * ) + CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5015
SELECT 24 * + COUNT ( * ) + CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5016
SELECT DISTINCT * FROM tab0 WHERE NOT ( NULL ) = ( + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-5016
SELECT DISTINCT * FROM tab0 WHERE NOT ( NULL ) = ( + CAST ( NULL AS INTEGER ) )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( - col1 / col2 - ( + 87 + - col2 ) / col1 ) < + 31 + + 25
----

query I rowsort
SELECT ( 28 ) - - 9 FROM tab2
----
37
37
37

query I rowsort
SELECT col0 + - ( 20 ) AS col2 FROM tab2
----
26
44
55

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( col1 * - 58 ) NOT BETWEEN 84 AND - col2 * - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5021
SELECT ALL MAX( ALL - col1 ) AS col1 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-5021
SELECT ALL MAX ( ALL - col1 ) AS col1 FROM tab0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5022
SELECT ( - ( - COUNT( * ) ) ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-5022
SELECT ( - ( - COUNT ( * ) ) ) FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5023
SELECT - ( - SUM( - col2 ) ) FROM tab0 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-5023
SELECT - ( - SUM ( - col2 ) ) FROM tab0 AS cor0
----
-156

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( 40 * col0 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-5025
SELECT + SUM( ALL col0 ) AS col1 FROM tab2 AS cor0
----
185

skipif mysql # not compatible
query I rowsort label-5025
SELECT + SUM ( ALL col0 ) AS col1 FROM tab2 AS cor0
----
185

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - 68 <> ( - col2 ) + 93
----

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NULL NOT IN ( - 53 )
----

query I rowsort
SELECT DISTINCT col1 * 6 FROM tab1 AS cor0
----
282
30
84

onlyif mysql # DIV for integer division: 
query I rowsort label-5029
SELECT DISTINCT - col2 * - ( col2 DIV + 67 ) col2 FROM tab1
----
0
68
96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5029
SELECT DISTINCT - col2 * - ( col2 / + 67 ) col2 FROM tab1
----
0
68
96

query I rowsort
SELECT - 25 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 WHERE NOT NULL < 94
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5031
SELECT ALL COUNT( * ) FROM tab0 cor0 CROSS JOIN tab1
----
9

skipif mysql # not compatible
query I rowsort label-5031
SELECT ALL COUNT ( * ) FROM tab0 cor0 CROSS JOIN tab1
----
9

query I rowsort
SELECT + 49 + + 7 FROM tab2 WHERE NULL IS NULL
----
56
56
56

onlyif mysql # aggregate syntax: 
query I rowsort label-5033
SELECT + COUNT( * ) * 24 FROM tab1 cor0
----
72

skipif mysql # not compatible
query I rowsort label-5033
SELECT + COUNT ( * ) * 24 FROM tab1 cor0
----
72

query I rowsort
SELECT + ( 41 ) AS col2 FROM tab0 AS cor0
----
41
41
41

query I rowsort
SELECT - col0 * - 31 AS col2 FROM tab1 AS cor0
----
1581
2635
2821

onlyif mysql # aggregate syntax: 
query I rowsort label-5036
SELECT DISTINCT MAX( + col0 ) AS col0 FROM tab2 AS cor0 WHERE 54 <> + col1
----
75

skipif mysql # not compatible
query I rowsort label-5036
SELECT DISTINCT MAX ( + col0 ) AS col0 FROM tab2 AS cor0 WHERE 54 <> + col1
----
75

query I rowsort
SELECT ALL - ( + 65 ) / - 99 FROM tab2 AS cor0 WHERE - col1 + 49 / - 26 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5038
SELECT + COUNT( * ) + MAX( ALL + col2 ) * - ( + 61 ) AS col2 FROM tab2 AS cor0
----
-3535

skipif mysql # not compatible
query I rowsort label-5038
SELECT + COUNT ( * ) + MAX ( ALL + col2 ) * - ( + 61 ) AS col2 FROM tab2 AS cor0
----
-3535

onlyif mysql # aggregate syntax: 
query I rowsort label-5039
SELECT DISTINCT - + SUM( col2 ) AS col0 FROM tab2 AS cor0
----
-121

skipif mysql # not compatible
query I rowsort label-5039
SELECT DISTINCT - + SUM ( col2 ) AS col0 FROM tab2 AS cor0
----
-121

onlyif mysql # aggregate syntax: 
query I rowsort label-5040
SELECT ALL - COUNT( * ) + - 5 FROM tab1 AS cor0
----
-8

skipif mysql # not compatible
query I rowsort label-5040
SELECT ALL - COUNT ( * ) + - 5 FROM tab1 AS cor0
----
-8

query I rowsort
SELECT + - col0 + - ( - ( col1 ) + col1 ) AS col1 FROM tab0 AS cor0
----
-15
-87
-97

query I rowsort
SELECT ALL col1 FROM tab2 AS cor0 WHERE col2 NOT IN ( col0 )
----
51
67
77

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL >= - col0
----

query I rowsort
SELECT ALL col1 + col1 * 96 FROM tab0 AS cor0
----
2037
7857
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * - col2 * 36 + 76 col0 FROM tab2
----
-110804
-139820
-42152

onlyif mysql # DIV for integer division: 
query I rowsort label-5046
SELECT ALL - col2 DIV + + col0 + + 43 FROM tab2
----
43
43
43

skipif mysql # not compatible
query I rowsort label-5046
SELECT ALL - col2 / + + col0 + + 43 FROM tab2
----
43
43
43

query III rowsort
SELECT * FROM tab0 WHERE - 39 + 41 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + col2 + + + ( + col1 ) + 4 AS col1 FROM tab1
----
114
119
68

query I rowsort
SELECT 94 * 93 AS col1 FROM tab1
----
8742
8742
8742

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5050
SELECT DISTINCT col2 * + 48 + + CAST( 52 AS SIGNED ) AS col1 FROM tab0
----
2308
4804
532

skipif mysql # not compatible
query I rowsort label-5050
SELECT DISTINCT col2 * + 48 + + CAST ( 52 AS INTEGER ) AS col1 FROM tab0
----
2308
4804
532

query I rowsort
SELECT col1 * + - col1 AS col2 FROM tab0
----
-1
-441
-6561

query I rowsort
SELECT - col2 * + 60 AS col0 FROM tab0
----
-2820
-5940
-600

query I rowsort
SELECT DISTINCT - col1 AS col2 FROM tab2 WHERE NOT 69 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5054
SELECT + MAX( - - col1 ) DIV - 98 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-5054
SELECT + MAX ( - - col1 ) / - 98 FROM tab2
----
0

query I rowsort
SELECT col1 * + + col0 + - col0 FROM tab2 cor0
----
2300
4864
4950

onlyif mysql # aggregate syntax: 
query I rowsort label-5056
SELECT 9 + + MAX( - + col1 ) FROM tab0
----
8

skipif mysql # not compatible
query I rowsort label-5056
SELECT 9 + + MAX ( - + col1 ) FROM tab0
----
8

query I rowsort
SELECT - 92 AS col0 FROM tab2 WHERE ( ( col0 ) IS NOT NULL )
----
-92
-92
-92

query I rowsort
SELECT 99 + - + col0 + 41 AS col2 FROM tab0
----
125
43
53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5059
SELECT + CAST( - 81 AS SIGNED ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 205b3ff2d7b1817c98d7980b8c17e6c1

skipif mysql # not compatible
query I rowsort label-5059
SELECT + CAST ( - 81 AS INTEGER ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 205b3ff2d7b1817c98d7980b8c17e6c1

onlyif mysql # aggregate syntax: 
query I rowsort label-5060
SELECT ALL - + COUNT( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-5060
SELECT ALL - + COUNT ( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5061
SELECT * FROM tab2 WHERE NOT ( - CAST( NULL AS SIGNED ) * ( - col1 ) IS NOT NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-5061
SELECT * FROM tab2 WHERE NOT ( - CAST ( NULL AS INTEGER ) * ( - col1 ) IS NOT NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT - + col1 AS col2, + col0 * + + 32 AS col0 FROM tab0 AS cor0
----
-1
3104
-21
2784
-81
480

onlyif mysql # aggregate syntax: 
query I rowsort label-5063
SELECT DISTINCT MAX( ALL - 14 ) col2 FROM tab1 AS cor0
----
-14

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5063
SELECT DISTINCT MAX ( ALL - 14 ) col2 FROM tab1 AS cor0
----
-14

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 19 col2 FROM tab0 cor0
----
-19

query I rowsort
SELECT DISTINCT - 92 FROM tab1 AS cor0 WHERE - col1 IS NOT NULL
----
-92

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col0 * 88 + + col0 * col0 > ( NULL )
----

query I rowsort
SELECT + 37 * ( - col2 ) + - col0 * col2 AS col0 FROM tab0 AS cor0
----
-1240
-13266
-2444

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5068
SELECT ALL 74 FROM tab2 AS cor0 WHERE NOT col0 * + col1 - 79 NOT IN ( - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-5068
SELECT ALL 74 FROM tab2 AS cor0 WHERE NOT col0 * + col1 - 79 NOT IN ( - CAST ( NULL AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5069
SELECT DISTINCT - COUNT( * ) FROM tab2 AS cor0 WHERE NOT col2 BETWEEN ( NULL ) AND ( - 87 )
----
-3

skipif mysql # not compatible
query I rowsort label-5069
SELECT DISTINCT - COUNT ( * ) FROM tab2 AS cor0 WHERE NOT col2 BETWEEN ( NULL ) AND ( - 87 )
----
-3

query I rowsort
SELECT col1 AS col2 FROM tab1 AS cor0 WHERE NOT NULL < ( NULL )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( + col1 ) IN ( - col2 + 73 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-5072
SELECT ALL 92 * - COUNT( * ) FROM tab1
----
-276

skipif mysql # not compatible
query I rowsort label-5072
SELECT ALL 92 * - COUNT ( * ) FROM tab1
----
-276

query I rowsort
SELECT - 31 * - 46 AS col1 FROM tab1
----
1426
1426
1426

query I rowsort
SELECT - ( + col2 ) + col1 FROM tab2 WHERE NOT ( + col0 / + col0 ) IS NULL
----
28
37
9

query I rowsort
SELECT - 80 * + col2 * - col0 FROM tab2
----
204800
348000
84640

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5076
SELECT DISTINCT * FROM tab0 WHERE NOT + col0 NOT BETWEEN + + col2 + CAST( col1 AS SIGNED ) * 45 AND - col1
----

skipif mysql # not compatible
query III rowsort label-5076
SELECT DISTINCT * FROM tab0 WHERE NOT + col0 NOT BETWEEN + + col2 + CAST ( col1 AS INTEGER ) * 45 AND - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5077
SELECT + col2 * - col2 / + CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5077
SELECT + col2 * - col2 / + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5078
SELECT DISTINCT - COUNT( * ) + + MIN( + col1 ) AS col1 FROM tab1 WHERE NULL BETWEEN NULL AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5078
SELECT DISTINCT - COUNT ( * ) + + MIN ( + col1 ) AS col1 FROM tab1 WHERE NULL BETWEEN NULL AND NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5079
SELECT col1 DIV 24 FROM tab2
----
2
2
3

skipif mysql # not compatible
query I rowsort label-5079
SELECT col1 / 24 FROM tab2
----
2
2
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5080
SELECT + COUNT( - col2 ) FROM tab0 WHERE NOT ( 16 ) IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-5080
SELECT + COUNT ( - col2 ) FROM tab0 WHERE NOT ( 16 ) IS NULL
----
3

query III rowsort
SELECT ALL * FROM tab0 WHERE - col0 BETWEEN + 28 AND col2
----

query I rowsort
SELECT ALL + col1 FROM tab2 AS cor0 WHERE - col2 BETWEEN NULL AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - col1 * - - col2 + + col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 WHERE + - 6 + + col2 * ( col1 ) * + col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5085
SELECT DISTINCT - 95 * + + CAST( + 0 AS SIGNED ) / + CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5085
SELECT DISTINCT - 95 * + + CAST ( + 0 AS INTEGER ) / + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( - col2 ) <= - 16 * + - col0 / + + 63 * + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( + + col0 ) col0 FROM tab0 AS cor0
----
15
87
97

onlyif mysql # DIV for integer division: 
query I rowsort label-5088
SELECT ALL - + col2 * col2 DIV + col0 AS col2 FROM tab0 AS cor0
----
-1
-101
-147

skipif mysql # not compatible
query I rowsort label-5088
SELECT ALL - + col2 * col2 / + col0 AS col2 FROM tab0 AS cor0
----
-1
-101
-147

query I rowsort
SELECT - ( - col0 ) * col1 FROM tab0 AS cor0 WHERE NULL BETWEEN + 78 * - - col1 - + + col1 * col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5090
SELECT DISTINCT + + COUNT( ALL + 60 ) FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-5090
SELECT DISTINCT + + COUNT ( ALL + 60 ) FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----
0

query II rowsort
SELECT + 8, + col0 FROM tab2 AS cor0
----
8
46
8
64
8
75

query I rowsort
SELECT DISTINCT col1 FROM tab2 AS cor0 WHERE + col1 NOT BETWEEN col1 AND 5 / - + ( - 18 )
----
51
67
77

query I rowsort
SELECT DISTINCT + - col1 FROM tab1 AS cor0 WHERE NULL > 44 + col0
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col2 < - 46
----

query II rowsort
SELECT col0, 9 AS col0 FROM tab0
----
15
9
87
9
97
9

query I rowsort
SELECT ( + ( col0 ) ) FROM tab1 WHERE NULL NOT IN ( col2 * - col1 - + col2 )
----

query I rowsort
SELECT 18 * + + 70 * 32 FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5098
SELECT DISTINCT + col2 + - + col1 * + ( + col2 ) - + CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5098
SELECT DISTINCT + col2 + - + col1 * + ( + col2 ) - + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col1 IN ( - col2 + - + 68 )
----

query I rowsort
SELECT DISTINCT + col0 AS col2 FROM tab1 WHERE NULL >= - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5101
SELECT ALL SUM( DISTINCT 63 ) AS col2 FROM tab2, tab1 AS cor0
----
63

skipif mysql # not compatible
query I rowsort label-5101
SELECT ALL SUM ( DISTINCT 63 ) AS col2 FROM tab2, tab1 AS cor0
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-5102
SELECT ALL COUNT( ALL + + 10 ) + + 44 FROM tab1
----
47

skipif mysql # not compatible
query I rowsort label-5102
SELECT ALL COUNT ( ALL + + 10 ) + + 44 FROM tab1
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-5103
SELECT DISTINCT - + COUNT( * ) AS col0 FROM tab1 WHERE - col2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-5103
SELECT DISTINCT - + COUNT ( * ) AS col0 FROM tab1 WHERE - col2 IS NULL
----
0

query I rowsort
SELECT + 61 * 89 + - col1 + - col1 + - col2 FROM tab1 AS cor0
----
5267
5305
5360

query I rowsort
SELECT - + 4 AS col1 FROM tab0 AS cor0
----
-4
-4
-4

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 41 * + col0 - + col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5107
SELECT + COUNT( * ) DIV - + 70 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5107
SELECT + COUNT ( * ) / - + 70 FROM tab0 AS cor0
----
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 58 >= 55 * - - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - col1 * + col2 * - 56 AS col0 FROM tab2 cor0 WHERE ( + 51 ) IS NOT NULL
----
172480
217616
65688

query I rowsort
SELECT 92 * - + 12 + - - 30 FROM tab0 cor0
----
-1074
-1074
-1074

query I rowsort
SELECT - - 6 * - - col1 + + ( + col0 ) FROM tab2 AS cor0
----
352
477
526

query I rowsort
SELECT + 94 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5113
SELECT ALL * FROM tab1 cor0 WHERE ( - 86 ) * - - col1 NOT BETWEEN + CAST( NULL AS DECIMAL ) AND col0 + + col1 + - col0
----

skipif mysql # not compatible
query III rowsort label-5113
SELECT ALL * FROM tab1 cor0 WHERE ( - 86 ) * - - col1 NOT BETWEEN + CAST ( NULL AS REAL ) AND col0 + + col1 + - col0
----

query II rowsort
SELECT + col0 * 75 - + + col2 AS col0, + col2 - + + col2 * - 40 * col2 FROM tab0 cor0
----
1078
88407
6515
4010
7176
392139

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5115
SELECT ALL - CAST( - 74 AS SIGNED ) * SUM( + col2 ) FROM tab0 AS cor0
----
11544

skipif mysql # not compatible
query I rowsort label-5115
SELECT ALL - CAST ( - 74 AS INTEGER ) * SUM ( + col2 ) FROM tab0 AS cor0
----
11544

query I rowsort
SELECT 98 * - col1 AS col2 FROM tab1
----
-1372
-4606
-490

query I rowsort
SELECT DISTINCT - 88 AS col2 FROM tab2
----
-88

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - col2 < + + col2 + col0 * + 7
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col1 IN ( + 71 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5120
SELECT ALL COUNT( * ) FROM tab1 WHERE NOT NULL < - 37
----
0

skipif mysql # not compatible
query I rowsort label-5120
SELECT ALL COUNT ( * ) FROM tab1 WHERE NOT NULL < - 37
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5121
SELECT DISTINCT COUNT( ALL + 64 ) AS col2 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-5121
SELECT DISTINCT COUNT ( ALL + 64 ) AS col2 FROM tab0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5122
SELECT CAST( NULL AS SIGNED ) * + 67 + + - col0 AS col2, + col0 - + col2 FROM tab0
----
NULL
-2
NULL
-32
NULL
77

skipif mysql # not compatible
query II rowsort label-5122
SELECT CAST ( NULL AS INTEGER ) * + 67 + + - col0 AS col2, + col0 - + col2 FROM tab0
----
NULL
-2
NULL
-32
NULL
77

query I rowsort
SELECT + 41 + + - col0 AS col0 FROM tab0
----
-46
-56
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5124
SELECT ALL 66 + - CAST( COUNT( * ) AS SIGNED ) + + + 1 * + COUNT( * ) col1 FROM tab0 AS cor0
----
66

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5124
SELECT ALL 66 + - CAST ( COUNT ( * ) AS INTEGER ) + + + 1 * + COUNT ( * ) col1 FROM tab0 AS cor0
----
66

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN + col2 + - 1 + - col1 AND NULL AND NOT ( NOT ( + col0 ) > col0 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) <> + col1 + - + col2 * col0
----

query I rowsort
SELECT ALL + col0 + - 22 + + col0 + - - 62 * + + col2 AS col0 FROM tab2 AS cor0
----
1496
2586
3724

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - col1 * col2 + 63 < col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + - 5 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 74665fbb47d5b17da011bca567195b21

onlyif mysql # aggregate syntax: 
query I rowsort label-5130
SELECT + 11 + COUNT( * ) FROM tab1 AS cor0
----
14

skipif mysql # not compatible
query I rowsort label-5130
SELECT + 11 + COUNT ( * ) FROM tab1 AS cor0
----
14

query I rowsort
SELECT + 15 + col1 + + col0 FROM tab0 AS cor0
----
111
113
123

query I rowsort
SELECT 17 + 44 FROM tab0 AS cor0
----
61
61
61

query I rowsort
SELECT col0 AS col2 FROM tab2 AS cor0 WHERE 89 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 70 col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
70
70
70

query III rowsort
SELECT * FROM tab1 WHERE ( col2 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5136
SELECT DISTINCT + CAST( NULL AS SIGNED ) + 66 + + + 16 + + - COUNT( * ) col2 FROM tab2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5136
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + 66 + + + 16 + + - COUNT ( * ) col2 FROM tab2
----
NULL

query I rowsort
SELECT ALL 93 + + + col2 AS col2 FROM tab1
----
152
161
189

query II rowsort
SELECT DISTINCT 81 - - - ( - col0 ) + + 43 * 93, col0 FROM tab0
----
4095
15
4167
87
4177
97

query III rowsort
SELECT ALL * FROM tab2 WHERE ( - col2 ) BETWEEN col2 + col0 * 46 AND ( NULL )
----

query I rowsort
SELECT - col2 * - + col2 AS col1 FROM tab0
----
100
2209
9801

query I rowsort
SELECT - col1 * 18 FROM tab1
----
-252
-846
-90

onlyif mysql # DIV for integer division: 
query I rowsort label-5142
SELECT ALL + col0 DIV - 68 FROM tab0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-5142
SELECT ALL + col0 / - 68 FROM tab0
----
-1
-1
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5143
SELECT + 85 DIV + COUNT( - 2 ) - - - SUM( DISTINCT + col1 ) - + 3 AS col1 FROM tab1 cor0
----
-41

skipif mysql # not compatible
query I rowsort label-5143
SELECT + 85 / + COUNT ( - 2 ) - - - SUM ( DISTINCT + col1 ) - + 3 AS col1 FROM tab1 cor0
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-5144
SELECT DISTINCT COUNT( * ) * + 75 AS col0 FROM tab2 AS cor0
----
225

skipif mysql # not compatible
query I rowsort label-5144
SELECT DISTINCT COUNT ( * ) * + 75 AS col0 FROM tab2 AS cor0
----
225

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + + 16 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5146
SELECT COUNT( * ) AS col2 FROM ( tab0 AS cor0 CROSS JOIN tab2 cor1 )
----
9

skipif mysql # not compatible
query I rowsort label-5146
SELECT COUNT ( * ) AS col2 FROM ( tab0 AS cor0 CROSS JOIN tab2 cor1 )
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-5147
SELECT DISTINCT SUM( - + 72 ) FROM tab0
----
-216

skipif mysql # not compatible
query I rowsort label-5147
SELECT DISTINCT SUM ( - + 72 ) FROM tab0
----
-216

query I rowsort
SELECT DISTINCT + col1 FROM tab0 WHERE col2 NOT IN ( - + col1 * + col1 + - col2 + ( col2 ), col0 )
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-5149
SELECT ALL - 98 * COUNT( * ) FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-5149
SELECT ALL - 98 * COUNT ( * ) FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5150
SELECT ALL * FROM tab0 AS cor0 WHERE + col2 BETWEEN + + col0 * + - CAST( NULL AS SIGNED ) AND - col1
----

skipif mysql # not compatible
query III rowsort label-5150
SELECT ALL * FROM tab0 AS cor0 WHERE + col2 BETWEEN + + col0 * + - CAST ( NULL AS INTEGER ) AND - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5151
SELECT DISTINCT + CAST( - col1 AS SIGNED ) col2 FROM tab2 AS cor0 WHERE NOT + col2 * col1 IS NULL
----
-51
-67
-77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5151
SELECT DISTINCT + CAST ( - col1 AS INTEGER ) col2 FROM tab2 AS cor0 WHERE NOT + col2 * col1 IS NULL
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query II rowsort label-5152
SELECT + 32 AS col1, COUNT( * ) col2 FROM tab2 AS cor0
----
32
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5152
SELECT + 32 AS col1, COUNT ( * ) col2 FROM tab2 AS cor0
----
32
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5153
SELECT + COUNT( * ) * SUM( ALL col1 ) FROM tab0 AS cor0
----
309

skipif mysql # not compatible
query I rowsort label-5153
SELECT + COUNT ( * ) * SUM ( ALL col1 ) FROM tab0 AS cor0
----
309

query I rowsort
SELECT 60 * + 39 FROM tab0
----
2340
2340
2340

onlyif mysql # aggregate syntax: 
query I rowsort label-5155
SELECT - ( COUNT( * ) ) AS col0 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-5155
SELECT - ( COUNT ( * ) ) AS col0 FROM tab1
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5156
SELECT col0 * + CAST( CAST( col1 AS SIGNED ) AS SIGNED ) FROM tab1
----
425
4277
714

skipif mysql # not compatible
query I rowsort label-5156
SELECT col0 * + CAST ( CAST ( col1 AS INTEGER ) AS INTEGER ) FROM tab1
----
425
4277
714

query I rowsort
SELECT ( - col2 ) * ( ( + + col1 ) ) - - - col2 AS col1 FROM tab2
----
-1196
-3120
-3944

onlyif mysql # aggregate syntax: 
query I rowsort label-5158
SELECT DISTINCT SUM( - col1 ) FROM tab1
----
-66

skipif mysql # not compatible
query I rowsort label-5158
SELECT DISTINCT SUM ( - col1 ) FROM tab1
----
-66

query I rowsort
SELECT DISTINCT + 39 + - col0 AS col1 FROM tab0 AS cor0
----
-48
-58
24

query I rowsort
SELECT + col0 + - ( + + col2 ) FROM tab2 AS cor0
----
17
23
24

onlyif mysql # aggregate syntax: 
query I rowsort label-5161
SELECT ALL COUNT( * ) * + MIN( - col2 ) AS col2 FROM tab2 AS cor0 WHERE NULL BETWEEN NULL AND 50
----
NULL

skipif mysql # not compatible
query I rowsort label-5161
SELECT ALL COUNT ( * ) * + MIN ( - col2 ) AS col2 FROM tab2 AS cor0 WHERE NULL BETWEEN NULL AND 50
----
NULL

query I rowsort
SELECT + 73 * col1 + + + col0 AS col0 FROM tab1 AS cor0
----
1073
3522
450

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5163
SELECT * FROM tab1 WHERE + col0 * + + col1 * + col0 <> CAST( - col2 AS SIGNED ) * + 74 - + 23
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-5163
SELECT * FROM tab1 WHERE + col0 * + + col1 * + col0 <> CAST ( - col2 AS INTEGER ) * + 74 - + 23
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - - 47 AS col0 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5165
SELECT 54 + - + CAST( + col1 AS SIGNED ) + col2 * + col2 FROM tab2
----
1577
3351
532

skipif mysql # not compatible
query I rowsort label-5165
SELECT 54 + - + CAST ( + col1 AS INTEGER ) + col2 * + col2 FROM tab2
----
1577
3351
532

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5166
SELECT - CAST( NULL AS SIGNED ) + + CAST( NULL AS SIGNED ) * - 68 + - col2 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5166
SELECT - CAST ( NULL AS INTEGER ) + + CAST ( NULL AS INTEGER ) * - 68 + - col2 AS col2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5167
SELECT COUNT( * ), + COUNT( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9
9

skipif mysql # not compatible
query II rowsort label-5167
SELECT COUNT ( * ), + COUNT ( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9
9

query I rowsort
SELECT DISTINCT col0 * - - col0 AS col0 FROM tab0 cor0
----
225
7569
9409

query II rowsort
SELECT ALL + + col0 * col1 * - + col0 AS col0, col0 AS col0 FROM tab1 AS cor0
----
-36125
85
-36414
51
-389207
91

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col1 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL + 79 * col0 FROM tab2 AS cor0
----
3634
5056
5925

query I rowsort
SELECT col2 FROM tab0 AS cor0 WHERE ( NOT + ( - col2 ) BETWEEN ( - 66 + + - 94 ) AND + 0 + - 71 )
----
10
47

query I rowsort
SELECT - 5 * - col2 FROM tab2 AS cor0 WHERE NULL IS NULL
----
115
200
290

query I rowsort
SELECT DISTINCT + - col2 + - + col0 AS col1 FROM tab0 AS cor0
----
-196
-62
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-5175
SELECT + COUNT( * ) * - COUNT( * ) - - 49 col1 FROM tab2
----
40

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5175
SELECT + COUNT ( * ) * - COUNT ( * ) - - 49 col1 FROM tab2
----
40

query III rowsort
SELECT * FROM tab1 WHERE NULL <> 52
----

query I rowsort
SELECT 66 - - col2 AS col0 FROM tab0
----
113
165
76

query I rowsort
SELECT ALL 30 - - col2 AS col1 FROM tab1
----
126
89
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * + col2 + + - col2 + + col0 * + col1 * - + 38 - + + col2 col2 FROM tab1
----
-11253
-156474
-22428

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5180
SELECT ALL CAST( NULL AS SIGNED ) * - - col0 - - col2 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5180
SELECT ALL CAST ( NULL AS INTEGER ) * - - col0 - - col2 AS col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5181
SELECT DISTINCT COUNT( * ) * + 21 FROM tab0
----
63

skipif mysql # not compatible
query I rowsort label-5181
SELECT DISTINCT COUNT ( * ) * + 21 FROM tab0
----
63

query II rowsort
SELECT - 63 * col1, + col0 FROM tab1
----
-2961
91
-315
85
-882
51

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col2 > + + 3 * + - 93 + - col1 + 54
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5184
SELECT + col1 / - - CAST( NULL AS SIGNED ) + + col2, - col2 AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query II rowsort label-5184
SELECT + col1 / - - CAST ( NULL AS INTEGER ) + + col2, - col2 AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5185
SELECT - - AVG ( ALL ( + CAST( NULL AS SIGNED ) ) ) + - MAX( + col1 ) FROM tab2 AS cor0 WHERE NOT col1 * + + col0 * - col2 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5185
SELECT - - AVG ( ALL ( + CAST ( NULL AS INTEGER ) ) ) + - MAX ( + col1 ) FROM tab2 AS cor0 WHERE NOT col1 * + + col0 * - col2 IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5186
SELECT DISTINCT COUNT( + 60 ) AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5186
SELECT DISTINCT COUNT ( + 60 ) AS col2 FROM tab1 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5187
SELECT - col2 * ( + CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5187
SELECT - col2 * ( + CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - 15 * - ( - - 41 ) FROM tab2 AS cor0
----
615
615
615

onlyif mysql # aggregate syntax: 
query I rowsort label-5189
SELECT DISTINCT ( + MIN( + - col1 ) ) * COUNT( * ) * - 86 - + COUNT( * ) AS col2 FROM tab1 AS cor0
----
12123

skipif mysql # not compatible
query I rowsort label-5189
SELECT DISTINCT ( + MIN ( + - col1 ) ) * COUNT ( * ) * - 86 - + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
12123

onlyif mysql # aggregate syntax: 
query I rowsort label-5190
SELECT DISTINCT - MAX( ALL - 48 ) FROM tab2 AS cor0 WHERE NOT - col1 * - col1 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5190
SELECT DISTINCT - MAX ( ALL - 48 ) FROM tab2 AS cor0 WHERE NOT - col1 * - col1 IS NOT NULL
----
NULL

query I rowsort
SELECT + 48 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * + 60 col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-2760
-3840
-4500

onlyif mysql # DIV for integer division: 
query I rowsort label-5193
SELECT ALL + + col1 DIV col1 + + ( col2 ) AS col1 FROM tab0 AS cor0
----
100
11
48

skipif mysql # not compatible
query I rowsort label-5193
SELECT ALL + + col1 / col1 + + ( col2 ) AS col1 FROM tab0 AS cor0
----
100
11
48

onlyif mysql # DIV for integer division: 
query I rowsort label-5194
SELECT 68 DIV - col1 + - - col0 AS col0 FROM tab2 AS cor0
----
45
64
74

skipif mysql # not compatible
query I rowsort label-5194
SELECT 68 / - col1 + - - col0 AS col0 FROM tab2 AS cor0
----
45
64
74

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT DISTINCT - col2 col2, 53 * col1, - - col1 col2 FROM tab2 AS cor0
----
9 values hashing to c94623914a14e5e87add009623202f2d

onlyif mysql # DIV for integer division: 
query I rowsort label-5196
SELECT DISTINCT - col0 DIV + col1 + + - 47 AS col1 FROM tab1 AS cor0
----
-48
-50
-64

skipif mysql # not compatible
query I rowsort label-5196
SELECT DISTINCT - col0 / + col1 + + - 47 AS col1 FROM tab1 AS cor0
----
-48
-50
-64

query I rowsort
SELECT DISTINCT + 1 + + col2 FROM tab0 AS cor0
----
100
11
48

query I rowsort
SELECT - + col0 * 33 * - col0 AS col2 FROM tab0 AS cor0
----
249777
310497
7425

query I rowsort
SELECT col0 * - 13 * + col2 AS col2 FROM tab0 AS cor0
----
-11310
-124839
-9165

query I rowsort
SELECT ALL col2 + col1 + + 90 FROM tab2 AS cor0
----
164
207
215

query I rowsort
SELECT DISTINCT - 92 * col0 * - col1 FROM tab2 AS cor0
----
215832
453376
462300

query III rowsort
SELECT * FROM tab2 WHERE NOT - 82 * + 30 * col0 + - 45 < + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5203
SELECT DISTINCT 71 * - CAST( NULL AS SIGNED ) + 68 AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5203
SELECT DISTINCT 71 * - CAST ( NULL AS INTEGER ) + 68 AS col2 FROM tab1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5204
SELECT ALL - col1 DIV - 23 AS col2 FROM tab0
----
0
0
3

skipif mysql # not compatible
query I rowsort label-5204
SELECT ALL - col1 / - 23 AS col2 FROM tab0
----
0
0
3

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT 16 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5206
SELECT + CAST( NULL AS SIGNED ) + - - col1 col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5206
SELECT + CAST ( NULL AS INTEGER ) + - - col1 col1 FROM tab1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col0 FROM tab0 WHERE + 13 IS NOT NULL
----
15
87
97

query I rowsort
SELECT + col1 * 77 + - - col0 AS col0 FROM tab0 WHERE NULL BETWEEN NULL AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - 15 / 97 + 91 IN ( 34, 54 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col0 + 76 AS col1 FROM tab0
----
163
173
91

query II rowsort
SELECT DISTINCT col2 AS col0, 73 AS col2 FROM tab1
----
59
73
68
73
96
73

query I rowsort
SELECT + col0 AS col2 FROM tab1 WHERE NULL IS NULL
----
51
85
91

query I rowsort
SELECT DISTINCT - col2 + + - 97 AS col2 FROM tab0
----
-107
-144
-196

onlyif mysql # DIV for integer division: 
query I rowsort label-5214
SELECT + 16 DIV + 86 col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5214
SELECT + 16 / + 86 col0 FROM tab2
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5215
SELECT ALL - col2 DIV + - col1 FROM tab1
----
1
11
6

skipif mysql # not compatible
query I rowsort label-5215
SELECT ALL - col2 / + - col1 FROM tab1
----
1
11
6

onlyif mysql # aggregate syntax: 
query II rowsort label-5216
SELECT + 12 AS col0, + COUNT( * ) FROM tab2 AS cor0
----
12
3

skipif mysql # not compatible
query II rowsort label-5216
SELECT + 12 AS col0, + COUNT ( * ) FROM tab2 AS cor0
----
12
3

onlyif mysql # aggregate syntax: 
query II rowsort label-5217
SELECT + COUNT( * ) AS col2, - 78 FROM tab1 AS cor0
----
3
-78

skipif mysql # not compatible
query II rowsort label-5217
SELECT + COUNT ( * ) AS col2, - 78 FROM tab1 AS cor0
----
3
-78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5218
SELECT + 14 * + col1 * + 49 * CAST( NULL AS SIGNED ) * col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5218
SELECT + 14 * + col1 * + 49 * CAST ( NULL AS INTEGER ) * col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5219
SELECT ALL col1 + col1 AS col2 FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN - CAST( col1 AS SIGNED ) * - 90 * col2 + + 62 AND NULL
----

skipif mysql # not compatible
query I rowsort label-5219
SELECT ALL col1 + col1 AS col2 FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN - CAST ( col1 AS INTEGER ) * - 90 * col2 + + 62 AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 65 * - col1 + + col1 + - - col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-5221
SELECT COUNT( ALL 51 ) + + 20 AS col0 FROM tab0
----
23

skipif mysql # not compatible
query I rowsort label-5221
SELECT COUNT ( ALL 51 ) + + 20 AS col0 FROM tab0
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-5222
SELECT + 23 + + 58 + + + COUNT( * ) col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
90

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5222
SELECT + 23 + + 58 + + + COUNT ( * ) col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
90

query II rowsort
SELECT col1 + col0 AS col0, ( - col2 ) + col0 AS col0 FROM tab1 cor0
----
138
23
65
-45
90
26

query I rowsort
SELECT DISTINCT - + col2 * + 64 - col0 + + col0 AS col1 FROM tab0 AS cor0
----
-3008
-6336
-640

query III rowsort
SELECT * FROM tab2 cor0 WHERE 81 * 89 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 96 * 91 + col1 col0 FROM tab1 cor0
----
8741
8750
8783

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5227
SELECT DISTINCT - + CAST( NULL AS SIGNED ) + - - col2 * - - 27 col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5227
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) + - - col2 * - - 27 col0 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5228
SELECT ALL + MAX( col2 ) FROM tab1
----
96

skipif mysql # not compatible
query I rowsort label-5228
SELECT ALL + MAX ( col2 ) FROM tab1
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-5229
SELECT ( COUNT( - col0 ) ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-5229
SELECT ( COUNT ( - col0 ) ) FROM tab1
----
3

query I rowsort
SELECT DISTINCT + col0 * ( col1 ) FROM tab0
----
1215
1827
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 32, + col2 col0 FROM tab0
----
32
10
32
47
32
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5232
SELECT + 20 * - ( col2 ) * + CAST( + + 81 AS SIGNED ) col0 FROM tab0
----
-160380
-16200
-76140

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5232
SELECT + 20 * - ( col2 ) * + CAST ( + + 81 AS INTEGER ) col0 FROM tab0
----
-160380
-16200
-76140

query I rowsort
SELECT + 28 FROM tab1 cor0 WHERE NOT NULL <= col0 * - col2
----

query II rowsort
SELECT col1, + 21 AS col2 FROM tab2 AS cor0
----
51
21
67
21
77
21

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col1 NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5236
SELECT + COUNT( * ) * + 94, COUNT( * ) AS col2 FROM tab1
----
282
3

skipif mysql # not compatible
query II rowsort label-5236
SELECT + COUNT ( * ) * + 94, COUNT ( * ) AS col2 FROM tab1
----
282
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5237
SELECT ALL - 12 DIV - MAX( + col2 ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-5237
SELECT ALL - 12 / - MAX ( + col2 ) FROM tab1
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - 72 * + - col0 < + + 52 + + + 59
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL > - 21
----

query I rowsort
SELECT DISTINCT col0 * - 34 * - col2 AS col2 FROM tab1 AS cor0
----
166464
170510
210392

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col1 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5242
SELECT ALL + + COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE ( NOT + col1 <= NULL )
----
0

skipif mysql # not compatible
query I rowsort label-5242
SELECT ALL + + COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE ( NOT + col1 <= NULL )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5243
SELECT DISTINCT - col1 DIV + 81 AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-5243
SELECT DISTINCT - col1 / + 81 AS col2 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5244
SELECT + 94 * + + COUNT( * ) AS col1 FROM tab1
----
282

skipif mysql # not compatible
query I rowsort label-5244
SELECT + 94 * + + COUNT ( * ) AS col1 FROM tab1
----
282

onlyif mysql # DIV for integer division: 
query I rowsort label-5245
SELECT ALL + 29 DIV + col1 AS col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5245
SELECT ALL + 29 / + col1 AS col0 FROM tab2
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5246
SELECT DISTINCT 54, + ( - ( + ( + + col2 ) ) ) * + + CAST( NULL AS SIGNED ) + + col1 * col2 AS col2 FROM tab1
----
54
NULL

skipif mysql # not compatible
query II rowsort label-5246
SELECT DISTINCT 54, + ( - ( + ( + + col2 ) ) ) * + + CAST ( NULL AS INTEGER ) + + col1 * col2 AS col2 FROM tab1
----
54
NULL

query I rowsort
SELECT - col1 * 50 AS col1 FROM tab2
----
-2550
-3350
-3850

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL IN ( + 77 )
----

query I rowsort
SELECT ALL 31 * - col2 FROM tab1
----
-1829
-2108
-2976

query I rowsort
SELECT ALL + + col0 + + 30 FROM tab1 AS cor0
----
115
121
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5251
SELECT + + col1 + - 4 + + - 68 FROM tab0 WHERE ( NULL ) NOT BETWEEN - 41 AND - - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-5251
SELECT + + col1 + - 4 + + - 68 FROM tab0 WHERE ( NULL ) NOT BETWEEN - 41 AND - - CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5252
SELECT DISTINCT + 39 + + COUNT( * ) FROM tab0
----
42

skipif mysql # not compatible
query I rowsort label-5252
SELECT DISTINCT + 39 + + COUNT ( * ) FROM tab0
----
42

query I rowsort
SELECT 78 FROM ( tab2 AS cor0 CROSS JOIN tab1 cor1 )
----
9 values hashing to 2aff42d3e015022a738905090a20dfd4

query I rowsort
SELECT ALL + 36 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to eee96a85519f92856a7500dc8b6cf752

onlyif mysql # aggregate syntax: 
query I rowsort label-5255
SELECT + - COUNT( * ) - - 65 AS col2 FROM tab2 AS cor0
----
62

skipif mysql # not compatible
query I rowsort label-5255
SELECT + - COUNT ( * ) - - 65 AS col2 FROM tab2 AS cor0
----
62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 col2 FROM tab0 AS cor0 WHERE NULL <= + 16
----

query I rowsort
SELECT - 24 - - col2 AS col2 FROM tab1 AS cor0
----
35
44
72

onlyif mysql # aggregate syntax: 
query I rowsort label-5258
SELECT 62 - + + COUNT( * ) FROM tab2 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-5258
SELECT 62 - + + COUNT ( * ) FROM tab2 AS cor0
----
59

query II rowsort
SELECT + 32 AS col0, + col2 * + - col2 FROM tab1 AS cor0
----
32
-3481
32
-4624
32
-9216

onlyif mysql # aggregate syntax: 
query I rowsort label-5260
SELECT ALL - COUNT( ALL + col0 ) AS col0 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5260
SELECT ALL - COUNT ( ALL + col0 ) AS col0 FROM tab1 AS cor0
----
-3

query II rowsort
SELECT + col1, - col2 FROM tab2 cor0
----
51
-23
67
-58
77
-40

query I rowsort
SELECT - col2 * + - 47 + - - 35 FROM tab2 AS cor0
----
1116
1915
2761

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col2 + - 85 + col0 < NULL
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT col0 + + + 0 / - col0 * + col2 < ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL IN ( + - 89 )
----

query I rowsort
SELECT col1 * - 50 * - col0 AS col2 FROM tab1 WHERE NOT ( - col1 ) IS NULL
----
21250
213850
35700

query I rowsort
SELECT DISTINCT col1 AS col2 FROM tab0 WHERE + + col2 IS NOT NULL
----
1
21
81

query III rowsort
SELECT * FROM tab1 WHERE NOT + col1 / 1 - - 28 * col1 * + 93 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-5269
SELECT ALL - MAX( + col1 ) AS col0 FROM tab2 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-5269
SELECT ALL - MAX ( + col1 ) AS col0 FROM tab2 AS cor0
----
-77

query I rowsort
SELECT DISTINCT + col2 * - col2 + - col2 + 7 FROM tab2 AS cor0
----
-1633
-3415
-545

query I rowsort
SELECT + 22 * - col0 FROM tab2
----
-1012
-1408
-1650

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5272
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - ( + col0 ) * + + 82 * - + CAST( NULL AS SIGNED ) * + col2 - + - col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-5272
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - ( + col0 ) * + + 82 * - + CAST ( NULL AS INTEGER ) * + col2 - + - col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-5273
SELECT MAX( - 20 ) FROM tab0 cor0
----
-20

skipif mysql # not compatible
query I rowsort label-5273
SELECT MAX ( - 20 ) FROM tab0 cor0
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-5274
SELECT - 20 * + COUNT( * ) AS col2 FROM tab1 AS cor0
----
-60

skipif mysql # not compatible
query I rowsort label-5274
SELECT - 20 * + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-60

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5275
SELECT 12 AS col2, + COUNT( 5 ) DIV ( + COUNT( * ) ) * - 94 FROM tab0 AS cor0
----
12
-94

skipif mysql # not compatible
query II rowsort label-5275
SELECT 12 AS col2, + COUNT ( 5 ) / ( + COUNT ( * ) ) * - 94 FROM tab0 AS cor0
----
12
-94

query I rowsort
SELECT ALL + - 52 FROM tab0 AS cor0 WHERE NULL BETWEEN NULL AND col2 - + col0
----

query I rowsort
SELECT + col0 + + - col2 AS col0 FROM tab0 cor0
----
-2
-32
77

query I rowsort
SELECT + col1 + ( + + 92 ) FROM tab2 AS cor0
----
143
159
169

onlyif mysql # aggregate syntax: 
query I rowsort label-5279
SELECT - - 93 + - MAX( ALL + ( + + col2 ) ) FROM tab2 AS cor0
----
35

skipif mysql # not compatible
query I rowsort label-5279
SELECT - - 93 + - MAX ( ALL + ( + + col2 ) ) FROM tab2 AS cor0
----
35

query II rowsort
SELECT ALL - col1 * col1 + + 20, - col2 AS col1 FROM tab2 AS cor0
----
-2581
-23
-4469
-58
-5909
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-5281
SELECT ALL - + MAX( DISTINCT - 75 ) FROM tab1 cor0
----
75

skipif mysql # not compatible
query I rowsort label-5281
SELECT ALL - + MAX ( DISTINCT - 75 ) FROM tab1 cor0
----
75

query I rowsort
SELECT col0 * col2 FROM tab0 WHERE - col0 IS NOT NULL
----
705
870
9603

query I rowsort
SELECT + col2 * - + 51 AS col0 FROM tab0
----
-2397
-5049
-510

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5284
SELECT ALL - ( + CAST( - 78 AS SIGNED ) ) AS col1 FROM tab0 cor0 WHERE NOT + col0 * + col1 IS NULL
----
78
78
78

skipif mysql # not compatible
query I rowsort label-5284
SELECT ALL - ( + CAST ( - 78 AS INTEGER ) ) AS col1 FROM tab0 cor0 WHERE NOT + col0 * + col1 IS NULL
----
78
78
78

onlyif mysql # aggregate syntax: 
query I rowsort label-5285
SELECT + COUNT( * ) FROM tab0 AS cor0 WHERE NULL <= ( col0 )
----
0

skipif mysql # not compatible
query I rowsort label-5285
SELECT + COUNT ( * ) FROM tab0 AS cor0 WHERE NULL <= ( col0 )
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * - 14 col1 FROM tab1 AS cor0
----
-1190
-1274
-714

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5287
SELECT + + col0 AS col1, - ( col2 ) + CAST( NULL AS SIGNED ) * - 40 FROM tab1 AS cor0
----
51
NULL
85
NULL
91
NULL

skipif mysql # not compatible
query II rowsort label-5287
SELECT + + col0 AS col1, - ( col2 ) + CAST ( NULL AS INTEGER ) * - 40 FROM tab1 AS cor0
----
51
NULL
85
NULL
91
NULL

query I rowsort
SELECT 41 AS col2 FROM tab2 cor0 WHERE NOT ( NOT + col0 IS NOT NULL )
----
41
41
41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5289
SELECT DISTINCT - - col0 * - + col0 * - CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5289
SELECT DISTINCT - - col0 * - + col0 * - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5290
SELECT DISTINCT + MIN( - col0 ) FROM tab0 cor0
----
-97

skipif mysql # not compatible
query I rowsort label-5290
SELECT DISTINCT + MIN ( - col0 ) FROM tab0 cor0
----
-97

query II rowsort
SELECT DISTINCT col0, 16 FROM tab1 AS cor0
----
51
16
85
16
91
16

query I rowsort
SELECT + 25 AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
25
25
25

query I rowsort
SELECT ALL ( + 46 ) FROM tab1 cor0
----
46
46
46

query I rowsort
SELECT + + 64 AS col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
64
64
64

onlyif mysql # DIV for integer division: 
query II rowsort label-5295
SELECT 12 DIV - col2, col1 AS col0 FROM tab0
----
-1
21
0
1
0
81

skipif mysql # not compatible
query II rowsort label-5295
SELECT 12 / - col2, col1 AS col0 FROM tab0
----
-1
21
0
1
0
81

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5296
SELECT + col1 AS col2, + CAST( - 72 AS SIGNED ) FROM tab0
----
1
-72
21
-72
81
-72

skipif mysql # not compatible
query II rowsort label-5296
SELECT + col1 AS col2, + CAST ( - 72 AS INTEGER ) FROM tab0
----
1
-72
21
-72
81
-72

query I rowsort
SELECT 99 * 2 FROM tab1
----
198
198
198

onlyif mysql # aggregate syntax: 
query I rowsort label-5298
SELECT ( + + COUNT( * ) ) AS col2 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-5298
SELECT ( + + COUNT ( * ) ) AS col2 FROM tab0
----
3

query II rowsort
SELECT + col1, col2 FROM tab0
----
1
99
21
10
81
47

query I rowsort
SELECT ALL + 2 AS col0 FROM tab2 WHERE + col1 + + - col2 IS NULL
----

query II rowsort
SELECT col0, col0 AS col2 FROM tab2
----
46
46
64
64
75
75

onlyif mysql # aggregate syntax: 
query II rowsort label-5302
SELECT + 72 AS col1, COUNT( * ) FROM tab0
----
72
3

skipif mysql # not compatible
query II rowsort label-5302
SELECT + 72 AS col1, COUNT ( * ) FROM tab0
----
72
3

query II rowsort
SELECT DISTINCT + - col2 AS col2, col2 * - + col1 AS col0 FROM tab2 cor0
----
-23
-1173
-40
-3080
-58
-3886

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col0 NOT IN ( - col2 + - col2 * - + col1, 66 * - - col0, - col1 + col0 + 42 / 18 + + + 21 - + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5306
SELECT - MIN( DISTINCT + col0 ) AS col2 FROM tab0 WHERE + ( - col2 ) >= + - 66
----
-15

skipif mysql # not compatible
query I rowsort label-5306
SELECT - MIN ( DISTINCT + col0 ) AS col2 FROM tab0 WHERE + ( - col2 ) >= + - 66
----
-15

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 col2 FROM tab0 WHERE ( NULL ) IS NULL
----
-1
-21
-81

query I rowsort
SELECT + col1 AS col1 FROM tab0 WHERE ( NOT ( NOT - 21 IS NULL ) )
----

query III rowsort
SELECT * FROM tab2 WHERE NULL BETWEEN + ( - - col0 ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5310
SELECT ALL + 79 * - ( + COUNT( * ) ) FROM tab2 AS cor0
----
-237

skipif mysql # not compatible
query I rowsort label-5310
SELECT ALL + 79 * - ( + COUNT ( * ) ) FROM tab2 AS cor0
----
-237

onlyif mysql # aggregate syntax: 
query I rowsort label-5311
SELECT ALL 89 + - COUNT( * ) AS col1 FROM tab1 cor0
----
86

skipif mysql # not compatible
query I rowsort label-5311
SELECT ALL 89 + - COUNT ( * ) AS col1 FROM tab1 cor0
----
86

query I rowsort
SELECT DISTINCT col0 + + col1 AS col1 FROM tab1 cor0
----
138
65
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5313
SELECT CAST( + - col0 AS SIGNED ) FROM tab0 cor0
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-5313
SELECT CAST ( + - col0 AS INTEGER ) FROM tab0 cor0
----
-15
-87
-97

query I rowsort
SELECT DISTINCT - + col1 + - 39 FROM tab2 AS cor0
----
-106
-116
-90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + - 21 col1 FROM tab2 AS cor0
----
-44
-61
-79

query I rowsort
SELECT DISTINCT 82 + + - 69 + + col0 FROM tab2 AS cor0
----
59
77
88

query I rowsort
SELECT ALL + - col0 FROM tab1 WHERE - col2 IN ( col2, - 25 * 96 )
----

query I rowsort
SELECT - 93 AS col2 FROM tab1
----
-93
-93
-93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5319
SELECT MIN( + - col2 ) + + COUNT( col1 ) * CAST( NULL AS SIGNED ) - COUNT( ALL + + 25 ) + + COUNT( * ) + + SUM( + - col0 ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5319
SELECT MIN ( + - col2 ) + + COUNT ( col1 ) * CAST ( NULL AS INTEGER ) - COUNT ( ALL + + 25 ) + + COUNT ( * ) + + SUM ( + - col0 ) AS col1 FROM tab2
----
NULL

query I rowsort
SELECT ALL col1 * + - col2 * + - col0 FROM tab2
----
197120
291450
53958

query I rowsort
SELECT DISTINCT + ( col0 ) * 3 AS col2 FROM tab1
----
153
255
273

query III rowsort
SELECT * FROM tab0 cor0 WHERE NULL BETWEEN - col2 AND NULL
----

query I rowsort
SELECT DISTINCT + col2 + - 95 FROM tab1 cor0
----
-27
-36
1

onlyif mysql # DIV for integer division: 
query II rowsort label-5324
SELECT + col2 DIV - ( - col0 ) + - - col2 * col0 + + col2 AS col2, 72 FROM tab2 AS cor0
----
1081
72
2600
72
4408
72

skipif mysql # not compatible
query II rowsort label-5324
SELECT + col2 / - ( - col0 ) + - - col2 * col0 + + col2 AS col2, 72 FROM tab2 AS cor0
----
1081
72
2600
72
4408
72

onlyif mysql # DIV for integer division: 
query I rowsort label-5325
SELECT - col2 DIV - - col1 AS col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5325
SELECT - col2 / - - col1 AS col2 FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT col2 * - 71 AS col0 FROM tab2
----
-1633
-2840
-4118

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col1 * col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-5328
SELECT - col0 DIV + col1 AS col0 FROM tab1 cor0
----
-1
-17
-3

skipif mysql # not compatible
query I rowsort label-5328
SELECT - col0 / + col1 AS col0 FROM tab1 cor0
----
-1
-17
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5329
SELECT ALL - MAX( DISTINCT - CAST( NULL AS SIGNED ) ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5329
SELECT ALL - MAX ( DISTINCT - 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 - 56 col0 FROM tab0 AS cor0
----
-56
-56
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-5331
SELECT - + COUNT( * ) * + 16 FROM tab2 AS cor0
----
-48

skipif mysql # not compatible
query I rowsort label-5331
SELECT - + COUNT ( * ) * + 16 FROM tab2 AS cor0
----
-48

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( col1 IS NOT NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + 57 AS col2 FROM tab0 WHERE NOT NULL > NULL
----

query I rowsort
SELECT col2 * - 27 * + - ( + col1 ) FROM tab2
----
104922
31671
83160

onlyif mysql # DIV for integer division: 
query I rowsort label-5335
SELECT DISTINCT - 21 DIV col2 + + col2 FROM tab2 AS cor0
----
23
40
58

skipif mysql # not compatible
query I rowsort label-5335
SELECT DISTINCT - 21 / col2 + + col2 FROM tab2 AS cor0
----
23
40
58

query I rowsort
SELECT ALL + col1 * + col0 + - + col0 + + - 25 AS col0 FROM tab0 AS cor0
----
-25
1175
1715

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 89 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 6 + + ( - col1 ) + - 62 * col1 FROM tab2
----
-3207
-4215
-4845

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col1 IN ( - + col2 / + col1 - - - col0 + - 47 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-5340
SELECT - MAX( DISTINCT + + col0 ) col2 FROM tab0 AS cor0 WHERE col0 IS NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5340
SELECT - MAX ( DISTINCT + + col0 ) col2 FROM tab0 AS cor0 WHERE col0 IS NULL
----
NULL

query I rowsort
SELECT + - 90 * - col2 * - col0 + col2 + col1 AS col2 FROM tab1 AS cor0
----
-440530
-451286
-556805

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col0 + + col2 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( + 3 IS NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5344
SELECT ALL - CAST( - + col2 AS SIGNED ) FROM tab2 AS cor0
----
23
40
58

skipif mysql # not compatible
query I rowsort label-5344
SELECT ALL - CAST ( - + col2 AS INTEGER ) FROM tab2 AS cor0
----
23
40
58

query I rowsort
SELECT + 65 + - - col2 FROM tab1 AS cor0
----
124
133
161

query I rowsort
SELECT DISTINCT - col2 + - + col2 * - col0 FROM tab1 AS cor0
----
4800
4956
6120

query I rowsort
SELECT col2 FROM tab1 AS cor0 WHERE + col0 * col0 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5348
SELECT ALL + COUNT( * ) * + COUNT( * ) + + AVG ( - 46 ) / CAST( NULL AS SIGNED ) AS col1 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5348
SELECT ALL + COUNT ( * ) * + COUNT ( * ) + + AVG ( - 46 ) / CAST ( NULL AS INTEGER ) AS col1 FROM tab0 cor0
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-5349
SELECT DISTINCT - col0 + 38 + - col0 * + + 94 + 10 DIV - col1 AS col0, - 14 AS col2 FROM tab0 AS cor0
----
-1387
-14
-8227
-14
-9187
-14

skipif mysql # not compatible
query II rowsort label-5349
SELECT DISTINCT - col0 + 38 + - col0 * + + 94 + 10 / - col1 AS col0, - 14 AS col2 FROM tab0 AS cor0
----
-1387
-14
-8227
-14
-9187
-14

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col0 * + col0 > NULL
----

query II rowsort
SELECT DISTINCT + col2 - + 5 AS col2, col0 AS col0 FROM tab1
----
54
85
63
91
91
51

query I rowsort
SELECT ALL 50 + + col1 AS col0 FROM tab2
----
101
117
127

query I rowsort
SELECT col0 * - ( - 44 ) * - 35 + - col1 FROM tab0 WHERE - col1 * - col2 + col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5354
SELECT COUNT( - - col2 ) AS col2 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-5354
SELECT COUNT ( - - col2 ) AS col2 FROM tab0
----
3

query I rowsort
SELECT - col1 + - 2 + + + col1 FROM tab0 cor0 WHERE ( NULL ) IS NULL
----
-2
-2
-2

query II rowsort
SELECT DISTINCT 52, - col0 AS col1 FROM tab1
----
52
-51
52
-85
52
-91

query I rowsort
SELECT DISTINCT - - 6 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * + - 85 col0 FROM tab2
----
-4335
-5695
-6545

onlyif mysql # DIV for integer division: 
query I rowsort label-5359
SELECT DISTINCT + col0 DIV - + col2 AS col1 FROM tab0 AS cor0
----
-8
0

skipif mysql # not compatible
query I rowsort label-5359
SELECT DISTINCT + col0 / - + col2 AS col1 FROM tab0 AS cor0
----
-8
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5360
SELECT COUNT( + col2 ) FROM tab1 AS cor0 WHERE NOT + col1 + - col1 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-5360
SELECT COUNT ( + col2 ) FROM tab1 AS cor0 WHERE NOT + col1 + - col1 IS NULL
----
3

query I rowsort
SELECT ALL + - col1 * - 74 FROM tab0 AS cor0
----
1554
5994
74

query II rowsort
SELECT DISTINCT - 85 * + 4 + col0, + col2 * ( + - col0 ) AS col0 FROM tab2 AS cor0
----
-265
-4350
-276
-2560
-294
-1058

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5363
SELECT ALL - col1 * + CAST( NULL AS SIGNED ) - - col0 * - ( - 45 ) * + + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5363
SELECT ALL - col1 * + CAST ( NULL AS INTEGER ) - - col0 * - ( - 45 ) * + + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5364
SELECT COUNT( + col1 ) DIV - 18 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-5364
SELECT COUNT ( + col1 ) / - 18 FROM tab0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5365
SELECT ( + - 93 ) DIV - col0 AS col1 FROM tab2
----
1
1
2

skipif mysql # not compatible
query I rowsort label-5365
SELECT ( + - 93 ) / - col0 AS col1 FROM tab2
----
1
1
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5366
SELECT 58 DIV + COUNT( DISTINCT - - col2 ) FROM tab0
----
19

skipif mysql # not compatible
query I rowsort label-5366
SELECT 58 / + COUNT ( DISTINCT - - col2 ) FROM tab0
----
19

onlyif mysql # DIV for integer division: 
query II rowsort label-5367
SELECT col0 DIV - + col2 col2, 22 AS col2 FROM tab0
----
-8
22
0
22
0
22

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5367
SELECT col0 / - + col2 col2, 22 AS col2 FROM tab0
----
-8
22
0
22
0
22

onlyif mysql # aggregate syntax: 
query II rowsort label-5368
SELECT 99 AS col1, + COUNT( - - 30 ) FROM tab1 WHERE NOT + col1 BETWEEN NULL AND NULL
----
99
0

skipif mysql # not compatible
query II rowsort label-5368
SELECT 99 AS col1, + COUNT ( - - 30 ) FROM tab1 WHERE NOT + col1 BETWEEN NULL AND NULL
----
99
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5369
SELECT DISTINCT + MIN( ALL - col1 ) col1 FROM tab0
----
-81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5369
SELECT DISTINCT + MIN ( ALL - col1 ) col1 FROM tab0
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-5370
SELECT MAX( - 20 ) AS col1 FROM tab1
----
-20

skipif mysql # not compatible
query I rowsort label-5370
SELECT MAX ( - 20 ) AS col1 FROM tab1
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-5371
SELECT DISTINCT + MIN( DISTINCT + + col1 ) AS col1 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-5371
SELECT DISTINCT + MIN ( DISTINCT + + col1 ) AS col1 FROM tab0 AS cor0
----
1

query I rowsort
SELECT ALL + - col0 + 11 AS col2 FROM tab0 AS cor0
----
-4
-76
-86

query I rowsort
SELECT + 64 + - 43 FROM tab1 AS cor0
----
21
21
21

onlyif mysql # aggregate syntax: 
query I rowsort label-5374
SELECT + COUNT( * ) + - 27 AS col0 FROM tab0 AS cor0
----
-24

skipif mysql # not compatible
query I rowsort label-5374
SELECT + COUNT ( * ) + - 27 AS col0 FROM tab0 AS cor0
----
-24

query I rowsort
SELECT 63 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to c3eea92c46f2c49716f386a58b575025

query III rowsort
SELECT * FROM tab1 WHERE + + 71 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5377
SELECT DISTINCT + COUNT( * ) DIV - 60 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
0

skipif mysql # not compatible
query I rowsort label-5377
SELECT DISTINCT + COUNT ( * ) / - 60 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
0

query III rowsort
SELECT * FROM tab0 WHERE - 84 + + col1 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 56 col0 FROM tab1 cor0
----
56
56
56

query II rowsort
SELECT DISTINCT - col2 AS col2, - 11 AS col0 FROM tab0 AS cor0
----
-10
-11
-47
-11
-99
-11

query I rowsort
SELECT ALL 30 + 38 AS col0 FROM tab2 AS cor0
----
68
68
68

query I rowsort
SELECT col2 * ( - + col0 ) * ( - + 76 ) + + 8 FROM tab2 AS cor0
----
194568
330608
80416

query I rowsort
SELECT - + col0 - + - 47 FROM tab1 AS cor0
----
-38
-4
-44

onlyif mysql # DIV for integer division: 
query I rowsort label-5384
SELECT - - 34 DIV + - col0 - 12 FROM tab1 AS cor0
----
-12
-12
-12

skipif mysql # not compatible
query I rowsort label-5384
SELECT - - 34 / + - col0 - 12 FROM tab1 AS cor0
----
-12
-12
-12

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col0 + 10 * - + col1 col2 FROM tab2 AS cor0
----
-464
-595
-706

query I rowsort
SELECT - + col2 * + col0 * col0 FROM tab1 WHERE 99 <= NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5387
SELECT DISTINCT + COUNT( * ) / - + SUM( ALL col0 ) + CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5387
SELECT DISTINCT + COUNT ( * ) / - + SUM ( ALL col0 ) + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

query I rowsort
SELECT 12 AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to d4f5a8e032294c3b9342821617800972

query I rowsort
SELECT DISTINCT col2 - - 91 + + col1 + - ( - col1 ) AS col2 FROM tab0
----
143
192
300

query I rowsort
SELECT ALL + col2 + - + col0 AS col2 FROM tab0
----
-77
2
32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5391
SELECT + 6 + + COUNT( * ) - - + 99 * - - CAST( NULL AS SIGNED ), + 19 AS col1 FROM tab2
----
NULL
19

skipif mysql # not compatible
query II rowsort label-5391
SELECT + 6 + + COUNT ( * ) - - + 99 * - - CAST ( NULL AS INTEGER ), + 19 AS col1 FROM tab2
----
NULL
19

query I rowsort
SELECT DISTINCT + col2 FROM tab2 AS cor0 WHERE NOT + ( - col0 ) NOT BETWEEN ( - 84 ) AND - col2
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-5393
SELECT DISTINCT - COUNT( * ) AS col2 FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 )
----
-9

skipif mysql # not compatible
query I rowsort label-5393
SELECT DISTINCT - COUNT ( * ) AS col2 FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 )
----
-9

query I rowsort
SELECT ALL col1 * ( col1 ) FROM tab0
----
1
441
6561

onlyif mysql # aggregate syntax: 
query I rowsort label-5395
SELECT + COUNT( * ) * COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE NOT - col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-5395
SELECT + COUNT ( * ) * COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE NOT - col0 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5396
SELECT DISTINCT + SUM( DISTINCT col1 ) AS col2, 34 FROM tab0 AS cor0
----
103
34

skipif mysql # not compatible
query II rowsort label-5396
SELECT DISTINCT + SUM ( DISTINCT col1 ) AS col2, 34 FROM tab0 AS cor0
----
103
34

onlyif mysql # aggregate syntax: 
query I rowsort label-5397
SELECT DISTINCT - - COUNT( * ) * + COUNT( * ) FROM tab1 AS cor0 WHERE NULL < ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-5397
SELECT DISTINCT - - COUNT ( * ) * + COUNT ( * ) FROM tab1 AS cor0 WHERE NULL < ( NULL )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5398
SELECT DISTINCT - MAX( + + ( 17 ) ) FROM tab0 AS cor0
----
-17

skipif mysql # not compatible
query I rowsort label-5398
SELECT DISTINCT - MAX ( + + ( 17 ) ) FROM tab0 AS cor0
----
-17

onlyif mysql # aggregate syntax: 
query II rowsort label-5399
SELECT - SUM( ALL col0 ), COUNT( * ) AS col1 FROM tab1 AS cor0
----
-227
3

skipif mysql # not compatible
query II rowsort label-5399
SELECT - SUM ( ALL col0 ), COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-227
3

query II rowsort
SELECT DISTINCT - 58 * + col2 AS col1, col0 FROM tab1 AS cor0
----
-3422
85
-3944
91
-5568
51

query I rowsort
SELECT ALL - + 73 * + 60 FROM tab0 AS cor0
----
-4380
-4380
-4380

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5402
SELECT * FROM tab2 cor0 WHERE NOT + CAST( - col2 AS SIGNED ) + + col1 NOT BETWEEN - col0 AND - col0 * + col1
----

skipif mysql # not compatible
query III rowsort label-5402
SELECT * FROM tab2 cor0 WHERE NOT + CAST ( - col2 AS INTEGER ) + + col1 NOT BETWEEN - col0 AND - col0 * + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5403
SELECT ALL + CAST( - 88 AS SIGNED ) * + 61 - + col2 + 74 * - col0 FROM tab1 cor0
----
-11717
-12170
-9238

skipif mysql # not compatible
query I rowsort label-5403
SELECT ALL + CAST ( - 88 AS INTEGER ) * + 61 - + col2 + 74 * - col0 FROM tab1 cor0
----
-11717
-12170
-9238

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( col0 NOT BETWEEN NULL AND 38 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5405
SELECT ALL * FROM tab0 WHERE NOT + ( + + col2 ) IN ( - - col1, + col1 * col0 + + col1 * + + 92, + 15 * + - 80 + CAST( NULL AS SIGNED ), - col2, col0 / + col1 + - ( CAST( col1 AS SIGNED ) ) )
----

skipif mysql # not compatible
query III rowsort label-5405
SELECT ALL * FROM tab0 WHERE NOT + ( + + col2 ) IN ( - - col1, + col1 * col0 + + col1 * + + 92, + 15 * + - 80 + CAST ( NULL AS INTEGER ), - col2, col0 / + col1 + - ( CAST ( col1 AS INTEGER ) ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5406
SELECT - 1, CAST( - 63 AS SIGNED ) AS col2 FROM tab0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query II rowsort label-5406
SELECT - 1, CAST ( - 63 AS INTEGER ) AS col2 FROM tab0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL col0 * 59 AS col2 FROM tab2
----
2714
3776
4425

onlyif mysql # aggregate syntax: 
query I rowsort label-5408
SELECT - ( + ( + - COUNT( * ) ) ) FROM tab1 WHERE NOT 55 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-5408
SELECT - ( + ( + - COUNT ( * ) ) ) FROM tab1 WHERE NOT 55 IS NOT NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 52 + - col1 * - 34 * - - col1 col2 FROM tab2
----
152574
201534
88382

query I rowsort
SELECT + col0 + 79 FROM tab0
----
166
176
94

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - ( + - col1 ) + + 7 + - - col2 + + col0 * + col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT + col0 AS col2, 17 AS col2 FROM tab1
----
51
17
85
17
91
17

query I rowsort
SELECT DISTINCT + + 70 * + col1 + 87 * + - ( - - 24 ) AS col1 FROM tab1 AS cor0
----
-1108
-1738
1202

query I rowsort
SELECT ALL col0 * col2 + - col2 - - 99 FROM tab1
----
4899
5055
6219

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5415
SELECT DISTINCT + CAST( NULL AS SIGNED ) + - 96 AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5415
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + - 96 AS col0 FROM tab0
----
NULL

query I rowsort
SELECT ALL - col0 - - 38 AS col0 FROM tab2
----
-26
-37
-8

query I rowsort
SELECT - col1 * col0 + 38 AS col0 FROM tab1
----
-387
-4239
-676

query I rowsort
SELECT ALL - - col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT 60 + + 94 FROM tab2 AS cor0
----
154
154
154

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5420
SELECT + col0 + CAST( - + col1 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-13
-5
8

skipif mysql # not compatible
query I rowsort label-5420
SELECT + col0 + CAST ( - + col1 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-13
-5
8

onlyif mysql # DIV for integer division: 
query I rowsort label-5421
SELECT 3 DIV col1 + - - col0 AS col1 FROM tab0 AS cor0
----
100
15
87

skipif mysql # not compatible
query I rowsort label-5421
SELECT 3 / col1 + - - col0 AS col1 FROM tab0 AS cor0
----
100
15
87

onlyif mysql # aggregate syntax: 
query I rowsort label-5422
SELECT ALL + 34 + SUM( + col0 ) AS col0 FROM tab1 AS cor0
----
261

skipif mysql # not compatible
query I rowsort label-5422
SELECT ALL + 34 + SUM ( + col0 ) AS col0 FROM tab1 AS cor0
----
261

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL IS NOT NULL OR - - 57 + - + 7 <> col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 WHERE 80 + - col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5425
SELECT CAST( NULL AS SIGNED ) AS col1, MIN( col1 ) + - MAX( ALL - 63 ) FROM tab0
----
NULL
64

skipif mysql # not compatible
query II rowsort label-5425
SELECT CAST ( NULL AS INTEGER ) AS col1, MIN ( col1 ) + - MAX ( ALL - 63 ) FROM tab0
----
NULL
64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5426
SELECT - CAST( NULL AS SIGNED ) * + + col1 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5426
SELECT - CAST ( NULL AS INTEGER ) * + + col1 AS col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT ( 0 ) AS col2 FROM tab2
----
0

query III rowsort
SELECT ALL * FROM tab0 WHERE 34 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-5429
SELECT ALL + + COUNT( * ) FROM tab2 WHERE col2 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-5429
SELECT ALL + + COUNT ( * ) FROM tab2 WHERE col2 IS NOT NULL
----
3

query II rowsort
SELECT DISTINCT col0, col0 AS col0 FROM tab2
----
46
46
64
64
75
75

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND + 84
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - 70 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL = - col1 * col1 * - - col0 - - col2
----

query I rowsort
SELECT + 22 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL IS NULL
----
9 values hashing to c55ee7433d8d39a59b1de2aadd9538c9

query III rowsort
SELECT ALL * FROM tab2 WHERE - col1 + + col1 NOT BETWEEN - ( + col1 ) AND NULL
----

query II rowsort
SELECT DISTINCT 10 AS col2, - ( - 52 ) AS col0 FROM tab2 cor0
----
10
52

query I rowsort
SELECT ALL - ( - + 80 ) AS col2 FROM tab1 AS cor0
----
80
80
80

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - 41 > 73
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5439
SELECT ALL + COUNT( DISTINCT + col0 ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5439
SELECT ALL + COUNT ( DISTINCT + col0 ) AS col1 FROM tab1 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5440
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + CAST( NULL AS SIGNED ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-5440
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + CAST ( NULL AS INTEGER ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT - col0 - + 85 <> - 93 + - 83
----
91
47
68

query I rowsort
SELECT ALL 8 * - 30 FROM tab2 AS cor0
----
-240
-240
-240

query I rowsort
SELECT ALL + col2 + - col0 * - + 19 FROM tab0 AS cor0 WHERE NULL IS NULL
----
1663
1942
332

onlyif mysql # aggregate syntax: 
query I rowsort label-5444
SELECT DISTINCT COUNT( * ) + + MAX( ALL col0 ) AS col1 FROM tab2
----
78

skipif mysql # not compatible
query I rowsort label-5444
SELECT DISTINCT COUNT ( * ) + + MAX ( ALL col0 ) AS col1 FROM tab2
----
78

query I rowsort
SELECT + 93 * - col1 AS col0 FROM tab0
----
-1953
-7533
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-5446
SELECT COUNT( * ) * 33 * - ( - COUNT( * ) ) col0 FROM tab1
----
297

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5446
SELECT COUNT ( * ) * 33 * - ( - COUNT ( * ) ) col0 FROM tab1
----
297

query I rowsort
SELECT - col1 * - 43 FROM tab0
----
3483
43
903

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5448
SELECT ALL + ( + + CAST( NULL AS SIGNED ) ) FROM tab1 WHERE NOT - col0 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-5448
SELECT ALL + ( + + CAST ( NULL AS INTEGER ) ) FROM tab1 WHERE NOT - col0 IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5449
SELECT - col1 FROM tab0 AS cor0 WHERE - col1 = + CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query I rowsort label-5449
SELECT - col1 FROM tab0 AS cor0 WHERE - col1 = + CAST ( NULL AS REAL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5450
SELECT COUNT( * ) col0 FROM tab2 AS cor0 WHERE col1 BETWEEN NULL AND - - 70
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5450
SELECT COUNT ( * ) col0 FROM tab2 AS cor0 WHERE col1 BETWEEN NULL AND - - 70
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5451
SELECT + - CAST( - + 0 AS SIGNED ) * - CAST( NULL AS SIGNED ) + AVG ( DISTINCT - - CAST( NULL AS SIGNED ) ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5451
SELECT + - CAST ( - + 0 AS INTEGER ) * - CAST ( NULL AS INTEGER ) + AVG ( DISTINCT - - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( - col2 / + ( - 87 ) ) = NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5453
SELECT ALL + ( + 55 ) + COUNT( * ) AS col0, 13 FROM tab1 AS cor0
----
58
13

skipif mysql # not compatible
query II rowsort label-5453
SELECT ALL + ( + 55 ) + COUNT ( * ) AS col0, 13 FROM tab1 AS cor0
----
58
13

query I rowsort
SELECT DISTINCT - 17 + + + col2 AS col0 FROM tab0 AS cor0
----
-7
30
82

query I rowsort
SELECT 47 + - col0 FROM tab1
----
-38
-4
-44

query I rowsort
SELECT ALL - 30 + col0 - ( + col1 ) AS col0 FROM tab1
----
14
50
7

onlyif mysql # aggregate syntax: 
query I rowsort label-5457
SELECT COUNT( * ) FROM tab0 cor0 CROSS JOIN tab0 cor1
----
9

skipif mysql # not compatible
query I rowsort label-5457
SELECT COUNT ( * ) FROM tab0 cor0 CROSS JOIN tab0 cor1
----
9

query I rowsort
SELECT - - col1 - + col1 AS col0 FROM tab1 cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - 46 ) - - ( - + col2 ) col0 FROM tab2 AS cor0
----
-104
-69
-86

query I rowsort
SELECT ALL + ( 86 ) FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
86
86
86

onlyif mysql # aggregate syntax: 
query I rowsort label-5461
SELECT + MAX( - col1 ) * 47 - - - 19 AS col1 FROM tab1 AS cor0
----
-254

skipif mysql # not compatible
query I rowsort label-5461
SELECT + MAX ( - col1 ) * 47 - - - 19 AS col1 FROM tab1 AS cor0
----
-254

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5462
SELECT - + CAST( NULL AS SIGNED ) * 80 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5462
SELECT - + CAST ( NULL AS INTEGER ) * 80 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col2 + + + col2 AS col1 FROM tab0 WHERE NULL IS NULL
----
198
20
94

onlyif mysql # aggregate syntax: 
query I rowsort label-5464
SELECT DISTINCT SUM( - 68 ) AS col2 FROM tab0
----
-204

skipif mysql # not compatible
query I rowsort label-5464
SELECT DISTINCT SUM ( - 68 ) AS col2 FROM tab0
----
-204

onlyif mysql # aggregate syntax: 
query I rowsort label-5465
SELECT DISTINCT MIN( - 93 ) FROM tab1
----
-93

skipif mysql # not compatible
query I rowsort label-5465
SELECT DISTINCT MIN ( - 93 ) FROM tab1
----
-93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5466
SELECT - col2 AS col0 FROM tab2 AS cor0 WHERE NOT - 43 * CAST( NULL AS SIGNED ) + - + col2 * + col1 <= + - col0 + + col1 + col1 * ( + 57 )
----

skipif mysql # not compatible
query I rowsort label-5466
SELECT - col2 AS col0 FROM tab2 AS cor0 WHERE NOT - 43 * CAST ( NULL AS INTEGER ) + - + col2 * + col1 <= + - col0 + + col1 + col1 * ( + 57 )
----

query I rowsort
SELECT ALL + col1 * - - col0 AS col1 FROM tab0 cor0
----
1215
1827
97

onlyif mysql # aggregate syntax: 
query I rowsort label-5468
SELECT SUM( + + col2 ) AS col0 FROM tab1 AS cor0
----
223

skipif mysql # not compatible
query I rowsort label-5468
SELECT SUM ( + + col2 ) AS col0 FROM tab1 AS cor0
----
223

query II rowsort
SELECT + - 71 * + - 33 AS col2, 76 * - + ( - + col2 ) AS col2 FROM tab1 AS cor0
----
2343
4484
2343
5168
2343
7296

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col1 = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5471
SELECT ALL + CAST( NULL AS SIGNED ) * + col1 - - col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5471
SELECT ALL + CAST ( NULL AS INTEGER ) * + col1 - - col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5472
SELECT ALL * FROM tab0 AS cor0 WHERE col0 * - col2 * col2 * 61 * - col1 * - + col0 * CAST( NULL AS SIGNED ) BETWEEN - 18 AND + + col1
----

skipif mysql # not compatible
query III rowsort label-5472
SELECT ALL * FROM tab0 AS cor0 WHERE col0 * - col2 * col2 * 61 * - col1 * - + col0 * CAST ( NULL AS INTEGER ) BETWEEN - 18 AND + + col1
----

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT + 84 = 9
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT col2 * + + col2 AS col2 FROM tab2
----
1600
3364
529

onlyif mysql # aggregate syntax: 
query I rowsort label-5475
SELECT - - COUNT( * ) FROM tab0 WHERE NOT NULL BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-5475
SELECT - - COUNT ( * ) FROM tab0 WHERE NOT NULL BETWEEN NULL AND NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5476
SELECT + COUNT( 88 ) AS col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5476
SELECT + COUNT ( 88 ) AS col0 FROM tab2 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 27 col1 FROM tab2 AS cor0
----
27
27
27

query I rowsort
SELECT col0 FROM tab0 cor0 WHERE + 39 + - 69 IS NOT NULL
----
15
87
97

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col2 <= ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 71 + col2 col2 FROM tab0
----
118
170
81

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - col0 NOT IN ( col0 / - 93, ( - col1 ) )
----

query I rowsort
SELECT DISTINCT + col2 + + col1 * + col0 * + 23 * col1 FROM tab1
----
230004
4623505
48934

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 19 * - 86 * - ( + col2 ) * + col1 col0 FROM tab0
----
161766
343140
6220638

onlyif mysql # aggregate syntax: 
query I rowsort label-5484
SELECT ( + - MIN( + col1 ) ) FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-5484
SELECT ( + - MIN ( + col1 ) ) FROM tab0
----
-1

query I rowsort
SELECT ALL col2 * 31 * + - 82 FROM tab2
----
-101680
-147436
-58466

query I rowsort
SELECT col2 * - - col1 AS col0 FROM tab2
----
1173
3080
3886

query I rowsort
SELECT DISTINCT col0 * 89 * - col2 FROM tab2
----
-227840
-387150
-94162

query III rowsort
SELECT * FROM tab2 WHERE + + col2 >= + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + + col1 + + 59 AS col0 FROM tab0 AS cor0
----
140
60
80

query I rowsort
SELECT + 67 FROM tab0 cor0 WHERE col2 BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL + col2 - + 42 FROM tab2
----
-19
-2
16

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE ( NULL ) = ( + + col2 )
----

query I rowsort
SELECT ALL - + 65 - + 10 FROM tab2 AS cor0
----
-75
-75
-75

onlyif mysql # DIV for integer division: 
query I rowsort label-5494
SELECT DISTINCT + col2 DIV + - ( - col0 ) FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-5494
SELECT DISTINCT + col2 / + - ( - col0 ) FROM tab2 cor0
----
0

query I rowsort
SELECT col2 AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-5496
SELECT + - 79 * + - 92 + + COUNT( * ) AS col2 FROM tab0 AS cor0
----
7271

skipif mysql # not compatible
query I rowsort label-5496
SELECT + - 79 * + - 92 + + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
7271

query I rowsort
SELECT DISTINCT - 73 FROM tab2 cor0
----
-73

query I rowsort
SELECT - 50 * + 40 AS col2 FROM tab0
----
-2000
-2000
-2000

query I rowsort
SELECT DISTINCT 16 * - col1 AS col2 FROM tab0
----
-1296
-16
-336

onlyif mysql # aggregate syntax: 
query I rowsort label-5500
SELECT ALL SUM( + - col1 ) AS col1 FROM tab2
----
-195

skipif mysql # not compatible
query I rowsort label-5500
SELECT ALL SUM ( + - col1 ) AS col1 FROM tab2
----
-195

query I rowsort
SELECT ALL - col1 * - 22 * - col0 AS col1 FROM tab2
----
-108416
-110550
-51612

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5502
SELECT DISTINCT - 9 + 85 + - - 99 - - 50 - - 22 / - col0 + col1 AS col2 FROM tab1 WHERE + CAST( NULL AS SIGNED ) <= + col0
----

skipif mysql # not compatible
query I rowsort label-5502
SELECT DISTINCT - 9 + 85 + - - 99 - - 50 - - 22 / - col0 + col1 AS col2 FROM tab1 WHERE + CAST ( NULL AS INTEGER ) <= + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5503
SELECT DISTINCT + - CAST( NULL AS SIGNED ) AS col2, - col1 FROM tab0 AS cor0
----
NULL
-1
NULL
-21
NULL
-81

skipif mysql # not compatible
query II rowsort label-5503
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) AS col2, - col1 FROM tab0 AS cor0
----
NULL
-1
NULL
-21
NULL
-81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 76 AS col1, col1 * col2 col0 FROM tab0 AS cor0
----
76
210
76
3807
76
99

onlyif mysql # aggregate syntax: 
query I rowsort label-5505
SELECT DISTINCT - 97 - + COUNT( * ) AS col1 FROM tab0
----
-100

skipif mysql # not compatible
query I rowsort label-5505
SELECT DISTINCT - 97 - + COUNT ( * ) AS col1 FROM tab0
----
-100

query I rowsort
SELECT DISTINCT - col2 FROM tab0 WHERE ( - 57 ) IN ( + 46 )
----

query I rowsort
SELECT - col2 AS col0 FROM tab0 WHERE NOT 62 + - col2 = ( NULL )
----

query I rowsort
SELECT DISTINCT 66 FROM tab0 WHERE col2 * col0 <> ( 83 )
----
66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5509
SELECT - CAST( NULL AS SIGNED ) * col2 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5509
SELECT - CAST ( NULL AS INTEGER ) * col2 AS col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col1 + 64 FROM tab2
----
115
131
141

query I rowsort
SELECT 0 + col2 AS col2 FROM tab2
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-5512
SELECT DISTINCT + ( - ( MIN( ALL col0 ) ) ) AS col0 FROM tab2
----
-46

skipif mysql # not compatible
query I rowsort label-5512
SELECT DISTINCT + ( - ( MIN ( ALL col0 ) ) ) AS col0 FROM tab2
----
-46

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5513
SELECT ALL CAST( + col2 AS DECIMAL ) FROM tab1 WHERE - 30 BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query I rowsort label-5513
SELECT ALL CAST ( + col2 AS REAL ) FROM tab1 WHERE - 30 BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL - 17 * col2 AS col0 FROM tab0
----
-1683
-170
-799

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5515
SELECT CAST( col2 AS SIGNED ) AS col2 FROM tab0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-5515
SELECT CAST ( col2 AS INTEGER ) AS col2 FROM tab0
----
10
47
99

query III rowsort
SELECT * FROM tab0 WHERE ( 59 ) <> ( - col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-5517
SELECT DISTINCT + MAX( DISTINCT + col0 ) col0 FROM tab0
----
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5517
SELECT DISTINCT + MAX ( DISTINCT + col0 ) col0 FROM tab0
----
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 94 * + col1 col2 FROM tab2
----
-4794
-6298
-7238

onlyif mysql # aggregate syntax: 
query I rowsort label-5519
SELECT DISTINCT COUNT( * ) AS col2 FROM tab2 WHERE NOT - col1 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-5519
SELECT DISTINCT COUNT ( * ) AS col2 FROM tab2 WHERE NOT - col1 IS NULL
----
3

query I rowsort
SELECT DISTINCT - 40 + col1 FROM tab1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL - col0 * + 34 FROM tab1
----
-1734
-2890
-3094

query I rowsort
SELECT DISTINCT ( + 52 ) * - 91 AS col2 FROM tab1
----
-4732

query I rowsort
SELECT DISTINCT + 7 * ( col2 ) FROM tab0
----
329
693
70

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 44 col0 FROM tab2
----
44
44
44

query I rowsort
SELECT col2 * + col2 - - 18 FROM tab0
----
118
2227
9819

query I rowsort
SELECT DISTINCT + col1 * 9 + col0 FROM tab1
----
130
177
514

onlyif mysql # aggregate syntax: 
query I rowsort label-5527
SELECT 9 * + COUNT( * ) FROM tab1
----
27

skipif mysql # not compatible
query I rowsort label-5527
SELECT 9 * + COUNT ( * ) FROM tab1
----
27

query I rowsort
SELECT DISTINCT + col2 - 13 FROM tab0
----
-3
34
86

onlyif mysql # aggregate syntax: 
query I rowsort label-5529
SELECT ALL COUNT( DISTINCT + 28 ) - 6 FROM tab1
----
-5

skipif mysql # not compatible
query I rowsort label-5529
SELECT ALL COUNT ( DISTINCT + 28 ) - 6 FROM tab1
----
-5

query I rowsort
SELECT ALL + col1 FROM tab0 WHERE + 91 / - col0 IS NOT NULL
----
1
21
81

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5531
SELECT + ( CAST( NULL AS DECIMAL ) ) * 2 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5531
SELECT + ( CAST ( NULL AS REAL ) ) * 2 AS col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT + col2 * + col2 + 48 FROM tab2 AS cor0
----
1648
3412
577

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL >= + 6
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * col2 + col1 col0 FROM tab0 AS cor0
----
-189
-3726
-98

onlyif mysql # DIV for integer division: 
query I rowsort label-5535
SELECT ( + col0 ) DIV - col1 + + 49 FROM tab2 AS cor0
----
48
49
49

skipif mysql # not compatible
query I rowsort label-5535
SELECT ( + col0 ) / - col1 + + 49 FROM tab2 AS cor0
----
48
49
49

onlyif mysql # aggregate syntax: 
query I rowsort label-5536
SELECT + MAX( + ( 70 ) ) FROM tab0 AS cor0
----
70

skipif mysql # not compatible
query I rowsort label-5536
SELECT + MAX ( + ( 70 ) ) FROM tab0 AS cor0
----
70

query III rowsort
SELECT ALL * FROM tab0 WHERE col1 NOT BETWEEN - col0 AND + col0 / + col1
----
15
81
47
87
21
10

query III rowsort
SELECT * FROM tab2 WHERE 22 IS NULL
----

query I rowsort
SELECT ALL col1 FROM tab1 WHERE NOT ( col2 ) * 70 < NULL
----

query I rowsort
SELECT ALL 74 * 91 FROM tab1
----
6734
6734
6734

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT 53 + col2 * + col0 NOT IN ( col2 )
----

query I rowsort
SELECT + col2 * + ( - col0 + + col1 ) FROM tab0 AS cor0
----
-660
-9504
3102

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5543
SELECT DISTINCT - CAST( + col0 AS SIGNED ) FROM tab1 cor0
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-5543
SELECT DISTINCT - CAST ( + col0 AS INTEGER ) FROM tab1 cor0
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-5544
SELECT + COUNT( 11 ) AS col1 FROM tab0 AS cor0 WHERE NOT - col1 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-5544
SELECT + COUNT ( 11 ) AS col1 FROM tab0 AS cor0 WHERE NOT - col1 IS NOT NULL
----
0

query I rowsort
SELECT ( 93 ) * col1 AS col1 FROM tab1 AS cor0
----
1302
4371
465

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + ( ( - 76 ) ) BETWEEN col0 AND ( NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - 26 * + col2 AS col2 FROM tab0 AS cor0
----
-1222
-2574
-260

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col2 * 22 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col0 * - col1 NOT BETWEEN NULL AND col0
----

query I rowsort
SELECT col0 * + 68 AS col1 FROM tab2 AS cor0
----
3128
4352
5100

query I rowsort
SELECT ALL + col0 * - ( col1 ) AS col1 FROM tab2 AS cor0
----
-2346
-4928
-5025

query I rowsort
SELECT DISTINCT 25 AS col2 FROM tab2 WHERE col0 IS NOT NULL
----
25

query I rowsort
SELECT ALL col0 * 43 * col2 FROM tab2
----
110080
187050
45494

onlyif mysql # aggregate syntax: 
query I rowsort label-5554
SELECT COUNT( * ) AS col0 FROM tab0 WHERE NOT col2 BETWEEN NULL AND - 95 + - col0
----
3

skipif mysql # not compatible
query I rowsort label-5554
SELECT COUNT ( * ) AS col0 FROM tab0 WHERE NOT col2 BETWEEN NULL AND - 95 + - col0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * col2 col0 FROM tab2 WHERE NOT + col0 * col1 BETWEEN + col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5556
SELECT - COUNT( * ) * 72 AS col1 FROM tab0 WHERE NOT - col0 NOT BETWEEN NULL AND ( + col2 * - ( + ( ( + 61 ) ) ) + 91 )
----
0

skipif mysql # not compatible
query I rowsort label-5556
SELECT - COUNT ( * ) * 72 AS col1 FROM tab0 WHERE NOT - col0 NOT BETWEEN NULL AND ( + col2 * - ( + ( ( + 61 ) ) ) + 91 )
----
0

query I rowsort
SELECT + col1 FROM tab0 WHERE NOT col2 NOT BETWEEN + col1 AND 51
----

query III rowsort
SELECT * FROM tab2 WHERE NOT - col0 / col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-5559
SELECT + MIN( - 73 ) FROM tab1
----
-73

skipif mysql # not compatible
query I rowsort label-5559
SELECT + MIN ( - 73 ) FROM tab1
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-5560
SELECT + + MIN( + + col1 ) col0 FROM tab1 cor0
----
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5560
SELECT + + MIN ( + + col1 ) col0 FROM tab1 cor0
----
5

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) <= ( 86 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL < ( - 18 )
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT + col1 > 55 / ( col2 / 54 ) + - ( + 79 )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + col1 * + 19 < 80
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * 20 col1 FROM tab1
----
-1020
-1700
-1820

query IIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab1 cor1 WHERE NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5567
SELECT - 13 DIV + 36 FROM tab1, tab1 AS cor0 WHERE 9 NOT IN ( 5 + + 97 * 61 )
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

skipif mysql # not compatible
query I rowsort label-5567
SELECT - 13 / + 36 FROM tab1, tab1 AS cor0 WHERE 9 NOT IN ( 5 + + 97 * 61 )
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5568
SELECT - ( col0 ) * + + CAST( NULL AS DECIMAL ) * col1 + + col0 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5568
SELECT - ( col0 ) * + + CAST ( NULL AS REAL ) * col1 + + col0 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL ( + 52 ) FROM tab0 AS cor0
----
52
52
52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col0 + + 68 col2 FROM tab2 AS cor0
----
-7
22
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 56 AS col2, - 30 * + col0 col1 FROM tab1 AS cor0
----
56
-1530
56
-2550
56
-2730

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( - col2 + + col2 + ( - 27 ) ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT col0 AS col1 FROM tab1 AS cor0 WHERE NULL >= ( 5 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + 67 + col0 col2 FROM tab0 AS cor0
----
241
261
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 13 * - 63 * + col0 + 20 + col0 col1 FROM tab2 AS cor0
----
37740
52500
61520

onlyif mysql # aggregate syntax: 
query I rowsort label-5576
SELECT ALL - 24 + + - COUNT( * ) AS col1 FROM tab0 cor0
----
-27

skipif mysql # not compatible
query I rowsort label-5576
SELECT ALL - 24 + + - COUNT ( * ) AS col1 FROM tab0 cor0
----
-27

query I rowsort
SELECT DISTINCT - col0 + + col0 * col0 AS col0 FROM tab1 WHERE + col2 + - 17 BETWEEN col1 + - col0 AND col0 + + col0
----
2550
7140
8190

onlyif mysql # DIV for integer division: 
query I rowsort label-5578
SELECT DISTINCT 51 DIV + 13 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-5578
SELECT DISTINCT 51 / + 13 FROM tab0
----
3

query I rowsort
SELECT DISTINCT - ( + + 5 ) FROM tab0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5580
SELECT - COUNT( * ) * + MAX( ALL - 47 ) FROM tab1
----
141

skipif mysql # not compatible
query I rowsort label-5580
SELECT - COUNT ( * ) * + MAX ( ALL - 47 ) FROM tab1
----
141

onlyif mysql # aggregate syntax: 
query I rowsort label-5581
SELECT DISTINCT 18 - COUNT( * ) + + 8 AS col1 FROM tab0
----
23

skipif mysql # not compatible
query I rowsort label-5581
SELECT DISTINCT 18 - COUNT ( * ) + + 8 AS col1 FROM tab0
----
23

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5582
SELECT * FROM tab0 WHERE - + CAST( NULL AS SIGNED ) + col0 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-5582
SELECT * FROM tab0 WHERE - + CAST ( NULL AS INTEGER ) + col0 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5583
SELECT - CAST( + 46 AS SIGNED ) * COUNT( * ) AS col1 FROM tab0
----
-138

skipif mysql # not compatible
query I rowsort label-5583
SELECT - CAST ( + 46 AS INTEGER ) * COUNT ( * ) AS col1 FROM tab0
----
-138

query I rowsort
SELECT ALL + col1 - 18 AS col2 FROM tab2
----
33
49
59

query I rowsort
SELECT ALL ( - 84 ) AS col0 FROM tab1
----
-84
-84
-84

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( - col2 * col2 ) NOT BETWEEN ( + - col2 ) AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL col0 AS col1 FROM tab1 AS cor0 WHERE ( 71 ) IS NULL
----

query I rowsort
SELECT ALL - + col2 AS col1 FROM tab2 AS cor0 WHERE NOT NULL = 99
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5589
SELECT ALL - + MAX( DISTINCT + col1 ) FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-5589
SELECT ALL - + MAX ( DISTINCT + col1 ) FROM tab0 AS cor0
----
-81

query I rowsort
SELECT 66 * + col0 * + col2 + - 6 * - + 11 + col1 AS col2 FROM tab2 cor0
----
169103
287233
69945

query I rowsort
SELECT ALL - 81 * - col1 * + 16 * - col2 FROM tab1 cor0
----
-1741824
-382320
-4142016

query I rowsort
SELECT DISTINCT + col0 * - + col1 AS col1 FROM tab1 cor0
----
-425
-4277
-714

query I rowsort
SELECT DISTINCT + 59 * + - col1 * - col1 * - col1 * - - 5 AS col1 FROM tab0
----
-156775095
-2731995
-295

onlyif mysql # aggregate syntax: 
query I rowsort label-5594
SELECT ( + COUNT( * ) ) * + 21 AS col1 FROM tab0
----
63

skipif mysql # not compatible
query I rowsort label-5594
SELECT ( + COUNT ( * ) ) * + 21 AS col1 FROM tab0
----
63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5595
SELECT ALL - col2 + col2 FROM tab0 WHERE NOT NULL <= col2 + - - CAST( - 70 AS SIGNED ) * - ( 50 )
----

skipif mysql # not compatible
query I rowsort label-5595
SELECT ALL - col2 + col2 FROM tab0 WHERE NOT NULL <= col2 + - - CAST ( - 70 AS INTEGER ) * - ( 50 )
----

query II rowsort
SELECT col0 * + col1 AS col0, 46 AS col0 FROM tab0
----
1215
46
1827
46
97
46

onlyif mysql # aggregate syntax: 
query I rowsort label-5597
SELECT + ( SUM( DISTINCT - col1 ) ) FROM tab0
----
-103

skipif mysql # not compatible
query I rowsort label-5597
SELECT + ( SUM ( DISTINCT - col1 ) ) FROM tab0
----
-103

query I rowsort
SELECT ( + 70 ) * + col0 FROM tab2
----
3220
4480
5250

query I rowsort
SELECT + col1 * - - col1 FROM tab1 WHERE NOT + 27 IS NULL
----
196
2209
25

query II rowsort
SELECT ALL + col2, col2 * 79 FROM tab2
----
23
1817
40
3160
58
4582

onlyif mysql # aggregate syntax: 
query I rowsort label-5601
SELECT MAX( - 95 ) FROM tab1
----
-95

skipif mysql # not compatible
query I rowsort label-5601
SELECT MAX ( - 95 ) FROM tab1
----
-95

query I rowsort
SELECT ALL 33 FROM tab1 WHERE 73 * - col2 IS NULL
----

query I rowsort
SELECT + col0 + + - col1 * + 95 FROM tab0 WHERE NOT col1 IS NOT NULL
----

query II rowsort
SELECT ALL - col1 AS col1, col1 + + col0 AS col0 FROM tab0
----
-1
98
-21
108
-81
96

onlyif mysql # aggregate syntax: 
query I rowsort label-5605
SELECT - MAX( DISTINCT - + 68 ) FROM tab1
----
68

skipif mysql # not compatible
query I rowsort label-5605
SELECT - MAX ( DISTINCT - + 68 ) FROM tab1
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-5606
SELECT ALL SUM( + 24 ) AS col1 FROM tab0
----
72

skipif mysql # not compatible
query I rowsort label-5606
SELECT ALL SUM ( + 24 ) AS col1 FROM tab0
----
72

query II rowsort
SELECT ALL + col2 + - + col0 * + col0 * + + col2 AS col1, + col1 AS col2 FROM tab1 AS cor0
----
-249600
14
-426216
5
-563040
47

query I rowsort
SELECT DISTINCT + - col2 AS col1 FROM tab1 AS cor0 WHERE 72 IS NULL
----

query II rowsort
SELECT + col1 AS col0, col1 FROM tab1 AS cor0
----
14
14
47
47
5
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5610
SELECT 88 + - ( + - COUNT( * ) ) * - + ( + CAST( - 93 AS SIGNED ) ) FROM tab1 AS cor0
----
367

skipif mysql # not compatible
query I rowsort label-5610
SELECT 88 + - ( + - COUNT ( * ) ) * - + ( + CAST ( - 93 AS INTEGER ) ) FROM tab1 AS cor0
----
367

onlyif mysql # aggregate syntax: 
query I rowsort label-5611
SELECT - COUNT( * ) + 53 * + 24 + - MAX( ALL - col1 ) AS col1 FROM tab0 cor0
----
1270

skipif mysql # not compatible
query I rowsort label-5611
SELECT - COUNT ( * ) + 53 * + 24 + - MAX ( ALL - col1 ) AS col1 FROM tab0 cor0
----
1270

query I rowsort
SELECT DISTINCT - 17 + - + 83 - + + 16 FROM tab0 AS cor0
----
-116

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 71 + + col2 col0 FROM tab2
----
111
129
94

query I rowsort
SELECT col1 + + 79 FROM tab0
----
100
160
80

onlyif mysql # aggregate syntax: 
query I rowsort label-5615
SELECT DISTINCT - COUNT( + 48 ) AS col2 FROM tab1 WHERE ( - col2 * - - col0 - col2 ) > - col0
----
0

skipif mysql # not compatible
query I rowsort label-5615
SELECT DISTINCT - COUNT ( + 48 ) AS col2 FROM tab1 WHERE ( - col2 * - - col0 - col2 ) > - col0
----
0

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-5616
SELECT DISTINCT CAST( - AVG ( ALL + CAST( NULL AS DECIMAL ) ) AS SIGNED ) AS col0, + 77 col0 FROM tab2
----
NULL
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5616
SELECT DISTINCT CAST ( - AVG ( ALL + CAST ( NULL AS REAL ) ) AS INTEGER ) AS col0, + 77 col0 FROM tab2
----
NULL
77

query I rowsort
SELECT col0 FROM tab1 cor0 WHERE ( NOT - 51 IN ( - + ( + 82 ) ) )
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-5618
SELECT DISTINCT - COUNT( * ) + + + 59 FROM tab0 AS cor0 WHERE NOT 36 IS NOT NULL
----
59

skipif mysql # not compatible
query I rowsort label-5618
SELECT DISTINCT - COUNT ( * ) + + + 59 FROM tab0 AS cor0 WHERE NOT 36 IS NOT NULL
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-5619
SELECT MAX( - col0 ) AS col0 FROM tab2 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-5619
SELECT MAX ( - col0 ) AS col0 FROM tab2 AS cor0
----
-46

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5620
SELECT + 0 DIV 68 * CAST( + col2 AS SIGNED ) FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5620
SELECT + 0 / 68 * CAST ( + col2 AS INTEGER ) FROM tab0 AS cor0
----
0
0
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NOT - - col0 > + 38 + + - col0 )
----

query I rowsort
SELECT DISTINCT + 38 + 90 * + + col0 FROM tab0 AS cor0
----
1388
7868
8768

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5623
SELECT - col0 - - - CAST( - col1 AS SIGNED ) * + col1 * - 58 * + + col0 * col1 FROM tab1 AS cor0
----
-547977885
-616335
-8116803

skipif mysql # not compatible
query I rowsort label-5623
SELECT - col0 - - - CAST ( - col1 AS INTEGER ) * + col1 * - 58 * + + col0 * col1 FROM tab1 AS cor0
----
-547977885
-616335
-8116803

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5624
SELECT DISTINCT ( - - CAST( - + ( + col0 ) AS SIGNED ) ) FROM tab2 AS cor0 WHERE col1 IS NOT NULL
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-5624
SELECT DISTINCT ( - - CAST ( - + ( + col0 ) AS INTEGER ) ) FROM tab2 AS cor0 WHERE col1 IS NOT NULL
----
-46
-64
-75

query III rowsort
SELECT * FROM tab1 cor0 WHERE col1 < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5626
SELECT CAST( NULL AS SIGNED ) * - + col1 / CAST( + col1 AS SIGNED ) - + + col1 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5626
SELECT CAST ( NULL AS INTEGER ) * - + col1 / CAST ( + col1 AS INTEGER ) - + + col1 AS col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT - col1 - - 9 FROM tab1
----
-38
-5
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 col1, col1 - col0 AS col2 FROM tab0 WHERE NULL IS NULL
----
-15
66
-87
-66
-97
-96

query I rowsort
SELECT + 56 - + col2 FROM tab0
----
-43
46
9

query I rowsort
SELECT DISTINCT - col2 * - - col2 + - 53 AS col0 FROM tab2 WHERE - + col0 * + col1 + + + col2 >= - col1
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5631
SELECT DISTINCT 75 - + CAST( NULL AS SIGNED ) / - COUNT( * ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5631
SELECT DISTINCT 75 - + CAST ( NULL AS INTEGER ) / - COUNT ( * ) AS col0 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5632
SELECT ALL + 63 - + COUNT( * ) col1 FROM tab0
----
60

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5632
SELECT ALL + 63 - + COUNT ( * ) col1 FROM tab0
----
60

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + 65 BETWEEN + col1 AND NULL
----
64
77
40
75
67
58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5634
SELECT COUNT( * ) DIV - COUNT( * ) + - MIN( DISTINCT + ( - + ( col2 ) ) ) AS col2 FROM tab1 AS cor0
----
95

skipif mysql # not compatible
query I rowsort label-5634
SELECT COUNT ( * ) / - COUNT ( * ) + - MIN ( DISTINCT + ( - + ( col2 ) ) ) AS col2 FROM tab1 AS cor0
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-5635
SELECT - 37 * + + COUNT( * ) FROM tab0 AS cor0
----
-111

skipif mysql # not compatible
query I rowsort label-5635
SELECT - 37 * + + COUNT ( * ) FROM tab0 AS cor0
----
-111

query I rowsort
SELECT DISTINCT + 32 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
32

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL = col0
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL IN ( 43 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5640
SELECT - CAST( NULL AS SIGNED ) * COUNT( + col2 ) FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5640
SELECT - CAST ( NULL AS INTEGER ) * COUNT ( + col2 ) FROM tab0 cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5641
SELECT - SUM( DISTINCT + col0 ) FROM tab2 AS cor0
----
-185

skipif mysql # not compatible
query I rowsort label-5641
SELECT - SUM ( DISTINCT + col0 ) FROM tab2 AS cor0
----
-185

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT ( NULL ) > + - 30
----

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NULL BETWEEN ( NULL ) AND 97 + - 12 + - col2 / ( + + 8 ) - - 47
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5644
SELECT ALL CAST( + + COUNT( * ) AS SIGNED ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5644
SELECT ALL CAST ( + + COUNT ( * ) AS INTEGER ) FROM tab0 AS cor0
----
3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col2 * + col0 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + 96 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5647
SELECT DISTINCT + ( MIN( + col0 ) ) AS col1, 3 DIV - SUM( - + col0 ) * - 35 AS col2 FROM tab1
----
51
0

skipif mysql # not compatible
query II rowsort label-5647
SELECT DISTINCT + ( MIN ( + col0 ) ) AS col1, 3 / - SUM ( - + col0 ) * - 35 AS col2 FROM tab1
----
51
0

query I rowsort
SELECT - col0 + + 9 * - - 92 * col0 FROM tab0
----
12405
71949
80219

onlyif mysql # aggregate syntax: 
query I rowsort label-5649
SELECT DISTINCT 20 * - - COUNT( * ) FROM tab1
----
60

skipif mysql # not compatible
query I rowsort label-5649
SELECT DISTINCT 20 * - - COUNT ( * ) FROM tab1
----
60

query I rowsort
SELECT DISTINCT col2 + + 66 AS col1 FROM tab2 AS cor0
----
106
124
89

query I rowsort
SELECT DISTINCT 49 + - col0 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5652
SELECT ALL COUNT( * ) + + 85 FROM tab1 AS cor0
----
88

skipif mysql # not compatible
query I rowsort label-5652
SELECT ALL COUNT ( * ) + + 85 FROM tab1 AS cor0
----
88

query I rowsort
SELECT DISTINCT - 10 + col2 FROM tab0 AS cor0
----
0
37
89

query I rowsort
SELECT ALL - 60 + + col1 AS col1 FROM tab1 cor0
----
-13
-46
-55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5655
SELECT CAST( NULL AS SIGNED ) AS col0 FROM tab2 cor0 CROSS JOIN tab2 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-5655
SELECT CAST ( NULL AS INTEGER ) AS col0 FROM tab2 cor0 CROSS JOIN tab2 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # aggregate syntax: 
query I rowsort label-5656
SELECT ALL COUNT( * ) * 57 FROM tab2 AS cor0
----
171

skipif mysql # not compatible
query I rowsort label-5656
SELECT ALL COUNT ( * ) * 57 FROM tab2 AS cor0
----
171

onlyif mysql # aggregate syntax: 
query I rowsort label-5657
SELECT + + MIN( + ( - col2 ) ) + - ( + 47 ) + - - ( + 57 ) FROM tab2 AS cor0
----
-48

skipif mysql # not compatible
query I rowsort label-5657
SELECT + + MIN ( + ( - col2 ) ) + - ( + 47 ) + - - ( + 57 ) FROM tab2 AS cor0
----
-48

query I rowsort
SELECT ALL - col0 * + - 56 FROM tab1 AS cor0
----
2856
4760
5096

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5659
SELECT ALL + ( - + CAST( NULL AS SIGNED ) ) * + 1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5659
SELECT ALL + ( - + CAST ( NULL AS INTEGER ) ) * + 1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col1 * + ( col1 ) AS col0 FROM tab1 AS cor0
----
196
2209
25

query I rowsort
SELECT - - ( col0 ) + col1 FROM tab1 AS cor0
----
138
65
90

onlyif mysql # aggregate syntax: 
query II rowsort label-5662
SELECT + COUNT( * ), COUNT( * ) FROM tab2 cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-5662
SELECT + COUNT ( * ), COUNT ( * ) FROM tab2 cor0
----
3
3

onlyif mysql # aggregate syntax: 
query III rowsort label-5663
SELECT DISTINCT + COUNT( * ) col1, - COUNT( * ) AS col1, - 29 FROM tab0, tab2 AS cor0
----
9
-9
-29

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort label-5663
SELECT DISTINCT + COUNT ( * ) col1, - COUNT ( * ) AS col1, - 29 FROM tab0, tab2 AS cor0
----
9
-9
-29

query I rowsort
SELECT col2 * col1 * + col2 AS col0 FROM tab1 WHERE ( - col0 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5665
SELECT + SUM( col0 ) AS col1 FROM tab2
----
185

skipif mysql # not compatible
query I rowsort label-5665
SELECT + SUM ( col0 ) AS col1 FROM tab2
----
185

query I rowsort
SELECT ALL 57 - + + ( - + col2 ) + - col0 FROM tab2
----
33
34
40

query I rowsort
SELECT 86 - + - 56 AS col0 FROM tab1
----
142
142
142

query I rowsort
SELECT 93 - col1 AS col1 FROM tab0
----
12
72
92

onlyif mysql # DIV for integer division: 
query I rowsort label-5669
SELECT DISTINCT + col1 DIV ( - - 78 ) AS col0 FROM tab0 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-5669
SELECT DISTINCT + col1 / ( - - 78 ) AS col0 FROM tab0 AS cor0
----
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5670
SELECT ALL + - MIN( - col0 ) FROM tab2 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-5670
SELECT ALL + - MIN ( - col0 ) FROM tab2 AS cor0
----
75

query I rowsort
SELECT - 0 * - 17 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5672
SELECT + ( - COUNT( ALL col1 ) ), ( - COUNT( * ) ) AS col0 FROM tab1
----
-3
-3

skipif mysql # not compatible
query II rowsort label-5672
SELECT + ( - COUNT ( ALL col1 ) ), ( - COUNT ( * ) ) AS col0 FROM tab1
----
-3
-3

query II rowsort
SELECT col0 AS col0, col1 AS col0 FROM tab1
----
51
14
85
5
91
47

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col1 + col0 + - col0 + + + 26 + - col0 <= col0 * + 4 * + 76
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT DISTINCT 42 AS col0, + 91 FROM tab1 AS cor0
----
42
91

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT ( NULL ) NOT BETWEEN + + col2 AND + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5677
SELECT + + COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NOT col2 IN ( - 31, + col0 * col0, - col2, - 25 )
----
3

skipif mysql # not compatible
query I rowsort label-5677
SELECT + + COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NOT col2 IN ( - 31, + col0 * col0, - col2, - 25 )
----
3

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5678
SELECT ALL CAST( NULL AS DECIMAL ) AS col1 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5678
SELECT ALL CAST ( NULL AS REAL ) AS col1 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col1 AS col0 FROM tab0 AS cor0 WHERE NOT + col2 + + + col2 IS NULL
----
1
21
81

onlyif mysql # DIV for integer division: 
query I rowsort label-5680
SELECT DISTINCT col0 DIV col0 + - - col0 * - + col0 + 26 AS col2 FROM tab1 AS cor0
----
-2574
-7198
-8254

skipif mysql # not compatible
query I rowsort label-5680
SELECT DISTINCT col0 / col0 + - - col0 * - + col0 + 26 AS col2 FROM tab1 AS cor0
----
-2574
-7198
-8254

query II rowsort
SELECT col2, col1 AS col0 FROM tab2 AS cor0
----
23
51
40
77
58
67

onlyif mysql # aggregate syntax: 
query II rowsort label-5682
SELECT DISTINCT + 5, - COUNT( DISTINCT - 95 ) AS col1 FROM tab0 AS cor0
----
5
-1

skipif mysql # not compatible
query II rowsort label-5682
SELECT DISTINCT + 5, - COUNT ( DISTINCT - 95 ) AS col1 FROM tab0 AS cor0
----
5
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5683
SELECT ALL COUNT( + - 35 ) AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-5683
SELECT ALL COUNT ( + - 35 ) AS col1 FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5684
SELECT DISTINCT MAX( DISTINCT + 48 ) FROM tab2
----
48

skipif mysql # not compatible
query I rowsort label-5684
SELECT DISTINCT MAX ( DISTINCT + 48 ) FROM tab2
----
48

query I rowsort
SELECT + col0 * + col0 FROM tab0 WHERE NULL NOT IN ( - + col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - 74 * 45 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE + - col0 BETWEEN NULL AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL NOT IN ( - 37 / - col0 * + col1, + col1, - 2 - + col2, + col1 )
----

query I rowsort
SELECT DISTINCT - col1 * col1 AS col2 FROM tab1 AS cor0 WHERE ( + col1 ) NOT BETWEEN + col0 AND - 49
----
-196
-2209
-25

query I rowsort
SELECT DISTINCT - ( + 36 ) FROM tab1 AS cor0
----
-36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5691
SELECT ALL + ( + - col2 ) / - - 30 + - - col2 * + ( CAST( NULL AS SIGNED ) ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5691
SELECT ALL + ( + - col2 ) / - - 30 + - - col2 * + ( CAST ( NULL AS INTEGER ) ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NUL