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
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-5692
SELECT + col2 * - - col1 + col0 + ( col1 ) DIV - col2 * col1, - 45 AS col0 FROM tab1 cor0
----
1395
-45
3287
-45
380
-45

skipif mysql # not compatible
query II rowsort label-5692
SELECT + col2 * - - col1 + col0 + ( col1 ) / - col2 * col1, - 45 AS col0 FROM tab1 cor0
----
1395
-45
3287
-45
380
-45

query I rowsort
SELECT ALL + col1 + - 17 FROM tab1
----
-12
-3
30

onlyif mysql # aggregate syntax: 
query I rowsort label-5694
SELECT DISTINCT + MAX( ALL + - 84 ) FROM tab0
----
-84

skipif mysql # not compatible
query I rowsort label-5694
SELECT DISTINCT + MAX ( ALL + - 84 ) FROM tab0
----
-84

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

skipif mysql # not compatible
query I rowsort label-5695
SELECT - COUNT ( * ) + COUNT ( * ) AS col1 FROM tab0 cor0 CROSS JOIN tab0 cor1
----
0

query I rowsort
SELECT ALL - 64 * + col2 FROM tab0
----
-3008
-6336
-640

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

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

skipif mysql # not compatible
query I rowsort label-5698
SELECT DISTINCT - col2 / - - col2 FROM tab2 AS cor0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5699
SELECT col0 * + CAST( NULL AS SIGNED ) - - + 56, - col1 + - CAST( + col2 AS SIGNED ) - - + col2 AS col1 FROM tab1 AS cor0
----
NULL
-14
NULL
-47
NULL
-5

skipif mysql # not compatible
query II rowsort label-5699
SELECT col0 * + CAST ( NULL AS INTEGER ) - - + 56, - col1 + - CAST ( + col2 AS INTEGER ) - - + col2 AS col1 FROM tab1 AS cor0
----
NULL
-14
NULL
-47
NULL
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-5700
SELECT + col1 DIV - col0 - 16 col2 FROM tab1 AS cor0
----
-16
-16
-16

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5700
SELECT + col1 / - col0 - 16 col2 FROM tab1 AS cor0
----
-16
-16
-16

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 0 + + col1 col0 FROM tab1
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-5702
SELECT ALL + COUNT( * ) + - - 40 FROM tab1
----
43

skipif mysql # not compatible
query I rowsort label-5702
SELECT ALL + COUNT ( * ) + - - 40 FROM tab1
----
43

query I rowsort
SELECT DISTINCT + col2 * - col2 * 98 * 80 FROM tab0
----
-17318560
-76839840
-784000

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

query I rowsort
SELECT ALL col1 * + 59 FROM tab2
----
3009
3953
4543

query I rowsort
SELECT + col0 * col2 * + col0 * - col0 FROM tab0 cor0
----
-158625
-6585030
-90354627

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5708
SELECT DISTINCT COUNT( DISTINCT + ( + col2 ) ) * + MIN( DISTINCT + col0 ) AS col1 FROM tab1
----
153

skipif mysql # not compatible
query I rowsort label-5708
SELECT DISTINCT COUNT ( DISTINCT + ( + col2 ) ) * + MIN ( DISTINCT + col0 ) AS col1 FROM tab1
----
153

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + 16 <= - col2
----

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

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

query I rowsort
SELECT ALL - + 86 AS col1 FROM tab2 AS cor0 WHERE + 45 * - 1 <= NULL
----

query I rowsort
SELECT DISTINCT col2 + - + 55 AS col1 FROM tab1 AS cor0
----
13
4
41

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

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

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

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

skipif mysql # not compatible
query I rowsort label-5715
SELECT ALL - - COUNT ( * ) * + + COUNT ( * ) / - 98 AS col1 FROM tab1 AS cor0
----
0

query I rowsort
SELECT DISTINCT ( + col0 ) + + col2 + 44 FROM tab2 AS cor0
----
113
148
177

onlyif mysql # DIV for integer division: 
query II rowsort label-5717
SELECT DISTINCT + col2 AS col2, col2 + + 91 DIV + + ( + col0 ) FROM tab2
----
23
24
40
41
58
59

skipif mysql # not compatible
query II rowsort label-5717
SELECT DISTINCT + col2 AS col2, col2 + + 91 / + + ( + col0 ) FROM tab2
----
23
24
40
41
58
59

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

query I rowsort
SELECT ALL 59 * + 63 * col2 FROM tab2
----
148680
215586
85491

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5721
SELECT CAST( - 23 AS SIGNED ) DIV col0 + - - col1 AS col0 FROM tab1
----
14
47
5

skipif mysql # not compatible
query I rowsort label-5721
SELECT CAST ( - 23 AS INTEGER ) / col0 + - - col1 AS col0 FROM tab1
----
14
47
5

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

query II rowsort
SELECT DISTINCT - col0, - col2 * - col1 AS col0 FROM tab1
----
-51
1344
-85
295
-91
3196

onlyif mysql # aggregate syntax: 
query I rowsort label-5724
SELECT ALL + MAX( ALL + + 28 ) FROM tab0
----
28

skipif mysql # not compatible
query I rowsort label-5724
SELECT ALL + MAX ( ALL + + 28 ) FROM tab0
----
28

query I rowsort
SELECT DISTINCT + col0 + - + ( - + 82 ) AS col2 FROM tab0 AS cor0
----
169
179
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5726
SELECT ALL col2 * + col0 FROM tab1 WHERE NOT NULL = col0 * ( + - 46 ) * + 61 - + 30 + - col1 / col2 + + CAST( NULL AS SIGNED ) + col0
----

skipif mysql # not compatible
query I rowsort label-5726
SELECT ALL col2 * + col0 FROM tab1 WHERE NOT NULL = col0 * ( + - 46 ) * + 61 - + 30 + - col1 / col2 + + CAST ( NULL AS INTEGER ) + col0
----

query I rowsort
SELECT - + ( + + 7 ) AS col2 FROM tab1 AS cor0
----
-7
-7
-7

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

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5732
SELECT 16 DIV + col1 * - col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5732
SELECT 16 / + col1 * - col1 FROM tab2
----
0
0
0

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL BETWEEN - col0 + - 37 * - - 44 AND 30
----

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

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

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

query II rowsort
SELECT col0, ( 84 ) AS col2 FROM tab0
----
15
84
87
84
97
84

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

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

query I rowsort
SELECT ALL + 51 * - 67 AS col1 FROM tab0 AS cor0
----
-3417
-3417
-3417

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5743
SELECT - COUNT( * ) DIV - 63 AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-5743
SELECT - COUNT ( * ) / - 63 AS col0 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5744
SELECT ALL - - MAX( col1 ) AS col0 FROM tab0 cor0
----
81

skipif mysql # not compatible
query I rowsort label-5744
SELECT ALL - - MAX ( col1 ) AS col0 FROM tab0 cor0
----
81

query I rowsort
SELECT ALL - col1 + + - 79 AS col0 FROM tab1 AS cor0
----
-126
-84
-93

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

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

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

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

query I rowsort
SELECT 17 * col0 * - + 34 * - - 22 AS col2 FROM tab1 AS cor0
----
-1080860
-1157156
-648516

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

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

query II rowsort
SELECT col1, - 10 AS col1 FROM tab2 AS cor0
----
51
-10
67
-10
77
-10

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

query I rowsort
SELECT ALL - 1 + + col2 * - 62 AS col1 FROM tab2
----
-1427
-2481
-3597

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

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

query I rowsort
SELECT col2 * - + col2 * 83 FROM tab2
----
-132800
-279212
-43907

onlyif mysql # aggregate syntax: 
query II rowsort label-5756
SELECT ALL 23 * 95 * + + COUNT( * ), - COUNT( col0 ) AS col0 FROM tab1
----
6555
-3

skipif mysql # not compatible
query II rowsort label-5756
SELECT ALL 23 * 95 * + + COUNT ( * ), - COUNT ( col0 ) AS col0 FROM tab1
----
6555
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5757
SELECT - - col2 - CAST( NULL AS SIGNED ) + + 57 * - 68 / 35 + col1 + + col2 FROM tab0 WHERE NULL IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5757
SELECT - - col2 - CAST ( NULL AS INTEGER ) + + 57 * - 68 / 35 + col1 + + col2 FROM tab0 WHERE NULL IS NULL
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5758
SELECT DISTINCT + 18 DIV - MAX( DISTINCT 9 ) FROM tab1
----
-2

skipif mysql # not compatible
query I rowsort label-5758
SELECT DISTINCT + 18 / - MAX ( DISTINCT 9 ) FROM tab1
----
-2

query I rowsort
SELECT ALL + col1 AS col2 FROM tab1 WHERE col0 > - 70
----
14
47
5

onlyif mysql # DIV for integer division: 
query I rowsort label-5760
SELECT ALL ( col0 ) DIV - + col2 + + 23 AS col2 FROM tab1
----
22
22
23

skipif mysql # not compatible
query I rowsort label-5760
SELECT ALL ( col0 ) / - + col2 + + 23 AS col2 FROM tab1
----
22
22
23

query I rowsort
SELECT + col1 + + + col2 FROM tab2
----
117
125
74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5762
SELECT ALL - CAST( NULL AS SIGNED ) FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-5762
SELECT ALL - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + + 1 col1 FROM tab2 AS cor0
----
52
68
78

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5764
SELECT ALL 84 DIV + - 56 + + 69 + - - COUNT( * ) FROM tab1 AS cor0
----
71

skipif mysql # not compatible
query I rowsort label-5764
SELECT ALL 84 / + - 56 + + 69 + - - COUNT ( * ) FROM tab1 AS cor0
----
71

query I rowsort
SELECT - 56 + - ( + - 19 ) * - col1 AS col0 FROM tab2 AS cor0
----
-1025
-1329
-1519

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5766
SELECT + 60 + + ( + MIN ( ALL + + col2 ) ) col2 FROM tab1 cor0
----
119

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

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

skipif mysql # not compatible
query I rowsort label-5768
SELECT DISTINCT + ( + + COUNT ( - CAST ( - col0 AS INTEGER ) ) ) * + - 8 AS col0 FROM tab2 AS cor0
----
-24

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 32 <= + - col0 + + 62
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 WHERE NOT + 0 IN ( + col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

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

query I rowsort
SELECT ALL - 37 + - col0 FROM tab0
----
-124
-134
-52

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5775
SELECT ALL ( - ( - MIN( ALL CAST( NULL AS DECIMAL ) ) ) ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5775
SELECT ALL ( - ( - MIN ( ALL CAST ( NULL AS REAL ) ) ) ) AS col2 FROM tab2
----
NULL

query I rowsort
SELECT col0 * + - col1 AS col0 FROM tab0 AS cor0
----
-1215
-1827
-97

query I rowsort
SELECT ALL - col1 FROM tab0 AS cor0 WHERE col0 <> + 6 * + col1 - - + col2
----
-1
-21
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-5778
SELECT + 91 + COUNT( * ) + + 66 AS col2 FROM tab0 AS cor0
----
160

skipif mysql # not compatible
query I rowsort label-5778
SELECT + 91 + COUNT ( * ) + + 66 AS col2 FROM tab0 AS cor0
----
160

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

query I rowsort
SELECT 22 + + 72 AS col0 FROM tab0 AS cor0
----
94
94
94

query I rowsort
SELECT - - col0 * + 14 + - 69 AS col2 FROM tab1 AS cor0
----
1121
1205
645

query I rowsort
SELECT ALL 74 + + 57 - 44 AS col2 FROM tab1 AS cor0
----
87
87
87

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col2 + - - 32 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5784
SELECT COUNT( * ) * - 34 FROM tab0
----
-102

skipif mysql # not compatible
query I rowsort label-5784
SELECT COUNT ( * ) * - 34 FROM tab0
----
-102

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5786
SELECT DISTINCT ( 69 ) DIV COUNT( * ) - - 41 DIV - CAST( + - COUNT( * ) AS SIGNED ) FROM tab1
----
36

skipif mysql # not compatible
query I rowsort label-5786
SELECT DISTINCT ( 69 ) / COUNT ( * ) - - 41 / - CAST ( + - COUNT ( * ) AS INTEGER ) FROM tab1
----
36

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * - - col0 * + - 40 col1 FROM tab0
----
-3880
-48600
-73080

query II rowsort
SELECT ALL ( + - 91 ) AS col1, - 59 AS col0 FROM tab0
----
-91
-59
-91
-59
-91
-59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col0 * ( + col2 ) col2 FROM tab1 AS cor0
----
-4896
-5015
-6188

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5790
SELECT ALL - CAST( NULL AS SIGNED ) * - SUM( - + 10 ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5790
SELECT ALL - CAST ( NULL AS INTEGER ) * - SUM ( - + 10 ) FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5791
SELECT - MAX( - 22 ) col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
22

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5791
SELECT - MAX ( - 22 ) col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
22

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5793
SELECT 30 * MAX( 49 ) col0, + COUNT( * ) FROM tab2
----
1470
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5793
SELECT 30 * MAX ( 49 ) col0, + COUNT ( * ) FROM tab2
----
1470
3

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5796
SELECT ALL + col1, - 63 + 47 AS col0 FROM tab0 AS cor0 WHERE NOT ( ( - ( col1 ) ) + CAST( + - col2 AS SIGNED ) ) IS NOT NULL
----

skipif mysql # not compatible
query II rowsort label-5796
SELECT ALL + col1, - 63 + 47 AS col0 FROM tab0 AS cor0 WHERE NOT ( ( - ( col1 ) ) + CAST ( + - col2 AS INTEGER ) ) IS NOT NULL
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5798
SELECT - col2 * - CAST( NULL AS SIGNED ) / + ( - - 6 ) + + + 47 - + + 44 / + - col0 + - col2 AS col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5798
SELECT - col2 * - CAST ( NULL AS INTEGER ) / + ( - - 6 ) + + + 47 - + + 44 / + - col0 + - col2 AS col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - - 82 AS col1 FROM tab0 AS cor0
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-5800
SELECT ALL SUM( + - col1 ) FROM tab2
----
-195

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5801
SELECT + 19 * COUNT( * ) * - 86 FROM tab0
----
-4902

skipif mysql # not compatible
query I rowsort label-5801
SELECT + 19 * COUNT ( * ) * - 86 FROM tab0
----
-4902

query II rowsort
SELECT ALL + col2 AS col0, - col0 * + 34 * 13 AS col1 FROM tab1
----
59
-37570
68
-40222
96
-22542

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE 6 * col1 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 col0, col0 * + col2 AS col2 FROM tab0
----
10
870
47
705
99
9603

query I rowsort
SELECT DISTINCT - 34 AS col1 FROM tab0
----
-34

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( ( 51 + col1 + + - col1 + - - 54 * 45 IS NULL ) )
----

query I rowsort
SELECT DISTINCT col2 - + col1 AS col1 FROM tab0 AS cor0 WHERE ( NOT + col2 NOT IN ( 26 ) )
----

query I rowsort
SELECT - 1 + + 78 AS col2 FROM tab2 AS cor0
----
77
77
77

query I rowsort
SELECT 72 + - 97 * - 49 FROM tab1
----
4825
4825
4825

query I rowsort
SELECT ALL + + 37 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to a10b03e72860b949bdff53827700a9a8

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5812
SELECT ALL - ( - 59 ) * + CAST( + col2 AS SIGNED ) FROM tab2 AS cor0
----
1357
2360
3422

skipif mysql # not compatible
query I rowsort label-5812
SELECT ALL - ( - 59 ) * + CAST ( + col2 AS INTEGER ) FROM tab2 AS cor0
----
1357
2360
3422

query I rowsort
SELECT DISTINCT + + 68 * + col1 + col1 AS col0 FROM tab1 AS cor0
----
3243
345
966

query II rowsort
SELECT ALL - col0, 57 + - col2 AS col2 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-15
10
-87
47
-97
-42

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5815
SELECT ALL - - 74 DIV 76 * - COUNT( + + 95 ) + - - COUNT( * ) col0 FROM tab0 AS cor0
----
3

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5816
SELECT DISTINCT COUNT( * ) + + + 77 FROM tab0 cor0
----
80

skipif mysql # not compatible
query I rowsort label-5816
SELECT DISTINCT COUNT ( * ) + + + 77 FROM tab0 cor0
----
80

query I rowsort
SELECT DISTINCT ( + col2 ) + 52 FROM tab2 AS cor0
----
110
75
92

query I rowsort
SELECT ALL + col1 * 26 + + 86 AS col2 FROM tab0 AS cor0
----
112
2192
632

query I rowsort
SELECT - - col2 * 15 AS col0 FROM tab1 AS cor0
----
1020
1440
885

query I rowsort
SELECT DISTINCT + 16 FROM tab2 cor0 WHERE ( NULL ) IS NULL
----
16

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5823
SELECT DISTINCT - - MIN( - col2 ) + + + COUNT( * ) FROM tab0 WHERE NOT + - 5 = + + col0
----
-96

skipif mysql # not compatible
query I rowsort label-5823
SELECT DISTINCT - - MIN ( - col2 ) + + + COUNT ( * ) FROM tab0 WHERE NOT + - 5 = + + col0
----
-96

query I rowsort
SELECT ALL col2 * - col1 - - 19 AS col0 FROM tab2
----
-1154
-3061
-3867

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5825
SELECT * FROM tab2 AS cor0 WHERE NULL <> - CAST( - 36 AS SIGNED ) * - - 35
----

skipif mysql # not compatible
query III rowsort label-5825
SELECT * FROM tab2 AS cor0 WHERE NULL <> - CAST ( - 36 AS INTEGER ) * - - 35
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5827
SELECT ALL + col1 DIV 84 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5827
SELECT ALL + col1 / 84 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5828
SELECT - COUNT( * ) AS col1, - 63 DIV + MIN( ALL col0 ) col2 FROM tab1 cor0 WHERE + col1 IS NOT NULL
----
-3
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5828
SELECT - COUNT ( * ) AS col1, - 63 / + MIN ( ALL col0 ) col2 FROM tab1 cor0 WHERE + col1 IS NOT NULL
----
-3
-1

query I rowsort
SELECT ALL - + 7 AS col1 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to ba940cd66e21e94e95aada5f28e1faf5

query I rowsort
SELECT ALL - 93 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 38f445d95788c7dc754ff688a62df03b

query I rowsort
SELECT DISTINCT + col1 * 10 + - + col1 FROM tab1 WHERE NOT - 79 IS NULL
----
126
423
45

query II rowsort
SELECT col1, col2 * col2 AS col2 FROM tab0 AS cor0
----
1
9801
21
100
81
2209

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5835
SELECT DISTINCT - SUM( DISTINCT col0 ) * - - CAST( NULL AS DECIMAL ) * MIN( ALL 60 ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5835
SELECT DISTINCT - SUM ( DISTINCT col0 ) * - - CAST ( NULL AS REAL ) * MIN ( ALL 60 ) FROM tab1 AS cor0
----
NULL

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

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

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

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

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5841
SELECT + 41 DIV + - MIN( DISTINCT col1 ) col2 FROM tab0 AS cor0
----
-41

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5841
SELECT + 41 / + - MIN ( DISTINCT col1 ) col2 FROM tab0 AS cor0
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-5842
SELECT - - 5 * - SUM( - - col1 ) FROM tab1 AS cor0
----
-330

skipif mysql # not compatible
query I rowsort label-5842
SELECT - - 5 * - SUM ( - - col1 ) FROM tab1 AS cor0
----
-330

query I rowsort
SELECT DISTINCT - col0 * + col2 AS col1 FROM tab0 AS cor0 WHERE NOT - col2 * + col1 BETWEEN - 3 AND ( - 45 )
----
-705
-870
-9603

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5844
SELECT - ( 84 ) DIV - MIN( col0 ) AS col1 FROM tab0 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-5844
SELECT - ( 84 ) / - MIN ( col0 ) AS col1 FROM tab0 AS cor0
----
5

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5845
SELECT DISTINCT - CAST( + col2 AS SIGNED ) AS col0, 8 + - col0 + - + 85 + - col2 AS col1 FROM tab0
----
-10
-174
-47
-139
-99
-273

skipif mysql # not compatible
query II rowsort label-5845
SELECT DISTINCT - CAST ( + col2 AS INTEGER ) AS col0, 8 + - col0 + - + 85 + - col2 AS col1 FROM tab0
----
-10
-174
-47
-139
-99
-273

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

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

query II rowsort
SELECT - col2 * col2, col0 FROM tab0 WHERE NOT - 69 * - - col1 * + col2 * + + 1 + ( ( - col0 ) ) BETWEEN NULL AND + 54
----

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

skipif mysql # not compatible
query I rowsort label-5848
SELECT - + ( + MIN ( - - col1 ) ) FROM tab1 AS cor0
----
-5

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5850
SELECT DISTINCT - MIN( ALL - 54 ) AS col2 FROM tab1 AS cor0 WHERE NOT + 63 / - CAST( + + col0 AS SIGNED ) * - col1 < - 65
----
54

skipif mysql # not compatible
query I rowsort label-5850
SELECT DISTINCT - MIN ( ALL - 54 ) AS col2 FROM tab1 AS cor0 WHERE NOT + 63 / - CAST ( + + col0 AS INTEGER ) * - col1 < - 65
----
54

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5852
SELECT DISTINCT - SUM( + col1 ) + + 35 FROM tab1
----
-31

skipif mysql # not compatible
query I rowsort label-5852
SELECT DISTINCT - SUM ( + col1 ) + + 35 FROM tab1
----
-31

query I rowsort
SELECT ( + 88 ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 6be17b82ecb3e8b268fcb4ba610ddb37

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

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

query I rowsort
SELECT + 53 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to fede6033dee346dbd272085c05724fda

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5858
SELECT + COUNT( * ) + + 99 AS col0 FROM tab2 AS cor0
----
102

skipif mysql # not compatible
query I rowsort label-5858
SELECT + COUNT ( * ) + + 99 AS col0 FROM tab2 AS cor0
----
102

query II rowsort
SELECT col2 * - col2 * 83 * + col1 AS col1, col0 AS col0 FROM tab1 WHERE NULL < + col0 * + + col1 * col1
----

query I rowsort
SELECT DISTINCT col1 + + + 72 + + col1 FROM tab2
----
174
206
226

query I rowsort
SELECT ALL - col2 * + 8 AS col1 FROM tab1
----
-472
-544
-768

onlyif mysql # DIV for integer division: 
query I rowsort label-5862
SELECT DISTINCT ( - col0 ) DIV - + col2 + - + col2 + - col1 - - - 84 AS col2 FROM tab0
----
-107
-184
-212

skipif mysql # not compatible
query I rowsort label-5862
SELECT DISTINCT ( - col0 ) / - + col2 + - + col2 + - col1 - - - 84 AS col2 FROM tab0
----
-107
-184
-212

query I rowsort
SELECT DISTINCT - 68 * - 87 * col2 AS col2 FROM tab2 WHERE NOT + + col1 NOT IN ( - col2, + 0 + - + ( - 49 ) )
----

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

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

query I rowsort
SELECT - - 89 / 86 + - col0 AS col1 FROM tab1 AS cor0 WHERE - col2 / + col1 IS NULL
----

query I rowsort
SELECT ALL + col0 * + 95 + - + 3 * - + col2 + - col0 FROM tab1 AS cor0 WHERE NOT + col1 * - + 92 = col2 * col0
----
5082
8167
8758

query I rowsort
SELECT col1 - - - 90 FROM tab2 AS cor0
----
-13
-23
-39

query II rowsort
SELECT 59 AS col2, + col2 AS col0 FROM tab1 cor0 WHERE NULL IS NOT NULL
----

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

query I rowsort
SELECT ALL - ( - col0 ) * + 33 AS col0 FROM tab1
----
1683
2805
3003

query I rowsort
SELECT ALL + - 54 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 4ecdb0f1b85f0d4fdc3a826efd9f2342

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

query I rowsort
SELECT ALL - 7 * - col2 AS col2 FROM tab2 cor0
----
161
280
406

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

skipif mysql # not compatible
query I rowsort label-5874
SELECT ALL + CAST ( + 1 AS INTEGER ) FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
1
1
1

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

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

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5877
SELECT + col0 AS col2, ( CAST ( + col0 AS INTEGER ) ) col1 FROM tab1
----
51
51
85
85
91
91

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

query II rowsort
SELECT ( - 42 ) AS col1, col2 AS col0 FROM tab1
----
-42
59
-42
68
-42
96

query I rowsort
SELECT col0 * - 70 FROM tab2
----
-3220
-4480
-5250

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5881
SELECT DISTINCT 31 * CAST( - 97 AS SIGNED ) FROM tab0
----
-3007

skipif mysql # not compatible
query I rowsort label-5881
SELECT DISTINCT 31 * CAST ( - 97 AS INTEGER ) FROM tab0
----
-3007

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5883
SELECT + col1 * + col1 + + + CAST( + ( - col2 ) AS SIGNED ) * - col1 AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
1540
320
5405

skipif mysql # not compatible
query I rowsort label-5883
SELECT + col1 * + col1 + + + CAST ( + ( - col2 ) AS INTEGER ) * - col1 AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
1540
320
5405

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col1 * 85 IS NULL
----

query I rowsort
SELECT - - ( + col0 ) + - + col2 - col1 AS col0 FROM tab2 AS cor0
----
-28
-50
-53

query I rowsort
SELECT DISTINCT col1 + - - col1 FROM tab0 AS cor0
----
162
2
42

query I rowsort
SELECT ALL + 84 * - + col1 + - col0 FROM tab2 AS cor0
----
-4330
-5703
-6532

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

query I rowsort
SELECT + 2 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 84dbfaf9bc17dd097f15bc36b4186261

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5891
SELECT DISTINCT - col0 DIV - ( - 38 ) - - + col0 FROM tab2 cor0
----
45
63
74

skipif mysql # not compatible
query I rowsort label-5891
SELECT DISTINCT - col0 / - ( - 38 ) - - + col0 FROM tab2 cor0
----
45
63
74

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5892
SELECT COUNT ( * ) col0 FROM tab1 AS cor0 WHERE ( NOT ( ( NULL ) >= - - col0 ) )
----
0

query I rowsort
SELECT DISTINCT - + 21 AS col2 FROM tab1 AS cor0
----
-21

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

query I rowsort
SELECT DISTINCT col2 * + 77 + col1 AS col0 FROM tab0 AS cor0
----
3700
7624
791

query I rowsort
SELECT 41 + - col2 AS col0 FROM tab2
----
-17
1
18

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5897
SELECT DISTINCT - CAST( NULL AS DECIMAL ) * - col0 + - col1 + + 74 AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5897
SELECT DISTINCT - CAST ( NULL AS REAL ) * - col0 + - col1 + + 74 AS col1 FROM tab0
----
NULL

query I rowsort
SELECT ALL 31 * col2 - + 30 FROM tab0
----
1427
280
3039

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL < + 43
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5900
SELECT DISTINCT + COUNT( * ) + - 17 FROM tab0
----
-14

skipif mysql # not compatible
query I rowsort label-5900
SELECT DISTINCT + COUNT ( * ) + - 17 FROM tab0
----
-14

query I rowsort
SELECT ALL 65 - - col1 + - col2 AS col1 FROM tab2
----
102
74
93

query I rowsort
SELECT DISTINCT - ( - col2 ) * - - col1 - - col1 FROM tab2
----
1224
3157
3953

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

query I rowsort
SELECT 7 + + - col0 FROM tab1
----
-44
-78
-84

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

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

skipif mysql # not compatible
query II rowsort label-5906
SELECT DISTINCT col2, ( + CAST ( NULL AS INTEGER ) ) + col2 AS col1 FROM tab0
----
10
NULL
47
NULL
99
NULL

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

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

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5910
SELECT * FROM tab2 AS cor0 WHERE NOT + 15 * - ( - CAST( NULL AS DECIMAL ) ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-5910
SELECT * FROM tab2 AS cor0 WHERE NOT + 15 * - ( - CAST ( NULL AS REAL ) ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5914
SELECT ALL + SUM( + - col2 ) AS col2 FROM tab0 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-5914
SELECT ALL + SUM ( + - col2 ) AS col2 FROM tab0 AS cor0
----
-156

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5915
SELECT ALL - CAST( NULL AS SIGNED ) * - CAST( NULL AS SIGNED ) * 97 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5915
SELECT ALL - CAST ( NULL AS INTEGER ) * - CAST ( NULL AS INTEGER ) * 97 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT + - 79 FROM tab1 AS cor0
----
-79
-79
-79

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5918
SELECT - - CAST( - + col0 AS SIGNED ), col1 + + + 88 AS col0 FROM tab0 AS cor0
----
-15
169
-87
109
-97
89

skipif mysql # not compatible
query II rowsort label-5918
SELECT - - CAST ( - + col0 AS INTEGER ), col1 + + + 88 AS col0 FROM tab0 AS cor0
----
-15
169
-87
109
-97
89

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

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT + 54 NOT BETWEEN col0 AND NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-5921
SELECT DISTINCT col1 * - + col0 - - ( 77 ) col1, - col0 DIV col1 FROM tab0 AS cor0
----
-1138
0
-1750
-4
-20
-97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5921
SELECT DISTINCT col1 * - + col0 - - ( 77 ) col1, - col0 / col1 FROM tab0 AS cor0
----
-1138
0
-1750
-4
-20
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-5922
SELECT ALL + + MIN( + col1 ) * - + SUM( + 28 ) AS col0 FROM tab0 AS cor0
----
-84

skipif mysql # not compatible
query I rowsort label-5922
SELECT ALL + + MIN ( + col1 ) * - + SUM ( + 28 ) AS col0 FROM tab0 AS cor0
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-5923
SELECT DISTINCT COUNT( * ) FROM tab2 WHERE NOT + ( + 19 ) = + - col2
----
3

skipif mysql # not compatible
query I rowsort label-5923
SELECT DISTINCT COUNT ( * ) FROM tab2 WHERE NOT + ( + 19 ) = + - col2
----
3

query I rowsort
SELECT ALL 47 * - + col2 * - 81 + + 13 FROM tab0
----
178942
376906
38083

query I rowsort
SELECT ALL + ( - + 40 ) * col2 FROM tab2
----
-1600
-2320
-920

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL >= 89 + - + 35 / - + 36
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5927
SELECT 42 * ( + MAX( + 69 ) ) + 33 FROM tab0
----
2931

skipif mysql # not compatible
query I rowsort label-5927
SELECT 42 * ( + MAX ( + 69 ) ) + 33 FROM tab0
----
2931

query II rowsort
SELECT ALL - col1, - 48 AS col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-14
-48
-47
-48
-5
-48

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1, + col1 col1 FROM tab2 WHERE NULL IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 41 * + - col1 col2 FROM tab2
----
2091
2747
3157

onlyif mysql # DIV for integer division: 
query I rowsort label-5931
SELECT 78 DIV + - col1 FROM tab0
----
-3
-78
0

skipif mysql # not compatible
query I rowsort label-5931
SELECT 78 / + - col1 FROM tab0
----
-3
-78
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5932
SELECT - MIN( + 84 ) AS col1 FROM tab1 AS cor0
----
-84

skipif mysql # not compatible
query I rowsort label-5932
SELECT - MIN ( + 84 ) AS col1 FROM tab1 AS cor0
----
-84

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

query I rowsort
SELECT DISTINCT 93 * + col0 + + 75 + - col2 FROM tab2 AS cor0
----
4330
5987
6992

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5935
SELECT ALL * FROM tab2 AS cor0 WHERE CAST( - col2 AS DECIMAL ) < NULL
----

skipif mysql # not compatible
query III rowsort label-5935
SELECT ALL * FROM tab2 AS cor0 WHERE CAST ( - col2 AS REAL ) < NULL
----

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + + col2 col1 FROM tab0 AS cor0 WHERE 26 + col2 > NULL
----

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

query I rowsort
SELECT DISTINCT 20 AS col0 FROM tab1 AS cor0 WHERE NULL >= NULL
----

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

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

query I rowsort
SELECT col0 * - ( + col0 ) * + col0 - + - col0 FROM tab0 AS cor0
----
-3360
-658416
-912576

onlyif mysql # aggregate syntax: 
query II rowsort label-5943
SELECT MIN( - + col1 ) AS col2, 68 col2 FROM tab0 AS cor0
----
-81
68

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5943
SELECT MIN ( - + col1 ) AS col2, 68 col2 FROM tab0 AS cor0
----
-81
68

query I rowsort
SELECT DISTINCT + col1 + + ( col2 ) AS col1 FROM tab0 AS cor0
----
100
128
31

query I rowsort
SELECT DISTINCT + 63 + + col1 AS col1 FROM tab2 AS cor0
----
114
130
140

query I rowsort
SELECT 20 * col2 AS col1 FROM tab2
----
1160
460
800

onlyif mysql # aggregate syntax: 
query I rowsort label-5947
SELECT 58 * + MAX( - 8 ) AS col1 FROM tab1
----
-464

skipif mysql # not compatible
query I rowsort label-5947
SELECT 58 * + MAX ( - 8 ) AS col1 FROM tab1
----
-464

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

skipif mysql # not compatible
query I rowsort label-5948
SELECT ALL + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5949
SELECT COUNT( * ) * - - ( - 28 ) * SUM( + 58 ) FROM tab2 AS cor0
----
-14616

skipif mysql # not compatible
query I rowsort label-5949
SELECT COUNT ( * ) * - - ( - 28 ) * SUM ( + 58 ) FROM tab2 AS cor0
----
-14616

query I rowsort
SELECT 96 * 85 FROM tab0
----
8160
8160
8160

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5951
SELECT ALL + + COUNT( * ) DIV - 51 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
0

skipif mysql # not compatible
query I rowsort label-5951
SELECT ALL + + COUNT ( * ) / - 51 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
0

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN col1 AND - 42
----

query II rowsort
SELECT ALL - 49 AS col1, - col0 + + 78 AS col0 FROM tab1 cor0
----
-49
-13
-49
-7
-49
27

onlyif mysql # aggregate syntax: 
query I rowsort label-5955
SELECT + + MIN( ALL - col1 ) AS col0 FROM tab2 cor0
----
-77

skipif mysql # not compatible
query I rowsort label-5955
SELECT + + MIN ( ALL - col1 ) AS col0 FROM tab2 cor0
----
-77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 * + ( - + 59 ) col1, - 98 - - ( + + 51 ) AS col1 FROM tab1 AS cor0
----
-3009
-47
-5015
-47
-5369
-47

query I rowsort
SELECT + col1 * - - col2 FROM tab2
----
1173
3080
3886

onlyif mysql # DIV for integer division: 
query I rowsort label-5958
SELECT 9 DIV + col0 AS col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5958
SELECT 9 / + col0 AS col0 FROM tab1
----
0
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5959
SELECT ALL - CAST( - COUNT( DISTINCT + 73 ) AS SIGNED ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-5959
SELECT ALL - CAST ( - COUNT ( DISTINCT + 73 ) AS INTEGER ) FROM tab0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5960
SELECT + ( + 0 ) * + COUNT( DISTINCT + 98 ) FROM tab2
----
0

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5961
SELECT 57 DIV COUNT( * ) * - MIN( ALL col1 ) AS col2 FROM tab2
----
-969

skipif mysql # not compatible
query I rowsort label-5961
SELECT 57 / COUNT ( * ) * - MIN ( ALL col1 ) AS col2 FROM tab2
----
-969

query I rowsort
SELECT - ( - col2 ) + - col2 FROM tab0
----
0
0
0

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

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

query I rowsort
SELECT ALL - + 19 + - col2 FROM tab0 AS cor0
----
-118
-29
-66

query I rowsort
SELECT 75 + - + 12 + - - col1 AS col0 FROM tab0 AS cor0
----
144
64
84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 0 + - ( col1 ) col1 FROM tab2 AS cor0
----
-51
-67
-77

query I rowsort
SELECT DISTINCT 34 + 90 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
124

onlyif mysql # aggregate syntax: 
query I rowsort label-5968
SELECT DISTINCT 71 * + - COUNT( * ) + - + ( - 72 ) col2 FROM tab1 AS cor0
----
-141

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5968
SELECT DISTINCT 71 * + - COUNT ( * ) + - + ( - 72 ) col2 FROM tab1 AS cor0
----
-141

onlyif mysql # DIV for integer division: 
query II rowsort label-5969
SELECT DISTINCT - 43 col2, + col2 DIV - col1 FROM tab0 AS cor0
----
-43
-99
-43
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5969
SELECT DISTINCT - 43 col2, + col2 / - col1 FROM tab0 AS cor0
----
-43
-99
-43
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5970
SELECT DISTINCT COUNT( * ) DIV COUNT( DISTINCT + 82 ) * COUNT( * ) FROM tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-5970
SELECT DISTINCT COUNT ( * ) / COUNT ( DISTINCT + 82 ) * COUNT ( * ) FROM tab0 AS cor0
----
9

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

query II rowsort
SELECT + 91 AS col0, col1 * + 77 FROM tab1 AS cor0
----
91
1078
91
3619
91
385

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

query I rowsort
SELECT ( + - 49 ) FROM tab2 AS cor0
----
-49
-49
-49

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

query I rowsort
SELECT ALL + ( - + 81 ) + + col0 AS col1 FROM tab2 AS cor0
----
-17
-35
-6

query I rowsort
SELECT + + col0 + + 0 - 76 * - - col1 FROM tab2 AS cor0
----
-3830
-5017
-5788

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

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

query I rowsort
SELECT DISTINCT + ( + + 82 ) FROM tab0 AS cor0 WHERE col0 IS NULL
----

query I rowsort
SELECT + col0 + 14 FROM tab2 AS cor0
----
60
78
89

query I rowsort
SELECT DISTINCT - ( + - 53 ) * + col1 + col1 + + col1 AS col1 FROM tab0
----
1155
4455
55

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5983
SELECT ALL - CAST( NULL AS SIGNED ), + col1 AS col1 FROM tab1
----
NULL
14
NULL
47
NULL
5

skipif mysql # not compatible
query II rowsort label-5983
SELECT ALL - CAST ( NULL AS INTEGER ), + col1 AS col1 FROM tab1
----
NULL
14
NULL
47
NULL
5

onlyif mysql # DIV for integer division: 
query I rowsort label-5984
SELECT col2 DIV col2 + col0 FROM tab0 cor0
----
16
88
98

skipif mysql # not compatible
query I rowsort label-5984
SELECT col2 / col2 + col0 FROM tab0 cor0
----
16
88
98

onlyif mysql # aggregate syntax: 
query I rowsort label-5985
SELECT SUM( DISTINCT 3 ) * + 61 AS col2 FROM tab0 AS cor0 WHERE + col1 = - 23 * - col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5985
SELECT SUM ( DISTINCT 3 ) * + 61 AS col2 FROM tab0 AS cor0 WHERE + col1 = - 23 * - col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5986
SELECT DISTINCT col0 + CAST( NULL AS SIGNED ) - + 5 - col1 + + - col2 + + col0 * 23 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5986
SELECT DISTINCT col0 + CAST ( NULL AS INTEGER ) - + 5 - col1 + + - col2 + + col0 * 23 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL - 62 + + col2 FROM tab1 AS cor0
----
-3
34
6

onlyif mysql # DIV for integer division: 
query I rowsort label-5988
SELECT + ( - col1 ) DIV col1 AS col0 FROM tab0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-5988
SELECT + ( - col1 ) / col1 AS col0 FROM tab0
----
-1
-1
-1

query I rowsort
SELECT DISTINCT col0 FROM tab2 WHERE ( NULL ) IS NULL
----
46
64
75

query I rowsort
SELECT + 18 * - col0 FROM tab1
----
-1530
-1638
-918

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5991
SELECT ALL - MIN( - col2 ) + CAST( NULL AS SIGNED ) AS col2 FROM tab1 WHERE CAST( + 33 AS SIGNED ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5991
SELECT ALL - MIN ( - col2 ) + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 WHERE CAST ( + 33 AS INTEGER ) IS NULL
----
NULL

query I rowsort
SELECT + ( col0 ) + col2 * + 45 FROM tab0
----
2130
4552
537

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5993
SELECT - ( - MIN( DISTINCT + CAST( col1 AS SIGNED ) ) ) + + 33 FROM tab0
----
34

skipif mysql # not compatible
query I rowsort label-5993
SELECT - ( - MIN ( DISTINCT + CAST ( col1 AS INTEGER ) ) ) + + 33 FROM tab0
----
34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5994
SELECT ALL + CAST( 61 AS SIGNED ) / CAST( NULL AS SIGNED ) col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5994
SELECT ALL + CAST ( 61 AS INTEGER ) / CAST ( NULL AS INTEGER ) col1 FROM tab1
----
NULL
NULL
NULL

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5997
SELECT DISTINCT 64 DIV COUNT( * ) AS col2 FROM tab0
----
21

skipif mysql # not compatible
query I rowsort label-5997
SELECT DISTINCT 64 / COUNT ( * ) AS col2 FROM tab0
----
21

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

query III rowsort
SELECT * FROM tab0 WHERE NOT ( ( col2 ) ) NOT IN ( 97 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6000
SELECT DISTINCT CAST( NULL AS DECIMAL ) / col1 AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-6000
SELECT DISTINCT CAST ( NULL AS REAL ) / col1 AS col0 FROM tab0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 col0 FROM tab0 WHERE NOT - col1 - col1 IN ( - col0 )
----
10
47
99

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6003
SELECT ( - 86 ) * COUNT( * ) + - ( COUNT( * ) ) FROM tab2
----
-261

skipif mysql # not compatible
query I rowsort label-6003
SELECT ( - 86 ) * COUNT ( * ) + - ( COUNT ( * ) ) FROM tab2
----
-261

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6007
SELECT - 67 + + col1 DIV 55 AS col2 FROM tab0
----
-66
-67
-67

skipif mysql # not compatible
query I rowsort label-6007
SELECT - 67 + + col1 / 55 AS col2 FROM tab0
----
-66
-67
-67

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

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

query I rowsort
SELECT DISTINCT + col1 * col0 + col2 * col1 FROM tab1
----
2058
720
7473

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

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

query I rowsort
SELECT ALL - 13 + - col0 * + col2 AS col0 FROM tab0 AS cor0
----
-718
-883
-9616

query I rowsort
SELECT DISTINCT - 92 AS col2 FROM tab1 AS cor0
----
-92

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6015
SELECT DISTINCT + MAX( DISTINCT + col2 ) DIV COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE + col0 IS NOT NULL
----
19

skipif mysql # not compatible
query I rowsort label-6015
SELECT DISTINCT + MAX ( DISTINCT + col2 ) / COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE + col0 IS NOT NULL
----
19

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 11 IS NULL
----

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

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

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

query I rowsort
SELECT 31 * + - 32 AS col1 FROM tab2
----
-992
-992
-992

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

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

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

query III rowsort
SELECT * FROM tab1 WHERE + col0 - col2 = ( 52 / col0 )
----

query I rowsort
SELECT DISTINCT - col2 + col1 + + 43 AS col2 FROM tab0
----
-55
54
77

onlyif mysql # DIV for integer division: 
query I rowsort label-6024
SELECT - col1 DIV - col2 + + 54 FROM tab2
----
55
55
56

skipif mysql # not compatible
query I rowsort label-6024
SELECT - col1 / - col2 + + 54 FROM tab2
----
55
55
56

query I rowsort
SELECT ALL + col1 + + 55 AS col0 FROM tab2
----
106
122
132

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

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

skipif mysql # not compatible
query I rowsort label-6027
SELECT DISTINCT - 38 * - + CAST ( NULL AS INTEGER ) + + col2 AS col0 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6028
SELECT ALL - MAX( 39 ) AS col2 FROM tab0
----
-39

skipif mysql # not compatible
query I rowsort label-6028
SELECT ALL - MAX ( 39 ) AS col2 FROM tab0
----
-39

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

skipif mysql # not compatible
query I rowsort label-6029
SELECT ALL COUNT ( + - col2 ) - - 18 FROM tab1
----
21

query I rowsort
SELECT + col1 + + - col2 * + 3 AS col0 FROM tab2
----
-107
-18
-43

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 44 < + col2
----
87
21
10

query II rowsort
SELECT + 48 AS col1, col2 + col2 AS col1 FROM tab2
----
48
116
48
46
48
80

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

query I rowsort
SELECT ALL - col2 + + - col0 AS col2 FROM tab1
----
-144
-147
-159

query I rowsort
SELECT ALL + 61 * + - col1 AS col1 FROM tab1
----
-2867
-305
-854

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( - col0 * + col2 = NULL )
----

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

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

query II rowsort
SELECT ALL 61 AS col0, - col0 AS col0 FROM tab2 AS cor0
----
61
-46
61
-64
61
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-6041
SELECT SUM( col1 ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
195

skipif mysql # not compatible
query I rowsort label-6041
SELECT SUM ( col1 ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
195

onlyif mysql # aggregate syntax: 
query I rowsort label-6042
SELECT DISTINCT - 36 + - COUNT( * ) FROM tab2 cor0 WHERE - col2 * + ( 26 ) > 71 + col2
----
-36

skipif mysql # not compatible
query I rowsort label-6042
SELECT DISTINCT - 36 + - COUNT ( * ) FROM tab2 cor0 WHERE - col2 * + ( 26 ) > 71 + col2
----
-36

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

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

query I rowsort
SELECT + - 80 * 11 AS col1 FROM tab0 cor0
----
-880
-880
-880

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

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT col2 + - col0 * - 99 IS NOT NULL
----

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL > - - 29
----

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

skipif mysql # not compatible
query I rowsort label-6051
SELECT ALL - CAST ( NULL AS INTEGER ) * + col2 FROM tab0 WHERE - col0 IS NULL
----

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

query I rowsort
SELECT ALL + col2 FROM tab2 WHERE ( - - 86 ) IN ( 12 )
----

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

query I rowsort
SELECT DISTINCT col0 * - 82 FROM tab0
----
-1230
-7134
-7954

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 88 * - 24 col0 FROM tab2
----
2112

query I rowsort
SELECT - col2 * + col1 AS col1 FROM tab1 WHERE NOT ( + col2 / col0 ) IS NULL
----
-1344
-295
-3196

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE + col2 / - col1 <> - 63 * + 18
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6061
SELECT 95 * + MAX( + col0 ) - + 32 AS col0 FROM tab0 AS cor0
----
9183

skipif mysql # not compatible
query I rowsort label-6061
SELECT 95 * + MAX ( + col0 ) - + 32 AS col0 FROM tab0 AS cor0
----
9183

query I rowsort
SELECT 73 * col0 FROM tab0
----
1095
6351
7081

query I rowsort
SELECT ALL - col1 * - - col1 AS col1 FROM tab1
----
-196
-2209
-25

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6066
SELECT - + ( - 37 ) * + + COUNT( * ) + COUNT( * ) AS col0 FROM tab1 AS cor0
----
114

skipif mysql # not compatible
query I rowsort label-6066
SELECT - + ( - 37 ) * + + COUNT ( * ) + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
114

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6067
SELECT + + 69 DIV - + MIN( ( col2 ) ) + - CAST( MIN( col1 ) AS SIGNED ) AS col2 FROM tab2 cor0
----
-54

skipif mysql # not compatible
query I rowsort label-6067
SELECT + + 69 / - + MIN ( ( col2 ) ) + - CAST ( MIN ( col1 ) AS INTEGER ) AS col2 FROM tab2 cor0
----
-54

query I rowsort
SELECT DISTINCT + col1 + - + col0 AS col1 FROM tab1 cor0
----
-37
-44
-80

query I rowsort
SELECT ALL + 26 + + + col1 * - col0 AS col1 FROM tab0 AS cor0
----
-1189
-1801
-71

onlyif mysql # DIV for integer division: 
query I rowsort label-6070
SELECT - + col0 + col0 DIV col0 FROM tab1 AS cor0 WHERE col2 <= col0
----
-84
-90

skipif mysql # not compatible
query I rowsort label-6070
SELECT - + col0 + col0 / col0 FROM tab1 AS cor0 WHERE col2 <= col0
----
-84
-90

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

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

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

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

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

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

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

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + 3 NOT BETWEEN - col0 * - col1 / + col1 + + 2 / 56 AND col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 - + - 89 * - col0 + + col0 col1 FROM tab1 AS cor0
----
-4437
-7395
-7917

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT NULL < - 29
----

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6081
SELECT DISTINCT + COUNT( - col1 ) AS col1 FROM tab1 AS cor0 WHERE NOT - CAST( + + col2 AS SIGNED ) NOT IN ( - col1 )
----
0

skipif mysql # not compatible
query I rowsort label-6081
SELECT DISTINCT + COUNT ( - col1 ) AS col1 FROM tab1 AS cor0 WHERE NOT - CAST ( + + col2 AS INTEGER ) NOT IN ( - col1 )
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6082
SELECT + CAST( NULL AS DECIMAL ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-6082
SELECT + CAST ( NULL AS REAL ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query III rowsort
SELECT * FROM tab0 WHERE NOT 63 = ( - + 86 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

skipif mysql # not compatible
query I rowsort label-6084
SELECT + + COUNT ( * ) AS col2 FROM tab0 WHERE NOT 30 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-6085
SELECT + SUM( DISTINCT + col2 ) col1, 25 FROM tab0
----
156
25

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6085
SELECT + SUM ( DISTINCT + col2 ) col1, 25 FROM tab0
----
156
25

onlyif mysql # aggregate syntax: 
query I rowsort label-6086
SELECT - SUM( 14 ) * - MAX( DISTINCT + + col2 ) FROM tab0 AS cor0
----
4158

skipif mysql # not compatible
query I rowsort label-6086
SELECT - SUM ( 14 ) * - MAX ( DISTINCT + + col2 ) FROM tab0 AS cor0
----
4158

query I rowsort
SELECT DISTINCT - ( 18 ) AS col1 FROM tab2 AS cor0 WHERE NOT col0 = NULL
----

query I rowsort
SELECT - 48 * - + col0 FROM tab1
----
2448
4080
4368

query I rowsort
SELECT + col0 * + 56 * col0 * col1 AS col0 FROM tab1
----
2023000
2039184
21795592

query I rowsort
SELECT DISTINCT + AVG ( + - col2 ) AS col1 FROM tab1 WHERE col0 + + col2 * + - col0 BETWEEN NULL AND NULL
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6091
SELECT - MIN( ALL + col2 ) * + - CAST( + COUNT( * ) AS SIGNED ) FROM tab2
----
69

skipif mysql # not compatible
query I rowsort label-6091
SELECT - MIN ( ALL + col2 ) * + - CAST ( + COUNT ( * ) AS INTEGER ) FROM tab2
----
69

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6092
SELECT DISTINCT - col2 + - - col1 AS col2 FROM tab1 WHERE NOT + 70 + + CAST( NULL AS DECIMAL ) = NULL
----

skipif mysql # not compatible
query I rowsort label-6092
SELECT DISTINCT - col2 + - - col1 AS col2 FROM tab1 WHERE NOT + 70 + + CAST ( NULL AS REAL ) = NULL
----

query II rowsort
SELECT - col2, + 31 AS col1 FROM tab1
----
-59
31
-68
31
-96
31

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

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

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

query I rowsort
SELECT DISTINCT + col0 + + + col1 AS col2 FROM tab2 AS cor0
----
141
142
97

query I rowsort
SELECT ALL 33 + - col1 FROM tab2
----
-18
-34
-44

query I rowsort
SELECT + 13 * col1 AS col1 FROM tab2
----
1001
663
871

query I rowsort
SELECT - 79 * + 9 * - + 83 AS col2 FROM tab0
----
59013
59013
59013

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6101
SELECT DISTINCT + 42 * 55 + + COUNT( * ) FROM tab0
----
2313

skipif mysql # not compatible
query I rowsort label-6101
SELECT DISTINCT + 42 * 55 + + COUNT ( * ) FROM tab0
----
2313

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

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6103
SELECT * FROM tab2 AS cor0 WHERE + CAST( + - col0 AS DECIMAL ) * 55 BETWEEN + col0 AND NULL
----

skipif mysql # not compatible
query III rowsort label-6103
SELECT * FROM tab2 AS cor0 WHERE + CAST ( + - col0 AS REAL ) * 55 BETWEEN + col0 AND NULL
----

query II rowsort
SELECT DISTINCT + + ( + col0 ) AS col1, + col0 FROM tab2 cor0
----
46
46
64
64
75
75

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

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

query I rowsort
SELECT 35 - - 52 AS col2 FROM tab0 cor0
----
87
87
87

onlyif mysql # aggregate syntax: 
query I rowsort label-6107
SELECT + 76 - + MAX( - col1 ) AS col2 FROM tab1 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-6107
SELECT + 76 - + MAX ( - col1 ) AS col2 FROM tab1 AS cor0
----
81

query I rowsort
SELECT - ( 78 ) - col2 FROM tab2 AS cor0
----
-101
-118
-136

query I rowsort
SELECT 71 - ( col2 ) AS col2 FROM tab1 AS cor0
----
-25
12
3

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6111
SELECT ALL CAST( + - COUNT( * ) AS SIGNED ) + 97 FROM tab1
----
94

skipif mysql # not compatible
query I rowsort label-6111
SELECT ALL CAST ( + - COUNT ( * ) AS INTEGER ) + 97 FROM tab1
----
94

query I rowsort
SELECT DISTINCT col0 * - 14 - + + col2 FROM tab0
----
-1228
-1457
-257

query I rowsort
SELECT DISTINCT - col0 AS col2 FROM tab0 WHERE - 61 IS NULL
----

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

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

query II rowsort
SELECT 86, - col0 - col2 + - col0 AS col1 FROM tab2 AS cor0
----
86
-115
86
-168
86
-208

query I rowsort
SELECT ALL + ( + 4 ) * ( 57 ) + col2 FROM tab0 AS cor0
----
238
275
327

onlyif mysql # aggregate syntax: 
query I rowsort label-6117
SELECT DISTINCT COUNT( * ) - - 52 FROM tab1 AS cor0
----
55

skipif mysql # not compatible
query I rowsort label-6117
SELECT DISTINCT COUNT ( * ) - - 52 FROM tab1 AS cor0
----
55

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

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

query II rowsort
SELECT ALL col1, col0 * - 26 FROM tab1 AS cor0
----
14
-1326
47
-2366
5
-2210

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

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

query I rowsort
SELECT ALL + 30 FROM tab2 AS cor0 WHERE - col0 NOT BETWEEN + + col1 * 57 AND NULL
----
30
30
30

onlyif mysql # aggregate syntax: 
query II rowsort label-6123
SELECT + - 80 AS col2, COUNT( ( + 13 ) ) * + 62 AS col1 FROM tab0 AS cor0
----
-80
186

skipif mysql # not compatible
query II rowsort label-6123
SELECT + - 80 AS col2, COUNT ( ( + 13 ) ) * + 62 AS col1 FROM tab0 AS cor0
----
-80
186

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( + 77 ) BETWEEN 75 AND ( + 57 + + - col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

query I rowsort
SELECT DISTINCT 13 * 65 AS col1 FROM tab0, tab1 AS cor0
----
845

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6128
SELECT * FROM tab2 AS cor0 WHERE 28 NOT BETWEEN col2 AND - col1 + - CAST( - - ( - CAST( - col1 AS SIGNED ) ) AS SIGNED )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-6128
SELECT * FROM tab2 AS cor0 WHERE 28 NOT BETWEEN col2 AND - col1 + - CAST ( - - ( - CAST ( - col1 AS INTEGER ) ) AS INTEGER )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6129
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col0 - + CAST( NULL AS SIGNED ) / + col0 * - - 13 * - CAST( NULL AS SIGNED ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-6129
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col0 - + CAST ( NULL AS INTEGER ) / + col0 * - - 13 * - CAST ( NULL AS INTEGER ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

query I rowsort
SELECT DISTINCT + 55 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
55

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

query I rowsort
SELECT 65 + + + col1 FROM tab2
----
116
132
142

onlyif mysql # aggregate syntax: 
query I rowsort label-6135
SELECT DISTINCT COUNT( * ) + 1 FROM tab0 AS cor0
----
4

skipif mysql # not compatible
query I rowsort label-6135
SELECT DISTINCT COUNT ( * ) + 1 FROM tab0 AS cor0
----
4

query I rowsort
SELECT 59 + + col2 + + + ( + col0 ) AS col1 FROM tab2 AS cor0
----
128
163
192

query I rowsort
SELECT - + col0 * + col1 FROM tab0 AS cor0 WHERE 75 <= NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6139
SELECT ALL + COUNT( + col1 ) + 13 * 58 AS col0 FROM tab2 cor0
----
757

skipif mysql # not compatible
query I rowsort label-6139
SELECT ALL + COUNT ( + col1 ) + 13 * 58 AS col0 FROM tab2 cor0
----
757

query I rowsort
SELECT DISTINCT col0 * + 48 + + col0 AS col2 FROM tab2 AS cor0
----
2254
3136
3675

onlyif mysql # DIV for integer division: 
query I rowsort label-6141
SELECT DISTINCT + col0 + + col1 + - col0 DIV - - col0 AS col0 FROM tab1 cor0
----
137
64
89

skipif mysql # not compatible
query I rowsort label-6141
SELECT DISTINCT + col0 + + col1 + - col0 / - - col0 AS col0 FROM tab1 cor0
----
137
64
89

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL IN ( + col1, - 74, - - 29 - col0 + - ( 2 ) * - col1, - col2 ) )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6143
SELECT DISTINCT + COUNT( * ) * + ( - 98 ) * - + 48 + 38 + CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-6143
SELECT DISTINCT + COUNT ( * ) * + ( - 98 ) * - + 48 + 38 + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6145
SELECT DISTINCT - 28 + - 55 col2, + CAST( NULL AS SIGNED ) - + - 35 FROM tab2
----
-83
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6145
SELECT DISTINCT - 28 + - 55 col2, + CAST ( NULL AS INTEGER ) - + - 35 FROM tab2
----
-83
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6146
SELECT DISTINCT + + COUNT( ALL - 74 ) AS col1 FROM tab1 WHERE - 36 * - col2 + + + col0 + + - col1 - + + 94 <= - 66 + - col1
----
0

skipif mysql # not compatible
query I rowsort label-6146
SELECT DISTINCT + + COUNT ( ALL - 74 ) AS col1 FROM tab1 WHERE - 36 * - col2 + + + col0 + + - col1 - + + 94 <= - 66 + - col1
----
0

query I rowsort
SELECT + col0 - - 60 * col1 FROM tab0
----
1347
157
4875

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6148
SELECT ALL * FROM tab1 WHERE - col2 < + - CAST( - + ( 83 ) AS DECIMAL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-6148
SELECT ALL * FROM tab1 WHERE - col2 < + - CAST ( - + ( 83 ) AS REAL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6149
SELECT ALL * FROM tab0 WHERE NOT + 17 * - + col1 + ( + col2 ) - - + col0 * col2 <= - CAST( - col0 AS SIGNED )
----
87
21
10
97
1
99

skipif mysql # not compatible
query III rowsort label-6149
SELECT ALL * FROM tab0 WHERE NOT + 17 * - + col1 + ( + col2 ) - - + col0 * col2 <= - CAST ( - col0 AS INTEGER )
----
87
21
10
97
1
99

onlyif mysql # aggregate syntax: 
query II rowsort label-6150
SELECT - ( COUNT( DISTINCT + ( col2 ) ) ) AS col0, COUNT( * ) + - + COUNT( * ) FROM tab2
----
-3
0

skipif mysql # not compatible
query II rowsort label-6150
SELECT - ( COUNT ( DISTINCT + ( col2 ) ) ) AS col0, COUNT ( * ) + - + COUNT ( * ) FROM tab2
----
-3
0

query I rowsort
SELECT ALL + 54 * - 49 AS col0 FROM tab0
----
-2646
-2646
-2646

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6152
SELECT - 4 * + CAST( NULL AS SIGNED ), col1 - + - 18 AS col1 FROM tab1 AS cor0
----
NULL
23
NULL
32
NULL
65

skipif mysql # not compatible
query II rowsort label-6152
SELECT - 4 * + CAST ( NULL AS INTEGER ), col1 - + - 18 AS col1 FROM tab1 AS cor0
----
NULL
23
NULL
32
NULL
65

query I rowsort
SELECT DISTINCT - 22 FROM tab0 AS cor0 WHERE NOT col2 * + + 45 IS NOT NULL
----

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

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

skipif mysql # not compatible
query I rowsort label-6155
SELECT DISTINCT COUNT ( * ) / 66 AS col1 FROM tab0 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6156
SELECT ALL - - COUNT( * ) * - 53 col2 FROM tab0 AS cor0
----
-159

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6156
SELECT ALL - - COUNT ( * ) * - 53 col2 FROM tab0 AS cor0
----
-159

onlyif mysql # DIV for integer division: 
query I rowsort label-6157
SELECT ALL - col2 DIV 37 + - col1 AS col2 FROM tab2 AS cor0
----
-51
-68
-78

skipif mysql # not compatible
query I rowsort label-6157
SELECT ALL - col2 / 37 + - col1 AS col2 FROM tab2 AS cor0
----
-51
-68
-78

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6159
SELECT DISTINCT + COUNT( * ) * + 62 - 46 FROM tab0 AS cor0
----
140

skipif mysql # not compatible
query I rowsort label-6159
SELECT DISTINCT + COUNT ( * ) * + 62 - 46 FROM tab0 AS cor0
----
140

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

skipif mysql # not compatible
query I rowsort label-6160
SELECT ALL - CAST ( - 43 AS INTEGER ) FROM tab2 cor0
----
43
43
43

onlyif mysql # DIV for integer division: 
query II rowsort label-6161
SELECT ALL col1, - col2 * + + col0 - + + col0 DIV col0 col2 FROM tab0 AS cor0
----
1
-9604
21
-871
81
-706

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6161
SELECT ALL col1, - col2 * + + col0 - + + col0 / col0 col2 FROM tab0 AS cor0
----
1
-9604
21
-871
81
-706

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

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

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

skipif mysql # not compatible
query I rowsort label-6164
SELECT + CAST ( + - COUNT ( * ) AS INTEGER ) AS col1 FROM tab0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6165
SELECT - CAST( - col2 AS SIGNED ) AS col1 FROM tab0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-6165
SELECT - CAST ( - col2 AS INTEGER ) AS col1 FROM tab0 WHERE NOT NULL IS NULL
----

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

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

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

query I rowsort
SELECT DISTINCT col2 * + col2 / + - col2 FROM tab0 WHERE NOT ( NULL ) IN ( + ( 14 ) + + col1 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-6169
SELECT DISTINCT 43 AS col0, + COUNT( * ) FROM tab0
----
43
3

skipif mysql # not compatible
query II rowsort label-6169
SELECT DISTINCT 43 AS col0, + COUNT ( * ) FROM tab0
----
43
3

query III rowsort
SELECT * FROM tab0 WHERE NULL BETWEEN ( NULL ) AND + 62
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6171
SELECT - col1 DIV + + 46 + 95 FROM tab1
----
94
95
95

skipif mysql # not compatible
query I rowsort label-6171
SELECT - col1 / + + 46 + 95 FROM tab1
----
94
95
95

onlyif mysql # DIV for integer division: 
query I rowsort label-6172
SELECT + - col1 + 88 DIV + 35 FROM tab1 cor0
----
-12
-3
-45

skipif mysql # not compatible
query I rowsort label-6172
SELECT + - col1 + 88 / + 35 FROM tab1 cor0
----
-12
-3
-45

query I rowsort
SELECT ALL 41 * - col1 FROM tab1
----
-1927
-205
-574

query III rowsort
SELECT * FROM tab1 WHERE 40 + col0 < - 73
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6175
SELECT - col1 - + - ( 87 ) DIV - 92 AS col1 FROM tab0 AS cor0
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-6175
SELECT - col1 - + - ( 87 ) / - 92 AS col1 FROM tab0 AS cor0
----
-1
-21
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-6176
SELECT ALL + 60 + ( - COUNT( * ) ) col2 FROM tab0 AS cor0
----
57

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

query I rowsort
SELECT - col0 * col2 + col1 + ( + col0 ) FROM tab0 AS cor0
----
-609
-762
-9505

query I rowsort
SELECT ALL - - col0 + + 62 FROM tab2 AS cor0
----
108
126
137

query II rowsort
SELECT ALL 38, + ( + 7 ) * + + col1 * - ( + - col1 ) AS col1 FROM tab1
----
38
1372
38
15463
38
175

query I rowsort
SELECT DISTINCT col0 * - + col0 AS col0 FROM tab2
----
-2116
-4096
-5625

onlyif mysql # aggregate syntax: 
query I rowsort label-6181
SELECT ALL - ( COUNT( DISTINCT - - 87 ) ) FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-6181
SELECT ALL - ( COUNT ( DISTINCT - - 87 ) ) FROM tab0
----
-1

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6183
SELECT ALL - COUNT( - col1 ) * - + 93 AS col0 FROM tab1
----
279

skipif mysql # not compatible
query I rowsort label-6183
SELECT ALL - COUNT ( - col1 ) * - + 93 AS col0 FROM tab1
----
279

onlyif mysql # aggregate syntax: 
query I rowsort label-6184
SELECT DISTINCT + SUM( - + ( 50 ) ) AS col2 FROM tab0 cor0
----
-150

skipif mysql # not compatible
query I rowsort label-6184
SELECT DISTINCT + SUM ( - + ( 50 ) ) AS col2 FROM tab0 cor0
----
-150

query I rowsort
SELECT - 92 * - col2 AS col2 FROM tab2 AS cor0
----
2116
3680
5336

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

onlyif mysql # DIV for integer division: 
query II rowsort label-6187
SELECT ALL - 86 DIV - col0 AS col2, - 44 AS col0 FROM tab1 AS cor0
----
0
-44
1
-44
1
-44

skipif mysql # not compatible
query II rowsort label-6187
SELECT ALL - 86 / - col0 AS col2, - 44 AS col0 FROM tab1 AS cor0
----
0
-44
1
-44
1
-44

query I rowsort
SELECT DISTINCT + ( + + 74 ) + col0 AS col0 FROM tab2 AS cor0
----
120
138
149

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6190
SELECT + col2 DIV + col0 + + col1 + + col0 * 64 DIV + + CAST( - + ( col0 ) AS SIGNED ) col1 FROM tab2 AS cor0
----
-13
13
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6190
SELECT + col2 / + col0 + + col1 + + col0 * 64 / + + CAST ( - + ( col0 ) AS INTEGER ) col1 FROM tab2 AS cor0
----
-13
13
3

query I rowsort
SELECT ALL + - col1 FROM tab1 AS cor0 WHERE NOT col2 BETWEEN NULL AND - col2 * col1 + - col0 / + 1
----
-14
-47
-5

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

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

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6195
SELECT AVG ( ALL + CAST ( NULL AS INTEGER ) ) / - 44 col0 FROM tab0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6196
SELECT + + 42 DIV + 10 FROM tab0 AS cor0
----
4
4
4

skipif mysql # not compatible
query I rowsort label-6196
SELECT + + 42 / + 10 FROM tab0 AS cor0
----
4
4
4

query I rowsort
SELECT ALL + + 41 * - col0 + + - 69 AS col0 FROM tab0 AS cor0
----
-3636
-4046
-684

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 13 <= ( ( col2 ) )
----
15
81
47
97
1
99

onlyif mysql # aggregate syntax: 
query I rowsort label-6199
SELECT SUM( DISTINCT - - 2 ) * - - 94 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
188

skipif mysql # not compatible
query I rowsort label-6199
SELECT SUM ( DISTINCT - - 2 ) * - - 94 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
188

query I rowsort
SELECT col2 + 37 AS col0 FROM tab2
----
60
77
95

query I rowsort
SELECT - col2 + - + col0 + + + col1 FROM tab1
----
-112
-133
-139

onlyif mysql # aggregate syntax: 
query I rowsort label-6202
SELECT ALL - MAX( col1 ) FROM tab1
----
-47

skipif mysql # not compatible
query I rowsort label-6202
SELECT ALL - MAX ( col1 ) FROM tab1
----
-47

query II rowsort
SELECT ALL 98, + col2 FROM tab1
----
98
59
98
68
98
96

query I rowsort
SELECT + ( - 39 ) * 6 + - col2 - - col0 + col1 * - + col0 * - 93 * - ( + col1 ) FROM tab1 AS cor0
----
-18694978
-197833
-929907

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6206
SELECT + + 98 DIV - 27 AS col2 FROM tab0 AS cor0
----
-3
-3
-3

skipif mysql # not compatible
query I rowsort label-6206
SELECT + + 98 / - 27 AS col2 FROM tab0 AS cor0
----
-3
-3
-3

query I rowsort
SELECT ALL + - 96 FROM tab2 cor0
----
-96
-96
-96

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 35 > NULL
----

query I rowsort
SELECT ALL - 15 AS col2 FROM tab2 WHERE NOT col1 NOT BETWEEN NULL AND + col0 * + col0 - + 44
----

onlyif mysql # aggregate syntax: 
query II rowsort label-6210
SELECT + SUM( + 94 ) AS col2, - COUNT( * ) AS col0 FROM tab2
----
282
-3

skipif mysql # not compatible
query II rowsort label-6210
SELECT + SUM ( + 94 ) AS col2, - COUNT ( * ) AS col0 FROM tab2
----
282
-3

query I rowsort
SELECT DISTINCT - col2 * + 38 * + - col0 AS col0 FROM tab2
----
165300
40204
97280

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT + 54 * + + col1 FROM tab2
----
2754
3618
4158

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 48 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6218
SELECT - SUM( DISTINCT col1 ) FROM tab2 AS cor0 WHERE NULL > - col1 + 34
----
NULL

skipif mysql # not compatible
query I rowsort label-6218
SELECT - SUM ( DISTINCT col1 ) FROM tab2 AS cor0 WHERE NULL > - col1 + 34
----
NULL

query I rowsort
SELECT DISTINCT + col2 + - col2 AS col0 FROM tab0 AS cor0 WHERE + col0 NOT IN ( - col0 + col2 / col0 )
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-6220
SELECT - + 27, COUNT( * ) * + 42 AS col0 FROM tab0 AS cor0
----
-27
126

skipif mysql # not compatible
query II rowsort label-6220
SELECT - + 27, COUNT ( * ) * + 42 AS col0 FROM tab0 AS cor0
----
-27
126

query I rowsort
SELECT ALL + + col1 + + + 16 - - + col1 + col0 * col2 + + + col2 * ( + col2 ) AS col1 FROM tab2 AS cor0
----
1705
4330
7864

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * - + 20 col0 FROM tab0
----
1620
20
420

query I rowsort
SELECT ALL ( + - col2 ) + + + 75 + + + col1 AS col0 FROM tab2
----
103
112
84

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6225
SELECT DISTINCT - 43 DIV + COUNT( * ) FROM tab0
----
-14

skipif mysql # not compatible
query I rowsort label-6225
SELECT DISTINCT - 43 / + COUNT ( * ) FROM tab0
----
-14

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

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

query III rowsort
SELECT ALL * FROM tab1 WHERE ( NOT NULL > NULL )
----

query I rowsort
SELECT ALL + 17 AS col2 FROM tab0
----
17
17
17

onlyif mysql # aggregate syntax: 
query I rowsort label-6229
SELECT 63 + + MIN( DISTINCT - col1 ) AS col1 FROM tab1
----
16

skipif mysql # not compatible
query I rowsort label-6229
SELECT 63 + + MIN ( DISTINCT - col1 ) AS col1 FROM tab1
----
16

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6231
SELECT + ( - SUM( col2 ) ) + + SUM( - + 15 ) AS col2 FROM tab0
----
-201

skipif mysql # not compatible
query I rowsort label-6231
SELECT + ( - SUM ( col2 ) ) + + SUM ( - + 15 ) AS col2 FROM tab0
----
-201

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6233
SELECT ALL COUNT( ALL + col2 ) - - COUNT( ALL - - 51 ) FROM tab2
----
6

skipif mysql # not compatible
query I rowsort label-6233
SELECT ALL COUNT ( ALL + col2 ) - - COUNT ( ALL - - 51 ) FROM tab2
----
6

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

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

query I rowsort
SELECT col1 * col0 + + 45 FROM tab0 AS cor0
----
1260
142
1872

onlyif mysql # aggregate syntax: 
query I rowsort label-6236
SELECT + 55 * MIN( + col2 ) * 90 AS col0 FROM tab0 AS cor0
----
49500

skipif mysql # not compatible
query I rowsort label-6236
SELECT + 55 * MIN ( + col2 ) * 90 AS col0 FROM tab0 AS cor0
----
49500

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6237
SELECT ALL * FROM tab1 AS cor0 WHERE + 2 IN ( col2, 65 + - col2, CAST( - 99 AS SIGNED ), + + col2 * - ( - + col2 ) * + col1 * col1 )
----

skipif mysql # not compatible
query III rowsort label-6237
SELECT ALL * FROM tab1 AS cor0 WHERE + 2 IN ( col2, 65 + - col2, CAST ( - 99 AS INTEGER ), + + col2 * - ( - + col2 ) * + col1 * col1 )
----

query I rowsort
SELECT DISTINCT - 54 - + - 32 AS col2 FROM tab1
----
-22

query I rowsort
SELECT DISTINCT 9 AS col0 FROM tab0 WHERE NOT 75 <= col1 AND 90 + + col0 IS NOT NULL
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-6240
SELECT ALL - + SUM( ALL - 92 ) FROM tab0 cor0
----
276

skipif mysql # not compatible
query I rowsort label-6240
SELECT ALL - + SUM ( ALL - 92 ) FROM tab0 cor0
----
276

query I rowsort
SELECT DISTINCT + + 69 AS col2 FROM tab0 AS cor0
----
69

query I rowsort
SELECT - - col2 * - 53 AS col2 FROM tab2 AS cor0
----
-1219
-2120
-3074

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6244
SELECT COUNT( * ) * - 92 FROM tab0
----
-276

skipif mysql # not compatible
query I rowsort label-6244
SELECT COUNT ( * ) * - 92 FROM tab0
----
-276

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL BETWEEN NULL AND - + col2 + + col0 + 22 + - 18 * col2
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6246
SELECT ALL 66 * + ( + - MAX( + + CAST( + - col0 AS SIGNED ) ) ) FROM tab2
----
3036

skipif mysql # not compatible
query I rowsort label-6246
SELECT ALL 66 * + ( + - MAX ( + + CAST ( + - col0 AS INTEGER ) ) ) FROM tab2
----
3036

onlyif mysql # aggregate syntax: 
query I rowsort label-6247
SELECT ALL - MAX( ALL + col2 ) FROM tab1
----
-96

skipif mysql # not compatible
query I rowsort label-6247
SELECT ALL - MAX ( ALL + col2 ) FROM tab1
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-6248
SELECT DISTINCT MIN( - 3 ) * + MIN( + col2 ) AS col1 FROM tab1
----
-177

skipif mysql # not compatible
query I rowsort label-6248
SELECT DISTINCT MIN ( - 3 ) * + MIN ( + col2 ) AS col1 FROM tab1
----
-177

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6249
SELECT ALL 1 AS col1, CAST( NULL AS SIGNED ) * + COUNT( * ) AS col2 FROM tab1
----
1
NULL

skipif mysql # not compatible
query II rowsort label-6249
SELECT ALL 1 AS col1, CAST ( NULL AS INTEGER ) * + COUNT ( * ) AS col2 FROM tab1
----
1
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6250
SELECT ALL SUM( - col2 ) AS col2 FROM tab0 WHERE + col0 IS NOT NULL
----
-156

skipif mysql # not compatible
query I rowsort label-6250
SELECT ALL SUM ( - col2 ) AS col2 FROM tab0 WHERE + col0 IS NOT NULL
----
-156

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6252
SELECT + COUNT( + col2 ) * - 19 * + + 17 + + SUM( - col0 ) AS col0, 45 col0 FROM tab0 AS cor0
----
-1168
45

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6252
SELECT + COUNT ( + col2 ) * - 19 * + + 17 + + SUM ( - col0 ) AS col0, 45 col0 FROM tab0 AS cor0
----
-1168
45

query I rowsort
SELECT DISTINCT col0 + + - col0 + - - col1 FROM tab2 cor0
----
51
67
77

query I rowsort
SELECT DISTINCT + 92 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
92

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6257
SELECT + 56 * col2 + + - col1 + col1 + - 24 DIV + 30 AS col2 FROM tab1 AS cor0
----
3304
3808
5376

skipif mysql # not compatible
query I rowsort label-6257
SELECT + 56 * col2 + + - col1 + col1 + - 24 / + 30 AS col2 FROM tab1 AS cor0
----
3304
3808
5376

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-6259
SELECT ALL 0, CAST( - col0 AS DECIMAL ) AS col1 FROM tab0 AS cor0 WHERE NOT - + 67 <= NULL OR NOT NULL IS NULL
----

skipif mysql # not compatible
query II rowsort label-6259
SELECT ALL 0, CAST ( - col0 AS REAL ) AS col1 FROM tab0 AS cor0 WHERE NOT - + 67 <= NULL OR NOT NULL IS NULL
----

query I rowsort
SELECT - 59 + 26 * - 30 AS col2 FROM tab0 AS cor0
----
-839
-839
-839

query I rowsort
SELECT ALL col0 + - 18 AS col0 FROM tab2 AS cor0
----
28
46
57

query I rowsort
SELECT DISTINCT + + col1 + - 97 FROM tab2 AS cor0
----
-20
-30
-46

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

query I rowsort
SELECT - col0 + - 29 FROM tab2 AS cor0
----
-104
-75
-93

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL <= 74
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6267
SELECT DISTINCT CAST( NULL AS SIGNED ) + 50 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-6267
SELECT DISTINCT CAST ( NULL AS INTEGER ) + 50 FROM tab2
----
NULL

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6269
SELECT 76 * 59 DIV + + col1 AS col1 FROM tab0
----
213
4484
55

skipif mysql # not compatible
query I rowsort label-6269
SELECT 76 * 59 / + + col1 AS col1 FROM tab0
----
213
4484
55

query III rowsort
SELECT * FROM tab1 WHERE - 85 + + 86 IS NULL
----

query I rowsort
SELECT DISTINCT col1 - + col1 AS col1 FROM tab0
----
0

query II rowsort
SELECT - - 27 * + + col0 * 40, col2 FROM tab1 AS cor0
----
55080
96
91800
59
98280
68

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN NULL AND 58
----

query I rowsort
SELECT + 38 - - 83 * + 91 FROM tab0 AS cor0
----
7591
7591
7591

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6277
SELECT ALL - MIN( + col2 ) - + 95 FROM tab0
----
-105

skipif mysql # not compatible
query I rowsort label-6277
SELECT ALL - MIN ( + col2 ) - + 95 FROM tab0
----
-105

query I rowsort
SELECT + ( - - ( + ( + 73 ) ) ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to e5fbf5d129b181bacd6113bbc8732496

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

query III rowsort
SELECT * FROM tab2 WHERE NOT 21 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6281
SELECT DISTINCT + ( SUM( + 47 ) ) AS col0 FROM tab0 AS cor0
----
141

skipif mysql # not compatible
query I rowsort label-6281
SELECT DISTINCT + ( SUM ( + 47 ) ) AS col0 FROM tab0 AS cor0
----
141

onlyif mysql # aggregate syntax: 
query I rowsort label-6282
SELECT SUM( - - 23 ) AS col0 FROM tab2 AS cor0
----
69

skipif mysql # not compatible
query I rowsort label-6282
SELECT SUM ( - - 23 ) AS col0 FROM tab2 AS cor0
----
69

query I rowsort
SELECT ALL + + col0 * col2 * - col2 AS col1 FROM tab2 AS cor0
----
-102400
-24334
-252300

onlyif mysql # aggregate syntax: 
query I rowsort label-6284
SELECT COUNT( * ) * + 41 * + - COUNT( * ) FROM tab1
----
-369

skipif mysql # not compatible
query I rowsort label-6284
SELECT COUNT ( * ) * + 41 * + - COUNT ( * ) FROM tab1
----
-369

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

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

query I rowsort
SELECT + col0 * col0 * + col1 * 83 FROM tab2
----
26177536
31280625
8957028

onlyif mysql # aggregate syntax: 
query I rowsort label-6287
SELECT MIN( DISTINCT - col1 ) * - - 54 FROM tab2
----
-4158

skipif mysql # not compatible
query I rowsort label-6287
SELECT MIN ( DISTINCT - col1 ) * - - 54 FROM tab2
----
-4158

query II rowsort
SELECT ALL - 82, - ( 42 ) AS col2 FROM tab0
----
-82
-42
-82
-42
-82
-42

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6290
SELECT DISTINCT col0 + - + CAST( NULL AS SIGNED ), + col2 AS col1 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query II rowsort label-6290
SELECT DISTINCT col0 + - + CAST ( NULL AS INTEGER ), + col2 AS col1 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6291
SELECT * FROM tab2 cor0 WHERE NOT - col1 * + CAST( NULL AS DECIMAL ) < col0 * - col0 + col1 * + col1
----

skipif mysql # not compatible
query III rowsort label-6291
SELECT * FROM tab2 cor0 WHERE NOT - col1 * + CAST ( NULL AS REAL ) < col0 * - col0 + col1 * + col1
----

query I rowsort
SELECT + ( - col0 ) + - 49 FROM tab2
----
-113
-124
-95

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL IS NOT NULL
----
54 values hashing to 375f372843089b03f23b00160007527a

query II rowsort
SELECT DISTINCT + col2, 17 AS col1 FROM tab0
----
10
17
47
17
99
17

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6295
SELECT CAST( NULL AS DECIMAL ) AS col1, + col0 * - col2 * + 53 AS col2, - 59 AS col0 FROM tab1
----
9 values hashing to 93056c1fbe2244703bddd6f53a6acbfc

skipif mysql # not compatible
query III rowsort label-6295
SELECT CAST ( NULL AS REAL ) AS col1, + col0 * - col2 * + 53 AS col2, - 59 AS col0 FROM tab1
----
9 values hashing to 93056c1fbe2244703bddd6f53a6acbfc

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6298
SELECT ALL + - 3 * - COUNT( * ) + + MIN( + - col2 ) AS col1 FROM tab0 AS cor0 WHERE + col0 + - - col0 / col2 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6298
SELECT ALL + - 3 * - COUNT ( * ) + + MIN ( + - col2 ) AS col1 FROM tab0 AS cor0 WHERE + col0 + - - col0 / col2 IS NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT DISTINCT + col1 col2, 1, ( 88 ) AS col1 FROM tab1 AS cor0
----
9 values hashing to f138a90defd7430cfd24bc99cf6200c9

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

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

query I rowsort
SELECT ALL ( + - 71 ) + - 98 + + 21 FROM tab0 cor0
----
-148
-148
-148

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + + col1 col0 FROM tab2 cor0
----
1173
3080
3886

onlyif mysql # aggregate syntax: 
query I rowsort label-6304
SELECT ALL 5 * 82 - - COUNT( * ) AS col0 FROM tab0 AS cor0
----
413

skipif mysql # not compatible
query I rowsort label-6304
SELECT ALL 5 * 82 - - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
413

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

query I rowsort
SELECT - 82 + - 71 FROM tab2
----
-153
-153
-153

query II rowsort
SELECT 66 + col0, + 41 AS col0 FROM tab1
----
117
41
151
41
157
41

query II rowsort
SELECT DISTINCT ( col1 ) + - 14 * + col2 * - + 70 AS col0, + col0 AS col2 FROM tab0
----
46141
15
97021
97
9821
87

onlyif mysql # DIV for integer division: 
query I rowsort label-6309
SELECT 60 DIV col2 * + col1 + - - 56 FROM tab2
----
123
133
158

skipif mysql # not compatible
query I rowsort label-6309
SELECT 60 / col2 * + col1 + - - 56 FROM tab2
----
123
133
158

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

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

query I rowsort
SELECT DISTINCT 26 FROM tab1 WHERE NOT ( - col1 ) NOT IN ( - col2 )
----

query I rowsort
SELECT DISTINCT col1 * + - 96 AS col2 FROM tab0
----
-2016
-7776
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-6313
SELECT + COUNT( + col1 ) FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-6313
SELECT + COUNT ( + col1 ) FROM tab2 cor0
----
3

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

skipif mysql # not compatible
query I rowsort label-6314
SELECT - + COUNT ( * ) * + MIN ( ALL - col0 ) AS col2 FROM tab2 AS cor0
----
225

query I rowsort
SELECT DISTINCT - + col1 * 74 FROM tab0 AS cor0
----
-1554
-5994
-74

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

query II rowsort
SELECT ALL col0, 4 FROM tab2
----
46
4
64
4
75
4

onlyif mysql # aggregate syntax: 
query I rowsort label-6318
SELECT DISTINCT + COUNT( * ) * + - 4 * - COUNT( * ) AS col2 FROM tab0
----
36

skipif mysql # not compatible
query I rowsort label-6318
SELECT DISTINCT + COUNT ( * ) * + - 4 * - COUNT ( * ) AS col2 FROM tab0
----
36

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

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

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 30 * - col1 BETWEEN - col1 AND - - 55 + - - col2 * + col0 * col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL 50 AS col2 FROM tab2 cor0 WHERE NULL IS NULL
----
50
50
50

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

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

query I rowsort
SELECT + + ( + 68 ) AS col0 FROM tab1 cor0
----
68
68
68

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - 78 ) * - col2 col1 FROM tab2
----
1794
3120
4524

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

query I rowsort
SELECT 61 * + col2 * + col0 FROM tab2
----
156160
265350
64538

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6331
SELECT ALL 84 + + + COUNT( * ) AS col1 FROM tab0 AS cor0
----
87

skipif mysql # not compatible
query I rowsort label-6331
SELECT ALL 84 + + + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-6332
SELECT ALL + - MIN( 48 ) FROM tab2 AS cor0
----
-48

skipif mysql # not compatible
query I rowsort label-6332
SELECT ALL + - MIN ( 48 ) FROM tab2 AS cor0
----
-48

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6334
SELECT DISTINCT 58 + COUNT( * ) + - - 44 AS col2 FROM tab1
----
105

skipif mysql # not compatible
query I rowsort label-6334
SELECT DISTINCT 58 + COUNT ( * ) + - - 44 AS col2 FROM tab1
----
105

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6336
SELECT ALL col1 + + col1 DIV - CAST( + ( 89 ) AS SIGNED ), 10 col1 FROM tab2
----
51
10
67
10
77
10

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6336
SELECT ALL col1 + + col1 / - CAST ( + ( 89 ) AS INTEGER ), 10 col1 FROM tab2
----
51
10
67
10
77
10

query I rowsort
SELECT 55 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 1626bd3008abd9f18cc88cdecf7b64d0

query I rowsort
SELECT + ( - col1 ) + - 72 * - 96 FROM tab1
----
6865
6898
6907

query I rowsort
SELECT 38 + + + 83 AS col0 FROM tab0
----
121
121
121

query I rowsort
SELECT - 47 + - 93 + + col1 FROM tab1 AS cor0
----
-126
-135
-93

onlyif mysql # DIV for integer division: 
query I rowsort label-6341
SELECT + + col0 DIV + col2 FROM tab2 AS cor0 WHERE 30 * 47 NOT BETWEEN NULL AND col1
----
1
1
2

skipif mysql # not compatible
query I rowsort label-6341
SELECT + + col0 / + col2 FROM tab2 AS cor0 WHERE 30 * 47 NOT BETWEEN NULL AND col1
----
1
1
2

onlyif mysql # DIV for integer division: 
query I rowsort label-6342
SELECT col2 + + col1 + col2 DIV col1 + col2 + - + col0 FROM tab1 AS cor0
----
161
49
93

skipif mysql # not compatible
query I rowsort label-6342
SELECT col2 + + col1 + col2 / col1 + col2 + - + col0 FROM tab1 AS cor0
----
161
49
93

query I rowsort
SELECT ALL + 53 + + 80 FROM tab1 AS cor0
----
133
133
133

query I rowsort
SELECT ALL + col1 + + 64 FROM tab0 AS cor0
----
145
65
85

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col1 * col0 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6346
SELECT ALL - col1 * + col0 * - + CAST( 76 AS SIGNED ) AS col2 FROM tab2
----
178296
374528
381900

skipif mysql # not compatible
query I rowsort label-6346
SELECT ALL - col1 * + col0 * - + CAST ( 76 AS INTEGER ) AS col2 FROM tab2
----
178296
374528
381900

query I rowsort
SELECT DISTINCT ( + + col2 ) * + 46 AS col1 FROM tab1
----
2714
3128
4416

onlyif mysql # aggregate syntax: 
query I rowsort label-6348
SELECT ALL SUM( - - col1 ) - + COUNT( * ) FROM tab2
----
192

skipif mysql # not compatible
query I rowsort label-6348
SELECT ALL SUM ( - - col1 ) - + COUNT ( * ) FROM tab2
----
192

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + 66 * 14 + - 99 <> + + col0 * + ( + 6 ) / + col0 * col2
----

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

query I rowsort
SELECT - - col1 * + - col2 FROM tab0 cor0
----
-210
-3807
-99

query I rowsort
SELECT ALL 2 + + col2 AS col2 FROM tab0 AS cor0 WHERE - col0 IS NOT NULL
----
101
12
49

query I rowsort
SELECT ( + + 88 ) FROM tab1
----
88
88
88

query I rowsort
SELECT DISTINCT 50 * + - 32 AS col2 FROM tab0
----
-1600

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6355
SELECT ALL * FROM tab1 AS cor0 WHERE ( NOT - - CAST( NULL AS DECIMAL ) BETWEEN col2 * - col2 AND NULL )
----

skipif mysql # not compatible
query III rowsort label-6355
SELECT ALL * FROM tab1 AS cor0 WHERE ( NOT - - CAST ( NULL AS REAL ) BETWEEN col2 * - col2 AND NULL )
----

query I rowsort
SELECT DISTINCT - 38 - - - col2 AS col0 FROM tab0 AS cor0 WHERE NULL <= col2
----

query I rowsort
SELECT - col2 * + 72 FROM tab1
----
-4248
-4896
-6912

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL IN ( - 36, + 26 )
----

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6360
SELECT col0 DIV - + CAST( col2 AS SIGNED ) FROM tab0
----
-8
0
0

skipif mysql # not compatible
query I rowsort label-6360
SELECT col0 / - + CAST ( col2 AS INTEGER ) FROM tab0
----
-8
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6361
SELECT ALL - COUNT( * ) * + ( - - 39 ) AS col0 FROM tab2
----
-117

skipif mysql # not compatible
query I rowsort label-6361
SELECT ALL - COUNT ( * ) * + ( - - 39 ) AS col0 FROM tab2
----
-117

query I rowsort
SELECT DISTINCT ( + 19 ) AS col0 FROM tab1
----
19

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6364
SELECT - + 34 * 99 + - - COUNT( * ) * - + COUNT( * ) FROM tab0 AS cor0
----
-3375

skipif mysql # not compatible
query I rowsort label-6364
SELECT - + 34 * 99 + - - COUNT ( * ) * - + COUNT ( * ) FROM tab0 AS cor0
----
-3375

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

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

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

query I rowsort
SELECT 14 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 83e5779d2487d12495e7d816c797264f

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - 50 * - col0 <= - - 81 * 25
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

query I rowsort
SELECT + AVG ( DISTINCT + - col0 ) AS col1 FROM tab2 WHERE NOT col2 IS NULL AND NULL = NULL
----
NULL

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

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

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

query I rowsort
SELECT + 6 + - + col2 FROM tab2
----
-17
-34
-52

query I rowsort
SELECT DISTINCT + col2 * ( col2 ) * + - 65 * ( + - 65 ) - col2 AS col1 FROM tab0
----
41409126
422490
9332978

query I rowsort
SELECT DISTINCT col1 * + + 68 * + col0 * - col2 FROM tab0
----
-1242360
-3883140
-653004

onlyif mysql # aggregate syntax: 
query I rowsort label-6376
SELECT SUM( 25 ) AS col0 FROM tab2
----
75

skipif mysql # not compatible
query I rowsort label-6376
SELECT SUM ( 25 ) AS col0 FROM tab2
----
75

query I rowsort
SELECT DISTINCT + ( + 38 ) AS col2 FROM tab0 AS cor0
----
38

query I rowsort
SELECT ( - col2 ) * - - col1 * - col0 FROM tab2
----
197120
291450
53958

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6379
SELECT DISTINCT SUM( - col2 ) * MIN( col1 ) DIV - + ( + ( COUNT( * ) ) ) AS col0 FROM tab0
----
52

skipif mysql # not compatible
query I rowsort label-6379
SELECT DISTINCT SUM ( - col2 ) * MIN ( col1 ) / - + ( + ( COUNT ( * ) ) ) AS col0 FROM tab0
----
52

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

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

query I rowsort
SELECT ALL + - 48 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 31c94943c073954e4ca20b170ab61f8c

query I rowsort
SELECT + 91 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 5748627ef5fd86a21cd559fd278d7277

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

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

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

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

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

query I rowsort
SELECT - ( - + col0 ) * + + col1 * 85 * + + col0 FROM tab1 AS cor0
----
3070625
3095190
33082595

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6388
SELECT * FROM tab2 AS cor0 WHERE NULL IS NULL AND NOT ( NOT + col0 <> - + col2 - + CAST( NULL AS DECIMAL ) )
----

skipif mysql # not compatible
query III rowsort label-6388
SELECT * FROM tab2 AS cor0 WHERE NULL IS NULL AND NOT ( NOT + col0 <> - + col2 - + CAST ( NULL AS REAL ) )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 72 NOT BETWEEN NULL AND - 90 * + 70 + - 50
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col2 + - + col0 * + - col2 * col1 FROM tab0 cor0
----
18260
57058
9504

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col0 < + col1
----
75
67
58

query I rowsort
SELECT - col2 + + 48 + - - col1 + - 76 + ( col0 ) + - col2 * - + 57 * + 90 * + col2 FROM tab2 AS cor0
----
17257376
2713816
8208073

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( NOT NULL NOT IN ( + col1, 70, col1 ) )
----

query I rowsort
SELECT + + col1 / col0 FROM tab2 WHERE ( - 24 * - - 79 / + + col0 - - col2 - - + 94 * + col1 IS NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6395
SELECT - 51 * + COUNT( DISTINCT - 40 ) FROM tab2
----
-51

skipif mysql # not compatible
query I rowsort label-6395
SELECT - 51 * + COUNT ( DISTINCT - 40 ) FROM tab2
----
-51

query I rowsort
SELECT DISTINCT + ( - col2 ) AS col0 FROM tab2 WHERE NOT - 50 + + + col0 + col0 * - - ( + 8 ) IS NOT NULL
----

query I rowsort
SELECT + col0 * 8 * col1 * - 34 FROM tab0
----
-26384
-330480
-496944

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6399
SELECT ALL - MAX( + col0 ) FROM tab2
----
-75

skipif mysql # not compatible
query I rowsort label-6399
SELECT ALL - MAX ( + col0 ) FROM tab2
----
-75

query II rowsort
SELECT DISTINCT col1 AS col0, + 56 AS col1 FROM tab1
----
14
56
47
56
5
56

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 61 - - col2 col2 FROM tab1
----
120
129
157

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6404
SELECT - 89 DIV - col2 + - + col2 * - - col0 AS col1 FROM tab2 cor0
----
-1055
-2558
-4349

skipif mysql # not compatible
query I rowsort label-6404
SELECT - 89 / - col2 + - + col2 * - - col0 AS col1 FROM tab2 cor0
----
-1055
-2558
-4349

query I rowsort
SELECT + - col0 * - 6 AS col0 FROM tab0 AS cor0
----
522
582
90

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

query II rowsort
SELECT ALL - col1 AS col0, + 52 FROM tab1 AS cor0
----
-14
52
-47
52
-5
52

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

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

query II rowsort
SELECT ALL + col2 * - col1 + + - col0, 24 + 98 AS col1 FROM tab0 AS cor0
----
-196
122
-297
122
-3822
122

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

query I rowsort
SELECT - ( - - col0 ) * + col1 AS col1 FROM tab2 AS cor0 WHERE ( + 26 ) <> + 22
----
-2346
-4928
-5025

onlyif mysql # aggregate syntax: 
query II rowsort label-6412
SELECT DISTINCT - MIN( col0 ) AS col0, COUNT( * ) FROM tab1
----
-51
3

skipif mysql # not compatible
query II rowsort label-6412
SELECT DISTINCT - MIN ( col0 ) AS col0, COUNT ( * ) FROM tab1
----
-51
3

onlyif mysql # aggregate syntax: 
query II rowsort label-6413
SELECT DISTINCT MAX( - - 84 ), + 90 AS col2 FROM tab0
----
84
90

skipif mysql # not compatible
query II rowsort label-6413
SELECT DISTINCT MAX ( - - 84 ), + 90 AS col2 FROM tab0
----
84
90

onlyif mysql # aggregate syntax: 
query I rowsort label-6414
SELECT - 24 * - + SUM( DISTINCT 78 ) AS col1 FROM tab2
----
1872

skipif mysql # not compatible
query I rowsort label-6414
SELECT - 24 * - + SUM ( DISTINCT 78 ) AS col1 FROM tab2
----
1872

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

query I rowsort
SELECT + ( 38 ) FROM tab0
----
38
38
38

query I rowsort
SELECT - - 5 AS col0 FROM tab1 cor0
----
5
5
5

query I rowsort
SELECT DISTINCT + 50 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT + + 99 + - - 2 AS col0, 54 + - ( + 82 ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT 21 * 83 AS col1 FROM tab0
----
1743
1743
1743

query I rowsort
SELECT ALL + 9 FROM tab0, tab2 cor0 WHERE NOT NULL IS NOT NULL
----
9 values hashing to 03b93b53107e36cf7d524e48c509b17b

onlyif mysql # aggregate syntax: 
query II rowsort label-6422
SELECT - 65 AS col1, COUNT( * ) AS col0 FROM tab1
----
-65
3

skipif mysql # not compatible
query II rowsort label-6422
SELECT - 65 AS col1, COUNT ( * ) AS col0 FROM tab1
----
-65
3

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

query I rowsort
SELECT DISTINCT + col0 + + 60 FROM tab0 AS cor0
----
147
157
75

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

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

query I rowsort
SELECT ALL - + 84 + - col2 FROM tab1 AS cor0
----
-143
-152
-180

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

query II rowsort
SELECT DISTINCT + 82 AS col1, + 74 FROM tab2
----
82
74

query I rowsort
SELECT 56 * + + 26 AS col2 FROM tab1
----
1456
1456
1456

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

skipif mysql # not compatible
query I rowsort label-6431
SELECT ALL col1 / + - 2 FROM tab0
----
-10
-40
0

query II rowsort
SELECT DISTINCT col1 AS col1, - 64 FROM tab2
----
51
-64
67
-64
77
-64

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

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

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

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

query I rowsort
SELECT - col2 + + 92 AS col0 FROM tab0
----
-7
45
82

query II rowsort
SELECT ALL 93 AS col0, - col2 AS col0 FROM tab0
----
93
-10
93
-47
93
-99

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

query I rowsort
SELECT DISTINCT + - 7 * - + ( + - col2 ) + + + col1 FROM tab2 AS cor0
----
-110
-203
-339

onlyif mysql # aggregate syntax: 
query I rowsort label-6439
SELECT - SUM( + - 85 ) FROM tab1 AS cor0
----
255

skipif mysql # not compatible
query I rowsort label-6439
SELECT - SUM ( + - 85 ) FROM tab1 AS cor0
----
255

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6440
SELECT - col2 - - + 0 * - 34 * CAST( NULL AS SIGNED ) FROM tab1 WHERE + 7 * + 72 IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6440
SELECT - col2 - - + 0 * - 34 * CAST ( NULL AS INTEGER ) FROM tab1 WHERE + 7 * + 72 IS NOT NULL
----
NULL
NULL
NULL

query II rowsort
SELECT + + 16 - + col2 AS col0, - 93 AS col1 FROM tab1 AS cor0
----
-43
-93
-52
-93
-80
-93

onlyif mysql # DIV for integer division: 
query I rowsort label-6442
SELECT DISTINCT - 97 DIV - col1 AS col1 FROM tab1 AS cor0
----
19
2
6

skipif mysql # not compatible
query I rowsort label-6442
SELECT DISTINCT - 97 / - col1 AS col1 FROM tab1 AS cor0
----
19
2
6

onlyif mysql # aggregate syntax: 
query I rowsort label-6443
SELECT + COUNT( * ) * - 35 + + COUNT( * ) AS col0 FROM tab1 AS cor0
----
-102

skipif mysql # not compatible
query I rowsort label-6443
SELECT + COUNT ( * ) * - 35 + + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-102

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6448
SELECT MAX( + 40 ) AS col2 FROM tab1, tab2 cor0
----
40

skipif mysql # not compatible
query I rowsort label-6448
SELECT MAX ( + 40 ) AS col2 FROM tab1, tab2 cor0
----
40

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

query III rowsort
SELECT ALL * FROM tab1 WHERE - col2 NOT BETWEEN - col2 AND 43
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6451
SELECT + - 52 * - CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6451
SELECT + - 52 * - CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL

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

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

query II rowsort
SELECT - col2 AS col2, ( col1 ) FROM tab2 AS cor0 WHERE NOT - col0 * + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6454
SELECT MIN( - 15 ) FROM tab2 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-6454
SELECT MIN ( - 15 ) FROM tab2 AS cor0
----
-15

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6459
SELECT - SUM( ALL - col0 ) AS col1 FROM tab1
----
227

skipif mysql # not compatible
query I rowsort label-6459
SELECT - SUM ( ALL - col0 ) AS col1 FROM tab1
----
227

query I rowsort
SELECT col0 AS col0 FROM tab1 WHERE ( - col1 ) * col1 = 72
----

query I rowsort
SELECT ALL 3 FROM tab1 WHERE NOT NULL = + 21 * 81
----

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 - 16 col2 FROM tab2
----
30
48
59

query I rowsort
SELECT DISTINCT + 57 * + col1 AS col2 FROM tab1
----
2679
285
798

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

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

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

query III rowsort
SELECT * FROM tab1 WHERE NOT - col0 > col2 * + 32
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

query I rowsort
SELECT + 37 - col1 AS col2 FROM tab0
----
-44
16
36

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - col2 / - col0 <= - 17 + 3 / col2
----

query I rowsort
SELECT + col1 * 27 FROM tab0
----
2187
27
567

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

query I rowsort
SELECT DISTINCT + 61 * - col1 AS col2 FROM tab1
----
-2867
-305
-854

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6479
SELECT ( + 52 ) DIV 45 + + col1 * + col2 AS col2 FROM tab2 WHERE ( - col2 + + col1 ) IS NOT NULL
----
1174
3081
3887

skipif mysql # not compatible
query I rowsort label-6479
SELECT ( + 52 ) / 45 + + col1 * + col2 AS col2 FROM tab2 WHERE ( - col2 + + col1 ) IS NOT NULL
----
1174
3081
3887

onlyif mysql # aggregate syntax: 
query I rowsort label-6480
SELECT DISTINCT 89 * COUNT( * ) AS col1 FROM tab1
----
267

skipif mysql # not compatible
query I rowsort label-6480
SELECT DISTINCT 89 * COUNT ( * ) AS col1 FROM tab1
----
267

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6481
SELECT COUNT( * ) AS col0 FROM tab1 WHERE ( NULL ) NOT IN ( - CAST( + 6 AS SIGNED ) * - col1 )
----
0

skipif mysql # not compatible
query I rowsort label-6481
SELECT COUNT ( * ) AS col0 FROM tab1 WHERE ( NULL ) NOT IN ( - CAST ( + 6 AS INTEGER ) * - col1 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6482
SELECT - AVG ( DISTINCT - CAST( NULL AS SIGNED ) ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-6482
SELECT - AVG ( DISTINCT - CAST ( NULL AS INTEGER ) ) AS col1 FROM tab2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6483
SELECT DISTINCT COUNT( * ) col1 FROM tab1 WHERE NOT + col1 >= ( + col0 + CAST( ( - 59 ) AS SIGNED ) )
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6483
SELECT DISTINCT COUNT ( * ) col1 FROM tab1 WHERE NOT + col1 >= ( + col0 + CAST ( ( - 59 ) AS INTEGER ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6484
SELECT DISTINCT COUNT( * ) * 52 FROM tab0 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-6484
SELECT DISTINCT COUNT ( * ) * 52 FROM tab0 AS cor0
----
156

onlyif mysql # aggregate syntax: 
query I rowsort label-6485
SELECT ALL + COUNT( * ) + COUNT( * ) AS col1 FROM tab2 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-6485
SELECT ALL + COUNT ( * ) + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
6

onlyif mysql # DIV for integer division: 
query I rowsort label-6486
SELECT + col0 - - col0 DIV col1 FROM tab2 AS cor0
----
46
64
76

skipif mysql # not compatible
query I rowsort label-6486
SELECT + col0 - - col0 / col1 FROM tab2 AS cor0
----
46
64
76

query I rowsort
SELECT + 88 FROM tab1 cor0 WHERE ( - 12 * - col1 + col2 ) IS NOT NULL
----
88
88
88

query I rowsort
SELECT col1 * + 55 + - col1 FROM tab2 cor0
----
2754
3618
4158

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab2 WHERE NOT NULL IN ( 11 )
----

query IIIIII rowsort
SELECT ALL * FROM ( tab1 cor0 CROSS JOIN tab1 )
----
54 values hashing to 375f372843089b03f23b00160007527a

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

query III rowsort
SELECT * FROM tab0 WHERE NULL < ( col1 / col1 )
----

query I rowsort
SELECT - ( - col2 ) * + ( + 99 ) + + col0 AS col2 FROM tab2
----
2323
4024
5817

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6495
SELECT ALL - COUNT( * ) * - COUNT( * ) AS col2 FROM tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-6495
SELECT ALL - COUNT ( * ) * - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
9

query I rowsort
SELECT ALL + 49 * + col1 AS col2 FROM tab1 AS cor0
----
2303
245
686

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 / col1 col2 FROM tab2 AS cor0 WHERE NOT col1 BETWEEN NULL AND ( col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 19 * + col1 col1 FROM tab1 AS cor0
----
-266
-893
-95

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

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

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

query I rowsort
SELECT ALL + col0 + col2 * col0 FROM tab1 AS cor0 WHERE NOT ( 50 + col0 * 91 ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6502
SELECT ALL - 71 DIV - col1 AS col0 FROM tab2 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-6502
SELECT ALL - 71 / - col1 AS col0 FROM tab2 AS cor0
----
0
1
1

query I rowsort
SELECT DISTINCT - - ( 19 ) AS col0 FROM tab1 AS cor0
----
19

query I rowsort
SELECT col2 * 40 AS col0 FROM tab1
----
2360
2720
3840

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6506
SELECT ALL - ( - COUNT( DISTINCT + 86 ) ) AS col2 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-6506
SELECT ALL - ( - COUNT ( DISTINCT + 86 ) ) AS col2 FROM tab0
----
1

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

query I rowsort
SELECT ALL col0 * - ( - 4 ) AS col2 FROM tab2
----
184
256
300

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

query I rowsort
SELECT ( + col1 ) FROM tab1 WHERE NOT - ( + ( col0 ) ) / col2 >= NULL
----

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * + col0 col0 FROM tab1
----
-2601
-7225
-8281

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6514
SELECT DISTINCT - MAX( + col1 ) FROM tab2 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-6514
SELECT DISTINCT - MAX ( + col1 ) FROM tab2 AS cor0
----
-77

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

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

query I rowsort
SELECT - 62 + + 99 + + 97 FROM tab2 AS cor0
----
134
134
134

query I rowsort
SELECT ALL - col0 FROM tab0 AS cor0 WHERE col2 * 51 NOT BETWEEN NULL AND NULL
----

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

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

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

query IIIIII rowsort
SELECT ALL * FROM tab1, tab0 AS cor0 WHERE NOT + 11 IS NOT NULL
----

query I rowsort
SELECT - - 30 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to da5de0c411a2c0f445400f1b63ea9f89

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

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

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col0 BETWEEN + 79 * + 72 AND NULL OR NOT col2 < ( NULL )
----

query I rowsort
SELECT + col1 + + 3 FROM tab2 AS cor0 WHERE ( col1 * - 44 ) IN ( 44 )
----

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

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

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

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

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

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

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

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

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

query II rowsort
SELECT ALL + 50 + col1, ( 8 ) + 99 AS col0 FROM tab2
----
101
107
117
107
127
107

query I rowsort
SELECT DISTINCT - col0 + + ( - ( 9 ) ) AS col1 FROM tab0
----
-106
-24
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-6535
SELECT COUNT( * ) + - 25 * + + 76 FROM tab2
----
-1897

skipif mysql # not compatible
query I rowsort label-6535
SELECT COUNT ( * ) + - 25 * + + 76 FROM tab2
----
-1897

query III rowsort
SELECT * FROM tab1 WHERE - 67 BETWEEN + + col0 + + 19 AND - col0
----

query I rowsort
SELECT DISTINCT 13 * + - col1 - 47 AS col2 FROM tab0
----
-1100
-320
-60

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6538
SELECT ALL * FROM tab2 WHERE NOT NULL IN ( - CAST( - + 86 AS SIGNED ) * - 84 - + col2 )
----

skipif mysql # not compatible
query III rowsort label-6538
SELECT ALL * FROM tab2 WHERE NOT NULL IN ( - CAST ( - + 86 AS INTEGER ) * - 84 - + col2 )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - 99 > - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

query I rowsort
SELECT DISTINCT - col2 FROM tab1 AS cor0 WHERE NOT col2 < + 97
----

onlyif mysql # aggregate syntax: 
query II rowsort label-6542
SELECT - SUM( - col0 ) AS col2, COUNT( * ) AS col0 FROM tab2 AS cor0
----
185
3

skipif mysql # not compatible
query II rowsort label-6542
SELECT - SUM ( - col0 ) AS col2, COUNT ( * ) AS col0 FROM tab2 AS cor0
----
185
3

query I rowsort
SELECT ALL 47 + col2 * - col2 - 42 + + col0 * + col1 FROM tab2 AS cor0
----
1666
1822
3333

query I rowsort
SELECT ALL col1 FROM tab1 AS cor0 WHERE 85 NOT BETWEEN + col2 AND - col1 * 63
----
14
47
5

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

skipif mysql # not compatible
query I rowsort label-6545
SELECT ALL COUNT ( ALL - col0 ) AS col0 FROM tab1
----
3

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6547
SELECT DISTINCT MIN( ALL + col0 ) * - + 70, COUNT( * ) AS col1 FROM tab0
----
-1050
3

skipif mysql # not compatible
query II rowsort label-6547
SELECT DISTINCT MIN ( ALL + col0 ) * - + 70, COUNT ( * ) AS col1 FROM tab0
----
-1050
3

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

query II rowsort
SELECT DISTINCT - + 18 AS col1, - 58 FROM tab2 AS cor0
----
-18
-58

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

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

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

skipif mysql # not compatible
query I rowsort label-6552
SELECT DISTINCT - col0 / + - col0 AS col1 FROM tab1 AS cor0
----
1

query I rowsort
SELECT ALL col1 FROM tab1 cor0 WHERE NULL <= NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 29 < NULL
----

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

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

query II rowsort
SELECT ALL col0, - 72 FROM tab0 AS cor0
----
15
-72
87
-72
97
-72

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

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

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

query I rowsort
SELECT - col0 * 20 * - col2 FROM tab2 AS cor0
----
21160
51200
87000

onlyif mysql # aggregate syntax: 
query I rowsort label-6560
SELECT DISTINCT - - SUM( - 78 ) FROM tab0 AS cor0
----
-234

skipif mysql # not compatible
query I rowsort label-6560
SELECT DISTINCT - - SUM ( - 78 ) FROM tab0 AS cor0
----
-234

query I rowsort
SELECT col2 * + col1 + + + col2 FROM tab2 AS cor0
----
1196
3120
3944

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

query I rowsort
SELECT ALL - 39 * - - ( + - col2 ) FROM tab1
----
2301
2652
3744

query I rowsort
SELECT DISTINCT - col2 FROM tab0 WHERE ( NOT ( NOT - 76 IN ( + col2 ) ) )
----

query I rowsort
SELECT ALL col0 * 31 AS col2 FROM tab0 WHERE NOT NULL BETWEEN ( + - col1 + - + col1 * - col2 + - 58 * col2 ) AND NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6568
SELECT ALL + 13 * - + COUNT( * ) AS col1 FROM tab2
----
-39

skipif mysql # not compatible
query I rowsort label-6568
SELECT ALL + 13 * - + COUNT ( * ) AS col1 FROM tab2
----
-39

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6569
SELECT DISTINCT + 32 * + 37 AS col2 FROM tab1 WHERE + + CAST( 21 AS DECIMAL ) > NULL
----

skipif mysql # not compatible
query I rowsort label-6569
SELECT DISTINCT + 32 * + 37 AS col2 FROM tab1 WHERE + + CAST ( 21 AS REAL ) > NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 51 - - 82 > 35
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query II rowsort label-6571
SELECT DISTINCT + COUNT( * ), - ( - + SUM( + 54 ) ) AS col1 FROM tab2 AS cor0
----
3
162

skipif mysql # not compatible
query II rowsort label-6571
SELECT DISTINCT + COUNT ( * ), - ( - + SUM ( + 54 ) ) AS col1 FROM tab2 AS cor0
----
3
162

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6573
SELECT DISTINCT - 87 * + col1 FROM tab0 cor0 WHERE ( ( col0 ) ) NOT BETWEEN ( 51 * col0 ) AND NULL OR NOT - col0 * + col1 - col2 * - CAST( NULL AS SIGNED ) NOT IN ( 22 + 33 )
----
-1827
-7047
-87

skipif mysql # not compatible
query I rowsort label-6573
SELECT DISTINCT - 87 * + col1 FROM tab0 cor0 WHERE ( ( col0 ) ) NOT BETWEEN ( 51 * col0 ) AND NULL OR NOT - col0 * + col1 - col2 * - CAST ( NULL AS INTEGER ) NOT IN ( 22 + 33 )
----
-1827
-7047
-87

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6576
SELECT ALL col1 DIV - ( - - 57 ) AS col0 FROM tab0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-6576
SELECT ALL col1 / - ( - - 57 ) AS col0 FROM tab0
----
-1
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6577
SELECT MAX( ALL 97 ) + - COUNT( * ) col1 FROM tab0
----
94

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6577
SELECT MAX ( ALL 97 ) + - COUNT ( * ) col1 FROM tab0
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-6578
SELECT - COUNT( * ) FROM tab0 cor0 WHERE col0 / col2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-6578
SELECT - COUNT ( * ) FROM tab0 cor0 WHERE col0 / col2 IS NULL
----
0

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL = - col1 / col2
----

query I rowsort
SELECT DISTINCT + col1 FROM tab2 AS cor0 WHERE + col2 + 30 * - col0 NOT IN ( col1, 72 )
----
51
67
77

query II rowsort
SELECT ALL + + col0 + - col0, + 25 AS col1 FROM tab1 AS cor0
----
0
25
0
25
0
25

query II rowsort
SELECT DISTINCT - col2 - + col2 AS col1, - col0 FROM tab1 AS cor0
----
-118
-85
-136
-91
-192
-51

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

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

query III rowsort
SELECT ALL * FROM tab1 WHERE - - 52 IN ( + col1 * 23, - col2 )
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6587
SELECT * FROM tab2 WHERE col0 NOT BETWEEN + col2 / + col0 AND ( + + col2 + CAST( 55 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-6587
SELECT * FROM tab2 WHERE col0 NOT BETWEEN + col2 / + col0 AND ( + + col2 + CAST ( 55 AS INTEGER ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 - col1 * - col0 col2 FROM tab2
----
2300
4864
4950

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6590
SELECT ALL - col1 DIV - - col2 - + + col0 + + ( - col2 ) FROM tab1
----
-144
-147
-159

skipif mysql # not compatible
query I rowsort label-6590
SELECT ALL - col1 / - - col2 - + + col0 + + ( - col2 ) FROM tab1
----
-144
-147
-159

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 14 * - + 12 col1 FROM tab2
----
-168
-168
-168

onlyif mysql # aggregate syntax: 
query I rowsort label-6592
SELECT DISTINCT - SUM( DISTINCT - col2 ) AS col0 FROM tab0
----
156

skipif mysql # not compatible
query I rowsort label-6592
SELECT DISTINCT - SUM ( DISTINCT - col2 ) AS col0 FROM tab0
----
156

onlyif mysql # DIV for integer division: 
query I rowsort label-6593
SELECT - 57 * col0 DIV - col1 - + + col2 AS col0 FROM tab2
----
28
5
7

skipif mysql # not compatible
query I rowsort label-6593
SELECT - 57 * col0 / - col1 - + + col2 AS col0 FROM tab2
----
28
5
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6594
SELECT DISTINCT - COUNT( ALL + col1 ) * - SUM( ALL CAST( NULL AS SIGNED ) ) - + 92 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-6594
SELECT DISTINCT - COUNT ( ALL + col1 ) * - SUM ( ALL CAST ( NULL AS INTEGER ) ) - + 92 FROM tab1
----
NULL

query I rowsort
SELECT ALL - col1 - + - 73 AS col0 FROM tab1
----
26
59
68

query I rowsort
SELECT - ( - col1 ) * - 7 - col2 * - 2 - + col2 FROM tab0 AS cor0
----
-137
-520
92

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL AND NOT 79 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + + 49 AS col2 FROM tab1 AS cor0
----
49

onlyif mysql # aggregate syntax: 
query II rowsort label-6599
SELECT DISTINCT SUM( DISTINCT 64 ) AS col2, 51 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
64
51

skipif mysql # not compatible
query II rowsort label-6599
SELECT DISTINCT SUM ( DISTINCT 64 ) AS col2, 51 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
64
51

query I rowsort
SELECT - + 89 FROM tab2 cor0
----
-89
-89
-89

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT 86 * + col2 FROM tab2
----
1978
3440
4988

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6606
SELECT DISTINCT + MAX( - + col0 ) col1 FROM tab0
----
-15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6606
SELECT DISTINCT + MAX ( - + col0 ) col1 FROM tab0
----
-15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6607
SELECT ALL 70 DIV COUNT( * ) col1 FROM tab1
----
23

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6607
SELECT ALL 70 / COUNT ( * ) col1 FROM tab1
----
23

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-6609
SELECT - ( + MAX( 95 ) ) AS col0, + CAST( NULL AS DECIMAL ) AS col2 FROM tab0
----
-95
NULL

skipif mysql # not compatible
query II rowsort label-6609
SELECT - ( + MAX ( 95 ) ) AS col0, + CAST ( NULL AS REAL ) AS col2 FROM tab0
----
-95
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col2 * + col1 * - - col1 > NULL
----

query I rowsort
SELECT col0 + + + col1 FROM tab0 AS cor0
----
108
96
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6612
SELECT CAST( MIN( - col1 ) AS SIGNED ) * - 71 - + COUNT( * ) FROM tab1
----
3334

skipif mysql # not compatible
query I rowsort label-6612
SELECT CAST ( MIN ( - col1 ) AS INTEGER ) * - 71 - + COUNT ( * ) FROM tab1
----
3334

query I rowsort
SELECT col2 * - + col0 * col1 * col1 AS col1 FROM tab1
----
-125375
-13669292
-959616

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

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

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

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

query II rowsort
SELECT DISTINCT 72, - col0 + - - col2 * col2 AS col0 FROM tab2 AS cor0
----
72
1536
72
3289
72
483

query III rowsort
SELECT * FROM tab2 cor0 WHERE NULL > - 64
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6619
SELECT + - MAX( ALL + col0 ) - + 71 + - 28 DIV COUNT( * ) FROM tab2 cor0
----
-155

skipif mysql # not compatible
query I rowsort label-6619
SELECT + - MAX ( ALL + col0 ) - + 71 + - 28 / COUNT ( * ) FROM tab2 cor0
----
-155

query I rowsort
SELECT ALL - col2 + + 34 AS col2 FROM tab0 cor0
----
-13
-65
24

onlyif mysql # DIV for integer division: 
query II rowsort label-6621
SELECT col0 - 59 + - col0 * - - col0 AS col0, col0 DIV + - col2 FROM tab2 AS cor0
----
-2129
-2
-4091
-1
-5609
-1

skipif mysql # not compatible
query II rowsort label-6621
SELECT col0 - 59 + - col0 * - - col0 AS col0, col0 / + - col2 FROM tab2 AS cor0
----
-2129
-2
-4091
-1
-5609
-1

query I rowsort
SELECT DISTINCT 42 * + 20 AS col0 FROM tab1 cor0
----
840

query I rowsort
SELECT DISTINCT + 92 * - - ( + + 50 ) + + col0 + - 80 FROM tab2 AS cor0
----
4566
4584
4595

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6624
SELECT + col2 + + CAST( col0 AS SIGNED ) + + + col2 DIV col0 * + + 93 FROM tab2 AS cor0
----
104
133
69

skipif mysql # not compatible
query I rowsort label-6624
SELECT + col2 + + CAST ( col0 AS INTEGER ) + + + col2 / col0 * + + 93 FROM tab2 AS cor0
----
104
133
69

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col1 - - col2 - - + col0 col1 FROM tab1 AS cor0
----
149
161
206

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

query I rowsort
SELECT col2 * col1 + - + col1 FROM tab2
----
1122
3003
3819

query I rowsort
SELECT DISTINCT + 56 * - col0 * - col1 - - 48 FROM tab1
----
23848
239560
40032

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6629
SELECT - CAST( NULL AS SIGNED ) + - MIN( DISTINCT - - 74 ) AS col0 FROM tab2 WHERE - 18 + - col1 BETWEEN ( + col2 + + - col1 ) AND ( col2 - - col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6629
SELECT - CAST ( NULL AS INTEGER ) + - MIN ( DISTINCT - - 74 ) AS col0 FROM tab2 WHERE - 18 + - col1 BETWEEN ( + col2 + + - col1 ) AND ( col2 - - col2 )
----
NULL

query II rowsort
SELECT + 86, + 56 AS col0 FROM tab0, tab1 AS cor0
----
18 values hashing to 62eb0d2c3defa805eb16cda1366bfeb9

query I rowsort
SELECT ALL + 46 - + - 75 AS col0 FROM tab0
----
121
121
121

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6632
SELECT - SUM( ALL + - CAST( - col0 AS SIGNED ) ) AS col1 FROM tab0 WHERE - - col0 IS NOT NULL
----
-199

skipif mysql # not compatible
query I rowsort label-6632
SELECT - SUM ( ALL + - CAST ( - col0 AS INTEGER ) ) AS col1 FROM tab0 WHERE - - col0 IS NOT NULL
----
-199

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col0 BETWEEN ( NULL ) AND col2
----
85
5
59
91
47
68

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

query I rowsort
SELECT - col1 * - - 79 AS col1 FROM tab2 AS cor0
----
-4029
-5293
-6083

query I rowsort
SELECT + - 94 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to a95bfa539191d3f72f6548147d7efb9e

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6637
SELECT ALL SUM( - CAST( + col2 AS SIGNED ) ) FROM tab1
----
-223

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

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

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

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

skipif mysql # not compatible
query I rowsort label-6640
SELECT + - MAX ( 85 ) FROM tab1 AS cor0
----
-85

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6644
SELECT DISTINCT CAST( - col2 AS SIGNED ) * col2 - 12 FROM tab2 AS cor0
----
-1612
-3376
-541

skipif mysql # not compatible
query I rowsort label-6644
SELECT DISTINCT CAST ( - col2 AS INTEGER ) * col2 - 12 FROM tab2 AS cor0
----
-1612
-3376
-541

onlyif mysql # aggregate syntax: 
query I rowsort label-6645
SELECT - MIN( - col1 ) AS col0 FROM tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-6645
SELECT - MIN ( - col1 ) AS col0 FROM tab0 AS cor0
----
81

onlyif mysql # DIV for integer division: 
query I rowsort label-6646
SELECT DISTINCT + + col2 * col0 DIV - + col1 + - col2 * + col1 FROM tab1 AS cor0
----
-1298
-1693
-3327

skipif mysql # not compatible
query I rowsort label-6646
SELECT DISTINCT + + col2 * col0 / - + col1 + - col2 * + col1 FROM tab1 AS cor0
----
-1298
-1693
-3327

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

query I rowsort
SELECT + + ( + 50 ) + 49 FROM tab2 WHERE NOT NULL IS NOT NULL
----
99
99
99

onlyif mysql # aggregate syntax: 
query I rowsort label-6649
SELECT ALL + 19 * + - MIN( - col2 ) FROM tab0
----
1881

skipif mysql # not compatible
query I rowsort label-6649
SELECT ALL + 19 * + - MIN ( - col2 ) FROM tab0
----
1881

query I rowsort
SELECT ALL - 29 AS col1 FROM tab1
----
-29
-29
-29

onlyif mysql # DIV for integer division: 
query I rowsort label-6651
SELECT ALL + + col2 + + + 88 + + + ( + + 7 ) + + col1 * col0 DIV - 11 - 60 FROM tab1 AS cor0
----
-285
56
67

skipif mysql # not compatible
query I rowsort label-6651
SELECT ALL + + col2 + + + 88 + + + ( + + 7 ) + + col1 * col0 / - 11 - 60 FROM tab1 AS cor0
----
-285
56
67

query I rowsort
SELECT DISTINCT + + ( + 1 ) * - ( - col2 ) + col1 + + col2 * col2 AS col0 FROM tab1 cor0
----
3545
4739
9326

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + + col2 * - col2 col0 FROM tab0 AS cor0
----
-187
-2224
-9898

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - + col1 * - col0 * + 8 * + + col1 > + 59 / - + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

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

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

query III rowsort
SELECT ALL * FROM tab0 WHERE - col0 + - col1 <= NULL
----

query I rowsort
SELECT + 1 + ( - + ( 1 ) ) + + col2 + + 11 FROM tab1
----
107
70
79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 90 + col1 + + - col1 * col0 col0 FROM tab1 cor0
----
-4320
-510
-790

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6660
SELECT 68 + + CAST( NULL AS SIGNED ) * - col1 FROM tab2 AS cor0 WHERE ( + col0 * - ( - 89 ) ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-6660
SELECT 68 + + CAST ( NULL AS INTEGER ) * - col1 FROM tab2 AS cor0 WHERE ( + col0 * - ( - 89 ) ) IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6661
SELECT - + col1 DIV - 49 AS col1 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-6661
SELECT - + col1 / - 49 AS col1 FROM tab0 AS cor0
----
0
0
1

query I rowsort
SELECT ALL ( 93 ) + - + col1 FROM tab0 cor0
----
12
72
92

query I rowsort
SELECT DISTINCT + col1 + - 33 FROM tab1 AS cor0
----
-19
-28
14

onlyif mysql # aggregate syntax: 
query I rowsort label-6664
SELECT ALL - COUNT( * ) + - - COUNT( * ) AS col0 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-6664
SELECT ALL - COUNT ( * ) + - - COUNT ( * ) AS col0 FROM tab0
----
0

query I rowsort
SELECT col0 * - 9 - + col2 FROM tab0
----
-182
-793
-972

query I rowsort
SELECT + col0 - + col1 * - 14 AS col2 FROM tab2
----
1013
1142
760

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

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

query I rowsort
SELECT DISTINCT + + 16 AS col1 FROM tab0 WHERE NOT - + col1 + 66 IS NULL
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-6669
SELECT 17 * + - COUNT( * ) FROM tab2
----
-51

skipif mysql # not compatible
query I rowsort label-6669
SELECT 17 * + - COUNT ( * ) FROM tab2
----
-51

query I rowsort
SELECT ALL col1 * + 9 * - col2 FROM tab0
----
-1890
-34263
-891

query I rowsort
SELECT + col1 * + col2 AS col1 FROM tab0 WHERE NOT NULL = - col1
----

query II rowsort
SELECT col1 * - col1 AS col1, + col0 AS col0 FROM tab1
----
-196
51
-2209
91
-25
85

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 col1, - 11 + - col0 AS col0 FROM tab1 AS cor0
----
59
-96
68
-102
96
-62

onlyif mysql # DIV for integer division: 
query I rowsort label-6675
SELECT ALL + col0 DIV + 4 FROM tab2 cor0
----
11
16
18

skipif mysql # not compatible
query I rowsort label-6675
SELECT ALL + col0 / + 4 FROM tab2 cor0
----
11
16
18

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

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

query I rowsort
SELECT + col0 * col1 * - + 1 * - 54 * 7 FROM tab0
----
36666
459270
690606

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

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

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT - col1 > - + col2 * + 35 + + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6680
SELECT DISTINCT + CAST( + + col1 AS SIGNED ) * + col1 AS col1 FROM tab0 AS cor0 WHERE 53 + - 32 - + 10 + + col2 + + col1 * + 97 IS NOT NULL
----
1
441
6561

skipif mysql # not compatible
query I rowsort label-6680
SELECT DISTINCT + CAST ( + + col1 AS INTEGER ) * + col1 AS col1 FROM tab0 AS cor0 WHERE 53 + - 32 - + 10 + + col2 + + col1 * + 97 IS NOT NULL
----
1
441
6561

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

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * 27 col0 FROM tab2
----
-1377
-1809
-2079

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + col0 BETWEEN + col0 AND + col2
----
85
5
59
91
47
68

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

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 53 < + + col0 + + col0 + - 17
----
87
21
10
97
1
99

query I rowsort
SELECT + 41 + + 36 AS col0 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
77
77
77

onlyif mysql # aggregate syntax: 
query I rowsort label-6690
SELECT - ( + 36 ) * COUNT( * ) + + 93 + MAX( DISTINCT + + col2 ) FROM tab1 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-6690
SELECT - ( + 36 ) * COUNT ( * ) + + 93 + MAX ( DISTINCT + + col2 ) FROM tab1 AS cor0
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-6691
SELECT DISTINCT - SUM( ALL col2 ) + + 72 FROM tab1 AS cor0
----
-151

skipif mysql # not compatible
query I rowsort label-6691
SELECT DISTINCT - SUM ( ALL col2 ) + + 72 FROM tab1 AS cor0
----
-151

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6693
SELECT DISTINCT 63 + col0 - + col1 + + + 74 * + + CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-6693
SELECT DISTINCT 63 + col0 - + col1 + + + 74 * + + CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL

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

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

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

query I rowsort
SELECT - 7 + - 96 AS col0 FROM tab1 cor0
----
-103
-103
-103

onlyif mysql # aggregate syntax: 
query II rowsort label-6697
SELECT + MAX( ALL col1 ) + - COUNT( * ) - + 37, MIN( - + col2 ) * + 43 * + - 11 + 41 + - COUNT( * ) + + 19 AS col1 FROM tab0 AS cor0
----
41
46884

skipif mysql # not compatible
query II rowsort label-6697
SELECT + MAX ( ALL col1 ) + - COUNT ( * ) - + 37, MIN ( - + col2 ) * + 43 * + - 11 + 41 + - COUNT ( * ) + + 19 AS col1 FROM tab0 AS cor0
----
41
46884

query I rowsort
SELECT DISTINCT + col1 * - col1 * 75 + + col1 + - + col0 + + col0 FROM tab1 AS cor0
----
-14686
-165628
-1870

query II rowsort
SELECT - col0, col0 * - - col0 * - col1 AS col1 FROM tab0
----
-15
-18225
-87
-158949
-97
-9409

query II rowsort
SELECT - col1 AS col2, + col1 FROM tab1
----
-14
14
-47
47
-5
5

query I rowsort
SELECT DISTINCT 96 * 2 FROM tab2
----
192

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6702
SELECT ALL + 68 * + col0 * - - CAST( - col0 AS SIGNED ) FROM tab1
----
-176868
-491300
-563108

skipif mysql # not compatible
query I rowsort label-6702
SELECT ALL + 68 * + col0 * - - CAST ( - col0 AS INTEGER ) FROM tab1
----
-176868
-491300
-563108

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6705
SELECT + SUM( DISTINCT - 26 ) FROM tab0 AS cor0
----
-26

skipif mysql # not compatible
query I rowsort label-6705
SELECT + SUM ( DISTINCT - 26 ) FROM tab0 AS cor0
----
-26

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

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

query IIIIII rowsort
SELECT * FROM tab0 cor0 CROSS JOIN tab1 AS cor1 WHERE NOT 99 IS NULL
----
54 values hashing to 9cf5329ae50920f4c6e297c9f5b652fd

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

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

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT 55 BETWEEN - col0 AND + 68 * 21
----

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

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

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

query III rowsort
SELECT * FROM tab0 WHERE NOT - - col2 <= - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

skipif mysql # not compatible
query I rowsort label-6713
SELECT + - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT col1 * + + 4 AS col1 FROM tab2 cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-6715
SELECT DISTINCT - 1 AS col1, 20 * MIN( ALL - col0 ) FROM tab2 AS cor0
----
-1
-1500

skipif mysql # not compatible
query II rowsort label-6715
SELECT DISTINCT - 1 AS col1, 20 * MIN ( ALL - col0 ) FROM tab2 AS cor0
----
-1
-1500

query I rowsort
SELECT ALL 29 * - col1 + 8 FROM tab0 AS cor0
----
-21
-2341
-601

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6717
SELECT * FROM tab2 AS cor0 WHERE NOT col0 NOT IN ( + col1 + - + ( + col1 ) + + 85 + - ( col2 ) * - ( - col2 ), - CAST( + + col0 AS DECIMAL ), + - col1 - - 76 )
----

skipif mysql # not compatible
query III rowsort label-6717
SELECT * FROM tab2 AS cor0 WHERE NOT col0 NOT IN ( + col1 + - + ( + col1 ) + + 85 + - ( col2 ) * - ( - col2 ), - CAST ( + + col0 AS REAL ), + - col1 - - 76 )
----

query I rowsort
SELECT + col0 + + ( + col2 ) + - - col2 FROM tab0 cor0
----
107
109
295

query I rowsort
SELECT - col2 * - col1 * - col2 + - 6 + - col1 FROM tab1 AS cor0
----
-129044
-17416
-217381

query I rowsort
SELECT ALL + - col1 + - - col0 FROM tab2 AS cor0
----
-13
-5
8

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6722
SELECT DISTINCT - col1 + + 69 DIV col1 + - - 18 + - 89 FROM tab1 AS cor0
----
-117
-63
-81

skipif mysql # not compatible
query I rowsort label-6722
SELECT DISTINCT - col1 + + 69 / col1 + - - 18 + - 89 FROM tab1 AS cor0
----
-117
-63
-81

query I rowsort
SELECT DISTINCT - - col2 * 65 FROM tab0 cor0
----
3055
6435
650

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6725
SELECT ALL + COUNT( * ) AS col1 FROM tab0 WHERE NOT col2 + - 81 NOT IN ( + - col2, + col2 )
----
0

skipif mysql # not compatible
query I rowsort label-6725
SELECT ALL + COUNT ( * ) AS col1 FROM tab0 WHERE NOT col2 + - 81 NOT IN ( + - col2, + col2 )
----
0

query III rowsort
SELECT * FROM tab0 WHERE - + 71 IN ( + + col0 - - col2 + - col1, col1 * - + col0 + + col0, col2, 29 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6727
SELECT + 7 DIV + + col2 AS col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6727
SELECT + 7 / + + col2 AS col0 FROM tab1
----
0
0
0

query II rowsort
SELECT ALL col1 * + - col0 AS col0, 89 + + col0 FROM tab0
----
-1215
104
-1827
176
-97
186

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6730
SELECT * FROM tab2 AS cor0 WHERE NULL IN ( + ( - CAST( - 16 AS SIGNED ) ), col0, + 99 - + 65 )
----

skipif mysql # not compatible
query III rowsort label-6730
SELECT * FROM tab2 AS cor0 WHERE NULL IN ( + ( - CAST ( - 16 AS INTEGER ) ), col0, + 99 - + 65 )
----

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

query I rowsort
SELECT - + col2 FROM tab0 AS cor0 WHERE ( - 70 * ( col0 ) / 90 + + ( - - col0 ) + + ( - + col2 ) + + + col1 * + 85 ) <> ( NULL )
----

query I rowsort
SELECT ALL + 45 + 55 FROM tab0
----
100
100
100

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6734
SELECT DISTINCT + COUNT ( * ) col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6735
SELECT ALL - - 14 col0, + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
14
3

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

skipif mysql # not compatible
query I rowsort label-6736
SELECT CAST ( + COUNT ( * ) AS INTEGER ) FROM tab2 AS cor0 WHERE 89 NOT BETWEEN + - col0 AND NULL
----
0

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

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

query I rowsort
SELECT - 90 AS col0 FROM tab2 AS cor0 WHERE - ( col2 ) NOT IN ( 35, col2, - col2 )
----

query I rowsort
SELECT - 24 * + 10 * col1 * + col1 * + 24 FROM tab0 AS cor0
----
-2540160
-37791360
-5760

onlyif mysql # aggregate syntax: 
query I rowsort label-6740
SELECT ALL MIN( DISTINCT + 79 ) AS col0 FROM tab2 AS cor0 WHERE NOT 44 * + col2 > - 37
----
NULL

skipif mysql # not compatible
query I rowsort label-6740
SELECT ALL MIN ( DISTINCT + 79 ) AS col0 FROM tab2 AS cor0 WHERE NOT 44 * + col2 > - 37
----
NULL

query II rowsort
SELECT ALL - ( col1 ) * - col0 AS col2, - 12 AS col2 FROM tab2 cor0
----
2346
-12
4928
-12
5025
-12

query II rowsort
SELECT ALL 5, + col1 - 11 AS col2 FROM tab1 AS cor0
----
5
-6
5
3
5
36

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

query I rowsort
SELECT DISTINCT - - ( ( - 58 ) ) FROM tab0 AS cor0
----
-58

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

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

skipif mysql # not compatible
query I rowsort label-6746
SELECT COUNT ( * ) / ( + COUNT ( * ) ) FROM tab2
----
1

query II rowsort
SELECT - 78 * + - col0 AS col2, 89 AS col2 FROM tab2
----
3588
89
4992
89
5850
89

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6748
SELECT ALL - SUM( ALL + 19 ) AS col2 FROM tab1 cor0 WHERE 69 IN ( + 75, 68 * col1 / col0, + CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6748
SELECT ALL - SUM ( ALL + 19 ) AS col2 FROM tab1 cor0 WHERE 69 IN ( + 75, 68 * col1 / col0, + CAST ( NULL AS REAL ) )
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-6749
SELECT - col1, col0 DIV - col1 AS col1 FROM tab2
----
-51
0
-67
-1
-77
0

skipif mysql # not compatible
query II rowsort label-6749
SELECT - col1, col0 / - col1 AS col1 FROM tab2
----
-51
0
-67
-1
-77
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6750
SELECT 86 DIV 40 AS col0 FROM tab0
----
2
2
2

skipif mysql # not compatible
query I rowsort label-6750
SELECT 86 / 40 AS col0 FROM tab0
----
2
2
2

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

skipif mysql # not compatible
query I rowsort label-6751
SELECT ALL COUNT ( * ) / + 86 FROM tab0
----
0

query II rowsort
SELECT ALL + col2 AS col0, - col2 AS col0 FROM tab1 AS cor0
----
59
-59
68
-68
96
-96

query I rowsort
SELECT - col2 * - - col2 FROM tab0 AS cor0 WHERE NULL = NULL
----

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

query I rowsort
SELECT DISTINCT col2 FROM tab0 cor0 WHERE 56 * + col1 IS NOT NULL
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-6756
SELECT DISTINCT + 88 + + COUNT( * ) FROM tab2 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-6756
SELECT DISTINCT + 88 + + COUNT ( * ) FROM tab2 AS cor0
----
91

onlyif mysql # DIV for integer division: 
query I rowsort label-6757
SELECT DISTINCT + + 25 DIV + - col2 * - col0 + + ( - col0 ) + col1 * - - 10 FROM tab1 AS cor0
----
-35
379
89

skipif mysql # not compatible
query I rowsort label-6757
SELECT DISTINCT + + 25 / + - col2 * - col0 + + ( - col0 ) + col1 * - - 10 FROM tab1 AS cor0
----
-35
379
89

onlyif mysql # aggregate syntax: 
query I rowsort label-6758
SELECT + MIN( ( - col1 ) ) * + COUNT( * ) FROM tab2 AS cor0
----
-231

skipif mysql # not compatible
query I rowsort label-6758
SELECT + MIN ( ( - col1 ) ) * + COUNT ( * ) FROM tab2 AS cor0
----
-231

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

query II rowsort
SELECT 90 + - col0 AS col0, 52 FROM tab0
----
-7
52
3
52
75
52

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6762
SELECT + COUNT( * ) + + MAX( ALL + - 81 ) AS col0 FROM tab2
----
-78

skipif mysql # not compatible
query I rowsort label-6762
SELECT + COUNT ( * ) + + MAX ( ALL + - 81 ) AS col0 FROM tab2
----
-78

query I rowsort
SELECT 97 FROM tab0 WHERE - col0 IN ( col1 )
----

query I rowsort
SELECT ALL - 72 AS col0 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6765
SELECT - CAST( col0 AS SIGNED ) + - ( - col2 ) col0 FROM tab2
----
-17
-23
-24

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6765
SELECT - CAST ( col0 AS INTEGER ) + - ( - col2 ) col0 FROM tab2
----
-17
-23
-24

query I rowsort
SELECT DISTINCT + + col0 + + col1 AS col2 FROM tab2 AS cor0
----
141
142
97

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6769
SELECT - - 73 DIV - COUNT( * ) FROM tab0 cor0
----
-24

skipif mysql # not compatible
query I rowsort label-6769
SELECT - - 73 / - COUNT ( * ) FROM tab0 cor0
----
-24

query I rowsort
SELECT + + 64 FROM tab2 cor0
----
64
64
64

query I rowsort
SELECT DISTINCT - col0 - - 17 FROM tab2 AS cor0
----
-29
-47
-58

query I rowsort
SELECT DISTINCT 99 + col2 AS col0 FROM tab0 AS cor0
----
109
146
198

query I rowsort
SELECT DISTINCT col1 * col1 - + col0 + + 50 + + + col2 AS col0 FROM tab1
----
2236
291
49

query I rowsort
SELECT col2 - 12 * - col0 FROM tab0
----
1054
1263
227

query I rowsort
SELECT ALL + col0 FROM tab0 AS cor0 WHERE NOT - 2 IS NULL
----
15
87
97

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6778
SELECT - - col0 DIV 99 + + + 62 * 13 AS col1 FROM tab1 AS cor0
----
806
806
806

skipif mysql # not compatible
query I rowsort label-6778
SELECT - - col0 / 99 + + + 62 * 13 AS col1 FROM tab1 AS cor0
----
806
806
806

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6781
SELECT DISTINCT 58 * CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-6781
SELECT DISTINCT 58 * CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

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

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col2 NOT BETWEEN NULL AND + - ( + col2 ) + + col0
----
15
81
47
97
1
99

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6787
SELECT DISTINCT 41 AS col2, - MIN( col1 ) DIV + 55 col0 FROM tab2 AS cor0
----
41
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6787
SELECT DISTINCT 41 AS col2, - MIN ( col1 ) / + 55 col0 FROM tab2 AS cor0
----
41
0

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT 37 + 48 * - + col0 <> + - col2 + + col2
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6790
SELECT DISTINCT 26, CAST( col1 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
26
1
26
21
26
81

skipif mysql # not compatible
query II rowsort label-6790
SELECT DISTINCT 26, CAST ( col1 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
26
1
26
21
26
81

query II rowsort
SELECT ALL + ( col1 ) * + + 77 * 38 AS col0, + 20 AS col0 FROM tab0
----
237006
20
2926
20
61446
20

onlyif mysql # DIV for integer division: 
query I rowsort label-6792
SELECT + + 92 * - + 27 + 63 DIV col0 FROM tab0 AS cor0
----
-2480
-2484
-2484

skipif mysql # not compatible
query I rowsort label-6792
SELECT + + 92 * - + 27 + 63 / col0 FROM tab0 AS cor0
----
-2480
-2484
-2484

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 44 + + - 93 col0 FROM tab2 cor0 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT - col0 + 52 + col0 * + col0 - + col2 + + + col1 FROM tab1 AS cor0
----
2520
7138
8221

onlyif mysql # aggregate syntax: 
query I rowsort label-6795
SELECT DISTINCT - MIN( col0 ) + COUNT( * ) AS col2 FROM tab2 cor0
----
-43

skipif mysql # not compatible
query I rowsort label-6795
SELECT DISTINCT - MIN ( col0 ) + COUNT ( * ) AS col2 FROM tab2 cor0
----
-43

query I rowsort
SELECT ALL + col2 + + 52 AS col2 FROM tab0
----
151
62
99

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

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

query I rowsort
SELECT DISTINCT + col1 + 40 AS col0 FROM tab2
----
107
117
91

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

query I rowsort
SELECT ALL 34 * - col0 AS col1 FROM tab1
----
-1734
-2890
-3094

query I rowsort
SELECT DISTINCT + ( + col1 ) + + col2 + - 34 + + col2 + + col1 * + 39 * col1 AS col1 FROM tab0 AS cor0
----
17206
204
256020

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

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6803
SELECT DISTINCT * FROM tab2 cor0 WHERE col1 * - col2 / + - CAST( NULL AS DECIMAL ) + - col1 * + col2 <> col2 * - col0
----

skipif mysql # not compatible
query III rowsort label-6803
SELECT DISTINCT * FROM tab2 cor0 WHERE col1 * - col2 / + - CAST ( NULL AS REAL ) + - col1 * + col2 <> col2 * - col0
----

query I rowsort
SELECT col0 FROM tab2 cor0 WHERE NULL IN ( - 32 )
----

query I rowsort
SELECT ALL + 37 * + 58 FROM tab2 cor0
----
2146
2146
2146

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6806
SELECT DISTINCT + + col0 + - CAST( + col0 AS SIGNED ) * - - 59 FROM tab1 AS cor0
----
-2958
-4930
-5278

skipif mysql # not compatible
query I rowsort label-6806
SELECT DISTINCT + + col0 + - CAST ( + col0 AS INTEGER ) * - - 59 FROM tab1 AS cor0
----
-2958
-4930
-5278

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

query I rowsort
SELECT ( - 27 ) + + col2 FROM tab0
----
-17
20
72

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 29 AS col2, ( 29 ) + - col2 col2 FROM tab2
----
29
-11
29
-29
29
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6811
SELECT DISTINCT CAST( NULL AS SIGNED ) * + - col2 * col2 + 49 FROM tab0 WHERE NOT NULL BETWEEN + - 96 AND NULL
----

skipif mysql # not compatible
query I rowsort label-6811
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + - col2 * col2 + 49 FROM tab0 WHERE NOT NULL BETWEEN + - 96 AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6812
SELECT ALL COUNT( - CAST( NULL AS SIGNED ) ) col2 FROM tab1
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6812
SELECT ALL COUNT ( - CAST ( NULL AS INTEGER ) ) col2 FROM tab1
----
0

query I rowsort
SELECT DISTINCT - 85 * + col2 AS col2 FROM tab1 AS cor0
----
-5015
-5780
-8160

query I rowsort
SELECT DISTINCT - col2 FROM tab2 AS cor0 WHERE - col0 NOT BETWEEN - 61 AND NULL
----
-40
-58

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col0 * - 40 IS NOT NULL
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6817
SELECT DISTINCT col2 + - CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0 WHERE + col0 + + ( - ( - col2 ) ) * + 19 <= NULL
----

skipif mysql # not compatible
query I rowsort label-6817
SELECT DISTINCT col2 + - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0 WHERE + col0 + + ( - ( - col2 ) ) * + 19 <= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6818
SELECT + col0 DIV + 76 AS col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6818
SELECT + col0 / + 76 AS col2 FROM tab2
----
0
0
0

query I rowsort
SELECT ALL + 25 AS col2 FROM tab0
----
25
25
25

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

query I rowsort
SELECT - col1 * 82 AS col1 FROM tab0
----
-1722
-6642
-82

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6824
SELECT + 21 * CAST( NULL AS SIGNED ) / - + MIN( - + col2 ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-6824
SELECT + 21 * CAST ( NULL AS INTEGER ) / - + MIN ( - + col2 ) AS col0 FROM tab0
----
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6826
SELECT ALL * FROM tab1 AS cor0 WHERE - CAST( NULL AS SIGNED ) * col2 * - col1 * - 55 + + + 76 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-6826
SELECT ALL * FROM tab1 AS cor0 WHERE - CAST ( NULL AS INTEGER ) * col2 * - col1 * - 55 + + + 76 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6827
SELECT DISTINCT + - col1 FROM tab1 AS cor0 WHERE + col1 NOT BETWEEN - - CAST( NULL AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query I rowsort label-6827
SELECT DISTINCT + - col1 FROM tab1 AS cor0 WHERE + col1 NOT BETWEEN - - CAST ( NULL AS INTEGER ) AND NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6828
SELECT DISTINCT col0 * CAST( NULL AS DECIMAL ) FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-6828
SELECT DISTINCT col0 * CAST ( NULL AS REAL ) FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT + 68 + - - 54 AS col1 FROM tab0 AS cor0
----
122
122
122

query I rowsort
SELECT - col1 + - + col1 AS col0 FROM tab2
----
-102
-134
-154

query I rowsort
SELECT ( - col1 ) FROM tab0 cor0 WHERE NULL <= col2 + col1
----

query I rowsort
SELECT ALL - col1 + + 71 + - col0 FROM tab1 AS cor0 WHERE NOT NULL <= + col2 * + 88 / - - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6833
SELECT DISTINCT - COUNT( * ) * - COUNT( * ) AS col1 FROM tab0 cor0
----
9

skipif mysql # not compatible
query I rowsort label-6833
SELECT DISTINCT - COUNT ( * ) * - COUNT ( * ) AS col1 FROM tab0 cor0
----
9

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col1 <= - + 68
----
64
77
40

query I rowsort
SELECT DISTINCT - - 25 * - col1 + 60 FROM tab1 AS cor0
----
-1115
-290
-65

query I rowsort
SELECT + 46 + - 19 AS col1 FROM tab2 AS cor0
----
27
27
27

query I rowsort
SELECT DISTINCT + - col2 + + - col2 FROM tab1 AS cor0
----
-118
-136
-192

query I rowsort
SELECT col0 + + - col1 + - - 22 AS col2 FROM tab0
----
-44
118
88

query I rowsort
SELECT col2 * + + col2 + col0 AS col2 FROM tab2
----
1664
3439
575

onlyif mysql # aggregate syntax: 
query II rowsort label-6840
SELECT DISTINCT COUNT( * ) * - COUNT( * ) - + + 8 - - COUNT( * ) AS col1, 37 AS col0 FROM tab2
----
-14
37

skipif mysql # not compatible
query II rowsort label-6840
SELECT DISTINCT COUNT ( * ) * - COUNT ( * ) - + + 8 - - COUNT ( * ) AS col1, 37 AS col0 FROM tab2
----
-14
37

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + 40 col0 FROM tab1
----
125
131
91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6843
SELECT DISTINCT - COUNT( * ) + 37 DIV - + MAX( DISTINCT + 61 ) AS col2 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-6843
SELECT DISTINCT - COUNT ( * ) + 37 / - + MAX ( DISTINCT + 61 ) AS col2 FROM tab0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6844
SELECT CAST( 76 AS SIGNED ) * col0 + - 49 FROM tab2
----
3447
4815
5651

skipif mysql # not compatible
query I rowsort label-6844
SELECT CAST ( 76 AS INTEGER ) * col0 + - 49 FROM tab2
----
3447
4815
5651

onlyif mysql # aggregate syntax: 
query I rowsort label-6845
SELECT DISTINCT + COUNT( * ) * - 16 * 51 FROM tab0
----
-2448

skipif mysql # not compatible
query I rowsort label-6845
SELECT DISTINCT + COUNT ( * ) * - 16 * 51 FROM tab0
----
-2448

query I rowsort
SELECT ALL + ( - col2 ) - - col0 AS col1 FROM tab1
----
-45
23
26

query I rowsort
SELECT DISTINCT - col2 - + 71 AS col0 FROM tab1
----
-130
-139
-167

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

query I rowsort
SELECT 15 * + 11 AS col0 FROM tab2
----
165
165
165

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6850
SELECT DISTINCT 14 * + CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6850
SELECT DISTINCT 14 * + CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6851
SELECT ALL - col0 DIV - 62 AS col0 FROM tab0 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-6851
SELECT ALL - col0 / - 62 AS col0 FROM tab0 AS cor0
----
0
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6852
SELECT - MAX( ALL + - col2 ) * - - 28 FROM tab0 AS cor0
----
280

skipif mysql # not compatible
query I rowsort label-6852
SELECT - MAX ( ALL + - col2 ) * - - 28 FROM tab0 AS cor0
----
280

onlyif mysql # aggregate syntax: 
query II rowsort label-6853
SELECT ALL - 13 AS col0, - 89 * - + COUNT( * ) FROM tab1 AS cor0
----
-13
267

skipif mysql # not compatible
query II rowsort label-6853
SELECT ALL - 13 AS col0, - 89 * - + COUNT ( * ) FROM tab1 AS cor0
----
-13
267

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6855
SELECT - MIN( ALL col0 ) DIV 14 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-6855
SELECT - MIN ( ALL col0 ) / 14 FROM tab0
----
-1

query I rowsort
SELECT ( + col1 ) * + col1 * 53 FROM tab1
----
10388
117077
1325

onlyif mysql # aggregate syntax: 
query I rowsort label-6857
SELECT - MIN( DISTINCT - - 40 ) FROM tab1
----
-40

skipif mysql # not compatible
query I rowsort label-6857
SELECT - MIN ( DISTINCT - - 40 ) FROM tab1
----
-40

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

query I rowsort
SELECT DISTINCT 79 AS col1 FROM tab1, tab0 AS cor0
----
79

query II rowsort
SELECT 38, col2 AS col0 FROM tab2
----
38
23
38
40
38
58

query II rowsort
SELECT + 98 AS col2, col0 * + col0 FROM tab1 AS cor0
----
98
2601
98
7225
98
8281

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - - 46 col1, + col1 * - col1 AS col0 FROM tab2 AS cor0
----
46
-2601
46
-4489
46
-5929

query III rowsort
SELECT * FROM tab2 cor0 WHERE col2 NOT BETWEEN NULL AND NULL
----

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

query I rowsort
SELECT + col1 + - 56 AS col0 FROM tab0 AS cor0
----
-35
-55
25

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6867
SELECT CAST( AVG ( - 35 ) AS SIGNED ) + - COUNT( * ) FROM tab0 AS cor0
----
-38

skipif mysql # not compatible
query I rowsort label-6867
SELECT CAST ( AVG ( - 35 ) AS INTEGER ) + - COUNT ( * ) FROM tab0 AS cor0
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-6868
SELECT - MIN( DISTINCT - + col2 ) + - SUM( DISTINCT 65 ) AS col0 FROM tab0 AS cor0
----
34

skipif mysql # not compatible
query I rowsort label-6868
SELECT - MIN ( DISTINCT - + col2 ) + - SUM ( DISTINCT 65 ) AS col0 FROM tab0 AS cor0
----
34

query I rowsort
SELECT ALL - 15 * + col1 FROM tab1 AS cor0
----
-210
-705
-75

query I rowsort
SELECT ALL + 86 + + + col1 - - + col2 FROM tab0 AS cor0
----
117
186
214

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

skipif mysql # not compatible
query I rowsort label-6871
SELECT DISTINCT + COUNT ( ALL + - 55 ) + + CAST ( NULL AS REAL ) AS col0 FROM tab0 AS cor0
----
NULL

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

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

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

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

query I rowsort
SELECT ALL 41 + + 25 FROM tab1
----
66
66
66

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + col2 + + ( 48 ) < + 83
----
64
77
40
75
67
58

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

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

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

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

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

query II rowsort
SELECT DISTINCT + col1 AS col2, - 30 * + col0 FROM tab0 cor0
----
1
-2910
21
-2610
81
-450

query I rowsort
SELECT ALL 91 AS col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
91
91
91

query I rowsort
SELECT DISTINCT + ( + col1 ) / - + 75 FROM tab1 WHERE NOT - ( - col1 ) + - col1 + - + 40 * 97 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6884
SELECT ALL - CAST( + COUNT( * ) AS SIGNED ) - + 9 col1 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
-18

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6884
SELECT ALL - CAST ( + COUNT ( * ) AS INTEGER ) - + 9 col1 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
-18

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

skipif mysql # not compatible
query III rowsort label-6885
SELECT ALL * FROM tab1 AS cor0 WHERE NULL = + CAST ( NULL AS INTEGER )
----

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

skipif mysql # not compatible
query I rowsort label-6886
SELECT DISTINCT CAST ( + + ( - - col0 ) AS INTEGER ) FROM tab0 AS cor0
----
15
87
97

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6889
SELECT ALL - + 2 + - - 66 * + - MAX( - col2 ) * + + 65 FROM tab2 AS cor0
----
98668

skipif mysql # not compatible
query I rowsort label-6889
SELECT ALL - + 2 + - - 66 * + - MAX ( - col2 ) * + + 65 FROM tab2 AS cor0
----
98668

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

skipif mysql # not compatible
query I rowsort label-6890
SELECT + 82 / - COUNT ( * ) FROM tab1 AS cor0
----
-27

query I rowsort
SELECT 74 * col0 FROM tab2
----
3404
4736
5550

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6893
SELECT col1 DIV + 59 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6893
SELECT col1 / + 59 FROM tab1
----
0
0
0

query II rowsort
SELECT DISTINCT - ( - col1 ), col2 + - col0 * + 13 + col0 AS col2 FROM tab0 WHERE NOT - - 3 IS NOT NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6896
SELECT COUNT( * ) * + + 31 FROM tab2
----
93

skipif mysql # not compatible
query I rowsort label-6896
SELECT COUNT ( * ) * + + 31 FROM tab2
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-6897
SELECT DISTINCT - MAX( DISTINCT + - col1 ) FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-6897
SELECT DISTINCT - MAX ( DISTINCT + - col1 ) FROM tab2
----
51

onlyif mysql # DIV for integer division: 
query II rowsort label-6898
SELECT col1, - col0 DIV 88 AS col0 FROM tab2
----
51
0
67
0
77
0

skipif mysql # not compatible
query II rowsort label-6898
SELECT col1, - col0 / 88 AS col0 FROM tab2
----
51
0
67
0
77
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6899
SELECT DISTINCT col2 DIV + 26 FROM tab0
----
0
1
3

skipif mysql # not compatible
query I rowsort label-6899
SELECT DISTINCT col2 / + 26 FROM tab0
----
0
1
3

onlyif mysql # DIV for integer division: 
query I rowsort label-6900
SELECT ALL - 28 + 32 DIV + col1 FROM tab1 AS cor0
----
-22
-26
-28

skipif mysql # not compatible
query I rowsort label-6900
SELECT ALL - 28 + 32 / + col1 FROM tab1 AS cor0
----
-22
-26
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-6901
SELECT + 43 + + MIN( DISTINCT col1 ) + - 42 FROM tab1 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-6901
SELECT + 43 + + MIN ( DISTINCT col1 ) + - 42 FROM tab1 AS cor0
----
6

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

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

query I rowsort
SELECT DISTINCT + + 21 - + - ( + 54 ) AS col2 FROM tab2 WHERE NOT - - col1 IS NOT NULL
----

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

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

query I rowsort
SELECT DISTINCT col2 * - - col2 AS col2 FROM tab1 AS cor0
----
3481
4624
9216

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6907
SELECT DISTINCT + AVG ( DISTINCT - - 51 ) + - - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6907
SELECT DISTINCT + AVG ( DISTINCT - - 51 ) + - - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT + - col1 * - 67 - + col1 AS col0 FROM tab0 AS cor0
----
1386
5346
66

onlyif mysql # DIV for integer division: 
query I rowsort label-6909
SELECT - col2 DIV + col1 + + 28 AS col1 FROM tab1 AS cor0
----
17
22
27

skipif mysql # not compatible
query I rowsort label-6909
SELECT - col2 / + col1 + + 28 AS col1 FROM tab1 AS cor0
----
17
22
27

query I rowsort
SELECT col1 + 10 FROM tab2
----
61
77
87

query I rowsort
SELECT ALL + col2 + - 27 FROM tab1
----
32
41
69

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6912
SELECT DISTINCT col2 + - ( col2 ) FROM tab1 AS cor0 WHERE NOT col0 = + + CAST( 50 AS DECIMAL ) + - - col1
----
0

skipif mysql # not compatible
query I rowsort label-6912
SELECT DISTINCT col2 + - ( col2 ) FROM tab1 AS cor0 WHERE NOT col0 = + + CAST ( 50 AS REAL ) + - - col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6913
SELECT - SUM( 47 ) FROM tab0 cor0 WHERE NOT NULL IS NOT NULL
----
-141

skipif mysql # not compatible
query I rowsort label-6913
SELECT - SUM ( 47 ) FROM tab0 cor0 WHERE NOT NULL IS NOT NULL
----
-141

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6915
SELECT + + ( 77 ) DIV + + SUM( + col1 ) + - 55 col0 FROM tab0 AS cor0
----
-55

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6915
SELECT + + ( 77 ) / + + SUM ( + col1 ) + - 55 col0 FROM tab0 AS cor0
----
-55

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

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

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

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

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

query I rowsort
SELECT DISTINCT - ( - + 24 ) FROM tab2 AS cor0
----
24

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT + 59 NOT IN ( + + col0 + + 43, col1, - col1 * - - col1, col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6921
SELECT - col2 * + - col1 * - col1 + + 5 + - col2 - - col1 + - CAST( col2 AS SIGNED ) FROM tab0 AS cor0
----
-291
-308375
-4404

skipif mysql # not compatible
query I rowsort label-6921
SELECT - col2 * + - col1 * - col1 + + 5 + - col2 - - col1 + - CAST ( col2 AS INTEGER ) FROM tab0 AS cor0
----
-291
-308375
-4404

query II rowsort
SELECT ALL 3 AS col0, + col1 AS col2 FROM tab1 AS cor0
----
3
14
3
47
3
5

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + col0 BETWEEN NULL AND - 61 * + col1 + + + 7 * 60
----
15
81
47
87
21
10

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

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

query II rowsort
SELECT DISTINCT + col0 + col1 + + col2 AS col2, col1 - + 89 FROM tab0 AS cor0
----
118
-68
143
-8
197
-88

query I rowsort
SELECT col0 * + 52 AS col2 FROM tab1
----
2652
4420
4732

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6928
SELECT ALL 42 DIV + col0 AS col0 FROM tab0
----
0
0
2

skipif mysql # not compatible
query I rowsort label-6928
SELECT ALL 42 / + col0 AS col0 FROM tab0
----
0
0
2

query I rowsort
SELECT ALL 70 * - col2 FROM tab0
----
-3290
-6930
-700

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-6930
SELECT DISTINCT col2 * + CAST( NULL AS DECIMAL ), col2 FROM tab2
----
NULL
23
NULL
40
NULL
58

skipif mysql # not compatible
query II rowsort label-6930
SELECT DISTINCT col2 * + CAST ( NULL AS REAL ), col2 FROM tab2
----
NULL
23
NULL
40
NULL
58

query I rowsort
SELECT 91 * - col1 FROM tab0
----
-1911
-7371
-91

onlyif mysql # DIV for integer division: 
query I rowsort label-6932
SELECT ALL + col1 DIV 16 col1 FROM tab2
----
3
4
4

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6932
SELECT ALL + col1 / 16 col1 FROM tab2
----
3
4
4

query I rowsort
SELECT DISTINCT + 71 + 28 FROM tab2 AS cor0
----
99

onlyif mysql # DIV for integer division: 
query I rowsort label-6934
SELECT - + col1 - - 32 DIV col0 FROM tab1 cor0
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-6934
SELECT - + col1 - - 32 / col0 FROM tab1 cor0
----
-14
-47
-5

query I rowsort
SELECT DISTINCT col2 * + 51 * + 62 + + - 53 - + + ( + col0 ) AS col1 FROM tab1 AS cor0
----
186420
214872
303448

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6936
SELECT DISTINCT * FROM tab2 WHERE ( CAST( + 93 AS DECIMAL ) * + col0 - + 32 + - 59 IS NULL )
----

skipif mysql # not compatible
query III rowsort label-6936
SELECT DISTINCT * FROM tab2 WHERE ( CAST ( + 93 AS REAL ) * + col0 - + 32 + - 59 IS NULL )
----

query I rowsort
SELECT + + 53 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to fede6033dee346dbd272085c05724fda

query I rowsort
SELECT col2 + + ( col1 ) - + + 29 AS col2 FROM tab2
----
45
88
96

query I rowsort
SELECT ALL - 17 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 490d008f3fb5b70d3971cfc6d84503f4

query I rowsort
SELECT - col1 * + + col0 + - 61 FROM tab1
----
-4338
-486
-775

query I rowsort
SELECT + 79 * 11 FROM tab2 AS cor0
----
869
869
869

query I rowsort
SELECT + col0 FROM tab0 AS cor0 WHERE 73 IS NOT NULL
----
15
87
97

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-6944
SELECT + 36 * col2 * + col0, col0 DIV + ( + 84 ) AS col1 FROM tab0 AS cor0
----
25380
0
31320
1
345708
1

skipif mysql # not compatible
query II rowsort label-6944
SELECT + 36 * col2 * + col0, col0 / + ( + 84 ) AS col1 FROM tab0 AS cor0
----
25380
0
31320
1
345708
1

query II rowsort
SELECT DISTINCT + 8, + col1 FROM tab1
----
8
14
8
47
8
5

onlyif mysql # DIV for integer division: 
query I rowsort label-6946
SELECT DISTINCT + col2 * col0 DIV - - 82 AS col0 FROM tab0
----
10
117
8

skipif mysql # not compatible
query I rowsort label-6946
SELECT DISTINCT + col2 * col0 / - - 82 AS col0 FROM tab0
----
10
117
8

query II rowsort
SELECT 73, - col1 AS col2 FROM tab0
----
73
-1
73
-21
73
-81

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

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

query I rowsort
SELECT DISTINCT + 8 AS col0 FROM tab2 WHERE 97 BETWEEN NULL AND NULL
----

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6952
SELECT DISTINCT + 57 AS col0, COUNT( * ) * - 22 FROM tab2
----
57
-66

skipif mysql # not compatible
query II rowsort label-6952
SELECT DISTINCT + 57 AS col0, COUNT ( * ) * - 22 FROM tab2
----
57
-66

query I rowsort
SELECT - col2 + 71 AS col0 FROM tab0 WHERE NOT col2 * + + 24 IS NOT NULL
----

query II rowsort
SELECT ALL col0, 94 + 13 AS col2 FROM tab1
----
51
107
85
107
91
107

query II rowsort
SELECT col0, - 56 AS col1 FROM tab1
----
51
-56
85
-56
91
-56

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

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

query II rowsort
SELECT DISTINCT - + col1 AS col1, 54 * col0 FROM tab2 AS cor0
----
-51
2484
-67
4050
-77
3456

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col2 + + 80 BETWEEN 4 * + - col2 / col2 AND NULL
----

query II rowsort
SELECT col1 * - col1 AS col1, 71 FROM tab0
----
-1
71
-441
71
-6561
71

onlyif mysql # aggregate syntax: 
query I rowsort label-6962
SELECT COUNT( * ) * + 48 * + 94 FROM tab0
----
13536

skipif mysql # not compatible
query I rowsort label-6962
SELECT COUNT ( * ) * + 48 * + 94 FROM tab0
----
13536

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6964
SELECT ALL + CAST( - 87 AS SIGNED ) FROM tab1 AS cor0
----
-87
-87
-87

skipif mysql # not compatible
query I rowsort label-6964
SELECT ALL + CAST ( - 87 AS INTEGER ) FROM tab1 AS cor0
----
-87
-87
-87

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

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

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

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

query I rowsort
SELECT DISTINCT 43 * + col0 FROM tab0 AS cor0
----
3741
4171
645

query I rowsort
SELECT ( - + ( - col0 ) ) AS col2 FROM tab2 AS cor0
----
46
64
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 49 + col2 + + - col2 col1 FROM tab0 AS cor0 WHERE - 69 + + + col0 IN ( col1 * - col0 * - col1 - - col2, ( 54 ), + col1 )
----

query I rowsort
SELECT DISTINCT 70 FROM tab0 AS cor0 WHERE col0 - - col1 < NULL
----

query II rowsort
SELECT 33 AS col0, col2 FROM tab0
----
33
10
33
47
33
99

query I rowsort
SELECT ALL + col2 + 64 AS col0 FROM tab2
----
104
122
87

query II rowsort
SELECT ALL - col0 AS col2, - ( + col1 ) * - col2 + + 32 + col2 FROM tab0
----
-15
3886
-87
252
-97
230

onlyif mysql # DIV for integer division: 
query II rowsort label-6975
SELECT + col1 + + 52 DIV 83 AS col0, col2 + - - 5 AS col0 FROM tab1
----
14
101
47
73
5
64

skipif mysql # not compatible
query II rowsort label-6975
SELECT + col1 + + 52 / 83 AS col0, col2 + - - 5 AS col0 FROM tab1
----
14
101
47
73
5
64

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

query I rowsort
SELECT ALL - col2 + - - 98 FROM tab2 AS cor0
----
40
58
75

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6980
SELECT ALL - col2 DIV + 65 AS col0 FROM tab0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-6980
SELECT ALL - col2 / + 65 AS col0 FROM tab0
----
-1
0
0

query I rowsort
SELECT col0 + col1 FROM tab2 WHERE + 10 BETWEEN - col2 * - 36 AND - col0
----

query III rowsort
SELECT * FROM tab1 WHERE 49 NOT IN ( - ( - 61 ) * - 77 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

skipif mysql # not compatible
query I rowsort label-6984
SELECT - COUNT ( * ) + COUNT ( * ) * + COUNT ( * ) FROM tab1
----
6

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6986
SELECT DISTINCT col2 DIV - 29 AS col2 FROM tab2
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-6986
SELECT DISTINCT col2 / - 29 AS col2 FROM tab2
----
-1
-2
0

query I rowsort
SELECT DISTINCT col2 + 51 FROM tab1
----
110
119
147

query I rowsort
SELECT DISTINCT + col2 AS col1 FROM tab0 WHERE ( + col1 ) BETWEEN 98 + col0 AND NULL
----

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

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-6990
SELECT ALL * FROM tab0 WHERE NULL BETWEEN col0 * CAST( 62 * - CAST( NULL AS SIGNED ) AS DECIMAL ) + - col1 AND ( NULL )
----

skipif mysql # not compatible
query III rowsort label-6990
SELECT ALL * FROM tab0 WHERE NULL BETWEEN col0 * CAST ( 62 * - CAST ( NULL AS INTEGER ) AS REAL ) + - col1 AND ( NULL )
----

query I rowsort
SELECT - col2 AS col2 FROM tab1 WHERE NOT + col1 IS NULL
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-6992
SELECT - 6 - MIN( ( - 68 ) ) FROM tab1
----
62

skipif mysql # not compatible
query I rowsort label-6992
SELECT - 6 - MIN ( ( - 68 ) ) FROM tab1
----
62

query I rowsort
SELECT ALL 17 + col2 FROM tab2
----
40
57
75

query I rowsort
SELECT DISTINCT col1 AS col0 FROM tab1 WHERE NOT ( col2 - + 66 ) <> + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6995
SELECT + SUM( - 61 ) AS col1 FROM tab2 WHERE NOT - col1 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6995
SELECT + SUM ( - 61 ) AS col1 FROM tab2 WHERE NOT - col1 IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6996
SELECT - MAX( 23 ) FROM tab0
----
-23

skipif mysql # not compatible
query I rowsort label-6996
SELECT - MAX ( 23 ) FROM tab0
----
-23

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

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

query I rowsort
SELECT col2 - 67 FROM tab0 WHERE NOT NULL <= ( + 72 * + col0 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6999
SELECT ALL * FROM tab0 WHERE NOT CAST( NULL AS DECIMAL ) * - 34 = ( NULL )
----

skipif mysql # not compatible
query III rowsort label-6999
SELECT ALL * FROM tab0 WHERE NOT CAST ( NULL AS REAL ) * - 34 = ( NULL )
----

query I rowsort
SELECT ALL + col0 AS col0 FROM tab2 WHERE NOT NULL <= col0
----

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7002
SELECT - CAST( NULL AS DECIMAL ) - - 74 * col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7002
SELECT - CAST ( NULL AS REAL ) - - 74 * col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col2 - 98 * + col1 AS col1 FROM tab2
----
-4975
-6508
-7506

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

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

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

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

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

query I rowsort
SELECT col1 * 29 FROM tab1 AS cor0
----
1363
145
406

query I rowsort
SELECT DISTINCT col1 + col0 / - col2 AS col1 FROM tab2 WHERE NOT col2 * - ( + 86 ) IS NOT NULL
----

query I rowsort
SELECT + 96 + 70 FROM tab0
----
166
166
166

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( + col0 * col2 + 4 ) NOT BETWEEN NULL AND - 3
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col0 + ( - 20 ) AS col1 FROM tab1 AS cor0
----
-105
-111
-71

query I rowsort
SELECT - - col0 + - 43 FROM tab0 AS cor0
----
-28
44
54

query I rowsort
SELECT - + col2 + col0 * + col0 AS col2 FROM tab2 AS cor0
----
2093
4056
5567

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 25 + col0 col1 FROM tab2 cor0
----
21
39
50

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 13 + - col1 IN ( + col2 + + 46 )
----

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

query I rowsort
SELECT + + ( + col2 ) + col1 AS col0 FROM tab2 AS cor0
----
117
125
74

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL IN ( - col0 * + 42 )
----

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

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

query I rowsort
SELECT ALL - 7 + 67 FROM tab0 AS cor0
----
60
60
60

query I rowsort
SELECT ALL + col0 * col1 FROM tab1 AS cor0 WHERE NOT col2 = col1 * col1
----
425
4277
714

query I rowsort
SELECT ALL - 92 + + col0 FROM tab2 AS cor0
----
-17
-28
-46

query I rowsort
SELECT ALL - col0 * - col0 FROM tab1 WHERE + 79 IS NULL
----

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

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

query I rowsort
SELECT - 49 * - ( - 82 ) * + 57 FROM tab1
----
-229026
-229026
-229026

query I rowsort
SELECT DISTINCT - ( col2 ) + 29 AS col0 FROM tab1 WHERE NOT col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7028
SELECT ALL + MAX( ALL - + 41 ) FROM tab1
----
-41

skipif mysql # not compatible
query I rowsort label-7028
SELECT ALL + MAX ( ALL - + 41 ) FROM tab1
----
-41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7029
SELECT ( + - ( - CAST( 99 AS SIGNED ) ) ) * - col2 AS col0 FROM tab2
----
-2277
-3960
-5742

skipif mysql # not compatible
query I rowsort label-7029
SELECT ( + - ( - CAST ( 99 AS INTEGER ) ) ) * - col2 AS col0 FROM tab2
----
-2277
-3960
-5742

query I rowsort
SELECT DISTINCT - 31 * + + col0 * 9 FROM tab0
----
-24273
-27063
-4185

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 76 * - col0 col0 FROM tab1
----
-3876
-6460
-6916

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL NOT BETWEEN NULL AND col2
----

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

skipif mysql # not compatible
query I rowsort label-7033
SELECT COUNT ( - + col2 ) FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7034
SELECT DISTINCT + 41 + - MAX( ALL - col2 ) + + MIN( ALL col1 ) FROM tab2 AS cor0
----
115

skipif mysql # not compatible
query I rowsort label-7034
SELECT DISTINCT + 41 + - MAX ( ALL - col2 ) + + MIN ( ALL col1 ) FROM tab2 AS cor0
----
115

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

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

query I rowsort
SELECT DISTINCT - col1 + + col0 - - 2 AS col1 FROM tab0 AS cor0
----
-64
68
98

onlyif mysql # aggregate syntax: 
query I rowsort label-7037
SELECT - - COUNT( * ) + ( 46 ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
55

skipif mysql # not compatible
query I rowsort label-7037
SELECT - - COUNT ( * ) + ( 46 ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
55

query I rowsort
SELECT ALL col1 * - 27 FROM tab2
----
-1377
-1809
-2079

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * - + 99 col2 FROM tab2
----
5049
6633
7623

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7041
SELECT MIN( DISTINCT + + col0 ) col2 FROM tab0 AS cor0 WHERE NOT NULL > NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7041
SELECT MIN ( DISTINCT + + col0 ) col2 FROM tab0 AS cor0 WHERE NOT NULL > NULL
----
NULL

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

skipif mysql # not compatible
query I rowsort label-7042
SELECT DISTINCT COUNT ( * ) FROM tab0 AS cor0 WHERE NOT NULL < NULL
----
0

query I rowsort
SELECT + 25 * - + col1 * col1 + col0 FROM tab2 cor0
----
-112150
-148161
-64979

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 30 BETWEEN ( col2 ) AND NULL
----
15
81
47
97
1
99

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

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

query I rowsort
SELECT ALL + - 2 AS col0 FROM tab2 cor0
----
-2
-2
-2

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7050
SELECT + CAST( NULL AS SIGNED ) AS col0, + col2 * - col1 + - 80 * + 48 AS col1 FROM tab2 cor0
----
NULL
-5013
NULL
-6920
NULL
-7726

skipif mysql # not compatible
query II rowsort label-7050
SELECT + CAST ( NULL AS INTEGER ) AS col0, + col2 * - col1 + - 80 * + 48 AS col1 FROM tab2 cor0
----
NULL
-5013
NULL
-6920
NULL
-7726

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

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

query I rowsort
SELECT ALL ( - 96 ) AS col1 FROM tab2 WHERE NULL = + col0 * + + col2
----

query I rowsort
SELECT + col2 * - - 89 AS col1 FROM tab2
----
2047
3560
5162

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7055
SELECT + CAST ( - + 96 AS INTEGER ) col2, col0 AS col2 FROM tab1
----
-96
51
-96
85
-96
91

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7056
SELECT + CAST( - + 36 AS SIGNED ), + ( + col1 ) AS col1 FROM tab1
----
-36
14
-36
47
-36
5

skipif mysql # not compatible
query II rowsort label-7056
SELECT + CAST ( - + 36 AS INTEGER ), + ( + col1 ) AS col1 FROM tab1
----
-36
14
-36
47
-36
5

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

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

query I rowsort
SELECT DISTINCT + ( - 4 ) AS col1 FROM tab2
----
-4

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

skipif mysql # not compatible
query I rowsort label-7060
SELECT - col1 + col2 * - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 WHERE col1 IN ( 5 )
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-7061
SELECT DISTINCT col2 DIV - + col0 + + col0 AS col0, + col0 FROM tab2 cor0
----
46
46
64
64
75
75

skipif mysql # not compatible
query II rowsort label-7061
SELECT DISTINCT col2 / - + col0 + + col0 AS col0, + col0 FROM tab2 cor0
----
46
46
64
64
75
75

query I rowsort
SELECT ALL + + col2 + col1 + - - 77 FROM tab2 AS cor0
----
151
194
202

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

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7064
SELECT ALL * FROM tab2 AS cor0 WHERE col1 NOT BETWEEN + ( - + col0 ) / - 61 * - CAST( + col0 AS DECIMAL ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-7064
SELECT ALL * FROM tab2 AS cor0 WHERE col1 NOT BETWEEN + ( - + col0 ) / - 61 * - CAST ( + col0 AS REAL ) AND NULL
----

query I rowsort
SELECT ALL 48 * - + col2 * + col1 + - + col2 AS col0 FROM tab1 AS cor0
----
-14219
-153476
-64608

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7066
SELECT - - col2 * - CAST( - col0 AS SIGNED ) + - 64 + + - col1 FROM tab1 AS cor0
----
4818
4946
6077

skipif mysql # not compatible
query I rowsort label-7066
SELECT - - col2 * - CAST ( - col0 AS INTEGER ) + - 64 + + - col1 FROM tab1 AS cor0
----
4818
4946
6077

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7067
SELECT CAST( - col0 AS SIGNED ) + + col1 AS col0 FROM tab2
----
-8
13
5

skipif mysql # not compatible
query I rowsort label-7067
SELECT CAST ( - col0 AS INTEGER ) + + col1 AS col0 FROM tab2
----
-8
13
5

query I rowsort
SELECT DISTINCT 74 - 36 AS col2 FROM tab1
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-7069
SELECT ( - SUM( 0 ) ) + 7 AS col1 FROM tab0
----
7

skipif mysql # not compatible
query I rowsort label-7069
SELECT ( - SUM ( 0 ) ) + 7 AS col1 FROM tab0
----
7

query I rowsort
SELECT DISTINCT ( + 83 ) * - col2 AS col0 FROM tab2
----
-1909
-3320
-4814

query II rowsort
SELECT DISTINCT - col0 AS col2, + col1 + 57 FROM tab2
----
-46
108
-64
134
-75
124

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7072
SELECT + COUNT( * ) * - 42 DIV + - COUNT( ALL - - col0 ) AS col1 FROM tab0 cor0
----
42

skipif mysql # not compatible
query I rowsort label-7072
SELECT + COUNT ( * ) * - 42 / + - COUNT ( ALL - - col0 ) AS col1 FROM tab0 cor0
----
42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7073
SELECT DISTINCT 45 + - 33 * + + CAST( + - 55 AS SIGNED ) AS col1 FROM tab0
----
1860

skipif mysql # not compatible
query I rowsort label-7073
SELECT DISTINCT 45 + - 33 * + + CAST ( + - 55 AS INTEGER ) AS col1 FROM tab0
----
1860

query I rowsort
SELECT 40 * 8 FROM ( tab2 cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to b15d423d56103fcaf51686c067f7a50b

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7076
SELECT DISTINCT col0 DIV 78 DIV 29 FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-7076
SELECT DISTINCT col0 / 78 / 29 FROM tab2 cor0
----
0

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

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

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

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

skipif mysql # not compatible
query I rowsort label-7079
SELECT - COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NOT ( col2 * + ( - + col2 ) - - col1 >= ( 26 ) )
----
-3

query I rowsort
SELECT + + 53 * col1 * col0 FROM tab0 AS cor0 WHERE NOT col0 IS NULL
----
5141
64395
96831

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

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

query I rowsort
SELECT + - col2 * 30 AS col2 FROM tab0 AS cor0
----
-1410
-2970
-300

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7086
SELECT DISTINCT - 71 * COUNT( * ) FROM tab0
----
-213

skipif mysql # not compatible
query I rowsort label-7086
SELECT DISTINCT - 71 * COUNT ( * ) FROM tab0
----
-213

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7088
SELECT col0 DIV 91 + 62 FROM tab0 WHERE NOT + 86 + col1 BETWEEN - col1 * - + ( + + col0 ) - - + 26 AND NULL
----
62
62
63

skipif mysql # not compatible
query I rowsort label-7088
SELECT col0 / 91 + 62 FROM tab0 WHERE NOT + 86 + col1 BETWEEN - col1 * - + ( + + col0 ) - - + 26 AND NULL
----
62
62
63

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7090
SELECT ALL + 2 * 58 * + SUM( - 37 ) * + - 21 AS col1 FROM tab1
----
270396

skipif mysql # not compatible
query I rowsort label-7090
SELECT ALL + 2 * 58 * + SUM ( - 37 ) * + - 21 AS col1 FROM tab1
----
270396

onlyif mysql # aggregate syntax: 
query I rowsort label-7091
SELECT DISTINCT + COUNT( * ) FROM tab1 WHERE NOT col0 * + - 82 * - 47 - + - col2 IN ( + + col2 )
----
3

skipif mysql # not compatible
query I rowsort label-7091
SELECT DISTINCT + COUNT ( * ) FROM tab1 WHERE NOT col0 * + - 82 * - 47 - + - col2 IN ( + + col2 )
----
3

query I rowsort
SELECT ALL - col1 + + - 78 AS col0 FROM tab1 AS cor0
----
-125
-83
-92

query II rowsort
SELECT - - 67 AS col1, - 24 * + - 44 FROM tab0 AS cor0
----
67
1056
67
1056
67
1056

query I rowsort
SELECT DISTINCT - col2 + - + 59 FROM tab1
----
-118
-127
-155

query I rowsort
SELECT ALL - + 80 FROM tab1 cor0
----
-80
-80
-80

query I rowsort
SELECT + - col0 + ( + col1 ) FROM tab0 AS cor0
----
-66
-96
66

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

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

query I rowsort
SELECT - col1 * + 99 + + col2 FROM tab0 AS cor0
----
-2069
-7972
0

query I rowsort
SELECT + col0 + + 0 FROM tab2 AS cor0
----
46
64
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + - col2 * - - col2 col2 FROM tab2 AS cor0
----
-1523
-3297
-478

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7103
SELECT ALL CAST( + col0 AS SIGNED ) FROM tab0 AS cor0 WHERE - 16 NOT BETWEEN col2 AND + + col2
----
15
87
97

skipif mysql # not compatible
query I rowsort label-7103
SELECT ALL CAST ( + col0 AS INTEGER ) FROM tab0 AS cor0 WHERE - 16 NOT BETWEEN col2 AND + + col2
----
15
87
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * + col2 + + - col1 col2 FROM tab0
----
2128
79
9800

query I rowsort
SELECT ALL - 38 - 38 AS col0 FROM tab2
----
-76
-76
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-7106
SELECT COUNT( * ) - + 39 FROM tab0
----
-36

skipif mysql # not compatible
query I rowsort label-7106
SELECT COUNT ( * ) - + 39 FROM tab0
----
-36

query I rowsort
SELECT DISTINCT + 69 - + 32 FROM tab0
----
37

query II rowsort
SELECT DISTINCT 85, col1 AS col1 FROM tab2
----
85
51
85
67
85
77

query I rowsort
SELECT col0 - - 0 + - 57 * 86 * - + 49 + - 99 FROM tab0
----
240114
240186
240196

onlyif mysql # aggregate syntax: 
query I rowsort label-7110
SELECT + MAX( + 53 ) - + MAX( + col1 ) FROM tab0 AS cor0
----
-28

skipif mysql # not compatible
query I rowsort label-7110
SELECT + MAX ( + 53 ) - + MAX ( + col1 ) FROM tab0 AS cor0
----
-28

onlyif mysql # DIV for integer division: 
query II rowsort label-7111
SELECT + 73 * + - col1 + - col2 DIV 87 * + - col0 AS col0, col1 FROM tab2 cor0
----
-3723
51
-4891
67
-5621
77

skipif mysql # not compatible
query II rowsort label-7111
SELECT + 73 * + - col1 + - col2 / 87 * + - col0 AS col0, col1 FROM tab2 cor0
----
-3723
51
-4891
67
-5621
77

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

query I rowsort
SELECT + col2 * + + 87 FROM tab0 AS cor0
----
4089
8613
870

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7114
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL <= - col0 * CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-7114
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL <= - col0 * CAST ( NULL AS INTEGER )
----

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 16 col2 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 3fdb08ec2e3d4b642dd4594778cca8b3

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

skipif mysql # not compatible
query I rowsort label-7117
SELECT + MAX ( col2 ) AS col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
58

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

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

query II rowsort
SELECT - col2 AS col0, + col1 + col2 AS col2 FROM tab0 AS cor0
----
-10
31
-47
128
-99
100

query II rowsort
SELECT ALL - + col2 AS col0, - ( 74 ) AS col1 FROM tab2 AS cor0
----
-23
-74
-40
-74
-58
-74

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT NULL >= NULL
----

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col2 * col2 BETWEEN - + col0 AND + 36 * + col2 / - col2 + + col1 * - col0 + + 90
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 51 * - 84 col0 FROM tab0 cor0
----
-4284

onlyif mysql # DIV for integer division: 
query I rowsort label-7125
SELECT ALL - col0 DIV - col0 * - col2 DIV + + 56 AS col0 FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-7125
SELECT ALL - col0 / - col0 * - col2 / + + 56 AS col0 FROM tab1
----
-1
-1
-1

query I rowsort
SELECT ( col0 ) * + 47 + 61 + + col2 - col1 FROM tab2
----
2195
3032
3577

query I rowsort
SELECT DISTINCT 75 * col1 FROM tab1
----
1050
3525
375

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

query I rowsort
SELECT ALL - 69 * + + col1 FROM tab0
----
-1449
-5589
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-7130
SELECT DISTINCT 85 * - COUNT( * ) AS col2 FROM tab1 WHERE NULL IS NULL
----
-255

skipif mysql # not compatible
query I rowsort label-7130
SELECT DISTINCT 85 * - COUNT ( * ) AS col2 FROM tab1 WHERE NULL IS NULL
----
-255

onlyif mysql # DIV for integer division: 
query I rowsort label-7131
SELECT + 8 DIV - - 48 * + + col1 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7131
SELECT + 8 / - - 48 * + + col1 FROM tab0
----
0
0
0

query I rowsort
SELECT 91 + 16 * col1 FROM tab2 AS cor0
----
1163
1323
907

query I rowsort
SELECT ALL - ( 99 ) FROM tab2 AS cor0
----
-99
-99
-99

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

skipif mysql # not compatible
query I rowsort label-7134
SELECT DISTINCT - COUNT ( ALL + col0 ) * + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-7135
SELECT DISTINCT 66 * - + 16 + - COUNT( * ) * + + 26 + - - 82 AS col2 FROM tab0
----
-1052

skipif mysql # not compatible
query I rowsort label-7135
SELECT DISTINCT 66 * - + 16 + - COUNT ( * ) * + + 26 + - - 82 AS col2 FROM tab0
----
-1052

query I rowsort
SELECT + 35 - 33 AS col0 FROM tab1 cor0
----
2
2
2

onlyif mysql # aggregate syntax: 
query I rowsort label-7137
SELECT - 43 + 7 * MAX( - col1 ) FROM tab2 AS cor0
----
-400

skipif mysql # not compatible
query I rowsort label-7137
SELECT - 43 + 7 * MAX ( - col1 ) FROM tab2 AS cor0
----
-400

query I rowsort
SELECT - 47 + - - col1 AS col2 FROM tab1 AS cor0
----
-33
-42
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) = + + 48
----

query I rowsort
SELECT ( + + col0 ) + - + 12 FROM tab0 AS cor0
----
3
75
85

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

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

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

query I rowsort
SELECT 4 + - - col0 AS col2 FROM tab1
----
55
89
95

query III rowsort
SELECT * FROM tab0 WHERE col0 * + + col2 / - - col0 IS NULL
----

query I rowsort
SELECT + col2 * + col2 + - 83 AS col0 FROM tab2
----
1517
3281
446

query I rowsort
SELECT ALL + col0 - + 24 AS col2 FROM tab2
----
22
40
51

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7148
SELECT ALL - - COUNT( * ) * AVG ( ALL - 28 ) FROM tab0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7148
SELECT ALL - - COUNT ( * ) * AVG ( ALL - 28 ) FROM tab0 WHERE NULL IS NOT NULL
----
NULL

query I rowsort
SELECT DISTINCT + - col1 * col0 * - + col1 AS col0 FROM tab2 AS cor0
----
119646
336675
379456

query I rowsort
SELECT DISTINCT 46 AS col1 FROM tab0 AS cor0
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-7151
SELECT DISTINCT + COUNT( * ) * - + 36 * + COUNT( * ) FROM tab0
----
-324

skipif mysql # not compatible
query I rowsort label-7151
SELECT DISTINCT + COUNT ( * ) * - + 36 * + COUNT ( * ) FROM tab0
----
-324

query I rowsort
SELECT ALL - - 25 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 525a55d5ed224a62da65df36731881a7

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7153
SELECT + + COUNT( DISTINCT - CAST( + + col0 AS DECIMAL ) ) AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7153
SELECT + + COUNT ( DISTINCT - CAST ( + + col0 AS REAL ) ) AS col2 FROM tab1 AS cor0
----
3

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col2 col0, - 85 * + ( + - col0 ) AS col1 FROM tab0 AS cor0
----
-10
7395
-47
1275
-99
8245

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7156
SELECT DISTINCT + 26 * + ( + 22 ) - + ( - - CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7156
SELECT DISTINCT + 26 * + ( + 22 ) - + ( - - CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
NULL

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

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

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

query I rowsort
SELECT DISTINCT + - col2 + - - 16 FROM tab2 AS cor0
----
-24
-42
-7

query II rowsort
SELECT - col1 + col0 + - 88 AS col1, - col2 AS col0 FROM tab0 AS cor0
----
-154
-47
-22
-10
8
-99

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( - + col1 ) col2 FROM tab0
----
1
21
81

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL < ( - 4 )
----

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

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

query I rowsort
SELECT ALL + 75 * - - col0 FROM tab2
----
3450
4800
5625

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

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

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

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

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

query I rowsort
SELECT DISTINCT + 16 * + 5 + - col2 AS col1 FROM tab1
----
-16
12
21

query I rowsort
SELECT ALL col0 * col2 FROM tab0 AS cor0 WHERE NOT col1 IS NULL
----
705
870
9603

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE col0 * - col2 IS NULL
----

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

skipif mysql # not compatible
query I rowsort label-7173
SELECT - col2 * col2 / - col2 AS col2 FROM tab1 AS cor0
----
59
68
96

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7174
SELECT CAST( + col1 AS SIGNED ) DIV - col2 + - - col0 FROM tab0 AS cor0
----
14
85
97

skipif mysql # not compatible
query I rowsort label-7174
SELECT CAST ( + col1 AS INTEGER ) / - col2 + - - col0 FROM tab0 AS cor0
----
14
85
97

query I rowsort
SELECT DISTINCT - 52 * ( + 40 ) FROM tab2 AS cor0
----
-2080

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

query I rowsort
SELECT DISTINCT - 83 + col1 FROM tab0 AS cor0
----
-2
-62
-82

query I rowsort
SELECT 19 FROM tab1 WHERE col2 * col1 * - col0 * + - 2 * col1 IS NOT NULL
----
19
19
19

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

skipif mysql # not compatible
query I rowsort label-7179
SELECT DISTINCT CAST ( NULL AS REAL ) * - col1 + + + col2 * + 96 AS col2 FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT 84 FROM tab1, tab2 cor0
----
84

query I rowsort
SELECT ALL - 79 / ( + + 83 ) - - + col1 * - ( col0 ) FROM tab0 WHERE NULL = + + col1
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + col2 >= + ( col0 )
----
85
5
59
91
47
68

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7185
SELECT + CAST( NULL AS SIGNED ) AS col0, + MIN( DISTINCT col2 ) AS col2 FROM tab2 AS cor0
----
NULL
23

skipif mysql # not compatible
query II rowsort label-7185
SELECT + CAST ( NULL AS INTEGER ) AS col0, + MIN ( DISTINCT col2 ) AS col2 FROM tab2 AS cor0
----
NULL
23

onlyif mysql # DIV for integer division: 
query I rowsort label-7186
SELECT 3 DIV - 76 * col2 * + col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7186
SELECT 3 / - 76 * col2 * + col1 FROM tab1
----
0
0
0

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7189
SELECT - - CAST( - col1 AS SIGNED ) * + + 36 - + + col0 FROM tab1 AS cor0
----
-1783
-265
-555

skipif mysql # not compatible
query I rowsort label-7189
SELECT - - CAST ( - col1 AS INTEGER ) * + + 36 - + + col0 FROM tab1 AS cor0
----
-1783
-265
-555

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7191
SELECT ALL MAX( ALL + - 29 ) FROM tab1
----
-29

skipif mysql # not compatible
query I rowsort label-7191
SELECT ALL MAX ( ALL + - 29 ) FROM tab1
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-7192
SELECT + 49 + COUNT( * ) col2 FROM tab2 AS cor0
----
52

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7192
SELECT + 49 + COUNT ( * ) col2 FROM tab2 AS cor0
----
52

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col1 IN ( 62, 61, col2 )
----

query II rowsort
SELECT + col2, - 79 FROM tab0
----
10
-79
47
-79
99
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-7195
SELECT 84 * ( - COUNT( + ( - - col2 ) ) ) AS col0 FROM tab1
----
-252

skipif mysql # not compatible
query I rowsort label-7195
SELECT 84 * ( - COUNT ( + ( - - col2 ) ) ) AS col0 FROM tab1
----
-252

query I rowsort
SELECT 93 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to e64105dfaa9fbd201adbb1f3f6968bde

query I rowsort
SELECT + col0 + + + 38 FROM tab1 AS cor0 WHERE col2 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7198
SELECT ALL + 34 * + 97 * + - COUNT( * ) * + COUNT( * ) FROM tab2 cor0
----
-29682

skipif mysql # not compatible
query I rowsort label-7198
SELECT ALL + 34 * + 97 * + - COUNT ( * ) * + COUNT ( * ) FROM tab2 cor0
----
-29682

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7200
SELECT + 44 * + COUNT( * ) * - - COUNT( * ) + - 12 AS col1 FROM tab1 AS cor0
----
384

skipif mysql # not compatible
query I rowsort label-7200
SELECT + 44 * + COUNT ( * ) * - - COUNT ( * ) + - 12 AS col1 FROM tab1 AS cor0
----
384

query I rowsort
SELECT + col2 FROM tab1 AS cor0 WHERE col1 NOT BETWEEN 24 AND NULL
----
59
96

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

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

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

query I rowsort
SELECT DISTINCT - ( + 61 ) AS col2 FROM tab1 AS cor0
----
-61

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

skipif mysql # not compatible
query I rowsort label-7206
SELECT + MIN ( ALL col1 ) FROM tab2
----
51

query I rowsort
SELECT ALL 73 * + ( - 87 ) FROM tab2
----
-6351
-6351
-6351

query I rowsort
SELECT + col0 * + 71 + + 54 FROM tab2 AS cor0
----
3320
4598
5379

query I rowsort
SELECT 93 * col2 FROM tab0 cor0
----
4371
9207
930

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7211
SELECT COUNT( * ) DIV - ( + 86 ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-7211
SELECT COUNT ( * ) / - ( + 86 ) FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query III rowsort label-7212
SELECT - 86, - COUNT( * ) AS col2, - 82 * - 69 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-86
-9
5658

skipif mysql # not compatible
query III rowsort label-7212
SELECT - 86, - COUNT ( * ) AS col2, - 82 * - 69 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-86
-9
5658

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7213
SELECT - - ( + - MAX( - - 28 ) ) + - CAST( NULL AS SIGNED ) + + CAST( NULL AS SIGNED ) AS col0 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7213
SELECT - - ( + - MAX ( - - 28 ) ) + - CAST ( NULL AS INTEGER ) + + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 cor0
----
NULL

query I rowsort
SELECT - + col2 * 37 * + col0 + col1 FROM tab0 AS cor0
----
-26004
-32169
-355310

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7216
SELECT + - 72 + SUM( - 74 ) + + COUNT( * ) AS col1, 30 AS col0 FROM tab1 AS cor0
----
-291
30

skipif mysql # not compatible
query II rowsort label-7216
SELECT + - 72 + SUM ( - 74 ) + + COUNT ( * ) AS col1, 30 AS col0 FROM tab1 AS cor0
----
-291
30

query II rowsort
SELECT + + 57 + - + 76 - col0 AS col2, col2 * + - 92 AS col0 FROM tab0 AS cor0
----
-106
-920
-116
-9108
-34
-4324

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 17 + col1 * - col2 + - + col2 col2 FROM tab1 AS cor0
----
-1423
-3247
-337

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

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

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

skipif mysql # not compatible
query I rowsort label-7220
SELECT - - ( - - COUNT ( * ) ) + + - 58 FROM tab0 cor0
----
-55

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + + 44 col1 FROM tab0 AS cor0
----
131
141
59

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

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

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

skipif mysql # not compatible
query III rowsort label-7223
SELECT ALL * FROM tab2 WHERE NOT - CAST ( NULL AS REAL ) + - 76 IS NULL
----

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - + col2 > + 27
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7226
SELECT + COUNT( * ) * - MAX( ALL - col1 ) AS col2 FROM tab1 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-7226
SELECT + COUNT ( * ) * - MAX ( ALL - col1 ) AS col2 FROM tab1 AS cor0
----
15

query I rowsort
SELECT DISTINCT - - col1 + + - 34 - 6 FROM tab0 AS cor0
----
-19
-39
41

query I rowsort
SELECT ALL - - ( + - col2 ) FROM tab1 AS cor0
----
-59
-68
-96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7229
SELECT MAX( - col2 ) + + + CAST( NULL AS SIGNED ) + - COUNT( * ) + + 75 AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7229
SELECT MAX ( - col2 ) + + + CAST ( NULL AS INTEGER ) + - COUNT ( * ) + + 75 AS col0 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT - ( + + ( + ( - + col2 ) ) ) + - - 21 FROM tab2 AS cor0
----
44
61
79

query I rowsort
SELECT DISTINCT 98 * - col2 AS col0 FROM tab0
----
-4606
-9702
-980

onlyif mysql # aggregate syntax: 
query I rowsort label-7232
SELECT DISTINCT COUNT( * ) - COUNT( * ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-7232
SELECT DISTINCT COUNT ( * ) - COUNT ( * ) FROM tab1
----
0

query I rowsort
SELECT ALL + col1 * + - 4 AS col2 FROM tab2 AS cor0
----
-204
-268
-308

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7236
SELECT MAX( + col2 ) FROM tab2 AS cor0 WHERE NOT 9 + + col0 IS NULL
----
58

skipif mysql # not compatible
query I rowsort label-7236
SELECT MAX ( + col2 ) FROM tab2 AS cor0 WHERE NOT 9 + + col0 IS NULL
----
58

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

query I rowsort
SELECT ALL 37 * - 52 FROM tab0
----
-1924
-1924
-1924

onlyif mysql # DIV for integer division: 
query I rowsort label-7239
SELECT + col0 DIV - 71 AS col0 FROM tab1
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-7239
SELECT + col0 / - 71 AS col0 FROM tab1
----
-1
-1
0

query II rowsort
SELECT ALL col2 * col2 AS col2, - col1 + - 51 FROM tab2
----
1600
-128
3364
-118
529
-102

query I rowsort
SELECT DISTINCT + 97 * + - col1 AS col2 FROM tab2
----
-4947
-6499
-7469

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7242
SELECT COUNT( * ) * 64 DIV - COUNT( * ) AS col2 FROM tab2
----
-64

skipif mysql # not compatible
query I rowsort label-7242
SELECT COUNT ( * ) * 64 / - COUNT ( * ) AS col2 FROM tab2
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-7243
SELECT ( - MAX( DISTINCT - col1 ) ) FROM tab1
----
5

skipif mysql # not compatible
query I rowsort label-7243
SELECT ( - MAX ( DISTINCT - col1 ) ) FROM tab1
----
5

query III rowsort
SELECT * FROM tab0 WHERE NOT + 1 <= col0 * + col0
----

query I rowsort
SELECT DISTINCT - 53 * 39 + col2 FROM tab1 AS cor0
----
-1971
-1999
-2008

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7248
SELECT + 4 * + COUNT( * ) DIV - - ( + 27 ) AS col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-7248
SELECT + 4 * + COUNT ( * ) / - - ( + 27 ) AS col1 FROM tab2
----
0

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7249
SELECT + COUNT ( * ) * COUNT ( * ) col0 FROM tab0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-7250
SELECT - MAX( ALL - - col1 ) FROM tab1
----
-47

skipif mysql # not compatible
query I rowsort label-7250
SELECT - MAX ( ALL - - col1 ) FROM tab1
----
-47

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

query I rowsort
SELECT DISTINCT - ( - + col2 ) + 32 FROM tab0 AS cor0
----
131
42
79

onlyif mysql # aggregate syntax: 
query I rowsort label-7253
SELECT DISTINCT 78 * + 8 + MAX( - ( 61 ) ) FROM tab0 AS cor0
----
563

skipif mysql # not compatible
query I rowsort label-7253
SELECT DISTINCT 78 * + 8 + MAX ( - ( 61 ) ) FROM tab0 AS cor0
----
563

query I rowsort
SELECT col0 / - col1 AS col0 FROM tab2 AS cor0 WHERE 79 IS NULL
----

query I rowsort
SELECT DISTINCT col1 AS col1 FROM tab2 AS cor0 WHERE - col1 * col0 * col1 BETWEEN + - 15 + + 52 + - - col0 * col0 / col2 * + - 77 AND NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL BETWEEN NULL AND col0
----

query I rowsort
SELECT ALL + 61 + - - 14 AS col1 FROM tab1 AS cor0
----
75
75
75

query I rowsort
SELECT ALL col1 + + 49 AS col1 FROM tab1
----
54
63
96

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

query I rowsort
SELECT DISTINCT col2 + - - col1 FROM tab0
----
100
128
31

query I rowsort
SELECT 56 + - col2 * + 93 + - col2 * - - col2 AS col0 FROM tab1
----
-10892
-18088
-8912

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7262
SELECT DISTINCT + 64 DIV + SUM( - + 33 ) col1 FROM tab1
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7262
SELECT DISTINCT + 64 / + SUM ( - + 33 ) col1 FROM tab1
----
0

query III rowsort
SELECT * FROM tab2 WHERE NULL BETWEEN + 74 AND + col0
----

query I rowsort
SELECT DISTINCT col1 + + - col2 * + + 98 * + - col1 AS col1 FROM tab1 AS cor0
----
131726
28915
313255

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 90 AS col2, col1 col2 FROM tab0 WHERE col0 >= - 37
----
90
1
90
21
90
81

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

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-7269
SELECT + col2 DIV col2, + col1 DIV col1 FROM tab1 AS cor0
----
1
1
1
1
1
1

skipif mysql # not compatible
query II rowsort label-7269
SELECT + col2 / col2, + col1 / col1 FROM tab1 AS cor0
----
1
1
1
1
1
1

query I rowsort
SELECT DISTINCT + 17 * - col2 FROM tab0 AS cor0
----
-1683
-170
-799

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

query I rowsort
SELECT 29 * - col2 FROM tab0
----
-1363
-2871
-290

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

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

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

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

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

query I rowsort
SELECT DISTINCT - col0 * 31 AS col2 FROM tab0 cor0
----
-2697
-3007
-465

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 col1, - 1 AS col2 FROM tab0
----
1
-1
21
-1
81
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + - col2 * - 73 col0 FROM tab0 AS cor0
----
3446
7324
817

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

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

skipif mysql # not compatible
query I rowsort label-7282
SELECT DISTINCT CAST ( + MAX ( - + ( - col0 ) ) AS INTEGER ) AS col1 FROM tab2 cor0 WHERE NULL = NULL
----
NULL

query I rowsort
SELECT ALL 40 * - 77 AS col2 FROM tab1 AS cor0
----
-3080
-3080
-3080

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7285
SELECT DISTINCT + COUNT( * ) + - 23 FROM tab0 AS cor0
----
-20

skipif mysql # not compatible
query I rowsort label-7285
SELECT DISTINCT + COUNT ( * ) + - 23 FROM tab0 AS cor0
----
-20

query I rowsort
SELECT ALL - col0 FROM tab2 AS cor0 WHERE col2 NOT IN ( + - 62, + 19 * + 76 * - col0, - col1, 20, + col0 * + ( + col0 ) / - col0, 67, + + 24 )
----
-46
-64
-75

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7288
SELECT ALL + col2 DIV + col0 - col2 FROM tab1
----
-59
-68
-95

skipif mysql # not compatible
query I rowsort label-7288
SELECT ALL + col2 / + col0 - col2 FROM tab1
----
-59
-68
-95

query I rowsort
SELECT DISTINCT + + 99 AS col0 FROM tab0 WHERE NULL BETWEEN - + col1 AND col0
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7291
SELECT + MIN( ALL - 42 ) - + - 15 - ( 67 ) AS col1 FROM tab2
----
-94

skipif mysql # not compatible
query I rowsort label-7291
SELECT + MIN ( ALL - 42 ) - + - 15 - ( 67 ) AS col1 FROM tab2
----
-94

query I rowsort
SELECT ALL - col2 * - ( + col0 ) * + col2 * - 94 + - col2 FROM tab0 AS cor0
----
-3114737
-817810
-89365617

onlyif mysql # aggregate syntax: 
query I rowsort label-7293
SELECT + + 84 + - ( - COUNT( col1 ) ) FROM tab2 cor0
----
87

skipif mysql # not compatible
query I rowsort label-7293
SELECT + + 84 + - ( - COUNT ( col1 ) ) FROM tab2 cor0
----
87

query I rowsort
SELECT ALL + + col2 + + ( - 74 ) AS col2 FROM tab1 AS cor0
----
-15
-6
22

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7295
SELECT - + CAST( NULL AS DECIMAL ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-7295
SELECT - + CAST ( NULL AS REAL ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

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

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

query II rowsort
SELECT DISTINCT + 33 AS col0, + 46 AS col2 FROM tab1 AS cor0
----
33
46

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

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

query I rowsort
SELECT DISTINCT - col1 * + + col0 + + - 74 FROM tab2 AS cor0
----
-2420
-5002
-5099

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

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

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

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

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

query II rowsort
SELECT + col0 * - 8 AS col2, - col1 AS col1 FROM tab0
----
-120
-81
-696
-21
-776
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7305
SELECT - SUM( ALL 81 ) col2 FROM tab1
----
-243

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7305
SELECT - SUM ( ALL 81 ) col2 FROM tab1
----
-243

onlyif mysql # aggregate syntax: 
query I rowsort label-7306
SELECT DISTINCT MIN( DISTINCT + - col0 ) AS col1 FROM tab1
----
-91

skipif mysql # not compatible
query I rowsort label-7306
SELECT DISTINCT MIN ( DISTINCT + - col0 ) AS col1 FROM tab1
----
-91

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7308
SELECT DISTINCT * FROM tab2 WHERE NOT + col2 <> - + CAST( - CAST( col2 AS SIGNED ) AS SIGNED )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-7308
SELECT DISTINCT * FROM tab2 WHERE NOT + col2 <> - + CAST ( - CAST ( col2 AS INTEGER ) AS INTEGER )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

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

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

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

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

query II rowsort
SELECT DISTINCT - 77, + col0 FROM tab1
----
-77
51
-77
85
-77
91

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

query I rowsort
SELECT 75 * + - 47 FROM tab1
----
-3525
-3525
-3525

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

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

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

query I rowsort
SELECT ALL - 95 * col2 + + 4 FROM tab0 AS cor0
----
-4461
-9401
-946

query II rowsort
SELECT ALL + ( + col0 ) + - + col2 AS col1, col0 FROM tab2 AS cor0
----
17
75
23
46
24
64

onlyif mysql # DIV for integer division: 
query I rowsort label-7319
SELECT + ( 61 ) + - 54 DIV col2 FROM tab2 AS cor0
----
59
60
61

skipif mysql # not compatible
query I rowsort label-7319
SELECT + ( 61 ) + - 54 / col2 FROM tab2 AS cor0
----
59
60
61

onlyif mysql # DIV for integer division: 
query I rowsort label-7320
SELECT DISTINCT 13 + - + col0 + + 17 + col0 * - col1 DIV - col1 FROM tab1 AS cor0
----
30

skipif mysql # not compatible
query I rowsort label-7320
SELECT DISTINCT 13 + - + col0 + + 17 + col0 * - col1 / - col1 FROM tab1 AS cor0
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-7321
SELECT ALL - ( + COUNT( * ) ) - - 23 FROM tab0 AS cor0
----
20

skipif mysql # not compatible
query I rowsort label-7321
SELECT ALL - ( + COUNT ( * ) ) - - 23 FROM tab0 AS cor0
----
20

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 * col2 * - - col0 + + col0 col2, - 86 * col1 AS col2 FROM tab2
----
-197056
-6622
-291375
-5762
-53912
-4386

query I rowsort
SELECT 38 + - + col1 FROM tab2
----
-13
-29
-39

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

query I rowsort
SELECT ALL + 49 FROM tab2 cor0
----
49
49
49

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

query I rowsort
SELECT + 33 AS col1 FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to 620d384286e82d1c6c8b1b2b109a7da5

query I rowsort
SELECT ALL + + 15 AS col0 FROM tab0 AS cor0
----
15
15
15

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

skipif mysql # not compatible
query I rowsort label-7329
SELECT + - ( 54 ) * + CAST ( + COUNT ( * ) AS INTEGER ) FROM tab2 AS cor0
----
-162

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7331
SELECT - MIN( - col1 ) AS col1, COUNT( * ) - - ( 33 ) FROM tab1 AS cor0
----
47
36

skipif mysql # not compatible
query II rowsort label-7331
SELECT - MIN ( - col1 ) AS col1, COUNT ( * ) - - ( 33 ) FROM tab1 AS cor0
----
47
36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-7332
SELECT - MIN( DISTINCT + + col2 ) * CAST( NULL AS DECIMAL ), CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-7332
SELECT - MIN ( DISTINCT + + col2 ) * CAST ( NULL AS REAL ), CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL
NULL

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - - col2 col2, - col0 FROM tab2 WHERE NULL <> - col2 / 92 + - - 25
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * - 47 + 0 + 63 * + 60 col2 FROM tab2 WHERE NOT NULL < 16
----

query I rowsort
SELECT - - col2 FROM tab1 WHERE NOT + 43 = NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7337
SELECT - - 9 + + 22 * - MAX( ALL 58 ) / COUNT( * ) - + 34, ( - - COUNT( * ) ) col2 FROM tab1 WHERE NOT col2 / - + CAST( NULL AS SIGNED ) > - col1
----
NULL
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7337
SELECT - - 9 + + 22 * - MAX ( ALL 58 ) / COUNT ( * ) - + 34, ( - - COUNT ( * ) ) col2 FROM tab1 WHERE NOT col2 / - + CAST ( NULL AS INTEGER ) > - col1
----
NULL
0

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

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

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

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

query I rowsort
SELECT ALL - + 50 AS col0 FROM tab0 AS cor0
----
-50
-50
-50

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7342
SELECT + - col1 * + + CAST( + + col2 AS SIGNED ) * 58 AS col0 FROM tab0 cor0
----
-12180
-220806
-5742

skipif mysql # not compatible
query I rowsort label-7342
SELECT + - col1 * + + CAST ( + + col2 AS INTEGER ) * 58 AS col0 FROM tab0 cor0
----
-12180
-220806
-5742

query I rowsort
SELECT - - 67 + - 31 FROM tab1 AS cor0
----
36
36
36

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 83 * - col0 col0 FROM tab2 AS cor0
----
-3818
-5312
-6225

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

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

query I rowsort
SELECT - col0 + - col0 * col1 FROM tab2 cor0
----
-2392
-4992
-5100

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

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

skipif mysql # not compatible
query I rowsort label-7348
SELECT col1 / - - 91 AS col0 FROM tab0 cor0
----
0
0
0

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

query II rowsort
SELECT + col0 * 17 AS col2, col1 * + col0 + - 40 FROM tab2 AS cor0
----
1088
4888
1275
4985
782
2306

query I rowsort
SELECT DISTINCT 93 AS col2 FROM tab1 AS cor0 WHERE NULL >= NULL
----

query II rowsort
SELECT ALL col0, + col2 AS col1 FROM tab1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT + 99 - col0 AS col0 FROM tab2
----
24
35
53

query I rowsort
SELECT ALL - 67 + - col1 + + + col2 * col2 FROM tab0
----
12
2061
9733

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7356
SELECT + MIN( + col0 ) - + 84 + 7 * - - COUNT( * ) * + + 25 AS col0 FROM tab1
----
492

skipif mysql # not compatible
query I rowsort label-7356
SELECT + MIN ( + col0 ) - + 84 + 7 * - - COUNT ( * ) * + + 25 AS col0 FROM tab1
----
492

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

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

query I rowsort
SELECT + col0 - col0 + - 53 FROM tab0
----
-53
-53
-53

query I rowsort
SELECT ALL - - 28 AS col2 FROM tab0 cor0
----
28
28
28

query I rowsort
SELECT 45 * col1 FROM tab1
----
2115
225
630

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

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

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

query II rowsort
SELECT + col1 AS col1, col0 * + ( col1 ) FROM tab2 AS cor0
----
51
2346
67
5025
77
4928

onlyif mysql # aggregate syntax: 
query I rowsort label-7365
SELECT ALL + + MAX( DISTINCT - 99 ) FROM tab2 AS cor0 WHERE NOT col0 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7365
SELECT ALL + + MAX ( DISTINCT - 99 ) FROM tab2 AS cor0 WHERE NOT col0 IS NOT NULL
----
NULL

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

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

query I rowsort
SELECT DISTINCT + 0 FROM tab1 AS cor0 WHERE NOT 68 IS NOT NULL
----

query I rowsort
SELECT ALL - - col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1 AS col2, ( + - col0 ) + - col1 col0 FROM tab1 AS cor0
----
14
-65
47
-138
5
-90

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

query I rowsort
SELECT ALL + col1 + - ( + - 55 ) FROM tab0 AS cor0
----
136
56
76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7372
SELECT ALL col0 + CAST( col1 AS SIGNED ) + - 94 * - 18 * - col2 FROM tab0 AS cor0
----
-167410
-16812
-79428

skipif mysql # not compatible
query I rowsort label-7372
SELECT ALL col0 + CAST ( col1 AS INTEGER ) + - 94 * - 18 * - col2 FROM tab0 AS cor0
----
-167410
-16812
-79428

onlyif mysql # DIV for integer division: 
query I rowsort label-7373
SELECT DISTINCT col2 DIV 65 + + col0 AS col0 FROM tab2 cor0
----
46
64
75

skipif mysql # not compatible
query I rowsort label-7373
SELECT DISTINCT col2 / 65 + + col0 AS col0 FROM tab2 cor0
----
46
64
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7374
SELECT - col2 * - ( ( CAST( - - col0 AS SIGNED ) ) ) AS col2 FROM tab1
----
4896
5015
6188

skipif mysql # not compatible
query I rowsort label-7374
SELECT - col2 * - ( ( CAST ( - - col0 AS INTEGER ) ) ) AS col2 FROM tab1
----
4896
5015
6188

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

query I rowsort
SELECT ALL - + col2 AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) <= NULL
----

query I rowsort
SELECT - col2 FROM tab2 AS cor0 WHERE ( NOT - col0 >= + ( + - 15 ) + + 42 )
----
-23
-40
-58

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + 88 NOT BETWEEN + col2 AND NULL
----
97
1
99

query I rowsort
SELECT + 45 + col1 FROM tab1 AS cor0
----
50
59
92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7380
SELECT - 59 + COUNT( - 98 ) + - ( - + 69 ) / - MAX( ALL - CAST( + 71 AS SIGNED ) ) FROM tab0 AS cor0 WHERE ( NULL ) < - + col0 + + 66 + - col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7380
SELECT - 59 + COUNT ( - 98 ) + - ( - + 69 ) / - MAX ( ALL - CAST ( + 71 AS INTEGER ) ) FROM tab0 AS cor0 WHERE ( NULL ) < - + col0 + + 66 + - col2
----
NULL

query I rowsort
SELECT ALL - col2 + + ( + col2 ) AS col1 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7382
SELECT - 44 * - col1 + + + col2 DIV - col0 col0 FROM tab2 AS cor0
----
2244
2948
3388

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7382
SELECT - 44 * - col1 + + + col2 / - col0 col0 FROM tab2 AS cor0
----
2244
2948
3388

onlyif mysql # DIV for integer division: 
query I rowsort label-7383
SELECT ALL + col0 DIV + col0 + + 59 * - col2 DIV col2 * + 19 AS col0 FROM tab0
----
-1120
-1120
-1120

skipif mysql # not compatible
query I rowsort label-7383
SELECT ALL + col0 / + col0 + + 59 * - col2 / col2 * + 19 AS col0 FROM tab0
----
-1120
-1120
-1120

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 33 + - col2 + 5 + - 33 * + 72 - + ( + col0 ) col0 FROM tab2
----
-2407
-2442
-2471

onlyif mysql # aggregate syntax: 
query I rowsort label-7385
SELECT ALL MAX( ALL + 2 ) - - - COUNT( * ) - + 1 - + + 46 AS col2 FROM tab1
----
-48

skipif mysql # not compatible
query I rowsort label-7385
SELECT ALL MAX ( ALL + 2 ) - - - COUNT ( * ) - + 1 - + + 46 AS col2 FROM tab1
----
-48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7386
SELECT DISTINCT CAST( + COUNT( + col0 ) AS SIGNED ) FROM tab0
----
3

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7387
SELECT ALL - CAST( ( col0 ) AS SIGNED ) col2 FROM tab0 AS cor0
----
-15
-87
-97

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7388
SELECT DISTINCT + 77 DIV 14 DIV - + col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7388
SELECT DISTINCT + 77 / 14 / - + col2 FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7389
SELECT - MIN( + 56 ) * - 61 FROM tab2 AS cor0
----
3416

skipif mysql # not compatible
query I rowsort label-7389
SELECT - MIN ( + 56 ) * - 61 FROM tab2 AS cor0
----
3416

onlyif mysql # DIV for integer division: 
query I rowsort label-7390
SELECT - 24 DIV - - 28 + + 43 AS col2 FROM tab1 AS cor0
----
43
43
43

skipif mysql # not compatible
query I rowsort label-7390
SELECT - 24 / - - 28 + + 43 AS col2 FROM tab1 AS cor0
----
43
43
43

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

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

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

query I rowsort
SELECT 30 * - - 3 FROM tab0 cor0
----
90
90
90

query IIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 JOIN tab1 cor1 ON NOT - 83 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 17 col0 FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to 43298e43365fccb5146ea32003753c92

query I rowsort
SELECT + ( + 76 ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 30b8941a700cffd5b983116383bd42d5

query I rowsort
SELECT ALL - col0 + - col0 + + col2 * - col0 * col1 AS col1 FROM tab1 AS cor0
----
-25245
-291018
-68646

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

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

query I rowsort
SELECT DISTINCT 69 + + 83 AS col2 FROM tab0 AS cor0
----
152

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + + ( + col0 ) * + 33 col0, + 43 FROM tab2 AS cor0
----
1518
43
2112
43
2475
43

query II rowsort
SELECT DISTINCT + col2 * col0 + + + col1 + - - 25 * + + 65 * - 3 AS col0, + ( + col1 ) AS col0 FROM tab2 AS cor0
----
-2238
77
-3766
51
-458
67

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

skipif mysql # not compatible
query I rowsort label-7404
SELECT CAST ( - - 60 AS INTEGER ) AS col0 FROM tab1
----
60
60
60

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7405
SELECT * FROM tab1 WHERE + col0 IN ( + CAST( NULL AS SIGNED ), col1 )
----

skipif mysql # not compatible
query III rowsort label-7405
SELECT * FROM tab1 WHERE + col0 IN ( + CAST ( NULL AS INTEGER ), col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7406
SELECT DISTINCT 80 * + MAX( DISTINCT col2 ) AS col0 FROM tab0
----
7920

skipif mysql # not compatible
query I rowsort label-7406
SELECT DISTINCT 80 * + MAX ( DISTINCT col2 ) AS col0 FROM tab0
----
7920

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7408
SELECT DISTINCT - + COUNT( * ) * 71 FROM tab0 cor0 WHERE NOT 34 > NULL
----
0

skipif mysql # not compatible
query I rowsort label-7408
SELECT DISTINCT - + COUNT ( * ) * 71 FROM tab0 cor0 WHERE NOT 34 > NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7409
SELECT DISTINCT + 3 + CAST( + 84 AS SIGNED ) * - - 34 + - col2 col0 FROM tab2 AS cor0
----
2801
2819
2836

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7409
SELECT DISTINCT + 3 + CAST ( + 84 AS INTEGER ) * - - 34 + - col2 col0 FROM tab2 AS cor0
----
2801
2819
2836

query I rowsort
SELECT ALL - + 59 - - + col2 AS col2 FROM tab2 AS cor0
----
-1
-19
-36

query I rowsort
SELECT ALL 1 + col2 * col0 + + + col1 FROM tab0 AS cor0
----
787
892
9605

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE 22 <> NULL
----

query I rowsort
SELECT DISTINCT col2 - + + col2 FROM tab1
----
0

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

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

query II rowsort
SELECT + 51 * + col0 AS col0, + col1 FROM tab1 AS cor0
----
2601
14
4335
5
4641
47

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7417
SELECT ALL + CAST( COUNT( * ) AS SIGNED ) AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-7417
SELECT ALL + CAST ( COUNT ( * ) AS INTEGER ) AS col2 FROM tab1
----
3

query II rowsort
SELECT DISTINCT col1, + col0 + 86 FROM tab1
----
14
137
47
177
5
171

query I rowsort
SELECT ALL ( - 11 ) FROM tab0
----
-11
-11
-11

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7423
SELECT - + MAX( DISTINCT - col2 ) FROM tab0 cor0 WHERE NOT NULL >= - col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7423
SELECT - + MAX ( DISTINCT - col2 ) FROM tab0 cor0 WHERE NOT NULL >= - col1
----
NULL

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

skipif mysql # not compatible
query II rowsort label-7424
SELECT + col2, 74 / + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
10
NULL
47
NULL
99
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7425
SELECT DISTINCT + - CAST( NULL AS SIGNED ), + col2 - 26 col2 FROM tab1 AS cor0
----
NULL
33
NULL
42
NULL
70

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7425
SELECT DISTINCT + - CAST ( NULL AS INTEGER ), + col2 - 26 col2 FROM tab1 AS cor0
----
NULL
33
NULL
42
NULL
70

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

query I rowsort
SELECT DISTINCT + - 21 * - 79 AS col2 FROM tab2 cor0
----
1659

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

skipif mysql # not compatible
query I rowsort label-7428
SELECT DISTINCT COUNT ( * ) FROM tab2 WHERE ( col2 ) IS NULL
----
0

query I rowsort
SELECT DISTINCT - 45 + col2 AS col2 FROM tab0
----
-35
2
54

onlyif mysql # aggregate syntax: 
query I rowsort label-7430
SELECT ALL + MIN( - 92 ) + 24 AS col0 FROM tab1
----
-68

skipif mysql # not compatible
query I rowsort label-7430
SELECT ALL + MIN ( - 92 ) + 24 AS col0 FROM tab1
----
-68

query I rowsort
SELECT DISTINCT col1 * col1 - 81 AS col2 FROM tab0
----
-80
360
6480

query I rowsort
SELECT - 79 + - 56 AS col0 FROM tab0
----
-135
-135
-135

query I rowsort
SELECT - col0 + - 59 AS col2 FROM tab2
----
-105
-123
-134

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - 14 * + ( + col2 ) + 82 * + col2 NOT BETWEEN + 91 * 36 AND NULL
----
46
51
23
64
77
40

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

skipif mysql # not compatible
query I rowsort label-7435
SELECT DISTINCT - 34 / - COUNT ( * ) + + COUNT ( * ) FROM tab2
----
14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7436
SELECT MIN( ALL - CAST( col1 AS SIGNED ) ) FROM tab1
----
-47

skipif mysql # not compatible
query I rowsort label-7436
SELECT MIN ( ALL - CAST ( col1 AS INTEGER ) ) FROM tab1
----
-47

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL NOT IN ( ( + 58 ) / - col0 )
----

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

skipif mysql # not compatible
query I rowsort label-7438
SELECT + COUNT ( * ) + COUNT ( * ) FROM tab1
----
6

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

query I rowsort
SELECT 72 AS col1 FROM tab1 WHERE ( + col2 * 70 ) <> ( - 37 * col1 )
----
72
72
72

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7442
SELECT DISTINCT - CAST( - col0 AS SIGNED ) * + col0 AS col2 FROM tab2
----
2116
4096
5625

skipif mysql # not compatible
query I rowsort label-7442
SELECT DISTINCT - CAST ( - col0 AS INTEGER ) * + col0 AS col2 FROM tab2
----
2116
4096
5625

query I rowsort
SELECT DISTINCT + col0 * 45 AS col1 FROM tab1
----
2295
3825
4095

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7445
SELECT 50 + col2 DIV ( - col2 ) FROM tab2
----
49
49
49

skipif mysql # not compatible
query I rowsort label-7445
SELECT 50 + col2 / ( - col2 ) FROM tab2
----
49
49
49

onlyif mysql # aggregate syntax: 
query I rowsort label-7446
SELECT + MAX( 75 ) - - 90 AS col1 FROM tab0 WHERE NOT 68 * - col0 NOT IN ( col1 * - col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7446
SELECT + MAX ( 75 ) - - 90 AS col1 FROM tab0 WHERE NOT 68 * - col0 NOT IN ( col1 * - col1 )
----
NULL

query I rowsort
SELECT - col0 + + 4 AS col2 FROM tab0
----
-11
-83
-93

query III rowsort
SELECT * FROM tab0 WHERE - 62 / 35 NOT BETWEEN + 80 AND NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

query I rowsort
SELECT DISTINCT - 24 * - col1 AS col2 FROM tab0
----
1944
24
504

query I rowsort
SELECT DISTINCT + col1 FROM tab2 WHERE 82 IS NOT NULL
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-7452
SELECT COUNT( * ) * 54 AS col0 FROM tab1
----
162

skipif mysql # not compatible
query I rowsort label-7452
SELECT COUNT ( * ) * 54 AS col0 FROM tab1
----
162

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 80 * col1 col1 FROM tab0
----
1680
6480
80

onlyif mysql # aggregate syntax: 
query I rowsort label-7455
SELECT COUNT( * ) * + 54 AS col0 FROM tab0
----
162

skipif mysql # not compatible
query I rowsort label-7455
SELECT COUNT ( * ) * + 54 AS col0 FROM tab0
----
162

query I rowsort
SELECT + 47 FROM tab2 WHERE NOT ( NULL ) IS NOT NULL
----
47
47
47

query I rowsort
SELECT DISTINCT - col1 * col1 + 69 * - 90 AS col1 FROM tab1
----
-6235
-6406
-8419

onlyif mysql # DIV for integer division: 
query I rowsort label-7458
SELECT ALL col0 DIV col1 + - 50 FROM tab1
----
-33
-47
-49

skipif mysql # not compatible
query I rowsort label-7458
SELECT ALL col0 / col1 + - 50 FROM tab1
----
-33
-47
-49

query I rowsort
SELECT ALL + ( + col2 ) + 57 FROM tab2 WHERE + col1 IN ( 95 )
----

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

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

query III rowsort
SELECT ALL * FROM tab1 WHERE + col1 + col0 >= ( NULL )
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7464
SELECT ALL col0 DIV - 87 + + col1 FROM tab1
----
14
46
5

skipif mysql # not compatible
query I rowsort label-7464
SELECT ALL col0 / - 87 + + col1 FROM tab1
----
14
46
5

query I rowsort
SELECT ( 40 ) AS col1 FROM tab1
----
40
40
40

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

skipif mysql # not compatible
query I rowsort label-7466
SELECT DISTINCT - COUNT ( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2
----
-9

query I rowsort
SELECT ALL + col2 - - 8 * - 45 AS col0 FROM tab0 AS cor0
----
-261
-313
-350

onlyif mysql # aggregate syntax: 
query I rowsort label-7468
SELECT ALL - MIN( - col2 ) FROM tab2 cor0
----
58

skipif mysql # not compatible
query I rowsort label-7468
SELECT ALL - MIN ( - col2 ) FROM tab2 cor0
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-7469
SELECT - - SUM( + col1 ) * + ( - 31 ) + + 91 AS col0 FROM tab0 AS cor0
----
-3102

skipif mysql # not compatible
query I rowsort label-7469
SELECT - - SUM ( + col1 ) * + ( - 31 ) + + 91 AS col0 FROM tab0 AS cor0
----
-3102

query I rowsort
SELECT ALL + 80 AS col2 FROM tab2 cor0
----
80
80
80

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

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT NULL NOT BETWEEN + 71 / - 59 AND col0 * + 50
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 30 * - col0 col0 FROM tab1 AS cor0
----
1530
2550
2730

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

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

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

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

query I rowsort
SELECT ALL col1 AS col1 FROM tab1 AS cor0 WHERE NOT ( 16 ) IS NULL
----
14
47
5

query I rowsort
SELECT DISTINCT ( - col1 ) * 3 AS col2 FROM tab0 AS cor0
----
-243
-3
-63

query I rowsort
SELECT ALL - 28 * 9 AS col0 FROM tab0 AS cor0
----
-252
-252
-252

onlyif mysql # aggregate syntax: 
query I rowsort label-7479
SELECT DISTINCT - COUNT( * ) FROM tab2 cor0 WHERE NOT col1 * - col1 NOT BETWEEN ( col0 * - col2 + ( 28 ) ) AND 21
----
0

skipif mysql # not compatible
query I rowsort label-7479
SELECT DISTINCT - COUNT ( * ) FROM tab2 cor0 WHERE NOT col1 * - col1 NOT BETWEEN ( col0 * - col2 + ( 28 ) ) AND 21
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7480
SELECT DISTINCT + + col1 DIV 59 AS col1 FROM tab2 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-7480
SELECT DISTINCT + + col1 / 59 AS col1 FROM tab2 AS cor0
----
0
1

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

skipif mysql # not compatible
query I rowsort label-7481
SELECT + 20 / COUNT ( * ) FROM tab1 AS cor0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-7482
SELECT COUNT( DISTINCT col0 ) + SUM( - col2 ) FROM tab0 AS cor0 WHERE NOT + ( - col0 ) IS NULL
----
-153

skipif mysql # not compatible
query I rowsort label-7482
SELECT COUNT ( DISTINCT col0 ) + SUM ( - col2 ) FROM tab0 AS cor0 WHERE NOT + ( - col0 ) IS NULL
----
-153

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

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

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

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL <> + col1
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7487
SELECT - 55 * 68 - AVG ( CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7487
SELECT - 55 * 68 - AVG ( CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-7488
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col1 * 31 + + CAST( - CAST( NULL AS DECIMAL ) + - col1 / + col2 AS SIGNED ) / + col1 IS NULL
----

skipif mysql # not compatible
query III rowsort label-7488
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col1 * 31 + + CAST ( - CAST ( NULL AS REAL ) + - col1 / + col2 AS INTEGER ) / + col1 IS NULL
----

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7492
SELECT + CAST( NULL AS SIGNED ) + + + 94 + - CAST( - ( + col2 ) AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7492
SELECT + CAST ( NULL AS INTEGER ) + + + 94 + - CAST ( - ( + col2 ) AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col0 + - 72 AS col0 FROM tab2 AS cor0
----
-26
-8
3

query I rowsort
SELECT ALL col0 + - 97 + + col2 FROM tab2 AS cor0
----
-28
36
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7495
SELECT - col1 * CAST( NULL AS SIGNED ) FROM tab2 AS cor0 WHERE NULL NOT IN ( 19 * + col1 )
----

skipif mysql # not compatible
query I rowsort label-7495
SELECT - col1 * CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 WHERE NULL NOT IN ( 19 * + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7496
SELECT - MIN( 73 ) AS col2 FROM tab1 AS cor0
----
-73

skipif mysql # not compatible
query I rowsort label-7496
SELECT - MIN ( 73 ) AS col2 FROM tab1 AS cor0
----
-73

query I rowsort
SELECT DISTINCT - col2 + 28 * + col1 AS col1 FROM tab2 AS cor0
----
1405
1818
2116

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 99 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7499
SELECT + CAST( - 42 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-42
-42
-42

skipif mysql # not compatible
query I rowsort label-7499
SELECT + CAST ( - 42 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-42
-42
-42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7500
SELECT ALL CAST( - col1 AS SIGNED ) + - col2 FROM tab1
----
-110
-115
-64

skipif mysql # not compatible
query I rowsort label-7500
SELECT ALL CAST ( - col1 AS INTEGER ) + - col2 FROM tab1
----
-110
-115
-64

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col1 <> 2
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7502
SELECT ALL * FROM tab1 WHERE NOT + CAST( col2 AS SIGNED ) * - 40 < + col0
----

skipif mysql # not compatible
query III rowsort label-7502
SELECT ALL * FROM tab1 WHERE NOT + CAST ( col2 AS INTEGER ) * - 40 < + col0
----

query I rowsort
SELECT ( - 95 ) AS col1 FROM tab0
----
-95
-95
-95

query I rowsort
SELECT col0 - 52 AS col1 FROM tab1
----
-1
33
39

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7505
SELECT - ( + - 3 ) - col2 * + CAST( NULL AS DECIMAL ) AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7505
SELECT - ( + - 3 ) - col2 * + CAST ( NULL AS REAL ) AS col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 46 AS col2 FROM tab2 cor0
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-7507
SELECT 61 - - + COUNT( * ) * - COUNT( * ) AS col2 FROM tab2 AS cor0
----
52

skipif mysql # not compatible
query I rowsort label-7507
SELECT 61 - - + COUNT ( * ) * - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7508
SELECT ALL + col2 + + + CAST( + col1 AS SIGNED ) - + col0 FROM tab1 AS cor0 WHERE NOT 86 IS NULL
----
-21
24
59

skipif mysql # not compatible
query I rowsort label-7508
SELECT ALL + col2 + + + CAST ( + col1 AS INTEGER ) - + col0 FROM tab1 AS cor0 WHERE NOT 86 IS NULL
----
-21
24
59

onlyif mysql # aggregate syntax: 
query I rowsort label-7509
SELECT DISTINCT - 84 + + - 36 * - COUNT( * ) FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
24

skipif mysql # not compatible
query I rowsort label-7509
SELECT DISTINCT - 84 + + - 36 * - COUNT ( * ) FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
24

query I rowsort
SELECT ALL - col1 + - + 65 FROM tab0 AS cor0
----
-146
-66
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-7511
SELECT DISTINCT + COUNT( * ) + - COUNT( * ) + - 12 AS col2 FROM tab2 cor0
----
-12

skipif mysql # not compatible
query I rowsort label-7511
SELECT DISTINCT + COUNT ( * ) + - COUNT ( * ) + - 12 AS col2 FROM tab2 cor0
----
-12

query I rowsort
SELECT ALL + + col0 - - col0 AS col0 FROM tab1 AS cor0
----
102
170
182

query III rowsort
SELECT ALL * FROM tab0 WHERE + 22 + + ( + col0 ) >= ( col2 + col2 * 77 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7514
SELECT - COUNT( DISTINCT + 86 ) FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-7514
SELECT - COUNT ( DISTINCT + 86 ) FROM tab2
----
-1

query I rowsort
SELECT DISTINCT col1 * - ( + 37 ) * - - col0 AS col1 FROM tab1
----
-15725
-158249
-26418

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 49 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7517
SELECT DISTINCT + SUM( DISTINCT - 31 ) FROM tab0 AS cor0
----
-31

skipif mysql # not compatible
query I rowsort label-7517
SELECT DISTINCT + SUM ( DISTINCT - 31 ) FROM tab0 AS cor0
----
-31

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col2 NOT BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT + col2 * + - col0 AS col0 FROM tab0 AS cor0
----
-705
-870
-9603

onlyif mysql # aggregate syntax: 
query I rowsort label-7520
SELECT 35 * + SUM( DISTINCT + col1 ) FROM tab0 AS cor0
----
3605

skipif mysql # not compatible
query I rowsort label-7520
SELECT 35 * + SUM ( DISTINCT + col1 ) FROM tab0 AS cor0
----
3605

onlyif mysql # DIV for integer division: 
query I rowsort label-7521
SELECT DISTINCT - col2 DIV - - col1 AS col2 FROM tab1 AS cor0
----
-1
-11
-6

skipif mysql # not compatible
query I rowsort label-7521
SELECT DISTINCT - col2 / - - col1 AS col2 FROM tab1 AS cor0
----
-1
-11
-6

query I rowsort
SELECT ALL - col0 * 17 FROM tab2 AS cor0 WHERE + 65 < NULL
----

query I rowsort
SELECT + col2 FROM tab0 WHERE NOT - col1 * - 32 NOT IN ( + col1 )
----

query I rowsort
SELECT + - 38 / + col2 + + + 2 - col0 + col0 AS col2 FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7525
SELECT + 11 AS col1, + MAX( ALL - 19 ) AS col1 FROM tab1
----
11
-19

skipif mysql # not compatible
query II rowsort label-7525
SELECT + 11 AS col1, + MAX ( ALL - 19 ) AS col1 FROM tab1
----
11
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-7526
SELECT SUM( + - 49 ) AS col1 FROM tab0
----
-147

skipif mysql # not compatible
query I rowsort label-7526
SELECT SUM ( + - 49 ) AS col1 FROM tab0
----
-147

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NOT col1 / - + col0 IN ( + - col2 ) )
----

query I rowsort
SELECT DISTINCT - col2 * + 83 FROM tab0 WHERE + ( - col2 ) NOT IN ( col0 )
----
-3901
-8217
-830

onlyif mysql # aggregate syntax: 
query I rowsort label-7529
SELECT DISTINCT + MAX( ALL + 12 ) AS col0 FROM tab0
----
12

skipif mysql # not compatible
query I rowsort label-7529
SELECT DISTINCT + MAX ( ALL + 12 ) AS col0 FROM tab0
----
12

query III rowsort
SELECT * FROM tab1 WHERE NOT + 96 = ( + col2 - - 39 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-7531
SELECT - col1 DIV 7 FROM tab1
----
-2
-6
0

skipif mysql # not compatible
query I rowsort label-7531
SELECT - col1 / 7 FROM tab1
----
-2
-6
0

query I rowsort
SELECT ALL + col1 AS col1 FROM tab2 WHERE NULL IN ( col2 / + col0 * 31 + col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7533
SELECT DISTINCT + col0 * ( - col0 ) DIV - col0 FROM tab2
----
46
64
75

skipif mysql # not compatible
query I rowsort label-7533
SELECT DISTINCT + col0 * ( - col0 ) / - col0 FROM tab2
----
46
64
75

query II rowsort
SELECT 85, 37 * - col0 AS col0 FROM tab0
----
85
-3219
85
-3589
85
-555

onlyif mysql # aggregate syntax: 
query I rowsort label-7535
SELECT ALL + SUM( 75 ) * 47 FROM tab2
----
10575

skipif mysql # not compatible
query I rowsort label-7535
SELECT ALL + SUM ( 75 ) * 47 FROM tab2
----
10575

query I rowsort
SELECT DISTINCT col1 + + - 96 AS col0 FROM tab2 AS cor0
----
-19
-29
-45

query I rowsort
SELECT DISTINCT + + ( - 62 ) + col1 FROM tab2 cor0
----
-11
15
5

query I rowsort
SELECT DISTINCT + 84 + col2 * + col2 AS col1 FROM tab2
----
1684
3448
613

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7539
SELECT DISTINCT + CAST( + 13 AS SIGNED ) AS col0 FROM tab0
----
13

skipif mysql # not compatible
query I rowsort label-7539
SELECT DISTINCT + CAST ( + 13 AS INTEGER ) AS col0 FROM tab0
----
13

query II rowsort
SELECT ALL 84 + - col0 AS col1, + col0 AS col0 FROM tab2 AS cor0
----
20
64
38
46
9
75

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col0 = - + col0
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( ( + 24 IS NOT NULL ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 28 + + col1 FROM tab0 AS cor0
----
109
29
49

onlyif mysql # aggregate syntax: 
query I rowsort label-7544
SELECT + COUNT( * ) FROM tab2 AS cor0 WHERE - 73 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-7544
SELECT + COUNT ( * ) FROM tab2 AS cor0 WHERE - 73 IS NOT NULL
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-7545
SELECT ALL 80 + - - COUNT( - col0 ) AS col1, 67 AS col2 FROM tab0 AS cor0
----
83
67

skipif mysql # not compatible
query II rowsort label-7545
SELECT ALL 80 + - - COUNT ( - col0 ) AS col1, 67 AS col2 FROM tab0 AS cor0
----
83
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7546
SELECT + - 96 DIV - - CAST( - MIN( + col2 ) AS SIGNED ) + 62 AS col0 FROM tab1 AS cor0
----
63

skipif mysql # not compatible
query I rowsort label-7546
SELECT + - 96 / - - CAST ( - MIN ( + col2 ) AS INTEGER ) + 62 AS col0 FROM tab1 AS cor0
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-7547
SELECT DISTINCT - MAX( + - 77 ) + - - SUM( - col1 ) FROM tab2 AS cor0
----
-118

skipif mysql # not compatible
query I rowsort label-7547
SELECT DISTINCT - MAX ( + - 77 ) + - - SUM ( - col1 ) FROM tab2 AS cor0
----
-118

onlyif mysql # aggregate syntax: 
query I rowsort label-7548
SELECT + MAX( + 58 ) + - + 94 FROM tab2 AS cor0
----
-36

skipif mysql # not compatible
query I rowsort label-7548
SELECT + MAX ( + 58 ) + - + 94 FROM tab2 AS cor0
----
-36

query I rowsort
SELECT ALL - 62 + col0 * + 32 FROM tab1
----
1570
2658
2850

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7550
SELECT DISTINCT MAX( + ( + col1 ) ) - CAST( + COUNT( * ) AS SIGNED ) AS col2 FROM tab0
----
78

skipif mysql # not compatible
query I rowsort label-7550
SELECT DISTINCT MAX ( + ( + col1 ) ) - CAST ( + COUNT ( * ) AS INTEGER ) AS col2 FROM tab0
----
78

query I rowsort
SELECT DISTINCT 64 - ( + 18 ) FROM tab0
----
46

query I rowsort
SELECT + 16 + + + col2 FROM tab0
----
115
26
63

onlyif mysql # aggregate syntax: 
query I rowsort label-7553
SELECT - 65 + - COUNT( * ) AS col2 FROM tab2
----
-68

skipif mysql # not compatible
query I rowsort label-7553
SELECT - 65 + - COUNT ( * ) AS col2 FROM tab2
----
-68

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL = + ( + - 21 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - - col2 IN ( col2, - col0 + 73 )
----

query II rowsort
SELECT DISTINCT + 88 AS col2, + 32 FROM tab1
----
88
32

query I rowsort
SELECT + col2 * - - 96 FROM tab1 AS cor0
----
5664
6528
9216

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + col0 + + - col2 * - ( - + col1 ) / + col1 IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7559
SELECT - + col1 - - - CAST( NULL AS DECIMAL ) + - col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7559
SELECT - + col1 - - - CAST ( NULL AS REAL ) + - col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 74 col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
74

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL > 98 + 77
----

query I rowsort
SELECT + - 65 - + + ( + - 55 ) AS col1 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to f68f33032846e21ee6b2c668fc10355e

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * + - 50 col0 FROM tab2 AS cor0
----
-2300
-3200
-3750

onlyif mysql # aggregate syntax: 
query I rowsort label-7564
SELECT DISTINCT + 43 * + - COUNT( * ) + 87 AS col1 FROM tab1 AS cor0
----
-42

skipif mysql # not compatible
query I rowsort label-7564
SELECT DISTINCT + 43 * + - COUNT ( * ) + 87 AS col1 FROM tab1 AS cor0
----
-42

query I rowsort
SELECT ALL + 19 AS col0 FROM tab2 cor0
----
19
19
19

onlyif mysql # DIV for integer division: 
query I rowsort label-7566
SELECT - col2 * + 90 DIV 45 FROM tab0 AS cor0
----
-198
-20
-94

skipif mysql # not compatible
query I rowsort label-7566
SELECT - col2 * + 90 / 45 FROM tab0 AS cor0
----
-198
-20
-94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 45 col1 FROM tab2 AS cor0
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-7568
SELECT ALL - COUNT( 57 ) * + MIN( - - col2 ) AS col1 FROM tab1 AS cor0
----
-177

skipif mysql # not compatible
query I rowsort label-7568
SELECT ALL - COUNT ( 57 ) * + MIN ( - - col2 ) AS col1 FROM tab1 AS cor0
----
-177

query I rowsort
SELECT DISTINCT col2 FROM tab0 WHERE + - col2 + col1 IS NULL
----

query I rowsort
SELECT 2 * 26 FROM tab2
----
52
52
52

query I rowsort
SELECT - 88 * - 74 AS col0 FROM tab0
----
6512
6512
6512

query I rowsort
SELECT ALL 55 * col1 AS col0 FROM tab2
----
2805
3685
4235

query I rowsort
SELECT ALL ( + - col0 ) FROM tab0
----
-15
-87
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-7574
SELECT DISTINCT - 27 * - COUNT( * ) AS col0 FROM tab1
----
81

skipif mysql # not compatible
query I rowsort label-7574
SELECT DISTINCT - 27 * - COUNT ( * ) AS col0 FROM tab1
----
81

query I rowsort
SELECT DISTINCT + col1 AS col2 FROM tab1 WHERE - - 90 NOT IN ( - 0, - 17 )
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-7576
SELECT + COUNT( DISTINCT col1 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7576
SELECT + COUNT ( DISTINCT col1 ) FROM tab1 AS cor0
----
3

query I rowsort
SELECT ALL + 62 FROM tab0 AS cor0 WHERE ( NULL ) > - col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 81 col1 FROM tab0 AS cor0
----
81
81
81

query I rowsort
SELECT + col2 + col2 + + col2 FROM tab1
----
177
204
288

onlyif mysql # DIV for integer division: 
query I rowsort label-7580
SELECT ALL + 75 DIV ( col0 ) + - col2 - 53 * ( + 0 ) FROM tab0 AS cor0
----
-10
-42
-99

skipif mysql # not compatible
query I rowsort label-7580
SELECT ALL + 75 / ( col0 ) + - col2 - 53 * ( + 0 ) FROM tab0 AS cor0
----
-10
-42
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-7581
SELECT MAX( ALL col1 ) + + MAX( - col2 ) * - 54 AS col2 FROM tab1 AS cor0
----
3233

skipif mysql # not compatible
query I rowsort label-7581
SELECT MAX ( ALL col1 ) + + MAX ( - col2 ) * - 54 AS col2 FROM tab1 AS cor0
----
3233

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 93 col1 FROM tab0 AS cor0
----
93

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 6 * - - col0 IS NULL
----

query I rowsort
SELECT - - 77 AS col0 FROM tab2 AS cor0 WHERE 31 * - 21 < - + col0
----
77
77
77

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + col1 + - col0 / + col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7586
SELECT ALL - COUNT( * ) + + - 81 AS col2 FROM tab0
----
-84

skipif mysql # not compatible
query I rowsort label-7586
SELECT ALL - COUNT ( * ) + + - 81 AS col2 FROM tab0
----
-84

query I rowsort
SELECT DISTINCT + col2 - + - col0 FROM tab2
----
104
133
69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7588
SELECT + ( - + ( + 58 ) ) AS col0 FROM tab0 WHERE - + col0 <= ( - CAST( NULL AS SIGNED ) + - 83 )
----

skipif mysql # not compatible
query I rowsort label-7588
SELECT + ( - + ( + 58 ) ) AS col0 FROM tab0 WHERE - + col0 <= ( - CAST ( NULL AS INTEGER ) + - 83 )
----

query III rowsort
SELECT * FROM tab2 WHERE NULL NOT BETWEEN - 69 AND - - col1
----

query I rowsort
SELECT DISTINCT 94 - - col2 FROM tab1
----
153
162
190

onlyif mysql # aggregate syntax: 
query I rowsort label-7591
SELECT DISTINCT - 94 - + COUNT( * ) FROM tab0
----
-97

skipif mysql # not compatible
query I rowsort label-7591
SELECT DISTINCT - 94 - + COUNT ( * ) FROM tab0
----
-97

query I rowsort
SELECT + 0 - - col2 AS col0 FROM tab1
----
59
68
96

onlyif mysql # aggregate syntax: 
query II rowsort label-7593
SELECT DISTINCT - COUNT( * ) - + 44 AS col2, 19 AS col2 FROM tab0
----
-47
19

skipif mysql # not compatible
query II rowsort label-7593
SELECT DISTINCT - COUNT ( * ) - + 44 AS col2, 19 AS col2 FROM tab0
----
-47
19

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT - 46 + - + ( + + col2 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col2 * col1 * - 30 >= ( - col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7596
SELECT ALL - COUNT( * ) DIV - CAST( - 42 AS SIGNED ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE ( NULL ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-7596
SELECT ALL - COUNT ( * ) / - CAST ( - 42 AS INTEGER ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE ( NULL ) IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-7597
SELECT 57 AS col2, MIN( - + 91 ) AS col1 FROM tab0
----
57
-91

skipif mysql # not compatible
query II rowsort label-7597
SELECT 57 AS col2, MIN ( - + 91 ) AS col1 FROM tab0
----
57
-91

query I rowsort
SELECT ALL ( - - col0 ) AS col0 FROM tab0
----
15
87
97

query II rowsort
SELECT + - col2 AS col0, - 49 * - 40 AS col2 FROM tab0 AS cor0
----
-10
1960
-47
1960
-99
1960

query II rowsort
SELECT DISTINCT col2, col1 * col1 FROM tab2 AS cor0
----
23
2601
40
5929
58
4489

onlyif mysql # aggregate syntax: 
query II rowsort label-7601
SELECT - - COUNT( * ) AS col1, - ( COUNT( * ) ) col0 FROM tab2 AS cor0
----
3
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7601
SELECT - - COUNT ( * ) AS col1, - ( COUNT ( * ) ) col0 FROM tab2 AS cor0
----
3
-3

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE col1 / - + col0 + - col2 + + - col2 <> + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col1 >= - + 79
----

query II rowsort
SELECT ALL 5, col0 AS col1 FROM tab2 AS cor0
----
5
46
5
64
5
75

onlyif mysql # aggregate syntax: 
query I rowsort label-7605
SELECT ALL COUNT( * ) * 96 AS col0 FROM tab0 cor0
----
288

skipif mysql # not compatible
query I rowsort label-7605
SELECT ALL COUNT ( * ) * 96 AS col0 FROM tab0 cor0
----
288

query I rowsort
SELECT - col2 * col2 * - col2 * + + col1 FROM tab0 AS cor0
----
21000
8409663
970299

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + ( + 94 ) + - col0 * col2 NOT BETWEEN NULL AND + + col1 * col2
----

query I rowsort
SELECT - ( col2 ) FROM tab0 AS cor0 WHERE NOT NULL <> NULL
----

query I rowsort
SELECT DISTINCT col2 * + - col2 AS col2 FROM tab1
----
-3481
-4624
-9216

query I rowsort
SELECT DISTINCT col1 * + + 14 AS col2 FROM tab0
----
1134
14
294

onlyif mysql # aggregate syntax: 
query I rowsort label-7611
SELECT COUNT( * ) AS col1 FROM tab2 WHERE NOT NULL > + 22 * - 78 + - col2
----
0

skipif mysql # not compatible
query I rowsort label-7611
SELECT COUNT ( * ) AS col1 FROM tab2 WHERE NOT NULL > + 22 * - 78 + - col2
----
0

query I rowsort
SELECT - ( + 80 ) * col2 FROM tab1
----
-4720
-5440
-7680

onlyif mysql # aggregate syntax: 
query II rowsort label-7613
SELECT + 73 * + - 62 AS col2, COUNT( * ) FROM tab0
----
-4526
3

skipif mysql # not compatible
query II rowsort label-7613
SELECT + 73 * + - 62 AS col2, COUNT ( * ) FROM tab0
----
-4526
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7614
SELECT COUNT( DISTINCT - + col1 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-7614
SELECT COUNT ( DISTINCT - + col1 ) FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7615
SELECT 22 + 74 * COUNT( * ) FROM tab1
----
244

skipif mysql # not compatible
query I rowsort label-7615
SELECT 22 + 74 * COUNT ( * ) FROM tab1
----
244

query I rowsort
SELECT ALL + 99 AS col0 FROM tab1 WHERE ( 78 ) IS NOT NULL
----
99
99
99

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col1 NOT BETWEEN + col2 AND - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT + col2 + col2 AS col0, col0 AS col0 FROM tab1 AS cor0
----
118
85
136
91
192
51

query I rowsort
SELECT + col0 * + col2 + col2 FROM tab2 cor0
----
1081
2600
4408

query I rowsort
SELECT col2 * - + 13 AS col0 FROM tab0
----
-1287
-130
-611

onlyif mysql # aggregate syntax: 
query I rowsort label-7621
SELECT + + ( + - COUNT( * ) ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-7621
SELECT + + ( + - COUNT ( * ) ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

query I rowsort
SELECT ALL + 87 - - col2 + col2 AS col1 FROM tab1 WHERE + col1 + - col0 NOT BETWEEN - + col2 + - col1 AND ( NULL )
----
205

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 81 col1 FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to 7a8ea30c6803aeddc5fca5b5821d8267

query I rowsort
SELECT - + col0 * - + col0 - col2 AS col2 FROM tab0 AS cor0
----
178
7559
9310

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7625
SELECT - col2 FROM tab2 AS cor0 WHERE + col1 / + - CAST( + - col2 AS SIGNED ) NOT BETWEEN col1 AND - 98
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-7625
SELECT - col2 FROM tab2 AS cor0 WHERE + col1 / + - CAST ( + - col2 AS INTEGER ) NOT BETWEEN col1 AND - 98
----
-23
-40
-58

query I rowsort
SELECT ALL - 85 AS col2 FROM tab2 AS cor0 WHERE col2 * + + col0 IN ( + - col2 * + col0 * + col0 + + + 96, + 18 * + ( + col0 ) / 1, + ( + ( - - col2 ) ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7627
SELECT - col0 / - 36 + - col1 - + + col0 + + CAST( NULL AS SIGNED ) + + + 62 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7627
SELECT - col0 / - 36 + - col1 - + + col0 + + CAST ( NULL AS INTEGER ) + + + 62 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 31 + - 17 + - col0 / + 4 * + col0 FROM tab2 AS cor0 WHERE NOT col2 >= ( + 16 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7629
SELECT ALL ( - - 33 ) AS col2, 64 * COUNT( * ) FROM tab1 AS cor0 WHERE ( NULL ) <= - 77
----
33
0

skipif mysql # not compatible
query II rowsort label-7629
SELECT ALL ( - - 33 ) AS col2, 64 * COUNT ( * ) FROM tab1 AS cor0 WHERE ( NULL ) <= - 77
----
33
0

query I rowsort
SELECT ALL - 60 + 66 FROM tab1
----
6
6
6

onlyif mysql # aggregate syntax: 
query I rowsort label-7631
SELECT + COUNT( * ) + - ( COUNT( * ) ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-7631
SELECT + COUNT ( * ) + - ( COUNT ( * ) ) FROM tab1
----
0

query I rowsort
SELECT col1 + - col1 * - - col2 AS col0 FROM tab1
----
-1330
-290
-3149

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-7633
SELECT DISTINCT ( + CAST( NULL AS SIGNED ) ) * + col0 + col1 + col2 - + CAST( NULL AS DECIMAL ) col2, - col0 col2 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-7633
SELECT DISTINCT ( + CAST ( NULL AS INTEGER ) ) * + col0 + col1 + col2 - + CAST ( NULL AS REAL ) col2, - col0 col2 FROM tab2
----
NULL
-46
NULL
-64
NULL
-75

query II rowsort
SELECT ALL 97 AS col1, 19 + - col2 + 13 - col2 * + + col0 AS col1 FROM tab1
----
97
-4960
97
-5042
97
-6224

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 AS col2, - col0 + col1 col2 FROM tab1
----
14
-37
47
-44
5
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-7636
SELECT ALL - MIN( DISTINCT + + col0 ) - + + 46 FROM tab1
----
-97

skipif mysql # not compatible
query I rowsort label-7636
SELECT ALL - MIN ( DISTINCT + + col0 ) - + + 46 FROM tab1
----
-97

query I rowsort
SELECT DISTINCT + + col1 AS col1 FROM tab0 WHERE NOT - col1 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7638
SELECT DISTINCT - - ( + - CAST( NULL AS SIGNED ) ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7638
SELECT DISTINCT - - ( + - CAST ( NULL AS INTEGER ) ) AS col1 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7639
SELECT - SUM( + col1 ) FROM tab0 cor0
----
-103

skipif mysql # not compatible
query I rowsort label-7639
SELECT - SUM ( + col1 ) FROM tab0 cor0
----
-103

query III rowsort
SELECT ALL * FROM tab2 WHERE + - col0 / - ( + col2 ) + - + 52 BETWEEN col0 AND col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7641
SELECT DISTINCT - MAX( - CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-7641
SELECT DISTINCT - MAX ( - CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7642
SELECT - SUM( DISTINCT + CAST( + col1 AS SIGNED ) ) AS col2 FROM tab0 AS cor0
----
-103

skipif mysql # not compatible
query I rowsort label-7642
SELECT - SUM ( DISTINCT + CAST ( + col1 AS INTEGER ) ) AS col2 FROM tab0 AS cor0
----
-103

query I rowsort
SELECT - col0 / col0 AS col1 FROM tab2 AS cor0 WHERE NOT - col0 / - + 28 > - col2 * + 46 - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7644
SELECT - + COUNT( - 34 ) FROM tab2 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7644
SELECT - + COUNT ( - 34 ) FROM tab2 cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7645
SELECT - 6 + col1, CAST( + + 44 AS SIGNED ) col1 FROM tab2 AS cor0
----
45
44
61
44
71
44

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7645
SELECT - 6 + col1, CAST ( + + 44 AS INTEGER ) col1 FROM tab2 AS cor0
----
45
44
61
44
71
44

query I rowsort
SELECT ALL + - ( 30 ) FROM tab0 AS cor0
----
-30
-30
-30

query I rowsort
SELECT - 16 * col0 AS col2 FROM tab1 AS cor0
----
-1360
-1456
-816

query I rowsort
SELECT ALL col1 * + + col2 AS col0 FROM tab2
----
1173
3080
3886

onlyif mysql # aggregate syntax: 
query I rowsort label-7649
SELECT ALL - MIN( + 45 ) + 20 FROM tab0
----
-25

skipif mysql # not compatible
query I rowsort label-7649
SELECT ALL - MIN ( + 45 ) + 20 FROM tab0
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-7650
SELECT DISTINCT SUM( DISTINCT - - 73 ) AS col1 FROM tab2
----
73

skipif mysql # not compatible
query I rowsort label-7650
SELECT DISTINCT SUM ( DISTINCT - - 73 ) AS col1 FROM tab2
----
73

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + col0 * col2 + + col0 * + - col2 < - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-7652
SELECT ALL ( - + 31 ) DIV - + 60 AS col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7652
SELECT ALL ( - + 31 ) / - + 60 AS col0 FROM tab1
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - - col0 * col1 + + col0 * - 28 IS NULL
----

query II rowsort
SELECT + col2 AS col0, - 42 FROM tab1
----
59
-42
68
-42
96
-42

query I rowsort
SELECT ALL - + col1 FROM tab1 WHERE ( - col1 >= 29 / + 1 )
----

query II rowsort
SELECT col1, col0 AS col2 FROM tab2 AS cor0
----
51
46
67
75
77
64

query I rowsort
SELECT DISTINCT + 55 + + ( - - 22 ) AS col2 FROM tab2 AS cor0
----
77

query I rowsort
SELECT DISTINCT + 32 * 29 + - - col0 FROM tab2 WHERE NULL IN ( - + col1 + - col2 + - ( 10 ) * + col2 * - - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7659
SELECT ALL + SUM( ALL 50 ) * + MAX( + col1 ) + - - MAX( ALL ( - col2 ) ) FROM tab0
----
12140

skipif mysql # not compatible
query I rowsort label-7659
SELECT ALL + SUM ( ALL 50 ) * + MAX ( + col1 ) + - - MAX ( ALL ( - col2 ) ) FROM tab0
----
12140

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7660
SELECT - 17 DIV COUNT( + + col1 ) AS col1 FROM tab1 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-7660
SELECT - 17 / COUNT ( + + col1 ) AS col1 FROM tab1 AS cor0
----
-5

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( - + col1 + - + col0 IS NOT NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NOT - col2 IS NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT ALL col1 * - - col0 AS col2, + col2 AS col2 FROM tab1 AS cor0
----
425
59
4277
68
714
96

query II rowsort
SELECT 70, col1 * - col2 FROM tab2 AS cor0 WHERE ( col1 IS NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7665
SELECT ( - - col1 ) - - col2 DIV col0 FROM tab0 AS cor0
----
2
21
84

skipif mysql # not compatible
query I rowsort label-7665
SELECT ( - - col1 ) - - col2 / col0 FROM tab0 AS cor0
----
2
21
84

onlyif mysql # aggregate syntax: 
query I rowsort label-7666
SELECT DISTINCT + COUNT( * ) + + COUNT( * ) AS col1 FROM tab2 cor0
----
6

skipif mysql # not compatible
query I rowsort label-7666
SELECT DISTINCT + COUNT ( * ) + + COUNT ( * ) AS col1 FROM tab2 cor0
----
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col0 * col2 + col1 col2 FROM tab0 cor0
----
786
891
9604

onlyif mysql # aggregate syntax: 
query I rowsort label-7668
SELECT DISTINCT - COUNT( * ) + - 60 col2 FROM tab2
----
-63

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7668
SELECT DISTINCT - COUNT ( * ) + - 60 col2 FROM tab2
----
-63

query I rowsort
SELECT DISTINCT - 56 AS col0 FROM tab2 WHERE NULL NOT BETWEEN - col1 AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - 69 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7671
SELECT DISTINCT MIN( ALL + - col1 ) FROM tab0
----
-81

skipif mysql # not compatible
query I rowsort label-7671
SELECT DISTINCT MIN ( ALL + - col1 ) FROM tab0
----
-81

query II rowsort
SELECT DISTINCT - - 14, - 17 - 78 FROM tab2 WHERE + + 94 BETWEEN + - ( - col1 ) AND NULL
----

query I rowsort
SELECT + col0 FROM tab0 WHERE NOT col1 + + + col1 * - + col0 * col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7674
SELECT COUNT( * ) * - 11 AS col1 FROM tab1
----
-33

skipif mysql # not compatible
query I rowsort label-7674
SELECT COUNT ( * ) * - 11 AS col1 FROM tab1
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-7675
SELECT DISTINCT 66 * COUNT( * ) AS col2 FROM tab1 AS cor0
----
198

skipif mysql # not compatible
query I rowsort label-7675
SELECT DISTINCT 66 * COUNT ( * ) AS col2 FROM tab1 AS cor0
----
198

onlyif mysql # aggregate syntax: 
query II rowsort label-7676
SELECT - 39 * - - 88 + + 5 AS col0, COUNT( * ) AS col0 FROM tab2 cor0
----
-3427
3

skipif mysql # not compatible
query II rowsort label-7676
SELECT - 39 * - - 88 + + 5 AS col0, COUNT ( * ) AS col0 FROM tab2 cor0
----
-3427
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7677
SELECT ALL + MAX( - 48 ) FROM tab1 cor0
----
-48

skipif mysql # not compatible
query I rowsort label-7677
SELECT ALL + MAX ( - 48 ) FROM tab1 cor0
----
-48

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col2 NOT BETWEEN NULL AND 63 * - col1
----

query I rowsort
SELECT DISTINCT ( + + ( - + col0 ) ) * col2 AS col0 FROM tab0 AS cor0
----
-705
-870
-9603

query I rowsort
SELECT DISTINCT - 81 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-81

query I rowsort
SELECT DISTINCT ( col0 ) AS col0 FROM tab1 WHERE NULL IS NULL
----
51
85
91

query I rowsort
SELECT ALL - + col0 AS col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-46
-64
-75

query I rowsort
SELECT 22 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to c55ee7433d8d39a59b1de2aadd9538c9

query II rowsort
SELECT DISTINCT + 84, ( + - 26 ) AS col1 FROM tab0
----
84
-26

query II rowsort
SELECT - col2 AS col0, + 61 FROM tab2
----
-23
61
-40
61
-58
61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7686
SELECT ALL 99 + - - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7686
SELECT ALL 99 + - - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col2 * + col2 * + col2 AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL col1 + + - col1 AS col1 FROM tab2 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 col0, col1 FROM tab1 AS cor0
----
-51
14
-85
5
-91
47

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7690
SELECT DISTINCT - MIN( ALL col1 ) AS col2, - COUNT( * ) DIV COUNT( * ) * - MIN( - + col0 ) FROM tab1 AS cor0
----
-5
-91

skipif mysql # not compatible
query II rowsort label-7690
SELECT DISTINCT - MIN ( ALL col1 ) AS col2, - COUNT ( * ) / COUNT ( * ) * - MIN ( - + col0 ) FROM tab1 AS cor0
----
-5
-91

onlyif mysql # DIV for integer division: 
query I rowsort label-7691
SELECT + 13 + ( col1 ) DIV - - col2 FROM tab0
----
13
14
15

skipif mysql # not compatible
query I rowsort label-7691
SELECT + 13 + ( col1 ) / - - col2 FROM tab0
----
13
14
15

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 63 + + - 79 col2 FROM tab2
----
-16
-16
-16

query I rowsort
SELECT + col1 + - - 73 AS col2 FROM tab1
----
120
78
87

query I rowsort
SELECT col0 + - 23 AS col0 FROM tab1
----
28
62
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7695
SELECT ALL + CAST( NULL AS SIGNED ) + + + col0 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7695
SELECT ALL + CAST ( NULL AS INTEGER ) + + + col0 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - 50 * + ( - - col1 ) FROM tab1 AS cor0
----
-2350
-250
-700

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 38 * col2, 26 col0 FROM tab2 cor0
----
1520
26
2204
26
874
26

query I rowsort
SELECT DISTINCT 65 - 63 FROM tab0
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-7699
SELECT ALL + MIN( + col0 ) * + + ( - + COUNT( * ) ) AS col2 FROM tab0 AS cor0
----
-45

skipif mysql # not compatible
query I rowsort label-7699
SELECT ALL + MIN ( + col0 ) * + + ( - + COUNT ( * ) ) AS col2 FROM tab0 AS cor0
----
-45

onlyif mysql # aggregate syntax: 
query II rowsort label-7700
SELECT DISTINCT - 0 AS col0, ( - - COUNT( * ) ) FROM tab1 AS cor0
----
0
3

skipif mysql # not compatible
query II rowsort label-7700
SELECT DISTINCT - 0 AS col0, ( - - COUNT ( * ) ) FROM tab1 AS cor0
----
0
3

query I rowsort
SELECT DISTINCT - col0 * - 92 FROM tab2 AS cor0
----
4232
5888
6900

onlyif mysql # aggregate syntax: 
query I rowsort label-7702
SELECT DISTINCT COUNT( * ) AS col1 FROM tab2 cor0 WHERE NOT ( + col2 ) <> col2 + ( - - 58 )
----
0

skipif mysql # not compatible
query I rowsort label-7702
SELECT DISTINCT COUNT ( * ) AS col1 FROM tab2 cor0 WHERE NOT ( + col2 ) <> col2 + ( - - 58 )
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-7703
SELECT 15 DIV col0 + - 91, + 85 AS col2 FROM tab1 AS cor0
----
-91
85
-91
85
-91
85

skipif mysql # not compatible
query II rowsort label-7703
SELECT 15 / col0 + - 91, + 85 AS col2 FROM tab1 AS cor0
----
-91
85
-91
85
-91
85

onlyif mysql # DIV for integer division: 
query I rowsort label-7704
SELECT ALL + col2 DIV - + ( + + col1 ) AS col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7704
SELECT ALL + col2 / - + ( + + col1 ) AS col1 FROM tab2 AS cor0
----
0
0
0

query II rowsort
SELECT DISTINCT + - col0 AS col2, - col1 * - 46 FROM tab1 AS cor0
----
-51
644
-85
230
-91
2162

query I rowsort
SELECT + ( - - col2 ) AS col1 FROM tab2 AS cor0
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-7707
SELECT DISTINCT + COUNT( * ) AS col1 FROM tab0 cor0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-7707
SELECT DISTINCT + COUNT ( * ) AS col1 FROM tab0 cor0 WHERE NULL IS NOT NULL
----
0

query I rowsort
SELECT ALL - ( ( col1 ) ) * + 92 - - col0 - + 90 FROM tab2
----
-4736
-6179
-7110

onlyif mysql # DIV for integer division: 
query I rowsort label-7709
SELECT DISTINCT - col2 * - col0 DIV + col0 FROM tab2
----
23
40
58

skipif mysql # not compatible
query I rowsort label-7709
SELECT DISTINCT - col2 * - col0 / + col0 FROM tab2
----
23
40
58

onlyif mysql # DIV for integer division: 
query I rowsort label-7710
SELECT ALL - col0 * col1 DIV - 68 FROM tab0
----
1
17
26

skipif mysql # not compatible
query I rowsort label-7710
SELECT ALL - col0 * col1 / - 68 FROM tab0
----
1
17
26

query I rowsort
SELECT DISTINCT - 33 * + + 0 FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7712
SELECT ALL - SUM( col2 ) FROM tab1 AS cor0
----
-223

skipif mysql # not compatible
query I rowsort label-7712
SELECT ALL - SUM ( col2 ) FROM tab1 AS cor0
----
-223

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7713
SELECT DISTINCT + CAST( + + col1 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-7713
SELECT DISTINCT + CAST ( + + col1 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-7714
SELECT - MAX( + 31 ) AS col2 FROM tab0 AS cor0
----
-31

skipif mysql # not compatible
query I rowsort label-7714
SELECT - MAX ( + 31 ) AS col2 FROM tab0 AS cor0
----
-31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7715
SELECT DISTINCT - COUNT( DISTINCT - col1 ) col1, - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
-3
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7715
SELECT DISTINCT - COUNT ( DISTINCT - col1 ) col1, - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
-3
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7716
SELECT ALL + col2 DIV - col1 AS col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7716
SELECT ALL + col2 / - col1 AS col1 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7717
SELECT ALL SUM( - - col2 ) FROM tab1
----
223

skipif mysql # not compatible
query I rowsort label-7717
SELECT ALL SUM ( - - col2 ) FROM tab1
----
223

query I rowsort
SELECT ALL col0 FROM tab0 WHERE NOT + + 61 <> - + col1 / 17 + - ( - col2 ) + + - 2
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7719
SELECT ALL - col2 DIV - - col0 + - ( - CAST( 1 AS SIGNED ) ) AS col0 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-7719
SELECT ALL - col2 / - - col0 + - ( - CAST ( 1 AS INTEGER ) ) AS col0 FROM tab2 AS cor0
----
1
1
1

query I rowsort
SELECT + 90 + + 48 + + col2 FROM tab1 AS cor0
----
197
206
234

onlyif mysql # aggregate syntax: 
query I rowsort label-7721
SELECT ALL + + SUM( 82 ) FROM tab2 AS cor0
----
246

skipif mysql # not compatible
query I rowsort label-7721
SELECT ALL + + SUM ( 82 ) FROM tab2 AS cor0
----
246

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 col1 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7723
SELECT DISTINCT + 28 DIV - + col1 + - - 42 AS col1 FROM tab1 AS cor0
----
37
40
42

skipif mysql # not compatible
query I rowsort label-7723
SELECT DISTINCT + 28 / - + col1 + - - 42 AS col1 FROM tab1 AS cor0
----
37
40
42

onlyif mysql # aggregate syntax: 
query I rowsort label-7724
SELECT + COUNT( * ) + ( - COUNT( * ) ) FROM tab0 cor0
----
0

skipif mysql # not compatible
query I rowsort label-7724
SELECT + COUNT ( * ) + ( - COUNT ( * ) ) FROM tab0 cor0
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - 73 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7726
SELECT - MAX( + - col1 ) AS col2 FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-7726
SELECT - MAX ( + - col1 ) AS col2 FROM tab2
----
51

onlyif mysql # DIV for integer division: 
query II rowsort label-7727
SELECT ALL - col0 AS col1, col2 DIV - col2 col0 FROM tab1
----
-51
-1
-85
-1
-91
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7727
SELECT ALL - col0 AS col1, col2 / - col2 col0 FROM tab1
----
-51
-1
-85
-1
-91
-1

query II rowsort
SELECT col2, 41 + - - col1 AS col2 FROM tab2
----
23
92
40
118
58
108

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7729
SELECT + COUNT( * ) DIV + + 23 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-7729
SELECT + COUNT ( * ) / + + 23 FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7730
SELECT ALL - MAX( ALL + - col1 ) AS col0 FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-7730
SELECT ALL - MAX ( ALL + - col1 ) AS col0 FROM tab2
----
51

query I rowsort
SELECT + ( + 38 ) - + col1 AS col1 FROM tab1 AS cor0
----
-9
24
33

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7732
SELECT - COUNT( * ) - - - CAST( NULL AS DECIMAL ) AS col0 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7732
SELECT - COUNT ( * ) - - - CAST ( NULL AS REAL ) AS col0 FROM tab0 cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7733
SELECT - + COUNT( * ) + - - 47 FROM tab2 AS cor0
----
44

skipif mysql # not compatible
query I rowsort label-7733
SELECT - + COUNT ( * ) + - - 47 FROM tab2 AS cor0
----
44

query I rowsort
SELECT ALL + col1 - - + col1 FROM tab2
----
102
134
154

query I rowsort
SELECT + 58 * col1 - + col1 - 17 + - + col1 FROM tab2 cor0
----
2839
3735
4295

query I rowsort
SELECT ALL 59 AS col2 FROM tab0 AS cor0
----
59
59
59

query I rowsort
SELECT DISTINCT 68 * + col0 AS col2 FROM tab1 cor0
----
3468
5780
6188

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7738
SELECT ALL * FROM tab2 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-7738
SELECT ALL * FROM tab2 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) IS NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 47 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT ALL col0 AS col0, col1 AS col0 FROM tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7741
SELECT DISTINCT + MAX( ALL col0 ) AS col0 FROM tab2 WHERE ( + + col0 * + - col0 ) > ( NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-7741
SELECT DISTINCT + MAX ( ALL col0 ) AS col0 FROM tab2 WHERE ( + + col0 * + - col0 ) > ( NULL )
----
NULL

query II rowsort
SELECT col0 AS col2, 69 + - 7 FROM tab2
----
46
62
64
62
75
62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7743
SELECT ALL - 55 * + CAST( + COUNT( * ) AS SIGNED ) col1, + ( 55 ) FROM tab2
----
-165
55

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7743
SELECT ALL - 55 * + CAST ( + COUNT ( * ) AS INTEGER ) col1, + ( 55 ) FROM tab2
----
-165
55

query I rowsort
SELECT + 96 * - - col2 AS col0 FROM tab0
----
4512
9504
960

query I rowsort
SELECT DISTINCT - col2 FROM tab2 WHERE col2 IS NOT NULL
----
-23
-40
-58

onlyif mysql # DIV for integer division: 
query II rowsort label-7746
SELECT 0 AS col2, 84 DIV - col0 AS col1 FROM tab1
----
0
-1
0
0
0
0

skipif mysql # not compatible
query II rowsort label-7746
SELECT 0 AS col2, 84 / - col0 AS col1 FROM tab1
----
0
-1
0
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 col1, 33 + + 27 AS col0 FROM tab2
----
-51
60
-67
60
-77
60

query I rowsort
SELECT DISTINCT col1 * - - col0 AS col1 FROM tab1
----
425
4277
714

onlyif mysql # DIV for integer division: 
query I rowsort label-7749
SELECT ALL - ( + col2 ) DIV + ( - col1 ) - - 38 * + ( ( + col1 ) ) AS col0 FROM tab0
----
137
3078
798

skipif mysql # not compatible
query I rowsort label-7749
SELECT ALL - ( + col2 ) / + ( - col1 ) - - 38 * + ( ( + col1 ) ) AS col0 FROM tab0
----
137
3078
798

query I rowsort
SELECT DISTINCT + col0 * - col0 * col0 AS col1 FROM tab1
----
-132651
-614125
-753571

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col2 NOT IN ( + - col0 - col1, col2, - col0 / col2 * - 50 + - 0, + + col1 )
----

query I rowsort
SELECT - col0 AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-15
-87
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-7753
SELECT ALL col1 DIV col0 * + + 78 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7753
SELECT ALL col1 / col0 * + + 78 FROM tab1
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - col0 + ( + + ( + 81 ) ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7755
SELECT CAST( 84 AS SIGNED ) FROM tab1
----
84
84
84

skipif mysql # not compatible
query I rowsort label-7755
SELECT CAST ( 84 AS INTEGER ) FROM tab1
----
84
84
84

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7756
SELECT MIN( ALL - 25 ) DIV 85 col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7756
SELECT MIN ( ALL - 25 ) / 85 col1 FROM tab0 AS cor0
----
0

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE - 85 >= 70
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7758
SELECT DISTINCT - COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE NULL < NULL
----
0

skipif mysql # not compatible
query I rowsort label-7758
SELECT DISTINCT - COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NULL < NULL
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-7759
SELECT + ( - COUNT( * ) ) col1, + COUNT( - col1 ) col2 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7759
SELECT + ( - COUNT ( * ) ) col1, + COUNT ( - col1 ) col2 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----
0
0

query I rowsort
SELECT DISTINCT - - 61 + + col1 FROM tab1 AS cor0
----
108
66
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7761
SELECT - - ( - 27 ) * + 13 * + col1 + - - CAST( + + 80 AS SIGNED ) FROM tab1 cor0 WHERE - col0 <= NULL
----

skipif mysql # not compatible
query I rowsort label-7761
SELECT - - ( - 27 ) * + 13 * + col1 + - - CAST ( + + 80 AS INTEGER ) FROM tab1 cor0 WHERE - col0 <= NULL
----

query I rowsort
SELECT ALL - 16 * - 18 FROM tab0
----
288
288
288

onlyif mysql # aggregate syntax: 
query I rowsort label-7763
SELECT 14 + - - COUNT( * ) col1 FROM tab2
----
17

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7763
SELECT 14 + - - COUNT ( * ) col1 FROM tab2
----
17

query III rowsort
SELECT * FROM tab0 WHERE ( NOT + col0 * + - 52 IS NOT NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 - + 21 col0 FROM tab2
----
30
46
56

onlyif mysql # aggregate syntax: 
query I rowsort label-7766
SELECT 27 + - COUNT( * ) col2 FROM tab0
----
24

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7766
SELECT 27 + - COUNT ( * ) col2 FROM tab0
----
24

query I rowsort
SELECT + col2 * - + 16 + col0 FROM tab2
----
-322
-576
-853

onlyif mysql # aggregate syntax: 
query I rowsort label-7768
SELECT ALL - - COUNT( * ) + COUNT( * ) * + + MIN( DISTINCT col1 ) AS col1 FROM tab1 AS cor0
----
18

skipif mysql # not compatible
query I rowsort label-7768
SELECT ALL - - COUNT ( * ) + COUNT ( * ) * + + MIN ( DISTINCT col1 ) AS col1 FROM tab1 AS cor0
----
18

onlyif mysql # DIV for integer division: 
query I rowsort label-7769
SELECT ALL - col1 DIV - - col1 + + - col1 + - + 92 + col0 FROM tab2 AS cor0
----
-106
-85
-98

skipif mysql # not compatible
query I rowsort label-7769
SELECT ALL - col1 / - - col1 + + - col1 + - + 92 + col0 FROM tab2 AS cor0
----
-106
-85
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-7770
SELECT DISTINCT COUNT( * ) + + COUNT( + 70 ) AS col2 FROM tab2 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-7770
SELECT DISTINCT COUNT ( * ) + + COUNT ( + 70 ) AS col2 FROM tab2 AS cor0
----
6

query I rowsort
SELECT DISTINCT + 89 + - + 15 FROM tab2 AS cor0
----
74

query II rowsort
SELECT 9 - + - col2, + col1 FROM tab1
----
105
14
68
5
77
47

query I rowsort
SELECT ALL - ( + 90 ) AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7774
SELECT + MIN( 34 ) AS col1 FROM tab1 AS cor0
----
34

skipif mysql # not compatible
query I rowsort label-7774
SELECT + MIN ( 34 ) AS col1 FROM tab1 AS cor0
----
34

query II rowsort
SELECT DISTINCT + 4 AS col0, - 62 * + col1 FROM tab2 AS cor0
----
4
-3162
4
-4154
4
-4774

onlyif mysql # aggregate syntax: 
query II rowsort label-7776
SELECT + - SUM( + - 64 ), + 3 AS col1 FROM tab2 AS cor0
----
192
3

skipif mysql # not compatible
query II rowsort label-7776
SELECT + - SUM ( + - 64 ), + 3 AS col1 FROM tab2 AS cor0
----
192
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7777
SELECT - - SUM( ALL - col1 ) AS col1 FROM tab0 AS cor0 WHERE NOT + col1 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7777
SELECT - - SUM ( ALL - col1 ) AS col1 FROM tab0 AS cor0 WHERE NOT + col1 IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7778
SELECT ALL CAST( - col0 AS SIGNED ) AS col1 FROM tab2 cor0
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-7778
SELECT ALL CAST ( - col0 AS INTEGER ) AS col1 FROM tab2 cor0
----
-46
-64
-75

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT ( 60 IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7780
SELECT - SUM( DISTINCT + col1 ) col1 FROM tab0 AS cor0
----
-103

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7780
SELECT - SUM ( DISTINCT + col1 ) col1 FROM tab0 AS cor0
----
-103

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( 55 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7782
SELECT + - SUM( + col1 ) AS col2 FROM tab2 cor0
----
-195

skipif mysql # not compatible
query I rowsort label-7782
SELECT + - SUM ( + col1 ) AS col2 FROM tab2 cor0
----
-195

onlyif mysql # aggregate syntax: 
query I rowsort label-7783
SELECT ( + + SUM( DISTINCT ( - - col0 ) ) ) AS col1 FROM tab2
----
185

skipif mysql # not compatible
query I rowsort label-7783
SELECT ( + + SUM ( DISTINCT ( - - col0 ) ) ) AS col1 FROM tab2
----
185

onlyif mysql # aggregate syntax: 
query I rowsort label-7784
SELECT ALL - MAX( ALL - col0 ) FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-7784
SELECT ALL - MAX ( ALL - col0 ) FROM tab0
----
15

query II rowsort
SELECT DISTINCT col2 * 51 AS col1, + 19 - - col1 AS col2 FROM tab1
----
3009
24
3468
66
4896
33

query I rowsort
SELECT + ( - + col1 ) * 39 + + col0 FROM tab0
----
-3144
-732
58

query I rowsort
SELECT + col0 AS col0 FROM tab1 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT ALL - ( + 22 ) * 48, - col0 AS col0 FROM tab0
----
-1056
-15
-1056
-87
-1056
-97

query I rowsort
SELECT ALL col1 * + col1 * 2 * - col0 FROM tab0
----
-194
-196830
-76734

query II rowsort
SELECT ALL + col1 + - col0, - col1 AS col0 FROM tab1 AS cor0
----
-37
-14
-44
-47
-80
-5

query I rowsort
SELECT DISTINCT - 8 FROM tab2 AS cor0 CROSS JOIN tab1 cor1 WHERE NOT NULL IS NOT NULL
----
-8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col0 col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-51
-85
-91

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - 44 BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT + ( + - 11 ) + col1 - + col2 * + - 21 FROM tab2 AS cor0
----
1274
523
906

onlyif mysql # aggregate syntax: 
query I rowsort label-7795
SELECT COUNT( ALL 93 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7795
SELECT COUNT ( ALL 93 ) FROM tab0 AS cor0
----
3

query II rowsort
SELECT - - col0 AS col1, - 42 * - - col2 AS col2 FROM tab1 AS cor0
----
51
-4032
85
-2478
91
-2856

onlyif mysql # DIV for integer division: 
query II rowsort label-7797
SELECT + col1, + col0 DIV ( ( + col1 ) ) FROM tab0 AS cor0
----
1
97
21
4
81
0

skipif mysql # not compatible
query II rowsort label-7797
SELECT + col1, + col0 / ( ( + col1 ) ) FROM tab0 AS cor0
----
1
97
21
4
81
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col2 <> NULL
----

query I rowsort
SELECT ALL + + 14 * - col0 + - + 67 AS col1 FROM tab2 AS cor0
----
-1117
-711
-963

query I rowsort
SELECT DISTINCT col0 * + + col1 + col2 FROM tab2
----
2369
4968
5083

onlyif mysql # DIV for integer division: 
query I rowsort label-7801
SELECT DISTINCT - ( - - col0 ) DIV col1 col1 FROM tab1
----
-1
-17
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7801
SELECT DISTINCT - ( - - col0 ) / col1 col1 FROM tab1
----
-1
-17
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-7802
SELECT DISTINCT - MAX( ALL - col2 ) AS col0 FROM tab1 WHERE NULL <> NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7802
SELECT DISTINCT - MAX ( ALL - col2 ) AS col0 FROM tab1 WHERE NULL <> NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7803
SELECT ALL ( - - 40 ) DIV - + ( - col0 ) - 24 FROM tab0
----
-22
-24
-24

skipif mysql # not compatible
query I rowsort label-7803
SELECT ALL ( - - 40 ) / - + ( - col0 ) - 24 FROM tab0
----
-22
-24
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-7804
SELECT DISTINCT - - COUNT( * ) + 68 + 11 FROM tab2 WHERE NOT + col0 IS NOT NULL
----
79

skipif mysql # not compatible
query I rowsort label-7804
SELECT DISTINCT - - COUNT ( * ) + 68 + 11 FROM tab2 WHERE NOT + col0 IS NOT NULL
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-7805
SELECT DISTINCT COUNT( DISTINCT - col2 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-7805
SELECT DISTINCT COUNT ( DISTINCT - col2 ) FROM tab1
----
3

query I rowsort
SELECT + ( - + col0 ) - - + 90 FROM tab0
----
-7
3
75

query I rowsort
SELECT col1 * - - col2 + - + 60 AS col1 FROM tab0 AS cor0
----
150
3747
39

query I rowsort
SELECT DISTINCT - 55 AS col0 FROM tab0 AS cor0
----
-55

query III rowsort
SELECT * FROM tab0 WHERE NOT - ( + - col2 ) * - - 98 / + col2 BETWEEN + + col2 * + 72 AND - 55
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT - 84, 79 AS col2 FROM tab0
----
-84
79
-84
79
-84
79

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - 76 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7812
SELECT DISTINCT - - COUNT( DISTINCT - ( - col1 ) ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7812
SELECT DISTINCT - - COUNT ( DISTINCT - ( - col1 ) ) FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7813
SELECT ALL - + SUM( DISTINCT 1 ) FROM tab2 cor0
----
-1

skipif mysql # not compatible
query I rowsort label-7813
SELECT ALL - + SUM ( DISTINCT 1 ) FROM tab2 cor0
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-7814
SELECT - + 53 DIV - ( col2 ) + + 9 FROM tab1 AS cor0
----
9
9
9

skipif mysql # not compatible
query I rowsort label-7814
SELECT - + 53 / - ( col2 ) + + 9 FROM tab1 AS cor0
----
9
9
9

onlyif mysql # DIV for integer division: 
query I rowsort label-7815
SELECT - col1 DIV - + 97 AS col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7815
SELECT - col1 / - + 97 AS col2 FROM tab1
----
0
0
0

query I rowsort
SELECT DISTINCT + col1 * + 12 * col1 FROM tab2
----
31212
53868
71148

onlyif mysql # DIV for integer division: 
query II rowsort label-7817
SELECT - 40 AS col0, + col2 DIV - 78 AS col0 FROM tab0
----
-40
-1
-40
0
-40
0

skipif mysql # not compatible
query II rowsort label-7817
SELECT - 40 AS col0, + col2 / - 78 AS col0 FROM tab0
----
-40
-1
-40
0
-40
0

query II rowsort
SELECT + 13 AS col0, - 88 FROM tab2
----
13
-88
13
-88
13
-88

query I rowsort
SELECT ALL 67 * - col0 * col0 + + 4 FROM tab1
----
-174263
-484071
-554823

onlyif mysql # aggregate syntax: 
query I rowsort label-7820
SELECT + SUM( ALL col1 ) * MAX( DISTINCT col1 ) * 93 * - 94 + COUNT( * ) FROM tab1
----
-27117681

skipif mysql # not compatible
query I rowsort label-7820
SELECT + SUM ( ALL col1 ) * MAX ( DISTINCT col1 ) * 93 * - 94 + COUNT ( * ) FROM tab1
----
-27117681

query I rowsort
SELECT col0 * - - col2 + + col0 AS col1 FROM tab0 AS cor0
----
720
957
9700

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7822
SELECT col2 + - CAST( + col0 AS SIGNED ) * + - col1 AS col0 FROM tab1 AS cor0
----
4345
484
810

skipif mysql # not compatible
query I rowsort label-7822
SELECT col2 + - CAST ( + col0 AS INTEGER ) * + - col1 AS col0 FROM tab1 AS cor0
----
4345
484
810

query I rowsort
SELECT DISTINCT - col2 - + ( + 78 ) * + 76 FROM tab2
----
-5951
-5968
-5986

onlyif mysql # aggregate syntax: 
query I rowsort label-7824
SELECT - - COUNT( ALL + - col2 ) FROM tab1 WHERE + + 28 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-7824
SELECT - - COUNT ( ALL + - col2 ) FROM tab1 WHERE + + 28 IS NULL
----
0

query I rowsort
SELECT col1 + - + 46 FROM tab2
----
21
31
5

onlyif mysql # DIV for integer division: 
query II rowsort label-7826
SELECT col1 * + 73 + 30 * 36 AS col1, + col0 DIV 74 * - col2 FROM tab0
----
1153
-99
2613
-10
6993
0

skipif mysql # not compatible
query II rowsort label-7826
SELECT col1 * + 73 + 30 * 36 AS col1, + col0 / 74 * - col2 FROM tab0
----
1153
-99
2613
-10
6993
0

query I rowsort
SELECT DISTINCT 2 * - col1 * - col1 + + - col1 FROM tab2
----
11781
5151
8911

query I rowsort
SELECT ALL - col2 - - 29 FROM tab1
----
-30
-39
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-7829
SELECT ALL - MIN( col0 ) AS col0 FROM tab2
----
-46

skipif mysql # not compatible
query I rowsort label-7829
SELECT ALL - MIN ( col0 ) AS col0 FROM tab2
----
-46

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7830
SELECT + 59 AS col1, CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
59
NULL
59
NULL
59
NULL

skipif mysql # not compatible
query II rowsort label-7830
SELECT + 59 AS col1, CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
59
NULL
59
NULL
59
NULL

query I rowsort
SELECT + ( + col2 ) * - + 91 FROM tab0 AS cor0
----
-4277
-9009
-910

query I rowsort
SELECT - 35 * - 42 AS col2 FROM tab1 AS cor0
----
1470
1470
1470

query III rowsort
SELECT ALL * FROM tab2 WHERE 70 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7834
SELECT MAX( ALL + col0 ) AS col0 FROM tab1 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-7834
SELECT MAX ( ALL + col0 ) AS col0 FROM tab1 AS cor0
----
91

query I rowsort
SELECT ALL + + 8 * - + ( col1 ) AS col2 FROM tab2 AS cor0
----
-408
-536
-616

onlyif mysql # aggregate syntax: 
query I rowsort label-7836
SELECT ALL MIN( + col0 ) FROM tab0 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-7836
SELECT ALL MIN ( + col0 ) FROM tab0 AS cor0
----
15

onlyif mysql # DIV for integer division: 
query I rowsort label-7837
SELECT col1 DIV + + col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7837
SELECT col1 / + + col0 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7838
SELECT 77 * - COUNT( * ) FROM tab2
----
-231

skipif mysql # not compatible
query I rowsort label-7838
SELECT 77 * - COUNT ( * ) FROM tab2
----
-231

query III rowsort
SELECT * FROM tab0 WHERE NOT + col2 = - col1 / + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( 69 + + col1 BETWEEN NULL AND - 74 )
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE ( NULL ) = - 68
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( + - 80 ) + - + col1 col2 FROM tab2 AS cor0
----
-131
-147
-157

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7843
SELECT CAST( - col0 AS DECIMAL ) FROM tab2 AS cor0 WHERE NULL BETWEEN ( col2 * - - 78 * - + col0 ) AND col0 + + col0
----

skipif mysql # not compatible
query I rowsort label-7843
SELECT CAST ( - col0 AS REAL ) FROM tab2 AS cor0 WHERE NULL BETWEEN ( col2 * - - 78 * - + col0 ) AND col0 + + col0
----

query I rowsort
SELECT DISTINCT + col0 + col2 + - 44 + - col0 FROM tab1 AS cor0
----
15
24
52

query I rowsort
SELECT ALL col1 FROM tab1 AS cor0 WHERE NULL IS NULL
----
14
47
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7846
SELECT ALL - CAST( + + MAX( col2 ) AS SIGNED ) FROM tab1
----
-96

skipif mysql # not compatible
query I rowsort label-7846
SELECT ALL - CAST ( + + MAX ( col2 ) AS INTEGER ) FROM tab1
----
-96

query I rowsort
SELECT - + 42 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 9894093f29c0defae91347934f060329

query I rowsort
SELECT ALL - col1 * + + 16 AS col0 FROM tab2
----
-1072
-1232
-816

query II rowsort
SELECT col0 + + col0 * - - col2 * 94, col1 FROM tab2
----
240704
77
408975
67
99498
51

onlyif mysql # DIV for integer division: 
query II rowsort label-7850
SELECT col0 AS col0, + col2 DIV - col0 FROM tab0 AS cor0
----
15
-3
87
0
97
-1

skipif mysql # not compatible
query II rowsort label-7850
SELECT col0 AS col0, + col2 / - col0 FROM tab0 AS cor0
----
15
-3
87
0
97
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-7851
SELECT + - col0 DIV - col0 + + col0 AS col0 FROM tab1 AS cor0
----
52
86
92

skipif mysql # not compatible
query I rowsort label-7851
SELECT + - col0 / - col0 + + col0 AS col0 FROM tab1 AS cor0
----
52
86
92

query II rowsort
SELECT + + 46, - 12 AS col0 FROM tab2 AS cor0
----
46
-12
46
-12
46
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-7853
SELECT + - MAX( DISTINCT - col0 ) AS col2 FROM tab1 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-7853
SELECT + - MAX ( DISTINCT - col0 ) AS col2 FROM tab1 AS cor0
----
51

query I rowsort
SELECT - + 63 AS col2 FROM tab1 AS cor0
----
-63
-63
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-7855
SELECT ALL - + MAX( ALL - col2 ) + - SUM( + + ( + col2 ) ) AS col0 FROM tab1 AS cor0
----
-164

skipif mysql # not compatible
query I rowsort label-7855
SELECT ALL - + MAX ( ALL - col2 ) + - SUM ( + + ( + col2 ) ) AS col0 FROM tab1 AS cor0
----
-164

onlyif mysql # aggregate syntax: 
query I rowsort label-7856
SELECT COUNT( - col1 ) - 27 AS col2 FROM tab2
----
-24

skipif mysql # not compatible
query I rowsort label-7856
SELECT COUNT ( - col1 ) - 27 AS col2 FROM tab2
----
-24

query III rowsort
SELECT ALL * FROM tab2 WHERE + col2 > - 82
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-7858
SELECT 99 * + COUNT( * ) AS col0 FROM tab1
----
297

skipif mysql # not compatible
query I rowsort label-7858
SELECT 99 * + COUNT ( * ) AS col0 FROM tab1
----
297

query I rowsort
SELECT DISTINCT - col1 AS col2 FROM tab0 WHERE NULL >= - + col2
----

query I rowsort
SELECT ALL ( + - 1 ) * 59 + - 40 FROM tab1
----
-99
-99
-99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * + 85 col2 FROM tab2
----
1955
3400
4930

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + col1 ) * + col2 col1 FROM tab1
----
1344
295
3196

onlyif mysql # aggregate syntax: 
query I rowsort label-7863
SELECT + COUNT( * ) FROM tab2 WHERE NOT + - col1 NOT BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-7863
SELECT + COUNT ( * ) FROM tab2 WHERE NOT + - col1 NOT BETWEEN NULL AND NULL
----
0

query I rowsort
SELECT ALL - 26 * - col1 AS col2 FROM tab2 AS cor0
----
1326
1742
2002

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7865
SELECT DISTINCT CAST( COUNT( DISTINCT + - col0 ) AS SIGNED ) + COUNT( * ) + - COUNT( * ) FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-7865
SELECT DISTINCT CAST ( COUNT ( DISTINCT + - col0 ) AS INTEGER ) + COUNT ( * ) + - COUNT ( * ) FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
0

query I rowsort
SELECT ALL - - 44 AS col1 FROM tab2 AS cor0 WHERE NOT - col2 - + col1 + - - ( + col1 ) IS NOT NULL
----

query I rowsort
SELECT ( + 12 ) AS col1 FROM tab1
----
12
12
12

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col2 col2, col0 FROM tab2
----
-23
46
-40
64
-58
75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7869
SELECT DISTINCT - - COUNT( * ) DIV - 75 AS col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7869
SELECT DISTINCT - - COUNT ( * ) / - 75 AS col0 FROM tab0 AS cor0
----
0

query I rowsort
SELECT DISTINCT - + 47 FROM tab2 AS cor0 WHERE + col2 * - ( + 62 ) + - col1 >= - col1
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7871
SELECT ALL COUNT( * ) AS col1, + COUNT( * ) + 65 AS col2 FROM tab1 AS cor0
----
3
68

skipif mysql # not compatible
query II rowsort label-7871
SELECT ALL COUNT ( * ) AS col1, + COUNT ( * ) + 65 AS col2 FROM tab1 AS cor0
----
3
68

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE col0 BETWEEN NULL AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 66 col1 FROM tab1 cor0
----
-66
-66
-66

query I rowsort
SELECT DISTINCT 74 * col1 FROM tab2
----
3774
4958
5698

query I rowsort
SELECT 90 + - 73 * + + col0 FROM tab1
----
-3633
-6115
-6553

query I rowsort
SELECT + - col2 FROM tab0 WHERE + col0 < - col2 * col2
----

query I rowsort
SELECT col2 + + 71 AS col0 FROM tab2
----
111
129
94

onlyif mysql # aggregate syntax: 
query I rowsort label-7878
SELECT ALL - COUNT( DISTINCT - col1 ) FROM tab2 WHERE NOT NULL <= + - 11
----
0

skipif mysql # not compatible
query I rowsort label-7878
SELECT ALL - COUNT ( DISTINCT - col1 ) FROM tab2 WHERE NOT NULL <= + - 11
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7879
SELECT ALL + COUNT( - + col2 ) + - 77 AS col0 FROM tab0 AS cor0
----
-74

skipif mysql # not compatible
query I rowsort label-7879
SELECT ALL + COUNT ( - + col2 ) + - 77 AS col0 FROM tab0 AS cor0
----
-74

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + ( 78 ) + + 4 + 9 + - - col0 * col0 * + - 64 < NULL
----

query II rowsort
SELECT + col0 AS col0, + col2 FROM tab2
----
46
23
64
40
75
58

query I rowsort
SELECT DISTINCT + + col0 FROM tab0 WHERE 57 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7883
SELECT + MAX( ALL - + col1 ) FROM tab2
----
-51

skipif mysql # not compatible
query I rowsort label-7883
SELECT + MAX ( ALL - + col1 ) FROM tab2
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-7884
SELECT DISTINCT MAX( ALL col2 ) FROM tab0 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-7884
SELECT DISTINCT MAX ( ALL col2 ) FROM tab0 AS cor0
----
99

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col1 + + col2 - - col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7886
SELECT ALL 3 * CAST( NULL AS SIGNED ) + - + COUNT( * ) FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7886
SELECT ALL 3 * CAST ( NULL AS INTEGER ) + - + COUNT ( * ) FROM tab0 cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 3 * - 38 + 51 - - + col1 col1 FROM tab1 AS cor0
----
170
179
212

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7888
SELECT ALL - SUM( DISTINCT - CAST( NULL AS SIGNED ) ) AS col2 FROM tab2 AS cor0 WHERE - col0 NOT BETWEEN NULL AND - 5
----
NULL

skipif mysql # not compatible
query I rowsort label-7888
SELECT ALL - SUM ( DISTINCT - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab2 AS cor0 WHERE - col0 NOT BETWEEN NULL AND - 5
----
NULL

query I rowsort
SELECT ALL - col2 - - + col1 AS col0 FROM tab2 AS cor0
----
28
37
9

onlyif mysql # aggregate syntax: 
query I rowsort label-7890
SELECT DISTINCT COUNT( * ) + - 74 AS col1 FROM tab2 AS cor0
----
-71

skipif mysql # not compatible
query I rowsort label-7890
SELECT DISTINCT COUNT ( * ) + - 74 AS col1 FROM tab2 AS cor0
----
-71

query I rowsort
SELECT DISTINCT ( - col0 ) + + ( + + 49 ) - col2 AS col2 FROM tab2
----
-20
-55
-84

query III rowsort
SELECT * FROM tab2 WHERE NOT - col0 * - col0 NOT BETWEEN NULL AND - + col2
----

query I rowsort
SELECT ALL 53 * + - col1 * + 40 FROM tab1
----
-10600
-29680
-99640

query II rowsort
SELECT DISTINCT + col1 * + col2 AS col1, - 87 AS col1 FROM tab2
----
1173
-87
3080
-87
3886
-87

query II rowsort
SELECT DISTINCT ( + col1 ) AS col2, - col2 + col2 * col2 * + + col1 FROM tab1
----
14
128928
47
217260
5
17346

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 78 col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
78
78
78

onlyif mysql # aggregate syntax: 
query I rowsort label-7897
SELECT ALL 98 * + ( + MAX( ALL - col1 ) ) FROM tab0
----
-98

skipif mysql # not compatible
query I rowsort label-7897
SELECT ALL 98 * + ( + MAX ( ALL - col1 ) ) FROM tab0
----
-98

query I rowsort
SELECT DISTINCT + col2 * col1 * - + ( - col1 ) FROM tab0
----
308367
4410
99

query I rowsort
SELECT ALL + col2 + + 70 + + - 34 FROM tab1 AS cor0
----
104
132
95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7900
SELECT - col1 - + 50 FROM tab2 AS cor0 WHERE NOT ( + col1 ) IN ( col2, 75, + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-7900
SELECT - col1 - + 50 FROM tab2 AS cor0 WHERE NOT ( + col1 ) IN ( col2, 75, + CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT ALL + 89 * + - 67 + col0 FROM tab1 AS cor0
----
-5872
-5878
-5912

onlyif mysql # DIV for integer division: 
query I rowsort label-7902
SELECT - + col2 DIV + col0 + + col0 AS col2 FROM tab1 AS cor0
----
50
85
91

skipif mysql # not compatible
query I rowsort label-7902
SELECT - + col2 / + col0 + + col0 AS col2 FROM tab1 AS cor0
----
50
85
91

query I rowsort
SELECT DISTINCT - + 37 AS col1 FROM tab2 AS cor0
----
-37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7904
SELECT DISTINCT COUNT( + col2 ) * + CAST( 3 AS SIGNED ) FROM tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-7904
SELECT DISTINCT COUNT ( + col2 ) * + CAST ( 3 AS INTEGER ) FROM tab1 AS cor0
----
9

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col1 NOT BETWEEN col1 AND + - col0 * 45
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT - col0 AS col1, ( + ( - 76 ) ) + - col1 * - col0 + - + col0 + - + col2 FROM tab0
----
-15
1077
-87
1654
-97
-175

onlyif mysql # aggregate syntax: 
query I rowsort label-7907
SELECT DISTINCT COUNT( * ) FROM tab0 WHERE NOT ( NOT NULL IS NULL )
----
3

skipif mysql # not compatible
query I rowsort label-7907
SELECT DISTINCT COUNT ( * ) FROM tab0 WHERE NOT ( NOT NULL IS NULL )
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7908
SELECT ALL 71 * + CAST( + + col0 AS SIGNED ) * ( col1 ) + - - 0 FROM tab0
----
129717
6887
86265

skipif mysql # not compatible
query I rowsort label-7908
SELECT ALL 71 * + CAST ( + + col0 AS INTEGER ) * ( col1 ) + - - 0 FROM tab0
----
129717
6887
86265

onlyif mysql # DIV for integer division: 
query I rowsort label-7909
SELECT DISTINCT ( col2 ) DIV - col1 + + 52 * col0 + + - col0 * + 46 AS col2 FROM tab2
----
276
384
450

skipif mysql # not compatible
query I rowsort label-7909
SELECT DISTINCT ( col2 ) / - col1 + + 52 * col0 + + - col0 * + 46 AS col2 FROM tab2
----
276
384
450

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col0 >= col2
----

query IIIIII rowsort
SELECT ALL * FROM tab2, tab0 AS cor0 WHERE NOT - - 2 IS NULL
----
54 values hashing to 38882227cfc7c3bf621ed1f30345739c

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( NOT ( - col2 ) BETWEEN col2 AND - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7913
SELECT - COUNT( * ) * - - 97 col2 FROM tab1
----
-291

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7913
SELECT - COUNT ( * ) * - - 97 col2 FROM tab1
----
-291

onlyif mysql # aggregate syntax: 
query I rowsort label-7914
SELECT ALL MAX( 73 ) FROM tab1
----
73

skipif mysql # not compatible
query I rowsort label-7914
SELECT ALL MAX ( 73 ) FROM tab1
----
73

query I rowsort
SELECT DISTINCT 98 AS col0 FROM tab0, tab1 AS cor0
----
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7916
SELECT - CAST( + col0 AS SIGNED ) - + col0 * + - 63 - - col1 * - ( - col0 ) * - 12 AS col0 FROM tab1 WHERE - + col2 IS NULL
----

skipif mysql # not compatible
query I rowsort label-7916
SELECT - CAST ( + col0 AS INTEGER ) - + col0 * + - 63 - - col1 * - ( - col0 ) * - 12 AS col0 FROM tab1 WHERE - + col2 IS NULL
----

query II rowsort
SELECT + col2 * + col0 * + + 65, col0 FROM tab2
----
166400
64
282750
75
68770
46

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NULL = NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL NOT BETWEEN NULL AND col1
----

query I rowsort
SELECT ( 45 ) * + ( - 90 * col0 ) FROM tab0
----
-352350
-392850
-60750

query I rowsort
SELECT 64 * - 60 AS col2 FROM tab2
----
-3840
-3840
-3840

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL IN ( - col0 / col0 - + col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7923
SELECT DISTINCT + 68 / + CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7923
SELECT DISTINCT + 68 / + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + col2 * col0 NOT IN ( - ( col2 ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7925
SELECT col1 DIV 27 + + 82 FROM tab1
----
82
82
83

skipif mysql # not compatible
query I rowsort label-7925
SELECT col1 / 27 + + 82 FROM tab1
----
82
82
83

query I rowsort
SELECT DISTINCT 89 FROM tab2 WHERE 87 <= col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7927
SELECT ALL CAST( NULL AS SIGNED ) + + COUNT( * ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7927
SELECT ALL CAST ( NULL AS INTEGER ) + + COUNT ( * ) AS col0 FROM tab1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 99 - col1 col2 FROM tab1
----
-104
-113
-146

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7929
SELECT ALL - COUNT( * ) - CAST( NULL AS DECIMAL ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7929
SELECT ALL - COUNT ( * ) - CAST ( NULL AS REAL ) AS col2 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7930
SELECT ALL + COUNT( * ) + 0 FROM tab1 WHERE + col1 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-7930
SELECT ALL + COUNT ( * ) + 0 FROM tab1 WHERE + col1 IS NOT NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7931
SELECT ALL MIN( DISTINCT - col1 ) FROM tab0
----
-81

skipif mysql # not compatible
query I rowsort label-7931
SELECT ALL MIN ( DISTINCT - col1 ) FROM tab0
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-7932
SELECT MIN( col2 ) + - 89 FROM tab1
----
-30

skipif mysql # not compatible
query I rowsort label-7932
SELECT MIN ( col2 ) + - 89 FROM tab1
----
-30

query I rowsort
SELECT col1 + col1 AS col2 FROM tab0 WHERE NULL NOT BETWEEN ( - col2 ) AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 21 col0 FROM tab0 WHERE + col1 = - 24 * - ( col1 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7935
SELECT SUM( DISTINCT CAST( NULL AS SIGNED ) ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-7935
SELECT SUM ( DISTINCT CAST ( NULL AS INTEGER ) ) FROM tab2
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7936
SELECT + col0 - CAST( NULL AS DECIMAL ) AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7936
SELECT + col0 - CAST ( NULL AS REAL ) AS col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ( ( col2 ) ) * col1 AS col0 FROM tab0 WHERE NOT + 36 NOT BETWEEN ( - ( col2 ) ) AND col1 + 9 * - col0
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( - 28 ) / - ( 81 / col1 ) < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7939
SELECT + CAST( NULL AS SIGNED ) FROM tab2 AS cor0 WHERE NOT + 34 * + col1 <> col1 + col1 / col1
----

skipif mysql # not compatible
query I rowsort label-7939
SELECT + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 WHERE NOT + 34 * + col1 <> col1 + col1 / col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7940
SELECT DISTINCT MIN( DISTINCT - col2 ) * 58 AS col0 FROM tab1 AS cor0
----
-5568

skipif mysql # not compatible
query I rowsort label-7940
SELECT DISTINCT MIN ( DISTINCT - col2 ) * 58 AS col0 FROM tab1 AS cor0
----
-5568

query I rowsort
SELECT ALL - col1 * col1 + col1 * 28 FROM tab2 WHERE NOT ( NULL ) IS NOT NULL
----
-1173
-2613
-3773

query I rowsort
SELECT - col2 AS col1 FROM tab2 WHERE NOT NULL IN ( col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7943
SELECT + CAST( AVG ( ALL CAST( col1 AS SIGNED ) ) AS SIGNED ) AS col1 FROM tab0
----
34

skipif mysql # not compatible
query I rowsort label-7943
SELECT + CAST ( AVG ( ALL CAST ( col1 AS INTEGER ) ) AS INTEGER ) AS col1 FROM tab0
----
34

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7944
SELECT DISTINCT 76 DIV + COUNT( * ) + COUNT( * ) FROM tab2 AS cor0
----
28

skipif mysql # not compatible
query I rowsort label-7944
SELECT DISTINCT 76 / + COUNT ( * ) + COUNT ( * ) FROM tab2 AS cor0
----
28

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( + 14 ) <> 58
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-7946
SELECT ( - - SUM( ALL col2 ) ) + + 8 AS col0 FROM tab0
----
164

skipif mysql # not compatible
query I rowsort label-7946
SELECT ( - - SUM ( ALL col2 ) ) + + 8 AS col0 FROM tab0
----
164

onlyif mysql # aggregate syntax: 
query I rowsort label-7947
SELECT ALL - ( ( 29 ) ) * + 90 + - COUNT( * ) FROM tab2
----
-2613

skipif mysql # not compatible
query I rowsort label-7947
SELECT ALL - ( ( 29 ) ) * + 90 + - COUNT ( * ) FROM tab2
----
-2613

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7948
SELECT + CAST( NULL AS SIGNED ) + - + col1 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7948
SELECT + CAST ( NULL AS INTEGER ) + - + col1 AS col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7949
SELECT COUNT( * ) + + + SUM( DISTINCT - CAST( NULL AS DECIMAL ) ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7949
SELECT COUNT ( * ) + + + SUM ( DISTINCT - CAST ( NULL AS REAL ) ) AS col1 FROM tab1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 87 col1 FROM tab1
----
-87

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - ( + col1 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( 41 * + col0 ) <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7953
SELECT + - COUNT( DISTINCT - col0 ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7953
SELECT + - COUNT ( DISTINCT - col0 ) FROM tab2 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-7954
SELECT COUNT( * ) - + 85 FROM tab0
----
-82

skipif mysql # not compatible
query I rowsort label-7954
SELECT COUNT ( * ) - + 85 FROM tab0
----
-82

query III rowsort
SELECT * FROM tab1 WHERE - + col0 * + ( + 50 + col2 ) - 80 NOT BETWEEN NULL AND ( - 82 - col1 * 28 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7956
SELECT ALL - COUNT( * ) col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7956
SELECT ALL - COUNT ( * ) col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-7957
SELECT DISTINCT + MIN( - - col2 ) AS col0 FROM tab1 cor0
----
59

skipif mysql # not compatible
query I rowsort label-7957
SELECT DISTINCT + MIN ( - - col2 ) AS col0 FROM tab1 cor0
----
59

query II rowsort
SELECT DISTINCT 81, 19 * + col2 * - 42 AS col0 FROM tab1 cor0
----
81
-47082
81
-54264
81
-76608

query I rowsort
SELECT ALL + col0 * + - 80 FROM tab0 AS cor0
----
-1200
-6960
-7760

query I rowsort
SELECT col0 FROM tab2 AS cor0 WHERE NOT col2 - - + col1 = NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7961
SELECT ALL SUM( - + col2 ) DIV 56 FROM tab2 AS cor0
----
-2

skipif mysql # not compatible
query I rowsort label-7961
SELECT ALL SUM ( - + col2 ) / 56 FROM tab2 AS cor0
----
-2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) > NULL
----

query I rowsort
SELECT - + 36 * + col0 AS col1 FROM tab1 AS cor0
----
-1836
-3060
-3276

query I rowsort
SELECT + - 9 AS col2 FROM tab1 cor0
----
-9
-9
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-7965
SELECT DISTINCT - MAX( ALL + col1 ) AS col0 FROM tab1 AS cor0
----
-47

skipif mysql # not compatible
query I rowsort label-7965
SELECT DISTINCT - MAX ( ALL + col1 ) AS col0 FROM tab1 AS cor0
----
-47

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - - 51 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7967
SELECT * FROM tab1 WHERE NOT - col2 IS NULL AND NOT col1 / CAST( - col1 AS SIGNED ) IN ( + col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-7967
SELECT * FROM tab1 WHERE NOT - col2 IS NULL AND NOT col1 / CAST ( - col1 AS INTEGER ) IN ( + col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - - col0 <= NULL
----

query I rowsort
SELECT - ( + 90 ) AS col2 FROM tab0
----
-90
-90
-90

skipif postgresql # PostgreSQL handles NULL in DIV/0 by differently
query I rowsort
SELECT ALL 0 / 0 AS col2 FROM tab1 AS cor0 WHERE NOT ( NOT NULL IS NOT NULL )
----

query I rowsort
SELECT DISTINCT - - col0 * + - col2 AS col0 FROM tab1 AS cor0
----
-4896
-5015
-6188

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7972
SELECT 68 DIV COUNT( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
7

skipif mysql # not compatible
query I rowsort label-7972
SELECT 68 / COUNT ( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-7973
SELECT + MIN( + col1 ) FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-7973
SELECT + MIN ( + col1 ) FROM tab2
----
51

query III rowsort
SELECT * FROM tab1 WHERE NOT - 4 IN ( + col2 / + 4 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 89 + + + 99 col0 FROM tab2 AS cor0
----
188
188
188

query I rowsort
SELECT ALL - col1 + + - 97 * 75 FROM tab2 AS cor0
----
-7326
-7342
-7352

onlyif mysql # DIV for integer division: 
query I rowsort label-7977
SELECT col2 + - 37 - col2 - col0 DIV - 45 AS col0 FROM tab2 AS cor0
----
-36
-36
-36

skipif mysql # not compatible
query I rowsort label-7977
SELECT col2 + - 37 - col2 - col0 / - 45 AS col0 FROM tab2 AS cor0
----
-36
-36
-36

query I rowsort
SELECT - col2 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN + 65 * - col0 AND NULL
----

query I rowsort
SELECT + 31 AS col0 FROM tab2 cor0 WHERE col1 IS NULL
----

query II rowsort
SELECT + 36 AS col2, - 51 AS col1 FROM tab2 AS cor0
----
36
-51
36
-51
36
-51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( - - 46 ) + + col1 col1 FROM tab2 AS cor0
----
113
123
97

query I rowsort
SELECT DISTINCT + col1 AS col1 FROM tab2 AS cor0 WHERE ( col2 ) IS NOT NULL
----
51
67
77

query I rowsort
SELECT ALL - + 74 + + 0 AS col2 FROM tab1 AS cor0
----
-74
-74
-74

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT - col1 >= - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7985
SELECT * FROM tab2 WHERE NULL BETWEEN + - col0 / - col2 / + CAST( - col2 AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-7985
SELECT * FROM tab2 WHERE NULL BETWEEN + - col0 / - col2 / + CAST ( - col2 AS INTEGER ) AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE 40 >= NULL
----

query I rowsort
SELECT ALL + col2 * - col2 + col2 AS col0 FROM tab0
----
-2162
-90
-9702

query III rowsort
SELECT * FROM tab2 WHERE NULL IN ( - 88 - - 86 )
----

query I rowsort
SELECT ALL ( - - col1 ) FROM tab1
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-7990
SELECT - COUNT( * ) * COUNT( ALL - + col0 ) AS col0 FROM tab0
----
-9

skipif mysql # not compatible
query I rowsort label-7990
SELECT - COUNT ( * ) * COUNT ( ALL - + col0 ) AS col0 FROM tab0
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7991
SELECT DISTINCT + ( + CAST( NULL AS SIGNED ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7991
SELECT DISTINCT + ( + CAST ( NULL AS INTEGER ) ) FROM tab1
----
NULL

query I rowsort
SELECT 89 - - - 18 FROM tab1
----
71
71
71

query III rowsort
SELECT * FROM tab0 WHERE - - col0 >= NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col2 NOT BETWEEN - - 87 AND NULL
----

query I rowsort
SELECT ALL + ( - 90 ) FROM tab0
----
-90
-90
-90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7996
SELECT DISTINCT - CAST( + 36 AS SIGNED ) FROM tab2 WHERE NOT ( + col2 * ( col2 ) ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-7996
SELECT DISTINCT - CAST ( + 36 AS INTEGER ) FROM tab2 WHERE NOT ( + col2 * ( col2 ) ) IS NOT NULL
----

query I rowsort
SELECT ALL + 26 * + col2 AS col2 FROM tab2 AS cor0
----
1040
1508
598

query I rowsort
SELECT ALL - col0 * + + 46 + ( + - 89 ) FROM tab0 AS cor0
----
-4091
-4551
-779

query I rowsort
SELECT ALL + col2 * 71 FROM tab0 WHERE - col0 + - col2 >= ( col2 * - - col1 * + 70 - + col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8000
SELECT DISTINCT col1 + + col0 + + 17 DIV + col0 FROM tab1
----
138
65
90

skipif mysql # not compatible
query I rowsort label-8000
SELECT DISTINCT col1 + + col0 + + 17 / + col0 FROM tab1
----
138
65
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8001
SELECT + col1 * - - CAST( - + col1 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-2601
-4489
-5929

skipif mysql # not compatible
query I rowsort label-8001
SELECT + col1 * - - CAST ( - + col1 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-2601
-4489
-5929

onlyif mysql # aggregate syntax: 
query I rowsort label-8002
SELECT ALL + - COUNT( * ) * + ( 9 ) AS col0 FROM tab2 AS cor0
----
-27

skipif mysql # not compatible
query I rowsort label-8002
SELECT ALL + - COUNT ( * ) * + ( 9 ) AS col0 FROM tab2 AS cor0
----
-27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8003
SELECT - SUM( - CAST( - 15 AS SIGNED ) ) * - COUNT( * ) + + - 73 - 54 + COUNT( * ) * + 0 AS col0 FROM tab2 AS cor0
----
8

skipif mysql # not compatible
query I rowsort label-8003
SELECT - SUM ( - CAST ( - 15 AS INTEGER ) ) * - COUNT ( * ) + + - 73 - 54 + COUNT ( * ) * + 0 AS col0 FROM tab2 AS cor0
----
8

query I rowsort
SELECT ALL - col2 * - 47 FROM tab0 AS cor0
----
2209
4653
470

query I rowsort
SELECT - - ( col2 ) * + col1 FROM tab1 AS cor0
----
1344
295
3196

query I rowsort
SELECT ALL + 72 * + col0 FROM tab2 AS cor0
----
3312
4608
5400

onlyif mysql # DIV for integer division: 
query I rowsort label-8007
SELECT DISTINCT col0 DIV - + 97 FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-8007
SELECT DISTINCT col0 / - + 97 FROM tab1 cor0
----
0

query I rowsort
SELECT DISTINCT 53 + + col2 FROM tab2 AS cor0 WHERE ( - - col0 / + 7 BETWEEN NULL AND ( - col2 ) )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8009
SELECT + CAST( NULL AS SIGNED ) * + - 50 AS col0, - COUNT( DISTINCT + - col2 ) FROM tab1 AS cor0
----
NULL
-3

skipif mysql # not compatible
query II rowsort label-8009
SELECT + CAST ( NULL AS INTEGER ) * + - 50 AS col0, - COUNT ( DISTINCT + - col2 ) FROM tab1 AS cor0
----
NULL
-3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( col0 > + + 84 - + 87 / + + col1 )
----
51
14
96

query I rowsort
SELECT - - col1 * - - col0 FROM tab0 AS cor0
----
1215
1827
97

query I rowsort
SELECT - col0 FROM tab0 cor0 WHERE NOT col2 + - - 33 IS NOT NULL
----

query I rowsort
SELECT ALL + + 79 AS col0 FROM tab0 AS cor0
----
79
79
79

onlyif mysql # aggregate syntax: 
query I rowsort label-8014
SELECT DISTINCT COUNT( * ) * + COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE NOT ( NOT NULL NOT BETWEEN ( + - col2 ) AND - 93 + - 9 * 70 )
----
0

skipif mysql # not compatible
query I rowsort label-8014
SELECT DISTINCT COUNT ( * ) * + COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NOT ( NOT NULL NOT BETWEEN ( + - col2 ) AND - 93 + - 9 * 70 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8015
SELECT COUNT( + - col2 ) AS col0 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-8015
SELECT COUNT ( + - col2 ) AS col0 FROM tab0
----
3

query II rowsort
SELECT ( + - ( + 16 ) ), col2 AS col0 FROM tab0
----
-16
10
-16
47
-16
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8017
SELECT DISTINCT - CAST( + + COUNT( * ) AS SIGNED ) col0 FROM tab2
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8017
SELECT DISTINCT - CAST ( + + COUNT ( * ) AS INTEGER ) col0 FROM tab2
----
-3

query I rowsort
SELECT ( + col2 ) FROM tab2 WHERE NOT col0 = ( - - 7 * - 48 + - 9 )
----
23
40
58

query II rowsort
SELECT DISTINCT - col1 AS col2, col0 AS col2 FROM tab2
----
-51
46
-67
75
-77
64

query I rowsort
SELECT - 34 + - 33 + - 16 AS col1 FROM tab2 cor0
----
-83
-83
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-8021
SELECT ALL 15 * COUNT( * ) FROM tab2 AS cor0
----
45

skipif mysql # not compatible
query I rowsort label-8021
SELECT ALL 15 * COUNT ( * ) FROM tab2 AS cor0
----
45

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 23 * 76, + col2 * - 0 col0 FROM tab0
----
1748
0
1748
0
1748
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8023
SELECT ( + col1 ) DIV + + col0 AS col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8023
SELECT ( + col1 ) / + + col0 AS col0 FROM tab1
----
0
0
0

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL <> - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8025
SELECT COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-8025
SELECT COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
3

query I rowsort
SELECT + col0 FROM tab0 AS cor0 WHERE 90 * + col1 IS NOT NULL
----
15
87
97

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8027
SELECT ALL col2 + col0 * + - 28 * - col1 / CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8027
SELECT ALL col2 + col0 * + - 28 * - col1 / CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col0 + 51 AS col0 FROM tab1
----
102
136
142

onlyif mysql # aggregate syntax: 
query I rowsort label-8029
SELECT ALL + COUNT( * ) * 48 AS col0 FROM tab0
----
144

skipif mysql # not compatible
query I rowsort label-8029
SELECT ALL + COUNT ( * ) * 48 AS col0 FROM tab0
----
144

onlyif mysql # aggregate syntax: 
query I rowsort label-8030
SELECT COUNT( * ) AS col0 FROM tab0 WHERE + + ( + 10 ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-8030
SELECT COUNT ( * ) AS col0 FROM tab0 WHERE + + ( + 10 ) IS NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 * col0 + - 16 col2, - col1 FROM tab0
----
209
-81
7553
-21
9393
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8032
SELECT COUNT( * ) + - 55 AS col0 FROM tab2
----
-52

skipif mysql # not compatible
query I rowsort label-8032
SELECT COUNT ( * ) + - 55 AS col0 FROM tab2
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-8033
SELECT DISTINCT - 51 + - COUNT( * ) FROM tab0
----
-54

skipif mysql # not compatible
query I rowsort label-8033
SELECT DISTINCT - 51 + - COUNT ( * ) FROM tab0
----
-54

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col2 <> + - 39 * - 85
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8035
SELECT DISTINCT - SUM( DISTINCT + col2 ) AS col0 FROM tab1 WHERE NOT NULL NOT IN ( + + 46 / + col0 + + col0 + col1 - - col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8035
SELECT DISTINCT - SUM ( DISTINCT + col2 ) AS col0 FROM tab1 WHERE NOT NULL NOT IN ( + + 46 / + col0 + + col0 + col1 - - col1 )
----
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 43 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT 15 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
15

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + ( - col0 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query II rowsort label-8039
SELECT + 1, + col1 * + col2 DIV ( - + col2 ) AS col1 FROM tab0
----
1
-1
1
-21
1
-81

skipif mysql # not compatible
query II rowsort label-8039
SELECT + 1, + col1 * + col2 / ( - + col2 ) AS col1 FROM tab0
----
1
-1
1
-21
1
-81

query I rowsort
SELECT col2 AS col2 FROM tab1 WHERE NOT - + col0 <> ( + + col0 * - col1 - + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8041
SELECT - COUNT( * ) FROM tab0 AS cor0 WHERE NOT col1 IN ( - col2 )
----
-3

skipif mysql # not compatible
query I rowsort label-8041
SELECT - COUNT ( * ) FROM tab0 AS cor0 WHERE NOT col1 IN ( - col2 )
----
-3

query I rowsort
SELECT ALL col2 * - 13 FROM tab1 AS cor0
----
-1248
-767
-884

onlyif mysql # aggregate syntax: 
query I rowsort label-8043
SELECT DISTINCT - COUNT( * ) * 64 FROM tab1 AS cor0
----
-192

skipif mysql # not compatible
query I rowsort label-8043
SELECT DISTINCT - COUNT ( * ) * 64 FROM tab1 AS cor0
----
-192

query I rowsort
SELECT + col0 * - 66 + + col2 AS col1 FROM tab2 AS cor0
----
-3013
-4184
-4892

query I rowsort
SELECT DISTINCT + - col2 FROM tab2 AS cor0 WHERE NOT - col0 * + - col2 IS NULL
----
-23
-40
-58

query I rowsort
SELECT + - 96 * + + col2 * - col1 FROM tab2 AS cor0
----
112608
295680
373056

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8047
SELECT COUNT( * ) * + CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8047
SELECT COUNT ( * ) * + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL

query II rowsort
SELECT - col0, - col1 AS col1 FROM tab0 AS cor0
----
-15
-81
-87
-21
-97
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8049
SELECT - SUM( 14 ) * - CAST( NULL AS SIGNED ) AS col1 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8049
SELECT - SUM ( 14 ) * - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 cor0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8050
SELECT - + CAST( NULL AS SIGNED ) * - + MAX( + col2 ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8050
SELECT - + CAST ( NULL AS INTEGER ) * - + MAX ( + col2 ) AS col0 FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8051
SELECT + col2 * - CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8051
SELECT + col2 * - CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + - 42 + + + col2 * - col0 FROM tab1 AS cor0
----
-4938
-5057
-6230

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8053
SELECT DISTINCT + CAST( + - 60 AS SIGNED ) + SUM( ALL - ( + col2 ) ) FROM tab0 AS cor0
----
-216

skipif mysql # not compatible
query I rowsort label-8053
SELECT DISTINCT + CAST ( + - 60 AS INTEGER ) + SUM ( ALL - ( + col2 ) ) FROM tab0 AS cor0
----
-216

query I rowsort
SELECT ALL - col1 + - 44 - ( + - col0 ) FROM tab2 AS cor0
----
-36
-49
-57

query I rowsort
SELECT + - 66 FROM tab1 WHERE 53 * + 15 + - - col2 >= + col2
----
-66
-66
-66

query I rowsort
SELECT ALL ( + col1 ) AS col0 FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8057
SELECT ALL ( CAST( 43 AS SIGNED ) ) DIV 19 FROM tab1
----
2
2
2

skipif mysql # not compatible
query I rowsort label-8057
SELECT ALL ( CAST ( 43 AS INTEGER ) ) / 19 FROM tab1
----
2
2
2

query I rowsort
SELECT - 39 + - col1 FROM tab1
----
-44
-53
-86

query III rowsort
SELECT * FROM tab2 cor0 WHERE col2 BETWEEN ( - col2 ) AND + col0 * + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-8060
SELECT - ( - MAX( ALL col2 ) ) AS col1, - 82 AS col2 FROM tab0 AS cor0
----
99
-82

skipif mysql # not compatible
query II rowsort label-8060
SELECT - ( - MAX ( ALL col2 ) ) AS col1, - 82 AS col2 FROM tab0 AS cor0
----
99
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-8061
SELECT - + COUNT( ALL - 45 ) AS col0 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8061
SELECT - + COUNT ( ALL - 45 ) AS col0 FROM tab1 AS cor0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 26 col0 FROM tab0 AS cor0 WHERE NOT ( 36 * - + ( - 14 ) * - + col0 + + + 29 + - 16 ) NOT IN ( - col0, + col2 * col1 )
----

query I rowsort
SELECT DISTINCT 57 + - col1 - col1 AS col1 FROM tab2 AS cor0
----
-45
-77
-97

query II rowsort
SELECT + col0, + 75 FROM tab1 AS cor0
----
51
75
85
75
91
75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8065
SELECT - 28 DIV + - ( 95 ) * - + COUNT( * ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8065
SELECT - 28 / + - ( 95 ) * - + COUNT ( * ) FROM tab1 AS cor0
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8066
SELECT ALL + 89 FROM tab2 AS cor0 WHERE NOT CAST( NULL AS DECIMAL ) * + col2 = col2
----

skipif mysql # not compatible
query I rowsort label-8066
SELECT ALL + 89 FROM tab2 AS cor0 WHERE NOT CAST ( NULL AS REAL ) * + col2 = col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8067
SELECT + - MAX( DISTINCT - + 71 ) AS col2 FROM tab1 AS cor0
----
71

skipif mysql # not compatible
query I rowsort label-8067
SELECT + - MAX ( DISTINCT - + 71 ) AS col2 FROM tab1 AS cor0
----
71

query I rowsort
SELECT ALL - - col0 * col2 + + 52 + 76 + + col0 AS col2 FROM tab0 AS cor0
----
1085
848
9828

onlyif mysql # aggregate syntax: 
query I rowsort label-8069
SELECT + - COUNT( DISTINCT - col1 ) AS col0 FROM tab1 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8069
SELECT + - COUNT ( DISTINCT - col1 ) AS col0 FROM tab1 cor0
----
-3

query I rowsort
SELECT DISTINCT - col0 * col0 - + 30 + - col0 - + 9 AS col0 FROM tab2 AS cor0
----
-2201
-4199
-5739

query I rowsort
SELECT DISTINCT - AVG ( + col2 ) AS col0 FROM tab0 WHERE + col1 IS NULL
----
NULL

query I rowsort
SELECT ALL ( + + 92 ) + - col2 FROM tab2
----
34
52
69

query I rowsort
SELECT DISTINCT 86 + + col2 AS col1 FROM tab2
----
109
126
144

query III rowsort
SELECT * FROM tab0 WHERE NULL NOT BETWEEN col0 / col0 AND - col2
----

query I rowsort
SELECT ALL 70 + 55 FROM tab1
----
125
125
125

onlyif mysql # aggregate syntax: 
query I rowsort label-8076
SELECT ALL 40 * - COUNT( * ) * - COUNT( * ) FROM tab0
----
360

skipif mysql # not compatible
query I rowsort label-8076
SELECT ALL 40 * - COUNT ( * ) * - COUNT ( * ) FROM tab0
----
360

query I rowsort
SELECT DISTINCT col1 * + + 44 * - 57 AS col2 FROM tab2
----
-127908
-168036
-193116

query I rowsort
SELECT ALL col0 * + col1 - 37 AS col2 FROM tab0
----
1178
1790
60

query I rowsort
SELECT - col1 + + col0 + col1 * - - col1 + - col0 FROM tab1
----
182
20
2162

query I rowsort
SELECT DISTINCT 24 * col0 AS col2 FROM tab2
----
1104
1536
1800

onlyif mysql # aggregate syntax: 
query I rowsort label-8081
SELECT ALL COUNT( * ) * - ( 49 ) AS col1 FROM tab1
----
-147

skipif mysql # not compatible
query I rowsort label-8081
SELECT ALL COUNT ( * ) * - ( 49 ) AS col1 FROM tab1
----
-147

onlyif mysql # DIV for integer division: 
query I rowsort label-8082
SELECT - + 13 DIV col1 AS col2 FROM tab1 AS cor0
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-8082
SELECT - + 13 / col1 AS col2 FROM tab1 AS cor0
----
-2
0
0

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT col0 > - col2 / - - col2
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( col0, col1 )
----

query I rowsort
SELECT ALL 11 FROM tab2 cor0
----
11
11
11

query I rowsort
SELECT DISTINCT - col2 * + 2 FROM tab2
----
-116
-46
-80

query I rowsort
SELECT DISTINCT - col2 AS col1 FROM tab2 WHERE ( NULL ) IS NOT NULL
----

query II rowsort
SELECT ALL + col2 AS col0, col1 + - + ( + 56 ) FROM tab1 cor0
----
59
-51
68
-9
96
-42

query I rowsort
SELECT col2 * + col0 * + - col2 * - - 10 AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8090
SELECT + CAST( + - COUNT( * ) AS SIGNED ) FROM tab2 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8090
SELECT + CAST ( + - COUNT ( * ) AS INTEGER ) FROM tab2 cor0
----
-3

query I rowsort
SELECT DISTINCT - col0 * + + col1 * - 96 * col1 AS col1 FROM tab0 AS cor0
----
3683232
9312
9447840

query I rowsort
SELECT ALL - 50 AS col0 FROM tab0 AS cor0 WHERE 57 > - + col1 * - + col1
----
-50

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8093
SELECT ALL COUNT( DISTINCT + 57 ) DIV + - 11 AS col1 FROM tab1 AS cor0 WHERE NOT 65 * - - col2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-8093
SELECT ALL COUNT ( DISTINCT + 57 ) / + - 11 AS col1 FROM tab1 AS cor0 WHERE NOT 65 * - - col2 IS NULL
----
0

query I rowsort
SELECT DISTINCT 77 * + 11 FROM tab1
----
847

query I rowsort
SELECT ALL - 52 * 21 AS col1 FROM tab0
----
-1092
-1092
-1092

query I rowsort
SELECT DISTINCT 43 * 92 FROM tab1
----
3956

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2, col0 col2 FROM tab2
----
23
46
40
64
58
75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8098
SELECT DISTINCT + COUNT( - - col0 ) DIV 82 AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-8098
SELECT DISTINCT + COUNT ( - - col0 ) / 82 AS col0 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8099
SELECT + 23 + - COUNT( * ) AS col1 FROM tab0
----
20

skipif mysql # not compatible
query I rowsort label-8099
SELECT + 23 + - COUNT ( * ) AS col1 FROM tab0
----
20

query I rowsort
SELECT 31 * + col0 + 24 AS col0 FROM tab1
----
1605
2659
2845

query I rowsort
SELECT DISTINCT 47 + - col0 + - - col0 AS col1 FROM tab2 cor0
----
47

query II rowsort
SELECT DISTINCT + col0 AS col1, - col2 AS col2 FROM tab2 cor0
----
46
-23
64
-40
75
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-8103
SELECT DISTINCT + - COUNT( * ) + + 4 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-8103
SELECT DISTINCT + - COUNT ( * ) + + 4 FROM tab1 AS cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8104
SELECT MAX( + - 86 ) AS col2 FROM tab0
----
-86

skipif mysql # not compatible
query I rowsort label-8104
SELECT MAX ( + - 86 ) AS col2 FROM tab0
----
-86

query I rowsort
SELECT ALL + 58 * + col1 + - 59 FROM tab1
----
231
2667
753

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8106
SELECT DISTINCT CAST( NULL AS SIGNED ) + - - col1, + col1 FROM tab0 AS cor0
----
NULL
1
NULL
21
NULL
81

skipif mysql # not compatible
query II rowsort label-8106
SELECT DISTINCT CAST ( NULL AS INTEGER ) + - - col1, + col1 FROM tab0 AS cor0
----
NULL
1
NULL
21
NULL
81

query I rowsort
SELECT col2 + - - col1 - + 91 FROM tab2 AS cor0
----
-17
26
34

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8108
SELECT ALL - - COUNT( * ) DIV - - ( - - COUNT( * ) ) + + 8 * COUNT( * ) FROM tab2 cor0
----
25

skipif mysql # not compatible
query I rowsort label-8108
SELECT ALL - - COUNT ( * ) / - - ( - - COUNT ( * ) ) + + 8 * COUNT ( * ) FROM tab2 cor0
----
25

query I rowsort
SELECT - 16 + - 81 FROM tab2 AS cor0
----
-97
-97
-97

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL = - col2
----

query II rowsort
SELECT 23 AS col2, - col1 + - col2 FROM tab2
----
23
-117
23
-125
23
-74

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8112
SELECT ALL COUNT( * ) + MIN( ALL ( + 99 ) ) DIV + - 38 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-8112
SELECT ALL COUNT ( * ) + MIN ( ALL ( + 99 ) ) / + - 38 FROM tab0
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-8113
SELECT COUNT( * ), 3 FROM tab1
----
3
3

skipif mysql # not compatible
query II rowsort label-8113
SELECT COUNT ( * ), 3 FROM tab1
----
3
3

query I rowsort
SELECT DISTINCT col1 - + - 38 AS col1 FROM tab2
----
105
115
89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8115
SELECT COUNT( DISTINCT - CAST( NULL AS SIGNED ) ) FROM tab0 WHERE NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-8115
SELECT COUNT ( DISTINCT - CAST ( NULL AS INTEGER ) ) FROM tab0 WHERE NULL IS NULL
----
0

query I rowsort
SELECT ALL col2 * col0 - + col1 FROM tab1
----
4882
5010
6141

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8117
SELECT 47 AS col0, - col2 + + CAST( + 56 AS SIGNED ) AS col2 FROM tab0
----
47
-43
47
46
47
9

skipif mysql # not compatible
query II rowsort label-8117
SELECT 47 AS col0, - col2 + + CAST ( + 56 AS INTEGER ) AS col2 FROM tab0
----
47
-43
47
46
47
9

query II rowsort
SELECT ALL 65, col0 FROM tab0 AS cor0
----
65
15
65
87
65
97

onlyif mysql # aggregate syntax: 
query I rowsort label-8119
SELECT DISTINCT MIN( DISTINCT - + col1 ) FROM tab2
----
-77

skipif mysql # not compatible
query I rowsort label-8119
SELECT DISTINCT MIN ( DISTINCT - + col1 ) FROM tab2
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-8120
SELECT ALL ( MIN( ALL - col0 ) ) FROM tab0 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-8120
SELECT ALL ( MIN ( ALL - col0 ) ) FROM tab0 AS cor0
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-8121
SELECT DISTINCT - COUNT( * ) + + MAX( + 76 ) FROM tab1 AS cor0
----
73

skipif mysql # not compatible
query I rowsort label-8121
SELECT DISTINCT - COUNT ( * ) + + MAX ( + 76 ) FROM tab1 AS cor0
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-8122
SELECT DISTINCT MAX( DISTINCT - 62 ) * COUNT( + 5 ) col1 FROM tab0 AS cor0
----
-186

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8122
SELECT DISTINCT MAX ( DISTINCT - 62 ) * COUNT ( + 5 ) col1 FROM tab0 AS cor0
----
-186

onlyif mysql # aggregate syntax: 
query I rowsort label-8123
SELECT ALL - COUNT( * ) * - 49 AS col2 FROM tab2 AS cor0
----
147

skipif mysql # not compatible
query I rowsort label-8123
SELECT ALL - COUNT ( * ) * - 49 AS col2 FROM tab2 AS cor0
----
147

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL >= - 74 + + 24
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8125
SELECT - 86 col0, - CAST( + col1 AS SIGNED ) AS col1 FROM tab2
----
-86
-51
-86
-67
-86
-77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8125
SELECT - 86 col0, - CAST ( + col1 AS INTEGER ) AS col1 FROM tab2
----
-86
-51
-86
-67
-86
-77

query III rowsort
SELECT * FROM tab2 WHERE + col0 BETWEEN col2 AND + col1
----
46
51
23
64
77
40

onlyif mysql # aggregate syntax: 
query I rowsort label-8127
SELECT ALL + + MIN( - col1 ) AS col0 FROM tab2 WHERE NOT - col2 IS NULL
----
-77

skipif mysql # not compatible
query I rowsort label-8127
SELECT ALL + + MIN ( - col1 ) AS col0 FROM tab2 WHERE NOT - col2 IS NULL
----
-77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + - 85 ) col2 FROM tab0
----
85
85
85

onlyif mysql # DIV for integer division: 
query I rowsort label-8129
SELECT DISTINCT 87 + + col0 DIV 82 AS col2 FROM tab1
----
87
88

skipif mysql # not compatible
query I rowsort label-8129
SELECT DISTINCT 87 + + col0 / 82 AS col2 FROM tab1
----
87
88

query I rowsort
SELECT + 49 + - + col2 FROM tab2 AS cor0
----
-9
26
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 32 + + col0 col2 FROM tab1 AS cor0
----
19
53
59

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - 66 = NULL AND - 83 IS NULL
----

query I rowsort
SELECT DISTINCT - 40 * + 30 + - - col0 FROM tab1 AS cor0
----
-1109
-1115
-1149

query I rowsort
SELECT ALL - col0 * - 98 - - ( + col2 ) AS col0 FROM tab1 AS cor0
----
5094
8389
8986

query I rowsort
SELECT DISTINCT + col1 + + 41 AS col1 FROM tab1
----
46
55
88

onlyif mysql # aggregate syntax: 
query II rowsort label-8136
SELECT ALL + 13 - COUNT( * ) * - - ( + - COUNT( * ) ), MIN( ALL 65 ) AS col1 FROM tab0
----
22
65

skipif mysql # not compatible
query II rowsort label-8136
SELECT ALL + 13 - COUNT ( * ) * - - ( + - COUNT ( * ) ), MIN ( ALL 65 ) AS col1 FROM tab0
----
22
65

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL >= NULL
----

query II rowsort
SELECT ALL - + 85, col0 FROM tab0 AS cor0
----
-85
15
-85
87
-85
97

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + 4 <> - - 39
----

query I rowsort
SELECT DISTINCT - - 49 + + col0 AS col2 FROM tab1 AS cor0
----
100
134
140

query II rowsort
SELECT + col1 AS col1, col1 FROM tab0 AS cor0
----
1
1
21
21
81
81

query I rowsort
SELECT + - col2 AS col0 FROM tab1 AS cor0 WHERE NULL BETWEEN 40 * - - col0 * col1 AND + - 53 + 98
----

query II rowsort
SELECT + col2 AS col1, - col2 FROM tab2 cor0
----
23
-23
40
-40
58
-58

query I rowsort
SELECT DISTINCT + col0 + + + col2 FROM tab0 AS cor0
----
196
62
97

query I rowsort
SELECT ALL + - col0 + ( - col0 ) AS col1 FROM tab2 AS cor0
----
-128
-150
-92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 col1 FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8147
SELECT DISTINCT - ( - - MIN( col2 ) ) FROM tab2
----
-23

skipif mysql # not compatible
query I rowsort label-8147
SELECT DISTINCT - ( - - MIN ( col2 ) ) FROM tab2
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-8148
SELECT - SUM( + 98 ) FROM tab0
----
-294

skipif mysql # not compatible
query I rowsort label-8148
SELECT - SUM ( + 98 ) FROM tab0
----
-294

query III rowsort
SELECT ALL * FROM tab1 WHERE + 89 IS NULL
----

query I rowsort
SELECT + 11 * col0 + col0 FROM tab1 AS cor0
----
1020
1092
612

query II rowsort
SELECT + col1 AS col1, col0 FROM tab0
----
1
97
21
87
81
15

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT col1 * col1 - col2 * + col0 NOT BETWEEN col1 AND NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col2 + - + col0 + - - col2 * + + 68 * + col0 * - - 73 NOT BETWEEN NULL AND + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 45 col1 FROM tab0 cor0
----
45
45
45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8155
SELECT ALL + 29 + col0 - col2 + + col1 * + col2 + 32 / + + ( col2 ) * CAST( NULL AS SIGNED ) + + 89 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8155
SELECT ALL + 29 + col0 - col2 + + col1 * + col2 + 32 / + + ( col2 ) * CAST ( NULL AS INTEGER ) + + 89 FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + 12 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-8157
SELECT ALL CAST( + ( - + col1 ) AS DECIMAL ), + col1 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query II rowsort label-8157
SELECT ALL CAST ( + ( - + col1 ) AS REAL ), + col1 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT 38 AS col0 FROM tab1 cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT col1 + col0 + + - 50 AS col0 FROM tab1 AS cor0
----
15
40
88

onlyif mysql # aggregate syntax: 
query I rowsort label-8160
SELECT - 59 * + + 59 * + COUNT( * ) + - COUNT( * ) FROM tab2
----
-10446

skipif mysql # not compatible
query I rowsort label-8160
SELECT - 59 * + + 59 * + COUNT ( * ) + - COUNT ( * ) FROM tab2
----
-10446

onlyif mysql # DIV for integer division: 
query I rowsort label-8161
SELECT col0 + - - col2 + - col0 + - + col1 DIV col2 col1 FROM tab2
----
21
39
57

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8161
SELECT col0 + - - col2 + - col0 + - + col1 / col2 col1 FROM tab2
----
21
39
57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8162
SELECT - col0 * - CAST( NULL AS SIGNED ) + - col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8162
SELECT - col0 * - CAST ( NULL AS INTEGER ) + - col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT + col1 + - - 73 * col1 FROM tab1
----
1036
3478
370

query I rowsort
SELECT col1 + ( + col0 ) + + - col2 FROM tab2
----
101
74
84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + 78 col1 FROM tab1 AS cor0
----
137
146
174

query I rowsort
SELECT + + 71 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to c1aace5d5fe27721cc925552513c85c0

onlyif mysql # DIV for integer division: 
query I rowsort label-8167
SELECT 16 - + 86 + - col2 DIV - + 67 FROM tab2
----
-70
-70
-70

skipif mysql # not compatible
query I rowsort label-8167
SELECT 16 - + 86 + - col2 / - + 67 FROM tab2
----
-70
-70
-70

onlyif mysql # DIV for integer division: 
query II rowsort label-8168
SELECT DISTINCT - col2 * - col2 * + col1 AS col0, 16 DIV + col0 + - col1 FROM tab2
----
123200
-77
225388
-67
26979
-51

skipif mysql # not compatible
query II rowsort label-8168
SELECT DISTINCT - col2 * - col2 * + col1 AS col0, 16 / + col0 + - col1 FROM tab2
----
123200
-77
225388
-67
26979
-51

query III rowsort
SELECT * FROM tab0 cor0 WHERE ( NULL ) < - - col0
----

query I rowsort
SELECT DISTINCT + - col1 * - - col2 AS col1 FROM tab2 AS cor0
----
-1173
-3080
-3886

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + 43 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8172
SELECT DISTINCT + + 44 DIV + 60 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8172
SELECT DISTINCT + + 44 / + 60 FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8173
SELECT - + COUNT( * ) AS col1, - SUM( ALL - - col1 ) + MAX( + ( + col0 ) ) FROM tab1 AS cor0
----
-3
25

skipif mysql # not compatible
query II rowsort label-8173
SELECT - + COUNT ( * ) AS col1, - SUM ( ALL - - col1 ) + MAX ( + ( + col0 ) ) FROM tab1 AS cor0
----
-3
25

onlyif mysql # aggregate syntax: 
query I rowsort label-8174
SELECT 94 * 46 * - COUNT( * ) * - 76 FROM tab1
----
985872

skipif mysql # not compatible
query I rowsort label-8174
SELECT 94 * 46 * - COUNT ( * ) * - 76 FROM tab1
----
985872

onlyif mysql # aggregate syntax: 
query I rowsort label-8175
SELECT + COUNT( * ) * - 56 FROM tab0
----
-168

skipif mysql # not compatible
query I rowsort label-8175
SELECT + COUNT ( * ) * - 56 FROM tab0
----
-168

query I rowsort
SELECT 43 * + col2 AS col2 FROM tab2
----
1720
2494
989

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 14 > NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( + + col0 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT ALL col0, + col1 FROM tab2 AS cor0
----
46
51
64
77
75
67

query I rowsort
SELECT + ( col2 ) * col2 AS col2 FROM tab0 cor0
----
100
2209
9801

query I rowsort
SELECT + 53 + col2 * - 73 FROM tab2 AS cor0
----
-1626
-2867
-4181

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT NULL > col2
----

query I rowsort
SELECT ALL - 68 * + col2 * + - col1 - + 35 * - col1 * - 4 + col1 + col2 + - + col1 * 15 / col0 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8184
SELECT SUM( ALL col1 ) FROM tab2 AS cor0 WHERE col0 IS NOT NULL
----
195

skipif mysql # not compatible
query I rowsort label-8184
SELECT SUM ( ALL col1 ) FROM tab2 AS cor0 WHERE col0 IS NOT NULL
----
195

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + + col2 col1 FROM tab1 AS cor0
----
118
136
192

onlyif mysql # aggregate syntax: 
query II rowsort label-8186
SELECT MIN( ALL 58 ) AS col1, + SUM( col2 ) * + SUM( col2 ) FROM tab1 AS cor0
----
58
49729

skipif mysql # not compatible
query II rowsort label-8186
SELECT MIN ( ALL 58 ) AS col1, + SUM ( col2 ) * + SUM ( col2 ) FROM tab1 AS cor0
----
58
49729

query II rowsort
SELECT DISTINCT + 26 AS col0, 35 FROM tab1
----
26
35

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT 50 + + + col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 WHERE + col0 * - - col1 > - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8190
SELECT DISTINCT COUNT( ALL + col2 ) AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-8190
SELECT DISTINCT COUNT ( ALL + col2 ) AS col0 FROM tab2
----
3

query I rowsort
SELECT 49 FROM tab2 AS cor0 WHERE ( NULL ) IN ( - - col1 / col1, - col0 * col0 )
----

query I rowsort
SELECT + col2 + col0 + - + col0 AS col1 FROM tab2 AS cor0
----
23
40
58

onlyif mysql # DIV for integer division: 
query I rowsort label-8193
SELECT - ( - - ( 90 ) ) + - - col2 + + 8 * col0 DIV - col0 col2 FROM tab1 AS cor0
----
-2
-30
-39

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8193
SELECT - ( - - ( 90 ) ) + - - col2 + + 8 * col0 / - col0 col2 FROM tab1 AS cor0
----
-2
-30
-39

query I rowsort
SELECT ALL col2 FROM tab1 AS cor0 WHERE NULL BETWEEN NULL AND + col1
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8195
SELECT ( - COUNT( * ) ) / - 57 * AVG ( - CAST( NULL AS SIGNED ) ) + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8195
SELECT ( - COUNT ( * ) ) / - 57 * AVG ( - CAST ( NULL AS INTEGER ) ) + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL - + ( - 44 ) - - col0 FROM tab2 AS cor0
----
108
119
90

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col1 + - 64 BETWEEN - col0 - + col0 AND ( + col0 )
----
15
81
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( col0 ) * col1 col1 FROM tab1 AS cor0
----
425
4277
714

onlyif mysql # DIV for integer division: 
query I rowsort label-8199
SELECT ALL + col1 DIV + + col2 AS col1 FROM tab0 AS cor0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-8199
SELECT ALL + col1 / + + col2 AS col1 FROM tab0 AS cor0
----
0
1
2

query III rowsort
SELECT * FROM tab1 cor0 WHERE NULL IS NOT NULL AND - col1 IS NULL
----

query II rowsort
SELECT ALL - ( col0 ) AS col1, + col0 AS col0 FROM tab2 cor0
----
-46
46
-64
64
-75
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8202
SELECT DISTINCT col1 FROM tab0 AS cor0 WHERE ( col2 / + CAST( NULL AS SIGNED ) * + col0 ) BETWEEN 97 AND + col2 * + 28
----

skipif mysql # not compatible
query I rowsort label-8202
SELECT DISTINCT col1 FROM tab0 AS cor0 WHERE ( col2 / + CAST ( NULL AS INTEGER ) * + col0 ) BETWEEN 97 AND + col2 * + 28
----

query III rowsort
SELECT * FROM tab2 WHERE NOT - 39 <> + col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8204
SELECT DISTINCT + col0 DIV ( col1 ) AS col0 FROM tab1
----
1
17
3

skipif mysql # not compatible
query I rowsort label-8204
SELECT DISTINCT + col0 / ( col1 ) AS col0 FROM tab1
----
1
17
3

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8205
SELECT ALL + ( col2 ) DIV - CAST( col1 AS SIGNED ) + + - col0 AS col1 FROM tab0
----
-15
-196
-87

skipif mysql # not compatible
query I rowsort label-8205
SELECT ALL + ( col2 ) / - CAST ( col1 AS INTEGER ) + + - col0 AS col1 FROM tab0
----
-15
-196
-87

onlyif mysql # DIV for integer division: 
query I rowsort label-8206
SELECT DISTINCT - col1 DIV - col0 AS col1 FROM tab2 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-8206
SELECT DISTINCT - col1 / - col0 AS col1 FROM tab2 AS cor0
----
0
1

query I rowsort
SELECT ALL + - 61 FROM tab1 AS cor0
----
-61
-61
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-8208
SELECT ALL + MIN( col0 ) * - 15 + - 6 AS col1 FROM tab0
----
-231

skipif mysql # not compatible
query I rowsort label-8208
SELECT ALL + MIN ( col0 ) * - 15 + - 6 AS col1 FROM tab0
----
-231

onlyif mysql # DIV for integer division: 
query I rowsort label-8209
SELECT DISTINCT 70 DIV - - col0 FROM tab2
----
0
1

skipif mysql # not compatible
query I rowsort label-8209
SELECT DISTINCT 70 / - - col0 FROM tab2
----
0
1

query I rowsort
SELECT + 38 * + + col0 FROM tab0
----
3306
3686
570

query II rowsort
SELECT DISTINCT + - col2 * col1 AS col0, - 81 AS col1 FROM tab0 cor0
----
-210
-81
-3807
-81
-99
-81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8212
SELECT CAST( NULL AS SIGNED ) FROM tab0 AS cor0 WHERE - 2 IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8212
SELECT CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE - 2 IS NOT NULL
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - ( + + 0 ) + col1 FROM tab0
----
1
21
81

query I rowsort
SELECT DISTINCT 58 + - col0 AS col1 FROM tab2
----
-17
-6
12

query I rowsort
SELECT ALL col2 + - - 33 FROM tab2
----
56
73
91

onlyif mysql # aggregate syntax: 
query I rowsort label-8216
SELECT COUNT( * ) + + COUNT( * ) AS col1 FROM tab0
----
6

skipif mysql # not compatible
query I rowsort label-8216
SELECT COUNT ( * ) + + COUNT ( * ) AS col1 FROM tab0
----
6

query II rowsort
SELECT ALL col0 * col0 AS col1, col2 + 38 AS col0 FROM tab0
----
225
85
7569
48
9409
137

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8218
SELECT * FROM tab2 WHERE col2 * + col2 + - col2 NOT BETWEEN + ( + - CAST( col1 AS DECIMAL ) ) + col0 AND col2 + 94 / col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-8218
SELECT * FROM tab2 WHERE col2 * + col2 + - col2 NOT BETWEEN + ( + - CAST ( col1 AS REAL ) ) + col0 AND col2 + 94 / col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-8219
SELECT + col0 DIV 2 DIV + 6 AS col2 FROM tab2
----
3
5
6

skipif mysql # not compatible
query I rowsort label-8219
SELECT + col0 / 2 / + 6 AS col2 FROM tab2
----
3
5
6

onlyif mysql # aggregate syntax: 
query I rowsort label-8220
SELECT DISTINCT ( - - COUNT( * ) ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8220
SELECT DISTINCT ( - - COUNT ( * ) ) FROM tab2 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8221
SELECT CAST( NULL AS SIGNED ) - col1 / + + 61 AS col0 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8221
SELECT CAST ( NULL AS INTEGER ) - col1 / + + 61 AS col0 FROM tab2 cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col1 BETWEEN NULL AND NULL
----

query I rowsort
SELECT 8 - - col1 + ( - + ( - - col2 ) ) * - col0 AS col1 FROM tab2
----
1117
2645
4425

onlyif mysql # aggregate syntax: 
query I rowsort label-8224
SELECT - - ( + COUNT( * ) ) + COUNT( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
18

skipif mysql # not compatible
query I rowsort label-8224
SELECT - - ( + COUNT ( * ) ) + COUNT ( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-8225
SELECT ( + MIN( DISTINCT - ( col2 ) ) ) FROM tab1
----
-96

skipif mysql # not compatible
query I rowsort label-8225
SELECT ( + MIN ( DISTINCT - ( col2 ) ) ) FROM tab1
----
-96

query I rowsort
SELECT DISTINCT + 39 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
39

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 2 col1 FROM tab2 AS cor0
----
-2
-2
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-8228
SELECT - MAX( col0 ) FROM tab1 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-8228
SELECT - MAX ( col0 ) FROM tab1 AS cor0
----
-91

query I rowsort
SELECT DISTINCT + - 6 AS col2 FROM tab1 AS cor0
----
-6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8230
SELECT + + ( MIN( ALL + CAST( + col1 AS SIGNED ) ) ) AS col1 FROM tab0 cor0
----
1

skipif mysql # not compatible
query I rowsort label-8230
SELECT + + ( MIN ( ALL + CAST ( + col1 AS INTEGER ) ) ) AS col1 FROM tab0 cor0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-8231
SELECT - ( col2 ) DIV 43 AS col0 FROM tab1 AS cor0
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-8231
SELECT - ( col2 ) / 43 AS col0 FROM tab1 AS cor0
----
-1
-1
-2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col1 * 35, col1 + + 83 col1 FROM tab1
----
1645
130
175
88
490
97

query I rowsort
SELECT DISTINCT col2 FROM tab0 WHERE + - ( col0 ) < - col2 / + col2
----
10
47
99

query I rowsort
SELECT ALL ( 48 ) * - col1 * + col0 + col2 AS col2 FROM tab0
----
-4557
-58273
-87686

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8235
SELECT DISTINCT + 60 DIV - COUNT( * ) col0 FROM tab2
----
-20

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8235
SELECT DISTINCT + 60 / - COUNT ( * ) col0 FROM tab2
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-8236
SELECT ALL MAX( - - col2 ) FROM tab1
----
96

skipif mysql # not compatible
query I rowsort label-8236
SELECT ALL MAX ( - - col2 ) FROM tab1
----
96

query I rowsort
SELECT ALL 25 AS col0 FROM tab0 AS cor0 WHERE + 79 BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8238
SELECT - COUNT( * ) * MIN( + col2 ) FROM tab1 cor0
----
-177

skipif mysql # not compatible
query I rowsort label-8238
SELECT - COUNT ( * ) * MIN ( + col2 ) FROM tab1 cor0
----
-177

onlyif mysql # aggregate syntax: 
query I rowsort label-8239
SELECT ALL + SUM( ALL - col2 ) FROM tab1 AS cor0
----
-223

skipif mysql # not compatible
query I rowsort label-8239
SELECT ALL + SUM ( ALL - col2 ) FROM tab1 AS cor0
----
-223

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8240
SELECT * FROM tab2 AS cor0 WHERE - col0 <> + + CAST( NULL AS SIGNED ) * - col0
----

skipif mysql # not compatible
query III rowsort label-8240
SELECT * FROM tab2 AS cor0 WHERE - col0 <> + + CAST ( NULL AS INTEGER ) * - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8241
SELECT - + ( + + SUM( + - col2 ) ) AS col2 FROM tab2 AS cor0
----
121

skipif mysql # not compatible
query I rowsort label-8241
SELECT - + ( + + SUM ( + - col2 ) ) AS col2 FROM tab2 AS cor0
----
121

onlyif mysql # DIV for integer division: 
query I rowsort label-8242
SELECT + col1 DIV + + ( + + 70 ) FROM tab0 cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-8242
SELECT + col1 / + + ( + + 70 ) FROM tab0 cor0
----
0
0
1

query I rowsort
SELECT DISTINCT col0 + - col0 - + 62 AS col2 FROM tab0 AS cor0
----
-62

query I rowsort
SELECT 93 * + + col0 * - - 37 AS col1 FROM tab0 cor0
----
299367
333777
51615

onlyif mysql # DIV for integer division: 
query I rowsort label-8245
SELECT DISTINCT - col1 DIV - 27 + col0 FROM tab1 cor0
----
51
85
92

skipif mysql # not compatible
query I rowsort label-8245
SELECT DISTINCT - col1 / - 27 + col0 FROM tab1 cor0
----
51
85
92

query I rowsort
SELECT ALL 67 - - ( - 12 ) AS col2 FROM tab0
----
55
55
55

query III rowsort
SELECT * FROM tab1 WHERE NULL NOT IN ( + + 51 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + col2 + - 16 + - col1 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8249
SELECT ALL col1 - + + col0 DIV col1 AS col2 FROM tab2
----
51
66
77

skipif mysql # not compatible
query I rowsort label-8249
SELECT ALL col1 - + + col0 / col1 AS col2 FROM tab2
----
51
66
77

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8250
SELECT + SUM( DISTINCT - 94 ) FROM tab0 WHERE ( CAST( NULL AS DECIMAL ) IS NULL )
----
-94

skipif mysql # not compatible
query I rowsort label-8250
SELECT + SUM ( DISTINCT - 94 ) FROM tab0 WHERE ( CAST ( NULL AS REAL ) IS NULL )
----
-94

query I rowsort
SELECT col1 - + 96 FROM tab0
----
-15
-75
-95

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-8252
SELECT * FROM tab0, tab2 AS cor0 WHERE NOT NULL BETWEEN CAST( + 41 AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query IIIIII rowsort label-8252
SELECT * FROM tab0, tab2 AS cor0 WHERE NOT NULL BETWEEN CAST ( + 41 AS INTEGER ) AND NULL
----

query I rowsort
SELECT 1 + - + col2 * - col0 + + col2 AS col1 FROM tab2 AS cor0
----
1082
2601
4409

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8254
SELECT - + 35 FROM tab0 AS cor0 WHERE NOT + ( + col0 ) + + CAST( + + col0 AS SIGNED ) BETWEEN + 85 + - - 60 AND NULL
----
-35

skipif mysql # not compatible
query I rowsort label-8254
SELECT - + 35 FROM tab0 AS cor0 WHERE NOT + ( + col0 ) + + CAST ( + + col0 AS INTEGER ) BETWEEN + 85 + - - 60 AND NULL
----
-35

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL <> + col1 + + col0 * - col2
----

query I rowsort
SELECT DISTINCT + - 84 AS col1 FROM tab0 AS cor0
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-8257
SELECT - COUNT( * ) + + 18 col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----
18

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8257
SELECT - COUNT ( * ) + + 18 col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----
18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8258
SELECT CAST( + + col2 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-8258
SELECT CAST ( + + col2 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
10
47
99

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col1 > col0 * - col2
----

query I rowsort
SELECT + col0 FROM tab2 cor0 WHERE NOT ( + ( - + 2 ) ) + col0 <> - + col0
----

query I rowsort
SELECT ALL + col0 * - 5 AS col0 FROM tab0
----
-435
-485
-75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 col1 FROM tab2 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT col0 * + + col1 FROM tab2
----
2346
4928
5025

query II rowsort
SELECT ALL col2, col2 FROM tab1
----
59
59
68
68
96
96

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8265
SELECT col2 * - CAST( col2 AS SIGNED ) AS col0, + 12 FROM tab1
----
-3481
12
-4624
12
-9216
12

skipif mysql # not compatible
query II rowsort label-8265
SELECT col2 * - CAST ( col2 AS INTEGER ) AS col0, + 12 FROM tab1
----
-3481
12
-4624
12
-9216
12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8266
SELECT ALL + CAST( + - 0 AS SIGNED ) AS col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8266
SELECT ALL + CAST ( + - 0 AS INTEGER ) AS col0 FROM tab1
----
0
0
0

query II rowsort
SELECT ALL col0 AS col1, col2 FROM tab0
----
15
47
87
10
97
99

query I rowsort
SELECT DISTINCT col1 * + - col2 * + col2 AS col1 FROM tab2 WHERE NULL IS NULL
----
-123200
-225388
-26979

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 87 AS col2, + col1 col0 FROM tab0 AS cor0 WHERE NULL <> + 35
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8270
SELECT ALL MIN( + col1 ) AS col2 FROM tab1
----
5

skipif mysql # not compatible
query I rowsort label-8270
SELECT ALL MIN ( + col1 ) AS col2 FROM tab1
----
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 - 5 + col2 col2 FROM tab2 AS cor0
----
-22
-28
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-8272
SELECT + MIN( + 28 ) AS col0 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN + col0 AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8272
SELECT + MIN ( + 28 ) AS col0 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN + col0 AND NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8273
SELECT - col0 DIV - 43 + - col2 FROM tab0 AS cor0
----
-47
-8
-97

skipif mysql # not compatible
query I rowsort label-8273
SELECT - col0 / - 43 + - col2 FROM tab0 AS cor0
----
-47
-8
-97

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) >= 98 * 76 + 3
----

query I rowsort
SELECT DISTINCT + + 25 + + col2 AS col2 FROM tab0 AS cor0
----
124
35
72

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col0 <> + ( + + 0 ) * 45 * - - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT col2 + - col0 + col2 FROM tab2
----
0
16
41

query I rowsort
SELECT col1 * col0 + - col1 AS col1 FROM tab0
----
1134
1806
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8279
SELECT + CAST( NULL AS SIGNED ) + + COUNT( * ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8279
SELECT + CAST ( NULL AS INTEGER ) + + COUNT ( * ) AS col2 FROM tab2
----
NULL

query I rowsort
SELECT col0 + + - col0 AS col0 FROM tab0
----
0
0
0

query I rowsort
SELECT ( - - 7 ) FROM tab0
----
7
7
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 50 * + + col1 col0 FROM tab1
----
-2350
-250
-700

query I rowsort
SELECT DISTINCT + col1 - + 21 AS col2 FROM tab0
----
-20
0
60

onlyif mysql # aggregate syntax: 
query I rowsort label-8284
SELECT - + MIN( DISTINCT + + col2 ) FROM tab1 WHERE + ( - - ( + - 80 ) ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8284
SELECT - + MIN ( DISTINCT + + col2 ) FROM tab1 WHERE + ( - - ( + - 80 ) ) IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8285
SELECT ALL COUNT( + 28 ) AS col0 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-8285
SELECT ALL COUNT ( + 28 ) AS col0 FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8286
SELECT - MAX( - col0 ) AS col2 FROM tab2
----
46

skipif mysql # not compatible
query I rowsort label-8286
SELECT - MAX ( - col0 ) AS col2 FROM tab2
----
46

query I rowsort
SELECT ALL + ( col1 ) - col2 + col2 + + - col0 + - 54 FROM tab0
----
-120
-150
12

query I rowsort
SELECT DISTINCT 65 * - 93 FROM tab2
----
-6045

query I rowsort
SELECT ALL + col1 - + 39 * + col0 + 13 FROM tab2
----
-1730
-2406
-2845

onlyif mysql # DIV for integer division: 
query I rowsort label-8290
SELECT + 98 DIV col0 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-8290
SELECT + 98 / col0 FROM tab1 AS cor0
----
1
1
1

onlyif mysql # DIV for integer division: 
query I rowsort label-8291
SELECT - col1 DIV + + 18 FROM tab2 cor0
----
-2
-3
-4

skipif mysql # not compatible
query I rowsort label-8291
SELECT - col1 / + + 18 FROM tab2 cor0
----
-2
-3
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-8292
SELECT 31 * + - COUNT( * ) FROM tab1
----
-93

skipif mysql # not compatible
query I rowsort label-8292
SELECT 31 * + - COUNT ( * ) FROM tab1
----
-93

query I rowsort
SELECT ALL - - 60 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to a97561e17ecaa618227c75a57b268f33

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8294
SELECT - col1 AS col2, col0 FROM tab0 WHERE NOT + CAST( NULL AS SIGNED ) / + 42 + + col2 IS NULL
----

skipif mysql # not compatible
query II rowsort label-8294
SELECT - col1 AS col2, col0 FROM tab0 WHERE NOT + CAST ( NULL AS INTEGER ) / + 42 + + col2 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 87 col2 FROM tab2 AS cor0
----
-87

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8296
SELECT ALL + CAST( NULL AS SIGNED ) AS col2, - col2 col2 FROM tab1 AS cor0
----
NULL
-59
NULL
-68
NULL
-96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8296
SELECT ALL + CAST ( NULL AS INTEGER ) AS col2, - col2 col2 FROM tab1 AS cor0
----
NULL
-59
NULL
-68
NULL
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 95 col2 FROM tab1 AS cor0
----
95
95
95

onlyif mysql # aggregate syntax: 
query I rowsort label-8298
SELECT + SUM( 32 ) FROM tab0 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-8298
SELECT + SUM ( 32 ) FROM tab0 AS cor0
----
96

query II rowsort
SELECT 18 AS col1, + col1 + - 67 AS col1 FROM tab1 AS cor0
----
18
-20
18
-53
18
-62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8300
SELECT ALL + CAST( + + 77 AS SIGNED ) FROM tab2 AS cor0
----
77
77
77

skipif mysql # not compatible
query I rowsort label-8300
SELECT ALL + CAST ( + + 77 AS INTEGER ) FROM tab2 AS cor0
----
77
77
77

query I rowsort
SELECT ALL + 34 * - col2 FROM tab2 AS cor0
----
-1360
-1972
-782

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 * + col1 col2 FROM tab0 AS cor0
----
-1
-441
-6561

query I rowsort
SELECT + 3 * - col2 FROM tab0
----
-141
-297
-30

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8304
SELECT ALL * FROM tab2 WHERE NOT 58 <= ( CAST( NULL AS DECIMAL ) )
----

skipif mysql # not compatible
query III rowsort label-8304
SELECT ALL * FROM tab2 WHERE NOT 58 <= ( CAST ( NULL AS REAL ) )
----

query IIIIII rowsort
SELECT ALL * FROM tab1, tab2 AS cor0 WHERE 48 IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE ( NOT ( - 27 * col2 IS NULL ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col1 + + 17 col1 FROM tab1 AS cor0
----
-30
12
3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col1 * + + 22 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - + col1 - + + col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8310
SELECT 78 DIV - SUM( ALL col1 ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-8310
SELECT 78 / - SUM ( ALL col1 ) FROM tab2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8311
SELECT COUNT( * ) DIV - COUNT( * ) col2 FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8311
SELECT COUNT ( * ) / - COUNT ( * ) col2 FROM tab1 AS cor0
----
-1

query I rowsort
SELECT ( 0 ) FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT ( + - col2 ) * + 95 + + col0 AS col1 FROM tab0 AS cor0
----
-4450
-863
-9308

onlyif mysql # aggregate syntax: 
query I rowsort label-8314
SELECT + COUNT( * ) * 1 col0 FROM tab1 cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8314
SELECT + COUNT ( * ) * 1 col0 FROM tab1 cor0
----
3

query II rowsort
SELECT DISTINCT - + ( - 32 ) * col2, - col2 * col2 AS col0 FROM tab0 AS cor0
----
1504
-2209
3168
-9801
320
-100

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 95 <> - 84
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8317
SELECT - - MIN( ALL - 24 ) AS col1 FROM tab1 AS cor0
----
-24

skipif mysql # not compatible
query I rowsort label-8317
SELECT - - MIN ( ALL - 24 ) AS col1 FROM tab1 AS cor0
----
-24

query I rowsort
SELECT ALL - 55 - + + col2 AS col0 FROM tab0 AS cor0
----
-102
-154
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-8319
SELECT DISTINCT 93 - - ( + - MAX( DISTINCT + col2 ) ) AS col0 FROM tab2
----
35

skipif mysql # not compatible
query I rowsort label-8319
SELECT DISTINCT 93 - - ( + - MAX ( DISTINCT + col2 ) ) AS col0 FROM tab2
----
35

query I rowsort
SELECT ALL col2 - 90 AS col0 FROM tab1
----
-22
-31
6

onlyif mysql # aggregate syntax: 
query I rowsort label-8321
SELECT ALL 80 * + MIN( - col1 ) AS col2 FROM tab0
----
-6480

skipif mysql # not compatible
query I rowsort label-8321
SELECT ALL 80 * + MIN ( - col1 ) AS col2 FROM tab0
----
-6480

onlyif mysql # DIV for integer division: 
query I rowsort label-8322
SELECT 54 DIV + 20 AS col1 FROM tab2
----
2
2
2

skipif mysql # not compatible
query I rowsort label-8322
SELECT 54 / + 20 AS col1 FROM tab2
----
2
2
2

onlyif mysql # aggregate syntax: 
query I rowsort label-8323
SELECT + 17 * + - COUNT( * ) + + - 13 AS col1 FROM tab1 AS cor0
----
-64

skipif mysql # not compatible
query I rowsort label-8323
SELECT + 17 * + - COUNT ( * ) + + - 13 AS col1 FROM tab1 AS cor0
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-8324
SELECT DISTINCT + COUNT( * ) * - + COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-81

skipif mysql # not compatible
query I rowsort label-8324
SELECT DISTINCT + COUNT ( * ) * - + COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-81

query I rowsort
SELECT DISTINCT - 33 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-33

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NOT + col0 IS NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8327
SELECT ALL - ( COUNT( - 96 ) ) + - ( - SUM( DISTINCT + 56 ) ) - + COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
38

skipif mysql # not compatible
query I rowsort label-8327
SELECT ALL - ( COUNT ( - 96 ) ) + - ( - SUM ( DISTINCT + 56 ) ) - + COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
38

query III rowsort
SELECT ALL * FROM tab1 WHERE ( + col0 IN ( 2 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8329
SELECT + SUM( DISTINCT + 82 ) FROM tab2 AS cor0
----
82

skipif mysql # not compatible
query I rowsort label-8329
SELECT + SUM ( DISTINCT + 82 ) FROM tab2 AS cor0
----
82

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( - + col1 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 41 + 53 * + - 89 col1 FROM tab2 cor0 WHERE ( NULL ) NOT BETWEEN + ( + 63 ) AND + + 66
----

query II rowsort
SELECT col2, col2 FROM tab0 AS cor0 WHERE NOT col1 + col2 NOT BETWEEN NULL AND col2
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8333
SELECT - col1 DIV - - CAST( + - col1 AS SIGNED ) AS col2 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-8333
SELECT - col1 / - - CAST ( + - col1 AS INTEGER ) AS col2 FROM tab2
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8334
SELECT + 20 + SUM( 86 ) FROM tab0
----
278

skipif mysql # not compatible
query I rowsort label-8334
SELECT + 20 + SUM ( 86 ) FROM tab0
----
278

query II rowsort
SELECT ALL col2, 31 * + col1 + - - 99 AS col1 FROM tab1
----
59
254
68
1556
96
533

query I rowsort
SELECT DISTINCT + ( - - col0 ) AS col0 FROM tab0
----
15
87
97

query I rowsort
SELECT col2 + + 30 FROM tab0
----
129
40
77

onlyif mysql # aggregate syntax: 
query I rowsort label-8338
SELECT - SUM( - 83 ) + 81 + COUNT( * ) AS col2 FROM tab1
----
333

skipif mysql # not compatible
query I rowsort label-8338
SELECT - SUM ( - 83 ) + 81 + COUNT ( * ) AS col2 FROM tab1
----
333

query II rowsort
SELECT DISTINCT + 89 AS col1, col2 AS col0 FROM tab2
----
89
23
89
40
89
58

query I rowsort
SELECT col0 + 87 + - 36 + col0 + col0 FROM tab0
----
312
342
96

query I rowsort
SELECT - - ( + + col2 ) + - ( col2 ) FROM tab2 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8342
SELECT ALL CAST( - SUM( DISTINCT col2 ) AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-121

skipif mysql # not compatible
query I rowsort label-8342
SELECT ALL CAST ( - SUM ( DISTINCT col2 ) AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-121

query I rowsort
SELECT + - col2 FROM tab2 AS cor0 WHERE 18 IS NOT NULL
----
-23
-40
-58

onlyif mysql # DIV for integer division: 
query I rowsort label-8344
SELECT ALL - - col2 - - col1 DIV - col1 AS col2 FROM tab0 AS cor0
----
46
9
98

skipif mysql # not compatible
query I rowsort label-8344
SELECT ALL - - col2 - - col1 / - col1 AS col2 FROM tab0 AS cor0
----
46
9
98

query I rowsort
SELECT ALL + - 90 + 61 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 0cc9ddad93fc783055518ae4b6be054b

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8346
SELECT + + CAST( NULL AS SIGNED ) + + col1 AS col0, + 45 + col1 - col2 * + 89 FROM tab2 AS cor0
----
NULL
-1951
NULL
-3438
NULL
-5050

skipif mysql # not compatible
query II rowsort label-8346
SELECT + + CAST ( NULL AS INTEGER ) + + col1 AS col0, + 45 + col1 - col2 * + 89 FROM tab2 AS cor0
----
NULL
-1951
NULL
-3438
NULL
-5050

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8347
SELECT ALL * FROM tab0 AS cor0 WHERE col2 + + 6 * - CAST( NULL AS SIGNED ) NOT BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query III rowsort label-8347
SELECT ALL * FROM tab0 AS cor0 WHERE col2 + + 6 * - CAST ( NULL AS INTEGER ) NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8348
SELECT ALL - - SUM( ALL col1 ) AS col1 FROM tab0 AS cor0
----
103

skipif mysql # not compatible
query I rowsort label-8348
SELECT ALL - - SUM ( ALL col1 ) AS col1 FROM tab0 AS cor0
----
103

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 38 + col0 col0, + col1 FROM tab2 cor0
----
26
77
37
67
8
51

onlyif mysql # aggregate syntax: 
query II rowsort label-8350
SELECT COUNT( - + 57 ) col1, + COUNT( ALL col0 ) FROM tab1 AS cor0
----
3
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8350
SELECT COUNT ( - + 57 ) col1, + COUNT ( ALL col0 ) FROM tab1 AS cor0
----
3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8351
SELECT + COUNT( * ) - 88 AS col0 FROM tab1, tab0 AS cor0
----
-79

skipif mysql # not compatible
query I rowsort label-8351
SELECT + COUNT ( * ) - 88 AS col0 FROM tab1, tab0 AS cor0
----
-79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8352
SELECT CAST( + 57 AS SIGNED ) FROM tab0
----
57
57
57

skipif mysql # not compatible
query I rowsort label-8352
SELECT CAST ( + 57 AS INTEGER ) FROM tab0
----
57
57
57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8353
SELECT + COUNT( * ) DIV CAST( 83 AS SIGNED ) FROM tab2 WHERE NOT + col0 = - 17 * + 80 + 76
----
0

skipif mysql # not compatible
query I rowsort label-8353
SELECT + COUNT ( * ) / CAST ( 83 AS INTEGER ) FROM tab2 WHERE NOT + col0 = - 17 * + 80 + 76
----
0

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8354
SELECT - + 13 FROM tab2 WHERE NOT col1 - + CAST( + + col1 AS DECIMAL ) + 81 * + - CAST( NULL AS SIGNED ) * + ( + ( col0 ) ) >= NULL
----

skipif mysql # not compatible
query I rowsort label-8354
SELECT - + 13 FROM tab2 WHERE NOT col1 - + CAST ( + + col1 AS REAL ) + 81 * + - CAST ( NULL AS INTEGER ) * + ( + ( col0 ) ) >= NULL
----

query II rowsort
SELECT col2 AS col1, 86 AS col2 FROM tab0
----
10
86
47
86
99
86

onlyif mysql # aggregate syntax: 
query I rowsort label-8356
SELECT - COUNT( * ) FROM tab1 WHERE NOT - col1 >= 57
----
-3

skipif mysql # not compatible
query I rowsort label-8356
SELECT - COUNT ( * ) FROM tab1 WHERE NOT - col1 >= 57
----
-3

query III rowsort
SELECT ALL * FROM tab1 WHERE ( NOT ( col2 ) >= NULL )
----

query I rowsort
SELECT ( + 0 ) AS col1 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8359
SELECT DISTINCT - 21 * + COUNT( * ) AS col1 FROM tab2
----
-63

skipif mysql # not compatible
query I rowsort label-8359
SELECT DISTINCT - 21 * + COUNT ( * ) AS col1 FROM tab2
----
-63

query I rowsort
SELECT ALL - col2 * - 3 AS col0 FROM tab1
----
177
204
288

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col0 + + 13 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8362
SELECT DISTINCT - - MIN( + 61 ) AS col2 FROM tab2 AS cor0
----
61

skipif mysql # not compatible
query I rowsort label-8362
SELECT DISTINCT - - MIN ( + 61 ) AS col2 FROM tab2 AS cor0
----
61

query II rowsort
SELECT ALL + col2 AS col2, 81 AS col2 FROM tab0 AS cor0
----
10
81
47
81
99
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8364
SELECT + ( CAST( NULL AS SIGNED ) ) / + + ( + - CAST( + - COUNT( * ) AS SIGNED ) ) col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8364
SELECT + ( CAST ( NULL AS INTEGER ) ) / + + ( + - CAST ( + - COUNT ( * ) AS INTEGER ) ) col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT - col0 * col2 + - col0 * + 81 FROM tab2
----
-10425
-4784
-7744

onlyif mysql # aggregate syntax: 
query I rowsort label-8366
SELECT SUM( ALL - col0 ) + COUNT( * ) FROM tab0
----
-196

skipif mysql # not compatible
query I rowsort label-8366
SELECT SUM ( ALL - col0 ) + COUNT ( * ) FROM tab0
----
-196

query I rowsort
SELECT - col1 FROM tab2 WHERE NOT 52 > + col1
----
-67
-77

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL <> ( col2 )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + col2 / ( col1 * - col0 ) + col2 NOT BETWEEN NULL AND + col0
----

query I rowsort
SELECT col0 + + col1 * + col1 AS col0 FROM tab2
----
2647
4564
5993

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8371
SELECT col2 * + col2 + CAST( + col0 + + col0 AS SIGNED ) * + 52 AS col0 FROM tab1
----
12321
14088
14520

skipif mysql # not compatible
query I rowsort label-8371
SELECT col2 * + col2 + CAST ( + col0 + + col0 AS INTEGER ) * + 52 AS col0 FROM tab1
----
12321
14088
14520

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8372
SELECT DISTINCT 36 DIV - MIN( + col2 ) + - COUNT( * ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-8372
SELECT DISTINCT 36 / - MIN ( + col2 ) + - COUNT ( * ) FROM tab1
----
-3

query III rowsort
SELECT * FROM tab1 WHERE NOT ( 21 ) NOT IN ( + col1 + - col0 )
----

query I rowsort
SELECT DISTINCT - col1 AS col2 FROM tab0 WHERE NULL < NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8375
SELECT DISTINCT + COUNT( * ) + - 82 DIV - 77 FROM tab2
----
4

skipif mysql # not compatible
query I rowsort label-8375
SELECT DISTINCT + COUNT ( * ) + - 82 / - 77 FROM tab2
----
4

query I rowsort
SELECT - 80 FROM tab0 WHERE NULL = 2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8377
SELECT + MIN( 31 ) AS col1 FROM tab0 WHERE ( NULL ) <= + col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8377
SELECT + MIN ( 31 ) AS col1 FROM tab0 WHERE ( NULL ) <= + col0
----
NULL

query I rowsort
SELECT + col2 / col1 AS col2 FROM tab1 WHERE NOT NULL < col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8379
SELECT MIN( ALL - col1 ) + COUNT( * ) FROM tab1 WHERE ( NULL ) BETWEEN - col0 AND ( - col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8379
SELECT MIN ( ALL - col1 ) + COUNT ( * ) FROM tab1 WHERE ( NULL ) BETWEEN - col0 AND ( - col2 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8380
SELECT + MAX( ALL + col0 ) FROM tab0
----
97

skipif mysql # not compatible
query I rowsort label-8380
SELECT + MAX ( ALL + col0 ) FROM tab0
----
97

query I rowsort
SELECT ALL - 69 * + 5 FROM tab2
----
-345
-345
-345

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8382
SELECT DISTINCT CAST( NULL AS DECIMAL ) FROM tab2 WHERE col1 + + col2 BETWEEN + 18 + - 7 * - col0 AND ( 17 )
----

skipif mysql # not compatible
query I rowsort label-8382
SELECT DISTINCT CAST ( NULL AS REAL ) FROM tab2 WHERE col1 + + col2 BETWEEN + 18 + - 7 * - col0 AND ( 17 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8383
SELECT ( MAX( + col0 ) ) AS col2 FROM tab2
----
75

skipif mysql # not compatible
query I rowsort label-8383
SELECT ( MAX ( + col0 ) ) AS col2 FROM tab2
----
75

query I rowsort
SELECT + col1 + col0 * col2 AS col2 FROM tab0
----
786
891
9604

query I rowsort
SELECT + 91 + + 17 FROM tab1
----
108
108
108

query I rowsort
SELECT - col0 FROM tab2 WHERE NOT 25 IS NOT NULL
----

query I rowsort
SELECT DISTINCT 2 * + col2 FROM tab1
----
118
136
192

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( NULL ) IN ( - 49 )
----

query I rowsort
SELECT 35 * col1 - 93 FROM tab0
----
-58
2742
642

onlyif mysql # aggregate syntax: 
query I rowsort label-8390
SELECT ALL + COUNT( * ) AS col2 FROM tab2 WHERE NOT ( NULL ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-8390
SELECT ALL + COUNT ( * ) AS col2 FROM tab2 WHERE NOT ( NULL ) IS NULL
----
0

query I rowsort
SELECT col2 * - col0 - + col0 * col0 FROM tab0
----
-19012
-8439
-930

query I rowsort
SELECT ALL - col0 * + 4 FROM tab2
----
-184
-256
-300

query I rowsort
SELECT ALL - col2 FROM tab1 WHERE NOT ( + col2 + col1 ) NOT BETWEEN 63 AND NULL
----

query I rowsort
SELECT - col2 * col2 AS col0 FROM tab1 WHERE 19 + + col1 IS NOT NULL
----
-3481
-4624
-9216

onlyif mysql # aggregate syntax: 
query I rowsort label-8395
SELECT DISTINCT COUNT( * ) + 93 FROM tab0 WHERE NOT ( col1 ) IN ( + col2 )
----
96

skipif mysql # not compatible
query I rowsort label-8395
SELECT DISTINCT COUNT ( * ) + 93 FROM tab0 WHERE NOT ( col1 ) IN ( + col2 )
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-8396
SELECT 64 + + COUNT( * ) col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
64

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8396
SELECT 64 + + COUNT ( * ) col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
64

onlyif mysql # DIV for integer division: 
query I rowsort label-8397
SELECT 93 DIV + col1 + col2 * col2 FROM tab0 AS cor0
----
104
2210
9894

skipif mysql # not compatible
query I rowsort label-8397
SELECT 93 / + col1 + col2 * col2 FROM tab0 AS cor0
----
104
2210
9894

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8398
SELECT DISTINCT CAST( + MAX( col2 ) AS SIGNED ) + COUNT( * ) FROM tab0 AS cor0
----
102

skipif mysql # not compatible
query I rowsort label-8398
SELECT DISTINCT CAST ( + MAX ( col2 ) AS INTEGER ) + COUNT ( * ) FROM tab0 AS cor0
----
102

query I rowsort
SELECT DISTINCT ( - 92 ) FROM tab1 cor0
----
-92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8400
SELECT ALL MAX( ALL col0 ) + COUNT( ALL + CAST( NULL AS SIGNED ) ) DIV - ( - COUNT( * ) + + 83 ) AS col2 FROM tab2 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-8400
SELECT ALL MAX ( ALL col0 ) + COUNT ( ALL + CAST ( NULL AS INTEGER ) ) / - ( - COUNT ( * ) + + 83 ) AS col2 FROM tab2 AS cor0
----
75

query III rowsort
SELECT ALL * FROM tab0 WHERE ( + col2 * - col1 ) NOT BETWEEN col0 * col1 AND 33
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8402
SELECT DISTINCT - 31 * - COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab2
----
279

skipif mysql # not compatible
query I rowsort label-8402
SELECT DISTINCT - 31 * - COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab2
----
279

query I rowsort
SELECT + col1 - - col1 * col1 FROM tab2 AS cor0
----
2652
4556
6006

query I rowsort
SELECT + 88 * col1 - + 62 AS col1 FROM tab0 AS cor0
----
1786
26
7066

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( + col0 ) < - 91
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL <= ( + col2 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT col1 * col2 + col0 NOT BETWEEN ( + 31 ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8408
SELECT DISTINCT - MIN( DISTINCT col1 ) AS col0 FROM tab2 cor0
----
-51

skipif mysql # not compatible
query I rowsort label-8408
SELECT DISTINCT - MIN ( DISTINCT col1 ) AS col0 FROM tab2 cor0
----
-51

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8409
SELECT ALL + AVG ( + 93 ) * CAST( NULL AS DECIMAL ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8409
SELECT ALL + AVG ( + 93 ) * CAST ( NULL AS REAL ) AS col1 FROM tab2
----
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE + col1 + - col2 NOT IN ( 64 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col0 FROM tab1 WHERE NOT col2 + - ( - col1 - col1 ) BETWEEN NULL AND + 98 * col1 + ( col1 ) OR NOT - col1 BETWEEN col0 + col1 AND ( - ( col1 ) )
----
51
85
91

query III rowsort
SELECT * FROM tab1 WHERE NOT + col0 / + ( + col0 / + 44 ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 col2 FROM tab0 WHERE NOT ( col0 + col0 ) IN ( + col0 )
----
-10
-47
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8414
SELECT DISTINCT - AVG ( - CAST( NULL AS SIGNED ) ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8414
SELECT DISTINCT - AVG ( - CAST ( NULL AS INTEGER ) ) AS col1 FROM tab2
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8415
SELECT ALL * FROM tab2 WHERE - 70 BETWEEN NULL AND CAST( 44 AS DECIMAL ) + col0
----

skipif mysql # not compatible
query III rowsort label-8415
SELECT ALL * FROM tab2 WHERE - 70 BETWEEN NULL AND CAST ( 44 AS REAL ) + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8416
SELECT DISTINCT + 87 * - COUNT( * ) FROM tab2
----
-261

skipif mysql # not compatible
query I rowsort label-8416
SELECT DISTINCT + 87 * - COUNT ( * ) FROM tab2
----
-261

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + + col1 col1 FROM tab1 cor0 WHERE + col2 + - col1 NOT BETWEEN NULL AND col0
----
-82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 28 col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to c3e7fa3d059fc708f03c60e9cef0c115

onlyif mysql # aggregate syntax: 
query I rowsort label-8419
SELECT ALL MAX( DISTINCT + 60 ) * + COUNT( * ) AS col0 FROM tab0
----
180

skipif mysql # not compatible
query I rowsort label-8419
SELECT ALL MAX ( DISTINCT + 60 ) * + COUNT ( * ) AS col0 FROM tab0
----
180

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8420
SELECT + + COUNT( * ) DIV - 99 + - 24 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-24

skipif mysql # not compatible
query I rowsort label-8420
SELECT + + COUNT ( * ) / - 99 + - 24 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-24

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8421
SELECT ALL + 49 DIV - COUNT( * ) FROM tab1
----
-16

skipif mysql # not compatible
query I rowsort label-8421
SELECT ALL + 49 / - COUNT ( * ) FROM tab1
----
-16

query I rowsort
SELECT ALL col0 * - 2 + 76 FROM tab0 WHERE - ( + col2 ) BETWEEN - 32 AND - 98
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8423
SELECT + CAST( SUM( + + col1 ) AS SIGNED ) FROM tab0
----
103

skipif mysql # not compatible
query I rowsort label-8423
SELECT + CAST ( SUM ( + + col1 ) AS INTEGER ) FROM tab0
----
103

query II rowsort
SELECT - 43 AS col1, + 52 * - 14 * 31 FROM tab0 AS cor0
----
-43
-22568
-43
-22568
-43
-22568

onlyif mysql # aggregate syntax: 
query I rowsort label-8425
SELECT DISTINCT + MIN( ALL + 70 ) AS col2 FROM tab2 AS cor0
----
70

skipif mysql # not compatible
query I rowsort label-8425
SELECT DISTINCT + MIN ( ALL + 70 ) AS col2 FROM tab2 AS cor0
----
70

query I rowsort
SELECT ALL + ( + - col2 ) + + + col0 * col2 AS col1 FROM tab1 AS cor0
----
4800
4956
6120

query I rowsort
SELECT ALL - col1 * - + col0 + + col1 FROM tab1 cor0
----
430
4324
728

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL <> - 30
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8429
SELECT DISTINCT + 17 * COUNT( * ) FROM tab2 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-8429
SELECT DISTINCT + 17 * COUNT ( * ) FROM tab2 AS cor0
----
51

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( col0 ) IN ( 75 * col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + - 41 - col0 col1 FROM tab0
----
-107
-137
25

onlyif mysql # aggregate syntax: 
query I rowsort label-8432
SELECT - COUNT( col0 ) + + SUM( ALL + col0 ) AS col0 FROM tab1
----
224

skipif mysql # not compatible
query I rowsort label-8432
SELECT - COUNT ( col0 ) + + SUM ( ALL + col0 ) AS col0 FROM tab1
----
224

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8433
SELECT - 74 + - - ( - SUM( - CAST( + 22 AS SIGNED ) ) ) FROM tab2
----
-8

skipif mysql # not compatible
query I rowsort label-8433
SELECT - 74 + - - ( - SUM ( - CAST ( + 22 AS INTEGER ) ) ) FROM tab2
----
-8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 39 * 60 col0 FROM tab0 WHERE - + 30 + + col1 + - col1 / - col2 IS NOT NULL
----
2340
2340
2340

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( + + col2 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col1 + col0 + - + col1 * 72 FROM tab2
----
-3575
-4682
-5403

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8437
SELECT ALL CAST( + + 97 AS SIGNED ) AS col1 FROM tab2
----
97
97
97

skipif mysql # not compatible
query I rowsort label-8437
SELECT ALL CAST ( + + 97 AS INTEGER ) AS col1 FROM tab2
----
97
97
97

query I rowsort
SELECT DISTINCT 84 AS col1 FROM tab2 WHERE NOT + col0 IS NULL
----
84

query I rowsort
SELECT col2 + + 76 FROM tab1
----
135
144
172

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8440
SELECT DISTINCT col0 * CAST( 86 AS SIGNED ) AS col2 FROM tab2
----
3956
5504
6450

skipif mysql # not compatible
query I rowsort label-8440
SELECT DISTINCT col0 * CAST ( 86 AS INTEGER ) AS col2 FROM tab2
----
3956
5504
6450

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8441
SELECT ALL 10 * SUM( col0 * - col2 ) AS col0 FROM tab1 WHERE NOT NULL BETWEEN - ( + 13 ) AND - CAST( + col0 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8441
SELECT ALL 10 * SUM ( col0 * - col2 ) AS col0 FROM tab1 WHERE NOT NULL BETWEEN - ( + 13 ) AND - CAST ( + col0 AS INTEGER )
----
NULL

query I rowsort
SELECT ALL 8 AS col1 FROM tab1
----
8
8
8

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NOT ( NOT NULL IS NULL ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NOT ( NULL ) BETWEEN col1 AND ( col1 / + col1 ) )
----

query I rowsort
SELECT DISTINCT - col1 + - 54 AS col1 FROM tab1 AS cor0 WHERE NULL IN ( col2 * - 35 )
----

query II rowsort
SELECT ALL + + col2 + + col0, ( col2 ) FROM tab0 AS cor0
----
196
99
62
47
97
10

query I rowsort
SELECT ALL - 73 * - + col0 AS col2 FROM tab1 AS cor0
----
3723
6205
6643

query I rowsort
SELECT DISTINCT + 16 AS col2 FROM tab2 AS cor0 WHERE ( NOT col1 + col1 < ( NULL ) )
----

query I rowsort
SELECT col2 FROM tab2 AS cor0 WHERE ( col0 / - ( + col2 ) ) BETWEEN col1 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8450
SELECT ALL - 43 + + - COUNT( * ) * + 49 FROM tab0 cor0
----
-190

skipif mysql # not compatible
query I rowsort label-8450
SELECT ALL - 43 + + - COUNT ( * ) * + 49 FROM tab0 cor0
----
-190

query I rowsort
SELECT ALL + - ( - 65 ) AS col0 FROM ( tab1 cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to 8bef2ea1f05f3514633f851312bdd805

query I rowsort
SELECT - col0 * + 6 * col1 + + col0 FROM tab0
----
-10875
-485
-7275

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8453
SELECT + CAST( + + ( COUNT( * ) ) AS SIGNED ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-8453
SELECT + CAST ( + + ( COUNT ( * ) ) AS INTEGER ) FROM tab1
----
3

query I rowsort
SELECT ALL - - col1 FROM tab2 AS cor0 WHERE - col1 + + 48 + + + col2 IS NULL
----

query I rowsort
SELECT DISTINCT - + col1 * - 6 - - - 78 AS col0 FROM tab1 cor0
----
-48
204
6

onlyif mysql # aggregate syntax: 
query I rowsort label-8456
SELECT DISTINCT + SUM( DISTINCT col0 ) AS col2 FROM tab0 AS cor0
----
199

skipif mysql # not compatible
query I rowsort label-8456
SELECT DISTINCT + SUM ( DISTINCT col0 ) AS col2 FROM tab0 AS cor0
----
199

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( col1 + 36 + + - col1 * + - 5 ) NOT IN ( - 77 )
----

query I rowsort
SELECT DISTINCT + + 81 AS col2 FROM tab1 AS cor0
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-8459
SELECT DISTINCT - COUNT( * ) * + MAX( ALL 59 ) FROM tab2 AS cor0 WHERE NOT ( col1 ) NOT IN ( 41 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8459
SELECT DISTINCT - COUNT ( * ) * + MAX ( ALL 59 ) FROM tab2 AS cor0 WHERE NOT ( col1 ) NOT IN ( 41 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8460
SELECT COUNT( ALL - 31 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-8460
SELECT COUNT ( ALL - 31 ) FROM tab1
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col0 col0, + col0 AS col2 FROM tab0
----
-15
15
-87
87
-97
97

query I rowsort
SELECT ALL ( - 78 ) AS col1 FROM tab2, tab0 cor0
----
9 values hashing to b6e4cc21599216686f0cf45b85668b2c

query III rowsort
SELECT * FROM tab1 WHERE NOT ( - 97 ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8464
SELECT 93 DIV col0 FROM tab0 WHERE NOT + col0 - col0 + - 65 * + - col0 IN ( col0 )
----
0
1
6

skipif mysql # not compatible
query I rowsort label-8464
SELECT 93 / col0 FROM tab0 WHERE NOT + col0 - col0 + - 65 * + - col0 IN ( col0 )
----
0
1
6

query I rowsort
SELECT DISTINCT - 3 * + + col2 FROM tab1 AS cor0
----
-177
-204
-288

query I rowsort
SELECT DISTINCT 98 + + col1 FROM tab0 AS cor0
----
119
179
99

query III rowsort
SELECT * FROM tab1 WHERE NOT + - 34 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col1 * - 72 FROM tab0 AS cor0 WHERE ( - col2 + - + col2 + + col1 ) = - col0
----

query I rowsort
SELECT - col1 AS col0 FROM tab1 cor0 WHERE ( NULL NOT BETWEEN - col1 AND NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8470
SELECT MAX( DISTINCT col2 ) AS col0 FROM tab0 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-8470
SELECT MAX ( DISTINCT col2 ) AS col0 FROM tab0 AS cor0
----
99

query I rowsort
SELECT ALL + 8 + 39 + + 2 AS col0 FROM tab0 AS cor0
----
49
49
49

onlyif mysql # DIV for integer division: 
query I rowsort label-8472
SELECT DISTINCT + 89 DIV + 82 + + col0 + - + col2 - + ( + col2 ) col0 FROM tab2 cor0
----
-15
-40
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8472
SELECT DISTINCT + 89 / + 82 + + col0 + - + col2 - + ( + col2 ) col0 FROM tab2 cor0
----
-15
-40
1

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NOT ( - col0 + + + col2 + col2 / + col0 <> ( NULL ) ) )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL BETWEEN ( col0 ) AND NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL = col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8476
SELECT ALL + COUNT( * ) * + SUM( col1 ) + - + 25 AS col1 FROM tab1 AS cor0
----
173

skipif mysql # not compatible
query I rowsort label-8476
SELECT ALL + COUNT ( * ) * + SUM ( col1 ) + - + 25 AS col1 FROM tab1 AS cor0
----
173

query III rowsort
SELECT * FROM tab1 cor0 WHERE NULL NOT BETWEEN ( - col0 ) AND NULL
----

query I rowsort
SELECT DISTINCT col2 + - 2 + 74 AS col2 FROM tab0 AS cor0
----
119
171
82

query I rowsort
SELECT - + col2 + col0 FROM tab1 AS cor0 WHERE col1 IS NULL
----

query I rowsort
SELECT DISTINCT + col0 AS col0 FROM tab1 WHERE NOT - 27 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-8481
SELECT + 62 DIV + 43 - + + 37 AS col0, - 67 AS col1 FROM tab2
----
-36
-67
-36
-67
-36
-67

skipif mysql # not compatible
query II rowsort label-8481
SELECT + 62 / + 43 - + + 37 AS col0, - 67 AS col1 FROM tab2
----
-36
-67
-36
-67
-36
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-8482
SELECT + COUNT( * ) - - 68 AS col1 FROM tab0
----
71

skipif mysql # not compatible
query I rowsort label-8482
SELECT + COUNT ( * ) - - 68 AS col1 FROM tab0
----
71

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL BETWEEN col2 / 2 * - - 65 AND + col0
----

query I rowsort
SELECT - 56 + - - 66 FROM tab0
----
10
10
10

query I rowsort
SELECT - col1 + - 92 FROM tab2 cor0
----
-143
-159
-169

query I rowsort
SELECT ALL 5 * - col2 FROM tab1 AS cor0
----
-295
-340
-480

onlyif mysql # aggregate syntax: 
query I rowsort label-8487
SELECT + 27 * - COUNT( ( + + col2 ) ) + - 69 FROM tab2 AS cor0
----
-150

skipif mysql # not compatible
query I rowsort label-8487
SELECT + 27 * - COUNT ( ( + + col2 ) ) + - 69 FROM tab2 AS cor0
----
-150

onlyif mysql # aggregate syntax: 
query I rowsort label-8488
SELECT - + MAX( + col1 ) + + - COUNT( + col0 ) AS col0 FROM tab1 AS cor0
----
-50

skipif mysql # not compatible
query I rowsort label-8488
SELECT - + MAX ( + col1 ) + + - COUNT ( + col0 ) AS col0 FROM tab1 AS cor0
----
-50

onlyif mysql # aggregate syntax: 
query II rowsort label-8489
SELECT + MIN( ALL + 86 ) + COUNT( * ), + COUNT( * ) AS col2 FROM tab0 AS cor0
----
89
3

skipif mysql # not compatible
query II rowsort label-8489
SELECT + MIN ( ALL + 86 ) + COUNT ( * ), + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
89
3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 + ( 24 ) IS NULL
----

query I rowsort
SELECT DISTINCT + col2 - + - col1 FROM tab0
----
100
128
31

query I rowsort
SELECT + AVG ( - 44 ) AS col2 FROM tab2 WHERE NOT + col1 IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8493
SELECT ALL + - COUNT( * ) FROM tab0 cor0 CROSS JOIN tab0 cor1
----
-9

skipif mysql # not compatible
query I rowsort label-8493
SELECT ALL + - COUNT ( * ) FROM tab0 cor0 CROSS JOIN tab0 cor1
----
-9

query I rowsort
SELECT ALL col1 * + ( col2 ) FROM tab1 WHERE + col0 + col0 NOT IN ( + 7 * - col1 )
----
1344
295
3196

query I rowsort
SELECT DISTINCT - 70 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-8496
SELECT COUNT( * ) * ( - 71 ) FROM tab0
----
-213

skipif mysql # not compatible
query I rowsort label-8496
SELECT COUNT ( * ) * ( - 71 ) FROM tab0
----
-213

query II rowsort
SELECT DISTINCT 85 * + 3, + col2 FROM tab2 AS cor0
----
255
23
255
40
255
58

query I rowsort
SELECT col2 AS col1 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN + col2 / + col2 AND + col1
----

query I rowsort
SELECT ALL - col1 FROM tab2 AS cor0 WHERE 18 * - col0 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT - col2 + + - col0 FROM tab1 cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT - ( col2 ) + + col0 AS col2 FROM tab0 AS cor0 WHERE NOT col1 + 67 IS NULL
----
-2
-32
77

onlyif mysql # aggregate syntax: 
query I rowsort label-8502
SELECT + - MAX( col1 ) AS col0 FROM tab1 AS cor0
----
-47

skipif mysql # not compatible
query I rowsort label-8502
SELECT + - MAX ( col1 ) AS col0 FROM tab1 AS cor0
----
-47

onlyif mysql # DIV for integer division: 
query I rowsort label-8503
SELECT DISTINCT 47 DIV col1 * - - col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-8503
SELECT DISTINCT 47 / col1 * - - col1 FROM tab2
----
0

query I rowsort
SELECT + col2 FROM tab2 WHERE NOT + col1 IS NULL
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-8505
SELECT DISTINCT - MIN( + - col2 ) FROM tab0
----
99

skipif mysql # not compatible
query I rowsort label-8505
SELECT DISTINCT - MIN ( + - col2 ) FROM tab0
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-8506
SELECT + MIN( DISTINCT + + col1 ) AS col2 FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-8506
SELECT + MIN ( DISTINCT + + col1 ) AS col2 FROM tab2
----
51

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - + 60 < + col2 * + 54 + + + col2
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8508
SELECT + col1 * - - col1 + + CAST( NULL AS DECIMAL ) + col0 - + col2 / - col1 - - ( 79 ) / + col1 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8508
SELECT + col1 * - - col1 + + CAST ( NULL AS REAL ) + col0 - + col2 / - col1 - - ( 79 ) / + col1 AS col2 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT + - col2 + - + col2 * + + 2 * - col0 BETWEEN NULL AND + + 70
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT DISTINCT + col0, col1 + + col2 FROM tab1
----
51
110
85
64
91
115

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8511
SELECT DISTINCT - 54 FROM tab0 AS cor0 WHERE CAST( NULL AS DECIMAL ) >= col1
----

skipif mysql # not compatible
query I rowsort label-8511
SELECT DISTINCT - 54 FROM tab0 AS cor0 WHERE CAST ( NULL AS REAL ) >= col1
----

query I rowsort
SELECT ALL + 98 AS col1 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to f9dee8c21116f1aed64ac5160e190809

onlyif mysql # aggregate syntax: 
query I rowsort label-8513
SELECT - 63 + - - COUNT( * ) FROM tab1 WHERE NULL >= - col2
----
-63

skipif mysql # not compatible
query I rowsort label-8513
SELECT - 63 + - - COUNT ( * ) FROM tab1 WHERE NULL >= - col2
----
-63

query I rowsort
SELECT col0 + + - col0 AS col2 FROM tab1 AS cor0
----
0
0
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - - col0 BETWEEN ( + ( + col1 ) ) AND - 75 + col1 AND NOT NULL IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 82 FROM tab0 AS cor0 WHERE col0 - - 25 IN ( + col1 + col0, - ( col2 ) )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8517
SELECT + COUNT( * ) + - + COUNT( * ) col1, - COUNT( * ) DIV 5 AS col0 FROM tab2
----
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8517
SELECT + COUNT ( * ) + - + COUNT ( * ) col1, - COUNT ( * ) / 5 AS col0 FROM tab2
----
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8518
SELECT ALL + col0 + + CAST( col0 AS SIGNED ) AS col0 FROM tab0
----
174
194
30

skipif mysql # not compatible
query I rowsort label-8518
SELECT ALL + col0 + + CAST ( col0 AS INTEGER ) AS col0 FROM tab0
----
174
194
30

query III rowsort
SELECT * FROM tab2 WHERE NULL NOT BETWEEN NULL AND + col2 * + col2 * + ( - 63 ) - col2
----

query I rowsort
SELECT ALL - col1 * + 23 - - + col2 AS col0 FROM tab1
----
-1013
-226
-56

query I rowsort
SELECT DISTINCT 52 - col0 AS col0 FROM tab0
----
-35
-45
37

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 18 NOT BETWEEN NULL AND ( - col1 )
----
91
47
68

query I rowsort
SELECT DISTINCT + col0 * + 58 AS col0 FROM tab2 AS cor0
----
2668
3712
4350

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8524
SELECT DISTINCT + 58 * CAST( NULL AS DECIMAL ) + col2 AS col2 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8524
SELECT DISTINCT + 58 * CAST ( NULL AS REAL ) + col2 AS col2 FROM tab1 cor0
----
NULL

query I rowsort
SELECT ALL - col1 * 39 AS col2 FROM tab1 AS cor0
----
-1833
-195
-546

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT col0 AS col1, col2 col0, ( + col2 ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT + 0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8528
SELECT - + ( CAST( NULL AS DECIMAL ) ) FROM tab2 WHERE NOT NULL BETWEEN + 49 AND + col0
----

skipif mysql # not compatible
query I rowsort label-8528
SELECT - + ( CAST ( NULL AS REAL ) ) FROM tab2 WHERE NOT NULL BETWEEN + 49 AND + col0
----

query I rowsort
SELECT + col2 AS col2 FROM tab0 WHERE NOT - + col1 >= + - col2
----
10
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + ( - col1 ) * - + col2 + + - col0 - col0 - 14 + col2 + + col2 col2 FROM tab0 AS cor0
----
3857
42
89

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NOT ( NOT NULL NOT IN ( + col1, ( col2 ), col2 + col1 * 61 * - col0 + + + 42 ) ) )
----

query I rowsort
SELECT + + 28 * 56 FROM tab1 AS cor0
----
1568
1568
1568

query I rowsort
SELECT + col1 * + + 18 * - ( + col1 ) FROM tab2 AS cor0
----
-106722
-46818
-80802

query I rowsort
SELECT + + col2 * - 86 + - col2 FROM tab1 AS cor0
----
-5133
-5916
-8352

query II rowsort
SELECT + - col1 AS col1, 55 AS col1 FROM tab0 AS cor0
----
-1
55
-21
55
-81
55

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8536
SELECT + col0, CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
51
NULL
85
NULL
91
NULL

skipif mysql # not compatible
query II rowsort label-8536
SELECT + col0, CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
51
NULL
85
NULL
91
NULL

query I rowsort
SELECT DISTINCT - + 91 * - 20 * - - col0 FROM tab0 AS cor0 WHERE NOT - col0 IS NULL
----
158340
176540
27300

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 col0 FROM tab0 cor0 WHERE NOT NULL <= ( NULL )
----

query I rowsort
SELECT DISTINCT ( - 2 ) FROM tab2
----
-2

query I rowsort
SELECT ALL - 43 * + col1 * + col2 FROM tab2
----
-132440
-167098
-50439

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + 1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col2 FROM tab2 WHERE NOT - col0 + - - 12 * - - col2 * + + col1 >= NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + col1 < ( + + col0 / + 25 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8544
SELECT ALL COUNT( * ) + + 94 FROM tab1 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-8544
SELECT ALL COUNT ( * ) + + 94 FROM tab1 AS cor0
----
97

onlyif mysql # DIV for integer division: 
query I rowsort label-8545
SELECT ALL 79 DIV col1 FROM tab1 AS cor0
----
1
15
5

skipif mysql # not compatible
query I rowsort label-8545
SELECT ALL 79 / col1 FROM tab1 AS cor0
----
1
15
5

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8546
SELECT DISTINCT + CAST( NULL AS DECIMAL ) + - CAST( - - COUNT( * ) AS DECIMAL ) col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8546
SELECT DISTINCT + CAST ( NULL AS REAL ) + - CAST ( - - COUNT ( * ) AS REAL ) col2 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT + - col0 AS col2 FROM tab1 cor0 WHERE NULL IN ( + ( col0 ) + + col0, - 33, - col2 + + + 27 * - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8548
SELECT DISTINCT - + 52 - - COUNT( * ) col0 FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 )
----
-43

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8548
SELECT DISTINCT - + 52 - - COUNT ( * ) col0 FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 )
----
-43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8549
SELECT + - CAST( NULL AS SIGNED ) / col1 * + 79 * 72 / ( + col0 ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8549
SELECT + - CAST ( NULL AS INTEGER ) / col1 * + 79 * 72 / ( + col0 ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + + col2 * - + col1 AS col0 FROM tab0 AS cor0
----
-210
-3807
-99

query I rowsort
SELECT DISTINCT col1 * - 5 * col2 FROM tab2 AS cor0
----
-15400
-19430
-5865

query I rowsort
SELECT ALL col1 * + 86 * - - col0 AS col0 FROM tab0 AS cor0 WHERE + col0 * - col1 = + + col0 * + col0
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL IN ( - col1 + 70 + + 91 * - - 76, 13, - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8554
SELECT + + MIN( DISTINCT col2 ) FROM tab0 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-8554
SELECT + + MIN ( DISTINCT col2 ) FROM tab0 AS cor0
----
10

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8555
SELECT ALL * FROM tab2 cor0 WHERE ( CAST( NULL AS SIGNED ) + - - col2 + + col2 ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-8555
SELECT ALL * FROM tab2 cor0 WHERE ( CAST ( NULL AS INTEGER ) + - - col2 + + col2 ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT - 35 * - col2 IS NULL AND ( NULL ) IS NOT NULL
----

query I rowsort
SELECT ALL - col0 - - + col1 AS col0 FROM tab1
----
-37
-44
-80

query I rowsort
SELECT DISTINCT col0 - - 90 * col1 FROM tab0
----
187
1977
7305

onlyif mysql # aggregate syntax: 
query I rowsort label-8559
SELECT DISTINCT - COUNT( * ) - + + MAX( col1 ) AS col0 FROM tab0
----
-84

skipif mysql # not compatible
query I rowsort label-8559
SELECT DISTINCT - COUNT ( * ) - + + MAX ( col1 ) AS col0 FROM tab0
----
-84

onlyif mysql # DIV for integer division: 
query I rowsort label-8560
SELECT - - ( - col2 ) DIV - 94 AS col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8560
SELECT - - ( - col2 ) / - 94 AS col0 FROM tab2 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 91 col2, 53 FROM tab2 AS cor0 WHERE NOT ( NOT NULL BETWEEN - ( - - col1 ) / - col0 * col2 AND + + col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 col1, + col1 FROM tab1 AS cor0
----
14
14
47
47
5
5

onlyif mysql # aggregate syntax: 
query II rowsort label-8563
SELECT DISTINCT 96 * - ( - 79 ) AS col0, + 20 * COUNT( * ) AS col1 FROM tab1
----
7584
60

skipif mysql # not compatible
query II rowsort label-8563
SELECT DISTINCT 96 * - ( - 79 ) AS col0, + 20 * COUNT ( * ) AS col1 FROM tab1
----
7584
60

onlyif mysql # aggregate syntax: 
query I rowsort label-8564
SELECT - SUM( + 74 ) * - + 26 FROM tab1
----
5772

skipif mysql # not compatible
query I rowsort label-8564
SELECT - SUM ( + 74 ) * - + 26 FROM tab1
----
5772

onlyif mysql # aggregate syntax: 
query II rowsort label-8565
SELECT - + 90 + - 2 + + - COUNT( * ) AS col0, COUNT( * ) AS col1 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
-101
9

skipif mysql # not compatible
query II rowsort label-8565
SELECT - + 90 + - 2 + + - COUNT ( * ) AS col0, COUNT ( * ) AS col1 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
-101
9

query I rowsort
SELECT ALL 80 * - 13 FROM tab0
----
-1040
-1040
-1040

query I rowsort
SELECT + col1 * - col0 + + 24 FROM tab0 AS cor0
----
-1191
-1803
-73

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8568
SELECT DISTINCT + - 31 DIV + COUNT( * ) AS col0 FROM tab2 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-8568
SELECT DISTINCT + - 31 / + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-8569
SELECT ALL MAX( col0 ) AS col2 FROM tab1 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-8569
SELECT ALL MAX ( col0 ) AS col2 FROM tab1 AS cor0
----
91

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 7 IN ( + col2, + 87 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8571
SELECT DISTINCT + 87 * + + SUM( + - col2 ) * - COUNT( * ) FROM tab2 cor0
----
31581

skipif mysql # not compatible
query I rowsort label-8571
SELECT DISTINCT + 87 * + + SUM ( + - col2 ) * - COUNT ( * ) FROM tab2 cor0
----
31581

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8572
SELECT DISTINCT 86 * - 10 * + - CAST( NULL AS SIGNED ) AS col1, 44 + + + col0 AS col0 FROM tab1 AS cor0
----
NULL
129
NULL
135
NULL
95

skipif mysql # not compatible
query II rowsort label-8572
SELECT DISTINCT 86 * - 10 * + - CAST ( NULL AS INTEGER ) AS col1, 44 + + + col0 AS col0 FROM tab1 AS cor0
----
NULL
129
NULL
135
NULL
95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8573
SELECT ALL + AVG ( - - CAST( NULL AS SIGNED ) ) * ( COUNT( * ) ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8573
SELECT ALL + AVG ( - - CAST ( NULL AS INTEGER ) ) * ( COUNT ( * ) ) AS col0 FROM tab1 AS cor0
----
NULL

query IIIIII rowsort
SELECT * FROM tab0, tab1 cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL 53 * col0 AS col1 FROM tab0
----
4611
5141
795

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1 col1, + col2 * - - col1 * + col2 FROM tab2
----
51
26979
67
225388
77
123200

query I rowsort
SELECT 28 + - - col2 * 20 * + - col1 AS col0 FROM tab0
----
-1952
-4172
-76112

query I rowsort
SELECT 68 + col2 AS col2 FROM tab2 AS cor0
----
108
126
91

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE 45 <> col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT + 27, col0 FROM tab2 AS cor0
----
27
46
27
64
27
75

onlyif mysql # aggregate syntax: 
query II rowsort label-8581
SELECT + 62 col0, + MAX( DISTINCT + ( + 85 ) ) FROM tab1 AS cor0
----
62
85

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8581
SELECT + 62 col0, + MAX ( DISTINCT + ( + 85 ) ) FROM tab1 AS cor0
----
62
85

query I rowsort
SELECT ALL + 63 + + 60 FROM tab0 AS cor0 WHERE - col2 IN ( - + col0, ( + col1 ), - col2 * 85 )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - 66 > NULL
----

query I rowsort
SELECT DISTINCT + - col1 * + col2 + - - col0 AS col2 FROM tab0 AS cor0
----
-123
-2
-3792

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - 78 * + col2 + - 23 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8586
SELECT ( 50 ) FROM tab2 WHERE - col2 + ( - + CAST( NULL AS SIGNED ) ) <= NULL
----

skipif mysql # not compatible
query I rowsort label-8586
SELECT ( 50 ) FROM tab2 WHERE - col2 + ( - + CAST ( NULL AS INTEGER ) ) <= NULL
----

query I rowsort
SELECT DISTINCT 41 + + col0 AS col1 FROM tab1
----
126
132
92

query I rowsort
SELECT + 20 + col0 AS col1 FROM tab2
----
66
84
95

query I rowsort
SELECT ALL - col2 + 60 * + col1 + + + 48 + + - col1 AS col2 FROM tab1 AS cor0
----
2753
284
778

query I rowsort
SELECT + ( + 63 ) + - - col1 AS col1 FROM tab1 cor0
----
110
68
77

query I rowsort
SELECT ALL + ( - ( col1 ) ) + 9 FROM tab1 AS cor0
----
-38
-5
4

query I rowsort
SELECT DISTINCT + 44 - - - ( - 88 ) + col2 * - - col0 + 20 AS col0 FROM tab2 cor0
----
1210
2712
4502

onlyif mysql # aggregate syntax: 
query I rowsort label-8593
SELECT MAX( col0 ) FROM tab2 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-8593
SELECT MAX ( col0 ) FROM tab2 AS cor0
----
75

query I rowsort
SELECT DISTINCT col2 + ( + 59 ) AS col1 FROM tab0 AS cor0
----
106
158
69

onlyif mysql # DIV for integer division: 
query I rowsort label-8595
SELECT + ( - col1 ) DIV - 95 * - col1 * 55 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8595
SELECT + ( - col1 ) / - 95 * - col1 * 55 FROM tab1
----
0
0
0

query III rowsort
SELECT ALL * FROM tab2 WHERE - 31 / + + col2 <= - col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8597
SELECT CAST( + SUM( ALL - - col1 ) AS SIGNED ) col2 FROM tab1
----
66

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8597
SELECT CAST ( + SUM ( ALL - - col1 ) AS INTEGER ) col2 FROM tab1
----
66

query I rowsort
SELECT ALL - col1 + 97 FROM tab2
----
20
30
46

onlyif mysql # aggregate syntax: 
query I rowsort label-8599
SELECT ALL - MAX( ALL 6 ) FROM tab2
----
-6

skipif mysql # not compatible
query I rowsort label-8599
SELECT ALL - MAX ( ALL 6 ) FROM tab2
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-8600
SELECT ALL - ( COUNT( * ) ) AS col0 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-8600
SELECT ALL - ( COUNT ( * ) ) AS col0 FROM tab0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8601
SELECT DISTINCT MIN( DISTINCT 79 ) FROM tab0
----
79

skipif mysql # not compatible
query I rowsort label-8601
SELECT DISTINCT MIN ( DISTINCT 79 ) FROM tab0
----
79

query I rowsort
SELECT DISTINCT ( col2 ) AS col1 FROM tab0 cor0
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-8603
SELECT ALL MAX( col2 ) AS col2 FROM tab0 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-8603
SELECT ALL MAX ( col2 ) AS col2 FROM tab0 AS cor0
----
99

query I rowsort
SELECT DISTINCT - 64 * - 84 FROM tab2 AS cor0
----
5376

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL >= - col2
----

query II rowsort
SELECT ALL col0 AS col1, col0 AS col0 FROM tab2
----
46
46
64
64
75
75

query II rowsort
SELECT + 36, - 50 AS col0 FROM tab2
----
36
-50
36
-50
36
-50

query I rowsort
SELECT + col0 * + ( 69 ) FROM tab1 AS cor0
----
3519
5865
6279

onlyif mysql # aggregate syntax: 
query I rowsort label-8609
SELECT ALL - MAX( col1 ) * - ( - + AVG ( 21 ) ) + 89 AS col1 FROM tab2 AS cor0 WHERE + col2 NOT BETWEEN NULL AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8609
SELECT ALL - MAX ( col1 ) * - ( - + AVG ( 21 ) ) + 89 AS col1 FROM tab2 AS cor0 WHERE + col2 NOT BETWEEN NULL AND NULL
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col2 + col1 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + 69 col1, + 85 * col1 AS col2 FROM tab0 AS cor0
----
69
1785
69
6885
69
85

query III rowsort
SELECT col1, - col1 AS col1, - - col2 * + + 39 FROM tab2 AS cor0
----
9 values hashing to 83b058781b3e1624f59e8d971a9dd6bc

query I rowsort
SELECT ALL + col2 * - 12 + + col1 AS col1 FROM tab1 AS cor0
----
-1138
-703
-769

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 59 IS NULL
----

query I rowsort
SELECT DISTINCT + - col1 AS col0 FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-8616
SELECT DISTINCT + col1 * - 59 AS col1, col0 DIV + 61 + + col1 * col2 AS col1 FROM tab1
----
-2773
3197
-295
296
-826
1344

skipif mysql # not compatible
query II rowsort label-8616
SELECT DISTINCT + col1 * - 59 AS col1, col0 / + 61 + + col1 * col2 AS col1 FROM tab1
----
-2773
3197
-295
296
-826
1344

query I rowsort
SELECT col1 * + 94 * col2 * col1 * + - 12 FROM tab2 WHERE NULL IS NULL
----
-267516480
-293688336
-67480344

onlyif mysql # aggregate syntax: 
query I rowsort label-8618
SELECT + - COUNT( * ) FROM tab2 WHERE NULL IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-8618
SELECT + - COUNT ( * ) FROM tab2 WHERE NULL IS NULL
----
-3

query I rowsort
SELECT - + col0 + - col1 + col2 * - + col0 AS col2 FROM tab1 AS cor0 WHERE - 16 < - 95 + col1 + - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8620
SELECT + 9 + + MAX( - col2 ) + + + 44 FROM tab1 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-8620
SELECT + 9 + + MAX ( - col2 ) + + + 44 FROM tab1 AS cor0
----
-6

query I rowsort
SELECT + 70 * - - col1 AS col2 FROM tab2
----
3570
4690
5390

query I rowsort
SELECT - 37 * - - col2 FROM tab2
----
-1480
-2146
-851

query I rowsort
SELECT + - ( - + 79 ) * - + col2 AS col0 FROM tab2 AS cor0
----
-1817
-3160
-4582

onlyif mysql # aggregate syntax: 
query I rowsort label-8624
SELECT - COUNT( * ) * + 73 AS col1 FROM tab0 AS cor0
----
-219

skipif mysql # not compatible
query I rowsort label-8624
SELECT - COUNT ( * ) * + 73 AS col1 FROM tab0 AS cor0
----
-219

query II rowsort
SELECT DISTINCT col0 AS col2, - col0 FROM tab2 AS cor0
----
46
-46
64
-64
75
-75

query I rowsort
SELECT DISTINCT + + 73 + - col1 FROM tab1 AS cor0
----
26
59
68

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - + col2 BETWEEN + col1 AND - col1 AND col0 IS NULL
----

query I rowsort
SELECT ALL + col2 * - + col1 AS col1 FROM tab1 AS cor0
----
-1344
-295
-3196

query I rowsort
SELECT col0 - ( - 20 ) * + col1 AS col0 FROM tab2 AS cor0
----
1066
1415
1604

query II rowsort
SELECT - 90, col1 FROM tab2 AS cor0
----
-90
51
-90
67
-90
77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8631
SELECT ALL + COUNT( * ) DIV + 35 AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-8631
SELECT ALL + COUNT ( * ) / + 35 AS col2 FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8632
SELECT + COUNT( * ) AS col1 FROM tab2 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-8632
SELECT + COUNT ( * ) AS col1 FROM tab2 WHERE NOT NULL IS NULL
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + - 51 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8634
SELECT * FROM tab0 WHERE NOT ( CAST( NULL AS SIGNED ) ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-8634
SELECT * FROM tab0 WHERE NOT ( CAST ( NULL AS INTEGER ) ) IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - 82 IS NOT NULL
----

query I rowsort
SELECT - col2 * - 45 FROM tab2
----
1035
1800
2610

query III rowsort
SELECT ALL * FROM tab2 WHERE - + col2 BETWEEN NULL AND - + col0
----

query I rowsort
SELECT 23 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE - 9 IS NOT NULL
----
9 values hashing to d94fadcc1c8cc4fc51b78b83e04795f2

onlyif mysql # aggregate syntax: 
query II rowsort label-8639
SELECT ALL + COUNT( * ) AS col2, - COUNT( * ) AS col2 FROM tab2 AS cor0
----
3
-3

skipif mysql # not compatible
query II rowsort label-8639
SELECT ALL + COUNT ( * ) AS col2, - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
3
-3

query I rowsort
SELECT ALL - + 62 AS col2 FROM tab0 cor0
----
-62
-62
-62

query I rowsort
SELECT ALL - - 41 + col1 * - col2 AS col2 FROM tab2 AS cor0
----
-1132
-3039
-3845

query I rowsort
SELECT ALL + col1 * - - 16 + - col1 + + col1 AS col0 FROM tab1 AS cor0
----
224
752
80

query I rowsort
SELECT 80 + col1 + col0 AS col0 FROM tab0
----
176
178
188

query I rowsort
SELECT 87 * col0 + + - 91 + col2 AS col2 FROM tab0
----
1261
7488
8447

query III rowsort
SELECT * FROM tab0 WHERE - + col2 + col0 + + col1 IS NULL
----

query I rowsort
SELECT ALL + col1 * - + col1 FROM tab1 WHERE NOT - col2 NOT IN ( - col1, - 79, - + col1 )
----

query I rowsort
SELECT col2 * 42 + - 70 FROM tab0
----
1904
350
4088

query II rowsort
SELECT + col1 + col2, - col1 AS col0 FROM tab1
----
110
-14
115
-47
64
-5

query I rowsort
SELECT 18 + 57 * - col2 FROM tab2
----
-1293
-2262
-3288

onlyif mysql # DIV for integer division: 
query I rowsort label-8650
SELECT col1 DIV - col0 - - + col1 + + col0 AS col2 FROM tab1 AS cor0
----
138
65
90

skipif mysql # not compatible
query I rowsort label-8650
SELECT col1 / - col0 - - + col1 + + col0 AS col2 FROM tab1 AS cor0
----
138
65
90

query I rowsort
SELECT ALL 81 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 7a8ea30c6803aeddc5fca5b5821d8267

onlyif mysql # DIV for integer division: 
query II rowsort label-8652
SELECT col2 DIV + + 99 col1, 17 col2 FROM tab2 AS cor0
----
0
17
0
17
0
17

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8652
SELECT col2 / + + 99 col1, 17 col2 FROM tab2 AS cor0
----
0
17
0
17
0
17

query I rowsort
SELECT DISTINCT + 15 * - + 82 FROM tab0 AS cor0
----
-1230

onlyif mysql # DIV for integer division: 
query I rowsort label-8654
SELECT ALL 19 DIV + - 80 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8654
SELECT ALL 19 / + - 80 FROM tab2
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 68 col2 FROM tab0
----
-68
-68
-68

query II rowsort
SELECT + col1, - col1 FROM tab2
----
51
-51
67
-67
77
-77

query II rowsort
SELECT - 58, - col2 AS col0 FROM tab0
----
-58
-10
-58
-47
-58
-99

query I rowsort
SELECT ( + - col1 ) FROM tab1 WHERE NOT NULL <= + + col0 - + 18 * + col2
----

query II rowsort
SELECT - 75, 80 AS col0 FROM tab1
----
-75
80
-75
80
-75
80

onlyif mysql # aggregate syntax: 
query I rowsort label-8660
SELECT ALL - MIN( DISTINCT - col1 ) AS col2 FROM tab0
----
81

skipif mysql # not compatible
query I rowsort label-8660
SELECT ALL - MIN ( DISTINCT - col1 ) AS col2 FROM tab0
----
81

query II rowsort
SELECT ALL col1 * + ( - + col2 ) AS col1, - col0 AS col2 FROM tab1 cor0
----
-1344
-51
-295
-85
-3196
-91

query I rowsort
SELECT DISTINCT - 14 * - col2 AS col1 FROM tab0 AS cor0
----
1386
140
658

query I rowsort
SELECT - col0 * 52 AS col0 FROM tab2 AS cor0
----
-2392
-3328
-3900

onlyif mysql # aggregate syntax: 
query I rowsort label-8664
SELECT ALL ( - + COUNT( * ) ) FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-8664
SELECT ALL ( - + COUNT ( * ) ) FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8665
SELECT ALL + ( + - col1 ) col0, - CAST( - + col0 AS SIGNED ) * + col0 col2 FROM tab2
----
-51
2116
-67
5625
-77
4096

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8665
SELECT ALL + ( + - col1 ) col0, - CAST ( - + col0 AS INTEGER ) * + col0 col2 FROM tab2
----
-51
2116
-67
5625
-77
4096

query I rowsort
SELECT col2 + + + 9 AS col2 FROM tab0 AS cor0
----
108
19
56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8667
SELECT + col1 + - col0 * - CAST( col0 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
306
7590
9410

skipif mysql # not compatible
query I rowsort label-8667
SELECT + col1 + - col0 * - CAST ( col0 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
306
7590
9410

onlyif mysql # aggregate syntax: 
query I rowsort label-8668
SELECT MIN( ALL col2 ) FROM tab2 cor0
----
23

skipif mysql # not compatible
query I rowsort label-8668
SELECT MIN ( ALL col2 ) FROM tab2 cor0
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-8669
SELECT + + ( + COUNT( * ) ) col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8669
SELECT + + ( + COUNT ( * ) ) col0 FROM tab2 AS cor0
----
3

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NULL BETWEEN col0 * + col0 AND + col1
----

query I rowsort
SELECT - - col2 AS col2 FROM tab0 AS cor0 WHERE - col2 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 * + 90 + + - col0 col2, ( - ( col1 ) ) * 17 * + col1 AS col2 FROM tab1
----
1209
-3332
365
-425
4139
-37553

onlyif mysql # aggregate syntax: 
query II rowsort label-8673
SELECT COUNT( + - col0 ) AS col0, - 7 AS col2 FROM tab0 WHERE - 57 IS NOT NULL
----
3
-7

skipif mysql # not compatible
query II rowsort label-8673
SELECT COUNT ( + - col0 ) AS col0, - 7 AS col2 FROM tab0 WHERE - 57 IS NOT NULL
----
3
-7

query I rowsort
SELECT ALL - col2 * + col2 * - - col1 FROM tab1
----
-129024
-17405
-217328

query I rowsort
SELECT ALL + ( 59 ) FROM tab0
----
59
59
59

query I rowsort
SELECT + col2 + + 19 FROM tab2 AS cor0
----
42
59
77

onlyif mysql # aggregate syntax: 
query I rowsort label-8677
SELECT + COUNT( * ) + 50 FROM tab1 AS cor0
----
53

skipif mysql # not compatible
query I rowsort label-8677
SELECT + COUNT ( * ) + 50 FROM tab1 AS cor0
----
53

query II rowsort
SELECT DISTINCT + col0 + + ( - col2 ), 31 AS col1 FROM tab1 AS cor0
----
-45
31
23
31
26
31

query I rowsort
SELECT DISTINCT col2 AS col1 FROM tab1 AS cor0 WHERE NOT NULL <= + col1
----

query I rowsort
SELECT DISTINCT - col1 + + 61 FROM tab1 cor0
----
14
47
56

onlyif mysql # aggregate syntax: 
query I rowsort label-8681
SELECT 86 * + COUNT( * ) AS col0 FROM tab1
----
258

skipif mysql # not compatible
query I rowsort label-8681
SELECT 86 * + COUNT ( * ) AS col0 FROM tab1
----
258

onlyif mysql # aggregate syntax: 
query I rowsort label-8682
SELECT ALL - ( - ( + COUNT( * ) ) ) FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9

skipif mysql # not compatible
query I rowsort label-8682
SELECT ALL - ( - ( + COUNT ( * ) ) ) FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9

query I rowsort
SELECT + + col1 * - 48 * + col2 FROM tab1 AS cor0
----
-14160
-153408
-64512

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 72 col2 FROM tab1 AS cor0 WHERE ( NOT NULL IN ( - - col1, + 79, + + 99, + + col2 / - + col2 ) )
----

query I rowsort
SELECT col2 * + col2 + + - col0 * col0 AS col0 FROM tab1 AS cor0 WHERE NOT + col1 > NULL
----

query I rowsort
SELECT col1 * + 25 AS col2 FROM tab2 AS cor0
----
1275
1675
1925

query I rowsort
SELECT - 30 * col0 + - col1 * + - ( - col0 ) + - col1 AS col2 FROM tab0 AS cor0
----
-1746
-3008
-4458

onlyif mysql # aggregate syntax: 
query I rowsort label-8688
SELECT DISTINCT MIN( col2 ) AS col2 FROM tab2 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-8688
SELECT DISTINCT MIN ( col2 ) AS col2 FROM tab2 AS cor0
----
23

onlyif mysql # DIV for integer division: 
query I rowsort label-8689
SELECT + + 96 + 28 DIV - ( - + 62 ) * - 89 FROM tab0 AS cor0 WHERE NOT 91 - 87 IS NULL
----
96
96
96

skipif mysql # not compatible
query I rowsort label-8689
SELECT + + 96 + 28 / - ( - + 62 ) * - 89 FROM tab0 AS cor0 WHERE NOT 91 - 87 IS NULL
----
96
96
96

onlyif mysql # aggregate syntax: 
query II rowsort label-8690
SELECT DISTINCT - 24, + COUNT( * ) AS col0 FROM tab2 AS cor0
----
-24
3

skipif mysql # not compatible
query II rowsort label-8690
SELECT DISTINCT - 24, + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-24
3

query I rowsort
SELECT - col2 AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + 81 + - + col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8693
SELECT COUNT( CAST( NULL AS DECIMAL ) ) FROM tab2 AS cor0 WHERE NOT col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-8693
SELECT COUNT ( CAST ( NULL AS REAL ) ) FROM tab2 AS cor0 WHERE NOT col1 IS NULL
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8694
SELECT DISTINCT + COUNT( ALL - 70 ), - 56 AS col0 FROM tab2
----
3
-56

skipif mysql # not compatible
query II rowsort label-8694
SELECT DISTINCT + COUNT ( ALL - 70 ), - 56 AS col0 FROM tab2
----
3
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-8695
SELECT DISTINCT 64 * + COUNT( * ) AS col1 FROM tab1
----
192

skipif mysql # not compatible
query I rowsort label-8695
SELECT DISTINCT 64 * + COUNT ( * ) AS col1 FROM tab1
----
192

query I rowsort
SELECT - col2 * - - 70 FROM tab1
----
-4130
-4760
-6720

query II rowsort
SELECT + 96 * + - col1, + col1 FROM tab1
----
-1344
14
-4512
47
-480
5

query II rowsort
SELECT ( - col1 ) AS col0, col1 AS col2 FROM tab1
----
-14
14
-47
47
-5
5

onlyif mysql # aggregate syntax: 
query I rowsort label-8699
SELECT DISTINCT + ( COUNT( * ) ) * ( 39 ) + + SUM( ALL col2 ) FROM tab2
----
238

skipif mysql # not compatible
query I rowsort label-8699
SELECT DISTINCT + ( COUNT ( * ) ) * ( 39 ) + + SUM ( ALL col2 ) FROM tab2
----
238

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8700
SELECT ALL - 43 * - CAST( NULL AS SIGNED ) * + COUNT( * ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8700
SELECT ALL - 43 * - CAST ( NULL AS INTEGER ) * + COUNT ( * ) FROM tab0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8701
SELECT + + col2 * - - CAST( col2 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
1600
3364
529

skipif mysql # not compatible
query I rowsort label-8701
SELECT + + col2 * - - CAST ( col2 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
1600
3364
529

onlyif mysql # aggregate syntax: 
query I rowsort label-8702
SELECT DISTINCT MIN( - ( + + 26 ) ) FROM tab1 AS cor0
----
-26

skipif mysql # not compatible
query I rowsort label-8702
SELECT DISTINCT MIN ( - ( + + 26 ) ) FROM tab1 AS cor0
----
-26

query I rowsort
SELECT col0 * + 17 * 9 AS col0 FROM tab0
----
13311
14841
2295

onlyif mysql # DIV for integer division: 
query I rowsort label-8704
SELECT col1 DIV + 56 AS col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8704
SELECT col1 / + 56 AS col2 FROM tab1
----
0
0
0

query I rowsort
SELECT DISTINCT col1 + 29 FROM tab1
----
34
43
76

onlyif mysql # aggregate syntax: 
query I rowsort label-8706
SELECT DISTINCT - MAX( DISTINCT - col2 ) FROM tab1 WHERE NOT - + col0 + + 2 >= + col0 * - 84 + + - col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8706
SELECT DISTINCT - MAX ( DISTINCT - col2 ) FROM tab1 WHERE NOT - + col0 + + 2 >= + col0 * - 84 + + - col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8707
SELECT + 21 DIV - 13 AS col2 FROM tab1 cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-8707
SELECT + 21 / - 13 AS col2 FROM tab1 cor0
----
-1
-1
-1

query I rowsort
SELECT DISTINCT col0 + - col0 + - 91 AS col1 FROM tab0 AS cor0 WHERE NOT - 5 * 80 + - col0 + + 18 IN ( + col2, - col0 * - col1, col2 )
----
-91

query I rowsort
SELECT - col0 + - - 31 AS col0 FROM tab2 AS cor0
----
-15
-33
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-8710
SELECT + COUNT( * ) * + + 20 FROM tab0 AS cor0 WHERE 93 + 23 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-8710
SELECT + COUNT ( * ) * + + 20 FROM tab0 AS cor0 WHERE 93 + 23 IS NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 85 col2 FROM tab2 AS cor0 WHERE + 88 IS NULL
----

query I rowsort
SELECT - 94 AS col2 FROM tab1 cor0 WHERE NULL IS NULL
----
-94
-94
-94

query III rowsort
SELECT ALL * FROM tab0 WHERE + 72 * + col2 * ( 94 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8714
SELECT ALL 67 + + COUNT( * ) * - COUNT( * ) * + 78 AS col1 FROM tab2
----
-635

skipif mysql # not compatible
query I rowsort label-8714
SELECT ALL 67 + + COUNT ( * ) * - COUNT ( * ) * + 78 AS col1 FROM tab2
----
-635

onlyif mysql # aggregate syntax: 
query I rowsort label-8715
SELECT + 16 + - + COUNT( DISTINCT + - col0 ) FROM tab1
----
13

skipif mysql # not compatible
query I rowsort label-8715
SELECT + 16 + - + COUNT ( DISTINCT + - col0 ) FROM tab1
----
13

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + col2 + - 53 IS NOT NULL
----

query I rowsort
SELECT 61 + - + 59 FROM tab0
----
2
2
2

onlyif mysql # aggregate syntax: 
query I rowsort label-8718
SELECT ALL - 62 * - COUNT( * ) FROM tab0
----
186

skipif mysql # not compatible
query I rowsort label-8718
SELECT ALL - 62 * - COUNT ( * ) FROM tab0
----
186

query I rowsort
SELECT DISTINCT + 73 + 85 + + - col2 - + col0 * - 86 + + col1 FROM tab0 AS cor0
----
1482
7651
8402

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col2 / - - col2 > - 61
----

query II rowsort
SELECT - col1 AS col0, 12 AS col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-51
12
-67
12
-77
12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8722
SELECT CAST( NULL AS SIGNED ) - - col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8722
SELECT CAST ( NULL AS INTEGER ) - - col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 43 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 199105619049271147956de52e7f5ed4

query I rowsort
SELECT DISTINCT + col1 * - - col2 FROM tab1
----
1344
295
3196

query I rowsort
SELECT DISTINCT col2 * + 28 AS col2 FROM tab1
----
1652
1904
2688

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-8726
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query IIIIII rowsort label-8726
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT CAST ( NULL AS INTEGER ) IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8727
SELECT DISTINCT + 23 DIV + ( - col2 ) col2 FROM tab2 AS cor0
----
-1
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8727
SELECT DISTINCT + 23 / + ( - col2 ) col2 FROM tab2 AS cor0
----
-1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8728
SELECT ALL + + MIN( 81 ) AS col2 FROM tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-8728
SELECT ALL + + MIN ( 81 ) AS col2 FROM tab0 AS cor0
----
81

query I rowsort
SELECT DISTINCT 58 AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) > - 7
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8730
SELECT - MAX( - 69 ) * + ( - - COUNT( * ) ) + - - 30 AS col0 FROM tab1 AS cor0
----
237

skipif mysql # not compatible
query I rowsort label-8730
SELECT - MAX ( - 69 ) * + ( - - COUNT ( * ) ) + - - 30 AS col0 FROM tab1 AS cor0
----
237

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8731
SELECT DISTINCT + - ( - CAST( + col1 AS SIGNED ) ) AS col1 FROM tab2 AS cor0
----
51
67
77

skipif mysql # not compatible
query I rowsort label-8731
SELECT DISTINCT + - ( - CAST ( + col1 AS INTEGER ) ) AS col1 FROM tab2 AS cor0
----
51
67
77

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8732
SELECT + 92 * - - col2 + + CAST( NULL AS DECIMAL ) + 65 * - 2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8732
SELECT + 92 * - - col2 + + CAST ( NULL AS REAL ) + 65 * - 2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8733
SELECT + - col0 DIV 2 * - col1 * + col2 AS col0 FROM tab1 AS cor0
----
12390
143820
33600

skipif mysql # not compatible
query I rowsort label-8733
SELECT + - col0 / 2 * - col1 * + col2 AS col0 FROM tab1 AS cor0
----
12390
143820
33600

query I rowsort
SELECT + col1 * + col2 * - col2 FROM tab2
----
-123200
-225388
-26979

onlyif mysql # aggregate syntax: 
query I rowsort label-8735
SELECT ALL COUNT( ALL - col0 ) * - 37 - - + SUM( ALL - col0 ) FROM tab0
----
-310

skipif mysql # not compatible
query I rowsort label-8735
SELECT ALL COUNT ( ALL - col0 ) * - 37 - - + SUM ( ALL - col0 ) FROM tab0
----
-310

query I rowsort
SELECT DISTINCT + - col2 AS col1 FROM tab2 WHERE - col0 IS NOT NULL
----
-23
-40
-58

query I rowsort
SELECT + 53 * 13 AS col2 FROM tab0
----
689
689
689

query III rowsort
SELECT * FROM tab1 WHERE NOT ( - + col0 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab1 WHERE + - 81 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8740
SELECT DISTINCT - col0 DIV + + col0 col2 FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8740
SELECT DISTINCT - col0 / + + col0 col2 FROM tab1 AS cor0
----
-1

query I rowsort
SELECT DISTINCT - col0 * + col2 + + col0 AS col1 FROM tab2 cor0
----
-1012
-2496
-4275

query I rowsort
SELECT - - 20 * - col1 FROM tab0 AS cor0
----
-1620
-20
-420

onlyif mysql # aggregate syntax: 
query II rowsort label-8743
SELECT - COUNT( * ) AS col0, - 33 col0 FROM tab0 AS cor0
----
-3
-33

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8743
SELECT - COUNT ( * ) AS col0, - 33 col0 FROM tab0 AS cor0
----
-3
-33

query I rowsort
SELECT DISTINCT col2 * + - col1 AS col1 FROM tab2
----
-1173
-3080
-3886

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE - 68 <> NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 41 col1 FROM tab1 AS cor0
----
41
41
41

query II rowsort
SELECT - col1 * - - col0 AS col2, 28 FROM tab0 AS cor0
----
-1215
28
-1827
28
-97
28

query I rowsort
SELECT + 64 AS col2 FROM tab0 cor0
----
64
64
64

query II rowsort
SELECT ALL + col1, - col2 AS col1 FROM tab1 AS cor0 WHERE - col2 <> NULL
----

query I rowsort
SELECT DISTINCT - 76 + - - col1 AS col2 FROM tab0
----
-55
-75
5

query I rowsort
SELECT ALL - col2 - + col2 AS col0 FROM tab2
----
-116
-46
-80

query III rowsort
SELECT * FROM tab1 WHERE NULL IN ( + 33 )
----

query I rowsort
SELECT ( 31 ) * + col2 + + - col0 + 13 AS col0 FROM tab0
----
1455
236
2985

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 46 col1 FROM tab2
----
46
46
46

onlyif mysql # DIV for integer division: 
query I rowsort label-8755
SELECT 1 DIV - col0 * col2 + - 42 AS col2 FROM tab1 AS cor0
----
-42
-42
-42

skipif mysql # not compatible
query I rowsort label-8755
SELECT 1 / - col0 * col2 + - 42 AS col2 FROM tab1 AS cor0
----
-42
-42
-42

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL <= 57 - + col0
----

query II rowsort
SELECT DISTINCT 89 AS col0, + 96 AS col0 FROM tab0 AS cor0
----
89
96

query I rowsort
SELECT 53 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to fede6033dee346dbd272085c05724fda

query I rowsort
SELECT + 85 * - + 41 AS col1 FROM tab1
----
-3485
-3485
-3485

query I rowsort
SELECT DISTINCT ( + 6 ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8761
SELECT ALL SUM( - + col1 ) AS col0, 36 AS col2 FROM tab1
----
-66
36

skipif mysql # not compatible
query II rowsort label-8761
SELECT ALL SUM ( - + col1 ) AS col0, 36 AS col2 FROM tab1
----
-66
36

query I rowsort
SELECT + col0 * - - col2 FROM tab2
----
1058
2560
4350

query I rowsort
SELECT DISTINCT ( - 97 ) FROM tab1 AS cor0
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-8764
SELECT ALL - MAX( ALL col2 ) AS col2 FROM tab0 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-8764
SELECT ALL - MAX ( ALL col2 ) AS col2 FROM tab0 AS cor0
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-8765
SELECT DISTINCT + + MIN( ALL + col1 ) col2 FROM tab1 AS cor0 WHERE NOT + 56 IS NULL
----
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8765
SELECT DISTINCT + + MIN ( ALL + col1 ) col2 FROM tab1 AS cor0 WHERE NOT + 56 IS NULL
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-8766
SELECT DISTINCT - MAX( + 94 ) AS col0 FROM tab2 AS cor0
----
-94

skipif mysql # not compatible
query I rowsort label-8766
SELECT DISTINCT - MAX ( + 94 ) AS col0 FROM tab2 AS cor0
----
-94

query I rowsort
SELECT 14 * 87 FROM tab2
----
1218
1218
1218

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8768
SELECT * FROM tab2 WHERE NOT CAST( ( ( + col1 ) ) AS SIGNED ) + - col2 - - + 12 * - col1 * + ( + - col1 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-8768
SELECT * FROM tab2 WHERE NOT CAST ( ( ( + col1 ) ) AS INTEGER ) + - col2 - - + 12 * - col1 * + ( + - col1 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ( ( - - col2 ) ) * - - 46 AS col1 FROM tab2
----
1058
1840
2668

query I rowsort
SELECT ALL - col1 * + - ( + col0 ) FROM tab1
----
425
4277
714

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + col0 + - 83 * - ( - col0 ) col0 FROM tab2 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT + col0 * + + col0 + - col0 FROM tab0
----
210
7482
9312

query II rowsort
SELECT col1 * - col0 + + col2, 82 AS col2 FROM tab2
----
-2323
82
-4888
82
-4967
82

query I rowsort
SELECT + col2 + - + 84 * - + col0 AS col2 FROM tab2
----
3887
5416
6358

onlyif mysql # aggregate syntax: 
query I rowsort label-8775
SELECT ALL + 83 * COUNT( * ) - COUNT( ALL col1 ) AS col2 FROM tab2 WHERE - 4 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-8775
SELECT ALL + 83 * COUNT ( * ) - COUNT ( ALL col1 ) AS col2 FROM tab2 WHERE - 4 IS NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8776
SELECT col2 DIV - - col0 + - + 8 + CAST( + col0 AS SIGNED ) * - 0 * + - 74 FROM tab1 AS cor0
----
-7
-8
-8

skipif mysql # not compatible
query I rowsort label-8776
SELECT col2 / - - col0 + - + 8 + CAST ( + col0 AS INTEGER ) * - 0 * + - 74 FROM tab1 AS cor0
----
-7
-8
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-8777
SELECT - - COUNT( * ) + + COUNT( * ) FROM tab2 cor0
----
6

skipif mysql # not compatible
query I rowsort label-8777
SELECT - - COUNT ( * ) + + COUNT ( * ) FROM tab2 cor0
----
6

query II rowsort
SELECT + 26 AS col1, col0 AS col2 FROM tab2 cor0 WHERE ( NULL ) = - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8779
SELECT ALL + CAST( NULL AS SIGNED ) + + 33 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8779
SELECT ALL + CAST ( NULL AS INTEGER ) + + 33 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 WHERE - 34 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8781
SELECT + MIN( + + 12 ) FROM tab0
----
12

skipif mysql # not compatible
query I rowsort label-8781
SELECT + MIN ( + + 12 ) FROM tab0
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-8782
SELECT DISTINCT + COUNT( * ) AS col0 FROM tab0 WHERE NOT - 5 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-8782
SELECT DISTINCT + COUNT ( * ) AS col0 FROM tab0 WHERE NOT - 5 IS NOT NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8783
SELECT col0 DIV + + 99 + + col0 FROM tab2 cor0 WHERE NOT col2 < col2
----
46
64
75

skipif mysql # not compatible
query I rowsort label-8783
SELECT col0 / + + 99 + + col0 FROM tab2 cor0 WHERE NOT col2 < col2
----
46
64
75

query II rowsort
SELECT ALL col0 AS col2, 82 FROM tab2
----
46
82
64
82
75
82

onlyif mysql # aggregate syntax: 
query I rowsort label-8785
SELECT - SUM( 65 ) AS col2 FROM tab0 AS cor0
----
-195

skipif mysql # not compatible
query I rowsort label-8785
SELECT - SUM ( 65 ) AS col2 FROM tab0 AS cor0
----
-195

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8786
SELECT - COUNT( ALL - CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0 WHERE NOT 96 < 91
----
0

skipif mysql # not compatible
query I rowsort label-8786
SELECT - COUNT ( ALL - CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0 WHERE NOT 96 < 91
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8787
SELECT DISTINCT + COUNT( ALL + col0 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8787
SELECT DISTINCT + COUNT ( ALL + col0 ) FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8788
SELECT DISTINCT SUM( - - col1 ) AS col1 FROM tab0 AS cor0
----
103

skipif mysql # not compatible
query I rowsort label-8788
SELECT DISTINCT SUM ( - - col1 ) AS col1 FROM tab0 AS cor0
----
103

onlyif mysql # aggregate syntax: 
query I rowsort label-8789
SELECT + MIN( - + ( col0 ) ) FROM tab1 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-8789
SELECT + MIN ( - + ( col0 ) ) FROM tab1 AS cor0
----
-91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8790
SELECT + 44 DIV COUNT( + 94 ) AS col1 FROM tab0 AS cor0
----
14

skipif mysql # not compatible
query I rowsort label-8790
SELECT + 44 / COUNT ( + 94 ) AS col1 FROM tab0 AS cor0
----
14

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8791
SELECT DISTINCT + CAST( NULL AS SIGNED ), col2 FROM tab1 AS cor0
----
NULL
59
NULL
68
NULL
96

skipif mysql # not compatible
query II rowsort label-8791
SELECT DISTINCT + CAST ( NULL AS INTEGER ), col2 FROM tab1 AS cor0
----
NULL
59
NULL
68
NULL
96

onlyif mysql # aggregate syntax: 
query I rowsort label-8792
SELECT DISTINCT - - COUNT( * ) + + 83 FROM tab2 AS cor0
----
86

skipif mysql # not compatible
query I rowsort label-8792
SELECT DISTINCT - - COUNT ( * ) + + 83 FROM tab2 AS cor0
----
86

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + 8 <> NULL
----

query II rowsort
SELECT col1 * + + col0 AS col1, + col0 AS col2 FROM tab1
----
425
85
4277
91
714
51

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - 36 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8796
SELECT MIN( DISTINCT - col1 ) * 94 FROM tab2
----
-7238

skipif mysql # not compatible
query I rowsort label-8796
SELECT MIN ( DISTINCT - col1 ) * 94 FROM tab2
----
-7238

query I rowsort
SELECT 32 * - ( + - col0 ) AS col1 FROM tab2
----
1472
2048
2400

onlyif mysql # aggregate syntax: 
query I rowsort label-8798
SELECT ALL + - 9 + - COUNT( * ) FROM tab1 WHERE NULL <> - 67
----
-9

skipif mysql # not compatible
query I rowsort label-8798
SELECT ALL + - 9 + - COUNT ( * ) FROM tab1 WHERE NULL <> - 67
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-8799
SELECT 50 * - + COUNT( * ) * + 98 AS col1 FROM tab2
----
-14700

skipif mysql # not compatible
query I rowsort label-8799
SELECT 50 * - + COUNT ( * ) * + 98 AS col1 FROM tab2
----
-14700

onlyif mysql # aggregate syntax: 
query I rowsort label-8800
SELECT DISTINCT COUNT( * ) + - COUNT( * ) FROM tab0 WHERE col1 <> - ( 46 )
----
0

skipif mysql # not compatible
query I rowsort label-8800
SELECT DISTINCT COUNT ( * ) + - COUNT ( * ) FROM tab0 WHERE col1 <> - ( 46 )
----
0

query I rowsort
SELECT DISTINCT - - col0 + - - col0 FROM tab2 AS cor0
----
128
150
92

query I rowsort
SELECT - - ( 65 ) + 25 AS col1 FROM tab2 AS cor0
----
90
90
90

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8803
SELECT DISTINCT CAST( NULL AS DECIMAL ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-8803
SELECT DISTINCT CAST ( NULL AS REAL ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8804
SELECT * FROM tab0 WHERE ( - CAST( NULL AS SIGNED ) / 93 * + col2 - col0 * - 84 > + 71 )
----

skipif mysql # not compatible
query III rowsort label-8804
SELECT * FROM tab0 WHERE ( - CAST ( NULL AS INTEGER ) / 93 * + col2 - col0 * - 84 > + 71 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - + col2 col0 FROM tab2 AS cor0
----
-1173
-3080
-3886

query I rowsort
SELECT ALL + 71 * - 8 FROM tab1 AS cor0
----
-568
-568
-568

onlyif mysql # aggregate syntax: 
query I rowsort label-8807
SELECT DISTINCT - 91 + - COUNT( * ) AS col2 FROM tab2 AS cor0
----
-94

skipif mysql # not compatible
query I rowsort label-8807
SELECT DISTINCT - 91 + - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8808
SELECT + + CAST( NULL AS SIGNED ) / - MAX( ALL - 74 ) FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8808
SELECT + + CAST ( NULL AS INTEGER ) / - MAX ( ALL - 74 ) FROM tab1 cor0
----
NULL

query I rowsort
SELECT ALL col1 * col0 * + col0 * - col2 * + + 35 AS col0 FROM tab0 AS cor0
----
-29980125
-32602185
-55632150

query I rowsort
SELECT - 31 * - col2 FROM tab2 AS cor0
----
1240
1798
713

onlyif mysql # aggregate syntax: 
query I rowsort label-8811
SELECT DISTINCT - + 12 + - + COUNT( * ) AS col1 FROM tab2 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-8811
SELECT DISTINCT - + 12 + - + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-15

onlyif mysql # DIV for integer division: 
query I rowsort label-8812
SELECT + - 51 DIV 43 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-8812
SELECT + - 51 / 43 FROM tab2 AS cor0
----
-1
-1
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8813
SELECT + 39 - + + CAST( - col2 AS SIGNED ) + 30 FROM tab0 AS cor0
----
116
168
79

skipif mysql # not compatible
query I rowsort label-8813
SELECT + 39 - + + CAST ( - col2 AS INTEGER ) + 30 FROM tab0 AS cor0
----
116
168
79

query I rowsort
SELECT - + col2 - + 16 FROM tab2 cor0
----
-39
-56
-74

query I rowsort
SELECT ALL + col2 + 69 * + - col1 FROM tab1 AS cor0
----
-286
-3175
-870

onlyif mysql # aggregate syntax: 
query I rowsort label-8816
SELECT COUNT( * ) - - + 53 AS col1 FROM tab0 AS cor0
----
56

skipif mysql # not compatible
query I rowsort label-8816
SELECT COUNT ( * ) - - + 53 AS col1 FROM tab0 AS cor0
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-8817
SELECT COUNT( * ) - - SUM( - 68 ) - 6 + + ( 6 ) AS col2 FROM tab2 AS cor0
----
-201

skipif mysql # not compatible
query I rowsort label-8817
SELECT COUNT ( * ) - - SUM ( - 68 ) - 6 + + ( 6 ) AS col2 FROM tab2 AS cor0
----
-201

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col2 - - + col2 <= + + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8819
SELECT SUM( DISTINCT 19 ) AS col0 FROM tab2
----
19

skipif mysql # not compatible
query I rowsort label-8819
SELECT SUM ( DISTINCT 19 ) AS col0 FROM tab2
----
19

query I rowsort
SELECT DISTINCT 72 * 11 * + - 84 AS col0 FROM tab0
----
-66528

onlyif mysql # aggregate syntax: 
query I rowsort label-8821
SELECT ( + SUM( DISTINCT - ( - - col1 ) ) ) col0 FROM tab1
----
-66

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8821
SELECT ( + SUM ( DISTINCT - ( - - col1 ) ) ) col0 FROM tab1
----
-66

query II rowsort
SELECT DISTINCT - col0 AS col0, + col1 * + col0 AS col1 FROM tab2
----
-46
2346
-64
4928
-75
5025

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 44 col1, col2 AS col1 FROM tab2
----
-44
23
-44
40
-44
58

query II rowsort
SELECT DISTINCT 56, 30 AS col1 FROM tab0
----
56
30

query I rowsort
SELECT 71 * + col1 AS col1 FROM tab2
----
3621
4757
5467

onlyif mysql # aggregate syntax: 
query I rowsort label-8826
SELECT + + SUM( 98 ) * - COUNT( * ) AS col1 FROM tab2 AS cor0
----
-882

skipif mysql # not compatible
query I rowsort label-8826
SELECT + + SUM ( 98 ) * - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-882

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8827
SELECT ALL COUNT( ALL - - 84 ) DIV - - COUNT( * ) FROM tab0 cor0
----
1

skipif mysql # not compatible
query I rowsort label-8827
SELECT ALL COUNT ( ALL - - 84 ) / - - COUNT ( * ) FROM tab0 cor0
----
1

query I rowsort
SELECT ALL - col0 * - + col2 AS col2 FROM tab2
----
1058
2560
4350

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8829
SELECT - CAST( NULL AS SIGNED ) + - COUNT( * ) AS col1 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-8829
SELECT - CAST ( NULL AS INTEGER ) + - COUNT ( * ) AS col1 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8830
SELECT + COUNT( * ) * + + COUNT( * ) FROM tab1
----
9

skipif mysql # not compatible
query I rowsort label-8830
SELECT + COUNT ( * ) * + + COUNT ( * ) FROM tab1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-8831
SELECT SUM( - + col0 ) FROM tab0 AS cor0
----
-199

skipif mysql # not compatible
query I rowsort label-8831
SELECT SUM ( - + col0 ) FROM tab0 AS cor0
----
-199

onlyif mysql # aggregate syntax: 
query I rowsort label-8832
SELECT + MIN( col1 ) col1 FROM tab2 AS cor0
----
51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8832
SELECT + MIN ( col1 ) col1 FROM tab2 AS cor0
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-8833
SELECT ALL COUNT( DISTINCT 55 ) * COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE NOT 64 NOT BETWEEN 79 AND col0 * + + col0
----
0

skipif mysql # not compatible
query I rowsort label-8833
SELECT ALL COUNT ( DISTINCT 55 ) * COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE NOT 64 NOT BETWEEN 79 AND col0 * + + col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8834
SELECT DISTINCT ( + CAST( + 78 AS SIGNED ) ) AS col2, - 5 AS col1 FROM tab0 cor0
----
78
-5

skipif mysql # not compatible
query II rowsort label-8834
SELECT DISTINCT ( + CAST ( + 78 AS INTEGER ) ) AS col2, - 5 AS col1 FROM tab0 cor0
----
78
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-8835
SELECT DISTINCT ( + 54 ) / - + ( MAX( ALL 12 ) ) AS col0 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8835
SELECT DISTINCT ( + 54 ) / - + ( MAX ( ALL 12 ) ) AS col0 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
NULL

query I rowsort
SELECT + 0 + + 40 FROM tab1 cor0 WHERE NOT + col2 + + 59 * col0 * col2 IS NULL
----
40
40
40

query I rowsort
SELECT DISTINCT + 4 + - col1 * col0 AS col2 FROM tab0 AS cor0
----
-1211
-1823
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-8838
SELECT ALL + MAX( ALL - + 37 ) col2 FROM tab1
----
-37

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8838
SELECT ALL + MAX ( ALL - + 37 ) col2 FROM tab1
----
-37

query I rowsort
SELECT + col2 + 83 + 23 * - col2 FROM tab0
----
-137
-2095
-951

query II rowsort
SELECT ALL + col2, 80 AS col1 FROM tab1
----
59
80
68
80
96
80

query II rowsort
SELECT DISTINCT col2 AS col2, col0 AS col2 FROM tab1
----
59
85
68
91
96
51

query I rowsort
SELECT ALL 24 AS col0 FROM tab0 cor0
----
24
24
24

query I rowsort
SELECT DISTINCT + + 9 FROM tab1 AS cor0 WHERE col2 IS NOT NULL
----
9

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col0 + + col0 * - + col2 * + - 96 IS NULL
----

query I rowsort
SELECT ALL ( col1 ) * 68 FROM tab2
----
3468
4556
5236

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NULL ) > col0 * + col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8847
SELECT col1 DIV + 33 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-8847
SELECT col1 / + 33 FROM tab1
----
0
0
1

onlyif mysql # DIV for integer division: 
query I rowsort label-8848
SELECT + 95 DIV - 65 AS col1 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-8848
SELECT + 95 / - 65 AS col1 FROM tab2
----
-1
-1
-1

query I rowsort
SELECT col0 + col1 FROM tab2 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT col2 FROM tab0 WHERE NULL IS NULL
----
10
47
99

query III rowsort
SELECT * FROM tab1 WHERE col2 * + col0 IS NULL
----

query I rowsort
SELECT col2 * + ( 91 ) FROM tab0
----
4277
9009
910

query I rowsort
SELECT ALL - col1 FROM tab0 WHERE - col2 + + col1 IS NOT NULL
----
-1
-21
-81

query I rowsort
SELECT col0 FROM tab0 WHERE + col0 IN ( 40 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + col0 col1 FROM tab0 WHERE col1 IN ( - col2 * + 6 + + col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8856
SELECT CAST( NULL AS SIGNED ) + col2 / 78 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8856
SELECT CAST ( NULL AS INTEGER ) + col2 / 78 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8857
SELECT col1 * - col1 + CAST( - 85 AS SIGNED ) AS col0 FROM tab0
----
-526
-6646
-86

skipif mysql # not compatible
query I rowsort label-8857
SELECT col1 * - col1 + CAST ( - 85 AS INTEGER ) AS col0 FROM tab0
----
-526
-6646
-86

query I rowsort
SELECT ALL + 87 FROM tab2 WHERE ( ( + col2 ) * - col2 + 78 ) IS NOT NULL
----
87
87
87

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8859
SELECT DISTINCT * FROM tab0 WHERE NOT NULL BETWEEN - 46 * 11 + - 72 AND 97 + CAST( NULL AS SIGNED ) / - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-8859
SELECT DISTINCT * FROM tab0 WHERE NOT NULL BETWEEN - 46 * 11 + - 72 AND 97 + CAST ( NULL AS INTEGER ) / - CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8860
SELECT COUNT( * ) AS col1 FROM tab1 WHERE col0 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-8860
SELECT COUNT ( * ) AS col1 FROM tab1 WHERE col0 IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8861
SELECT - 54 * - COUNT( * ) FROM tab0
----
162

skipif mysql # not compatible
query I rowsort label-8861
SELECT - 54 * - COUNT ( * ) FROM tab0
----
162

query I rowsort
SELECT DISTINCT + 69 * - col1 FROM tab2
----
-3519
-4623
-5313

onlyif mysql # aggregate syntax: 
query I rowsort label-8863
SELECT - SUM( DISTINCT 55 ) AS col2 FROM tab1
----
-55

skipif mysql # not compatible
query I rowsort label-8863
SELECT - SUM ( DISTINCT 55 ) AS col2 FROM tab1
----
-55

query I rowsort
SELECT DISTINCT + AVG ( DISTINCT - col2 ) - 2 FROM tab1 WHERE NOT ( NULL ) > col1 * - col2 + + col2 / - 48
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 1 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col1 FROM tab0 WHERE col0 = ( NULL )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - col2 + col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8868
SELECT - COUNT( * ) FROM tab1 WHERE NOT col0 NOT BETWEEN + 91 AND col1
----
0

skipif mysql # not compatible
query I rowsort label-8868
SELECT - COUNT ( * ) FROM tab1 WHERE NOT col0 NOT BETWEEN + 91 AND col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8869
SELECT ALL + MAX( col2 ) + 56 FROM tab0 WHERE NULL BETWEEN ( NULL ) AND col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8869
SELECT ALL + MAX ( col2 ) + 56 FROM tab0 WHERE NULL BETWEEN ( NULL ) AND col1
----
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE - col1 BETWEEN + 77 AND ( + 41 - 20 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8871
SELECT * FROM tab1 WHERE NOT col2 <> CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-8871
SELECT * FROM tab1 WHERE NOT col2 <> CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT col1 - 68 FROM tab1
----
-21
-54
-63

query III rowsort
SELECT ALL * FROM tab2 WHERE ( NULL ) IN ( 34 )
----

query I rowsort
SELECT col2 * 89 + - col2 FROM tab1
----
5192
5984
8448

query I rowsort
SELECT ALL col0 * 91 + ( col2 ) FROM tab1
----
4737
7794
8349

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL <= - 60
----

query I rowsort
SELECT - col2 AS col0 FROM tab0 WHERE col2 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col1 + + ( - col0 ) IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8879
SELECT ALL + COUNT( - CAST( NULL AS DECIMAL ) ) AS col2 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-8879
SELECT ALL + COUNT ( - CAST ( NULL AS REAL ) ) AS col2 FROM tab0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8880
SELECT ALL ( - 71 ) + ( + col2 + CAST( - col2 - ( - CAST( - 96 AS SIGNED ) + ( + col2 ) ) * CAST( + col1 + - col1 * + col0 AS SIGNED ) AS SIGNED ) ) col0 FROM tab0 WHERE col0 * - col1 IS NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8880
SELECT ALL ( - 71 ) + ( + col2 + CAST ( - col2 - ( - CAST ( - 96 AS INTEGER ) + ( + col2 ) ) * CAST ( + col1 + - col1 * + col0 AS INTEGER ) AS INTEGER ) ) col0 FROM tab0 WHERE col0 * - col1 IS NULL
----

query I rowsort
SELECT col1 FROM tab2 AS cor0 WHERE NOT ( 92 + ( + col2 ) ) IS NULL
----
51
67
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8882
SELECT + CAST( NULL AS SIGNED ) / COUNT( * ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8882
SELECT + CAST ( NULL AS INTEGER ) / COUNT ( * ) AS col1 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8883
SELECT + MAX( DISTINCT 56 ) AS col1 FROM tab2 AS cor0
----
56

skipif mysql # not compatible
query I rowsort label-8883
SELECT + MAX ( DISTINCT 56 ) AS col1 FROM tab2 AS cor0
----
56

query I rowsort
SELECT DISTINCT + + 85 AS col2 FROM tab1 cor0
----
85

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8885
SELECT ALL COUNT( * ) DIV + SUM( col1 ) + 52 AS col2 FROM tab0 AS cor0
----
52

skipif mysql # not compatible
query I rowsort label-8885
SELECT ALL COUNT ( * ) / + SUM ( col1 ) + 52 AS col2 FROM tab0 AS cor0
----
52

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL < 33 * + 91
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8887
SELECT ALL col1 DIV + 58 col0 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8887
SELECT ALL col1 / + 58 col0 FROM tab0 AS cor0
----
0
0
1

query I rowsort
SELECT + col1 * col0 FROM tab1 AS cor0 WHERE col2 * 46 IS NOT NULL
----
425
4277
714

query I rowsort
SELECT DISTINCT col2 FROM tab1 AS cor0 WHERE NOT ( col2 ) IS NULL
----
59
68
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8890
SELECT - - CAST( NULL AS SIGNED ) * COUNT( * ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8890
SELECT - - CAST ( NULL AS INTEGER ) * COUNT ( * ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL - + 57 + col2 * 30 AS col0 FROM tab1 AS cor0
----
1713
1983
2823

query I rowsort
SELECT DISTINCT - col2 * + ( col2 ) AS col2 FROM tab0 AS cor0
----
-100
-2209
-9801

query I rowsort
SELECT ALL - col0 + - col0 * col1 AS col1 FROM tab1 AS cor0
----
-4368
-510
-765

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8894
SELECT DISTINCT 39 + + ( + col1 ) + + CAST( NULL AS DECIMAL ) * + col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8894
SELECT DISTINCT 39 + + ( + col1 ) + + CAST ( NULL AS REAL ) * + col1 FROM tab0
----
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL BETWEEN ( 74 / 80 ) AND ( + col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8896
SELECT - CAST( NULL AS SIGNED ) * + + col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8896
SELECT - CAST ( NULL AS INTEGER ) * + + col2 FROM tab1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * + col0 col1 FROM tab1
----
4896
5015
6188

onlyif mysql # DIV for integer division: 
query I rowsort label-8898
SELECT DISTINCT 25 DIV col1 FROM tab0
----
0
1
25

skipif mysql # not compatible
query I rowsort label-8898
SELECT DISTINCT 25 / col1 FROM tab0
----
0
1
25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8899
SELECT DISTINCT CAST( NULL AS SIGNED ) - - col2 AS col0 FROM tab0 WHERE NOT ( NULL ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8899
SELECT DISTINCT CAST ( NULL AS INTEGER ) - - col2 AS col0 FROM tab0 WHERE NOT ( NULL ) IS NOT NULL
----
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( NULL ) NOT BETWEEN ( + 50 ) AND ( - col2 - ( + col2 ) * 92 )
----

query I rowsort
SELECT - col1 * - 68 + col1 AS col2 FROM tab0 AS cor0
----
1449
5589
69

query I rowsort
SELECT - 45 + - col2 FROM tab0 AS cor0
----
-144
-55
-92

query I rowsort
SELECT + col2 FROM tab0 AS cor0 WHERE col0 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8904
SELECT + + col2 DIV - - col1 - 68 + - 73 FROM tab1 AS cor0
----
-130
-135
-140

skipif mysql # not compatible
query I rowsort label-8904
SELECT + + col2 / - - col1 - 68 + - 73 FROM tab1 AS cor0
----
-130
-135
-140

onlyif mysql # aggregate syntax: 
query I rowsort label-8905
SELECT + COUNT( * ) + - - COUNT( * ) AS col1 FROM tab1 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-8905
SELECT + COUNT ( * ) + - - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
6

query I rowsort
SELECT + col2 + - + col2 AS col1 FROM tab2 cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8907
SELECT DISTINCT MAX( - col1 ) AS col0 FROM tab2 AS cor0 WHERE ( - 69 ) = ( NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-8907
SELECT DISTINCT MAX ( - col1 ) AS col0 FROM tab2 AS cor0 WHERE ( - 69 ) = ( NULL )
----
NULL

query IIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT - 93 IS NULL
----
54 values hashing to c419dc2a653bccd84f7a2da103315187

query I rowsort
SELECT ALL 58 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to ef6e63aeed2581a168f07646d258f666

onlyif mysql # aggregate syntax: 
query I rowsort label-8910
SELECT DISTINCT + 67 + + COUNT( * ) FROM tab1
----
70

skipif mysql # not compatible
query I rowsort label-8910
SELECT DISTINCT + 67 + + COUNT ( * ) FROM tab1
----
70

onlyif mysql # DIV for integer division: 
query II rowsort label-8911
SELECT 7 AS col1, col0 DIV - col0 FROM tab0
----
7
-1
7
-1
7
-1

skipif mysql # not compatible
query II rowsort label-8911
SELECT 7 AS col1, col0 / - col0 FROM tab0
----
7
-1
7
-1
7
-1

query III rowsort
SELECT * FROM tab1 cor0 WHERE col1 NOT IN ( - + 39 * - col2 + 27 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 * - 96 col0 FROM tab0 AS cor0
----
2016
7776
96

query I rowsort
SELECT + col2 * + col1 * col1 AS col0 FROM tab1 AS cor0
----
1475
150212
18816

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8915
SELECT ALL CAST( - 51 AS SIGNED ) + - ( + col2 + + col1 ) FROM tab2 AS cor0 WHERE NOT NULL IN ( + 57 * col0 + 17 )
----

skipif mysql # not compatible
query I rowsort label-8915
SELECT ALL CAST ( - 51 AS INTEGER ) + - ( + col2 + + col1 ) FROM tab2 AS cor0 WHERE NOT NULL IN ( + 57 * col0 + 17 )
----

query I rowsort
SELECT - ( 10 ) AS col0 FROM tab1 AS cor0 WHERE NOT col0 IS NULL
----
-10
-10
-10

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8917
SELECT * FROM tab0 AS cor0 WHERE NOT col2 / - - CAST( + ( 39 ) AS DECIMAL ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-8917
SELECT * FROM tab0 AS cor0 WHERE NOT col2 / - - CAST ( + ( 39 ) AS REAL ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8918
SELECT CAST( + 23 AS SIGNED ) * + col1 AS col1 FROM tab1 AS cor0
----
1081
115
322

skipif mysql # not compatible
query I rowsort label-8918
SELECT CAST ( + 23 AS INTEGER ) * + col1 AS col1 FROM tab1 AS cor0
----
1081
115
322

query II rowsort
SELECT ALL - - col0 AS col0, ( + col2 ) FROM tab0 AS cor0
----
15
47
87
10
97
99

onlyif mysql # aggregate syntax: 
query I rowsort label-8920
SELECT DISTINCT + MAX( ALL - 0 ) FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-8920
SELECT DISTINCT + MAX ( ALL - 0 ) FROM tab2 cor0
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - 59 * - col1 BETWEEN + col1 AND ( NULL ) OR NOT - col0 / + ( + 94 ) <> col0
----

query II rowsort
SELECT + col1, 48 AS col2 FROM tab1 AS cor0
----
14
48
47
48
5
48

query I rowsort
SELECT ALL 65 * 14 FROM tab2
----
910
910
910

query III rowsort
SELECT * FROM tab2 WHERE NOT 14 NOT BETWEEN - col1 * - col2 AND ( col2 )
----

query I rowsort
SELECT - - 88 - - 92 * - col2 FROM tab1 WHERE NOT - 10 IS NULL
----
-5340
-6168
-8744

query I rowsort
SELECT col2 FROM tab1 AS cor0 WHERE NOT col2 + col0 + - col0 * col0 IS NULL
----
59
68
96

query I rowsort
SELECT - - 94 FROM tab2 cor0
----
94
94
94

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 33 * + 93 NOT IN ( + 9 + ( col1 + + col0 ) * - col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT ( - 30 ) FROM tab0 AS cor0 WHERE NOT col0 NOT IN ( - + col1 * col0 )
----

query I rowsort
SELECT ALL + col0 * - col0 * - 52 FROM tab0 AS cor0
----
11700
393588
489268

onlyif mysql # aggregate syntax: 
query I rowsort label-8931
SELECT + - 98 + 36 * + ( COUNT( * ) ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
226

skipif mysql # not compatible
query I rowsort label-8931
SELECT + - 98 + 36 * + ( COUNT ( * ) ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
226

onlyif mysql # DIV for integer division: 
query I rowsort label-8932
SELECT ALL col1 DIV + ( + col2 ) FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8932
SELECT ALL col1 / + ( + col2 ) FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8933
SELECT DISTINCT + COUNT( * ) * + MIN( DISTINCT - + 24 ) AS col0 FROM tab2 AS cor0
----
-72

skipif mysql # not compatible
query I rowsort label-8933
SELECT DISTINCT + COUNT ( * ) * + MIN ( DISTINCT - + 24 ) AS col0 FROM tab2 AS cor0
----
-72

onlyif mysql # DIV for integer division: 
query I rowsort label-8934
SELECT ALL ( - 46 ) + - col2 + + col1 DIV + 20 col1 FROM tab1 AS cor0
----
-105
-112
-142

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8934
SELECT ALL ( - 46 ) + - col2 + + col1 / + 20 col1 FROM tab1 AS cor0
----
-105
-112
-142

query I rowsort
SELECT DISTINCT col0 FROM tab0 AS cor0 WHERE ( - 11 + ( col2 ) ) NOT IN ( col1 )
----
15
87
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8936
SELECT col2 FROM tab2 AS cor0 WHERE ( col2 + - + col2 - - col2 + + CAST( col2 AS SIGNED ) ) IS NOT NULL
----
23
40
58

skipif mysql # not compatible
query I rowsort label-8936
SELECT col2 FROM tab2 AS cor0 WHERE ( col2 + - + col2 - - col2 + + CAST ( col2 AS INTEGER ) ) IS NOT NULL
----
23
40
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + - 1 * + col1 + - 69 col1 FROM tab0 AS cor0
----
-69
-69
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-8938
SELECT - - COUNT( * ) + + 48 AS col0 FROM tab1 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-8938
SELECT - - COUNT ( * ) + + 48 AS col0 FROM tab1 AS cor0
----
51

query I rowsort
SELECT DISTINCT + ( - 3 ) FROM tab1 AS cor0 WHERE NULL <> NULL
----

query I rowsort
SELECT DISTINCT ( - 65 ) * col2 + + col0 AS col1 FROM tab0
----
-3040
-563
-6338

onlyif mysql # aggregate syntax: 
query I rowsort label-8941
SELECT - MIN( ALL + + 10 ) + 72 AS col1 FROM tab2
----
62

skipif mysql # not compatible
query I rowsort label-8941
SELECT - MIN ( ALL + + 10 ) + 72 AS col1 FROM tab2
----
62

onlyif mysql # DIV for integer division: 
query I rowsort label-8942
SELECT ALL col1 DIV 17 FROM tab2
----
3
3
4

skipif mysql # not compatible
query I rowsort label-8942
SELECT ALL col1 / 17 FROM tab2
----
3
3
4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8943
SELECT ALL - 28 DIV + COUNT( * ) AS col1 FROM tab2
----
-9

skipif mysql # not compatible
query I rowsort label-8943
SELECT ALL - 28 / + COUNT ( * ) AS col1 FROM tab2
----
-9

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 68 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8945
SELECT + COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE - col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-8945
SELECT + COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE - col1 IS NULL
----
0

query I rowsort
SELECT - 50 AS col2 FROM tab1 AS cor0 WHERE - 2 <= - - col2
----
-50
-50
-50

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8947
SELECT DISTINCT + col0 + + CAST( col0 AS SIGNED ) * col1 DIV + 44 + - col1 * - + 62 AS col1 FROM tab1
----
3102
404
935

skipif mysql # not compatible
query I rowsort label-8947
SELECT DISTINCT + col0 + + CAST ( col0 AS INTEGER ) * col1 / + 44 + - col1 * - + 62 AS col1 FROM tab1
----
3102
404
935

query I rowsort
SELECT ALL - 74 - 31 * ( + 47 ) + 26 FROM tab1
----
-1505
-1505
-1505

onlyif mysql # aggregate syntax: 
query I rowsort label-8949
SELECT - MAX( ALL + col0 ) + + 89 AS col2 FROM tab0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8949
SELECT - MAX ( ALL + col0 ) + + 89 AS col2 FROM tab0 WHERE NULL IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8950
SELECT DISTINCT CAST( - 66 AS SIGNED ) AS col0, - 11 * + 28 AS col0 FROM tab1
----
-66
-308

skipif mysql # not compatible
query II rowsort label-8950
SELECT DISTINCT CAST ( - 66 AS INTEGER ) AS col0, - 11 * + 28 AS col0 FROM tab1
----
-66
-308

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8951
SELECT DISTINCT * FROM tab2 WHERE ( + CAST( NULL AS DECIMAL ) ) - + - col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-8951
SELECT DISTINCT * FROM tab2 WHERE ( + CAST ( NULL AS REAL ) ) - + - col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL BETWEEN 97 * - + 86 - + + col0 * + - 57 * + 18 / col1 AND ( + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8953
SELECT ALL MAX( DISTINCT + + col2 ) FROM tab0 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-8953
SELECT ALL MAX ( DISTINCT + + col2 ) FROM tab0 AS cor0
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-8954
SELECT - COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL < + 74 * + - 84 * + - 85
----
0

skipif mysql # not compatible
query I rowsort label-8954
SELECT - COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL < + 74 * + - 84 * + - 85
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - 77 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 47 < NULL
----

query I rowsort
SELECT ALL - - col1 * + - 84 FROM tab1 AS cor0
----
-1176
-3948
-420

onlyif mysql # aggregate syntax: 
query I rowsort label-8958
SELECT ALL - MAX( ALL + + col0 ) AS col1 FROM tab1 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-8958
SELECT ALL - MAX ( ALL + + col0 ) AS col1 FROM tab1 AS cor0
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-8959
SELECT ALL SUM( DISTINCT - - ( col1 ) ) FROM tab0 AS cor0
----
103

skipif mysql # not compatible
query I rowsort label-8959
SELECT ALL SUM ( DISTINCT - - ( col1 ) ) FROM tab0 AS cor0
----
103

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8960
SELECT ALL + 32 * + COUNT( * ) AS col1 FROM tab0 WHERE NOT NULL <= ( + CAST( - col1 AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-8960
SELECT ALL + 32 * + COUNT ( * ) AS col1 FROM tab0 WHERE NOT NULL <= ( + CAST ( - col1 AS INTEGER ) )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8961
SELECT MIN( - 53 ) FROM tab2
----
-53

skipif mysql # not compatible
query I rowsort label-8961
SELECT MIN ( - 53 ) FROM tab2
----
-53

query I rowsort
SELECT ALL + ( + 85 ) FROM tab0
----
85
85
85

onlyif mysql # DIV for integer division: 
query II rowsort label-8963
SELECT ALL - col1 AS col1, col0 DIV 44 FROM tab2
----
-51
1
-67
1
-77
1

skipif mysql # not compatible
query II rowsort label-8963
SELECT ALL - col1 AS col1, col0 / 44 FROM tab2
----
-51
1
-67
1
-77
1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8964
SELECT ALL + col0 AS col1 FROM tab2 WHERE + 21 IN ( 51, - ( ( CAST( NULL AS DECIMAL ) ) ) * + + col1 )
----

skipif mysql # not compatible
query I rowsort label-8964
SELECT ALL + col0 AS col1 FROM tab2 WHERE + 21 IN ( 51, - ( ( CAST ( NULL AS REAL ) ) ) * + + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8965
SELECT DISTINCT MIN( - 88 ) AS col0 FROM tab2
----
-88

skipif mysql # not compatible
query I rowsort label-8965
SELECT DISTINCT MIN ( - 88 ) AS col0 FROM tab2
----
-88

query II rowsort
SELECT ALL col0 AS col2, col0 AS col1 FROM tab2 AS cor0
----
46
46
64
64
75
75

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col0 * + col2 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + - 18 col0, + col2 FROM tab0 AS cor0
----
-18
10
-18
47
-18
99

query I rowsort
SELECT ( - 77 ) FROM tab1 AS cor0
----
-77
-77
-77

query I rowsort
SELECT ALL col1 + + col2 + + + 86 AS col0 FROM tab0 AS cor0
----
117
186
214

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8971
SELECT + + col1 + + CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0 WHERE NOT - col2 <> col0
----

skipif mysql # not compatible
query I rowsort label-8971
SELECT + + col1 + + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0 WHERE NOT - col2 <> col0
----

query I rowsort
SELECT DISTINCT 8 + + col1 AS col2 FROM tab2 AS cor0
----
59
75
85

query I rowsort
SELECT ALL ( col2 ) * - col0 + + ( + 93 ) - + 18 FROM tab1
----
-4821
-4940
-6113

query I rowsort
SELECT DISTINCT col1 * - col2 * - - 89 AS col0 FROM tab0
----
-18690
-338823
-8811

onlyif mysql # aggregate syntax: 
query I rowsort label-8975
SELECT ALL + MAX( DISTINCT - col2 ) FROM tab0 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-8975
SELECT ALL + MAX ( DISTINCT - col2 ) FROM tab0 AS cor0
----
-10

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8976
SELECT ALL ( col1 ) + + - 73 + - col0 AS col2, CAST( NULL AS SIGNED ) * + col0 FROM tab1 cor0
----
-110
NULL
-117
NULL
-153
NULL

skipif mysql # not compatible
query II rowsort label-8976
SELECT ALL ( col1 ) + + - 73 + - col0 AS col2, CAST ( NULL AS INTEGER ) * + col0 FROM tab1 cor0
----
-110
NULL
-117
NULL
-153
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8977
SELECT ALL COUNT( * ) + 88 FROM tab1 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-8977
SELECT ALL COUNT ( * ) + 88 FROM tab1 AS cor0
----
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 61 - col0 col2 FROM tab2 AS cor0
----
-107
-125
-136

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + col0 col2 FROM tab0 AS cor0
----
196
62
97

query I rowsort
SELECT DISTINCT ( - + col2 ) FROM tab2 AS cor0
----
-23
-40
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8981
SELECT ALL CAST( + - col0 AS SIGNED ) + col2 FROM tab2
----
-17
-23
-24

skipif mysql # not compatible
query I rowsort label-8981
SELECT ALL CAST ( + - col0 AS INTEGER ) + col2 FROM tab2
----
-17
-23
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-8982
SELECT DISTINCT MAX( DISTINCT - - 22 ) - COUNT( * ) + COUNT( * ) FROM tab1
----
22

skipif mysql # not compatible
query I rowsort label-8982
SELECT DISTINCT MAX ( DISTINCT - - 22 ) - COUNT ( * ) + COUNT ( * ) FROM tab1
----
22

query I rowsort
SELECT - - col1 FROM tab2 WHERE col1 IN ( + col1, ( - col0 ), - + 78 )
----
51
67
77

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 17 > ( - ( - col2 ) * col2 ) AND NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8985
SELECT ALL + col0 DIV - 48 - + col0 * + - col1 AS col2 FROM tab0
----
1215
1826
95

skipif mysql # not compatible
query I rowsort label-8985
SELECT ALL + col0 / - 48 - + col0 * + - col1 AS col2 FROM tab0
----
1215
1826
95

onlyif mysql # aggregate syntax: 
query I rowsort label-8986
SELECT ALL 47 * COUNT( * ) AS col0 FROM tab2
----
141

skipif mysql # not compatible
query I rowsort label-8986
SELECT ALL 47 * COUNT ( * ) AS col0 FROM tab2
----
141

query I rowsort
SELECT ALL - col2 AS col2 FROM tab2 AS cor0 WHERE NOT NULL = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8988
SELECT + + COUNT( * ) FROM tab0 AS cor0 WHERE ( NOT NULL IS NOT NULL )
----
3

skipif mysql # not compatible
query I rowsort label-8988
SELECT + + COUNT ( * ) FROM tab0 AS cor0 WHERE ( NOT NULL IS NOT NULL )
----
3

query I rowsort
SELECT ALL + - ( + col1 ) + - col2 + - + col2 + + 45 * col2 FROM tab1 AS cor0
----
2532
2877
4114

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col0 < ( - col0 + + 21 )
----

query I rowsort
SELECT - ( 31 ) FROM tab2 cor0
----
-31
-31
-31

onlyif mysql # aggregate syntax: 
query II rowsort label-8992
SELECT - COUNT( * ) col1, MAX( + + 46 ) FROM tab2
----
-3
46

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8992
SELECT - COUNT ( * ) col1, MAX ( + + 46 ) FROM tab2
----
-3
46

query III rowsort
SELECT ALL + col2 AS col0, 83, + - col0 AS col1 FROM tab0
----
9 values hashing to 77843a840701040a4945f96fdf7ed3f0

query I rowsort
SELECT DISTINCT - col0 + - col1 AS col1 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN ( col0 / col0 ) AND 47
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8995
SELECT ALL - - COUNT( DISTINCT 69 ) FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-8995
SELECT ALL - - COUNT ( DISTINCT 69 ) FROM tab1 AS cor0
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 22 + - - col2 col2 FROM tab1 cor0 WHERE col0 IS NULL
----

query I rowsort
SELECT + col2 * - 21 FROM tab2 AS cor0
----
-1218
-483
-840

query I rowsort
SELECT col0 FROM tab1 AS cor0 WHERE NOT ( 52 + 88 ) IS NOT NULL
----

query II rowsort
SELECT DISTINCT + - col2, 29 AS col1 FROM tab2 cor0 WHERE NOT + col2 > col0 - + - 66 / + + 57
----
-23
29
-40
29
-58
29

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col1 >= + - 71
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9001
SELECT DISTINCT - ( + SUM( ALL - + col1 ) ) AS col0 FROM tab1
----
66

skipif mysql # not compatible
query I rowsort label-9001
SELECT DISTINCT - ( + SUM ( ALL - + col1 ) ) AS col0 FROM tab1
----
66

query I rowsort
SELECT col1 * + 73 + - 24 FROM tab1
----
3407
341
998

query I rowsort
SELECT ALL - col0 + - - col2 AS col2 FROM tab0
----
-77
2
32

onlyif mysql # aggregate syntax: 
query I rowsort label-9004
SELECT DISTINCT MAX( 3 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-9004
SELECT DISTINCT MAX ( 3 ) FROM tab1
----
3

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + + 8 = NULL
----

query I rowsort
SELECT 91 + + - col0 - + col0 AS col0 FROM tab2
----
-1
-37
-59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9007
SELECT DISTINCT COUNT( + + col0 ) * CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9007
SELECT DISTINCT COUNT ( + + col0 ) * CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9008
SELECT ALL * FROM tab2 AS cor0 WHERE CAST( - - ( - + 19 ) AS DECIMAL ) - + col2 IS NULL
----

skipif mysql # not compatible
query III rowsort label-9008
SELECT ALL * FROM tab2 AS cor0 WHERE CAST ( - - ( - + 19 ) AS REAL ) - + col2 IS NULL
----

query I rowsort
SELECT - col0 FROM tab2 AS cor0 WHERE - col0 * - col0 * - col0 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col2 + - ( - - col1 ) IS NULL
----

query I rowsort
SELECT - col1 AS col1 FROM tab1 AS cor0 WHERE + col0 IS NULL
----

query I rowsort
SELECT DISTINCT - 34 + col0 AS col0 FROM tab0
----
-19
53
63

onlyif mysql # aggregate syntax: 
query I rowsort label-9013
SELECT + COUNT( 25 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-9013
SELECT + COUNT ( 25 ) FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9014
SELECT DISTINCT + 8 - - ( - COUNT( * ) ) FROM tab1
----
5

skipif mysql # not compatible
query I rowsort label-9014
SELECT DISTINCT + 8 - - ( - COUNT ( * ) ) FROM tab1
----
5

query I rowsort
SELECT ALL + 42 + - 81 FROM tab1 WHERE 37 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9016
SELECT ALL - col2 DIV - + col2 - - col1 AS col2 FROM tab1
----
15
48
6

skipif mysql # not compatible
query I rowsort label-9016
SELECT ALL - col2 / - + col2 - - col1 AS col2 FROM tab1
----
15
48
6

query III rowsort
SELECT * FROM tab1 WHERE col2 * + - 80 + - - 46 = ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9018
SELECT ALL + - 81 DIV col1 AS col1 FROM tab0 AS cor0
----
-1
-3
-81

skipif mysql # not compatible
query I rowsort label-9018
SELECT ALL + - 81 / col1 AS col1 FROM tab0 AS cor0
----
-1
-3
-81

query I rowsort
SELECT - col0 FROM tab1 AS cor0 WHERE NOT 33 IS NULL
----
-51
-85
-91

query III rowsort
SELECT * FROM tab1 WHERE NOT 89 + + + 10 - - col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col0 * + - col2 FROM tab1
----
-4896
-5015
-6188

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + 33 * - - 61 / col0 + - + col1 NOT BETWEEN - col0 * - col1 AND ( + - col2 + + + col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - + 24 AS col0 FROM tab2 AS cor0
----
-24
-24
-24

query I rowsort
SELECT - 0 * - col1 AS col1 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9025
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col0 / - col2 + - col2 * CAST( NULL AS SIGNED ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-9025
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col0 / - col2 + - col2 * CAST ( NULL AS INTEGER ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col1 * 48 FROM tab0 AS cor0
----
1008
3888
48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9027
SELECT ALL 13 / CAST( NULL AS SIGNED ) col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9027
SELECT ALL 13 / CAST ( NULL AS INTEGER ) col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col1 AS col2 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN ( NULL ) AND ( - col1 / + 95 + - + col1 + + + 86 * + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9029
SELECT + MIN( ALL + col0 ) FROM tab2 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-9029
SELECT + MIN ( ALL + col0 ) FROM tab2 AS cor0
----
46

query I rowsort
SELECT + col1 * - - col1 - - 93 FROM tab1 AS cor0
----
118
2302
289

query II rowsort
SELECT + col0, col0 - - + col2 + - + 10 + 7 FROM tab2
----
46
66
64
101
75
130

onlyif mysql # aggregate syntax: 
query I rowsort label-9032
SELECT ( 95 ) * + + COUNT( - 19 ) FROM tab1
----
285

skipif mysql # not compatible
query I rowsort label-9032
SELECT ( 95 ) * + + COUNT ( - 19 ) FROM tab1
----
285

query I rowsort
SELECT ALL 48 * - 37 AS col0 FROM tab2
----
-1776
-1776
-1776

query III rowsort
SELECT ALL * FROM tab1 WHERE - - ( + ( col1 ) ) = col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9035
SELECT + CAST( + 85 AS SIGNED ) AS col0, - col0 FROM tab0 AS cor0
----
85
-15
85
-87
85
-97

skipif mysql # not compatible
query II rowsort label-9035
SELECT + CAST ( + 85 AS INTEGER ) AS col0, - col0 FROM tab0 AS cor0
----
85
-15
85
-87
85
-97

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9036
SELECT * FROM tab1 AS cor0 WHERE - col0 * + CAST( 87 AS SIGNED ) - + col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-9036
SELECT * FROM tab1 AS cor0 WHERE - col0 * + CAST ( 87 AS INTEGER ) - + col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9037
SELECT ALL - COUNT( * ) + + COUNT( * ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9037
SELECT ALL - COUNT ( * ) + + COUNT ( * ) FROM tab0 AS cor0
----
0

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL >= + col1 - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9039
SELECT ALL + - COUNT( * ) + - 47 FROM tab1 AS cor0
----
-50

skipif mysql # not compatible
query I rowsort label-9039
SELECT ALL + - COUNT ( * ) + - 47 FROM tab1 AS cor0
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-9040
SELECT + COUNT( * ) + - COUNT( * ) AS col2 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9040
SELECT + COUNT ( * ) + - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
0

query I rowsort
SELECT DISTINCT + + col0 + + + col2 + - col2 FROM tab0 cor0
----
15
87
97

query I rowsort
SELECT + ( 67 ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to b56f8a4f1fcebc9802481256df61e97c

query I rowsort
SELECT + - ( + - col2 ) * col2 + + col0 + 81 + + col0 FROM tab2 AS cor0
----
1809
3595
702

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 col0 FROM tab0 cor0 WHERE ( + col1 * - + col0 ) IS NOT NULL
----
1
21
81

query I rowsort
SELECT ALL - + 0 + - col0 + + col2 + - + col1 FROM tab0 AS cor0
----
-49
-98
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * - 97 - - col0 + col2 col0 FROM tab2 AS cor0
----
4531
6312
7408

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9047
SELECT * FROM tab0 AS cor0 WHERE - col1 = - col1 * - ( - ( CAST( NULL AS SIGNED ) ) )
----

skipif mysql # not compatible
query III rowsort label-9047
SELECT * FROM tab0 AS cor0 WHERE - col1 = - col1 * - ( - ( CAST ( NULL AS INTEGER ) ) )
----

query I rowsort
SELECT col2 - + - ( 7 ) * col2 AS col1 FROM tab2
----
184
320
464

query I rowsort
SELECT DISTINCT 54 + + col1 FROM tab2
----
105
121
131

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * + col2 + - 61 * - col1 col1 FROM tab1
----
10070
3786
7491

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( col1 NOT BETWEEN - 67 AND NULL )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL BETWEEN NULL AND 21
----

query I rowsort
SELECT DISTINCT + 13 * - 80 FROM tab0 AS cor0
----
-1040

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 22 AS col1, 93 * col2 * + col1 col1 FROM tab0 AS cor0
----
-22
19530
-22
354051
-22
9207

onlyif mysql # aggregate syntax: 
query I rowsort label-9055
SELECT DISTINCT + 89 * + COUNT( * ) * + COUNT( * ) FROM tab2
----
801

skipif mysql # not compatible
query I rowsort label-9055
SELECT DISTINCT + 89 * + COUNT ( * ) * + COUNT ( * ) FROM tab2
----
801

query I rowsort
SELECT + 84 AS col0 FROM tab0 WHERE NOT 41 BETWEEN col2 AND - + 6
----
84
84
84

onlyif mysql # aggregate syntax: 
query I rowsort label-9057
SELECT + MAX( + 17 ) * - - 73 * + 52 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
64532

skipif mysql # not compatible
query I rowsort label-9057
SELECT + MAX ( + 17 ) * - - 73 * + 52 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
64532

query I rowsort
SELECT DISTINCT - col0 * - + col2 FROM tab1 cor0
----
4896
5015
6188

onlyif mysql # aggregate syntax: 
query I rowsort label-9059
SELECT DISTINCT - COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND col2 + + 88
----
0

skipif mysql # not compatible
query I rowsort label-9059
SELECT DISTINCT - COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND col2 + + 88
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9060
SELECT ALL - + 35 DIV col1 + + col1 AS col0 FROM tab1 cor0
----
-2
12
47

skipif mysql # not compatible
query I rowsort label-9060
SELECT ALL - + 35 / col1 + + col1 AS col0 FROM tab1 cor0
----
-2
12
47

query I rowsort
SELECT ALL + col1 FROM tab0 AS cor0 WHERE NOT + 46 IS NOT NULL
----

query II rowsort
SELECT + col0 * - col1 AS col1, col2 AS col1 FROM tab2 AS cor0
----
-2346
23
-4928
40
-5025
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 11 + + - col0 col0 FROM tab0
----
-4
-76
-86

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT 51 + + + col1 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - 67 * col0 FROM tab2
----
-3082
-4288
-5025

onlyif mysql # DIV for integer division: 
query I rowsort label-9066
SELECT + col0 + + 81 + - 53 DIV 56 AS col0 FROM tab2
----
127
145
156

skipif mysql # not compatible
query I rowsort label-9066
SELECT + col0 + + 81 + - 53 / 56 AS col0 FROM tab2
----
127
145
156

query I rowsort
SELECT + col1 * col2 + col0 AS col1 FROM tab1
----
1395
3287
380

query III rowsort
SELECT * FROM tab0 WHERE NULL IN ( - col2 * ( - + col0 ) - + 39 )
----

query I rowsort
SELECT DISTINCT 78 * - col2 + + - 72 + + col0 FROM tab2
----
-1820
-3128
-4521

onlyif mysql # aggregate syntax: 
query II rowsort label-9070
SELECT + MIN( + + col0 ) * - 91, COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
-4641
3

skipif mysql # not compatible
query II rowsort label-9070
SELECT + MIN ( + + col0 ) * - 91, COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
-4641
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9071
SELECT DISTINCT 32 col0 FROM tab0 AS cor0 WHERE col0 NOT IN ( - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9071
SELECT DISTINCT 32 col0 FROM tab0 AS cor0 WHERE col0 NOT IN ( - CAST ( NULL AS INTEGER ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - - 79 * - - 22 + 19 col0, - 69 AS col2 FROM tab0 AS cor0
----
1757
-69
1757
-69
1757
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-9073
SELECT ALL - MAX( - 16 ) * - ( 64 ) FROM tab1 cor0
----
-1024

skipif mysql # not compatible
query I rowsort label-9073
SELECT ALL - MAX ( - 16 ) * - ( 64 ) FROM tab1 cor0
----
-1024

onlyif mysql # aggregate syntax: 
query I rowsort label-9074
SELECT - - ( + + ( + COUNT( * ) ) ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9074
SELECT - - ( + + ( + COUNT ( * ) ) ) FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9075
SELECT DISTINCT + 16 + - + SUM( ALL + col0 ) - + 1 AS col1 FROM tab2 cor0
----
-170

skipif mysql # not compatible
query I rowsort label-9075
SELECT DISTINCT + 16 + - + SUM ( ALL + col0 ) - + 1 AS col1 FROM tab2 cor0
----
-170

query I rowsort
SELECT 25 * - col2 AS col2 FROM tab0 WHERE - col0 BETWEEN + 72 AND ( - col1 )
----

query I rowsort
SELECT DISTINCT 12 AS col2 FROM tab1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL - col0 * 65 + col1 + - col0 + - col0 + ( col2 ) FROM tab0
----
-5798
-6399
-877

query I rowsort
SELECT - - col0 * - col1 + - col0 FROM tab2 AS cor0
----
-2392
-4992
-5100

query I rowsort
SELECT + + 16 * + col0 + - + col1 + col0 * + - col2 * + - 0 AS col1 FROM tab2 AS cor0
----
1133
685
947

onlyif mysql # aggregate syntax: 
query I rowsort label-9081
SELECT ALL - - 29 + - - COUNT( * ) col1 FROM tab1 AS cor0
----
32

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9081
SELECT ALL - - 29 + - - COUNT ( * ) col1 FROM tab1 AS cor0
----
32

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL < - col0 * + + 75 - + - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9083
SELECT MIN( - 77 ) AS col0 FROM tab0 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-9083
SELECT MIN ( - 77 ) AS col0 FROM tab0 AS cor0
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-9084
SELECT ALL + MAX( ALL - 79 ) + COUNT( * ) col2 FROM tab0 AS cor0
----
-76

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9084
SELECT ALL + MAX ( ALL - 79 ) + COUNT ( * ) col2 FROM tab0 AS cor0
----
-76

query II rowsort
SELECT + col0 AS col1, - col1 FROM tab2 AS cor0
----
46
-51
64
-77
75
-67

query I rowsort
SELECT col1 AS col2 FROM tab0 WHERE NULL >= + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9087
SELECT ( - CAST( NULL AS SIGNED ) ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9087
SELECT ( - CAST ( NULL AS INTEGER ) ) FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9088
SELECT - 11 AS col2, - 73 * + MIN( + col1 ) col2 FROM tab0 WHERE NOT + 5 NOT BETWEEN - col2 AND NULL
----
-11
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9088
SELECT - 11 AS col2, - 73 * + MIN ( + col1 ) col2 FROM tab0 WHERE NOT + 5 NOT BETWEEN - col2 AND NULL
----
-11
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9089
SELECT + COUNT( * ) * - - COUNT( * ) FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-9089
SELECT + COUNT ( * ) * - - COUNT ( * ) FROM tab2
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-9090
SELECT ( + MIN( + col1 ) ) AS col1 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-9090
SELECT ( + MIN ( + col1 ) ) AS col1 FROM tab0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9091
SELECT - - CAST( + col0 AS SIGNED ) FROM tab2 AS cor0 WHERE NOT ( NULL ) <= + col1 / - + col2 * col0 * 16 * - col0 + col0
----

skipif mysql # not compatible
query I rowsort label-9091
SELECT - - CAST ( + col0 AS INTEGER ) FROM tab2 AS cor0 WHERE NOT ( NULL ) <= + col1 / - + col2 * col0 * 16 * - col0 + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9092
SELECT ALL - CAST( - - AVG ( + - 38 ) AS SIGNED ) FROM tab1
----
38

skipif mysql # not compatible
query I rowsort label-9092
SELECT ALL - CAST ( - - AVG ( + - 38 ) AS INTEGER ) FROM tab1
----
38

onlyif mysql # DIV for integer division: 
query I rowsort label-9093
SELECT 20 DIV 31 * - col0 AS col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9093
SELECT 20 / 31 * - col0 AS col0 FROM tab1
----
0
0
0

query I rowsort
SELECT DISTINCT + 37 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
37

query I rowsort
SELECT - ( + 98 ) FROM ( tab1 cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to f17b7008a7deae1eb5a2e707ec237638

query I rowsort
SELECT + + 98 FROM tab2 AS cor0
----
98
98
98

query I rowsort
SELECT ALL + + ( - - col0 ) AS col2 FROM tab2 AS cor0
----
46
64
75

query I rowsort
SELECT DISTINCT - col0 + + ( 86 ) * - col0 AS col1 FROM tab1 AS cor0
----
-4437
-7395
-7917

query II rowsort
SELECT + + col0 AS col2, col2 * 50 AS col2 FROM tab1 AS cor0
----
51
4800
85
2950
91
3400

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9100
SELECT ALL col1 AS col2 FROM tab2 AS cor0 WHERE NOT NULL <> + CAST( - col1 AS SIGNED ) + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-9100
SELECT ALL col1 AS col2 FROM tab2 AS cor0 WHERE NOT NULL <> + CAST ( - col1 AS INTEGER ) + CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9101
SELECT DISTINCT 66 * COUNT( * ) DIV 31 AS col1 FROM tab1 cor0 WHERE NOT NULL NOT BETWEEN NULL AND 1
----
0

skipif mysql # not compatible
query I rowsort label-9101
SELECT DISTINCT 66 * COUNT ( * ) / 31 AS col1 FROM tab1 cor0 WHERE NOT NULL NOT BETWEEN NULL AND 1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9102
SELECT ALL 68 * MIN( ALL - + 47 ) FROM tab1
----
-3196

skipif mysql # not compatible
query I rowsort label-9102
SELECT ALL 68 * MIN ( ALL - + 47 ) FROM tab1
----
-3196

query I rowsort
SELECT ALL - col0 * + - col2 * + col0 AS col2 FROM tab1
----
249696
426275
563108

query I rowsort
SELECT ALL + - col2 * + 33 AS col0 FROM tab1 WHERE NOT 98 IS NOT NULL
----

query I rowsort
SELECT 91 + - - col0 AS col1 FROM tab2 AS cor0
----
137
155
166

onlyif mysql # aggregate syntax: 
query I rowsort label-9106
SELECT DISTINCT ( + 1 ) * - MAX( DISTINCT - + 63 ) * - + COUNT( * ) col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-567

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9106
SELECT DISTINCT ( + 1 ) * - MAX ( DISTINCT - + 63 ) * - + COUNT ( * ) col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-567

onlyif mysql # aggregate syntax: 
query I rowsort label-9107
SELECT DISTINCT COUNT( * ) + + COUNT( - - 58 ) AS col2 FROM tab1 cor0
----
6

skipif mysql # not compatible
query I rowsort label-9107
SELECT DISTINCT COUNT ( * ) + + COUNT ( - - 58 ) AS col2 FROM tab1 cor0
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9108
SELECT - CAST( + 51 AS SIGNED ) - + + 65 col2, 89 * col1 + + + CAST( NULL AS SIGNED ) + col0 * + col1 FROM tab0 AS cor0
----
-116
NULL
-116
NULL
-116
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9108
SELECT - CAST ( + 51 AS INTEGER ) - + + 65 col2, 89 * col1 + + + CAST ( NULL AS INTEGER ) + col0 * + col1 FROM tab0 AS cor0
----
-116
NULL
-116
NULL
-116
NULL

query I rowsort
SELECT - - col1 - - - col1 AS col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT col1 - + col1 * - col0 - + + col1 * + - col0 * 95 AS col1 FROM tab2 cor0
----
225267
473165
482467

onlyif mysql # aggregate syntax: 
query I rowsort label-9111
SELECT - - MIN( col2 ) - - COUNT( DISTINCT + col2 ) FROM tab0 AS cor0
----
13

skipif mysql # not compatible
query I rowsort label-9111
SELECT - - MIN ( col2 ) - - COUNT ( DISTINCT + col2 ) FROM tab0 AS cor0
----
13

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL <> ( + col0 )
----

query II rowsort
SELECT DISTINCT + col1, 65 FROM tab0
----
1
65
21
65
81
65

query III rowsort
SELECT * FROM tab2 WHERE NOT - 29 * - 90 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9115
SELECT + COUNT( - - 28 ) AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-9115
SELECT + COUNT ( - - 28 ) AS col0 FROM tab2
----
3

query I rowsort
SELECT - ( + + col0 ) FROM tab0
----
-15
-87
-97

query I rowsort
SELECT - col0 * - col0 * col2 AS col0 FROM tab1 WHERE NOT ( col2 ) IS NOT NULL
----

query II rowsort
SELECT + + 36 AS col2, col1 FROM tab2 AS cor0
----
36
51
36
67
36
77

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9119
SELECT * FROM tab0 AS cor0 WHERE NOT 94 * - CAST( NULL AS DECIMAL ) BETWEEN - 70 AND NULL
----

skipif mysql # not compatible
query III rowsort label-9119
SELECT * FROM tab0 AS cor0 WHERE NOT 94 * - CAST ( NULL AS REAL ) BETWEEN - 70 AND NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) BETWEEN NULL AND - col2 * col2 * col1 + - 78 + - 87
----

query II rowsort
SELECT ALL col0, ( 92 ) AS col2 FROM tab2 AS cor0
----
46
92
64
92
75
92

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN + col2 * + 11 AND - 6 - col0
----

query I rowsort
SELECT ALL - col2 * + 28 AS col1 FROM tab1
----
-1652
-1904
-2688

onlyif mysql # aggregate syntax: 
query I rowsort label-9124
SELECT ALL + + COUNT( * ) AS col1 FROM tab1 WHERE - col2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-9124
SELECT ALL + + COUNT ( * ) AS col1 FROM tab1 WHERE - col2 IS NULL
----
0

query I rowsort
SELECT - col2 * - + 85 AS col1 FROM tab1
----
5015
5780
8160

query I rowsort
SELECT + - 38 AS col1 FROM tab0 AS cor0
----
-38
-38
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-9127
SELECT + COUNT( * ) + - COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NULL >= col0
----
0

skipif mysql # not compatible
query I rowsort label-9127
SELECT + COUNT ( * ) + - COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NULL >= col0
----
0

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE + col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) <> - - 94
----

query I rowsort
SELECT ( + col2 ) FROM tab2 AS cor0 WHERE + 66 * col2 IS NOT NULL
----
23
40
58

query III rowsort
SELECT * FROM tab2 cor0 WHERE col1 * col0 + - + col2 IN ( col2 * 51 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9132
SELECT COUNT( - col0 ) FROM tab1 WHERE col0 * col1 + - - col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-9132
SELECT COUNT ( - col0 ) FROM tab1 WHERE col0 * col1 + - - col1 IS NULL
----
0

query I rowsort
SELECT + 86 + - col2 AS col1 FROM tab2
----
28
46
63

query I rowsort
SELECT 34 + - - col1 FROM tab0 WHERE NULL NOT IN ( col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9135
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col1 FROM tab1 WHERE NOT NULL NOT IN ( 83, col1, + - col0 * + + col1, + col2 + col1 * col0, - 49, col1 * + col0 / - 67 )
----

skipif mysql # not compatible
query I rowsort label-9135
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col1 FROM tab1 WHERE NOT NULL NOT IN ( 83, col1, + - col0 * + + col1, + col2 + col1 * col0, - 49, col1 * + col0 / - 67 )
----

query I rowsort
SELECT col0 * - + ( + - ( col2 ) ) FROM tab0
----
705
870
9603

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9137
SELECT ( - - CAST( NULL AS SIGNED ) ) / - 90 - + col2 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9137
SELECT ( - - CAST ( NULL AS INTEGER ) ) / - 90 - + col2 AS col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT 84 * + - 55 AS col2 FROM tab0
----
-4620
-4620
-4620

onlyif mysql # DIV for integer division: 
query I rowsort label-9139
SELECT 27 DIV col0 AS col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9139
SELECT 27 / col0 AS col0 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9140
SELECT + COUNT( * ) AS col0, - COUNT( * ) FROM tab2 cor0 WHERE ( ( NOT col1 + + col0 = + + 9 ) )
----
3
-3

skipif mysql # not compatible
query II rowsort label-9140
SELECT + COUNT ( * ) AS col0, - COUNT ( * ) FROM tab2 cor0 WHERE ( ( NOT col1 + + col0 = + + 9 ) )
----
3
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9141
SELECT DISTINCT CAST( NULL AS SIGNED ) + 57 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9141
SELECT DISTINCT CAST ( NULL AS INTEGER ) + 57 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9142
SELECT 45 * - 75 * ( - COUNT( * ) ) + 7 + - - COUNT( * ) FROM tab0
----
10135

skipif mysql # not compatible
query I rowsort label-9142
SELECT 45 * - 75 * ( - COUNT ( * ) ) + 7 + - - COUNT ( * ) FROM tab0
----
10135

query I rowsort
SELECT + col0 * 16 + - col1 AS col0 FROM tab2
----
1133
685
947

query I rowsort
SELECT ALL + ( + col1 ) - col2 AS col2 FROM tab1
----
-21
-54
-82

query I rowsort
SELECT DISTINCT - col2 * + + col0 AS col1 FROM tab2
----
-1058
-2560
-4350

onlyif mysql # aggregate syntax: 
query I rowsort label-9146
SELECT DISTINCT + + COUNT( * ) col0 FROM tab0 cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9146
SELECT DISTINCT + + COUNT ( * ) col0 FROM tab0 cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9147
SELECT DISTINCT COUNT( * ) * 15 FROM tab1 AS cor0 WHERE NOT col2 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-9147
SELECT DISTINCT COUNT ( * ) * 15 FROM tab1 AS cor0 WHERE NOT col2 IS NOT NULL
----
0

query I rowsort
SELECT DISTINCT - col2 FROM tab2 AS cor0 WHERE NULL > + col0
----

query I rowsort
SELECT DISTINCT - 83 AS col2 FROM tab2 AS cor0
----
-83

onlyif mysql # DIV for integer division: 
query I rowsort label-9150
SELECT - 19 DIV - - col1 AS col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9150
SELECT - 19 / - - col1 AS col1 FROM tab2 AS cor0
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NULL ) >= - col1
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9152
SELECT - COUNT( * ) AS col2, MAX( + - col2 ) AS col1 FROM tab2
----
-3
-23

skipif mysql # not compatible
query II rowsort label-9152
SELECT - COUNT ( * ) AS col2, MAX ( + - col2 ) AS col1 FROM tab2
----
-3
-23

query I rowsort
SELECT DISTINCT - 40 FROM tab0 WHERE - col2 <> - - col1 / + + col1 - - 34
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-9154
SELECT ALL - ( - + COUNT( ALL + - ( col0 ) ) ) col0 FROM tab1
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9154
SELECT ALL - ( - + COUNT ( ALL + - ( col0 ) ) ) col0 FROM tab1
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9155
SELECT ALL + CAST( - col2 AS SIGNED ) FROM tab0
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-9155
SELECT ALL + CAST ( - col2 AS INTEGER ) FROM tab0
----
-10
-47
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-9156
SELECT DISTINCT MIN( + 34 ) AS col1 FROM tab2
----
34

skipif mysql # not compatible
query I rowsort label-9156
SELECT DISTINCT MIN ( + 34 ) AS col1 FROM tab2
----
34

query I rowsort
SELECT + - 14 FROM tab0 WHERE NOT - ( 42 ) + 3 <> NULL
----

query I rowsort
SELECT + col1 * + - ( + col2 ) FROM tab2 AS cor0
----
-1173
-3080
-3886

query I rowsort
SELECT - col1 * - + col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 13 col0 FROM tab2 AS cor0
----
-13
-13
-13

query II rowsort
SELECT ALL col2, - col1 FROM tab1
----
59
-5
68
-47
96
-14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9162
SELECT DISTINCT COUNT( CAST( NULL AS SIGNED ) ) * + + 58 + + MIN( - - 51 ) FROM tab1 cor0
----
51

skipif mysql # not compatible
query I rowsort label-9162
SELECT DISTINCT COUNT ( CAST ( NULL AS INTEGER ) ) * + + 58 + + MIN ( - - 51 ) FROM tab1 cor0
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-9163
SELECT SUM( DISTINCT + col1 ) FROM tab1 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-9163
SELECT SUM ( DISTINCT + col1 ) FROM tab1 AS cor0
----
66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9164
SELECT DISTINCT - - col2 + CAST( NULL AS SIGNED ) + col1 / - - 17 AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9164
SELECT DISTINCT - - col2 + CAST ( NULL AS INTEGER ) + col1 / - - 17 AS col2 FROM tab2 AS cor0
----
NULL

query II rowsort
SELECT + col0, - col2 FROM tab2 AS cor0
----
46
-23
64
-40
75
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-9166
SELECT + MAX( - ( - 62 ) ) AS col1 FROM tab2 AS cor0
----
62

skipif mysql # not compatible
query I rowsort label-9166
SELECT + MAX ( - ( - 62 ) ) AS col1 FROM tab2 AS cor0
----
62

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9167
SELECT CAST( - 79 AS SIGNED ) AS col2, 70 * + 48 * + ( - - col2 ) FROM tab1 AS cor0
----
-79
198240
-79
228480
-79
322560

skipif mysql # not compatible
query II rowsort label-9167
SELECT CAST ( - 79 AS INTEGER ) AS col2, 70 * + 48 * + ( - - col2 ) FROM tab1 AS cor0
----
-79
198240
-79
228480
-79
322560

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9168
SELECT DISTINCT col2 + - - col2 - - 41, - col1 * - col1 * - CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
159
NULL
177
NULL
233
NULL

skipif mysql # not compatible
query II rowsort label-9168
SELECT DISTINCT col2 + - - col2 - - 41, - col1 * - col1 * - CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
159
NULL
177
NULL
233
NULL

query I rowsort
SELECT ALL + col1 * + col2 + - - 70 FROM tab2 WHERE NOT NULL IS NOT NULL
----
1243
3150
3956

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9170
SELECT DISTINCT - CAST( + - SUM( - - 34 ) AS SIGNED ) col2 FROM tab2
----
102

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9170
SELECT DISTINCT - CAST ( + - SUM ( - - 34 ) AS INTEGER ) col2 FROM tab2
----
102

query I rowsort
SELECT col0 + ( col2 ) - - - 3 * + col1 AS col2 FROM tab1
----
105
129
18

query I rowsort
SELECT + + 17 + + + col2 + + - 56 + + - col1 + + + 56 AS col2 FROM tab1 cor0
----
38
71
99

query I rowsort
SELECT ( col2 ) + - + 73 AS col2 FROM tab0 AS cor0
----
-26
-63
26

onlyif mysql # aggregate syntax: 
query I rowsort label-9174
SELECT DISTINCT COUNT( * ) + + - COUNT( * ) * - COUNT( * ) FROM tab0 AS cor0
----
12

skipif mysql # not compatible
query I rowsort label-9174
SELECT DISTINCT COUNT ( * ) + + - COUNT ( * ) * - COUNT ( * ) FROM tab0 AS cor0
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-9175
SELECT ALL + ( - - 38 ) + - + COUNT( * ) AS col1 FROM tab0 AS cor0
----
35

skipif mysql # not compatible
query I rowsort label-9175
SELECT ALL + ( - - 38 ) + - + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-9176
SELECT ALL 63 - + COUNT( * ) + - - 2 col2 FROM tab1
----
62

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9176
SELECT ALL 63 - + COUNT ( * ) + - - 2 col2 FROM tab1
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-9177
SELECT DISTINCT - COUNT( * ) * - + COUNT( * ) * 52 AS col2 FROM tab0
----
468

skipif mysql # not compatible
query I rowsort label-9177
SELECT DISTINCT - COUNT ( * ) * - + COUNT ( * ) * 52 AS col2 FROM tab0
----
468

onlyif mysql # aggregate syntax: 
query I rowsort label-9178
SELECT - COUNT( * ) AS col1 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-9178
SELECT - COUNT ( * ) AS col1 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
-9

query I rowsort
SELECT - 22 * + + col1 + col2 * - ( + col2 ) FROM tab0 AS cor0
----
-3991
-562
-9823

onlyif mysql # aggregate syntax: 
query I rowsort label-9180
SELECT ALL ( + - 73 ) * + + COUNT( * ) AS col0 FROM tab0 AS cor0
----
-219

skipif mysql # not compatible
query I rowsort label-9180
SELECT ALL ( + - 73 ) * + + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-219

onlyif mysql # aggregate syntax: 
query II rowsort label-9181
SELECT ALL + - COUNT( + ( 29 ) ) AS col2, 7 AS col2 FROM tab1 AS cor0
----
-3
7

skipif mysql # not compatible
query II rowsort label-9181
SELECT ALL + - COUNT ( + ( 29 ) ) AS col2, 7 AS col2 FROM tab1 AS cor0
----
-3
7

onlyif mysql # aggregate syntax: 
query I rowsort label-9182
SELECT - + COUNT( * ) * 77 AS col1 FROM tab1 AS cor0
----
-231

skipif mysql # not compatible
query I rowsort label-9182
SELECT - + COUNT ( * ) * 77 AS col1 FROM tab1 AS cor0
----
-231

query II rowsort
SELECT ALL col2, + col0 AS col0 FROM tab2 AS cor0
----
23
46
40
64
58
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 col0 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9185
SELECT COUNT( * ) * - COUNT( * ) col1 FROM tab2 AS cor0
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9185
SELECT COUNT ( * ) * - COUNT ( * ) col1 FROM tab2 AS cor0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-9186
SELECT ALL + MAX( + col2 ) FROM tab1 WHERE + - col1 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9186
SELECT ALL + MAX ( + col2 ) FROM tab1 WHERE + - col1 IS NULL
----
NULL

query I rowsort
SELECT col0 * 65 AS col1 FROM tab1
----
3315
5525
5915

onlyif mysql # aggregate syntax: 
query I rowsort label-9188
SELECT MIN( ALL + 84 ) FROM tab0
----
84

skipif mysql # not compatible
query I rowsort label-9188
SELECT MIN ( ALL + 84 ) FROM tab0
----
84

query I rowsort
SELECT ALL - col1 * - - 96 FROM tab1
----
-1344
-4512
-480

query III rowsort
SELECT * FROM tab2 WHERE NOT - col1 - + col1 = col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 WHERE NULL <= + + col1
----

query I rowsort
SELECT col0 * + ( 79 ) AS col1 FROM tab0
----
1185
6873
7663

query I rowsort
SELECT col1 * - col0 + col2 AS col1 FROM tab2 WHERE NULL NOT BETWEEN NULL AND - - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9194
SELECT 82 * - COUNT( * ) AS col0 FROM tab1
----
-246

skipif mysql # not compatible
query I rowsort label-9194
SELECT 82 * - COUNT ( * ) AS col0 FROM tab1
----
-246

query I rowsort
SELECT + col2 AS col2 FROM tab1 cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT col1 * + col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
1215
1827
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9197
SELECT COUNT( * ) + CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9197
SELECT COUNT ( * ) + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9198
SELECT DISTINCT - MAX( DISTINCT - - col2 ) FROM tab0
----
-99

skipif mysql # not compatible
query I rowsort label-9198
SELECT DISTINCT - MAX ( DISTINCT - - col2 ) FROM tab0
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-9199
SELECT DISTINCT MAX( 12 ) FROM tab1
----
12

skipif mysql # not compatible
query I rowsort label-9199
SELECT DISTINCT MAX ( 12 ) FROM tab1
----
12

query I rowsort
SELECT + col0 * col1 * + col0 AS col2 FROM tab2
----
107916
315392
376875

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9201
SELECT + CAST( + 72 AS SIGNED ) DIV + col2 FROM tab2 AS cor0
----
1
1
3

skipif mysql # not compatible
query I rowsort label-9201
SELECT + CAST ( + 72 AS INTEGER ) / + col2 FROM tab2 AS cor0
----
1
1
3

query I rowsort
SELECT DISTINCT col1 + + 26 FROM tab2 AS cor0
----
103
77
93

onlyif mysql # aggregate syntax: 
query II rowsort label-9203
SELECT DISTINCT - + COUNT( * ) AS col1, MIN( ALL - + 1 ) AS col2 FROM tab1 AS cor0
----
-3
-1

skipif mysql # not compatible
query II rowsort label-9203
SELECT DISTINCT - + COUNT ( * ) AS col1, MIN ( ALL - + 1 ) AS col2 FROM tab1 AS cor0
----
-3
-1

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col2 > - - 37
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9205
SELECT DISTINCT MIN( - ( + col2 ) ) AS col0 FROM tab0
----
-99

skipif mysql # not compatible
query I rowsort label-9205
SELECT DISTINCT MIN ( - ( + col2 ) ) AS col0 FROM tab0
----
-99

query I rowsort
SELECT ALL col0 * + - 59 FROM tab1
----
-3009
-5015
-5369

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9207
SELECT 42 AS col1 FROM tab2 WHERE NOT + ( - col2 ) + col2 + + CAST( - - col1 AS SIGNED ) BETWEEN - col0 - + ( - + 75 ) + 58 * - ( + col2 ) AND ( NULL )
----

skipif mysql # not compatible
query I rowsort label-9207
SELECT 42 AS col1 FROM tab2 WHERE NOT + ( - col2 ) + col2 + + CAST ( - - col1 AS INTEGER ) BETWEEN - col0 - + ( - + 75 ) + 58 * - ( + col2 ) AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9208
SELECT ( - - COUNT( DISTINCT + col0 ) ), COUNT( * ) FROM tab1
----
3
3

skipif mysql # not compatible
query II rowsort label-9208
SELECT ( - - COUNT ( DISTINCT + col0 ) ), COUNT ( * ) FROM tab1
----
3
3

query I rowsort
SELECT DISTINCT ( + 91 ) * + - 3 + - 64 FROM tab2
----
-337

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * + - col1 col0 FROM tab2 AS cor0
----
2346
4928
5025

onlyif mysql # aggregate syntax: 
query I rowsort label-9211
SELECT DISTINCT + SUM( - 81 ) FROM tab1 cor0
----
-243

skipif mysql # not compatible
query I rowsort label-9211
SELECT DISTINCT + SUM ( - 81 ) FROM tab1 cor0
----
-243

query I rowsort
SELECT - - col1 * + + 79 FROM tab2 AS cor0
----
4029
5293
6083

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9213
SELECT + col0 FROM tab0 AS cor0 WHERE NOT - 64 * + CAST( NULL AS SIGNED ) * - col1 IS NOT NULL
----
15
87
97

skipif mysql # not compatible
query I rowsort label-9213
SELECT + col0 FROM tab0 AS cor0 WHERE NOT - 64 * + CAST ( NULL AS INTEGER ) * - col1 IS NOT NULL
----
15
87
97

query I rowsort
SELECT + col1 AS col0 FROM tab0 AS cor0 WHERE NOT ( ( NOT NULL NOT BETWEEN 34 AND ( NULL ) ) )
----

query I rowsort
SELECT ALL col2 * - col0 + - col2 + 32 AS col0 FROM tab1 AS cor0
----
-4960
-5042
-6224

onlyif mysql # DIV for integer division: 
query I rowsort label-9216
SELECT 56 DIV + col0 AS col0 FROM tab2 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-9216
SELECT 56 / + col0 AS col0 FROM tab2 AS cor0
----
0
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9217
SELECT - SUM( + - ( + - 78 ) ) * - ( - COUNT( * ) ) FROM tab1
----
-702

skipif mysql # not compatible
query I rowsort label-9217
SELECT - SUM ( + - ( + - 78 ) ) * - ( - COUNT ( * ) ) FROM tab1
----
-702

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9218
SELECT ALL 6 AS col1, CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
6
NULL
6
NULL
6
NULL

skipif mysql # not compatible
query II rowsort label-9218
SELECT ALL 6 AS col1, CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
6
NULL
6
NULL
6
NULL

query I rowsort
SELECT + col0 * - 95 FROM tab2
----
-4370
-6080
-7125

onlyif mysql # aggregate syntax: 
query I rowsort label-9220
SELECT MAX( DISTINCT - 19 ) FROM tab0
----
-19

skipif mysql # not compatible
query I rowsort label-9220
SELECT MAX ( DISTINCT - 19 ) FROM tab0
----
-19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9221
SELECT + CAST( NULL AS SIGNED ) * + - col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9221
SELECT + CAST ( NULL AS INTEGER ) * + - col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - ( - col1 ) * ( - col1 ) + - col1 FROM tab2
----
-2652
-4556
-6006

query III rowsort
SELECT ALL * FROM tab2 WHERE - ( col1 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9224
SELECT 57 * - COUNT( * ) FROM tab0
----
-171

skipif mysql # not compatible
query I rowsort label-9224
SELECT 57 * - COUNT ( * ) FROM tab0
----
-171

query I rowsort
SELECT DISTINCT 51 * col0 FROM tab2
----
2346
3264
3825

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 74 * + 56 col0 FROM tab1
----
4144
4144
4144

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9227
SELECT ALL * FROM tab0 WHERE + - col0 NOT IN ( - 74 * + + 60 - + + CAST( - + col2 AS SIGNED ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-9227
SELECT ALL * FROM tab0 WHERE + - col0 NOT IN ( - 74 * + + 60 - + + CAST ( - + col2 AS INTEGER ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-9228
SELECT DISTINCT 78 DIV - + col1 FROM tab1
----
-1
-15
-5

skipif mysql # not compatible
query I rowsort label-9228
SELECT DISTINCT 78 / - + col1 FROM tab1
----
-1
-15
-5

query I rowsort
SELECT DISTINCT + col2 + - 50 * - col0 * - 99 FROM tab2 AS cor0
----
-227677
-316760
-371192

onlyif mysql # aggregate syntax: 
query I rowsort label-9230
SELECT ALL MAX( + + 97 ) + + - COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE NULL <> NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9230
SELECT ALL MAX ( + + 97 ) + + - COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE NULL <> NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9231
SELECT ALL + + ( col0 ) DIV ( - - col0 ) * - col0 FROM tab1 AS cor0
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-9231
SELECT ALL + + ( col0 ) / ( - - col0 ) * - col0 FROM tab1 AS cor0
----
-51
-85
-91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9232
SELECT ALL - - 52 * SUM( 34 ) + + COUNT( * ) DIV - + COUNT( * ) AS col1 FROM tab2 AS cor0
----
5303

skipif mysql # not compatible
query I rowsort label-9232
SELECT ALL - - 52 * SUM ( 34 ) + + COUNT ( * ) / - + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
5303

query II rowsort
SELECT DISTINCT + col2 * col1 * + - col1 + col0 AS col2, 50 + + - 21 + + + col2 FROM tab2 AS cor0
----
-237096
69
-260287
87
-59777
52

onlyif mysql # aggregate syntax: 
query II rowsort label-9234
SELECT + ( COUNT( * ) ) col2, COUNT( * ) FROM tab2 AS cor0
----
3
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9234
SELECT + ( COUNT ( * ) ) col2, COUNT ( * ) FROM tab2 AS cor0
----
3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9235
SELECT - MAX( ALL + 71 ) FROM tab1 AS cor0
----
-71

skipif mysql # not compatible
query I rowsort label-9235
SELECT - MAX ( ALL + 71 ) FROM tab1 AS cor0
----
-71

query I rowsort
SELECT ALL - col0 * + col1 + col0 + ( + col2 ) FROM tab1 AS cor0
----
-281
-4118
-567

query I rowsort
SELECT 71 - + + 82 FROM tab0 AS cor0
----
-11
-11
-11

query I rowsort
SELECT ALL col1 * - 46 - 16 + + 67 FROM tab2
----
-2295
-3031
-3491

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL IS NOT NULL AND ( 66 BETWEEN NULL AND - col1 )
----

query I rowsort
SELECT - col1 + - - col2 AS col0 FROM tab2
----
-28
-37
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col0 col2, 64 FROM tab2
----
-46
64
-64
64
-75
64

onlyif mysql # aggregate syntax: 
query I rowsort label-9242
SELECT SUM( 23 ) * + 90 + MIN( DISTINCT + 82 ) + + + 69 AS col1 FROM tab2
----
6361

skipif mysql # not compatible
query I rowsort label-9242
SELECT SUM ( 23 ) * + 90 + MIN ( DISTINCT + 82 ) + + + 69 AS col1 FROM tab2
----
6361

query II rowsort
SELECT DISTINCT 12 AS col2, col1 * + col2 AS col1 FROM tab2 AS cor0
----
12
1173
12
3080
12
3886

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col2 * - - 59 IS NOT NULL
----

query II rowsort
SELECT DISTINCT + col1 AS col0, + 95 * - - 87 + + col0 AS col2 FROM tab0 AS cor0
----
1
8362
21
8352
81
8280

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9246
SELECT DISTINCT + + col0 * col0 * - + ( 11 ) AS col0 FROM tab2 AS cor0 WHERE NOT - 10 BETWEEN NULL AND col1 + + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-9246
SELECT DISTINCT + + col0 * col0 * - + ( 11 ) AS col0 FROM tab2 AS cor0 WHERE NOT - 10 BETWEEN NULL AND col1 + + CAST ( NULL AS INTEGER )
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT NULL < NULL
----

query I rowsort
SELECT DISTINCT - 15 * - - col0 AS col2 FROM tab0 AS cor0 WHERE NOT NULL <> NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - col0 + + col2 NOT BETWEEN col1 + + ( + col0 ) AND col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL > - 89 * - 61 - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9251
SELECT col2 AS col2 FROM tab0 AS cor0 WHERE NOT NULL <= - CAST( NULL AS SIGNED ) - + - col2
----

skipif mysql # not compatible
query I rowsort label-9251
SELECT col2 AS col2 FROM tab0 AS cor0 WHERE NOT NULL <= - CAST ( NULL AS INTEGER ) - + - col2
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col2 >= - col2 * - col2 * + 67
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT DISTINCT col1 * 20, + col0 AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
1620
15
20
97
420
87

query II rowsort
SELECT ALL + col2 AS col2, + 42 AS col1 FROM tab0 AS cor0 WHERE NOT NULL = col1 + + - 78
----

query I rowsort
SELECT DISTINCT + col0 AS col2 FROM tab2 WHERE NOT NULL > NULL
----

query I rowsort
SELECT ALL 6 * + - ( - - col1 ) FROM tab1
----
-282
-30
-84

query I rowsort
SELECT + col2 + + 56 - col1 AS col2 FROM tab2
----
19
28
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 col0 FROM tab2 WHERE ( - 71 ) IS NOT NULL
----
46
64
75

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN col0 * + col0 * - + 51 - + col2 AND - + col2
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9260
SELECT ALL + CAST( + 69 AS SIGNED ) + - COUNT( * ) FROM tab2 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-9260
SELECT ALL + CAST ( + 69 AS INTEGER ) + - COUNT ( * ) FROM tab2 AS cor0
----
66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 26 col0 FROM tab1 AS cor0 WHERE NULL >= + col2 + - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9262
SELECT - MIN( ALL - 77 ) FROM tab2 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-9262
SELECT - MIN ( ALL - 77 ) FROM tab2 AS cor0
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-9263
SELECT - - COUNT( * ) col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9263
SELECT - - COUNT ( * ) col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 1 col1, - 37 * + 22 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
18 values hashing to e13743fed1fec7b613c74959d94920aa

onlyif mysql # aggregate syntax: 
query I rowsort label-9265
SELECT ( + + 81 ) + + COUNT( * ) - + - COUNT( * ) FROM tab0
----
87

skipif mysql # not compatible
query I rowsort label-9265
SELECT ( + + 81 ) + + COUNT ( * ) - + - COUNT ( * ) FROM tab0
----
87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 27 + 54 + + col1 col2 FROM tab2
----
132
148
158

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN + 24 AND NULL
----

query I rowsort
SELECT ALL 57 + 27 * + col0 * + + ( + col1 ) FROM tab1 AS cor0
----
11532
115536
19335

query II rowsort
SELECT DISTINCT + - col2, - col2 AS col2 FROM tab2 AS cor0
----
-23
-23
-40
-40
-58
-58

onlyif mysql # aggregate syntax: 
query II rowsort label-9270
SELECT - 61 col1, ( + + MAX( ALL - col0 ) ) FROM tab2 AS cor0 WHERE NULL NOT BETWEEN ( NULL ) AND + 89
----
-61
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9270
SELECT - 61 col1, ( + + MAX ( ALL - col0 ) ) FROM tab2 AS cor0 WHERE NULL NOT BETWEEN ( NULL ) AND + 89
----
-61
NULL

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + col1 - - + 96 >= col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9272
SELECT DISTINCT + + MIN( DISTINCT - ( - 34 ) ) FROM tab1 AS cor0 WHERE ( NOT - col2 IS NULL )
----
34

skipif mysql # not compatible
query I rowsort label-9272
SELECT DISTINCT + + MIN ( DISTINCT - ( - 34 ) ) FROM tab1 AS cor0 WHERE ( NOT - col2 IS NULL )
----
34

query I rowsort
SELECT ALL 79 + + + col0 * + col0 AS col1 FROM tab1
----
2680
7304
8360

query I rowsort
SELECT DISTINCT + ( + 87 ) AS col2 FROM tab2
----
87

query I rowsort
SELECT DISTINCT - col2 FROM tab0 AS cor0 WHERE NOT 54 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9276
SELECT + MIN( + + col1 ) col1 FROM tab2
----
51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9276
SELECT + MIN ( + + col1 ) col1 FROM tab2
----
51

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9277
SELECT ALL + CAST( NULL AS DECIMAL ) / + 5 * + COUNT( DISTINCT - col2 ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9277
SELECT ALL + CAST ( NULL AS REAL ) / + 5 * + COUNT ( DISTINCT - col2 ) AS col2 FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT - + col2 AS col1 FROM tab0 AS cor0 WHERE NOT col2 - 13 IS NULL
----
-10
-47
-99

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 35 BETWEEN NULL AND - - 92
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 65 col1 FROM tab0 cor0
----
65
65
65

query I rowsort
SELECT - ( + - 22 ) AS col0 FROM tab0 AS cor0
----
22
22
22

onlyif mysql # aggregate syntax: 
query II rowsort label-9282
SELECT COUNT( * ) AS col1, 15 FROM tab1 AS cor0
----
3
15

skipif mysql # not compatible
query II rowsort label-9282
SELECT COUNT ( * ) AS col1, 15 FROM tab1 AS cor0
----
3
15

query I rowsort
SELECT ALL + col1 + + + col0 FROM tab2 AS cor0
----
141
142
97

query I rowsort
SELECT ALL col0 + - 31 AS col0 FROM tab0 cor0 WHERE NOT ( NULL ) >= - 75 - + 39 + - col1 * + col1 + + + col0
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9285
SELECT ALL - 54 + + CAST( NULL AS DECIMAL ) + + - col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9285
SELECT ALL - 54 + + CAST ( NULL AS REAL ) + + - col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col0 AS col0 FROM tab0 AS cor0 WHERE NOT col1 BETWEEN NULL AND + col0 + 36 + col1 * + - col2 * - - 56
----
15
87
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 93 * - col2 col0 FROM tab0
----
-4371
-9207
-930

onlyif mysql # DIV for integer division: 
query I rowsort label-9288
SELECT + 5 DIV + col1 * - + 84 col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9288
SELECT + 5 / + col1 * - + 84 col0 FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT ( + + col0 ) FROM tab2
----
46
64
75

query I rowsort
SELECT 41 * - col2 AS col0 FROM tab1
----
-2419
-2788
-3936

query I rowsort
SELECT DISTINCT + col0 FROM tab0 WHERE + 90 < NULL
----

query I rowsort
SELECT + col0 * col1 * - + col2 + col2 FROM tab0 AS cor0
----
-18260
-57058
-9504

query I rowsort
SELECT - 81 + + - col2 FROM tab1 AS cor0
----
-140
-149
-177

onlyif mysql # aggregate syntax: 
query I rowsort label-9294
SELECT COUNT( * ) * COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE col0 = - 81 * 75
----
0

skipif mysql # not compatible
query I rowsort label-9294
SELECT COUNT ( * ) * COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE col0 = - 81 * 75
----
0

query II rowsort
SELECT + - col1 + - col2 + + col1 * + col2, - col1 AS col0 FROM tab1 cor0
----
1234
-14
231
-5
3081
-47

query I rowsort
SELECT col2 + + col0 * - col0 + - - col2 AS col1 FROM tab1
----
-2409
-7107
-8145

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + + col2 col2 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9298
SELECT - MAX( DISTINCT ( + 20 ) ) AS col0 FROM tab2 WHERE NULL <> NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9298
SELECT - MAX ( DISTINCT ( + 20 ) ) AS col0 FROM tab2 WHERE NULL <> NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * + - col2 col0 FROM tab0 cor0
----
-210
-3807
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-9300
SELECT + MIN( + - 91 ) - + ( - - 70 ) AS col2 FROM tab1 AS cor0
----
-161

skipif mysql # not compatible
query I rowsort label-9300
SELECT + MIN ( + - 91 ) - + ( - - 70 ) AS col2 FROM tab1 AS cor0
----
-161

onlyif mysql # aggregate syntax: 
query I rowsort label-9301
SELECT + MIN( ALL - 5 ) - - 26 * COUNT( * ) FROM tab2 AS cor0
----
73

skipif mysql # not compatible
query I rowsort label-9301
SELECT + MIN ( ALL - 5 ) - - 26 * COUNT ( * ) FROM tab2 AS cor0
----
73

onlyif mysql # aggregate syntax: 
query II rowsort label-9302
SELECT COUNT( * ) - - + COUNT( * ) AS col2, - 50 col1 FROM tab0 AS cor0
----
6
-50

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9302
SELECT COUNT ( * ) - - + COUNT ( * ) AS col2, - 50 col1 FROM tab0 AS cor0
----
6
-50

query I rowsort
SELECT + - col0 - + + col0 FROM tab1 AS cor0
----
-102
-170
-182

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9304
SELECT ALL + CAST( - - ( - col2 ) AS SIGNED ) FROM tab2 AS cor0
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-9304
SELECT ALL + CAST ( - - ( - col2 ) AS INTEGER ) FROM tab2 AS cor0
----
-23
-40
-58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 23 * - col2 + - - col1 col0 FROM tab1 AS cor0
----
-1352
-1517
-2194

onlyif mysql # aggregate syntax: 
query I rowsort label-9306
SELECT ALL - + 37 + - COUNT( 53 ) + + COUNT( * ) AS col2 FROM tab1 AS cor0
----
-37

skipif mysql # not compatible
query I rowsort label-9306
SELECT ALL - + 37 + - COUNT ( 53 ) + + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9307
SELECT - col1 - + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9307
SELECT - col1 - + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - 83 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN NULL AND 31
----

query I rowsort
SELECT col1 - + + 25 AS col1 FROM tab0 AS cor0
----
-24
-4
56

query I rowsort
SELECT - + 29 * - col2 + + - col1 + + col0 - - 6 FROM tab0 cor0
----
1303
2973
362

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9311
SELECT DISTINCT - 65 * - + CAST( NULL AS SIGNED ) + - col2 AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9311
SELECT DISTINCT - 65 * - + CAST ( NULL AS INTEGER ) + - col2 AS col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + + col2 * + 72 - col0 FROM tab2 AS cor0
----
1610
2816
4101

query I rowsort
SELECT ALL + col2 + 38 FROM tab2
----
61
78
96

query III rowsort
SELECT * FROM tab2 WHERE NOT col0 * col0 / + col0 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col1 = NULL
----

query I rowsort
SELECT DISTINCT - col2 FROM tab0 WHERE NULL >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9317
SELECT ALL + col2 / + CAST( NULL AS SIGNED ) - + col2 + - 86 AS col1 FROM tab1 WHERE NOT NULL BETWEEN 68 AND - + 5
----

skipif mysql # not compatible
query I rowsort label-9317
SELECT ALL + col2 / + CAST ( NULL AS INTEGER ) - + col2 + - 86 AS col1 FROM tab1 WHERE NOT NULL BETWEEN 68 AND - + 5
----

query I rowsort
SELECT ALL 62 * - col2 FROM tab2
----
-1426
-2480
-3596

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9319
SELECT * FROM tab0 WHERE NOT - CAST( 55 AS SIGNED ) NOT BETWEEN - + 39 * - col0 / col2 - + 36 * - col0 + + + col1 + + 8 * - col0 AND NULL
----

skipif mysql # not compatible
query III rowsort label-9319
SELECT * FROM tab0 WHERE NOT - CAST ( 55 AS INTEGER ) NOT BETWEEN - + 39 * - col0 / col2 - + 36 * - col0 + + + col1 + + 8 * - col0 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9320
SELECT + CAST( NULL AS SIGNED ) * + ( - col2 ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9320
SELECT + CAST ( NULL AS INTEGER ) * + ( - col2 ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9321
SELECT DISTINCT - col2 DIV col1 col0 FROM tab0 AS cor0
----
-99
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9321
SELECT DISTINCT - col2 / col1 col0 FROM tab0 AS cor0
----
-99
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9322
SELECT ALL - SUM( + CAST( + + col1 AS SIGNED ) ) * - CAST( NULL AS SIGNED ) AS col1 FROM tab1 cor0 WHERE 60 = NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9322
SELECT ALL - SUM ( + CAST ( + + col1 AS INTEGER ) ) * - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 cor0 WHERE 60 = NULL
----
NULL

query I rowsort
SELECT ALL - col0 * - 99 FROM tab1 AS cor0
----
5049
8415
9009

query III rowsort
SELECT ALL * FROM tab2 WHERE col2 + 0 * col1 <> - col2 * col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9325
SELECT - ( + SUM( - col2 ) ) AS col0 FROM tab2
----
121

skipif mysql # not compatible
query I rowsort label-9325
SELECT - ( + SUM ( - col2 ) ) AS col0 FROM tab2
----
121

query I rowsort
SELECT ALL + col0 + - 58 * col0 FROM tab1
----
-2907
-4845
-5187

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( 41 * col2 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( NULL ) NOT BETWEEN NULL AND ( NULL )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT 32 * + col1 >= col2 + + 9
----

query I rowsort
SELECT ( + col2 ) + 22 FROM tab0
----
121
32
69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9331
SELECT DISTINCT - CAST( NULL AS SIGNED ) * COUNT( - ( col1 ) ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9331
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * COUNT ( - ( col1 ) ) FROM tab2
----
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - col1 IN ( 54 * - col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col0 + col1 * 10 FROM tab0
----
107
297
825

query I rowsort
SELECT ALL - 31 * + 5 FROM tab1
----
-155
-155
-155

query I rowsort
SELECT col1 + - col1 FROM tab2 WHERE NOT NULL IN ( - col1 )
----

query I rowsort
SELECT ALL ( ( + col1 ) ) + col0 AS col2 FROM tab0
----
108
96
98

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col1 BETWEEN col2 AND NULL
----

query I rowsort
SELECT col1 * 65 + + 9 AS col2 FROM tab2
----
3324
4364
5014

onlyif mysql # aggregate syntax: 
query I rowsort label-9339
SELECT - SUM( col0 ) * COUNT( * ) FROM tab0
----
-597

skipif mysql # not compatible
query I rowsort label-9339
SELECT - SUM ( col0 ) * COUNT ( * ) FROM tab0
----
-597

onlyif mysql # aggregate syntax: 
query I rowsort label-9340
SELECT 63 - - COUNT( * ) AS col2 FROM tab0
----
66

skipif mysql # not compatible
query I rowsort label-9340
SELECT 63 - - COUNT ( * ) AS col2 FROM tab0
----
66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9341
SELECT DISTINCT + col1 FROM tab1 WHERE 53 + CAST( NULL AS SIGNED ) * col2 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-9341
SELECT DISTINCT + col1 FROM tab1 WHERE 53 + CAST ( NULL AS INTEGER ) * col2 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE 36 - - col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL col2 * ( 30 ) FROM tab2 WHERE + col0 IS NOT NULL
----
1200
1740
690

onlyif mysql # aggregate syntax: 
query I rowsort label-9344
SELECT ALL - MIN( 19 ) FROM tab0
----
-19

skipif mysql # not compatible
query I rowsort label-9344
SELECT ALL - MIN ( 19 ) FROM tab0
----
-19

query III rowsort
SELECT ALL * FROM tab2 WHERE + col2 * col0 + + col0 <> NULL
----

query I rowsort
SELECT DISTINCT + 22 AS col1 FROM tab2 WHERE col1 <= + 17
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 74 * - col2 col2 FROM tab1
----
-4366
-5032
-7104

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT AVG ( + col1 ) col2 FROM tab1 WHERE NOT NULL NOT BETWEEN col2 AND NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9349
SELECT DISTINCT - MIN( 4 ) FROM tab1
----
-4

skipif mysql # not compatible
query I rowsort label-9349
SELECT DISTINCT - MIN ( 4 ) FROM tab1
----
-4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9350
SELECT DISTINCT CAST( 26 AS SIGNED ) * + col0 FROM tab0 cor0
----
2262
2522
390

skipif mysql # not compatible
query I rowsort label-9350
SELECT DISTINCT CAST ( 26 AS INTEGER ) * + col0 FROM tab0 cor0
----
2262
2522
390

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9351
SELECT DISTINCT col0 * + CAST( NULL AS SIGNED ) FROM tab2 AS cor0 WHERE ( NULL ) <= NULL
----

skipif mysql # not compatible
query I rowsort label-9351
SELECT DISTINCT col0 * + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 WHERE ( NULL ) <= NULL
----

query I rowsort
SELECT DISTINCT col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT 84 - - col0 * - ( + col2 ) AS col0 FROM tab1 AS cor0
----
-4812
-4931
-6104

onlyif mysql # DIV for integer division: 
query I rowsort label-9354
SELECT col0 DIV col1 - col0 AS col2 FROM tab2
----
-46
-64
-74

skipif mysql # not compatible
query I rowsort label-9354
SELECT col0 / col1 - col0 AS col2 FROM tab2
----
-46
-64
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-9355
SELECT DISTINCT - COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab2
----
-9

skipif mysql # not compatible
query I rowsort label-9355
SELECT DISTINCT - COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab2
----
-9

query I rowsort
SELECT ALL 11 AS col2 FROM tab1 WHERE NOT ( NULL ) <= NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - ( ( + 68 ) ) >= col0 - + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 97 IN ( + col2 )
----

query I rowsort
SELECT + 74 + + col1 FROM tab1 AS cor0 WHERE 99 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9360
SELECT + + COUNT( * ) + - 31 AS col1 FROM tab2 AS cor0
----
-28

skipif mysql # not compatible
query I rowsort label-9360
SELECT + + COUNT ( * ) + - 31 AS col1 FROM tab2 AS cor0
----
-28

query I rowsort
SELECT - 3 AS col2 FROM tab1 cor0 WHERE - 88 IS NOT NULL
----
-3
-3
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9362
SELECT - SUM( DISTINCT col1 ) * MIN( - 67 ) AS col0 FROM tab2 AS cor0
----
13065

skipif mysql # not compatible
query I rowsort label-9362
SELECT - SUM ( DISTINCT col1 ) * MIN ( - 67 ) AS col0 FROM tab2 AS cor0
----
13065

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col2 * + 81 + 34 IS NOT NULL
----

query I rowsort
SELECT DISTINCT 72 FROM tab1 AS cor0 WHERE col1 IS NOT NULL
----
72

query I rowsort
SELECT - col0 AS col0 FROM tab0 AS cor0 WHERE NOT + 8 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9366
SELECT + MAX( DISTINCT - CAST( NULL AS DECIMAL ) ) FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9366
SELECT + MAX ( DISTINCT - CAST ( NULL AS REAL ) ) FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9367
SELECT - + MAX( ALL 94 ) AS col1 FROM tab1 AS cor0
----
-94

skipif mysql # not compatible
query I rowsort label-9367
SELECT - + MAX ( ALL 94 ) AS col1 FROM tab1 AS cor0
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-9368
SELECT + ( COUNT( * ) ) col0 FROM tab2 cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9368
SELECT + ( COUNT ( * ) ) col0 FROM tab2 cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9369
SELECT ALL * FROM tab1 AS cor0 WHERE CAST( 83 AS SIGNED ) + + 21 IS NULL
----

skipif mysql # not compatible
query III rowsort label-9369
SELECT ALL * FROM tab1 AS cor0 WHERE CAST ( 83 AS INTEGER ) + + 21 IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL IN ( - 60 / + col2 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9371
SELECT DISTINCT ( + MAX( ALL CAST( - CAST( + col0 AS SIGNED ) AS SIGNED ) ) ) AS col2 FROM tab2
----
-46

skipif mysql # not compatible
query I rowsort label-9371
SELECT DISTINCT ( + MAX ( ALL CAST ( - CAST ( + col0 AS INTEGER ) AS INTEGER ) ) ) AS col2 FROM tab2
----
-46

query I rowsort
SELECT + col1 * - col1 AS col2 FROM tab1 WHERE NOT col2 <= ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9373
SELECT DISTINCT 71 DIV 33 FROM tab2
----
2

skipif mysql # not compatible
query I rowsort label-9373
SELECT DISTINCT 71 / 33 FROM tab2
----
2

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col2 + + col0 IS NOT NULL
----

query I rowsort
SELECT + col1 AS col0 FROM tab1 WHERE NOT ( + col2 + 97 ) IN ( 41 * + col1 + - col1 )
----
14
47
5

onlyif mysql # DIV for integer division: 
query I rowsort label-9376
SELECT 54 DIV + col0 AS col0 FROM tab0 AS cor0
----
0
0
3

skipif mysql # not compatible
query I rowsort label-9376
SELECT 54 / + col0 AS col0 FROM tab0 AS cor0
----
0
0
3

query I rowsort
SELECT ALL - - 26 AS col1 FROM tab0 AS cor0
----
26
26
26

query I rowsort
SELECT 5 * + - 68 AS col1 FROM tab1 AS cor0
----
-340
-340
-340

query I rowsort
SELECT ALL - 6 - 71 AS col0 FROM tab2 AS cor0 WHERE NOT 12 / col0 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9380
SELECT DISTINCT CAST( + col0 AS SIGNED ) AS col2 FROM tab2 AS cor0 WHERE NOT col1 BETWEEN + col0 AND col1
----
75

skipif mysql # not compatible
query I rowsort label-9380
SELECT DISTINCT CAST ( + col0 AS INTEGER ) AS col2 FROM tab2 AS cor0 WHERE NOT col1 BETWEEN + col0 AND col1
----
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9381
SELECT DISTINCT - 19 * MAX( - - col2 ) * CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9381
SELECT DISTINCT - 19 * MAX ( - - col2 ) * CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9382
SELECT DISTINCT 92 * - COUNT( - CAST( NULL AS SIGNED ) ) AS col2 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-9382
SELECT DISTINCT 92 * - COUNT ( - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab0
----
0

query I rowsort
SELECT - 25 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 40ac8fd000b2e49317aed2411077839e

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9384
SELECT + CAST( SUM( ALL col0 ) AS SIGNED ) AS col0 FROM tab2 AS cor0
----
185

skipif mysql # not compatible
query I rowsort label-9384
SELECT + CAST ( SUM ( ALL col0 ) AS INTEGER ) AS col0 FROM tab2 AS cor0
----
185

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + col2 >= NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-9386
SELECT + - 43 AS col2, + col2 * col0 DIV - col1 AS col0 FROM tab1 AS cor0
----
-43
-1003
-43
-131
-43
-349

skipif mysql # not compatible
query II rowsort label-9386
SELECT + - 43 AS col2, + col2 * col0 / - col1 AS col0 FROM tab1 AS cor0
----
-43
-1003
-43
-131
-43
-349

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - 75 IS NOT NULL
----

query I rowsort
SELECT col0 * + + col2 * 70 AS col1 FROM tab0
----
49350
60900
672210

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + - - 51 col0 FROM tab1
----
56
65
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9390
SELECT DISTINCT - CAST( - COUNT( * ) AS SIGNED ) AS col1 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-9390
SELECT DISTINCT - CAST ( - COUNT ( * ) AS INTEGER ) AS col1 FROM tab0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + - 5 col1 FROM tab0 AS cor0 WHERE ( + + 37 / + col0 IS NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9392
SELECT ALL - - 83 + + CAST( - + col1 AS SIGNED ) + - 96 * col0 FROM tab2 AS cor0
----
-4384
-6138
-7184

skipif mysql # not compatible
query I rowsort label-9392
SELECT ALL - - 83 + + CAST ( - + col1 AS INTEGER ) + - 96 * col0 FROM tab2 AS cor0
----
-4384
-6138
-7184

query I rowsort
SELECT ALL - - col2 + - + 23 FROM tab1 AS cor0
----
36
45
73

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 67 + - 71 col1 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
-138

query I rowsort
SELECT DISTINCT col0 / col0 AS col1 FROM tab1 WHERE NOT col2 + - - ( + 46 ) IS NOT NULL
----

query II rowsort
SELECT DISTINCT 49 - - + 72 - + - col0, + col2 AS col1 FROM tab2
----
167
23
185
40
196
58

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE - 66 IS NULL
----

query I rowsort
SELECT DISTINCT col2 * 50 FROM tab1 WHERE - 43 NOT BETWEEN ( + 8 ) AND ( NULL )
----
2950
3400
4800

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab0 cor1 WHERE NULL <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9400
SELECT ALL 58 * - CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9400
SELECT ALL 58 * - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - ( - + 56 ) FROM tab1 AS cor0
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-9402
SELECT DISTINCT MAX( ALL 76 ) AS col1 FROM tab2 AS cor0
----
76

skipif mysql # not compatible
query I rowsort label-9402
SELECT DISTINCT MAX ( ALL 76 ) AS col1 FROM tab2 AS cor0
----
76

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT NULL NOT BETWEEN + col2 AND NULL AND + col2 * + 58 BETWEEN col0 AND + 70
----

query II rowsort
SELECT DISTINCT + - 68, 46 * col2 AS col0 FROM tab1 AS cor0
----
-68
2714
-68
3128
-68
4416

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9405
SELECT col0 * - CAST( NULL AS SIGNED ) AS col0 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9405
SELECT col0 * - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col2 AS col0 FROM tab0 AS cor0 WHERE NOT col0 NOT IN ( col1 * + - col0 )
----

query I rowsort
SELECT ALL col2 * + 70 + col1 + + + col2 AS col0 FROM tab2 AS cor0
----
1684
2917
4185

onlyif mysql # aggregate syntax: 
query I rowsort label-9408
SELECT - SUM( ALL col2 ) col1 FROM tab0 AS cor0
----
-156

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9408
SELECT - SUM ( ALL col2 ) col1 FROM tab0 AS cor0
----
-156

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 55 BETWEEN + ( + 33 ) AND NULL
----

query I rowsort
SELECT DISTINCT 93 AS col0 FROM tab2, tab0 AS cor0
----
93

query III rowsort
SELECT ALL * FROM tab0 WHERE ( 40 + 26 IS NULL )
----

query I rowsort
SELECT ALL col2 * col2 * + - col2 AS col2 FROM tab0
----
-1000
-103823
-970299

query III rowsort
SELECT * FROM tab0 WHERE NOT - 68 + 80 NOT BETWEEN - col1 * - + 65 AND col1 + + 33
----

query II rowsort
SELECT col0 AS col0, col0 * + col2 FROM tab2
----
46
1058
64
2560
75
4350

query I rowsort
SELECT + 72 / - col0 AS col1 FROM tab1 WHERE NOT - col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT col2 * - + col2 FROM tab2
----
-1600
-3364
-529

query II rowsort
SELECT DISTINCT - 92 * - 90, 83 * - - 2 * + col0 AS col1 FROM tab1
----
8280
14110
8280
15106
8280
8466

onlyif mysql # DIV for integer division: 
query I rowsort label-9418
SELECT ALL col2 DIV + - col1 AS col1 FROM tab1
----
-1
-11
-6

skipif mysql # not compatible
query I rowsort label-9418
SELECT ALL col2 / + - col1 AS col1 FROM tab1
----
-1
-11
-6

query II rowsort
SELECT ALL + - col1 AS col0, - col1 AS col2 FROM tab1 AS cor0
----
-14
-14
-47
-47
-5
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-9420
SELECT + - 42 * COUNT( * ) FROM tab1 AS cor0
----
-126

skipif mysql # not compatible
query I rowsort label-9420
SELECT + - 42 * COUNT ( * ) FROM tab1 AS cor0
----
-126

query III rowsort
SELECT DISTINCT - + 2 AS col1, 28 AS col1, + 33 FROM tab0 cor0
----
-2
28
33

query I rowsort
SELECT DISTINCT - + 85 * - col2 FROM tab0 AS cor0 WHERE NOT + col1 + + col1 * + - col2 >= - col0
----
3995
8415
850

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9423
SELECT DISTINCT - COUNT( DISTINCT + col0 ) DIV 75 AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-9423
SELECT DISTINCT - COUNT ( DISTINCT + col0 ) / 75 AS col2 FROM tab1
----
0

query II rowsort
SELECT ALL 54 * + col2 AS col0, col2 FROM tab1
----
3186
59
3672
68
5184
96

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col2 IN ( + col1 * col0 + 30 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT 1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
1

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 82 + col2 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9428
SELECT DISTINCT col1 DIV - 42 + - 13 FROM tab1 AS cor0
----
-13
-14

skipif mysql # not compatible
query I rowsort label-9428
SELECT DISTINCT col1 / - 42 + - 13 FROM tab1 AS cor0
----
-13
-14

query I rowsort
SELECT ALL - - 42 + + col1 FROM tab0 AS cor0
----
123
43
63

onlyif mysql # DIV for integer division: 
query I rowsort label-9430
SELECT - col2 DIV + + col1 * - col0 + - col2 + - col2 AS col2 FROM tab2 AS cor0
----
-116
-46
-80

skipif mysql # not compatible
query I rowsort label-9430
SELECT - col2 / + + col1 * - col0 + - col2 + - col2 AS col2 FROM tab2 AS cor0
----
-116
-46
-80

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col0 NOT IN ( - col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col1 = + 2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9433
SELECT ALL + ( col1 ) AS col2 FROM tab1 AS cor0 WHERE 81 * + CAST( + 95 AS SIGNED ) * col2 > NULL
----

skipif mysql # not compatible
query I rowsort label-9433
SELECT ALL + ( col1 ) AS col2 FROM tab1 AS cor0 WHERE 81 * + CAST ( + 95 AS INTEGER ) * col2 > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9434
SELECT * FROM tab2 AS cor0 WHERE + col2 <> ( + 99 + - + col1 * col0 * + - CAST( - CAST( + col1 AS SIGNED ) AS SIGNED ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-9434
SELECT * FROM tab2 AS cor0 WHERE + col2 <> ( + 99 + - + col1 * col0 * + - CAST ( - CAST ( + col1 AS INTEGER ) AS INTEGER ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9435
SELECT ALL + COUNT( * ) * - 54 * + 75 AS col1 FROM tab0 AS cor0
----
-12150

skipif mysql # not compatible
query I rowsort label-9435
SELECT ALL + COUNT ( * ) * - 54 * + 75 AS col1 FROM tab0 AS cor0
----
-12150

query I rowsort
SELECT col2 + - 2 AS col0 FROM tab2
----
21
38
56

onlyif mysql # DIV for integer division: 
query I rowsort label-9437
SELECT ALL + 86 DIV col0 AS col1 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-9437
SELECT ALL + 86 / col0 AS col1 FROM tab2
----
1
1
1

query I rowsort
SELECT + col0 * - ( + - ( col2 ) ) FROM tab1
----
4896
5015
6188

onlyif mysql # aggregate syntax: 
query II rowsort label-9439
SELECT DISTINCT + 26 AS col0, COUNT( * ) FROM tab1
----
26
3

skipif mysql # not compatible
query II rowsort label-9439
SELECT DISTINCT + 26 AS col0, COUNT ( * ) FROM tab1
----
26
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9440
SELECT MIN( ALL + col0 ) FROM tab1
----
51

skipif mysql # not compatible
query I rowsort label-9440
SELECT MIN ( ALL + col0 ) FROM tab1
----
51

query III rowsort
SELECT * FROM tab1 WHERE NULL NOT IN ( 78, - col2 )
----

query I rowsort
SELECT DISTINCT ( + - 83 ) AS col0 FROM tab1
----
-83

query I rowsort
SELECT DISTINCT + + 79 FROM tab1 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( 17 * + + 19 / col0 * col0 + - col0 - + col2 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9445
SELECT DISTINCT ( SUM( - - col0 ) ) * 89 - + 69 FROM tab1 AS cor0
----
20134

skipif mysql # not compatible
query I rowsort label-9445
SELECT DISTINCT ( SUM ( - - col0 ) ) * 89 - + 69 FROM tab1 AS cor0
----
20134

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9446
SELECT - CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-9446
SELECT - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # aggregate syntax: 
query I rowsort label-9447
SELECT ALL COUNT( * ) - + 98 * + MAX( - col2 ) FROM tab0
----
983

skipif mysql # not compatible
query I rowsort label-9447
SELECT ALL COUNT ( * ) - + 98 * + MAX ( - col2 ) FROM tab0
----
983

query I rowsort
SELECT - + 35 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to c12e8bdd687c9040a5600dab3b6adf5b

query I rowsort
SELECT ALL 66 AS col2 FROM tab1 AS cor0
----
66
66
66

query I rowsort
SELECT - 22 AS col0 FROM tab1 AS cor0 WHERE NOT 57 * + col0 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9451
SELECT COUNT( * ) * + - MAX( DISTINCT + - col2 ) FROM tab1 cor0
----
177

skipif mysql # not compatible
query I rowsort label-9451
SELECT COUNT ( * ) * + - MAX ( DISTINCT + - col2 ) FROM tab1 cor0
----
177

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col2 <> - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9453
SELECT ALL + COUNT( col2 ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9453
SELECT ALL + COUNT ( col2 ) AS col1 FROM tab1 AS cor0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-9454
SELECT - col2 DIV 47 AS col2 FROM tab2
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-9454
SELECT - col2 / 47 AS col2 FROM tab2
----
-1
0
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + 46 + + col0 * - - col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9456
SELECT ALL COUNT( + col0 ) * - COUNT( + 63 ) AS col0 FROM tab1
----
-9

skipif mysql # not compatible
query I rowsort label-9456
SELECT ALL COUNT ( + col0 ) * - COUNT ( + 63 ) AS col0 FROM tab1
----
-9

query II rowsort
SELECT ALL col0, col2 FROM tab0
----
15
47
87
10
97
99

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9458
SELECT DISTINCT * FROM tab0 WHERE - 96 + - + CAST( 65 AS SIGNED ) BETWEEN - col2 AND ( - col1 * 40 * - col0 / + col2 + ( 64 ) / col0 + 63 )
----

skipif mysql # not compatible
query III rowsort label-9458
SELECT DISTINCT * FROM tab0 WHERE - 96 + - + CAST ( 65 AS INTEGER ) BETWEEN - col2 AND ( - col1 * 40 * - col0 / + col2 + ( 64 ) / col0 + 63 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9459
SELECT ALL + COUNT( * ) - + - 62 * + COUNT( ALL + + col0 ) FROM tab0 WHERE NULL IS NULL
----
189

skipif mysql # not compatible
query I rowsort label-9459
SELECT ALL + COUNT ( * ) - + - 62 * + COUNT ( ALL + + col0 ) FROM tab0 WHERE NULL IS NULL
----
189

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col2 * + 12 + - - ( + 96 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9461
SELECT DISTINCT MAX( + col1 ) col2 FROM tab1 AS cor0
----
47

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9461
SELECT DISTINCT MAX ( + col1 ) col2 FROM tab1 AS cor0
----
47

query I rowsort
SELECT + 91 / - col1 * ( 61 ) FROM tab2 AS cor0 WHERE NOT NULL BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT + col0 * - col2 * col0 + col2 FROM tab2 AS cor0
----
-163800
-326192
-48645

onlyif mysql # aggregate syntax: 
query I rowsort label-9464
SELECT COUNT( * ) * - + 9 FROM tab0 AS cor0
----
-27

skipif mysql # not compatible
query I rowsort label-9464
SELECT COUNT ( * ) * - + 9 FROM tab0 AS cor0
----
-27

query I rowsort
SELECT 0 + + - col2 FROM tab0 AS cor0
----
-10
-47
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9466
SELECT DISTINCT - ( + ( col0 ) ) * CAST( 63 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-3213
-5355
-5733

skipif mysql # not compatible
query I rowsort label-9466
SELECT DISTINCT - ( + ( col0 ) ) * CAST ( 63 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-3213
-5355
-5733

query I rowsort
SELECT - ( + col0 ) + - + col0 FROM tab1
----
-102
-170
-182

query II rowsort
SELECT ALL - col2 AS col2, - col0 + col2 FROM tab1
----
-59
-26
-68
-23
-96
45

query I rowsort
SELECT DISTINCT - col0 + col1 FROM tab1 WHERE NOT ( col2 ) <= NULL
----

query II rowsort
SELECT + + col0 / + col2 AS col0, - ( - col2 ) * col0 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9471
SELECT DISTINCT COUNT( * ), + COUNT( * ) AS col0 FROM tab0 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-9471
SELECT DISTINCT COUNT ( * ), + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9472
SELECT + MIN( - - 57 ) col1 FROM tab1 AS cor0
----
57

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9472
SELECT + MIN ( - - 57 ) col1 FROM tab1 AS cor0
----
57

query I rowsort
SELECT ALL - 14 + + - col2 FROM tab1 cor0
----
-110
-73
-82

query I rowsort
SELECT - col1 / - col2 / + col0 * col2 FROM tab0 AS cor0 WHERE NULL >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9475
SELECT + SUM( DISTINCT - 79 ) AS col1 FROM tab0 AS cor0
----
-79

skipif mysql # not compatible
query I rowsort label-9475
SELECT + SUM ( DISTINCT - 79 ) AS col1 FROM tab0 AS cor0
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-9476
SELECT ALL - COUNT( * ) + - 42 FROM tab0 AS cor0
----
-45

skipif mysql # not compatible
query I rowsort label-9476
SELECT ALL - COUNT ( * ) + - 42 FROM tab0 AS cor0
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-9477
SELECT ALL - COUNT( * ) - + - COUNT( * ) * + + 42 AS col2 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-9477
SELECT ALL - COUNT ( * ) - + - COUNT ( * ) * + + 42 AS col2 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9478
SELECT DISTINCT + MAX( ALL - ( - 6 ) ) + + + COUNT( ALL 86 ) AS col1 FROM tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-9478
SELECT DISTINCT + MAX ( ALL - ( - 6 ) ) + + + COUNT ( ALL 86 ) AS col1 FROM tab2 AS cor0
----
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 65 * - col0 - - - 82 - col1 col0 FROM tab2 AS cor0
----
-3123
-4319
-5024

query I rowsort
SELECT DISTINCT + 25 + - - col2 FROM tab1
----
121
84
93

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9481
SELECT DISTINCT * FROM tab1 WHERE ( - CAST( + col2 AS SIGNED ) = NULL )
----

skipif mysql # not compatible
query III rowsort label-9481
SELECT DISTINCT * FROM tab1 WHERE ( - CAST ( + col2 AS INTEGER ) = NULL )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE ( NOT ( NULL IS NULL ) )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + col2 >= ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9484
SELECT + MAX( ALL - + col2 ) + - - SUM( DISTINCT - ( col0 ) ) + + COUNT( * ) FROM tab2
----
-205

skipif mysql # not compatible
query I rowsort label-9484
SELECT + MAX ( ALL - + col2 ) + - - SUM ( DISTINCT - ( col0 ) ) + + COUNT ( * ) FROM tab2
----
-205

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9485
SELECT + ( - - MAX( DISTINCT + ( + - col1 ) ) ) + + + CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9485
SELECT + ( - - MAX ( DISTINCT + ( + - col1 ) ) ) + + + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9486
SELECT DISTINCT * FROM tab1 WHERE NOT CAST( - 21 AS SIGNED ) / + + 68 * col1 * - col2 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-9486
SELECT DISTINCT * FROM tab1 WHERE NOT CAST ( - 21 AS INTEGER ) / + + 68 * col1 * - col2 IS NOT NULL
----

query II rowsort
SELECT col0 + - + col2 AS col1, 13 * + + col1 * + col2 AS col1 FROM tab2 cor0
----
17
50518
23
15249
24
40040

query I rowsort
SELECT DISTINCT - - col1 * - col0 FROM tab0 AS cor0 WHERE NOT + col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9489
SELECT ALL + MAX( + 80 ) AS col1 FROM tab2
----
80

skipif mysql # not compatible
query I rowsort label-9489
SELECT ALL + MAX ( + 80 ) AS col1 FROM tab2
----
80

query III rowsort
SELECT * FROM tab2 WHERE NOT - col2 * col2 / - + 70 >= + + 63 / - ( col2 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9491
SELECT + MIN( DISTINCT col2 ) * - COUNT( * ) AS col2, 13 AS col2 FROM tab2 cor0
----
-69
13

skipif mysql # not compatible
query II rowsort label-9491
SELECT + MIN ( DISTINCT col2 ) * - COUNT ( * ) AS col2, 13 AS col2 FROM tab2 cor0
----
-69
13

onlyif mysql # aggregate syntax: 
query I rowsort label-9492
SELECT ALL + ( COUNT( * ) ) AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9492
SELECT ALL + ( COUNT ( * ) ) AS col2 FROM tab2 AS cor0
----
3

query I rowsort
SELECT ALL ( 68 ) FROM tab1 AS cor0
----
68
68
68

onlyif mysql # DIV for integer division: 
query I rowsort label-9494
SELECT ALL - 55 DIV + col0 AS col0 FROM tab0 AS cor0
----
-3
0
0

skipif mysql # not compatible
query I rowsort label-9494
SELECT ALL - 55 / + col0 AS col0 FROM tab0 AS cor0
----
-3
0
0

query I rowsort
SELECT - 37 * + col2 FROM tab2 AS cor0
----
-1480
-2146
-851

onlyif mysql # aggregate syntax: 
query I rowsort label-9496
SELECT MIN( + + col1 ) col1 FROM tab0 cor0
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9496
SELECT MIN ( + + col1 ) col1 FROM tab0 cor0
----
1

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( col2 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - ( + - 3 ) AS col2 FROM tab2 AS cor0
----
3
3
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9499
SELECT ALL - CAST( - - 32 AS SIGNED ) FROM tab1 AS cor0
----
-32
-32
-32

skipif mysql # not compatible
query I rowsort label-9499
SELECT ALL - CAST ( - - 32 AS INTEGER ) FROM tab1 AS cor0
----
-32
-32
-32

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE 81 = - - 20 * col2 * + 31
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + col1 - col2 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT + ( - 60 ) * + 68 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query II rowsort label-9503
SELECT - MIN( + + 83 ) AS col1, 96 FROM tab2
----
-83
96

skipif mysql # not compatible
query II rowsort label-9503
SELECT - MIN ( + + 83 ) AS col1, 96 FROM tab2
----
-83
96

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - 34 / - + 53 > NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL NOT IN ( + - col2, + col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9506
SELECT + col0 + - - col1 + + ( col1 ) + ( CAST( 8 AS SIGNED ) ) * col1 - 70 AS col2, + col1 + + col1 AS col2 FROM tab1
----
121
28
491
94
65
10

skipif mysql # not compatible
query II rowsort label-9506
SELECT + col0 + - - col1 + + ( col1 ) + ( CAST ( 8 AS INTEGER ) ) * col1 - 70 AS col2, + col1 + + col1 AS col2 FROM tab1
----
121
28
491
94
65
10

onlyif mysql # aggregate syntax: 
query II rowsort label-9507
SELECT ALL COUNT( + 59 ) AS col2, 13 FROM tab0
----
3
13

skipif mysql # not compatible
query II rowsort label-9507
SELECT ALL COUNT ( + 59 ) AS col2, 13 FROM tab0
----
3
13

query I rowsort
SELECT DISTINCT + 73 FROM tab1 AS cor0 WHERE NOT ( NULL ) >= - 37 * - 8
----

query I rowsort
SELECT ALL 44 + - 51 FROM tab2 cor0
----
-7
-7
-7

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col0 IS NULL OR NOT - col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9511
SELECT - CAST( NULL AS DECIMAL ) + - 62 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9511
SELECT - CAST ( NULL AS REAL ) + - 62 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col0 * - - 98 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9513
SELECT 39 * - - ( + COUNT( * ) ) FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-9513
SELECT 39 * - - ( + COUNT ( * ) ) FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
0

query I rowsort
SELECT ALL + + col1 + + + 29 + col2 * + col1 FROM tab0 AS cor0
----
129
260
3917

query I rowsort
SELECT DISTINCT col1 - + 54 AS col2 FROM tab2
----
-3
13
23

query I rowsort
SELECT col2 * ( - - 42 ) FROM tab1
----
2478
2856
4032

query I rowsort
SELECT ALL + 91 - col2 FROM tab1
----
-5
23
32

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 col2, + col0 FROM tab2
----
-51
46
-67
75
-77
64

query II rowsort
SELECT - 62 AS col1, col2 FROM tab2
----
-62
23
-62
40
-62
58

query I rowsort
SELECT col1 * - 75 AS col1 FROM tab2
----
-3825
-5025
-5775

query II rowsort
SELECT DISTINCT + col2 AS col2, col1 + ( - col2 ) + - col0 * + + col0 FROM tab0
----
10
-7558
47
-191
99
-9507

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9522
SELECT + 62 AS col2, 63 * - + CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
62
NULL
62
NULL
62
NULL

skipif mysql # not compatible
query II rowsort label-9522
SELECT + 62 AS col2, 63 * - + CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
62
NULL
62
NULL
62
NULL

query I rowsort
SELECT DISTINCT - 64 - - + col0 AS col2 FROM tab0
----
-49
23
33

query I rowsort
SELECT DISTINCT + col1 * ( + - col0 ) FROM tab2
----
-2346
-4928
-5025

query I rowsort
SELECT DISTINCT - col2 FROM tab2 AS cor0 WHERE NOT + col1 * - 77 * 57 < + 94
----

query II rowsort
SELECT DISTINCT + col1 AS col0, 89 FROM tab0 AS cor0
----
1
89
21
89
81
89

query I rowsort
SELECT ALL - col0 FROM tab0 WHERE NULL <= - - col1 * col0
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9528
SELECT DISTINCT MAX( - + col1 ) AS col0, + COUNT( - + 42 ) * COUNT( * ) AS col2 FROM tab1
----
-5
9

skipif mysql # not compatible
query II rowsort label-9528
SELECT DISTINCT MAX ( - + col1 ) AS col0, + COUNT ( - + 42 ) * COUNT ( * ) AS col2 FROM tab1
----
-5
9

query I rowsort
SELECT DISTINCT col0 FROM tab0 WHERE NOT ( + + ( - col0 ) ) + - + col2 IN ( - + 11 + - col0 - + col0 + col0 + + 87 * - col1 + + + col0 + + col0 * - 81 + - col2 * 19 / col2 )
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-9530
SELECT + + 98 * - - MIN( ALL + 2 ) AS col2 FROM tab0 AS cor0
----
196

skipif mysql # not compatible
query I rowsort label-9530
SELECT + + 98 * - - MIN ( ALL + 2 ) AS col2 FROM tab0 AS cor0
----
196

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9531
SELECT DISTINCT - + COUNT( * ) * - CAST( NULL AS SIGNED ) col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9531
SELECT DISTINCT - + COUNT ( * ) * - CAST ( NULL AS INTEGER ) col2 FROM tab2 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9532
SELECT DISTINCT - col2 DIV - 94 FROM tab1 cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-9532
SELECT DISTINCT - col2 / - 94 FROM tab1 cor0
----
0
1

query I rowsort
SELECT ALL + + ( - - col0 ) FROM tab0 AS cor0
----
15
87
97

query I rowsort
SELECT + 6 * + 27 AS col0 FROM tab0 cor0
----
162
162
162

query I rowsort
SELECT + - col2 * - ( - col0 ) AS col2 FROM tab2 cor0
----
-1058
-2560
-4350

onlyif mysql # aggregate syntax: 
query I rowsort label-9536
SELECT ALL + COUNT( col2 ) AS col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9536
SELECT ALL + COUNT ( col2 ) AS col2 FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9537
SELECT COUNT( + col0 ) AS col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9537
SELECT COUNT ( + col0 ) AS col0 FROM tab1 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9538
SELECT - - col1 * - + CAST( NULL AS SIGNED ) - - 73 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9538
SELECT - - col1 * - + CAST ( NULL AS INTEGER ) - - 73 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col1 + + - col2 + - col0 AS col0 FROM tab0 AS cor0
----
-118
-143
-197

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 83 col1 FROM tab1
----
-83
-83
-83

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL BETWEEN - col0 AND - 63 - ( + col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + - col0 / + ( + 79 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT DISTINCT 36 AS col1, + 67 - + col0 * - ( - col1 ) FROM tab2
----
36
-2279
36
-4861
36
-4958

query I rowsort
SELECT DISTINCT col1 AS col2 FROM tab1 AS cor0 WHERE NOT col0 BETWEEN + + col0 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9545
SELECT + CAST( NULL AS SIGNED ) * + col0 + col1 * col2 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-9545
SELECT + CAST ( NULL AS INTEGER ) * + col0 + col1 * col2 col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9546
SELECT - COUNT( DISTINCT - col0 ) + - ( + CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9546
SELECT - COUNT ( DISTINCT - col0 ) + - ( + CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT col1 + - ( + 7 ) * + + 69 + + + 31 FROM tab0 AS cor0
----
-371
-431
-451

query I rowsort
SELECT DISTINCT - col0 + - + 11 * + col1 AS col2 FROM tab1 AS cor0
----
-140
-205
-608

onlyif mysql # aggregate syntax: 
query I rowsort label-9549
SELECT - 71 + SUM( - col0 ) FROM tab0
----
-270

skipif mysql # not compatible
query I rowsort label-9549
SELECT - 71 + SUM ( - col0 ) FROM tab0
----
-270

query I rowsort
SELECT - col2 - + - col0 AS col0 FROM tab2 WHERE - 75 <= - - col1
----
17
23
24

query I rowsort
SELECT + + 18 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to b95bafa733666df39c5d3f94760d010f

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9553
SELECT MAX( + - ( - col0 ) ) AS col2 FROM tab0 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-9553
SELECT MAX ( + - ( - col0 ) ) AS col2 FROM tab0 AS cor0
----
97

onlyif mysql # DIV for integer division: 
query I rowsort label-9554
SELECT - - col2 DIV col2 + + 35 FROM tab2 cor0
----
36
36
36

skipif mysql # not compatible
query I rowsort label-9554
SELECT - - col2 / col2 + + 35 FROM tab2 cor0
----
36
36
36

query I rowsort
SELECT - 0 * + ( col1 ) FROM tab0 AS cor0
----
0
0
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 3 + - 90 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9557
SELECT + CAST( NULL AS SIGNED ) - - COUNT( ALL + - col1 ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9557
SELECT + CAST ( NULL AS INTEGER ) - - COUNT ( ALL + - col1 ) AS col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT + - ( + + 58 ) - - col2 AS col2 FROM tab0 AS cor0
----
-11
-48
41

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NOT 64 - - 29 + - 66 - - col0 * - col0 IS NOT NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9560
SELECT DISTINCT + - col2 * col1 AS col1, col0 * + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
-210
NULL
-3807
NULL
-99
NULL

skipif mysql # not compatible
query II rowsort label-9560
SELECT DISTINCT + - col2 * col1 AS col1, col0 * + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
-210
NULL
-3807
NULL
-99
NULL

query I rowsort
SELECT DISTINCT + col1 + + + col2 + - - col2 AS col2 FROM tab2 AS cor0
----
157
183
97

query I rowsort
SELECT DISTINCT + col0 - - col0 * col0 AS col1 FROM tab1 AS cor0
----
2652
7310
8372

query I rowsort
SELECT + + 97 - + col2 FROM tab1 AS cor0
----
1
29
38

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9564
SELECT ALL * FROM tab1 WHERE + - CAST( - - col1 AS SIGNED ) NOT BETWEEN + + col1 AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-9564
SELECT ALL * FROM tab1 WHERE + - CAST ( - - col1 AS INTEGER ) NOT BETWEEN + + col1 AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9565
SELECT + CAST( NULL AS DECIMAL ) + 9 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9565
SELECT + CAST ( NULL AS REAL ) + 9 AS col2 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9566
SELECT DISTINCT * FROM tab0 WHERE col0 * - CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-9566
SELECT DISTINCT * FROM tab0 WHERE col0 * - CAST ( NULL AS INTEGER ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9567
SELECT ALL col1 + + col2 DIV 74 * - col0 + col1 FROM tab0
----
-95
162
42

skipif mysql # not compatible
query I rowsort label-9567
SELECT ALL col1 + + col2 / 74 * - col0 + col1 FROM tab0
----
-95
162
42

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9568
SELECT DISTINCT + ( - 98 ) - - 17, COUNT( * ) DIV + - COUNT( * ) AS col0 FROM tab2
----
-81
-1

skipif mysql # not compatible
query II rowsort label-9568
SELECT DISTINCT + ( - 98 ) - - 17, COUNT ( * ) / + - COUNT ( * ) AS col0 FROM tab2
----
-81
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 9 + - col0 col1 FROM tab1 WHERE NULL IN ( - 25 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9570
SELECT ALL COUNT( * ) * - + ( + COUNT( * ) ) FROM tab1
----
-9

skipif mysql # not compatible
query I rowsort label-9570
SELECT ALL COUNT ( * ) * - + ( + COUNT ( * ) ) FROM tab1
----
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * + 73 col2 FROM tab1
----
4307
4964
7008

query I rowsort
SELECT col0 * + + 69 * - col1 * - col0 FROM tab2
----
21762048
26004375
7446204

query I rowsort
SELECT + 43 * + 24 AS col0 FROM tab2 AS cor0
----
1032
1032
1032

onlyif mysql # aggregate syntax: 
query I rowsort label-9574
SELECT ( + COUNT( * ) ) * - COUNT( * ) AS col0 FROM tab0 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-9574
SELECT ( + COUNT ( * ) ) * - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-9575
SELECT DISTINCT + MAX( ALL - col0 ) FROM tab1 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-9575
SELECT DISTINCT + MAX ( ALL - col0 ) FROM tab1 AS cor0
----
-51

query I rowsort
SELECT DISTINCT + col2 AS col1 FROM tab2 AS cor0 WHERE col0 NOT BETWEEN - 0 + - + col0 + - + col0 AND NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL <= - - 28
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9578
SELECT DISTINCT COUNT( * ), 88 AS col1 FROM tab2, tab2 cor0
----
9
88

skipif mysql # not compatible
query II rowsort label-9578
SELECT DISTINCT COUNT ( * ), 88 AS col1 FROM tab2, tab2 cor0
----
9
88

query I rowsort
SELECT ALL - 69 * - - 75 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 2bd96c408a2d837f16c030a7cc01dcea

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL NOT IN ( 17 )
----

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL BETWEEN 91 AND NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9582
SELECT + COUNT( * ) * + + COUNT( * ) DIV - 88 + + COUNT( * ) + + + 32 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
41

skipif mysql # not compatible
query I rowsort label-9582
SELECT + COUNT ( * ) * + + COUNT ( * ) / - 88 + + COUNT ( * ) + + + 32 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
41

query I rowsort
SELECT DISTINCT - - col0 * + + 21 AS col0 FROM tab1 AS cor0
----
1071
1785
1911

onlyif mysql # aggregate syntax: 
query I rowsort label-9584
SELECT DISTINCT + + MAX( - col1 ) AS col1 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-9584
SELECT DISTINCT + + MAX ( - col1 ) AS col1 FROM tab0 AS cor0
----
-1

query I rowsort
SELECT + + 51 AS col2 FROM tab2 cor0 WHERE NOT col0 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - 60 + - col2 + + 11 * + - col1 * col0 * + - col0 AS col2 FROM tab1 AS cor0 WHERE NULL = - ( + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9587
SELECT 89 * COUNT( * ) FROM tab0 AS cor0
----
267

skipif mysql # not compatible
query I rowsort label-9587
SELECT 89 * COUNT ( * ) FROM tab0 AS cor0
----
267

query II rowsort
SELECT col1, - col1 AS col0 FROM tab1 AS cor0
----
14
-14
47
-47
5
-5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9589
SELECT ALL COUNT( * ) DIV COUNT( * ) FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-9589
SELECT ALL COUNT ( * ) / COUNT ( * ) FROM tab0 AS cor0
----
1

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE + col1 * - col0 NOT IN ( - + col0 )
----
15
81
47
87
21
10

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9591
SELECT DISTINCT + MAX( DISTINCT - - 17 ) DIV - SUM( ALL - 8 ) AS col1, 63 FROM tab0 cor0
----
0
63

skipif mysql # not compatible
query II rowsort label-9591
SELECT DISTINCT + MAX ( DISTINCT - - 17 ) / - SUM ( ALL - 8 ) AS col1, 63 FROM tab0 cor0
----
0
63

onlyif mysql # aggregate syntax: 
query I rowsort label-9592
SELECT ALL - COUNT( * ) col1 FROM tab1 cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9592
SELECT ALL - COUNT ( * ) col1 FROM tab1 cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-3

query I rowsort
SELECT 40 * - col1 + - + col2 FROM tab1 AS cor0
----
-1948
-259
-656

onlyif mysql # aggregate syntax: 
query I rowsort label-9594
SELECT DISTINCT - MAX( DISTINCT + 54 ) + 85 FROM tab1 cor0
----
31

skipif mysql # not compatible
query I rowsort label-9594
SELECT DISTINCT - MAX ( DISTINCT + 54 ) + 85 FROM tab1 cor0
----
31

query I rowsort
SELECT - 50 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-50
-50
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-9596
SELECT ALL + MIN( + + ( col1 ) ) AS col2 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-9596
SELECT ALL + MIN ( + + ( col1 ) ) AS col2 FROM tab0 AS cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9597
SELECT COUNT( * ) + 56 - + - COUNT( * ) FROM tab2
----
62

skipif mysql # not compatible
query I rowsort label-9597
SELECT COUNT ( * ) + 56 - + - COUNT ( * ) FROM tab2
----
62

query I rowsort
SELECT col0 + + ( col0 ) * ( + col2 ) FROM tab0
----
720
957
9700

onlyif mysql # aggregate syntax: 
query I rowsort label-9599
SELECT DISTINCT MAX( - col2 ) AS col2 FROM tab0
----
-10

skipif mysql # not compatible
query I rowsort label-9599
SELECT DISTINCT MAX ( - col2 ) AS col2 FROM tab0
----
-10

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9600
SELECT + CAST( NULL AS DECIMAL ) / 69 * CAST( NULL AS SIGNED ) + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9600
SELECT + CAST ( NULL AS REAL ) / 69 * CAST ( NULL AS INTEGER ) + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 89 - + + col0 col2 FROM tab1 AS cor0
----
-140
-174
-180

onlyif mysql # aggregate syntax: 
query II rowsort label-9602
SELECT ALL + 75 AS col1, COUNT( * ) FROM tab0
----
75
3

skipif mysql # not compatible
query II rowsort label-9602
SELECT ALL + 75 AS col1, COUNT ( * ) FROM tab0
----
75
3

query I rowsort
SELECT - 54 + col1 AS col2 FROM tab2
----
-3
13
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9604
SELECT - CAST( - col1 AS SIGNED ) FROM tab1 AS cor0 WHERE NULL IS NULL
----
14
47
5

skipif mysql # not compatible
query I rowsort label-9604
SELECT - CAST ( - col1 AS INTEGER ) FROM tab1 AS cor0 WHERE NULL IS NULL
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-9605
SELECT ALL - COUNT( DISTINCT - col1 ) AS col1 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9605
SELECT ALL - COUNT ( DISTINCT - col1 ) AS col1 FROM tab2 AS cor0
----
-3

query I rowsort
SELECT ALL col2 * ( + col0 ) * + - col2 + 27 FROM tab1 AS cor0
----
-295858
-420757
-469989

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL <= - col2 - - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9608
SELECT DISTINCT + COUNT( * ) + 87 FROM tab0 AS cor0
----
90

skipif mysql # not compatible
query I rowsort label-9608
SELECT DISTINCT + COUNT ( * ) + 87 FROM tab0 AS cor0
----
90

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( + ( + col0 ) ) * + col2 + - col0 <> + - 98 * - - col1
----

onlyif mysql # DIV for integer division: 
query II rowsort label-9610
SELECT + col0 DIV + 53 AS col2, 40 FROM tab1
----
0
40
1
40
1
40

skipif mysql # not compatible
query II rowsort label-9610
SELECT + col0 / + 53 AS col2, 40 FROM tab1
----
0
40
1
40
1
40

onlyif mysql # aggregate syntax: 
query I rowsort label-9611
SELECT - 88 * - COUNT( * ) FROM tab1
----
264

skipif mysql # not compatible
query I rowsort label-9611
SELECT - 88 * - COUNT ( * ) FROM tab1
----
264

query II rowsort
SELECT DISTINCT 73 * - - col2 AS col0, + 19 AS col1 FROM tab2
----
1679
19
2920
19
4234
19

onlyif mysql # aggregate syntax: 
query I rowsort label-9613
SELECT ALL - - ( + - COUNT( * ) ) AS col2 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9613
SELECT ALL - - ( + - COUNT ( * ) ) AS col2 FROM tab2 AS cor0
----
-3

query I rowsort
SELECT ALL 76 FROM tab1 cor0 WHERE NOT col2 IS NULL
----
76
76
76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9615
SELECT - 75 * + + CAST( NULL AS SIGNED ) * + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9615
SELECT - 75 * + + CAST ( NULL AS INTEGER ) * + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9616
SELECT + SUM( + 62 ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
558

skipif mysql # not compatible
query I rowsort label-9616
SELECT + SUM ( + 62 ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
558

onlyif mysql # aggregate syntax: 
query I rowsort label-9617
SELECT - MIN( - 6 ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
6

skipif mysql # not compatible
query I rowsort label-9617
SELECT - MIN ( - 6 ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 78 col2 FROM tab2
----
-78
-78
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-9619
SELECT + + COUNT( 58 ) AS col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9619
SELECT + + COUNT ( 58 ) AS col1 FROM tab0 AS cor0
----
3

query I rowsort
SELECT - col2 * + + col1 FROM tab1 cor0
----
-1344
-295
-3196

onlyif mysql # aggregate syntax: 
query I rowsort label-9621
SELECT DISTINCT + MAX( + - col0 ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL < - col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9621
SELECT DISTINCT + MAX ( + - col0 ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL < - col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9622
SELECT DISTINCT + col1 DIV col2 + - 46 * + - 83 FROM tab2 AS cor0
----
3819
3820

skipif mysql # not compatible
query I rowsort label-9622
SELECT DISTINCT + col1 / col2 + - 46 * + - 83 FROM tab2 AS cor0
----
3819
3820

query I rowsort
SELECT ALL + 81 + - - 18 AS col2 FROM tab2 AS cor0
----
99
99
99

query I rowsort
SELECT col0 FROM tab0 AS cor0 WHERE + col0 BETWEEN NULL AND col1
----

query III rowsort
SELECT * FROM tab2 WHERE NULL BETWEEN - col1 AND - - col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9626
SELECT ALL col1 DIV 91 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9626
SELECT ALL col1 / 91 FROM tab2
----
0
0
0

query I rowsort
SELECT ALL + col0 * col0 * 11 AS col0 FROM tab0
----
103499
2475
83259

query II rowsort
SELECT DISTINCT - col0 AS col2, col1 FROM tab2
----
-46
51
-64
77
-75
67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0 AS col0, - col2 col0 FROM tab1
----
51
-96
85
-59
91
-68

query II rowsort
SELECT ALL + col1 AS col0, col2 + - col1 FROM tab1
----
14
82
47
21
5
54

onlyif mysql # DIV for integer division: 
query I rowsort label-9631
SELECT ALL + col2 DIV + - ( 77 ) - + - 12 + - col1 FROM tab2 AS cor0
----
-39
-55
-65

skipif mysql # not compatible
query I rowsort label-9631
SELECT ALL + col2 / + - ( 77 ) - + - 12 + - col1 FROM tab2 AS cor0
----
-39
-55
-65

query I rowsort
SELECT - col0 * - 13 - + 3 + - col2 + - 50 - + + 49 + 23 * 48 * col2 AS col1 FROM tab2 AS cor0
----
25865
44850
64847

query I rowsort
SELECT col2 * - col2 + + + col1 + + 4 FROM tab1 AS cor0
----
-3472
-4573
-9198

query I rowsort
SELECT ALL - - col1 * - 64 + - + 88 AS col2 FROM tab2 AS cor0
----
-3352
-4376
-5016

onlyif mysql # DIV for integer division: 
query I rowsort label-9635
SELECT 85 + - col1 + col0 * - col0 * + col1 + col0 DIV col2 FROM tab0 AS cor0
----
-158877
-18221
-9325

skipif mysql # not compatible
query I rowsort label-9635
SELECT 85 + - col1 + col0 * - col0 * + col1 + col0 / col2 FROM tab0 AS cor0
----
-158877
-18221
-9325

query I rowsort
SELECT - - ( col2 ) + - 59 FROM tab2 AS cor0
----
-1
-19
-36

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9637
SELECT * FROM tab2 WHERE + + CAST( NULL AS SIGNED ) + - 27 * 11 > + + 93 + ( - - col1 )
----

skipif mysql # not compatible
query III rowsort label-9637
SELECT * FROM tab2 WHERE + + CAST ( NULL AS INTEGER ) + - 27 * 11 > + + 93 + ( - - col1 )
----

query I rowsort
SELECT DISTINCT - col1 - + + col1 FROM tab0
----
-162
-2
-42

onlyif mysql # DIV for integer division: 
query I rowsort label-9639
SELECT col1 DIV - col1 FROM tab2 WHERE NULL IS NULL
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-9639
SELECT col1 / - col1 FROM tab2 WHERE NULL IS NULL
----
-1
-1
-1

query I rowsort
SELECT ALL - col1 - - col0 + - 85 AS col0 FROM tab0
----
-151
-19
11

query I rowsort
SELECT + 62 - + - col0 AS col2 FROM tab0 AS cor0
----
149
159
77

query I rowsort
SELECT DISTINCT - col1 + + + col2 AS col1 FROM tab0 AS cor0
----
-11
-34
98

query I rowsort
SELECT + col0 * - 32 FROM tab0 AS cor0
----
-2784
-3104
-480

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-9644
SELECT + 32 AS col1, - CAST( NULL AS DECIMAL ) * - col2 AS col2 FROM tab1
----
32
NULL
32
NULL
32
NULL

skipif mysql # not compatible
query II rowsort label-9644
SELECT + 32 AS col1, - CAST ( NULL AS REAL ) * - col2 AS col2 FROM tab1
----
32
NULL
32
NULL
32
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9645
SELECT - COUNT( ALL ( - col0 ) ) col0 FROM tab0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9645
SELECT - COUNT ( ALL ( - col0 ) ) col0 FROM tab0
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-9646
SELECT ALL COUNT( * ) AS col2, + COUNT( * ) FROM tab2
----
3
3

skipif mysql # not compatible
query II rowsort label-9646
SELECT ALL COUNT ( * ) AS col2, + COUNT ( * ) FROM tab2
----
3
3

query I rowsort
SELECT + ( - + 25 ) FROM tab1 AS cor0
----
-25
-25
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-9648
SELECT + COUNT( * ) * 94 AS col1 FROM tab2 cor0
----
282

skipif mysql # not compatible
query I rowsort label-9648
SELECT + COUNT ( * ) * 94 AS col1 FROM tab2 cor0
----
282

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9649
SELECT DISTINCT + - CAST( NULL AS SIGNED ) * + col1, - col2 DIV + + col0 AS col2 FROM tab2 AS cor0 WHERE col0 = + CAST( col0 AS SIGNED )
----
NULL
0

skipif mysql # not compatible
query II rowsort label-9649
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) * + col1, - col2 / + + col0 AS col2 FROM tab2 AS cor0 WHERE col0 = + CAST ( col0 AS INTEGER )
----
NULL
0

query II rowsort
SELECT DISTINCT 26, 27 AS col2 FROM tab1 AS cor0
----
26
27

query I rowsort
SELECT DISTINCT 33 * - + col1 AS col2 FROM tab0 AS cor0 WHERE NOT + col1 IS NULL
----
-2673
-33
-693

onlyif mysql # aggregate syntax: 
query I rowsort label-9652
SELECT DISTINCT - - COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-9652
SELECT DISTINCT - - COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9

query I rowsort
SELECT ALL + col1 + + 23 FROM tab0 cor0
----
104
24
44

query III rowsort
SELECT * FROM tab1 WHERE - 48 * + 24 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9655
SELECT DISTINCT + + col1 + - 91 AS col0 FROM tab1 WHERE NOT + CAST( - 65 AS SIGNED ) + - col0 < NULL
----

skipif mysql # not compatible
query I rowsort label-9655
SELECT DISTINCT + + col1 + - 91 AS col0 FROM tab1 WHERE NOT + CAST ( - 65 AS INTEGER ) + - col0 < NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL <> + - col2
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9657
SELECT CAST( ( - MAX( 77 ) ) AS SIGNED ) * - 4 col1 FROM tab1
----
308

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9657
SELECT CAST ( ( - MAX ( 77 ) ) AS INTEGER ) * - 4 col1 FROM tab1
----
308

query I rowsort
SELECT - ( + 50 ) FROM tab0
----
-50
-50
-50

query II rowsort
SELECT DISTINCT col2, col2 FROM tab2
----
23
23
40
40
58
58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9660
SELECT + COUNT( + col0 ) - + 72 DIV + 30 FROM tab0 AS cor0 WHERE col1 IS NULL
----
-2

skipif mysql # not compatible
query I rowsort label-9660
SELECT + COUNT ( + col0 ) - + 72 / + 30 FROM tab0 AS cor0 WHERE col1 IS NULL
----
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9661
SELECT ALL - CAST( NULL AS SIGNED ) * + 18 * - col0 + + - ( - col1 ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9661
SELECT ALL - CAST ( NULL AS INTEGER ) * + 18 * - col0 + + - ( - col1 ) FROM tab0
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT 52 AS col0, + 16 FROM tab0
----
52
16

query I rowsort
SELECT DISTINCT - ( - 98 ) * - col1 FROM tab2 AS cor0
----
-4998
-6566
-7546

query I rowsort
SELECT DISTINCT - 59 * + col1 FROM tab2 cor0
----
-3009
-3953
-4543

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9665
SELECT + CAST( NULL AS SIGNED ), col2 FROM tab0 cor0 WHERE NOT NULL = NULL
----

skipif mysql # not compatible
query II rowsort label-9665
SELECT + CAST ( NULL AS INTEGER ), col2 FROM tab0 cor0 WHERE NOT NULL = NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 29 * - - 87 col1 FROM tab0 AS cor0
----
-2523
-2523
-2523

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9667
SELECT + COUNT( ALL - - col0 ) DIV + SUM( DISTINCT col1 ) - + + 52 AS col1 FROM tab0 AS cor0
----
-52

skipif mysql # not compatible
query I rowsort label-9667
SELECT + COUNT ( ALL - - col0 ) / + SUM ( DISTINCT col1 ) - + + 52 AS col1 FROM tab0 AS cor0
----
-52

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( col1 IS NOT NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9669
SELECT ALL + + col2 / + col1 / - ( - col1 ) + + col1 - - col1 * col2 * - CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9669
SELECT ALL + + col2 / + col1 / - ( - col1 ) + + col1 - - col1 * col2 * - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT 9, - col1 AS col1 FROM tab2 AS cor0
----
9
-51
9
-67
9
-77

query II rowsort
SELECT DISTINCT 19, 99 AS col1 FROM tab2 cor0
----
19
99

onlyif mysql # aggregate syntax: 
query I rowsort label-9672
SELECT ALL + - SUM( + - 17 ) AS col0 FROM tab1 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-9672
SELECT ALL + - SUM ( + - 17 ) AS col0 FROM tab1 AS cor0
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-9673
SELECT ALL SUM( col2 ) FROM tab1
----
223

skipif mysql # not compatible
query I rowsort label-9673
SELECT ALL SUM ( col2 ) FROM tab1
----
223

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9674
SELECT COUNT( * ) DIV + ( 49 ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-9674
SELECT COUNT ( * ) / + ( 49 ) FROM tab2
----
0

query III rowsort
SELECT * FROM tab1 WHERE NOT + col0 <= - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab0 WHERE + - col1 + - 21 >= NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL > - + col0
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col2 NOT BETWEEN NULL AND col1 * ( col1 ) * + 75
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 69 col1 FROM tab2 cor0
----
69
69
69

query I rowsort
SELECT DISTINCT - 62 FROM tab0 AS cor0 WHERE NOT col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9681
SELECT DISTINCT + COUNT( * ) FROM tab1, tab2 cor0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-9681
SELECT DISTINCT + COUNT ( * ) FROM tab1, tab2 cor0 WHERE NOT NULL IS NULL
----
0

query I rowsort
SELECT ALL 0 + + col2 FROM tab0 cor0
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-9683
SELECT MIN( DISTINCT + - col0 ) FROM tab2 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-9683
SELECT MIN ( DISTINCT + - col0 ) FROM tab2 AS cor0
----
-75

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col0 + - col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9685
SELECT - + CAST( + - col1 AS SIGNED ) FROM tab2 cor0
----
51
67
77

skipif mysql # not compatible
query I rowsort label-9685
SELECT - + CAST ( + - col1 AS INTEGER ) FROM tab2 cor0
----
51
67
77

query I rowsort
SELECT DISTINCT + col1 + + + col1 FROM tab1 AS cor0
----
10
28
94

query I rowsort
SELECT DISTINCT - col0 AS col2 FROM tab2 cor0 WHERE NULL > NULL
----

query I rowsort
SELECT ALL - col2 + + + col2 + 65 FROM tab0
----
65
65
65

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - - 99 IS NULL
----

query I rowsort
SELECT DISTINCT col0 - - + col2 * - - col1 FROM tab0
----
196
297
3822

query I rowsort
SELECT - col1 * - - col1 * - 82 - - col0 + + col2 AS col1 FROM tab0
----
278
36259
538064

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9692
SELECT - col2 - + CAST( NULL AS DECIMAL ) * col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9692
SELECT - col2 - + CAST ( NULL AS REAL ) * col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col0 - - + col2 FROM tab2
----
104
133
69

query I rowsort
SELECT DISTINCT + col2 * 29 AS col2 FROM tab2
----
1160
1682
667

query I rowsort
SELECT col0 + - col1 AS col0 FROM tab2 WHERE NULL <= + 24
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NOT ( NULL IS NULL ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9697
SELECT CAST( NULL AS SIGNED ) + - - col1, col0 FROM tab1 cor0
----
NULL
51
NULL
85
NULL
91

skipif mysql # not compatible
query II rowsort label-9697
SELECT CAST ( NULL AS INTEGER ) + - - col1, col0 FROM tab1 cor0
----
NULL
51
NULL
85
NULL
91

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NOT + col0 IS NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - 56 + - ( col0 ) FROM tab0 AS cor0
----
-143
-153
-71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9700
SELECT + ( CAST( COUNT( * ) AS SIGNED ) ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9700
SELECT + ( CAST ( COUNT ( * ) AS INTEGER ) ) FROM tab2 AS cor0
----
3

query I rowsort
SELECT DISTINCT + col2 - - + col2 AS col0 FROM tab1 AS cor0
----
118
136
192

onlyif mysql # aggregate syntax: 
query I rowsort label-9702
SELECT + COUNT( DISTINCT col2 ) col0 FROM tab2
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9702
SELECT + COUNT ( DISTINCT col2 ) col0 FROM tab2
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * - 50 col1 FROM tab1
----
-2350
-250
-700

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 31 * + col1 col2 FROM tab0 AS cor0
----
-2511
-31
-651

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + 45 col0 FROM tab2 AS cor0
----
2295
3015
3465

query I rowsort
SELECT + 96 * - col0 AS col1 FROM tab0 AS cor0
----
-1440
-8352
-9312

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9707
SELECT + CAST( NULL AS SIGNED ) / + COUNT( * ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9707
SELECT + CAST ( NULL AS INTEGER ) / + COUNT ( * ) FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9708
SELECT DISTINCT + COUNT( * ) AS col1, 77 AS col2 FROM tab1 AS cor0
----
3
77

skipif mysql # not compatible
query II rowsort label-9708
SELECT DISTINCT + COUNT ( * ) AS col1, 77 AS col2 FROM tab1 AS cor0
----
3
77

query II rowsort
SELECT DISTINCT + col2 AS col2, 16 FROM tab0 AS cor0
----
10
16
47
16
99
16

onlyif mysql # aggregate syntax: 
query I rowsort label-9710
SELECT COUNT( DISTINCT - - col1 ) FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-9710
SELECT COUNT ( DISTINCT - - col1 ) FROM tab0 cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col2 col0, - col0 + + col1 FROM tab1
----
59
-80
68
-44
96
-37

query I rowsort
SELECT ALL 64 * - - col1 AS col1 FROM tab0
----
1344
5184
64

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL <> 14 + + 75
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9714
SELECT SUM( ALL + - col0 ) AS col1 FROM tab0
----
-199

skipif mysql # not compatible
query I rowsort label-9714
SELECT SUM ( ALL + - col0 ) AS col1 FROM tab0
----
-199

query III rowsort
SELECT * FROM tab1 WHERE NOT + 59 >= - col0
----

query II rowsort
SELECT DISTINCT 16 AS col1, ( - col1 ) FROM tab2
----
16
-51
16
-67
16
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-9717
SELECT ALL ( - - MAX( ALL col1 ) ) AS col1 FROM tab0
----
81

skipif mysql # not compatible
query I rowsort label-9717
SELECT ALL ( - - MAX ( ALL col1 ) ) AS col1 FROM tab0
----
81

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL NOT BETWEEN col2 + + ( col0 ) AND NULL
----

query I rowsort
SELECT ALL + col0 + + - col0 + + col1 AS col1 FROM tab0 AS cor0
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-9720
SELECT - 89 - COUNT( * ) * + COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-98

skipif mysql # not compatible
query I rowsort label-9720
SELECT - 89 - COUNT ( * ) * + COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9721
SELECT ALL - - CAST( + col2 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
23
40
58

skipif mysql # not compatible
query I rowsort label-9721
SELECT ALL - - CAST ( + col2 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
23
40
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 col0 FROM tab2 AS cor0 WHERE NOT + 48 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9723
SELECT COUNT( * ) + COUNT( DISTINCT - 8 ) * - COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE NOT - col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-9723
SELECT COUNT ( * ) + COUNT ( DISTINCT - 8 ) * - COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NOT - col0 IS NOT NULL
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9724
SELECT DISTINCT CAST( COUNT( * ) AS SIGNED ) AS col1 FROM tab1 AS cor0 WHERE NOT col2 + - 12 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-9724
SELECT DISTINCT CAST ( COUNT ( * ) AS INTEGER ) AS col1 FROM tab1 AS cor0 WHERE NOT col2 + - 12 IS NULL
----
3

onlyif mysql # DIV for integer division: 
query II rowsort label-9725
SELECT col2 DIV - 74, col0 + - 86 + - col1 AS col2 FROM tab2
----
0
-78
0
-91
0
-99

skipif mysql # not compatible
query II rowsort label-9725
SELECT col2 / - 74, col0 + - 86 + - col1 AS col2 FROM tab2
----
0
-78
0
-91
0
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-9726
SELECT 58 DIV + + col1 AS col1 FROM tab0
----
0
2
58

skipif mysql # not compatible
query I rowsort label-9726
SELECT 58 / + + col1 AS col1 FROM tab0
----
0
2
58

query IIIIII rowsort
SELECT * FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 ) WHERE NOT NULL NOT IN ( ( - 22 ), - 93 )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-9728
SELECT + col2 + - 45 AS col1, - 1 DIV + col2 AS col1 FROM tab0 AS cor0
----
-35
0
2
0
54
0

skipif mysql # not compatible
query II rowsort label-9728
SELECT + col2 + - 45 AS col1, - 1 / + col2 AS col1 FROM tab0 AS cor0
----
-35
0
2
0
54
0

query I rowsort
SELECT - - 19 * - + col1 * col0 + + col0 + + col0 FROM tab2 AS cor0
----
-44482
-93504
-95325

onlyif mysql # aggregate syntax: 
query I rowsort label-9730
SELECT ALL COUNT( * ) + - + 39 FROM tab2
----
-36

skipif mysql # not compatible
query I rowsort label-9730
SELECT ALL COUNT ( * ) + - + 39 FROM tab2
----
-36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9731
SELECT ALL AVG ( CAST( NULL AS SIGNED ) ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9731
SELECT ALL AVG ( CAST ( NULL AS INTEGER ) ) FROM tab0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9732
SELECT DISTINCT + 66 - + COUNT( * ) - - - MAX( + CAST( NULL AS SIGNED ) ) * COUNT( * ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9732
SELECT DISTINCT + 66 - + COUNT ( * ) - - - MAX ( + CAST ( NULL AS INTEGER ) ) * COUNT ( * ) FROM tab2
----
NULL

query II rowsort
SELECT + col1 + col1 AS col0, col2 + - col0 - 3 + col1 * + col1 AS col1 FROM tab0 WHERE - col0 NOT BETWEEN - - col0 AND NULL
----
162
6590
2
0
42
361

query III rowsort
SELECT ALL * FROM tab2 WHERE + + col2 * + col0 BETWEEN - col2 AND col1
----

query I rowsort
SELECT DISTINCT 97 * 91 AS col0 FROM tab1
----
8827

query I rowsort
SELECT ALL - col2 * + 94 FROM tab1
----
-5546
-6392
-9024

query I rowsort
SELECT ALL - 58 * + + col0 AS col0 FROM tab0 AS cor0
----
-5046
-5626
-870

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 43 / + + 28 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9739
SELECT DISTINCT CAST( NULL AS SIGNED ) * - 67 AS col1, MIN( + - col1 ) AS col1 FROM tab2
----
NULL
-77

skipif mysql # not compatible
query II rowsort label-9739
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - 67 AS col1, MIN ( + - col1 ) AS col1 FROM tab2
----
NULL
-77

query I rowsort
SELECT DISTINCT - col1 * + + 3 FROM tab2
----
-153
-201
-231

query I rowsort
SELECT DISTINCT + 44 * col1 * + + col1 AS col2 FROM tab2 cor0
----
114444
197516
260876

query I rowsort
SELECT DISTINCT + ( - - 49 ) FROM tab0 AS cor0
----
49

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 4 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9744
SELECT DISTINCT + MAX( - + CAST( NULL AS SIGNED ) ), 16 AS col2 FROM tab0 cor0
----
NULL
16

skipif mysql # not compatible
query II rowsort label-9744
SELECT DISTINCT + MAX ( - + CAST ( NULL AS INTEGER ) ), 16 AS col2 FROM tab0 cor0
----
NULL
16

query I rowsort
SELECT DISTINCT + 83 * + col0 + col2 + col0 + + + col2 FROM tab2 AS cor0 WHERE NULL >= 66
----

query I rowsort
SELECT col0 * col1 * 7 FROM tab2 cor0
----
16422
34496
35175

query II rowsort
SELECT ALL col1 * + + col0 * + col1 * + + 71 * + + col2, col2 FROM tab0
----
27240570
10
328410855
47
681813
99

query I rowsort
SELECT ( ( - + 80 ) ) AS col1 FROM tab1
----
-80
-80
-80

query I rowsort
SELECT - col1 * - 67 * - col1 * - - col1 FROM tab2
----
-20151121
-30587711
-8887617

onlyif mysql # aggregate syntax: 
query I rowsort label-9750
SELECT COUNT( * ) AS col1 FROM tab2 WHERE NOT + 32 > - col0
----
0

skipif mysql # not compatible
query I rowsort label-9750
SELECT COUNT ( * ) AS col1 FROM tab2 WHERE NOT + 32 > - col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9751
SELECT DISTINCT CAST( NULL AS SIGNED ) * + + 95 col1 FROM tab2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9751
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + + 95 col1 FROM tab2
----
NULL

query II rowsort
SELECT col0, - col2 AS col2 FROM tab0
----
15
-47
87
-10
97
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-9753
SELECT ALL + 17 + 83 + MIN( DISTINCT col2 ) FROM tab2
----
123

skipif mysql # not compatible
query I rowsort label-9753
SELECT ALL + 17 + 83 + MIN ( DISTINCT col2 ) FROM tab2
----
123

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9754
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - 21 + - AVG ( col2 ) + + + 24 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9754
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - 21 + - AVG ( col2 ) + + + 24 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9755
SELECT - ( COUNT( * ) ) * + COUNT( * ) FROM tab0 cor0
----
-9

skipif mysql # not compatible
query I rowsort label-9755
SELECT - ( COUNT ( * ) ) * + COUNT ( * ) FROM tab0 cor0
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9756
SELECT DISTINCT * FROM tab1 WHERE NOT CAST( NULL AS SIGNED ) * - - col1 <> NULL
----

skipif mysql # not compatible
query III rowsort label-9756
SELECT DISTINCT * FROM tab1 WHERE NOT CAST ( NULL AS INTEGER ) * - - col1 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9757
SELECT ALL - MAX( ALL - - 5 ) FROM tab2 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-9757
SELECT ALL - MAX ( ALL - - 5 ) FROM tab2 AS cor0
----
-5

query II rowsort
SELECT - col0 AS col1, + 40 + col0 FROM tab2 AS cor0
----
-46
86
-64
104
-75
115

onlyif mysql # aggregate syntax: 
query I rowsort label-9759
SELECT ALL 63 * + COUNT( * ) + - 89 + - - 59 FROM tab0 AS cor0
----
159

skipif mysql # not compatible
query I rowsort label-9759
SELECT ALL 63 * + COUNT ( * ) + - 89 + - - 59 FROM tab0 AS cor0
----
159

onlyif mysql # aggregate syntax: 
query I rowsort label-9760
SELECT - + ( - + 51 ) - + - 84 + - 84 + - - COUNT( * ) FROM tab0 AS cor0
----
54

skipif mysql # not compatible
query I rowsort label-9760
SELECT - + ( - + 51 ) - + - 84 + - 84 + - - COUNT ( * ) FROM tab0 AS cor0
----
54

onlyif mysql # DIV for integer division: 
query I rowsort label-9761
SELECT ALL + col2 + - + col2 DIV + col1 + + col2 FROM tab0 cor0
----
20
94
99

skipif mysql # not compatible
query I rowsort label-9761
SELECT ALL + col2 + - + col2 / + col1 + + col2 FROM tab0 cor0
----
20
94
99

onlyif mysql # aggregate syntax: 
query I rowsort label-9762
SELECT ALL + MAX( DISTINCT - 47 ) FROM tab0 AS cor0
----
-47

skipif mysql # not compatible
query I rowsort label-9762
SELECT ALL + MAX ( DISTINCT - 47 ) FROM tab0 AS cor0
----
-47

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL BETWEEN + 40 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9764
SELECT + ( COUNT( + 65 ) ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9764
SELECT + ( COUNT ( + 65 ) ) FROM tab0 AS cor0
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9765
SELECT ALL - + CAST( + - ( - ( - 49 ) ) AS SIGNED ) * - ( + COUNT( + 26 ) ) AS col0 FROM tab0 AS cor0
----
-147

skipif mysql # not compatible
query I rowsort label-9765
SELECT ALL - + CAST ( + - ( - ( - 49 ) ) AS INTEGER ) * - ( + COUNT ( + 26 ) ) AS col0 FROM tab0 AS cor0
----
-147

query II rowsort
SELECT DISTINCT col0, col2 AS col2 FROM tab2 AS cor0
----
46
23
64
40
75
58

query I rowsort
SELECT ALL + - 28 * + - 19 * + + col2 FROM tab2 AS cor0
----
12236
21280
30856

onlyif mysql # aggregate syntax: 
query I rowsort label-9768
SELECT COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL >= + col2 - 14 - col0 + + col2 * 10
----
0

skipif mysql # not compatible
query I rowsort label-9768
SELECT COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL >= + col2 - 14 - col0 + + col2 * 10
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-9769
SELECT - COUNT( * ) AS col1, - ( - 56 ) FROM tab2 AS cor0 WHERE NOT CAST( 41 AS DECIMAL ) NOT BETWEEN NULL AND 68 * - col2 * + col0 + - + 58
----
0
56

skipif mysql # not compatible
query II rowsort label-9769
SELECT - COUNT ( * ) AS col1, - ( - 56 ) FROM tab2 AS cor0 WHERE NOT CAST ( 41 AS REAL ) NOT BETWEEN NULL AND 68 * - col2 * + col0 + - + 58
----
0
56

onlyif mysql # DIV for integer division: 
query I rowsort label-9770
SELECT ALL - 83 DIV col1 * - - col0 FROM tab0
----
-15
-261
-8051

skipif mysql # not compatible
query I rowsort label-9770
SELECT ALL - 83 / col1 * - - col0 FROM tab0
----
-15
-261
-8051

query I rowsort
SELECT 87 + + col0 - - 38 AS col2 FROM tab0
----
140
212
222

onlyif mysql # aggregate syntax: 
query I rowsort label-9772
SELECT COUNT( * ) + - - 29 AS col1 FROM tab2
----
32

skipif mysql # not compatible
query I rowsort label-9772
SELECT COUNT ( * ) + - - 29 AS col1 FROM tab2
----
32

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9773
SELECT ALL * FROM tab2 WHERE - + ( + CAST( NULL AS SIGNED ) ) NOT BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query III rowsort label-9773
SELECT ALL * FROM tab2 WHERE - + ( + CAST ( NULL AS INTEGER ) ) NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab0 WHERE + col1 NOT IN ( - - 87 / ( - 59 ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 35 * + col2 col0, + col1 * - 72 col2 FROM tab1
----
2065
-360
2380
-3384
3360
-1008

query I rowsort
SELECT DISTINCT col2 * - - 60 * - col2 FROM tab1
----
-208860
-277440
-552960

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9777
SELECT * FROM tab2 cor0 WHERE - 68 * + + CAST( NULL AS DECIMAL ) NOT BETWEEN - 24 * ( - col0 ) + - 42 AND col0 * - - 59
----

skipif mysql # not compatible
query III rowsort label-9777
SELECT * FROM tab2 cor0 WHERE - 68 * + + CAST ( NULL AS REAL ) NOT BETWEEN - 24 * ( - col0 ) + - 42 AND col0 * - - 59
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9778
SELECT COUNT( * ) * 3 + + - 82 AS col0 FROM tab2
----
-73

skipif mysql # not compatible
query I rowsort label-9778
SELECT COUNT ( * ) * 3 + + - 82 AS col0 FROM tab2
----
-73

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + col2 * + - 55 + - ( + col1 ) > - 44
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 48 * + col1 + - ( + 21 ) * - 91 col1 FROM tab2 AS cor0
----
4359
5127
5607

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col0 - - col2 <> + - 98
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9782
SELECT DISTINCT - SUM( - col0 ) + + 37 + + COUNT( * ) AS col2 FROM tab0 AS cor0
----
239

skipif mysql # not compatible
query I rowsort label-9782
SELECT DISTINCT - SUM ( - col0 ) + + 37 + + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
239

query I rowsort
SELECT - - col2 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN NULL AND + col2
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col2 * - - col2 < + - 90
----

query I rowsort
SELECT 88 * - - 79 FROM tab1 AS cor0
----
6952
6952
6952

onlyif mysql # aggregate syntax: 
query I rowsort label-9786
SELECT - SUM( ALL + - col0 ) FROM tab2 AS cor0
----
185

skipif mysql # not compatible
query I rowsort label-9786
SELECT - SUM ( ALL + - col0 ) FROM tab2 AS cor0
----
185

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 94 * col1 - + col1 col0 FROM tab0 AS cor0
----
1953
7533
93

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9788
SELECT + col2, + CAST( NULL AS SIGNED ) AS col0 FROM tab0 cor0
----
10
NULL
47
NULL
99
NULL

skipif mysql # not compatible
query II rowsort label-9788
SELECT + col2, + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 cor0
----
10
NULL
47
NULL
99
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9789
SELECT DISTINCT - 88 + + COUNT( * ) FROM tab1
----
-85

skipif mysql # not compatible
query I rowsort label-9789
SELECT DISTINCT - 88 + + COUNT ( * ) FROM tab1
----
-85

query II rowsort
SELECT col2 AS col2, col1 + - 21 FROM tab2
----
23
30
40
56
58
46

onlyif mysql # aggregate syntax: 
query I rowsort label-9791
SELECT DISTINCT - 50 - - COUNT( * ) AS col0 FROM tab2
----
-47

skipif mysql # not compatible
query I rowsort label-9791
SELECT DISTINCT - 50 - - COUNT ( * ) AS col0 FROM tab2
----
-47

query I rowsort
SELECT DISTINCT - 2 * + - col0 FROM tab1 WHERE NOT ( - + col1 * col2 ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE - + 99 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9794
SELECT DISTINCT 39, ( + COUNT( * ) ) - COUNT( * ) AS col0 FROM tab2
----
39
0

skipif mysql # not compatible
query II rowsort label-9794
SELECT DISTINCT 39, ( + COUNT ( * ) ) - COUNT ( * ) AS col0 FROM tab2
----
39
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL IN ( col2, col0 )
----

query I rowsort
SELECT ALL ( - 60 ) FROM tab1
----
-60
-60
-60

query II rowsort
SELECT + col1 AS col2, - col1 AS col2 FROM tab0
----
1
-1
21
-21
81
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-9798
SELECT DISTINCT - ( + SUM( ALL + + col0 ) ) AS col0 FROM tab1 WHERE NULL <= + col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9798
SELECT DISTINCT - ( + SUM ( ALL + + col0 ) ) AS col0 FROM tab1 WHERE NULL <= + col2
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * - - col1 * col1 col1 FROM tab0 AS cor0
----
-38367
-97
-98415

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NOT ( NOT NULL IS NULL ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9801
SELECT ( - COUNT( * ) ) AS col0 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9801
SELECT ( - COUNT ( * ) ) AS col0 FROM tab1 AS cor0
----
-3

query I rowsort
SELECT ALL + ( - - 21 ) AS col0 FROM tab1
----
21
21
21

query I rowsort
SELECT + 16 * + col0 AS col1 FROM tab0 AS cor0
----
1392
1552
240

query I rowsort
SELECT ALL - + 57 + + col1 FROM tab0 AS cor0
----
-36
-56
24

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9805
SELECT - CAST( + col1 AS SIGNED ) * - - col2, col0 FROM tab2
----
-1173
46
-3080
64
-3886
75

skipif mysql # not compatible
query II rowsort label-9805
SELECT - CAST ( + col1 AS INTEGER ) * - - col2, col0 FROM tab2
----
-1173
46
-3080
64
-3886
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 col0, - ( + col0 ) FROM tab0
----
-15
-15
-87
-87
-97
-97

query II rowsort
SELECT col1 * + - col2 * + + 77 AS col2, col2 AS col0 FROM tab1
----
-103488
96
-22715
59
-246092
68

query II rowsort
SELECT DISTINCT - col2 AS col0, col0 FROM tab0
----
-10
87
-47
15
-99
97

query I rowsort
SELECT DISTINCT + + 43 FROM tab2 AS cor0
----
43

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT ALL col1 + 12 AS col1, + col0, - ( 36 ) col2 FROM tab0 cor0 WHERE NULL IS NULL
----
9 values hashing to 4131ccdc902314a0e1e4d7c26a61b5fd

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9811
SELECT DISTINCT - col1 * + CAST( NULL AS SIGNED ) + + 35 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9811
SELECT DISTINCT - col1 * + CAST ( NULL AS INTEGER ) + + 35 FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9812
SELECT + col2 FROM tab0 WHERE ( - col1 - CAST( NULL AS SIGNED ) ) IS NULL
----
10
47
99

skipif mysql # not compatible
query I rowsort label-9812
SELECT + col2 FROM tab0 WHERE ( - col1 - CAST ( NULL AS INTEGER ) ) IS NULL
----
10
47
99

onlyif mysql # DIV for integer division: 
query I rowsort label-9813
SELECT - col2 + 58 DIV - 4 FROM tab0
----
-113
-24
-61

skipif mysql # not compatible
query I rowsort label-9813
SELECT - col2 + 58 / - 4 FROM tab0
----
-113
-24
-61

query I rowsort
SELECT ALL + col0 AS col0 FROM tab0 WHERE NOT ( NULL ) BETWEEN NULL AND + col1 * - col0 + - 10
----

query I rowsort
SELECT DISTINCT + col2 * 29 FROM tab0
----
1363
2871
290

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9816
SELECT ALL - col1 + - CAST( NULL AS SIGNED ) * - CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9816
SELECT ALL - col1 + - CAST ( NULL AS INTEGER ) * - CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9817
SELECT ALL col2 + + CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9817
SELECT ALL col2 + + CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9818
SELECT ALL col2 * - CAST( NULL AS DECIMAL ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9818
SELECT ALL col2 * - CAST ( NULL AS REAL ) FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9819
SELECT DISTINCT CAST( NULL AS SIGNED ) - COUNT( * ) AS col2 FROM tab2 WHERE ( 48 + col1 * + col2 ) NOT BETWEEN NULL AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9819
SELECT DISTINCT CAST ( NULL AS INTEGER ) - COUNT ( * ) AS col2 FROM tab2 WHERE ( 48 + col1 * + col2 ) NOT BETWEEN NULL AND NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9820
SELECT DISTINCT + COUNT( * ) + SUM( + col1 ) * COUNT( * ) FROM tab1
----
201

skipif mysql # not compatible
query I rowsort label-9820
SELECT DISTINCT + COUNT ( * ) + SUM ( + col1 ) * COUNT ( * ) FROM tab1
----
201

query I rowsort
SELECT 94 AS col2 FROM tab1 WHERE ( NULL ) < ( - col1 )
----

query I rowsort
SELECT col1 - col0 * + 11 AS col1 FROM tab0
----
-1066
-84
-936

onlyif mysql # aggregate syntax: 
query I rowsort label-9823
SELECT 39 * + COUNT( * ) - - 92 AS col1 FROM tab2
----
209

skipif mysql # not compatible
query I rowsort label-9823
SELECT 39 * + COUNT ( * ) - - 92 AS col1 FROM tab2
----
209

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NULL ) NOT BETWEEN + col0 * - col2 AND 57
----

query III rowsort
SELECT * FROM tab0 WHERE ( col2 ) NOT BETWEEN + 20 AND NULL
----
87
21
10

onlyif mysql # aggregate syntax: 
query I rowsort label-9826
SELECT SUM( ( + col1 ) ) FROM tab1
----
66

skipif mysql # not compatible
query I rowsort label-9826
SELECT SUM ( ( + col1 ) ) FROM tab1
----
66

query I rowsort
SELECT col0 / + 47 + + col1 FROM tab2 WHERE ( + 0 ) >= ( + col1 )
----

query I rowsort
SELECT DISTINCT - ( 59 ) AS col1 FROM tab2
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-9829
SELECT + SUM( DISTINCT 90 ) + SUM( ALL - col0 ) AS col2 FROM tab1
----
-137

skipif mysql # not compatible
query I rowsort label-9829
SELECT + SUM ( DISTINCT 90 ) + SUM ( ALL - col0 ) AS col2 FROM tab1
----
-137

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 57 / + 68 NOT BETWEEN NULL AND - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9831
SELECT COUNT( ALL - col1 ) AS col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9831
SELECT COUNT ( ALL - col1 ) AS col1 FROM tab0 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9832
SELECT ALL 72 * - CAST( - col2 * - col0 AS SIGNED ) col1 FROM tab2 AS cor0
----
-184320
-313200
-76176

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9832
SELECT ALL 72 * - CAST ( - col2 * - col0 AS INTEGER ) col1 FROM tab2 AS cor0
----
-184320
-313200
-76176

onlyif mysql # DIV for integer division: 
query I rowsort label-9833
SELECT DISTINCT - col0 DIV - 18 AS col1 FROM tab1 AS cor0
----
2
4
5

skipif mysql # not compatible
query I rowsort label-9833
SELECT DISTINCT - col0 / - 18 AS col1 FROM tab1 AS cor0
----
2
4
5

onlyif mysql # DIV for integer division: 
query I rowsort label-9834
SELECT ALL - col2 DIV ( + 39 ) FROM tab0 cor0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-9834
SELECT ALL - col2 / ( + 39 ) FROM tab0 cor0
----
-1
-2
0

query I rowsort
SELECT ALL ( 80 ) AS col1 FROM tab2
----
80
80
80

onlyif mysql # aggregate syntax: 
query I rowsort label-9836
SELECT ALL + MAX( + 83 ) FROM tab1
----
83

skipif mysql # not compatible
query I rowsort label-9836
SELECT ALL + MAX ( + 83 ) FROM tab1
----
83

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - 92 + + col0 BETWEEN - col1 AND + 89
----
91
47
68

query I rowsort
SELECT ALL - col0 + - col1 * + col1 AS col0 FROM tab0 AS cor0
----
-528
-6576
-98

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col1 / 26 - - col1 NOT IN ( - 76 - + col1 )
----

query I rowsort
SELECT ALL - col1 AS col0 FROM tab0 AS cor0 WHERE + col2 + 84 / col1 NOT BETWEEN NULL AND col1 * col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9841
SELECT DISTINCT COUNT( * ) + ( + COUNT( * ) ) FROM tab0 cor0
----
6

skipif mysql # not compatible
query I rowsort label-9841
SELECT DISTINCT COUNT ( * ) + ( + COUNT ( * ) ) FROM tab0 cor0
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9842
SELECT DISTINCT col2 FROM tab2 AS cor0 WHERE ( CAST( NULL AS SIGNED ) ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-9842
SELECT DISTINCT col2 FROM tab2 AS cor0 WHERE ( CAST ( NULL AS INTEGER ) ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE - 95 IS NULL
----

query I rowsort
SELECT + col1 AS col1 FROM tab1 WHERE 82 IS NOT NULL
----
14
47
5

query I rowsort
SELECT + 12 + col1 * - 26 FROM tab1
----
-118
-1210
-352

query I rowsort
SELECT DISTINCT 90 + - + 76 AS col2 FROM tab1
----
14

query I rowsort
SELECT - col2 * - - 75 + 50 FROM tab2
----
-1675
-2950
-4300

query I rowsort
SELECT - col1 + - - 38 FROM tab2
----
-13
-29
-39

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( NULL ) BETWEEN + 15 AND 57
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - + 81 ) * 59 col1 FROM tab2
----
4779
4779
4779

query I rowsort
SELECT DISTINCT - col1 * + col0 FROM tab1 WHERE NOT + ( col0 ) + col0 BETWEEN - col1 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 8 * - + col1 col0 FROM tab0 AS cor0
----
-168
-648
-8

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 <> + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col0 * + col0 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT col1 AS col0 FROM tab1 AS cor0 WHERE col0 * - ( + 39 ) + col1 NOT IN ( - col0 * + col0 + 27 )
----
14
47
5

query I rowsort
SELECT 96 + 39 FROM tab1 cor0 WHERE ( NULL ) IS NULL
----
135
135
135

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9857
SELECT DISTINCT - 5 + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9857
SELECT DISTINCT - 5 + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE ( NULL ) <= ( NULL )
----

query IIIIII rowsort
SELECT * FROM ( tab2 AS cor0 CROSS JOIN tab0 AS cor1 ) WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9860
SELECT ALL 52 - + COUNT( * ) * 63 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
-515

skipif mysql # not compatible
query I rowsort label-9860
SELECT ALL 52 - + COUNT ( * ) * 63 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
-515

onlyif mysql # aggregate syntax: 
query I rowsort label-9861
SELECT DISTINCT SUM( col2 ) AS col2 FROM tab2
----
121

skipif mysql # not compatible
query I rowsort label-9861
SELECT DISTINCT SUM ( col2 ) AS col2 FROM tab2
----
121

query I rowsort
SELECT 16 + - 75 * + 80 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to c723f5435bc065c3377b50655ad0527c

onlyif mysql # aggregate syntax: 
query I rowsort label-9863
SELECT - COUNT( * ) * - + MIN( + + 92 ) + - MIN( - col2 + + col2 ) FROM tab1 AS cor0
----
276

skipif mysql # not compatible
query I rowsort label-9863
SELECT - COUNT ( * ) * - + MIN ( + + 92 ) + - MIN ( - col2 + + col2 ) FROM tab1 AS cor0
----
276

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( + col1 ) > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9865
SELECT ALL + + COUNT( * ) + - COUNT( * ) FROM tab0 cor0
----
0

skipif mysql # not compatible
query I rowsort label-9865
SELECT ALL + + COUNT ( * ) + - COUNT ( * ) FROM tab0 cor0
----
0

query I rowsort
SELECT col2 FROM tab0 AS cor0 WHERE 21 NOT BETWEEN NULL AND ( 43 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * - + col2 col2 FROM tab1 AS cor0
----
4896
5015
6188

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col1 + + col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9869
SELECT DISTINCT ( - MAX( - col1 ) ) DIV + COUNT( * ) AS col0 FROM tab2 cor0
----
17

skipif mysql # not compatible
query I rowsort label-9869
SELECT DISTINCT ( - MAX ( - col1 ) ) / + COUNT ( * ) AS col0 FROM tab2 cor0
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-9870
SELECT ALL - COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN + + col2 + + col0 / + 98 AND + col1 + col1
----
0

skipif mysql # not compatible
query I rowsort label-9870
SELECT ALL - COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN + + col2 + + col0 / + 98 AND + col1 + col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9871
SELECT + SUM( - - col2 ) FROM tab0
----
156

skipif mysql # not compatible
query I rowsort label-9871
SELECT + SUM ( - - col2 ) FROM tab0
----
156

onlyif mysql # aggregate syntax: 
query I rowsort label-9872
SELECT ( - ( + SUM( - col0 ) ) ) FROM tab1
----
227

skipif mysql # not compatible
query I rowsort label-9872
SELECT ( - ( + SUM ( - col0 ) ) ) FROM tab1
----
227

query I rowsort
SELECT DISTINCT - 5 * + + ( + col1 ) FROM tab0
----
-105
-405
-5

query I rowsort
SELECT DISTINCT col2 * col1 FROM tab1 WHERE ( NULL ) NOT BETWEEN + col2 AND col1
----

query III rowsort
SELECT * FROM tab0 WHERE NOT col2 <> ( + col1 * 7 )
----

query I rowsort
SELECT DISTINCT 11 * col0 AS col1 FROM tab0
----
1067
165
957

onlyif mysql # aggregate syntax: 
query II rowsort label-9877
SELECT COUNT( ALL + + 31 ), 69 AS col1 FROM tab2
----
3
69

skipif mysql # not compatible
query II rowsort label-9877
SELECT COUNT ( ALL + + 31 ), 69 AS col1 FROM tab2
----
3
69

query I rowsort
SELECT ALL 60 * - col0 + col2 AS col2 FROM tab1 WHERE NOT ( - col2 + - - col1 ) < col0
----

query I rowsort
SELECT - 21 * - col1 FROM tab0 AS cor0
----
1701
21
441

onlyif mysql # DIV for integer division: 
query I rowsort label-9880
SELECT DISTINCT - 71 DIV - + col1 FROM tab0 AS cor0
----
0
3
71

skipif mysql # not compatible
query I rowsort label-9880
SELECT DISTINCT - 71 / - + col1 FROM tab0 AS cor0
----
0
3
71

query I rowsort
SELECT DISTINCT col1 AS col2 FROM tab2 AS cor0 WHERE NOT ( + 74 * + - col2 ) NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9882
SELECT DISTINCT COUNT( - + 97 ) col0 FROM tab2
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9882
SELECT DISTINCT COUNT ( - + 97 ) col0 FROM tab2
----
3

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - - 13 NOT IN ( - col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col1 FROM tab1 AS cor0 WHERE + 42 + - col0 * + + col0 BETWEEN - 3 * col2 AND NULL
----

query I rowsort
SELECT ALL - col2 * - col0 * - col2 AS col0 FROM tab1 AS cor0 WHERE - 12 IN ( - col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + col1 + + 83 col2 FROM tab1 AS cor0
----
147
193
198

query I rowsort
SELECT ALL 75 + - + 37 AS col0 FROM tab1 cor0
----
38
38
38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9888
SELECT DISTINCT - 80 * COUNT( ALL col1 ) FROM tab0 AS cor0 WHERE + col1 - + CAST( NULL AS DECIMAL ) NOT BETWEEN ( - - CAST( NULL AS SIGNED ) ) AND - col0
----
0

skipif mysql # not compatible
query I rowsort label-9888
SELECT DISTINCT - 80 * COUNT ( ALL col1 ) FROM tab0 AS cor0 WHERE + col1 - + CAST ( NULL AS REAL ) NOT BETWEEN ( - - CAST ( NULL AS INTEGER ) ) AND - col0
----
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 87 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query II rowsort label-9890
SELECT ALL + COUNT( * ), MAX( + col2 ) AS col0 FROM tab2 AS cor0
----
3
58

skipif mysql # not compatible
query II rowsort label-9890
SELECT ALL + COUNT ( * ), MAX ( + col2 ) AS col0 FROM tab2 AS cor0
----
3
58

query II rowsort
SELECT DISTINCT - col1 + + + 62 AS col1, col0 * - col0 AS col2 FROM tab2
----
-15
-4096
-5
-5625
11
-2116

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL BETWEEN col0 AND ( + 99 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9893
SELECT ALL CAST( - + 44 AS SIGNED ) FROM tab0
----
-44
-44
-44

skipif mysql # not compatible
query I rowsort label-9893
SELECT ALL CAST ( - + 44 AS INTEGER ) FROM tab0
----
-44
-44
-44

query II rowsort
SELECT ALL + 81 AS col2, ( - - col1 ) * + - 19 + - col0 FROM tab0
----
81
-116
81
-1554
81
-486

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9895
SELECT DISTINCT - col1 FROM tab2 WHERE NOT ( ( NULL ) <> - 10 - CAST( ( - 70 ) AS SIGNED ) * col0 )
----

skipif mysql # not compatible
query I rowsort label-9895
SELECT DISTINCT - col1 FROM tab2 WHERE NOT ( ( NULL ) <> - 10 - CAST ( ( - 70 ) AS INTEGER ) * col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9896
SELECT COUNT( * ) + - 25 FROM tab2
----
-22

skipif mysql # not compatible
query I rowsort label-9896
SELECT COUNT ( * ) + - 25 FROM tab2
----
-22

query III rowsort
SELECT ALL * FROM tab1 WHERE + col0 = - + col0
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col0 IN ( + col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col2 + - col0 * - - col1 * - + col0 * 10 AS col1 FROM tab2 AS cor0
----
1079183
3153960
3768808

query I rowsort
SELECT ALL col1 FROM tab0 AS cor0 WHERE NOT col1 - + + 80 NOT IN ( - - 58 + - + 35 * + col2 + + ( 49 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9901
SELECT ALL 7 + 63 * + COUNT( * ) AS col1 FROM tab0 AS cor0
----
196

skipif mysql # not compatible
query I rowsort label-9901
SELECT ALL 7 + 63 * + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
196

query I rowsort
SELECT - + 87 * + col0 FROM tab2 AS cor0
----
-4002
-5568
-6525

query I rowsort
SELECT DISTINCT 87 * + col1 FROM tab1 AS cor0 WHERE NOT col1 IS NULL
----
1218
4089
435

query II rowsort
SELECT - ( + col2 ) * - + col2 AS col2, col0 AS col1 FROM tab0 AS cor0
----
100
87
2209
15
9801
97

onlyif mysql # aggregate syntax: 
query I rowsort label-9905
SELECT ALL MAX( 63 ) AS col1 FROM tab0 AS cor0
----
63

skipif mysql # not compatible
query I rowsort label-9905
SELECT ALL MAX ( 63 ) AS col1 FROM tab0 AS cor0
----
63

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( + + 46 IS NOT NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL <= col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9908
SELECT - - COUNT( * ) * - + COUNT( * ) * + - SUM( ALL 89 ) AS col1 FROM tab0 AS cor0
----
2403

skipif mysql # not compatible
query I rowsort label-9908
SELECT - - COUNT ( * ) * - + COUNT ( * ) * + - SUM ( ALL 89 ) AS col1 FROM tab0 AS cor0
----
2403

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( 13 - + + ( ( + 96 ) ) ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - ( - ( + ( + col1 ) ) ) FROM tab2 cor0
----
51
67
77

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9911
SELECT ALL + col1, CAST( NULL AS SIGNED ) FROM tab1
----
14
NULL
47
NULL
5
NULL

skipif mysql # not compatible
query II rowsort label-9911
SELECT ALL + col1, CAST ( NULL AS INTEGER ) FROM tab1
----
14
NULL
47
NULL
5
NULL

query I rowsort
SELECT ALL - + col2 FROM tab1 WHERE NOT ( - col0 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT ( + - col0 ) FROM tab0
----
-15
-87
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-9914
SELECT MAX( - ( + ( + col1 ) ) ) AS col1 FROM tab1
----
-5

skipif mysql # not compatible
query I rowsort label-9914
SELECT MAX ( - ( + ( + col1 ) ) ) AS col1 FROM tab1
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-9915
SELECT + SUM( + - 43 ) FROM tab2 WHERE NOT - + col0 >= col2
----
-129

skipif mysql # not compatible
query I rowsort label-9915
SELECT + SUM ( + - 43 ) FROM tab2 WHERE NOT - + col0 >= col2
----
-129

onlyif mysql # aggregate syntax: 
query I rowsort label-9916
SELECT MAX( DISTINCT col0 ) AS col0 FROM tab1
----
91

skipif mysql # not compatible
query I rowsort label-9916
SELECT MAX ( DISTINCT col0 ) AS col0 FROM tab1
----
91

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9917
SELECT ALL 59 / CAST( NULL AS SIGNED ) / 8, col1 AS col2 FROM tab1
----
NULL
14
NULL
47
NULL
5

skipif mysql # not compatible
query II rowsort label-9917
SELECT ALL 59 / CAST ( NULL AS INTEGER ) / 8, col1 AS col2 FROM tab1
----
NULL
14
NULL
47
NULL
5

query I rowsort
SELECT ( - - col0 ) * + - ( + col1 ) AS col0 FROM tab1
----
-425
-4277
-714

query I rowsort
SELECT - + 39 AS col1 FROM tab2 AS cor0
----
-39
-39
-39

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NULL IN ( col2 * + col2, - 40 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9921
SELECT DISTINCT + - COUNT( * ) * + + 87 FROM tab0 cor0
----
-261

skipif mysql # not compatible
query I rowsort label-9921
SELECT DISTINCT + - COUNT ( * ) * + + 87 FROM tab0 cor0
----
-261

query I rowsort
SELECT DISTINCT col0 * col1 + + col1 + col0 FROM tab0 AS cor0
----
1311
1935
195

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL <= NULL
----

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL >= + 10
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9925
SELECT ( - col1 ) DIV + + col1 AS col1 FROM tab0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-9925
SELECT ( - col1 ) / + + col1 AS col1 FROM tab0
----
-1
-1
-1

query I rowsort
SELECT DISTINCT 73 AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9927
SELECT + + col2 * - col0 + CAST( NULL AS SIGNED ) + + col0 AS col0, - col1 AS col0 FROM tab2 AS cor0
----
NULL
-51
NULL
-67
NULL
-77

skipif mysql # not compatible
query II rowsort label-9927
SELECT + + col2 * - col0 + CAST ( NULL AS INTEGER ) + + col0 AS col0, - col1 AS col0 FROM tab2 AS cor0
----
NULL
-51
NULL
-67
NULL
-77

query I rowsort
SELECT DISTINCT 34 + + 72 AS col1 FROM tab0 AS cor0
----
106

onlyif mysql # aggregate syntax: 
query I rowsort label-9929
SELECT - COUNT( * ) FROM tab2 cor0 WHERE - col2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-9929
SELECT - COUNT ( * ) FROM tab2 cor0 WHERE - col2 IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9930
SELECT - COUNT( * ) + ( + 83 ) AS col1 FROM tab1 AS cor0
----
80

skipif mysql # not compatible
query I rowsort label-9930
SELECT - COUNT ( * ) + ( + 83 ) AS col1 FROM tab1 AS cor0
----
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9931
SELECT ALL + 69 + + - CAST( NULL AS SIGNED ) * col1 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9931
SELECT ALL + 69 + + - CAST ( NULL AS INTEGER ) * col1 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + ( 50 ) AS col0 FROM tab1 AS cor0 WHERE NULL <> + col0
----

query I rowsort
SELECT DISTINCT col2 + + ( + col0 ) FROM tab2 AS cor0
----
104
133
69

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9934
SELECT * FROM tab2 cor0 WHERE col2 + + - CAST( NULL AS DECIMAL ) - col0 <= NULL
----

skipif mysql # not compatible
query III rowsort label-9934
SELECT * FROM tab2 cor0 WHERE col2 + + - CAST ( NULL AS REAL ) - col0 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9935
SELECT - - 11 + COUNT( * ) * - + COUNT( * ) * + COUNT( * ) AS col1 FROM tab1 AS cor0
----
-16

skipif mysql # not compatible
query I rowsort label-9935
SELECT - - 11 + COUNT ( * ) * - + COUNT ( * ) * + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-16

query III rowsort
SELECT * FROM tab0 WHERE + 86 >= - 18
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL col2 + 71 FROM tab0
----
118
170
81

query I rowsort
SELECT col2 * col2 * + 8 * - col0 FROM tab0
----
-265080
-69600
-7605576

onlyif mysql # DIV for integer division: 
query I rowsort label-9939
SELECT + 85 DIV col0 * 82 AS col2 FROM tab2
----
82
82
82

skipif mysql # not compatible
query I rowsort label-9939
SELECT + 85 / col0 * 82 AS col2 FROM tab2
----
82
82
82

query I rowsort
SELECT col1 * + - 72 FROM tab1
----
-1008
-3384
-360

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9941
SELECT * FROM tab1 AS cor0 WHERE CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-9941
SELECT * FROM tab1 AS cor0 WHERE CAST ( NULL AS INTEGER ) IS NOT NULL
----

query II rowsort
SELECT col0 AS col2, + 18 FROM tab2 AS cor0 WHERE + col2 + - col2 = - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9943
SELECT DISTINCT - MAX( DISTINCT - 7 ) FROM tab2
----
7

skipif mysql # not compatible
query I rowsort label-9943
SELECT DISTINCT - MAX ( DISTINCT - 7 ) FROM tab2
----
7

query I rowsort
SELECT ALL + col2 * - 71 AS col0 FROM tab1
----
-4189
-4828
-6816

query I rowsort
SELECT DISTINCT + - 85 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-85

query I rowsort
SELECT ALL + col0 + + col1 FROM tab0 cor0 WHERE NULL IS NULL
----
108
96
98

query I rowsort
SELECT 64 + - col1 + + col0 AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-2
130
160

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 59 col1 FROM tab0 AS cor0 WHERE NOT NULL = - 78
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9949
SELECT COUNT( + col1 ) col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9949
SELECT COUNT ( + col1 ) col1 FROM tab2 AS cor0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-9950
SELECT - col0 DIV 17 + - col1 + + - col2 AS col0 FROM tab0 AS cor0
----
-105
-128
-36

skipif mysql # not compatible
query I rowsort label-9950
SELECT - col0 / 17 + - col1 + + - col2 AS col0 FROM tab0 AS cor0
----
-105
-128
-36

query I rowsort
SELECT + 91 * 5 AS col1 FROM tab1
----
455
455
455

query I rowsort
SELECT ALL 78 FROM tab2 WHERE NOT ( NULL ) > NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE - + 33 * 36 + + + 14 + 17 <> NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9954
SELECT + - MIN( + col2 ) AS col2, 13 AS col1 FROM tab2 AS cor0
----
-23
13

skipif mysql # not compatible
query II rowsort label-9954
SELECT + - MIN ( + col2 ) AS col2, 13 AS col1 FROM tab2 AS cor0
----
-23
13

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL IN ( + col1, - 19 * - 92 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col1 BETWEEN - - col2 AND NULL OR - col1 > NULL
----
97
1
99

onlyif mysql # aggregate syntax: 
query I rowsort label-9957
SELECT + 70 + + + MIN( + col2 ) + - MAX( + + 49 ) * - 34 - - - 79 AS col1 FROM tab2 AS cor0
----
1680

skipif mysql # not compatible
query I rowsort label-9957
SELECT + 70 + + + MIN ( + col2 ) + - MAX ( + + 49 ) * - 34 - - - 79 AS col1 FROM tab2 AS cor0
----
1680

query I rowsort
SELECT + 55 + - + col0 * col1 + - - col2 FROM tab0
----
-1113
-1762
57

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9959
SELECT + ( - COUNT( * ) ) + CAST( NULL AS DECIMAL ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9959
SELECT + ( - COUNT ( * ) ) + CAST ( NULL AS REAL ) AS col2 FROM tab1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9960
SELECT + - 56 DIV + 36 - + - col1 AS col1 FROM tab0 AS cor0
----
0
20
80

skipif mysql # not compatible
query I rowsort label-9960
SELECT + - 56 / + 36 - + - col1 AS col1 FROM tab0 AS cor0
----
0
20
80

onlyif mysql # aggregate syntax: 
query I rowsort label-9961
SELECT DISTINCT + - SUM( ALL - 45 ) FROM tab2 AS cor0
----
135

skipif mysql # not compatible
query I rowsort label-9961
SELECT DISTINCT + - SUM ( ALL - 45 ) FROM tab2 AS cor0
----
135

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9962
SELECT * FROM tab0 cor0 WHERE NULL > CAST( NULL AS SIGNED ) / - - col1
----

skipif mysql # not compatible
query III rowsort label-9962
SELECT * FROM tab0 cor0 WHERE NULL > CAST ( NULL AS INTEGER ) / - - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9963
SELECT DISTINCT SUM( ALL + + col1 ) + + ( - 62 ) AS col1 FROM tab0 AS cor0
----
41

skipif mysql # not compatible
query I rowsort label-9963
SELECT DISTINCT SUM ( ALL + + col1 ) + + ( - 62 ) AS col1 FROM tab0 AS cor0
----
41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9964
SELECT ALL + col0 + - CAST( NULL AS SIGNED ) AS col1 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9964
SELECT ALL + col0 + - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN ( NULL ) AND - col1 + - 81
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NOT + col0 * + + col1 IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + col1 + col0 * - + col1 + col1 FROM tab0 AS cor0
----
-1053
-1785
-95

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE ( NOT 50 / - col2 IS NOT NULL )
----

query I rowsort
SELECT DISTINCT 61 + + + col2 + + 98 AS col0 FROM tab1
----
218
227
255

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9970
SELECT - ( - 71 ) * 28 + - col1 * + col1 FROM tab0 WHERE - CAST( + + 56 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-9970
SELECT - ( - 71 ) * 28 + - col1 * + col1 FROM tab0 WHERE - CAST ( + + 56 AS INTEGER ) IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL = - 97
----

query III rowsort
SELECT * FROM tab0 WHERE - col0 * col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col2 + + 77 AS col1 FROM tab0
----
124
176
87

query III rowsort
SELECT * FROM tab0 WHERE ( + 84 - - + 16 ) IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + 71 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT col0 IS NULL OR - + col1 + col1 + 4 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-9977
SELECT DISTINCT - col2 + - col2 + - + 4 * + - 89 DIV - ( + - 75 ) + - col0 FROM tab2 AS cor0
----
-140
-187
-88

skipif mysql # not compatible
query I rowsort label-9977
SELECT DISTINCT - col2 + - col2 + - + 4 * + - 89 / - ( + - 75 ) + - col0 FROM tab2 AS cor0
----
-140
-187
-88

query I rowsort
SELECT + + col2 - + 2 AS col0 FROM tab0 AS cor0 WHERE NULL < col1
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 92 <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9980
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-9980
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9981
SELECT + col2 DIV + 35 + + + col2 - + 55 * col0 FROM tab2 AS cor0
----
-2507
-3479
-4066

skipif mysql # not compatible
query I rowsort label-9981
SELECT + col2 / + 35 + + + col2 - + 55 * col0 FROM tab2 AS cor0
----
-2507
-3479
-4066

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9982
SELECT - CAST( - ( - CAST( + - col2 AS SIGNED ) ) AS SIGNED ) FROM tab0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-9982
SELECT - CAST ( - ( - CAST ( + - col2 AS INTEGER ) ) AS INTEGER ) FROM tab0
----
10
47
99

query I rowsort
SELECT ALL + 4 * - 13 FROM tab1
----
-52
-52
-52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + + 40 * + 62 - - + col2 AS col0, 46 col0 FROM tab0 AS cor0
----
2490
46
2527
46
2579
46

onlyif mysql # aggregate syntax: 
query I rowsort label-9985
SELECT ALL + - ( + MIN( col1 ) ) col1 FROM tab1 AS cor0
----
-5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9985
SELECT ALL + - ( + MIN ( col1 ) ) col1 FROM tab1 AS cor0
----
-5

query II rowsort
SELECT ALL + col1 AS col2, + col1 FROM tab1 cor0
----
14
14
47
47
5
5

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL <= - col2 - - 75
----

query I rowsort
SELECT ALL + 92 * - col0 * + + 63 AS col1 FROM tab0 AS cor0 WHERE NOT col1 * - col2 NOT BETWEEN NULL AND + 1
----

query I rowsort
SELECT ALL ( 53 ) AS col2 FROM tab0 AS cor0
----
53
53
53

onlyif mysql # aggregate syntax: 
query I rowsort label-9990
SELECT + COUNT( + 64 ) col1 FROM tab1 cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9990
SELECT + COUNT ( + 64 ) col1 FROM tab1 cor0
----
3

query I rowsort
SELECT - + col2 FROM tab0 AS cor0 WHERE NOT + col1 * - + col0 BETWEEN + ( + 20 ) * + col1 AND NULL
----
-10
-47
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-9992
SELECT DISTINCT - COUNT( ALL col1 ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-9992
SELECT DISTINCT - COUNT ( ALL col1 ) FROM tab1
----
-3

query II rowsort
SELECT ALL - 18, 73 - - 98 AS col1 FROM tab0
----
-18
171
-18
171
-18
171

query I rowsort
SELECT + ( - - col1 ) AS col1 FROM tab0
----
1
21
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col2 col0, + 23 + + - ( col1 ) * + 18 FROM tab0
----
-10
-355
-47
-1435
-99
5

query I rowsort
SELECT DISTINCT + + col1 + col1 FROM tab0 AS cor0 WHERE - col1 IS NULL
----

query II rowsort
SELECT + col0, - 61 AS col2 FROM tab2 cor0
----
46
-61
64
-61
75
-61

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + col0 * col2 < - col2
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col1 * + ( - - 36 ) IS NULL
----

